* Is there a programmatic way to determine the history variable used by a command?
@ 2021-10-27 9:10 ndame via Users list for the GNU Emacs text editor
2021-10-27 15:59 ` [External] : " Drew Adams
0 siblings, 1 reply; 2+ messages in thread
From: ndame via Users list for the GNU Emacs text editor @ 2021-10-27 9:10 UTC (permalink / raw)
To: help-gnu-emacs@gnu.org
Let's say I want to access the minibuffer history elements of an arbitrary command from lisp.
Is there a reliable way to programmatically determine the history variable used by that command?
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: [External] : Is there a programmatic way to determine the history variable used by a command?
2021-10-27 9:10 Is there a programmatic way to determine the history variable used by a command? ndame via Users list for the GNU Emacs text editor
@ 2021-10-27 15:59 ` Drew Adams
0 siblings, 0 replies; 2+ messages in thread
From: Drew Adams @ 2021-10-27 15:59 UTC (permalink / raw)
To: ndame; +Cc: 'Help-Gnu-Emacs (help-gnu-emacs@gnu.org)'
[-- Attachment #1: Type: text/plain, Size: 612 bytes --]
> Let's say I want to access the minibuffer history elements of an
> arbitrary command from lisp.
>
> Is there a reliable way to programmatically determine the history
> variable used by that command?
`C-h v minibuffer-history-variable':
minibuffer-history-variable is a variable defined in `C source code'.
Its value is minibuffer-history
Documentation:
History list symbol to add minibuffer values to.
Each string of minibuffer input, as it appears on exit from the minibuffer,
is added with
(set minibuffer-history-variable
(cons STRING (symbol-value minibuffer-history-variable)))
[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 13942 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-10-27 15:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-27 9:10 Is there a programmatic way to determine the history variable used by a command? ndame via Users list for the GNU Emacs text editor
2021-10-27 15:59 ` [External] : " Drew Adams
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.