summaryrefslogtreecommitdiff
path: root/doc/misc/calc.texi
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-04-26 11:39:38 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-04-27 13:25:35 -0700
commit134f4ff38b323af8892520200307e9d54ae90200 (patch)
tree654dc2d747c6c53985d16a5b1ad43562b29c9999 /doc/misc/calc.texi
parent38d87c43c2ad727406dcfe316aac5e24e202c251 (diff)
downloademacs-134f4ff38b323af8892520200307e9d54ae90200.tar.gz
New user option 'calc-kill-line-numbering'
* lisp/calc/calc.el (calc-kill-line-numbering): New defcustom. * lisp/calc/calc-yank.el (calc-kill): Unless calc-kill-line-numbering is non-nil, do not include line numbering in copied text (bug#55133). * etc/NEWS: * doc/misc/calc.texi (Killing from the Stack): Document the change.
Diffstat (limited to 'doc/misc/calc.texi')
-rw-r--r--doc/misc/calc.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/misc/calc.texi b/doc/misc/calc.texi
index d83edc15f30..9bda6af1c5b 100644
--- a/doc/misc/calc.texi
+++ b/doc/misc/calc.texi
@@ -29877,6 +29877,12 @@ with no argument copies only the number itself into the kill ring, whereas
@kbd{C-k} with a prefix argument of 1 copies the number with its trailing
newline.
+You can customize @code{calc-kill-line-numbering} to nil to exclude
+line numbering from kills and copies made by @code{calc-kill} and
+@code{calc-copy-as-kill}. This option does not affect calc kill and
+copy commands which operate on the region, as that would not make
+sense.
+
@node Yanking Into Stack
@section Yanking into the Stack