(read_minibuf): Don't add history item if it is

string-equal to the most recent history item.
This commit is contained in:
Brian Fox 1993-09-22 18:13:27 +00:00
parent 03383aafcd
commit 2fdf3ee28c

View file

@ -254,7 +254,9 @@ read_minibuf (map, initial, prompt, backup_n, expflag, histvar, histpos)
/* Add the value to the appropriate history list. */
if (XTYPE (Vminibuffer_history_variable) == Lisp_Symbol
&& ! EQ (XSYMBOL (Vminibuffer_history_variable)->value, Qunbound))
&& ! EQ (XSYMBOL (Vminibuffer_history_variable)->value, Qunbound)
&& NILP (Fstring_equal
(val, Fcar (Fsymbol_value (Vminibuffer_history_variable)))))
Fset (Vminibuffer_history_variable,
Fcons (val, Fsymbol_value (Vminibuffer_history_variable)));