]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't try to split side windows in ibuffer (Bug#25115)
authorMartin Rudalics <rudalics@gmx.at>
Mon, 5 Dec 2016 10:06:55 +0000 (11:06 +0100)
committerMartin Rudalics <rudalics@gmx.at>
Mon, 5 Dec 2016 10:06:55 +0000 (11:06 +0100)
* lisp/ibuffer.el (ibuffer-confirm-operation-on): Don't try to
split a side window (Bug#25115).

lisp/ibuffer.el

index 51d7cb90755229f57832c2fc277032f8265c1fb7..16fbf5799ffc46268b5d9478c3ee15176a89257b 100644 (file)
@@ -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)