diff options
| author | Daniel Colascione | 2014-09-14 16:11:52 -0700 |
|---|---|---|
| committer | Daniel Colascione | 2014-09-14 16:11:52 -0700 |
| commit | 5ce52d05c93e0c006bbd145b938aa9fab7dfcb8d (patch) | |
| tree | 467ced2bf8b3819b4988664d747ff37313a559c6 | |
| parent | 36cac3209313d849f3eef6e4c7278eb018817e23 (diff) | |
| download | emacs-5ce52d05c93e0c006bbd145b938aa9fab7dfcb8d.tar.gz emacs-5ce52d05c93e0c006bbd145b938aa9fab7dfcb8d.zip | |
* register.el (insert-register): Change default interactive insertion mode.
| -rw-r--r-- | etc/ChangeLog | 4 | ||||
| -rw-r--r-- | etc/NEWS | 3 | ||||
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/register.el | 5 |
4 files changed, 15 insertions, 2 deletions
diff --git a/etc/ChangeLog b/etc/ChangeLog index 42bd7cb40d1..a57605be64d 100644 --- a/etc/ChangeLog +++ b/etc/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2014-09-14 Daniel Colascione <dancol@dancol.org> | ||
| 2 | |||
| 3 | * NEWS: Mention changes to `insert-register' | ||
| 4 | |||
| 1 | 2014-09-13 Christopher Schmidt <ch@ristopher.com> | 5 | 2014-09-13 Christopher Schmidt <ch@ristopher.com> |
| 2 | 6 | ||
| 3 | * NEWS: Mention nil `calendar-mode-line-format' will not modify | 7 | * NEWS: Mention nil `calendar-mode-line-format' will not modify |
| @@ -49,6 +49,9 @@ Use './configure PKG_CONFIG=/full/name/of/pkg-config' if you need to. | |||
| 49 | 49 | ||
| 50 | * Changes in Emacs 24.5 | 50 | * Changes in Emacs 24.5 |
| 51 | 51 | ||
| 52 | ** `insert-register' now leaves point after the inserted text | ||
| 53 | when called interactively. A prefix argument toggles this behavior. | ||
| 54 | |||
| 52 | ** New var `truncate-string-ellipsis' to choose how to indicate truncation. | 55 | ** New var `truncate-string-ellipsis' to choose how to indicate truncation. |
| 53 | 56 | ||
| 54 | --- | 57 | --- |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 35df2c5bf17..b9990cbe594 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-09-14 Daniel Colascione <dancol@dancol.org> | ||
| 2 | |||
| 3 | * register.el (insert-register): Change default interactive | ||
| 4 | insertion mode. | ||
| 5 | |||
| 1 | 2014-09-14 Michael Albinus <michael.albinus@gmx.de> | 6 | 2014-09-14 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 7 | ||
| 3 | * net/tramp-cache.el (tramp-flush-file-function): Simplify check. | 8 | * net/tramp-cache.el (tramp-flush-file-function): Simplify check. |
diff --git a/lisp/register.el b/lisp/register.el index eb3c71afece..ffa3c954ed2 100644 --- a/lisp/register.el +++ b/lisp/register.el | |||
| @@ -425,13 +425,14 @@ Interactively, reads the register using `register-read-with-preview'." | |||
| 425 | "Insert contents of register REGISTER. (REGISTER is a character.) | 425 | "Insert contents of register REGISTER. (REGISTER is a character.) |
| 426 | Normally puts point before and mark after the inserted text. | 426 | Normally puts point before and mark after the inserted text. |
| 427 | If optional second arg is non-nil, puts mark before and point after. | 427 | If optional second arg is non-nil, puts mark before and point after. |
| 428 | Interactively, second arg is non-nil if prefix arg is supplied. | 428 | Interactively, second arg is nil if prefix arg is supplied and t |
| 429 | otherwise. | ||
| 429 | 430 | ||
| 430 | Interactively, reads the register using `register-read-with-preview'." | 431 | Interactively, reads the register using `register-read-with-preview'." |
| 431 | (interactive (progn | 432 | (interactive (progn |
| 432 | (barf-if-buffer-read-only) | 433 | (barf-if-buffer-read-only) |
| 433 | (list (register-read-with-preview "Insert register: ") | 434 | (list (register-read-with-preview "Insert register: ") |
| 434 | current-prefix-arg))) | 435 | (not current-prefix-arg)))) |
| 435 | (push-mark) | 436 | (push-mark) |
| 436 | (let ((val (get-register register))) | 437 | (let ((val (get-register register))) |
| 437 | (cond | 438 | (cond |