mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-22 07:09:54 +00:00
Bind 'revert-buffer' to 'C-x g' globally
* lisp/bindings.el: Bind 'revert-buffer' to 'C-x g' globally. * doc/emacs/files.texi: Replace 'M-x revert-buffer' with 'C-x g'. * etc/NEWS: Document the change (bug#46151).
This commit is contained in:
parent
56804edc83
commit
7d15fa008a
@ -927,9 +927,9 @@ Manual}). For customizations, see the Custom group @code{time-stamp}.
|
||||
|
||||
If you have made extensive changes to a file-visiting buffer and
|
||||
then change your mind, you can @dfn{revert} the changes and go back to
|
||||
the saved version of the file. To do this, type @kbd{M-x
|
||||
revert-buffer}. Since reverting unintentionally could lose a lot of
|
||||
work, Emacs asks for confirmation first.
|
||||
the saved version of the file. To do this, type @kbd{C-x g}. Since
|
||||
reverting unintentionally could lose a lot of work, Emacs asks for
|
||||
confirmation first.
|
||||
|
||||
The @code{revert-buffer} command tries to position point in such a
|
||||
way that, if the file was edited only slightly, you will be at
|
||||
|
3
etc/NEWS
3
etc/NEWS
@ -233,6 +233,9 @@ search string is at least this long. 'lazy-highlight-initial-delay'
|
||||
still applies for shorter search strings, which avoids flicker in the
|
||||
search buffer due to too many matches being highlighted.
|
||||
|
||||
+++
|
||||
** 'revert-buffer' is now bound to 'C-x g' globally.
|
||||
|
||||
|
||||
* Editing Changes in Emacs 28.1
|
||||
|
||||
|
@ -1413,6 +1413,8 @@ if `inhibit-field-text-motion' is non-nil."
|
||||
|
||||
(define-key ctl-x-map "z" 'repeat)
|
||||
|
||||
(define-key ctl-x-map "g" #'revert-buffer)
|
||||
|
||||
(define-key esc-map "\C-l" 'reposition-window)
|
||||
|
||||
(define-key ctl-x-4-map "a" 'add-change-log-entry-other-window)
|
||||
|
Loading…
Reference in New Issue
Block a user