From: Drew Adams <drew.adams@oracle.com>
To: Daniel Fleischer <danflscr@gmail.com>,
"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: RE: [External] : Re: Log all my issued commands and keyboard operations.
Date: Sun, 21 May 2023 18:24:51 +0000 [thread overview]
Message-ID: <SJ0PR10MB548807A3F7AAA2207CEA9D6DF3429@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)
In-Reply-To: <m2wn12b1ha.fsf@gmail.com>
> Try to examine the `command-history' variable;
> it's a list of all the commands you ran.
No, it's not, at all. It's a minibuffer history
variable.
______
`C-h v' tells you:
command-history is a variable defined in ‘C source code’.
Its value is
((describe-variable 'command-history)
(kill-buffer "test-foo"))
List of recent commands that read arguments from terminal.
Each command is represented as a form to evaluate.
Maximum length of the history list is determined by the value
of ‘history-length’, which see.
______
And (emacs) `Repetition' tells you:
The list of previous minibuffer-using commands is stored as a Lisp
list in the variable ‘command-history’. Each element is a Lisp
expression that describes one command and its arguments. Lisp programs
can re-execute a command by calling ‘eval’ with the ‘command-history’
element.
______
And (elisp) `Command History' tells you:
This variable’s value is a list of recent complex commands, each
represented as a form to evaluate. It continues to accumulate all
complex commands for the duration of the editing session, but when
it reaches the maximum size (*note Minibuffer History::), the
oldest elements are deleted as new ones are added.
command-history
⇒ ((switch-to-buffer "chistory.texi")
(describe-key "^X^[")
(visit-tags-table "~/emacs/src/")
(find-tag "repeat-complex-command"))
This history list is actually a special case of minibuffer history
(*note Minibuffer History::), with one special twist: the elements are
expressions rather than strings.
There are a number of commands devoted to the editing and recall of
previous commands. The commands ‘repeat-complex-command’, and
‘list-command-history’ are described in the user manual (*note
(emacs)Repetition::). Within the minibuffer, the usual minibuffer
history commands are available.
prev parent reply other threads:[~2023-05-21 18:24 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-20 14:02 Log all my issued commands and keyboard operations Hongyi Zhao
2023-05-20 14:16 ` Daniel Fleischer
2023-05-20 22:53 ` Hongyi Zhao
2023-05-20 23:40 ` Michael Heerdegen
2023-05-20 23:55 ` Hongyi Zhao
2023-05-21 0:06 ` Michael Heerdegen
2023-05-21 0:11 ` Hongyi Zhao
2023-05-21 0:37 ` Michael Heerdegen
2023-05-21 0:56 ` Hongyi Zhao
2023-05-21 2:16 ` [External] : " Drew Adams
2023-05-21 2:23 ` Jude DaShiell
2023-05-25 7:47 ` Gregor Zattler
2023-05-21 7:14 ` Daniel Fleischer
2023-05-21 18:24 ` Drew Adams [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=SJ0PR10MB548807A3F7AAA2207CEA9D6DF3429@SJ0PR10MB5488.namprd10.prod.outlook.com \
--to=drew.adams@oracle.com \
--cc=danflscr@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.