summaryrefslogtreecommitdiff
path: root/src/textprop.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/textprop.c')
-rw-r--r--src/textprop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/textprop.c b/src/textprop.c
index f6b7dab421e..3e742476a12 100644
--- a/src/textprop.c
+++ b/src/textprop.c
@@ -784,7 +784,7 @@ past position LIMIT; return LIMIT if nothing is found before LIMIT. */)
else
{
Lisp_Object initial_value, value;
- int count = specpdl_ptr - specpdl;
+ int count = SPECPDL_INDEX ();
if (! NILP (object))
CHECK_BUFFER (object);
@@ -849,7 +849,7 @@ back past position LIMIT; return LIMIT if nothing is found before LIMIT. */)
}
else
{
- int count = specpdl_ptr - specpdl;
+ int count = SPECPDL_INDEX ();
if (! NILP (object))
CHECK_BUFFER (object);