diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/minibuf.c | 10 |
2 files changed, 13 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 019eb87df0d..6db112d6977 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-06-19 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * minibuf.c (Fread_string): Bind minibuffer-completion-table. | ||
| 4 | |||
| 1 | 2012-06-19 Dmitry Antipov <dmantipov@yandex.ru> | 5 | 2012-06-19 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 6 | ||
| 3 | * alloc.c, bytecode.c, ccl.c, coding.c, composite.c, data.c, dosfns.c: | 7 | * alloc.c, bytecode.c, ccl.c, coding.c, composite.c, data.c, dosfns.c: |
diff --git a/src/minibuf.c b/src/minibuf.c index d0e503486fd..b0f4e3db6c1 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -1035,12 +1035,20 @@ Fifth arg INHERIT-INPUT-METHOD, if non-nil, means the minibuffer inherits | |||
| 1035 | (Lisp_Object prompt, Lisp_Object initial_input, Lisp_Object history, Lisp_Object default_value, Lisp_Object inherit_input_method) | 1035 | (Lisp_Object prompt, Lisp_Object initial_input, Lisp_Object history, Lisp_Object default_value, Lisp_Object inherit_input_method) |
| 1036 | { | 1036 | { |
| 1037 | Lisp_Object val; | 1037 | Lisp_Object val; |
| 1038 | ptrdiff_t count = SPECPDL_INDEX (); | ||
| 1039 | |||
| 1040 | /* Just in case we're in a recursive minibuffer, make it clear that the | ||
| 1041 | previous minibuffer's completion table does not apply to the new | ||
| 1042 | minibuffer. | ||
| 1043 | FIXME: `minibuffer-completion-table' should be buffer-local instead. */ | ||
| 1044 | specbind (Qminibuffer_completion_table, Qnil); | ||
| 1045 | |||
| 1038 | val = Fread_from_minibuffer (prompt, initial_input, Qnil, | 1046 | val = Fread_from_minibuffer (prompt, initial_input, Qnil, |
| 1039 | Qnil, history, default_value, | 1047 | Qnil, history, default_value, |
| 1040 | inherit_input_method); | 1048 | inherit_input_method); |
| 1041 | if (STRINGP (val) && SCHARS (val) == 0 && ! NILP (default_value)) | 1049 | if (STRINGP (val) && SCHARS (val) == 0 && ! NILP (default_value)) |
| 1042 | val = CONSP (default_value) ? XCAR (default_value) : default_value; | 1050 | val = CONSP (default_value) ? XCAR (default_value) : default_value; |
| 1043 | return val; | 1051 | return unbind_to (count, val); |
| 1044 | } | 1052 | } |
| 1045 | 1053 | ||
| 1046 | DEFUN ("read-no-blanks-input", Fread_no_blanks_input, Sread_no_blanks_input, 1, 3, 0, | 1054 | DEFUN ("read-no-blanks-input", Fread_no_blanks_input, Sread_no_blanks_input, 1, 3, 0, |