[Top][All Lists]

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

ibuffer kills split window

From: Peter Lee
Subject: ibuffer kills split window
Date: Thu, 08 Apr 2004 14:00:48 -0500
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (windows-nt)

I prefer to have ibuffer use another window.  If I have a single
buffer visible and call C-x C-b (which is bound to 'ibuffer), a new
buffer is displayed and when I press q it goes away.  This is fine.

However if I'm working on 2 buffers (split), and I do C-x C-b,
ibuffer takes over one of the buffers (whichever one did not have
focus at time of call).  And when I press q, it buries the buffer and
I lose the window... I have to resplit.

I much prefer the way bs-show did it by popping up a completely new
buffer and when 'q' is pressed things are restored exactly as they
were (even if I have 3 or 4 split windows).

I rely on ibuffer filtering though, so I'm hoping there's a way to get
the old bs-show behavior.  If this is broken then is there a
workaround?  If it's by design, then is it possible to get the old
bs-show behavior through hooking and if so any ideas how I might do

My current ibuffer settings:

(setq ibuffer-expert t
      ibuffer-fontification-alist '((10 buffer-read-only 
                                    (15 (string-match "^*" (buffer-name)) 
                                    (20 (and (string-match "^ " (buffer-name))
                                             (null buffer-file-name)) italic)
                                    (25 (memq major-mode 
                                    (30 (eq major-mode (quote dired-mode)) 
      ibuffer-use-other-window t
      ibuffer-default-shrink-to-minimum-size t

         ("dired" (saved . "dired"))
         ("source" (saved . "source"))
         ("html" (saved . "html"))
         ("gnus" (saved . "gnus"))
         ("erc" (saved . "erc"))
         ("hidden" (saved . "hidden"))))

      '(("html" ((or (filename . ".*\\.asp.*") (filename . ".*\\.htm.*") 
(filename . ".*\\.js"))))
        ("erc" ((mode . erc-mode)))
        ("dired" ((used-mode . dired-mode)))
        ("gnus" ((or (mode . message-mode) (mode . mail-mode) (mode . 
                     (mode . gnus-summary-mode) (mode . gnus-article-mode))))
        ("source" ((or (mode . c++-mode) (mode . emacs-lisp-mode) (mode . 
cperl-mode) (mode . c-mode)
                       (mode . java-mode) (mode . idl-mode) (mode . lisp-mode) 
(mode . makefile-mode)
                       (mode . visual-basic-mode) (mode . csharp-mode) 
(filename . ".*\\.cls")
                       (filename . ".*\\.vb") (filename . ".*\\.bat"))))
        ("hidden" ((name . "\\*.*\\*")))))

Thanks for the help.

In GNU Emacs (i386-msvc-nt5.1.2600)
 of 2004-04-05 on PONGMASTER
configured using `configure --with-msvc (12.00) --cflags -Ie:/gnuwin32/include 
--ldflags /LIBPATH:e:/gnuwin32/lib'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENU
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: C++

Minor modes in effect:
  cua-mode: t
  iswitchb-mode: t
  show-paren-mode: t
  global-auto-revert-mode: t
  which-function-mode: t
  display-time-mode: t
  mouse-wheel-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  unify-8859-on-encoding-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t
  hs-minor-mode: t

Recent input:
b s SPC s h o w <return> q C-x 2 M-x b s SPC s h o 
w <return> q M-x b s SPC s h o w <return> q C-x 1 C-x 
d r u n t i m e <return> C-x k C-x d r u n t i m e 
C-x a e s i m <tab> <return> C-n C-n C-n C-n C-n C-n 
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p <return> 
C-x C-f s e s s <tab> c <tab> <return> C-v M-x r e 
p o r t <return>

Recent messages:
Scanning buffer for index ( 67%)
Scanning buffer for index ( 87%)
Scanning buffer for index ( 98%)
Scanning buffer for index (100%)
Note: file is write protected
Scanning buffer for index (  0%)
Scanning buffer for index ( 86%)
Scanning buffer for index ( 96%)
Scanning buffer for index (100%)
Loading emacsbug...done

reply via email to

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