emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master d75e988: Don't try to split side windows in ibuffer


From: Martin Rudalics
Subject: [Emacs-diffs] master d75e988: Don't try to split side windows in ibuffer (Bug#25115)
Date: Mon, 5 Dec 2016 10:07:34 +0000 (UTC)

branch: master
commit d75e9881fdf648fcb6c25e344353450a7806feee
Author: Martin Rudalics <address@hidden>
Commit: Martin Rudalics <address@hidden>

    Don't try to split side windows in ibuffer (Bug#25115)
    
    * lisp/ibuffer.el (ibuffer-confirm-operation-on): Don't try to
    split a side window (Bug#25115).
---
 lisp/ibuffer.el |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el
index 51d7cb9..16fbf57 100644
--- a/lisp/ibuffer.el
+++ b/lisp/ibuffer.el
@@ -1197,7 +1197,11 @@ a new window in the current frame, splitting vertically."
            (ibuffer-columnize-and-insert-list names)
            (goto-char (point-min))
            (setq buffer-read-only t))
-         (let ((lastwin (car (last (window-list nil 'nomini)))))
+         (let ((windows (nreverse (window-list nil 'nomini)))
+                lastwin)
+            (while (window-parameter (car windows) 'window-side)
+              (setq windows (cdr windows)))
+            (setq lastwin (car windows))
            ;; Now attempt to display the buffer...
            (save-window-excursion
              (select-window lastwin)



reply via email to

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