aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1997-08-18 18:57:32 +0000
committerRichard M. Stallman1997-08-18 18:57:32 +0000
commitdd9d15d6379485dcd33117c60134ed1c49980dcb (patch)
treeaeb91752f035711d7a821dd3d49249a3e3e9949b /src
parent20713324f5dd5ea000b99a46e70b4378a1521f2b (diff)
downloademacs-dd9d15d6379485dcd33117c60134ed1c49980dcb.tar.gz
emacs-dd9d15d6379485dcd33117c60134ed1c49980dcb.zip
(read_minibuf): New arg disable_multibyte.
(Fcompleting_read): Pass 1 for disable_multibyte if the completion table is read-file-name-internal.
Diffstat (limited to 'src')
-rw-r--r--src/minibuf.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/minibuf.c b/src/minibuf.c
index a9ff9b84e70..34a33adb8b0 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -197,7 +197,7 @@ static Lisp_Object read_minibuf ();
197 197
198static Lisp_Object 198static Lisp_Object
199read_minibuf (map, initial, prompt, backup_n, expflag, 199read_minibuf (map, initial, prompt, backup_n, expflag,
200 histvar, histpos, defalt, allow_props) 200 histvar, histpos, defalt, allow_props, disable_multibyte)
201 Lisp_Object map; 201 Lisp_Object map;
202 Lisp_Object initial; 202 Lisp_Object initial;
203 Lisp_Object prompt; 203 Lisp_Object prompt;
@@ -206,6 +206,7 @@ read_minibuf (map, initial, prompt, backup_n, expflag,
206 Lisp_Object histvar; 206 Lisp_Object histvar;
207 Lisp_Object histpos; 207 Lisp_Object histpos;
208 Lisp_Object defalt; 208 Lisp_Object defalt;
209 int disable_multibyte;
209{ 210{
210 Lisp_Object val; 211 Lisp_Object val;
211 int count = specpdl_ptr - specpdl; 212 int count = specpdl_ptr - specpdl;
@@ -642,7 +643,7 @@ DEFUN ("read-from-minibuffer", Fread_from_minibuffer, Sread_from_minibuffer, 1,
642 val = read_minibuf (keymap, initial_contents, prompt, 643 val = read_minibuf (keymap, initial_contents, prompt,
643 make_number (pos), !NILP (read), 644 make_number (pos), !NILP (read),
644 histvar, histpos, default_value, 645 histvar, histpos, default_value,
645 minibuffer_allow_text_properties); 646 minibuffer_allow_text_properties, 0);
646 if (STRINGP (val) && XSTRING (val)->size == 0 && ! NILP (default_value)) 647 if (STRINGP (val) && XSTRING (val)->size == 0 && ! NILP (default_value))
647 val = default_value; 648 val = default_value;
648 UNGCPRO; 649 UNGCPRO;
@@ -661,7 +662,7 @@ is a string to insert in the minibuffer before reading.")
661 CHECK_STRING (initial_contents, 1); 662 CHECK_STRING (initial_contents, 1);
662 return read_minibuf (Vminibuffer_local_map, initial_contents, 663 return read_minibuf (Vminibuffer_local_map, initial_contents,
663 prompt, Qnil, 1, Qminibuffer_history, 664 prompt, Qnil, 1, Qminibuffer_history,
664 make_number (0), Qnil, 0); 665 make_number (0), Qnil, 0, 0);
665} 666}
666 667
667DEFUN ("eval-minibuffer", Feval_minibuffer, Seval_minibuffer, 1, 2, 0, 668DEFUN ("eval-minibuffer", Feval_minibuffer, Seval_minibuffer, 1, 2, 0,
@@ -700,7 +701,7 @@ Prompt with PROMPT, and provide INIT as an initial value of the input string.")
700 CHECK_STRING (init, 1); 701 CHECK_STRING (init, 1);
701 702
702 return read_minibuf (Vminibuffer_local_ns_map, init, prompt, Qnil, 703 return read_minibuf (Vminibuffer_local_ns_map, init, prompt, Qnil,
703 0, Qminibuffer_history, make_number (0), Qnil, 0); 704 0, Qminibuffer_history, make_number (0), Qnil, 0, 0);
704} 705}
705 706
706DEFUN ("read-command", Fread_command, Sread_command, 1, 2, 0, 707DEFUN ("read-command", Fread_command, Sread_command, 1, 2, 0,
@@ -1164,6 +1165,7 @@ DEFUN ("completing-read", Fcompleting_read, Scompleting_read, 2, 7, 0,
1164 int pos = 0; 1165 int pos = 0;
1165 int count = specpdl_ptr - specpdl; 1166 int count = specpdl_ptr - specpdl;
1166 struct gcpro gcpro1; 1167 struct gcpro gcpro1;
1168 int disable_multibyte = EQ (table, Qread_file_name_internal);
1167 1169
1168 GCPRO1 (def); 1170 GCPRO1 (def);
1169 1171
@@ -1209,7 +1211,7 @@ DEFUN ("completing-read", Fcompleting_read, Scompleting_read, 2, 7, 0,
1209 ? Vminibuffer_local_completion_map 1211 ? Vminibuffer_local_completion_map
1210 : Vminibuffer_local_must_match_map, 1212 : Vminibuffer_local_must_match_map,
1211 init, prompt, make_number (pos), 0, 1213 init, prompt, make_number (pos), 0,
1212 histvar, histpos, def, 0); 1214 histvar, histpos, def, 0, disable_multibyte);
1213 if (STRINGP (val) && XSTRING (val)->size == 0 && ! NILP (def)) 1215 if (STRINGP (val) && XSTRING (val)->size == 0 && ! NILP (def))
1214 val = def; 1216 val = def;
1215 RETURN_UNGCPRO (unbind_to (count, val)); 1217 RETURN_UNGCPRO (unbind_to (count, val));