summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuri Linkov <juri@linkov.net>2020-10-29 11:18:33 +0200
committerJuri Linkov <juri@linkov.net>2020-10-29 11:18:33 +0200
commiteae31b01a26f1a31a58f23c72549f4edfb949272 (patch)
treee969d87640f4c7be7694b0a86d13d66fc5788de7
parent46b3db5579e57b9daf16667914205adc99d3f104 (diff)
downloademacs-eae31b01a26f1a31a58f23c72549f4edfb949272.tar.gz
* lisp/bindings.el (narrow-map): Bind C-x n g to goto-line-relative (bug#9917)
-rw-r--r--etc/NEWS1
-rw-r--r--lisp/bindings.el1
2 files changed, 2 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 5e159480e00..4b1272d18bb 100644
--- 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'
diff --git a/lisp/bindings.el b/lisp/bindings.el
index 3930f5b52c6..250234e94c1 100644
--- a/lisp/bindings.el
+++ b/lisp/bindings.el
@@ -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)