diff options
author | Glenn Morris <rgm@gnu.org> | 2014-05-07 20:41:21 -0700 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2014-05-07 20:41:21 -0700 |
commit | fb3f83f5fd9e80347c8b8e36f6eaefbb912fe57b (patch) | |
tree | f106c360c3aef01bcacdc77b66b7c5b20261502e /src/minibuf.c | |
parent | 1ba38c429fa6ce17568771ef51c8e53b1a72bb94 (diff) | |
parent | 606695a67801acfd1792110e4ea3228b50b0117d (diff) | |
download | emacs-fb3f83f5fd9e80347c8b8e36f6eaefbb912fe57b.tar.gz |
Merge from emacs-24; up to 2014-05-08T03:34:20Z!rgm@gnu.org
Diffstat (limited to 'src/minibuf.c')
-rw-r--r-- | src/minibuf.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/minibuf.c b/src/minibuf.c index 8b742cf88ca..06fe0c07df6 100644 --- a/src/minibuf.c +++ b/src/minibuf.c @@ -384,6 +384,7 @@ read_minibuf (Lisp_Object map, Lisp_Object initial, Lisp_Object prompt, EMACS_INT pos = 0; /* String to add to the history. */ Lisp_Object histstring; + Lisp_Object histval; Lisp_Object empty_minibuf; Lisp_Object dummy, frame; @@ -535,6 +536,14 @@ read_minibuf (Lisp_Object map, Lisp_Object initial, Lisp_Object prompt, if (!NILP (Vminibuffer_completing_file_name)) Vminibuffer_completing_file_name = Qlambda; + /* If variable is unbound, make it nil. */ + histval = find_symbol_value (Vminibuffer_history_variable); + if (EQ (histval, Qunbound)) + { + Fset (Vminibuffer_history_variable, Qnil); + histval = Qnil; + } + if (inherit_input_method) { /* `current-input-method' is buffer local. So, remember it in @@ -703,13 +712,6 @@ read_minibuf (Lisp_Object map, Lisp_Object initial, Lisp_Object prompt, { /* If the caller wanted to save the value read on a history list, then do so if the value is not already the front of the list. */ - Lisp_Object histval; - - /* If variable is unbound, make it nil. */ - - histval = find_symbol_value (Vminibuffer_history_variable); - if (EQ (histval, Qunbound)) - Fset (Vminibuffer_history_variable, Qnil); /* The value of the history variable must be a cons or nil. Other values are unacceptable. We silently ignore these values. */ |