diff options
| author | Richard M. Stallman | 1992-07-24 07:15:18 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1992-07-24 07:15:18 +0000 |
| commit | 15c65264fae0a306ac53cef41af7b1879051ce17 (patch) | |
| tree | 38a3a2dda18bd78668e02efd246dbf0d80d9036d /src | |
| parent | ba343182c20416a0cce986585f4382efc753205e (diff) | |
| download | emacs-15c65264fae0a306ac53cef41af7b1879051ce17.tar.gz emacs-15c65264fae0a306ac53cef41af7b1879051ce17.zip | |
*** empty log message ***
Diffstat (limited to 'src')
| -rw-r--r-- | src/callint.c | 5 | ||||
| -rw-r--r-- | src/eval.c | 11 | ||||
| -rw-r--r-- | src/fileio.c | 47 | ||||
| -rw-r--r-- | src/fns.c | 3 |
4 files changed, 49 insertions, 17 deletions
diff --git a/src/callint.c b/src/callint.c index 59b73b48960..ed090aa85a3 100644 --- a/src/callint.c +++ b/src/callint.c | |||
| @@ -437,10 +437,7 @@ Otherwise, this is done only if an arg is read using the minibuffer.") | |||
| 437 | break; | 437 | break; |
| 438 | 438 | ||
| 439 | case 'S': /* Any symbol. */ | 439 | case 'S': /* Any symbol. */ |
| 440 | visargs[i] = read_minibuf (Vminibuffer_local_ns_map, | 440 | visargs[i] = Fread_no_blanks_input (build_string (prompt), Qnil); |
| 441 | Qnil, | ||
| 442 | build_string (prompt), | ||
| 443 | 0); | ||
| 444 | /* Passing args[i] directly stimulates compiler bug */ | 441 | /* Passing args[i] directly stimulates compiler bug */ |
| 445 | teml = visargs[i]; | 442 | teml = visargs[i]; |
| 446 | args[i] = Fintern (teml, Qnil); | 443 | args[i] = Fintern (teml, Qnil); |
diff --git a/src/eval.c b/src/eval.c index 4d4ca7c584c..5ec675111a9 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -1515,6 +1515,11 @@ DEFUN ("eval", Feval, Seval, 1, 1, 0, | |||
| 1515 | val = (*XSUBR (fun)->function) (argvals[0], argvals[1], argvals[2], | 1515 | val = (*XSUBR (fun)->function) (argvals[0], argvals[1], argvals[2], |
| 1516 | argvals[3], argvals[4], argvals[5]); | 1516 | argvals[3], argvals[4], argvals[5]); |
| 1517 | goto done; | 1517 | goto done; |
| 1518 | case 7: | ||
| 1519 | val = (*XSUBR (fun)->function) (argvals[0], argvals[1], argvals[2], | ||
| 1520 | argvals[3], argvals[4], argvals[5], | ||
| 1521 | argvals[6]); | ||
| 1522 | goto done; | ||
| 1518 | 1523 | ||
| 1519 | default: | 1524 | default: |
| 1520 | /* Someone has created a subr that takes more arguments than | 1525 | /* Someone has created a subr that takes more arguments than |
| @@ -1846,6 +1851,12 @@ Thus, (funcall 'cons 'x 'y) returns (x . y).") | |||
| 1846 | internal_args[2], internal_args[3], | 1851 | internal_args[2], internal_args[3], |
| 1847 | internal_args[4], internal_args[5]); | 1852 | internal_args[4], internal_args[5]); |
| 1848 | goto done; | 1853 | goto done; |
| 1854 | case 7: | ||
| 1855 | val = (*XSUBR (fun)->function) (internal_args[0], internal_args[1], | ||
| 1856 | internal_args[2], internal_args[3], | ||
| 1857 | internal_args[4], internal_args[5], | ||
| 1858 | internal_args[6]); | ||
| 1859 | goto done; | ||
| 1849 | 1860 | ||
| 1850 | default: | 1861 | default: |
| 1851 | 1862 | ||
diff --git a/src/fileio.c b/src/fileio.c index 144ebe00ef2..fcf1a6772f0 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -101,6 +101,8 @@ int vms_stmlf_recfm; | |||
| 101 | 101 | ||
| 102 | Lisp_Object Qfile_error, Qfile_already_exists; | 102 | Lisp_Object Qfile_error, Qfile_already_exists; |
| 103 | 103 | ||
| 104 | Lisp_Object Qfile_name_history; | ||
| 105 | |||
| 104 | report_file_error (string, data) | 106 | report_file_error (string, data) |
| 105 | char *string; | 107 | char *string; |
| 106 | Lisp_Object data; | 108 | Lisp_Object data; |
| @@ -2941,7 +2943,7 @@ DIR defaults to current buffer's directory default.") | |||
| 2941 | (prompt, dir, defalt, mustmatch, initial) | 2943 | (prompt, dir, defalt, mustmatch, initial) |
| 2942 | Lisp_Object prompt, dir, defalt, mustmatch, initial; | 2944 | Lisp_Object prompt, dir, defalt, mustmatch, initial; |
| 2943 | { | 2945 | { |
| 2944 | Lisp_Object val, insdef, tem, backup_n; | 2946 | Lisp_Object val, insdef, tem; |
| 2945 | struct gcpro gcpro1, gcpro2; | 2947 | struct gcpro gcpro1, gcpro2; |
| 2946 | register char *homedir; | 2948 | register char *homedir; |
| 2947 | int count; | 2949 | int count; |
| @@ -2968,21 +2970,17 @@ DIR defaults to current buffer's directory default.") | |||
| 2968 | insdef = dir; | 2970 | insdef = dir; |
| 2969 | if (!NILP (initial)) | 2971 | if (!NILP (initial)) |
| 2970 | { | 2972 | { |
| 2971 | Lisp_Object args[2]; | 2973 | Lisp_Object args[2], pos; |
| 2972 | 2974 | ||
| 2973 | args[0] = insdef; | 2975 | args[0] = insdef; |
| 2974 | args[1] = initial; | 2976 | args[1] = initial; |
| 2975 | insdef = Fconcat (2, args); | 2977 | insdef = Fconcat (2, args); |
| 2976 | backup_n = make_number (- (XSTRING (initial)->size)); | 2978 | pos = make_number (XSTRING (dir)->size); |
| 2979 | insdef = Fcons (insdef, pos); | ||
| 2977 | } | 2980 | } |
| 2978 | else | ||
| 2979 | backup_n = Qnil; | ||
| 2980 | } | 2981 | } |
| 2981 | else | 2982 | else |
| 2982 | { | 2983 | insdef = build_string (""); |
| 2983 | insdef = build_string (""); | ||
| 2984 | backup_n = Qnil; | ||
| 2985 | } | ||
| 2986 | 2984 | ||
| 2987 | #ifdef VMS | 2985 | #ifdef VMS |
| 2988 | count = specpdl_ptr - specpdl; | 2986 | count = specpdl_ptr - specpdl; |
| @@ -2992,7 +2990,8 @@ DIR defaults to current buffer's directory default.") | |||
| 2992 | GCPRO2 (insdef, defalt); | 2990 | GCPRO2 (insdef, defalt); |
| 2993 | val = Fcompleting_read (prompt, intern ("read-file-name-internal"), | 2991 | val = Fcompleting_read (prompt, intern ("read-file-name-internal"), |
| 2994 | dir, mustmatch, | 2992 | dir, mustmatch, |
| 2995 | insert_default_directory ? insdef : Qnil, backup_n); | 2993 | insert_default_directory ? insdef : Qnil, |
| 2994 | Qfile_name_history); | ||
| 2996 | 2995 | ||
| 2997 | #ifdef VMS | 2996 | #ifdef VMS |
| 2998 | unbind_to (count, Qnil); | 2997 | unbind_to (count, Qnil); |
| @@ -3057,7 +3056,8 @@ DIR defaults to current buffer's directory default.") | |||
| 3057 | GCPRO2 (insdef, defalt); | 3056 | GCPRO2 (insdef, defalt); |
| 3058 | val = Fcompleting_read (prompt, intern ("read-file-name-internal"), | 3057 | val = Fcompleting_read (prompt, intern ("read-file-name-internal"), |
| 3059 | dir, mustmatch, | 3058 | dir, mustmatch, |
| 3060 | insert_default_directory ? insdef : Qnil, Qnil); | 3059 | insert_default_directory ? insdef : Qnil, |
| 3060 | Qfile_name_history); | ||
| 3061 | 3061 | ||
| 3062 | #ifdef VMS | 3062 | #ifdef VMS |
| 3063 | unbind_to (count, Qnil); | 3063 | unbind_to (count, Qnil); |
| @@ -3096,6 +3096,31 @@ syms_of_fileio () | |||
| 3096 | Qwrite_region = intern ("write-region"); | 3096 | Qwrite_region = intern ("write-region"); |
| 3097 | Qverify_visited_file_modtime = intern ("verify-visited-file-modtime"); | 3097 | Qverify_visited_file_modtime = intern ("verify-visited-file-modtime"); |
| 3098 | 3098 | ||
| 3099 | Qfile_name_history = intern ("file-name-history"); | ||
| 3100 | Fset (Qfile_name_history, Qnil); | ||
| 3101 | |||
| 3102 | staticpro (&Qcopy_file); | ||
| 3103 | staticpro (&Qmake_directory); | ||
| 3104 | staticpro (&Qdelete_directory); | ||
| 3105 | staticpro (&Qdelete_file); | ||
| 3106 | staticpro (&Qrename_file); | ||
| 3107 | staticpro (&Qadd_name_to_file); | ||
| 3108 | staticpro (&Qmake_symbolic_link); | ||
| 3109 | staticpro (&Qfile_exists_p); | ||
| 3110 | staticpro (&Qfile_executable_p); | ||
| 3111 | staticpro (&Qfile_readable_p); | ||
| 3112 | staticpro (&Qfile_symlink_p); | ||
| 3113 | staticpro (&Qfile_writable_p); | ||
| 3114 | staticpro (&Qfile_directory_p); | ||
| 3115 | staticpro (&Qfile_accessible_directory_p); | ||
| 3116 | staticpro (&Qfile_modes); | ||
| 3117 | staticpro (&Qset_file_modes); | ||
| 3118 | staticpro (&Qfile_newer_than_file_p); | ||
| 3119 | staticpro (&Qinsert_file_contents); | ||
| 3120 | staticpro (&Qwrite_region); | ||
| 3121 | staticpro (&Qverify_visited_file_modtime); | ||
| 3122 | staticpro (&Qfile_name_history); | ||
| 3123 | |||
| 3099 | Qfile_error = intern ("file-error"); | 3124 | Qfile_error = intern ("file-error"); |
| 3100 | staticpro (&Qfile_error); | 3125 | staticpro (&Qfile_error); |
| 3101 | Qfile_already_exists = intern("file-already-exists"); | 3126 | Qfile_already_exists = intern("file-already-exists"); |
| @@ -1170,8 +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 (read_minibuf (Vminibuffer_local_map, | 1173 | ans = Fdowncase (Fread_minibuffer (prompt, Qnil)); |
| 1174 | Qnil, prompt, Qnil, 0)); | ||
| 1175 | if (XSTRING (ans)->size == 3 && !strcmp (XSTRING (ans)->data, "yes")) | 1174 | if (XSTRING (ans)->size == 3 && !strcmp (XSTRING (ans)->data, "yes")) |
| 1176 | { | 1175 | { |
| 1177 | UNGCPRO; | 1176 | UNGCPRO; |