diff options
| author | Richard M. Stallman | 1992-07-24 20:13:03 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1992-07-24 20:13:03 +0000 |
| commit | 85b5fe0789f2127885b27a9f8a62f3beb7125762 (patch) | |
| tree | 2c48b85d4a2ba07aa68400d9af4c8098aa7b1d18 /src | |
| parent | 1fcf5f9263bf7e09ae07e9697a82e2835a3adba4 (diff) | |
| download | emacs-85b5fe0789f2127885b27a9f8a62f3beb7125762.tar.gz emacs-85b5fe0789f2127885b27a9f8a62f3beb7125762.zip | |
entered into RCS
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 10 | ||||
| -rw-r--r-- | src/fns.c | 2 | ||||
| -rw-r--r-- | src/minibuf.c | 10 |
3 files changed, 11 insertions, 11 deletions
diff --git a/src/fileio.c b/src/fileio.c index fcf1a6772f0..bb50ac499fa 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -2943,7 +2943,7 @@ DIR defaults to current buffer's directory default.") | |||
| 2943 | (prompt, dir, defalt, mustmatch, initial) | 2943 | (prompt, dir, defalt, mustmatch, initial) |
| 2944 | Lisp_Object prompt, dir, defalt, mustmatch, initial; | 2944 | Lisp_Object prompt, dir, defalt, mustmatch, initial; |
| 2945 | { | 2945 | { |
| 2946 | Lisp_Object val, insdef, tem; | 2946 | Lisp_Object val, insdef, insdef1, tem; |
| 2947 | struct gcpro gcpro1, gcpro2; | 2947 | struct gcpro gcpro1, gcpro2; |
| 2948 | register char *homedir; | 2948 | register char *homedir; |
| 2949 | int count; | 2949 | int count; |
| @@ -2968,6 +2968,7 @@ DIR defaults to current buffer's directory default.") | |||
| 2968 | if (insert_default_directory) | 2968 | if (insert_default_directory) |
| 2969 | { | 2969 | { |
| 2970 | insdef = dir; | 2970 | insdef = dir; |
| 2971 | insdef1 = dir; | ||
| 2971 | if (!NILP (initial)) | 2972 | if (!NILP (initial)) |
| 2972 | { | 2973 | { |
| 2973 | Lisp_Object args[2], pos; | 2974 | Lisp_Object args[2], pos; |
| @@ -2976,11 +2977,11 @@ DIR defaults to current buffer's directory default.") | |||
| 2976 | args[1] = initial; | 2977 | args[1] = initial; |
| 2977 | insdef = Fconcat (2, args); | 2978 | insdef = Fconcat (2, args); |
| 2978 | pos = make_number (XSTRING (dir)->size); | 2979 | pos = make_number (XSTRING (dir)->size); |
| 2979 | insdef = Fcons (insdef, pos); | 2980 | insdef1 = Fcons (insdef, pos); |
| 2980 | } | 2981 | } |
| 2981 | } | 2982 | } |
| 2982 | else | 2983 | else |
| 2983 | insdef = build_string (""); | 2984 | insdef = Qnil, insdef1 = Qnil; |
| 2984 | 2985 | ||
| 2985 | #ifdef VMS | 2986 | #ifdef VMS |
| 2986 | count = specpdl_ptr - specpdl; | 2987 | count = specpdl_ptr - specpdl; |
| @@ -2989,8 +2990,7 @@ DIR defaults to current buffer's directory default.") | |||
| 2989 | 2990 | ||
| 2990 | GCPRO2 (insdef, defalt); | 2991 | GCPRO2 (insdef, defalt); |
| 2991 | val = Fcompleting_read (prompt, intern ("read-file-name-internal"), | 2992 | val = Fcompleting_read (prompt, intern ("read-file-name-internal"), |
| 2992 | dir, mustmatch, | 2993 | dir, mustmatch, insdef1, |
| 2993 | insert_default_directory ? insdef : Qnil, | ||
| 2994 | Qfile_name_history); | 2994 | Qfile_name_history); |
| 2995 | 2995 | ||
| 2996 | #ifdef VMS | 2996 | #ifdef VMS |
| @@ -1170,7 +1170,7 @@ and can edit it until it as been confirmed.") | |||
| 1170 | GCPRO1 (prompt); | 1170 | GCPRO1 (prompt); |
| 1171 | while (1) | 1171 | while (1) |
| 1172 | { | 1172 | { |
| 1173 | ans = Fdowncase (Fread_minibuffer (prompt, Qnil)); | 1173 | ans = Fdowncase (Fread_string (prompt, Qnil)); |
| 1174 | if (XSTRING (ans)->size == 3 && !strcmp (XSTRING (ans)->data, "yes")) | 1174 | if (XSTRING (ans)->size == 3 && !strcmp (XSTRING (ans)->data, "yes")) |
| 1175 | { | 1175 | { |
| 1176 | UNGCPRO; | 1176 | UNGCPRO; |
diff --git a/src/minibuf.c b/src/minibuf.c index 1997f4f5cbb..47b7e1d99be 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -94,9 +94,9 @@ Lisp_Object get_minibuffer (); | |||
| 94 | Lisp_Object read_minibuf (); | 94 | Lisp_Object read_minibuf (); |
| 95 | 95 | ||
| 96 | /* Read from the minibuffer using keymap MAP, initial contents INITIAL | 96 | /* Read from the minibuffer using keymap MAP, initial contents INITIAL |
| 97 | (a string), putting point BACKUP_N chars from the end of INITIAL, | 97 | (a string), putting point minus BACKUP_N chars from the end of INITIAL, |
| 98 | prompting with PROMPT (a string), using history list HISTVAR | 98 | prompting with PROMPT (a string), using history list HISTVAR |
| 99 | with initial position HISTPOS. | 99 | with initial position HISTPOS. (BACKUP_N should be <= 0.) |
| 100 | 100 | ||
| 101 | Normally return the result as a string (the text that was read), | 101 | Normally return the result as a string (the text that was read), |
| 102 | but if EXPFLAG is non-nil, read it and return the object read. */ | 102 | but if EXPFLAG is non-nil, read it and return the object read. */ |
| @@ -106,7 +106,7 @@ read_minibuf (map, initial, prompt, backup_n, expflag, histvar, histpos) | |||
| 106 | Lisp_Object map; | 106 | Lisp_Object map; |
| 107 | Lisp_Object initial; | 107 | Lisp_Object initial; |
| 108 | Lisp_Object prompt; | 108 | Lisp_Object prompt; |
| 109 | Lisp_Object backup_n; | 109 | int backup_n; |
| 110 | int expflag; | 110 | int expflag; |
| 111 | Lisp_Object histvar; | 111 | Lisp_Object histvar; |
| 112 | Lisp_Object histpos; | 112 | Lisp_Object histpos; |
| @@ -378,7 +378,7 @@ Fifth arg HIST, if non-nil, specifies a history list\n\ | |||
| 378 | XFASTINT (histpos) = 0; | 378 | XFASTINT (histpos) = 0; |
| 379 | 379 | ||
| 380 | return read_minibuf (keymap, initial_input, prompt, | 380 | return read_minibuf (keymap, initial_input, prompt, |
| 381 | pos, !NILP (read), histvar, histpos); | 381 | make_number (pos), !NILP (read), histvar, histpos); |
| 382 | } | 382 | } |
| 383 | 383 | ||
| 384 | DEFUN ("read-minibuffer", Fread_minibuffer, Sread_minibuffer, 1, 2, 0, | 384 | DEFUN ("read-minibuffer", Fread_minibuffer, Sread_minibuffer, 1, 2, 0, |
| @@ -869,7 +869,7 @@ Completion ignores case if the ambient value of\n\ | |||
| 869 | val = read_minibuf (NILP (require_match) | 869 | val = read_minibuf (NILP (require_match) |
| 870 | ? Vminibuffer_local_completion_map | 870 | ? Vminibuffer_local_completion_map |
| 871 | : Vminibuffer_local_must_match_map, | 871 | : Vminibuffer_local_must_match_map, |
| 872 | init, prompt, pos, 0, | 872 | init, prompt, make_number (pos), 0, |
| 873 | histvar, histpos); | 873 | histvar, histpos); |
| 874 | return unbind_to (count, val); | 874 | return unbind_to (count, val); |
| 875 | } | 875 | } |