]> git.eshelyaron.com Git - emacs.git/commitdiff
(read_minibuf): Don't add history item if it is
authorBrian Fox <bfox@gnu.org>
Wed, 22 Sep 1993 18:13:27 +0000 (18:13 +0000)
committerBrian Fox <bfox@gnu.org>
Wed, 22 Sep 1993 18:13:27 +0000 (18:13 +0000)
string-equal to the most recent history item.

src/minibuf.c

index d9f1a35620dfbbf38ce6844fe99b4a28c326c95f..0dc06a99e2aec6f65bb81ad78fca2633ab586f2b 100644 (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)));