Mercurial > emacs
changeset 866:ae5c412a32ec
entered into RCS
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 24 Jul 1992 20:13:03 +0000 |
parents | 637812e90946 |
children | f120dd3a71b0 |
files | lisp/replace.el src/fileio.c src/fns.c src/minibuf.c |
diffstat | 4 files changed, 12 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/replace.el Fri Jul 24 19:27:07 1992 +0000 +++ b/lisp/replace.el Fri Jul 24 20:13:03 1992 +0000 @@ -438,7 +438,7 @@ (replace-match next-replacement nocasify literal) (setq replace-count (1+ replace-count))) (undo-boundary) - (let (done replaced) + (let (done replaced char) (while (not done) (let ((help-form '(concat "Query replacing "
--- a/src/fileio.c Fri Jul 24 19:27:07 1992 +0000 +++ b/src/fileio.c Fri Jul 24 20:13:03 1992 +0000 @@ -2943,7 +2943,7 @@ (prompt, dir, defalt, mustmatch, initial) Lisp_Object prompt, dir, defalt, mustmatch, initial; { - Lisp_Object val, insdef, tem; + Lisp_Object val, insdef, insdef1, tem; struct gcpro gcpro1, gcpro2; register char *homedir; int count; @@ -2968,6 +2968,7 @@ if (insert_default_directory) { insdef = dir; + insdef1 = dir; if (!NILP (initial)) { Lisp_Object args[2], pos; @@ -2976,11 +2977,11 @@ args[1] = initial; insdef = Fconcat (2, args); pos = make_number (XSTRING (dir)->size); - insdef = Fcons (insdef, pos); + insdef1 = Fcons (insdef, pos); } } else - insdef = build_string (""); + insdef = Qnil, insdef1 = Qnil; #ifdef VMS count = specpdl_ptr - specpdl; @@ -2989,8 +2990,7 @@ GCPRO2 (insdef, defalt); val = Fcompleting_read (prompt, intern ("read-file-name-internal"), - dir, mustmatch, - insert_default_directory ? insdef : Qnil, + dir, mustmatch, insdef1, Qfile_name_history); #ifdef VMS
--- a/src/fns.c Fri Jul 24 19:27:07 1992 +0000 +++ b/src/fns.c Fri Jul 24 20:13:03 1992 +0000 @@ -1170,7 +1170,7 @@ GCPRO1 (prompt); while (1) { - ans = Fdowncase (Fread_minibuffer (prompt, Qnil)); + ans = Fdowncase (Fread_string (prompt, Qnil)); if (XSTRING (ans)->size == 3 && !strcmp (XSTRING (ans)->data, "yes")) { UNGCPRO;
--- a/src/minibuf.c Fri Jul 24 19:27:07 1992 +0000 +++ b/src/minibuf.c Fri Jul 24 20:13:03 1992 +0000 @@ -94,9 +94,9 @@ Lisp_Object read_minibuf (); /* Read from the minibuffer using keymap MAP, initial contents INITIAL - (a string), putting point BACKUP_N chars from the end of INITIAL, + (a string), putting point minus BACKUP_N chars from the end of INITIAL, prompting with PROMPT (a string), using history list HISTVAR - with initial position HISTPOS. + with initial position HISTPOS. (BACKUP_N should be <= 0.) Normally return the result as a string (the text that was read), but if EXPFLAG is non-nil, read it and return the object read. */ @@ -106,7 +106,7 @@ Lisp_Object map; Lisp_Object initial; Lisp_Object prompt; - Lisp_Object backup_n; + int backup_n; int expflag; Lisp_Object histvar; Lisp_Object histpos; @@ -378,7 +378,7 @@ XFASTINT (histpos) = 0; return read_minibuf (keymap, initial_input, prompt, - pos, !NILP (read), histvar, histpos); + make_number (pos), !NILP (read), histvar, histpos); } DEFUN ("read-minibuffer", Fread_minibuffer, Sread_minibuffer, 1, 2, 0, @@ -869,7 +869,7 @@ val = read_minibuf (NILP (require_match) ? Vminibuffer_local_completion_map : Vminibuffer_local_must_match_map, - init, prompt, pos, 0, + init, prompt, make_number (pos), 0, histvar, histpos); return unbind_to (count, val); }