|
From: | Tom A Baker |
Subject: | Re: [h-e-w] split-window-recent |
Date: | Sat, 17 May 2003 11:58:00 -0400 |
(Lisp code deleted.)
It is quite nice 90% of the time, but every now and then it selects the minibuffer buffer into the new window - which is clearly an annoyance. I would like to test if the "nextbuf" buffer is the minibuffer, but there seems to be no "minibuffer-p" or equivalent test predicate (on GNU Emacs 21.2).
Any ideas?
TIA,
Nascif
It's not very sexy, but this approach fulfills the conditions.
(execute-kbd-macro [?\C-x ?2 ?\C-x ?o ?\C-x ?b return
?\C-x ?o])
Instead of next-buffer, when switch-to-buffer is tempted by *Minibuffer*, it is taking another buffer instead.
Oh, well, the proper thing to do is just test the selected buffer's name, and if it is the minibuffer, do something intelligent like use *scratch* or the present buffer.
Tom Baker
(eq (my-other-car) 'cdr)
[Prev in Thread] | Current Thread | [Next in Thread] |