summaryrefslogtreecommitdiff
path: root/modules/show-kill-ring.el
diff options
context:
space:
mode:
Diffstat (limited to 'modules/show-kill-ring.el')
-rw-r--r--modules/show-kill-ring.el11
1 files changed, 5 insertions, 6 deletions
diff --git a/modules/show-kill-ring.el b/modules/show-kill-ring.el
index a1f3a637..dbe7c934 100644
--- a/modules/show-kill-ring.el
+++ b/modules/show-kill-ring.el
@@ -63,12 +63,11 @@ This makes it easy to figure out which prefix to pass to yank."
;; show it
(goto-char (point-min))
(setq buffer-read-only t)
- (set-buffer-modified-p nil)
-
- ;; it's better to leave the point in it's buffer
- ;; so user can C-u (Item#) C-y in place.
- ;; (pop-to-buffer buf)
- ))
+ (set-buffer-modified-p nil)
+ ;; display-buffer rather than pop-to-buffer
+ ;; easier for user to C-u (item#) C-y
+ ;; while the point is where they want to yank
+ (display-buffer buf)))
(defun show-kill-insert-item (item)
"Insert an ITEM from the kill ring into the current buffer.