summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorDaniel Martín <mardani29@yahoo.es>2020-12-14 17:16:00 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2020-12-14 17:16:00 +0100
commit0dd8d53344a822842660d2ac75108f40ba9ff0f4 (patch)
tree8407f41d59ccff3c02acf9d90f3776999b00aa6e /etc
parent10bc4eac5bb2e7e4b520628286a52f0508332119 (diff)
downloademacs-0dd8d53344a822842660d2ac75108f40ba9ff0f4.tar.gz
Make goto-char offer the number at point as default
* lisp/subr.el (read-natnum-interactive): New function to read natural numbers for interactive functions. * src/editfns.c (Fgoto_char): Call read-natnum-interactive from the interactive definition of goto-char to offer the number at point as default. Also expand the docstring to document this new interactive behavior. * doc/emacs/basic.texi (Moving Point): Expand the Emacs manual to document this new behavior. * etc/NEWS: And announce it (bug#45199).
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index a5e2c9cf26a..05274a2d6c6 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -258,6 +258,10 @@ buffer to be able to move point to the inaccessible portion.
'goto-line-relative' is bound to 'C-x n g'.
+++
+** When called interactively, 'goto-char' now offers the number at
+point as default.
+
++++
** When 'suggest-key-bindings' is non-nil, the completion list of 'M-x'
shows equivalent key bindings for all commands that have them.