aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman2003-01-20 09:03:09 +0000
committerRichard M. Stallman2003-01-20 09:03:09 +0000
commitc2639ed073fca89eb89e485cc8a4e20c1cb87afa (patch)
tree17101635eabe9be7bcc5194697e6598024d1e24d /lisp
parent2afd5e90eb946a0e70547e56a4c705d7d0d4cb7f (diff)
downloademacs-c2639ed073fca89eb89e485cc8a4e20c1cb87afa.tar.gz
emacs-c2639ed073fca89eb89e485cc8a4e20c1cb87afa.zip
(completion-setup-function): Set default-directory
in the minibuffer, so it'll be copied into the completion list buffer.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog12
-rw-r--r--lisp/simple.el9
2 files changed, 20 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 914109a1b8b..61565d5fb1d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,15 @@
12003-01-20 Richard M. Stallman <rms@gnu.org>
2
3 * simple.el (completion-setup-function): Set default-directory
4 in the minibuffer, so it'll be copied into the completion list buffer.
5
6 * emacs-lisp/regexp-opt.el (regexp-opt-group): Compute HALF2 properly.
7
8 * loadup.el (load-path): Rename `path' local var.
9
10 * progmodes/octave-mod.el (octave-mode-map): Change C-c i bindings
11 to C-c C-i. Duplicate its bindings with last char a ctl char.
12
12003-01-20 Markus Rost <rost@math.ohio-state.edu> 132003-01-20 Markus Rost <rost@math.ohio-state.edu>
2 14
3 * ls-lisp.el (ls-lisp-use-insert-directory-program): Make default 15 * ls-lisp.el (ls-lisp-use-insert-directory-program): Make default
diff --git a/lisp/simple.el b/lisp/simple.el
index 39b2631d2b6..c0028a08233 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -3959,7 +3959,14 @@ The completion list buffer is available as the value of `standard-output'.")
3959 3959
3960(defun completion-setup-function () 3960(defun completion-setup-function ()
3961 (save-excursion 3961 (save-excursion
3962 (let ((mainbuf (current-buffer))) 3962 (let ((mainbuf (current-buffer))
3963 (mbuf-contents (minibuffer-contents)))
3964 ;; When reading a file name in the minibuffer,
3965 ;; set default-directory in the minibuffer
3966 ;; so it will get copied into the completion list buffer.
3967 (if minibuffer-completing-file-name
3968 (with-current-buffer mainbuf
3969 (setq default-directory (file-name-directory mbuf-contents))))
3963 (set-buffer standard-output) 3970 (set-buffer standard-output)
3964 (completion-list-mode) 3971 (completion-list-mode)
3965 (make-local-variable 'completion-reference-buffer) 3972 (make-local-variable 'completion-reference-buffer)