emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master a0b2a5a 1/2: Fix OBJECT binding in conditional disp


From: Eli Zaretskii
Subject: [Emacs-diffs] master a0b2a5a 1/2: Fix OBJECT binding in conditional display specs
Date: Thu, 7 Mar 2019 09:22:07 -0500 (EST)

branch: master
commit a0b2a5ad9ec8186b679ee80e1c5b9786672344a0
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Fix OBJECT binding in conditional display specs
    
    * src/xdisp.c (compute_display_string_pos): Pass OBJECT1, not
    OBJECT to handle_display_spec, as the latter doesn't expect a
    window object.  (Bug#34771)
---
 src/xdisp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/xdisp.c b/src/xdisp.c
index 6ceb5c9..0af5e39 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -3761,7 +3761,7 @@ compute_display_string_pos (struct text_pos *position,
          || !EQ (Fget_char_property (make_fixnum (charpos - 1), Qdisplay,
                                      object),
                  spec))
-      && (rv = handle_display_spec (NULL, spec, object, Qnil, &tpos, bufpos,
+      && (rv = handle_display_spec (NULL, spec, object1, Qnil, &tpos, bufpos,
                                    frame_window_p)))
     {
       if (rv == 2)
@@ -3788,7 +3788,7 @@ compute_display_string_pos (struct text_pos *position,
     if (!STRINGP (object))
       bufpos = CHARPOS (tpos);
   } while (NILP (spec)
-          || !(rv = handle_display_spec (NULL, spec, object, Qnil, &tpos,
+          || !(rv = handle_display_spec (NULL, spec, object1, Qnil, &tpos,
                                          bufpos, frame_window_p)));
   if (rv == 2)
     *disp_prop = 2;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]