mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-02 11:21:42 +00:00
(mode-line-modified): Look up key binding for C-x
C-q. If it's bound call that binding, otherwise call toggle-read-only.
This commit is contained in:
parent
83d5c7724f
commit
f8e5fb70fa
@ -88,7 +88,10 @@ Normally nil in most modes, since there is no process to display.")
|
||||
(interactive "e")
|
||||
(save-selected-window
|
||||
(select-window (posn-window (event-start event)))
|
||||
(toggle-read-only))))
|
||||
(let ((binding (key-binding "\C-x\C-q")))
|
||||
(if binding
|
||||
(funcall binding)
|
||||
(toggle-read-only))))))
|
||||
(set-text-properties 0 (length s)
|
||||
(list 'help-echo
|
||||
"Read-only status: mouse-2 toggles it"
|
||||
|
Loading…
Reference in New Issue
Block a user