Regroup clauses in display-buffer-normalize-options (Bug#8851) and (Bug#8856).
authorMartin Rudalics <rudalics@gmx.at>
Sun, 19 Jun 2011 14:32:12 +0000 (16:32 +0200)
committerMartin Rudalics <rudalics@gmx.at>
Sun, 19 Jun 2011 14:32:12 +0000 (16:32 +0200)
* window.el (display-buffer-normalize-options): Move special-display-p
group after pop-up-frame group (Bug#8851) and (Bug#8856).

lisp/ChangeLog
lisp/window.el

index 8f3c0ea..f268646 100644 (file)
@@ -23,6 +23,8 @@
        (window-state-get-1, window-state-get, window-state-put-list)
        (window-state-put-1, window-state-put-2, window-state-put): New
        functions.
+       (display-buffer-normalize-options): Move special-display-p group
+       after pop-up-frame group (Bug#8851) and (Bug#8856).
 
 2011-06-18  Chong Yidong  <cyd@stupidchicken.com>
 
index e79489e..5737b1c 100644 (file)
@@ -5401,17 +5401,6 @@ options."
                            (cons 'largest fun) (cons 'lru fun))
                      specifiers))))
 
-      ;; `special-display-p' group.
-      (when special-display-function
-       ;; `special-display-p' returns either t or a list of frame
-       ;; parameters to pass to `special-display-function'.
-       (let ((pars (special-display-p buffer-name)))
-         (when pars
-           (setq specifiers
-                 (cons (list 'fun-with-args special-display-function
-                             (when (listp pars) pars))
-                       specifiers)))))
-
       ;; `pop-up-frame' group.  Add things if `pop-up-frames' is non-nil
       ;; (we ignore the problem that callers usually don't care about
       ;; graphic-only).
@@ -5425,6 +5414,17 @@ options."
        (setq specifiers
              (cons (list 'pop-up-frame pop-up-frames) specifiers)))
 
+      ;; `special-display-p' group.
+      (when special-display-function
+       ;; `special-display-p' returns either t or a list of frame
+       ;; parameters to pass to `special-display-function'.
+       (let ((pars (special-display-p buffer-name)))
+         (when pars
+           (setq specifiers
+                 (cons (list 'fun-with-args special-display-function
+                             (when (listp pars) pars))
+                       specifiers)))))
+
       ;; `same-window-p' group.
       (when (same-window-p buffer-name)
        ;; Try to reuse the same (selected) window.