diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/minibuf.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/minibuf.c b/src/minibuf.c index 9f73ea76dad..3771af57043 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -1276,6 +1276,7 @@ are ignored unless STRING itself starts with a space.") | |||
| 1276 | Lisp_Object Vminibuffer_completion_table, Qminibuffer_completion_table; | 1276 | Lisp_Object Vminibuffer_completion_table, Qminibuffer_completion_table; |
| 1277 | Lisp_Object Vminibuffer_completion_predicate, Qminibuffer_completion_predicate; | 1277 | Lisp_Object Vminibuffer_completion_predicate, Qminibuffer_completion_predicate; |
| 1278 | Lisp_Object Vminibuffer_completion_confirm, Qminibuffer_completion_confirm; | 1278 | Lisp_Object Vminibuffer_completion_confirm, Qminibuffer_completion_confirm; |
| 1279 | Lisp_Object Vminibuffer_completing_file_name; | ||
| 1279 | 1280 | ||
| 1280 | /* This comment supplies the doc string for completing-read, | 1281 | /* This comment supplies the doc string for completing-read, |
| 1281 | for make-docfile to see. We cannot put this in the real DEFUN | 1282 | for make-docfile to see. We cannot put this in the real DEFUN |
| @@ -1324,7 +1325,7 @@ DEFUN ("completing-read", Fcompleting_read, Scompleting_read, 2, 8, 0, | |||
| 1324 | int pos = 0; | 1325 | int pos = 0; |
| 1325 | int count = specpdl_ptr - specpdl; | 1326 | int count = specpdl_ptr - specpdl; |
| 1326 | struct gcpro gcpro1; | 1327 | struct gcpro gcpro1; |
| 1327 | int disable_multibyte = EQ (table, Qread_file_name_internal); | 1328 | int disable_multibyte = ! NILP (Vminibuffer_completing_file_name); |
| 1328 | 1329 | ||
| 1329 | GCPRO1 (def); | 1330 | GCPRO1 (def); |
| 1330 | 1331 | ||
| @@ -1700,7 +1701,7 @@ Return nil if there is no valid completion, else t.") | |||
| 1700 | GCPRO2 (completion, tem); | 1701 | GCPRO2 (completion, tem); |
| 1701 | /* If reading a file name, | 1702 | /* If reading a file name, |
| 1702 | expand any $ENVVAR refs in the buffer and in TEM. */ | 1703 | expand any $ENVVAR refs in the buffer and in TEM. */ |
| 1703 | if (EQ (Vminibuffer_completion_table, Qread_file_name_internal)) | 1704 | if (! NILP (Vminibuffer_completing_file_name)) |
| 1704 | { | 1705 | { |
| 1705 | Lisp_Object substituted; | 1706 | Lisp_Object substituted; |
| 1706 | substituted = Fsubstitute_in_file_name (tem); | 1707 | substituted = Fsubstitute_in_file_name (tem); |
| @@ -2194,6 +2195,11 @@ t means to return a list of all possible completions of STRING.\n\ | |||
| 2194 | "Non-nil => demand confirmation of completion before exiting minibuffer."); | 2195 | "Non-nil => demand confirmation of completion before exiting minibuffer."); |
| 2195 | Vminibuffer_completion_confirm = Qnil; | 2196 | Vminibuffer_completion_confirm = Qnil; |
| 2196 | 2197 | ||
| 2198 | DEFVAR_LISP ("minibuffer-completing-file-name", | ||
| 2199 | &Vminibuffer_completing_file_name, | ||
| 2200 | "Non-nil means completing file names."); | ||
| 2201 | Vminibuffer_completing_file_name = Qnil; | ||
| 2202 | |||
| 2197 | DEFVAR_LISP ("minibuffer-help-form", &Vminibuffer_help_form, | 2203 | DEFVAR_LISP ("minibuffer-help-form", &Vminibuffer_help_form, |
| 2198 | "Value that `help-form' takes on inside the minibuffer."); | 2204 | "Value that `help-form' takes on inside the minibuffer."); |
| 2199 | Vminibuffer_help_form = Qnil; | 2205 | Vminibuffer_help_form = Qnil; |