[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/simple.el [emacs-unicode-2]
From: |
Miles Bader |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/simple.el [emacs-unicode-2] |
Date: |
Wed, 15 Sep 2004 05:23:34 -0400 |
Index: emacs/lisp/simple.el
diff -c emacs/lisp/simple.el:1.616.2.10 emacs/lisp/simple.el:1.616.2.11
*** emacs/lisp/simple.el:1.616.2.10 Thu Sep 9 09:36:31 2004
--- emacs/lisp/simple.el Wed Sep 15 08:59:56 2004
***************
*** 4297,4307 ****
(not (equal buffer
(window-buffer (active-minibuffer-window))))))
(error "Minibuffer is not active for completion")
(unless (run-hook-with-args-until-success
'choose-completion-string-functions
choice buffer mini-p base-size)
;; Insert the completion into the buffer where it was requested.
- (set-buffer buffer)
(if base-size
(delete-region (+ base-size (if mini-p
(minibuffer-prompt-end)
--- 4297,4308 ----
(not (equal buffer
(window-buffer (active-minibuffer-window))))))
(error "Minibuffer is not active for completion")
+ ;; Set buffer so buffer-local choose-completion-string-functions works.
+ (set-buffer buffer)
(unless (run-hook-with-args-until-success
'choose-completion-string-functions
choice buffer mini-p base-size)
;; Insert the completion into the buffer where it was requested.
(if base-size
(delete-region (+ base-size (if mini-p
(minibuffer-prompt-end)