Variable: history-add-new-input
history-add-new-input is a variable defined in minibuf.c.
Value
t
Documentation
Non-nil means to add new elements in history.
If set to nil, minibuffer reading functions don't add new elements to the
history list, so it is possible to do this afterwards by calling
add-to-history explicitly.
Probably introduced at or before Emacs version 22.1.
Source Code
// Defined in /usr/src/emacs/src/minibuf.c
DEFVAR_LISP ("history-add-new-input", Vhistory_add_new_input,
doc: /* Non-nil means to add new elements in history.
If set to nil, minibuffer reading functions don't add new elements to the
history list, so it is possible to do this afterwards by calling
`add-to-history' explicitly. */);