diff options
author | Stefan Kangas <stefan@marxist.se> | 2021-10-12 18:23:46 +0200 |
---|---|---|
committer | Stefan Kangas <stefan@marxist.se> | 2021-10-14 00:23:34 +0200 |
commit | 97c4f84cbce4fef3dddebdae29df590bbb7fd516 (patch) | |
tree | 28a6ba3e0a235e937197690aa36282793c1eb99c /doc | |
parent | 845640538ecec167bbda8abeb98fcee70d68fd0a (diff) | |
download | emacs-97c4f84cbce4fef3dddebdae29df590bbb7fd516.tar.gz |
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 'doc')
-rw-r--r-- | doc/emacs/custom.texi | 2 | ||||
-rw-r--r-- | doc/emacs/killing.texi | 2 | ||||
-rw-r--r-- | doc/lispintro/emacs-lisp-intro.texi | 2 | ||||
-rw-r--r-- | doc/lispref/text.texi | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/doc/emacs/custom.texi b/doc/emacs/custom.texi index 73dfe03898e..eb30a6acc53 100644 --- a/doc/emacs/custom.texi +++ b/doc/emacs/custom.texi @@ -195,7 +195,7 @@ the customization buffer: The first line shows that the variable is named @code{kill-ring-max}, formatted as @samp{Kill Ring Max} for easier -viewing. Its value is @samp{60}. The button labeled @samp{[Hide]}, +viewing. Its value is @samp{120}. The button labeled @samp{[Hide]}, if activated, hides the variable's value and state; this is useful to avoid cluttering up the customization buffer with very long values (for this reason, variables that have very long values may start out diff --git a/doc/emacs/killing.texi b/doc/emacs/killing.texi index 6e4fd77e8b9..76fccdbdfec 100644 --- a/doc/emacs/killing.texi +++ b/doc/emacs/killing.texi @@ -353,7 +353,7 @@ other ways to move text around.) @vindex kill-ring-max The maximum number of entries in the kill ring is controlled by the -variable @code{kill-ring-max}. The default is 60. If you make a new +variable @code{kill-ring-max}. The default is 120. If you make a new kill when this limit has been reached, Emacs makes room by deleting the oldest entry in the kill ring. diff --git a/doc/lispintro/emacs-lisp-intro.texi b/doc/lispintro/emacs-lisp-intro.texi index 6ecd552ebb0..81ae2536339 100644 --- a/doc/lispintro/emacs-lisp-intro.texi +++ b/doc/lispintro/emacs-lisp-intro.texi @@ -8767,7 +8767,7 @@ keeps the kill ring from growing too long. It looks like this: The code checks whether the length of the kill ring is greater than the maximum permitted length. This is the value of -@code{kill-ring-max} (which is 60, by default). If the length of the +@code{kill-ring-max} (which is 120, by default). If the length of the kill ring is too long, then this code sets the last element of the kill ring to @code{nil}. It does this by using two functions, @code{nthcdr} and @code{setcdr}. diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi index 1e062be2c64..163ac9038b9 100644 --- a/doc/lispref/text.texi +++ b/doc/lispref/text.texi @@ -1342,7 +1342,7 @@ that @kbd{C-y} should yank. @defopt kill-ring-max The value of this variable is the maximum length to which the kill ring can grow, before elements are thrown away at the end. The default -value for @code{kill-ring-max} is 60. +value for @code{kill-ring-max} is 120. @end defopt @node Undo |