# HG changeset patch # User Karl Heuer # Date 779751060 0 # Node ID af08b3d2e30fb6c4160564628985b72c7cb4cbd9 # Parent 81a2817b99b2be05b244310eafbc2e7f64838124 (read_minibuf): Don't add to the history list if the minibuffer string is empty, since it is not very useful. diff -r 81a2817b99b2 -r af08b3d2e30f src/minibuf.c --- a/src/minibuf.c Fri Sep 16 21:16:20 1994 +0000 +++ b/src/minibuf.c Fri Sep 16 21:31:00 1994 +0000 @@ -269,8 +269,9 @@ /* 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,