Commit 1b657835 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(keyboard-escape-quit): Exit recursive edits,

and switch away from buffers whose names start with space.
parent 45f13532
......@@ -2843,10 +2843,14 @@ or go back to just one window (by deleting all but the selected window)."
((and transient-mark-mode
mark-active)
(deactivate-mark))
((> (recursion-depth) 0)
(exit-recursive-edit))
(buffer-quit-function
(funcall buffer-quit-function))
((not (one-window-p t))
(delete-other-windows))))
(delete-other-windows))
((string-match "^ \\*" (buffer-name (current-buffer)))
(bury-buffer))))
(define-key global-map "\e\e\e" 'keyboard-escape-quit)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment