]> git.eshelyaron.com Git - emacs.git/commit
Add inhibit-switch-frame parameter for display-buffer, and use it in occur-edit.
authorChong Yidong <cyd@gnu.org>
Mon, 6 Aug 2012 05:33:39 +0000 (13:33 +0800)
committerChong Yidong <cyd@gnu.org>
Mon, 6 Aug 2012 05:33:39 +0000 (13:33 +0800)
commit90749b537a83a3ba623e6f6163256130575fac2f
tree75342f636beeed8c355fe4e4ad31ca80830a40b7
parentedd74c35125983cbf822b15828886c7d2e50b275
Add inhibit-switch-frame parameter for display-buffer, and use it in occur-edit.

* replace.el (occur-after-change-function): Avoid losing focus by
using the inhibit-switch-frame display action option.

* window.el (window--maybe-raise-frame): New function.
(window--display-buffer): Split off from here.
(display-buffer-reuse-window, display-buffer-pop-up-frame)
(display-buffer-pop-up-window, display-buffer-use-some-window):
Obey an inhibit-switch-frame action alist entry.
(display-buffer): Update doc.

Fixes: debbugs:12139
etc/NEWS
lisp/ChangeLog
lisp/replace.el
lisp/window.el