]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix the mouse help/key map on the "%p" part of the mode line.
authorAlan Mackenzie <acm@muc.de>
Tue, 30 May 2017 16:21:31 +0000 (16:21 +0000)
committerAlan Mackenzie <acm@muc.de>
Tue, 30 May 2017 16:21:31 +0000 (16:21 +0000)
* lisp/bindings.el (mode-line-percent-position): give it a
`risky-local-variable' property.
(mode-line-position): correct the quoting on the mode-line-percent-position
part of the variable, allowing the properties to be properly recognized.

lisp/bindings.el

index 0e6ffc275ed32d095fe9c220c2a0979225b01ff5..0994b7126d95ecd22370ed29d9dd5c4ce7acca02 100644 (file)
@@ -382,14 +382,15 @@ displayed in `mode-line-position', a component of the default
                  (6 "%q")))
   :version "26.1"
   :group 'mode-line)
+(put 'mode-line-percent-position 'risky-local-variable t)
 
 (defvar mode-line-position
   `((:propertize
      mode-line-percent-position
-     'local-map mode-line-column-line-number-mode-map
-     'mouse-face 'mode-line-highlight
+     local-map ,mode-line-column-line-number-mode-map
+     mouse-face mode-line-highlight
      ;; XXX needs better description
-     'help-echo "Size indication mode\n\
+     help-echo "Size indication mode\n\
 mouse-1: Display Line and Column Mode Menu")
     (size-indication-mode
      (8 ,(propertize