changeset 26018:8e4c1c04059b

(handle_fontified_prop): GCPRO pos.
author Dave Love <fx@gnu.org>
date Thu, 14 Oct 1999 11:03:39 +0000
parents 90595a2d3043
children 079b0f1b92be
files src/xdisp.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Thu Oct 14 10:58:15 1999 +0000
+++ b/src/xdisp.c	Thu Oct 14 11:03:39 1999 +0000
@@ -1784,6 +1784,7 @@
 {
   Lisp_Object prop, pos;
   enum prop_handled handled = HANDLED_NORMALLY;
+  struct gcpro gcpro1;
 
   /* Get the value of the `fontified' property at IT's current buffer
      position.  (The `fontified' property doesn't have a special
@@ -1798,6 +1799,7 @@
     {
       Lisp_Object args[2];
 
+      GCPRO1 (pos);
       /* Run the hook functions.  */
       args[0] = Qfontification_functions;
       args[1] = pos;
@@ -1808,6 +1810,7 @@
 	 fontify the text for which reason ever.  */
       if (!NILP (Fget_char_property (pos, Qfontified, Qnil)))
 	handled = HANDLED_RECOMPUTE_PROPS;
+      UNGCPRO;
     }
 
   return handled;