Commit 9c2755e9 authored by Martin Rudalics's avatar Martin Rudalics
Browse files

Never ever pop up a new frame in noninteractive mode (bug#8857).

(display-buffer): Don't check noninteractive when calling
display-buffer-pop-up-frame.
(display-buffer-pop-up-frame): Never pop up a frame in
noninteractive mode (Bug#8857).
parent 981d5c09
...@@ -7,6 +7,10 @@ ...@@ -7,6 +7,10 @@
(switch-to-buffer-other-window-same-frame) (switch-to-buffer-other-window-same-frame)
(switch-to-buffer-other-frame): Fix doc-strings. Reported by Drew (switch-to-buffer-other-frame): Fix doc-strings. Reported by Drew
Adams (Bug#8875). Adams (Bug#8875).
(display-buffer): Don't check noninteractive when calling
display-buffer-pop-up-frame.
(display-buffer-pop-up-frame): Never pop up a frame in
noninteractive mode (Bug#8857).
2011-06-15 Stefan Monnier <monnier@iro.umontreal.ca> 2011-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
......
...@@ -4704,7 +4704,8 @@ non-nil means to make a new frame on graphic displays only. ...@@ -4704,7 +4704,8 @@ non-nil means to make a new frame on graphic displays only.
SPECIFIERS must be a list of buffer display specifiers, see the SPECIFIERS must be a list of buffer display specifiers, see the
documentation of `display-buffer-alist' for a description." documentation of `display-buffer-alist' for a description."
(unless (and graphic-only (not (display-graphic-p))) (unless (or (and graphic-only (not (display-graphic-p)))
noninteractive)
(let* ((selected-window (selected-window)) (let* ((selected-window (selected-window))
(function (or (cdr (assq 'pop-up-frame-function specifiers)) (function (or (cdr (assq 'pop-up-frame-function specifiers))
'make-frame)) 'make-frame))
...@@ -5299,8 +5300,8 @@ this list as arguments." ...@@ -5299,8 +5300,8 @@ this list as arguments."
;; Try reusing a window not showing BUFFER on any visible or ;; Try reusing a window not showing BUFFER on any visible or
;; iconified frame. ;; iconified frame.
(display-buffer-reuse-window buffer '(nil other 0)) (display-buffer-reuse-window buffer '(nil other 0))
;; Try making a new frame (but not in batch mode). ;; Try making a new frame.
(and (not noninteractive) (display-buffer-pop-up-frame buffer)) (display-buffer-pop-up-frame buffer)
;; Try using a weakly dedicated window. ;; Try using a weakly dedicated window.
(display-buffer-reuse-window (display-buffer-reuse-window
buffer '(nil nil t) '((reuse-window-dedicated . weak))) buffer '(nil nil t) '((reuse-window-dedicated . weak)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment