[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r105375: Don't set dedicated status f
From: |
martin rudalics |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r105375: Don't set dedicated status for reused normal windows (Bug#9215). |
Date: |
Mon, 01 Aug 2011 20:10:58 +0200 |
User-agent: |
Bazaar (2.3.1) |
------------------------------------------------------------
revno: 105375
committer: martin rudalics <address@hidden>
branch nick: trunk
timestamp: Mon 2011-08-01 20:10:58 +0200
message:
Don't set dedicated status for reused normal windows (Bug#9215).
* window.el (display-buffer-in-window): Don't set dedicated status
of window here (Bug#9215).
(display-buffer-pop-up-window, display-buffer-pop-up-frame)
(display-buffer-pop-up-side-window)
(display-buffer-in-side-window): Set dedicated status of window
here.
modified:
lisp/ChangeLog
lisp/window.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2011-08-01 15:54:09 +0000
+++ b/lisp/ChangeLog 2011-08-01 18:10:58 +0000
@@ -1,3 +1,12 @@
+2011-08-01 Martin Rudalics <address@hidden>
+
+ * window.el (display-buffer-in-window): Don't set dedicated status
+ of window here (Bug#9215).
+ (display-buffer-pop-up-window, display-buffer-pop-up-frame)
+ (display-buffer-pop-up-side-window)
+ (display-buffer-in-side-window): Set dedicated status of window
+ here.
+
2011-08-01 Stefan Monnier <address@hidden>
* emacs-lisp/package.el (package-generate-autoloads): Load autoloads
=== modified file 'lisp/window.el'
--- a/lisp/window.el 2011-07-21 08:27:44 +0000
+++ b/lisp/window.el 2011-08-01 18:10:58 +0000
@@ -4715,15 +4715,12 @@
(setq window (window-normalize-live-window window))
(let* ((old-frame (selected-frame))
(new-frame (window-frame window))
- (dedicate (cdr (assq 'dedicate specifiers)))
(no-other-window (cdr (assq 'no-other-window specifiers))))
;; Show BUFFER in WINDOW.
(unless (eq buffer (window-buffer window))
;; If we show another buffer in WINDOW, undedicate it first.
(set-window-dedicated-p window nil))
(set-window-buffer window buffer)
- (when dedicate
- (set-window-dedicated-p window dedicate))
(when no-other-window
(set-window-parameter window 'no-other-window t))
(unless (or (eq old-frame new-frame)
@@ -4965,7 +4962,7 @@
(selected-window (selected-window))
root new new-parent)
- ;; We are in an atomic window.
+ ;; We are in an atomic window.
(when (and (window-parameter window 'window-atom) (not nest))
;; Split the root window.
(setq window (window-atom-root window)))
@@ -5059,6 +5056,10 @@
(setq display-buffer-window (cons window 'new-window))
;; Install BUFFER in the new window.
(display-buffer-in-window buffer window specifiers)
+ (let ((dedicate (cdr (assq 'dedicate specifiers))))
+ (when dedicate
+ ;; Dedicate window to buffer.
+ (set-window-dedicated-p window dedicate)))
;; Adjust sizes if asked for (for `fit-window-to-buffer'
;; and friends BUFFER must be already shown in the new
;; window).
@@ -5094,7 +5095,12 @@
(set-window-parameter
window 'quit-restore (list 'new-frame buffer selected-window))
(setq display-buffer-window (cons window 'new-frame))
- (display-buffer-in-window buffer window specifiers))))))
+ (display-buffer-in-window buffer window specifiers)
+ (let ((dedicate (cdr (assq 'dedicate specifiers))))
+ (when dedicate
+ ;; Dedicate window to buffer.
+ (set-window-dedicated-p window dedicate)))
+ window)))))
(defun display-buffer-pop-up-side-window (buffer side slot &optional
specifiers)
"Display BUFFER in a new window on SIDE of the selected frame.
@@ -5142,6 +5148,10 @@
(setq display-buffer-window (cons window 'new-window))
;; Install BUFFER in new window.
(display-buffer-in-window buffer window specifiers)
+ (let ((dedicate (cdr (assq 'dedicate specifiers))))
+ (when dedicate
+ ;; Dedicate window to buffer.
+ (set-window-dedicated-p window dedicate)))
;; Adjust sizes of new window if asked for.
(display-buffer-set-height window specifiers)
(display-buffer-set-width window specifiers)
@@ -5282,6 +5292,10 @@
(set-window-parameter window 'window-slot slot))
;; Install BUFFER in the window.
(display-buffer-in-window buffer window specifiers)
+ (let ((dedicate (cdr (assq 'dedicate specifiers))))
+ (when dedicate
+ ;; Dedicate window to buffer.
+ (set-window-dedicated-p window dedicate)))
(when new-window
;; Adjust sizes if asked for (for `fit-window-to-buffer' and
;; friends BUFFER must be already shown in the new window).
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r105375: Don't set dedicated status for reused normal windows (Bug#9215).,
martin rudalics <=