diff options
| author | Federico Tedin | 2019-12-24 17:38:19 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-12-24 17:40:15 +0100 |
| commit | 7c5d6a2afc6c23a7fff8456f506ee2aa2d37a3b9 (patch) | |
| tree | e870880eba7be66662614f8e0efa7d13b208ba5f /etc | |
| parent | 0d2a711dc9a65dc8eb6e995369e70cddbcd7d9a4 (diff) | |
| download | emacs-7c5d6a2afc6c23a7fff8456f506ee2aa2d37a3b9.tar.gz emacs-7c5d6a2afc6c23a7fff8456f506ee2aa2d37a3b9.zip | |
Make goto-line keep a separate input history per buffer
* lisp/simple.el (goto-line-history): New history variable.
(goto-line): Use new (buffer-local) variable as input
history (Bug#38282).
* lisp/subr.el (read-number-history): New history variable.
(read-number): Use the new variable as default input history.
* doc/lispref/minibuf.texi (Minibuffer History): Document
read-number-history and goto-line-history variables.
* etc/NEWS: Announce changes.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 11 |
1 files changed, 11 insertions, 0 deletions
| @@ -65,6 +65,17 @@ GNU General Public License for more details. | |||
| 65 | You should have received a copy of the GNU General Public License | 65 | You should have received a copy of the GNU General Public License |
| 66 | along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. | 66 | along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. |
| 67 | 67 | ||
| 68 | +++ | ||
| 69 | ** 'read-number' now has its own history variable. | ||
| 70 | Additionally, the function now accepts a HIST argument which can be | ||
| 71 | used to specify a custom history variable. | ||
| 72 | |||
| 73 | +++ | ||
| 74 | ** Input history for 'goto-line' is now local to every buffer. | ||
| 75 | Each buffer will keep a separate history of line numbers used with | ||
| 76 | 'goto-line'. This should help making faster the process of finding | ||
| 77 | line numbers that were previously jumped to. | ||
| 78 | |||
| 68 | 79 | ||
| 69 | Local variables: | 80 | Local variables: |
| 70 | coding: utf-8 | 81 | coding: utf-8 |