* register.el (insert-register): Change default interactive insertion mode.

This commit is contained in:
Daniel Colascione 2014-09-14 16:11:52 -07:00
parent 36cac32093
commit 5ce52d05c9
4 changed files with 15 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2014-09-14 Daniel Colascione <dancol@dancol.org>
* NEWS: Mention changes to `insert-register'
2014-09-13 Christopher Schmidt <ch@ristopher.com>
* NEWS: Mention nil `calendar-mode-line-format' will not modify

View file

@ -49,6 +49,9 @@ Use './configure PKG_CONFIG=/full/name/of/pkg-config' if you need to.
* Changes in Emacs 24.5
** `insert-register' now leaves point after the inserted text
when called interactively. A prefix argument toggles this behavior.
** New var `truncate-string-ellipsis' to choose how to indicate truncation.
---

View file

@ -1,3 +1,8 @@
2014-09-14 Daniel Colascione <dancol@dancol.org>
* register.el (insert-register): Change default interactive
insertion mode.
2014-09-14 Michael Albinus <michael.albinus@gmx.de>
* net/tramp-cache.el (tramp-flush-file-function): Simplify check.

View file

@ -425,13 +425,14 @@ Interactively, reads the register using `register-read-with-preview'."
"Insert contents of register REGISTER. (REGISTER is a character.)
Normally puts point before and mark after the inserted text.
If optional second arg is non-nil, puts mark before and point after.
Interactively, second arg is non-nil if prefix arg is supplied.
Interactively, second arg is nil if prefix arg is supplied and t
otherwise.
Interactively, reads the register using `register-read-with-preview'."
(interactive (progn
(barf-if-buffer-read-only)
(list (register-read-with-preview "Insert register: ")
current-prefix-arg)))
(not current-prefix-arg))))
(push-mark)
(let ((val (get-register register)))
(cond