From: Glenn Morris <rgm@gnu.org>
To: 26466@debbugs.gnu.org
Cc: noct@openmailbox.org
Subject: bug#26466: 26.0.50; Document that kill-this-buffer should be called from the menu bar
Date: Wed, 12 Apr 2017 16:00:30 -0400 [thread overview]
Message-ID: <m1efwxl7kx.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <83shldif6l.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 12 Apr 2017 22:44:34 +0300")
Eli Zaretskii wrote:
>> From: Fox Kiester <noct@openmailbox.org>
>> Date: Wed, 12 Apr 2017 11:40:46 -0400
>>
>> I learned today that kill-this-buffer is only meant to be called
>> from the menu bar. This is clear after navigating to its definition
>> in menu-bar.el, but it would be nice if this was also mentioned in
>> its docstring especially since the command is not prefixed with
>> "menu-bar-". This might help prevent some confusion.
>
> More accurately, this command might decide to silently do nothing if
> invoked not vie the menu bar.
Perhaps that aspect wasn't entirely intentional (yes I know it's bug#8184).
Compare the definition in Emacs 23.4:
(defun kill-this-buffer ()
"Kill the current buffer.
When called in the minibuffer, get out of the minibuffer
using `abort-recursive-edit'."
(interactive)
(if (menu-bar-non-minibuffer-window-p)
(kill-buffer (current-buffer))
(abort-recursive-edit)))
next prev parent reply other threads:[~2017-04-12 20:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-12 15:40 bug#26466: 26.0.50; Document that kill-this-buffer should be called from the menu bar Fox Kiester
2017-04-12 19:18 ` Glenn Morris
2017-04-12 20:15 ` Eli Zaretskii
2017-04-12 19:44 ` Eli Zaretskii
2017-04-12 20:00 ` Glenn Morris [this message]
2017-04-12 20:30 ` Eli Zaretskii
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=m1efwxl7kx.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=26466@debbugs.gnu.org \
--cc=noct@openmailbox.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 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.