aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2009-02-12 02:19:53 +0000
committerStefan Monnier2009-02-12 02:19:53 +0000
commit70ff4f59668ede653e7371500da0ee63471840a7 (patch)
tree2a1c785fcc84992fdcebb74572031ca4d34aa7c0
parent7f7f59f5c3e1c8a4efe20b9351ee3f0f66b6e12b (diff)
downloademacs-70ff4f59668ede653e7371500da0ee63471840a7.tar.gz
emacs-70ff4f59668ede653e7371500da0ee63471840a7.zip
(read-buffer-to-switch): Add table to icomplete-with-completion-tables.
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/files.el12
2 files changed, 18 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d91c796b266..e2e2a17ea53 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * files.el (read-buffer-to-switch):
4 Add table to icomplete-with-completion-tables.
5
12009-02-11 Chong Yidong <cyd@stupidchicken.com> 62009-02-11 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * dired-aux.el (dired-add-entry): Avoid munging long-form Dired 8 * dired-aux.el (dired-add-entry): Avoid munging long-form Dired
@@ -28,8 +33,8 @@
28 33
292009-02-11 Chong Yidong <cyd@stupidchicken.com> 342009-02-11 Chong Yidong <cyd@stupidchicken.com>
30 35
31 * emacs-lisp/find-func.el (find-library-name, find-library): Doc 36 * emacs-lisp/find-func.el (find-library-name, find-library):
32 fixes. (Part of bug#2270) 37 Doc fixes. (Part of bug#2270)
33 38
342009-02-10 Eric Hanchrow <eric.hanchrow@gmail.com> (tiny change) 392009-02-10 Eric Hanchrow <eric.hanchrow@gmail.com> (tiny change)
35 40
diff --git a/lisp/files.el b/lisp/files.el
index eed4b041811..84995d20a2d 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -1156,7 +1156,17 @@ need to omit the name of current buffer from the list of completions
1156and default values." 1156and default values."
1157 (let ((rbts-completion-table (internal-complete-buffer-except))) 1157 (let ((rbts-completion-table (internal-complete-buffer-except)))
1158 (minibuffer-with-setup-hook 1158 (minibuffer-with-setup-hook
1159 (lambda () (setq minibuffer-completion-table rbts-completion-table)) 1159 (lambda ()
1160 (setq minibuffer-completion-table rbts-completion-table)
1161 ;; Since rbts-completion-table is built dynamically, we
1162 ;; can't just add it to the default value of
1163 ;; icomplete-with-completion-tables, so we add it
1164 ;; here manually.
1165 (if (and (boundp 'icomplete-with-completion-tables)
1166 (listp icomplete-with-completion-tables))
1167 (set (make-local-variable 'icomplete-with-completion-tables)
1168 (cons rbts-completion-table
1169 icomplete-with-completion-tables))))
1160 (read-buffer prompt (other-buffer (current-buffer)) 1170 (read-buffer prompt (other-buffer (current-buffer))
1161 (confirm-nonexistent-file-or-buffer))))) 1171 (confirm-nonexistent-file-or-buffer)))))
1162 1172