From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/elisp/recording-input.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 devdocs/elisp/recording-input.html (limited to 'devdocs/elisp/recording-input.html') diff --git a/devdocs/elisp/recording-input.html b/devdocs/elisp/recording-input.html new file mode 100644 index 00000000..ffd2688c --- /dev/null +++ b/devdocs/elisp/recording-input.html @@ -0,0 +1,14 @@ +

Recording Input

Function: recent-keys &optional include-cmds +
+

This function returns a vector containing the last 300 input events from the keyboard or mouse. All input events are included, whether or not they were used as parts of key sequences. Thus, you always get the last 300 input events, not counting events generated by keyboard macros. (These are excluded because they are less interesting for debugging; it should be enough to see the events that invoked the macros.)

If include-cmds is non-nil, complete key sequences in the result vector are interleaved with pseudo-events of the form (nil . COMMAND), where COMMAND is the binding of the key sequence (see Command Overview).

A call to clear-this-command-keys (see Command Loop Info) causes this function to return an empty vector immediately afterward.

+
+
Command: open-dribble-file filename +
+

This function opens a dribble file named filename. When a dribble file is open, each input event from the keyboard or mouse (but not those from keyboard macros) is written in that file. A non-character event is expressed using its printed representation surrounded by ‘<…>’. Be aware that sensitive information (such as passwords) may end up recorded in the dribble file.

You close the dribble file by calling this function with an argument of nil.

+
+

See also the open-termscript function (see Terminal Output).

+

+ Copyright © 1990-1996, 1998-2022 Free Software Foundation, Inc.
Licensed under the GNU GPL license.
+ https://www.gnu.org/software/emacs/manual/html_node/elisp/Recording-Input.html +

+
-- cgit v1.2.3