diff options
| author | Paul Eggert | 2014-05-07 12:28:09 -0700 |
|---|---|---|
| committer | Paul Eggert | 2014-05-07 12:28:09 -0700 |
| commit | d1ff9ee403221755ccc259e86e2112959f881047 (patch) | |
| tree | f440703b72457ea070938cf559142e16fcb6010b /src | |
| parent | 551a89e12d1ac5198a4de25ce24d98358bb1f8db (diff) | |
| download | emacs-d1ff9ee403221755ccc259e86e2112959f881047.tar.gz emacs-d1ff9ee403221755ccc259e86e2112959f881047.zip | |
* minibuf.c (read_minibuf): Avoid C99ism in previous patch.
Fixes: debbugs:17430
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/minibuf.c | 12 |
2 files changed, 11 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 027d0fc0d25..3d58769c927 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2014-05-07 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | * minibuf.c (read_minibuf): Avoid C99ism in previous patch (Bug#17430). | ||
| 4 | |||
| 1 | 2014-05-07 Jarek Czekalski <jarekczek@poczta.onet.pl> | 5 | 2014-05-07 Jarek Czekalski <jarekczek@poczta.onet.pl> |
| 2 | 6 | ||
| 3 | Fix initialization of minibuffer history variable (Bug#17430). | 7 | Fix initialization of minibuffer history variable (Bug#17430). |
diff --git a/src/minibuf.c b/src/minibuf.c index 03d6104f226..cd108d88ecc 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -384,6 +384,7 @@ read_minibuf (Lisp_Object map, Lisp_Object initial, Lisp_Object prompt, | |||
| 384 | EMACS_INT pos = 0; | 384 | EMACS_INT pos = 0; |
| 385 | /* String to add to the history. */ | 385 | /* String to add to the history. */ |
| 386 | Lisp_Object histstring; | 386 | Lisp_Object histstring; |
| 387 | Lisp_Object histval; | ||
| 387 | 388 | ||
| 388 | Lisp_Object empty_minibuf; | 389 | Lisp_Object empty_minibuf; |
| 389 | Lisp_Object dummy, frame; | 390 | Lisp_Object dummy, frame; |
| @@ -536,11 +537,12 @@ read_minibuf (Lisp_Object map, Lisp_Object initial, Lisp_Object prompt, | |||
| 536 | Vminibuffer_completing_file_name = Qlambda; | 537 | Vminibuffer_completing_file_name = Qlambda; |
| 537 | 538 | ||
| 538 | /* If variable is unbound, make it nil. */ | 539 | /* If variable is unbound, make it nil. */ |
| 539 | Lisp_Object histval = find_symbol_value (Vminibuffer_history_variable); | 540 | histval = find_symbol_value (Vminibuffer_history_variable); |
| 540 | if (EQ (histval, Qunbound)) { | 541 | if (EQ (histval, Qunbound)) |
| 541 | Fset (Vminibuffer_history_variable, Qnil); | 542 | { |
| 542 | histval = Qnil; | 543 | Fset (Vminibuffer_history_variable, Qnil); |
| 543 | } | 544 | histval = Qnil; |
| 545 | } | ||
| 544 | 546 | ||
| 545 | if (inherit_input_method) | 547 | if (inherit_input_method) |
| 546 | { | 548 | { |