summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorTino Calancha <ccalancha@suse.com>2020-08-27 22:47:35 +0200
committerTino Calancha <ccalancha@suse.com>2020-08-27 22:53:35 +0200
commit0382368015bfcdb7b88dd68a739f2bc5cde77bce (patch)
tree8533e0ffa0f198e8a2cf8780b10eaa43291dc80c /lisp
parenta1999fb319827a2e0cb2bea17dfa190ac81316ef (diff)
downloademacs-bug#38796-lossage-limit.tar.gz
Use only one function to retrieve/set lossage sizebug#38796-lossage-limit
* src/keyboard.c (update-lossage-size): Rename it as lossage-size. Called with no arguments, return the current lossage limit. Called with ARG sets the lossage limit. All callers updated. * doc/emacs/help.texi: Ammend documentation. * etc/NEWS: Amend entry. * lisp/help.el (view-lossage): Fix docstring. * lisp/comint.el (comint-send-invisible) * lisp/term.el (term-read-noecho): Mention the new command in the docstrings. * test/src/keyboard-tests.el: Ammend test.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/comint.el2
-rw-r--r--lisp/help.el2
-rw-r--r--lisp/term.el3
3 files changed, 4 insertions, 3 deletions
diff --git a/lisp/comint.el b/lisp/comint.el
index be0e32b9e09..afc8395b36f 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -2393,7 +2393,7 @@ password prompting should occur.")
Then send it to the process running in the current buffer.
The string is sent using `comint-input-sender'.
Security bug: your string can still be temporarily recovered with
-\\[view-lossage]; `clear-this-command-keys' can fix that."
+\\[view-lossage]; `clear-this-command-keys' and `lossage-size' can fix that."
(interactive "P") ; Defeat snooping via C-x ESC ESC
(let ((proc (get-buffer-process (current-buffer)))
(prefix
diff --git a/lisp/help.el b/lisp/help.el
index 1f12666c7e6..d3b0e02f081 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -458,7 +458,7 @@ the variable `message-log-max'."
"Display last input keystrokes and the commands run.
For convenience this uses the same format as
`edit-last-kbd-macro'.
-See `update-lossage-size' to update the number of recorded keystrokes.
+See `lossage-size' to update the number of recorded keystrokes.
To record all your input, use `open-dribble-file'."
(interactive)
diff --git a/lisp/term.el b/lisp/term.el
index e77c2c1331b..e39d03e8cdc 100644
--- a/lisp/term.el
+++ b/lisp/term.el
@@ -2236,7 +2236,8 @@ filter and C-g is pressed, this function returns nil rather than a string).
Note that the keystrokes comprising the text can still be recovered
\(temporarily) with \\[view-lossage]. This may be a security bug for some
-applications."
+applications. See `clear-this-command-keys' and `lossage-size' for ways
+to fix that."
(declare (obsolete read-passwd "27.1"))
(let ((ans "")
(c 0)