all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: "Johan Bockgård" <bojohan@gnu.org>
Cc: 8184@debbugs.gnu.org, 'tlh' <thunkout@gmail.com>
Subject: bug#8184: 23.1.90; `menu-bar-non-minibuffer-window-p' error in callsto	`kill-this-buffer'
Date: Tue, 29 Mar 2011 10:31:52 +0200	[thread overview]
Message-ID: <4D9198F8.1060305@gmx.at> (raw)
In-Reply-To: <87sju8zrb6.fsf@gnu.org>

 >> We might end up showing the *code-conversion-work* or *Echo Area* buffer
 >> in a normal window which doesn't strike me as a good idea in response to
 >> invoking a menu item called "Close".
 >
 > That can't happen. The *scratch* buffer is resurrected if all other
 > visible buffers disappear.

I suppose by "visible buffer" you mean the object mentioned in the
comments of `kill-buffer' which is defined as the return value of
`other-buffer'.  That object is mystically unreliable here.  I can
easily crash my trunk by repeatedly killing all buffers.  But I was
never able to provide a presentable scenario so I just went ahead and
fixed this in my branch.

This said you're right that the scenario I described in the text you
cited shouldn't happen because `other-buffer' doesn't return a buffer
whose name starts with a space.

 >> I only tried to emulate the current behavior.  Usually, at least the
 >> *scratch* or *Messages* buffer should be around so I suppose that in
 >> practice it's always possible to kill the current buffer.
 >
 > It's always possible to kill the current buffer, unless that buffer is
 > *scratch* and no other visible buffers exist.

Ideally, yes.

martin






  reply	other threads:[~2011-03-29  8:31 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-06  5:28 bug#8184: 23.1.90; `menu-bar-non-minibuffer-window-p' error in calls to `kill-this-buffer' tlh
2011-03-06 12:45 ` Eli Zaretskii
2011-03-06 18:19   ` martin rudalics
2011-03-06 18:59     ` bug#8184: 23.1.90; `menu-bar-non-minibuffer-window-p' error in callsto `kill-this-buffer' Drew Adams
2011-03-06 19:13       ` martin rudalics
2011-03-06 19:36         ` Drew Adams
2011-03-07  8:07           ` martin rudalics
2011-03-07 15:10             ` Drew Adams
2011-03-27 12:22             ` Johan Bockgård
2011-03-29  8:31               ` martin rudalics [this message]
2011-03-06 19:53     ` bug#8184: 23.1.90; `menu-bar-non-minibuffer-window-p' error in calls to `kill-this-buffer' Stefan Monnier
2011-03-07  8:07       ` martin rudalics
2012-10-03  9:12 ` martin rudalics

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

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

  git send-email \
    --in-reply-to=4D9198F8.1060305@gmx.at \
    --to=rudalics@gmx.at \
    --cc=8184@debbugs.gnu.org \
    --cc=bojohan@gnu.org \
    --cc=thunkout@gmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.