unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Tino Calancha <f92capac@gmail.com>
To: 23617@debbugs.gnu.org
Subject: bug#23617: PATCH (25.1.50; Ibuffer in other window)
Date: Thu, 26 May 2016 00:30:01 +0900 (JST)	[thread overview]
Message-ID: <alpine.LRH.2.20.1605260028150.12986@calancha-ilc.kek.jp> (raw)
In-Reply-To: <handler.23617.B.14641895863618.ack@debbugs.gnu.org>



From 67500ceb4a0ea5923b3b9f2e1fef4161150c7c96 Mon Sep 17 00:00:00 2001
From: Tino Calancha <f92capac@gmail.com>
Date: Thu, 26 May 2016 00:22:42 +0900
Subject: [PATCH] Ibuffer in other window

* lisp/ibuffer.el (ibuffer): Use other window when OTHER-WINDOW-P
non-nil (Bug#23617).
---
  lisp/ibuffer.el | 6 ++++--
  1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el
index dd2687c..d78a8f4 100644
--- a/lisp/ibuffer.el
+++ b/lisp/ibuffer.el
@@ -2341,8 +2341,10 @@ ibuffer
      (setq other-window-p t))
    (let ((buf (get-buffer-create (or name "*Ibuffer*"))))
      (if other-window-p
-	(funcall (if noselect (lambda (buf) (display-buffer buf t)) #'pop-to-buffer) buf)
-      (funcall (if noselect #'display-buffer #'switch-to-buffer) buf))
+	(funcall (lambda (x) (or (and noselect (display-buffer x t))
+                                 (pop-to-buffer x t))) buf)
+      (funcall (or (and noselect #'display-buffer)
+                   #'switch-to-buffer) buf))
      (with-current-buffer buf
        (save-selected-window
  	;; We switch to the buffer's window in order to be able
-- 
2.8.1






  parent reply	other threads:[~2016-05-25 15:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-25 15:22 bug#23617: 25.1.50; Ibuffer in other window Tino Calancha
     [not found] ` <handler.23617.B.14641895863618.ack@debbugs.gnu.org>
2016-05-25 15:30   ` Tino Calancha [this message]
2016-06-08  0:36     ` bug#23617: PATCH (25.1.50; Ibuffer in other window) Glenn Morris
2016-10-17  7:48       ` Eli Zaretskii
2016-10-17 15:56         ` Glenn Morris
2016-10-17 16:14           ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LRH.2.20.1605260028150.12986@calancha-ilc.kek.jp \
    --to=f92capac@gmail.com \
    --cc=23617@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).