]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/bindings.el (narrow-map): Bind C-x n g to goto-line-relative (bug#9917)
authorJuri Linkov <juri@linkov.net>
Thu, 29 Oct 2020 09:18:33 +0000 (11:18 +0200)
committerJuri Linkov <juri@linkov.net>
Thu, 29 Oct 2020 09:18:33 +0000 (11:18 +0200)
etc/NEWS
lisp/bindings.el

index 5e159480e0093d9fdabba0f8cb10067b7b03b8d7..4b1272d18bbe29b463a2248074ab4edbc12dc135 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -201,6 +201,7 @@ It moves point to the line relative to the accessible portion of the
 narrowed buffer.  'M-g M-g' in Info is rebound to this command.
 When 'widen-automatically' is non-nil, 'goto-line' widens the narrowed
 buffer to be able to move point to the inaccessible portion.
+'goto-line-relative' is bound to 'C-x n g'.
 
 +++
 ** When 'suggest-key-bindings' is non-nil, the completion list of 'M-x'
index 3930f5b52c60ac077db378c8bff6e8942186921e..250234e94c1ee74a6f520bcc8d1371caa5396261 100644 (file)
@@ -918,6 +918,7 @@ if `inhibit-field-text-motion' is non-nil."
 
 (define-key narrow-map "n" 'narrow-to-region)
 (define-key narrow-map "w" 'widen)
+(define-key narrow-map "g" 'goto-line-relative)
 
 ;; Quitting
 (define-key global-map "\e\e\e" 'keyboard-escape-quit)