diff options
| author | Alan Mackenzie | 2017-05-30 16:21:31 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2017-05-30 16:21:31 +0000 |
| commit | aeaef62cfd8e9b0d36e4125322e926e48ab9091a (patch) | |
| tree | 2ebe2c54a907802a2ccae031fadb2e479af7343d | |
| parent | 412c38aa28dd7e8363b481a09d1df62c40f9a5b7 (diff) | |
| download | emacs-aeaef62cfd8e9b0d36e4125322e926e48ab9091a.tar.gz emacs-aeaef62cfd8e9b0d36e4125322e926e48ab9091a.zip | |
Fix the mouse help/key map on the "%p" part of the mode line.
* 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.
| -rw-r--r-- | lisp/bindings.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/bindings.el b/lisp/bindings.el index 0e6ffc275ed..0994b7126d9 100644 --- a/lisp/bindings.el +++ b/lisp/bindings.el | |||
| @@ -382,14 +382,15 @@ displayed in `mode-line-position', a component of the default | |||
| 382 | (6 "%q"))) | 382 | (6 "%q"))) |
| 383 | :version "26.1" | 383 | :version "26.1" |
| 384 | :group 'mode-line) | 384 | :group 'mode-line) |
| 385 | (put 'mode-line-percent-position 'risky-local-variable t) | ||
| 385 | 386 | ||
| 386 | (defvar mode-line-position | 387 | (defvar mode-line-position |
| 387 | `((:propertize | 388 | `((:propertize |
| 388 | mode-line-percent-position | 389 | mode-line-percent-position |
| 389 | 'local-map mode-line-column-line-number-mode-map | 390 | local-map ,mode-line-column-line-number-mode-map |
| 390 | 'mouse-face 'mode-line-highlight | 391 | mouse-face mode-line-highlight |
| 391 | ;; XXX needs better description | 392 | ;; XXX needs better description |
| 392 | 'help-echo "Size indication mode\n\ | 393 | help-echo "Size indication mode\n\ |
| 393 | mouse-1: Display Line and Column Mode Menu") | 394 | mouse-1: Display Line and Column Mode Menu") |
| 394 | (size-indication-mode | 395 | (size-indication-mode |
| 395 | (8 ,(propertize | 396 | (8 ,(propertize |