]> git.eshelyaron.com Git - emacs.git/commit
New command goto-line-relative (bug#5042, bug#9917)
authorJuri Linkov <juri@linkov.net>
Wed, 23 Sep 2020 19:39:32 +0000 (22:39 +0300)
committerJuri Linkov <juri@linkov.net>
Wed, 23 Sep 2020 19:39:32 +0000 (22:39 +0300)
commitdc86c4cc0ba230c632b10cefb22b9fec1cd1d046
tree92a8db4b07c29afbd77848760685008a3f82ff1e
parentad285e0eb8ae18f41a4d94b1a57a5ee118f6814f
New command goto-line-relative (bug#5042, bug#9917)

* lisp/simple.el (goto-line-read-args): New function with code from goto-line.
(goto-line): New arg RELATIVE.  Also use 'widen-automatically' to
leave all lines accessible in the narrowed buffer.
(goto-line-relative): New command.

* lisp/info.el (Info-mode-map): Remap 'goto-line' to 'goto-line-relative'.

* doc/emacs/basic.texi (Moving Point):
* doc/emacs/display.texi (Optional Mode Line): Mention goto-line-relative.
doc/emacs/basic.texi
doc/emacs/display.texi
etc/NEWS
lisp/info.el
lisp/simple.el