mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-14 16:50:58 +00:00
(read_minibuf): Don't add to the history list if the minibuffer string is
empty, since it is not very useful.
This commit is contained in:
parent
5e9c82960a
commit
7c70cfd377
@ -269,8 +269,9 @@ read_minibuf (map, initial, prompt, backup_n, expflag, histvar, histpos)
|
||||
/* VAL is the string of minibuffer text. */
|
||||
last_minibuf_string = val;
|
||||
|
||||
/* Add the value to the appropriate history list. */
|
||||
if (XTYPE (Vminibuffer_history_variable) == Lisp_Symbol
|
||||
/* Add the value to the appropriate history list unless it is empty. */
|
||||
if (XSTRING (val)->size != 0
|
||||
&& XTYPE (Vminibuffer_history_variable) == Lisp_Symbol
|
||||
&& ! EQ (XSYMBOL (Vminibuffer_history_variable)->value, Qunbound))
|
||||
{
|
||||
/* If the caller wanted to save the value read on a history list,
|
||||
|
Loading…
Reference in New Issue
Block a user