GNU bug report logs -
#7967
23.2.93; keybindings should be echoed in *Message* buffer
Previous Next
Reported by: "Roland Winkler" <winkler <at> gnu.org>
Date: Wed, 2 Feb 2011 18:02:01 UTC
Severity: wishlist
Tags: patch
Found in version 23.2.93
Fixed in version 24.1
Done: Stefan Monnier <monnier <at> iro.umontreal.ca>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 7967 in the body.
You can then email your comments to 7967 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7967
; Package
emacs
.
(Wed, 02 Feb 2011 18:02:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Roland Winkler" <winkler <at> gnu.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 02 Feb 2011 18:02:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Execute any command foo with a keybinding in its "long form" M-x foo.
Emacs issues the message
You can run the command `foo' with ...
The default is to display this message for two seconds.
Then the message is gone for ever. I'd appreciate if this
messsage was echoed also in the *Message* buffer.
In GNU Emacs 23.2.93.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1)
of 2011-02-02 on regnitz
Windowing system distributor `The X.Org Foundation', version 11.0.10706000
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7967
; Package
emacs
.
(Wed, 02 Feb 2011 23:08:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 7967 <at> debbugs.gnu.org (full text, mbox):
On Wed, Feb 2, 2011 at 7:09 PM, Roland Winkler <winkler <at> gnu.org> wrote:
> Execute any command foo with a keybinding in its "long form" M-x foo.
> Emacs issues the message
>
> You can run the command `foo' with ...
>
> The default is to display this message for two seconds.
> Then the message is gone for ever. I'd appreciate if this
> messsage was echoed also in the *Message* buffer.
I think it is a good suggestion.
However while it can help newbies it might also disturb old users so
it is probably best to make it default and have an option to turn it
off.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7967
; Package
emacs
.
(Wed, 02 Feb 2011 23:17:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 7967 <at> debbugs.gnu.org (full text, mbox):
On Thu Feb 3 2011 Lennart Borgman wrote:
> On Wed, Feb 2, 2011 at 7:09 PM, Roland Winkler <winkler <at> gnu.org> wrote:
> > Execute any command foo with a keybinding in its "long form" M-x foo.
> > Emacs issues the message
> >
> > You can run the command `foo' with ...
> >
> > The default is to display this message for two seconds.
> > Then the message is gone for ever. I'd appreciate if this
> > messsage was echoed also in the *Message* buffer.
>
> I think it is a good suggestion.
>
> However while it can help newbies it might also disturb old users so
> it is probably best to make it default and have an option to turn it
> off.
The experienced user can already switch off these messages
completely by means of the variable
suggest-key-bindings
So all I am suggesting is really: if the keybindings are given in
the message area (because suggest-key-bindings is non-nil), then
these messages should also be recorded in the *Messages* buffer.
All this is handled by the built-in function execute-extended-command,
which is why this problem goes beyond my lisp hacking skills.
Roland
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7967
; Package
emacs
.
(Wed, 02 Feb 2011 23:41:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 7967 <at> debbugs.gnu.org (full text, mbox):
On Thu, Feb 3, 2011 at 12:25 AM, Roland Winkler <winkler <at> gnu.org> wrote:
> On Thu Feb 3 2011 Lennart Borgman wrote:
>> On Wed, Feb 2, 2011 at 7:09 PM, Roland Winkler <winkler <at> gnu.org> wrote:
>> > Execute any command foo with a keybinding in its "long form" M-x foo.
>> > Emacs issues the message
>> >
>> > You can run the command `foo' with ...
>> >
>> > The default is to display this message for two seconds.
>> > Then the message is gone for ever. I'd appreciate if this
>> > messsage was echoed also in the *Message* buffer.
>>
>> I think it is a good suggestion.
>>
>> However while it can help newbies it might also disturb old users so
>> it is probably best to make it default and have an option to turn it
>> off.
>
> The experienced user can already switch off these messages
> completely by means of the variable
>
> suggest-key-bindings
>
> So all I am suggesting is really: if the keybindings are given in
> the message area (because suggest-key-bindings is non-nil), then
> these messages should also be recorded in the *Messages* buffer.
> All this is handled by the built-in function execute-extended-command,
> which is why this problem goes beyond my lisp hacking skills.
Maybe it would still be good with a separate option for recording the
suggestions in the *Messages* buffer?
I am not sure. To implement your suggestion all that is needed is to
replace message2_nolog with message2 in Fexecute_extended_command in
keyboard.c.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7967
; Package
emacs
.
(Wed, 02 Feb 2011 23:51:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 7967 <at> debbugs.gnu.org (full text, mbox):
2011/2/3 Lennart Borgman <lennart.borgman <at> gmail.com>:
> On Wed, Feb 2, 2011 at 7:09 PM, Roland Winkler <winkler <at> gnu.org> wrote:
>> Execute any command foo with a keybinding in its "long form" M-x foo.
>> Emacs issues the message
>>
>> You can run the command `foo' with ...
>>
>> The default is to display this message for two seconds.
>> Then the message is gone for ever. I'd appreciate if this
>> messsage was echoed also in the *Message* buffer.
>
> I think it is a good suggestion.
>
> However while it can help newbies it might also disturb old users so
> it is probably best to make it default and have an option to turn it
> off.
>
This is such a minor change I'd doubt that many old users would even
notice it, let alone be annoyed by it.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7967
; Package
emacs
.
(Wed, 02 Feb 2011 23:58:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 7967 <at> debbugs.gnu.org (full text, mbox):
On Thu Feb 3 2011 Lennart Borgman wrote:
> Maybe it would still be good with a separate option for recording the
> suggestions in the *Messages* buffer?
>
> I am not sure. To implement your suggestion all that is needed is to
> replace message2_nolog with message2 in Fexecute_extended_command in
> keyboard.c.
I am not aware that other emacs functions that issue messages
allowed one to configure separately whether the message appears in
the message area, and whether it will be recorded in the *Message*
buffer. Probably, this was discussed long time ago when the concept
of having the *Message* buffer was first introduced (and
execute-extended-command should follow here "the usual rules").
I thought that the possiblity to have messages that are not recorded
in the *Messages* buffer was mostly intended for things like
reporting operation progress, where it is rather unlikely one wants
to look back at individual messages.
But maybe I am overlooking something here.
Roland
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7967
; Package
emacs
.
(Thu, 03 Feb 2011 00:34:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 7967 <at> debbugs.gnu.org (full text, mbox):
"Roland Winkler" wrote:
> Execute any command foo with a keybinding in its "long form" M-x foo.
> Emacs issues the message
>
> You can run the command `foo' with ...
>
> The default is to display this message for two seconds.
> Then the message is gone for ever.
You can use M-x where-is (C-h w) to bring it back whenever you like.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7967
; Package
emacs
.
(Thu, 03 Feb 2011 01:39:01 GMT)
Full text and
rfc822 format available.
Message #26 received at 7967 <at> debbugs.gnu.org (full text, mbox):
On Wed Feb 2 2011 Glenn Morris wrote:
> > Execute any command foo with a keybinding in its "long form" M-x foo.
> > Emacs issues the message
> >
> > You can run the command `foo' with ...
> >
> > The default is to display this message for two seconds.
> > Then the message is gone for ever.
>
> You can use M-x where-is (C-h w) to bring it back whenever you like.
It wasn't emacs if there were not all kind of alternative ways for
this. But why not put it into the *Message* buffer, too?
I like these messages because my capacity for memorizing things is
limited.
Roland
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7967
; Package
emacs
.
(Thu, 03 Feb 2011 02:11:01 GMT)
Full text and
rfc822 format available.
Message #29 received at 7967 <at> debbugs.gnu.org (full text, mbox):
On Thu, Feb 3, 2011 at 2:47 AM, Roland Winkler <winkler <at> gnu.org> wrote:
> On Wed Feb 2 2011 Glenn Morris wrote:
>> > Execute any command foo with a keybinding in its "long form" M-x foo.
>> > Emacs issues the message
>> >
>> > You can run the command `foo' with ...
>> >
>> > The default is to display this message for two seconds.
>> > Then the message is gone for ever.
>>
>> You can use M-x where-is (C-h w) to bring it back whenever you like.
>
> It wasn't emacs if there were not all kind of alternative ways for
> this. But why not put it into the *Message* buffer, too?
> I like these messages because my capacity for memorizing things is
> limited.
A very simple alternative for implementing this (without adding a new
option) is to allow negative numbers for suggest-key-bindings. If the
numbers are negative that would then mean that the message would be
stored in *Messages*.
Implementing it this way would be 2 or 3 lines of C code and a new
sentence in the doc string.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7967
; Package
emacs
.
(Sun, 06 Feb 2011 17:09:02 GMT)
Full text and
rfc822 format available.
Message #32 received at 7967 <at> debbugs.gnu.org (full text, mbox):
On Wed Feb 2 2011 Glenn Morris wrote:
> > Execute any command foo with a keybinding in its "long form" M-x foo.
> > Emacs issues the message
> >
> > You can run the command `foo' with ...
> >
> > The default is to display this message for two seconds.
> > Then the message is gone for ever.
>
> You can use M-x where-is (C-h w) to bring it back whenever you like.
I guess the real-world problem is:
Usually, I am running not just one command, but I am really in the
middle of some larger task when all this happens. And I do not want
to interrupt things because of such a message popping up.
Later on, when I might be able to go back, it's too late. I might
not even remember anymore the command I was executing when this
message popped up.
So is anybody able to fix this? -- Thanks a lot!
Roland
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7967
; Package
emacs
.
(Mon, 07 Feb 2011 15:20:03 GMT)
Full text and
rfc822 format available.
Message #35 received at 7967 <at> debbugs.gnu.org (full text, mbox):
> So is anybody able to fix this? -- Thanks a lot!
I'm fine with recording those messages in *Messages*, so feel free to
install the corresponding patch.
Stefan
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7967
; Package
emacs
.
(Wed, 09 Feb 2011 02:44:02 GMT)
Full text and
rfc822 format available.
Message #38 received at submit <at> debbugs.gnu.org (full text, mbox):
On 2/6/11 10:16 AM, Roland Winkler wrote:
> On Wed Feb 2 2011 Glenn Morris wrote:
>>> Execute any command foo with a keybinding in its "long form" M-x foo.
>>> Emacs issues the message
>>>
>>> You can run the command `foo' with ...
>>>
>>> The default is to display this message for two seconds.
>>> Then the message is gone for ever.
>>
>> You can use M-x where-is (C-h w) to bring it back whenever you like.
>
> I guess the real-world problem is:
>
> Usually, I am running not just one command, but I am really in the
> middle of some larger task when all this happens. And I do not want
> to interrupt things because of such a message popping up.
>
> Later on, when I might be able to go back, it's too late. I might
> not even remember anymore the command I was executing when this
> message popped up.
>
> So is anybody able to fix this? -- Thanks a lot!
sed -i~ '10656s/message2_nolog/message2/' emacs-23.2/src/keyboard.c
make
make install
--
Kevin Rodgers
Denver, Colorado, USA
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7967
; Package
emacs
.
(Fri, 11 Mar 2011 04:51:02 GMT)
Full text and
rfc822 format available.
Message #41 received at 7967 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Attached is a patch which implements this functionality.
-Zachary Kanfer
[Message part 2 (text/html, inline)]
[7967-20110310.txt (text/plain, attachment)]
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7967
; Package
emacs
.
(Fri, 11 Mar 2011 05:43:01 GMT)
Full text and
rfc822 format available.
Message #44 received at 7967 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
My mistake--forgot to clean out a comment in the last patch. Attached is a
fixed one, properly indented.
On Thu, Mar 10, 2011 at 11:49 PM, Zachary Kanfer <zkanfer <at> gmail.com> wrote:
> Attached is a patch which implements this functionality.
> -Zachary Kanfer
>
[Message part 2 (text/html, inline)]
[7967-20110310-2.txt (text/plain, attachment)]
Reply sent
to
Stefan Monnier <monnier <at> iro.umontreal.ca>
:
You have taken responsibility.
(Wed, 30 Mar 2011 13:38:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
"Roland Winkler" <winkler <at> gnu.org>
:
bug acknowledged by developer.
(Wed, 30 Mar 2011 13:38:02 GMT)
Full text and
rfc822 format available.
Message #49 received at 7967-done <at> debbugs.gnu.org (full text, mbox):
Version: 24.1
> My mistake--forgot to clean out a comment in the last patch. Attached is a
> fixed one, properly indented.
Thank you, installed,
Stefan
> On Thu, Mar 10, 2011 at 11:49 PM, Zachary Kanfer <zkanfer <at> gmail.com> wrote:
>> Attached is a patch which implements this functionality.
>> -Zachary Kanfer
>>
> === modified file 'src/keyboard.c'
> *** src/keyboard.c 2011-02-16 16:35:16 +0000
> --- src/keyboard.c 2011-03-11 05:41:00 +0000
> *************** give to the command you invoke, if it as
> *** 10302,10310 ****
> sprintf (newmessage, "You can run the command `%s' with %s",
> SDATA (SYMBOL_NAME (function)),
> SDATA (binding));
> ! message2_nolog (newmessage,
> ! strlen (newmessage),
> ! STRING_MULTIBYTE (binding));
> if (NUMBERP (Vsuggest_key_bindings))
> waited = sit_for (Vsuggest_key_bindings, 0, 2);
> else
> --- 10302,10310 ----
> sprintf (newmessage, "You can run the command `%s' with %s",
> SDATA (SYMBOL_NAME (function)),
> SDATA (binding));
> ! message2 (newmessage,
> ! strlen (newmessage),
> ! STRING_MULTIBYTE (binding));
> if (NUMBERP (Vsuggest_key_bindings))
> waited = sit_for (Vsuggest_key_bindings, 0, 2);
> else
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 28 Apr 2011 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 14 years and 56 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.