unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: emacs-devel@gnu.org
Subject: Proposal: ibuffer-do-view should not delete other windows
Date: Wed, 15 Aug 2007 11:21:15 +0200	[thread overview]
Message-ID: <87wsvxcfw4.fsf@baldur.tsdh.de> (raw)

Hi all,

I propose to remove the call to `delete-other-windows' from
`ibuffer-do-view-1'.  I think that's much more sensible, especially with
today's wide screen.

I use emacs in fullscreen mode most of the time and it's split
horizontally, so that I have two side-by-side windows.  When I invoke
`ibuffer', mark some buffers and hit `v' (`ibuffer-do-view') I want it
to split the current window vertically, but it shouldn't destroy my
window configuration.  (There's no sense in having 3 vertical windows
where each is more than 160 columns wide in the general case.)

If someone likes the current behavior I don't see a big problem doing a
`C-x 1' before calling `ibuffer'.

What do others think?

--8<---------------cut here---------------start------------->8---
Index: lisp/ibuffer.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/ibuffer.el,v
retrieving revision 1.87
diff -u -r1.87 ibuffer.el
--- lisp/ibuffer.el	13 Aug 2007 13:41:02 -0000	1.87
+++ lisp/ibuffer.el	15 Aug 2007 09:11:16 -0000
@@ -1110,7 +1110,6 @@
 		 (not (y-or-n-p (format "Really create a new frame for %s buffers? "
 					(length marked-bufs)))))
       (set-buffer-modified-p nil)
-      (delete-other-windows)
       (switch-to-buffer (pop marked-bufs))
       (let ((height (/ (1- (if (eq type 'horizontally) (frame-width)
 			     (frame-height)))
Index: lisp/ChangeLog
===================================================================
RCS file: /sources/emacs/emacs/lisp/ChangeLog,v
retrieving revision 1.11551
diff -u -r1.11551 ChangeLog
--- lisp/ChangeLog	15 Aug 2007 03:09:04 -0000	1.11551
+++ lisp/ChangeLog	15 Aug 2007 09:11:22 -0000
@@ -1,3 +1,7 @@
+2007-08-15  Tassilo Horn  <tassilo@member.fsf.org>
+
+	* ibuffer.el (ibuffer-do-view-1): Don't call `delete-other-windows'.
+
 2007-08-15  Glenn Morris  <rgm@gnu.org>
 
 	* mail/undigest.el (rmail-digest-parse-rfc1153sloppy): Be even
--8<---------------cut here---------------end--------------->8---

Bye,
Tassilo

                 reply	other threads:[~2007-08-15  9:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=87wsvxcfw4.fsf@baldur.tsdh.de \
    --to=tassilo@member.fsf.org \
    --cc=emacs-devel@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).