emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/simple.el [lexbind]


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/lisp/simple.el [lexbind]
Date: Wed, 15 Sep 2004 20:32:54 -0400

Index: emacs/lisp/simple.el
diff -c emacs/lisp/simple.el:1.551.2.26 emacs/lisp/simple.el:1.551.2.27
*** emacs/lisp/simple.el:1.551.2.26     Thu Sep 16 00:12:21 2004
--- emacs/lisp/simple.el        Thu Sep 16 00:14:58 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)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]