diff options
| author | Richard M. Stallman | 1998-05-09 23:55:27 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-05-09 23:55:27 +0000 |
| commit | 406e55df207fa649e1690d20e8febe9d757166bb (patch) | |
| tree | ac539670dd7b40f30c1dc048196f3fc28592f57a | |
| parent | 5ab13dd02e70b1f8092b8ed82b59e5d477882fe7 (diff) | |
| download | emacs-406e55df207fa649e1690d20e8febe9d757166bb.tar.gz emacs-406e55df207fa649e1690d20e8febe9d757166bb.zip | |
(Qbuffer_name_history): New variable.
(syms_of_minibuf): Initialize it.
(Fread_buffer): Use that history list.
| -rw-r--r-- | src/minibuf.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/minibuf.c b/src/minibuf.c index bd3fc5779ae..f41e03072fe 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -77,7 +77,7 @@ Lisp_Object Vminibuffer_history_variable; | |||
| 77 | 77 | ||
| 78 | Lisp_Object Vminibuffer_history_position; | 78 | Lisp_Object Vminibuffer_history_position; |
| 79 | 79 | ||
| 80 | Lisp_Object Qminibuffer_history; | 80 | Lisp_Object Qminibuffer_history, Qbuffer_name_history; |
| 81 | 81 | ||
| 82 | Lisp_Object Qread_file_name_internal; | 82 | Lisp_Object Qread_file_name_internal; |
| 83 | 83 | ||
| @@ -855,7 +855,8 @@ If optional third arg REQUIRE-MATCH is non-nil, only existing buffer names are a | |||
| 855 | } | 855 | } |
| 856 | 856 | ||
| 857 | return Fcompleting_read (prompt, Vbuffer_alist, Qnil, | 857 | return Fcompleting_read (prompt, Vbuffer_alist, Qnil, |
| 858 | require_match, Qnil, Qnil, def, Qnil); | 858 | require_match, Qnil, Qbuffer_name_history, |
| 859 | def, Qnil); | ||
| 859 | } | 860 | } |
| 860 | else | 861 | else |
| 861 | { | 862 | { |
| @@ -2103,6 +2104,9 @@ syms_of_minibuf () | |||
| 2103 | Qminibuffer_history = intern ("minibuffer-history"); | 2104 | Qminibuffer_history = intern ("minibuffer-history"); |
| 2104 | staticpro (&Qminibuffer_history); | 2105 | staticpro (&Qminibuffer_history); |
| 2105 | 2106 | ||
| 2107 | Qbuffer_name_history = intern ("buffer-name-history"); | ||
| 2108 | staticpro (&Qbuffer_name_history); | ||
| 2109 | |||
| 2106 | Qminibuffer_setup_hook = intern ("minibuffer-setup-hook"); | 2110 | Qminibuffer_setup_hook = intern ("minibuffer-setup-hook"); |
| 2107 | staticpro (&Qminibuffer_setup_hook); | 2111 | staticpro (&Qminibuffer_setup_hook); |
| 2108 | 2112 | ||