unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#1259: quit-window does not kill the window
@ 2008-11-13 16:40 Juanma Barranquero
  2008-11-14  8:06 ` martin rudalics
  0 siblings, 1 reply; 10+ messages in thread
From: Juanma Barranquero @ 2008-11-13 16:40 UTC (permalink / raw)
  To: martin rudalics; +Cc: 1259

Martin, I'm afraid I missed this comment by you:

"`quit-window' looks fishy in a number of regards: The `delete-frame'
stuff needs other_visible_frames to work correctly but this is not
available in Elisp.  I plan to commit somthing like the version below.
Could people please test whether it breaks their favorite use of this?"

But yes, it breaks one of my favorite uses.

The docstring previously said:

"If WINDOW is non-nil, it specifies a window; we delete that window,
and the buffer that is killed or buried is the one in that window."

Now, it says:

"If WINDOW
is dedicated or a minibuffer window, delete it and, if it's the
only window on its frame, delete its frame as well provided there
are other frames left.  Otherwise, display some other buffer in
the window."

I was using the previously documented behavior. I have a function

(defun quit-buffer-and-window ()
   (interactive)
   (quit-window nil (selected-window)))

(I assign it to "q" in many modes). Now,

  C-x 2 C-x o M-x quit-buffer-and-window <ENTER>

leaves me with two windows.

  Juanma






^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-11-15 11:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-13 16:40 bug#1259: quit-window does not kill the window Juanma Barranquero
2008-11-14  8:06 ` martin rudalics
2008-11-14  9:19   ` Juanma Barranquero
2008-11-14  9:36     ` Juanma Barranquero
2008-11-14 13:41       ` martin rudalics
2008-11-14 15:10         ` Juanma Barranquero
2008-11-15 10:00           ` martin rudalics
2008-11-15 11:22             ` Juanma Barranquero
     [not found]       ` <mailman.353.1226670617.26697.bug-gnu-emacs@gnu.org>
2008-11-14 17:03         ` Markus Triska
2008-11-15 10:00           ` martin rudalics

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).