aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/simple.el
diff options
context:
space:
mode:
authorStefan Kangas2021-10-12 18:23:46 +0200
committerStefan Kangas2021-10-14 00:23:34 +0200
commit97c4f84cbce4fef3dddebdae29df590bbb7fd516 (patch)
tree28a6ba3e0a235e937197690aa36282793c1eb99c /lisp/simple.el
parent845640538ecec167bbda8abeb98fcee70d68fd0a (diff)
downloademacs-97c4f84cbce4fef3dddebdae29df590bbb7fd516.tar.gz
emacs-97c4f84cbce4fef3dddebdae29df590bbb7fd516.zip
Double the default value of kill-ring-max
* lisp/simple.el (kill-ring-max): Double the default to 120. * lisp/menu-bar.el (yank-menu-length): Doc fix. (yank-menu-max-items): New variable. (menu-bar-update-yank-menu): Don't display more than 'yank-menu-max-items' in the yank menu. * doc/emacs/custom.texi (Changing a Variable): * doc/emacs/killing.texi (Kill Ring): * doc/lispintro/emacs-lisp-intro.texi (kill-new function): * doc/lispref/text.texi (Internals of Kill Ring): Doc fix to use the new value.
Diffstat (limited to 'lisp/simple.el')
-rw-r--r--lisp/simple.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 7b6c52a3898..c7bb928cd73 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -5076,10 +5076,11 @@ interact nicely with `interprogram-cut-function' and
5076interaction; you may want to use them instead of manipulating the kill 5076interaction; you may want to use them instead of manipulating the kill
5077ring directly.") 5077ring directly.")
5078 5078
5079(defcustom kill-ring-max 60 5079(defcustom kill-ring-max 120
5080 "Maximum length of kill ring before oldest elements are thrown away." 5080 "Maximum length of kill ring before oldest elements are thrown away."
5081 :type 'integer 5081 :type 'integer
5082 :group 'killing) 5082 :group 'killing
5083 :version "29.1")
5083 5084
5084(defvar kill-ring-yank-pointer nil 5085(defvar kill-ring-yank-pointer nil
5085 "The tail of the kill ring whose car is the last thing yanked.") 5086 "The tail of the kill ring whose car is the last thing yanked.")