]> git.eshelyaron.com Git - emacs.git/commitdiff
; * src/keymap.c: Fix last change (bug#75219).
authorEli Zaretskii <eliz@gnu.org>
Sun, 12 Jan 2025 06:24:39 +0000 (08:24 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sun, 12 Jan 2025 14:59:01 +0000 (15:59 +0100)
(cherry picked from commit 412c1a4f0e1df8c82bd94f02e21c1ef62b3d53d5)

src/keymap.c

index 733d8d16031c38e81a5b8ea79877b51afefc94b7..5c0ddcd1d9d52c73d1676226b9e69a864a77e4b8 100644 (file)
@@ -1740,7 +1740,6 @@ like in the respective argument of `key-binding'.  */)
          if (CONSP (string) && STRINGP (XCAR (string)))
            {
              Lisp_Object pos = XCDR (string);
-             Lisp_Object pos_area = POSN_POSN (position);
              string = XCAR (string);
              if (FIXNUMP (pos)
                  && XFIXNUM (pos) >= 0
@@ -1748,6 +1747,7 @@ like in the respective argument of `key-binding'.  */)
                {
                  Lisp_Object map = Fget_text_property (pos, Qlocal_map,
                                                        string);
+                 Lisp_Object pos_area = POSN_POSN (position);
                  /* For clicks on mode line or header line, override
                     the maps we found at POSITION unconditionally, even
                     if the corresponding properties of the mode- or