GNU bug report logs -
#17888
24.4.50; key binding not shown in menu item for alias command
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Mon, 30 Jun 2014 22:35:02 UTC
Severity: minor
Tags: notabug
Found in version 24.4.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
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 17888 in the body.
You can then email your comments to 17888 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17888
; Package
emacs
.
(Mon, 30 Jun 2014 22:35:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Drew Adams <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 30 Jun 2014 22:35:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
emacs -Q
(defun foo () (interactive)(message "Foo"))
(global-set-key "\C-o" 'foo)
(defalias 'bar 'foo)
(define-key menu-bar-edit-menu [bar] '(menu-item "Do It" bar))
In the Edit menu, the key `C-o' is not shown next to item `Do It'.
Also:
(defun toto () (interactive)(message "Toto"))
(define-key menu-bar-edit-menu [toto] '(menu-item "To It" toto))
(defalias 'titi 'toto)
(global-set-key "\C-n" 'titi)
The binding `C-n' is not shown next to menu item `To It'.
Seems like a command alias should be treated like the aliased command
when it comes to showing key bindings in menus. That would help users.
In GNU Emacs 24.4.50.1 (i686-pc-mingw32)
of 2014-06-28 on ODIEONE
Bzr revision: 117431 rgm <at> gnu.org-20140628015517-eku6hj8mpgcvfnso
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
`configure --prefix=/c/Devel/emacs/snapshot/trunk
--enable-checking=yes,glyphs 'CFLAGS=-O0 -g3'
LDFLAGS=-Lc:/Devel/emacs/lib 'CPPFLAGS=-DGC_MCHECK=1
-Ic:/Devel/emacs/include''
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17888
; Package
emacs
.
(Wed, 20 Jan 2021 02:07:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 17888 <at> debbugs.gnu.org (full text, mbox):
Drew Adams <drew.adams <at> oracle.com> writes:
> (defun foo () (interactive)(message "Foo"))
> (global-set-key "\C-o" 'foo)
>
> (defalias 'bar 'foo)
> (define-key menu-bar-edit-menu [bar] '(menu-item "Do It" bar))
>
> In the Edit menu, the key `C-o' is not shown next to item `Do It'.
Is it supposed to? I'm not sure whether that would be surprising or
not. Does anybody have an opinion?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17888
; Package
emacs
.
(Wed, 20 Jan 2021 15:11:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 17888 <at> debbugs.gnu.org (full text, mbox):
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Wed, 20 Jan 2021 03:06:07 +0100
> Cc: 17888 <at> debbugs.gnu.org
>
> Drew Adams <drew.adams <at> oracle.com> writes:
>
> > (defun foo () (interactive)(message "Foo"))
> > (global-set-key "\C-o" 'foo)
> >
> > (defalias 'bar 'foo)
> > (define-key menu-bar-edit-menu [bar] '(menu-item "Do It" bar))
> >
> > In the Edit menu, the key `C-o' is not shown next to item `Do It'.
>
> Is it supposed to? I'm not sure whether that would be surprising or
> not. Does anybody have an opinion?
Indeed, it isn't clear at all that the expectations in this case are
correct.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17888
; Package
emacs
.
(Wed, 27 Jan 2021 06:51:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 17888 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> Indeed, it isn't clear at all that the expectations in this case are
> correct.
So I'm closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) notabug.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Wed, 27 Jan 2021 06:51:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
17888 <at> debbugs.gnu.org and Drew Adams <drew.adams <at> oracle.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Wed, 27 Jan 2021 06:51:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17888
; Package
emacs
.
(Wed, 27 Jan 2021 16:33:01 GMT)
Full text and
rfc822 format available.
Message #21 received at 17888 <at> debbugs.gnu.org (full text, mbox):
> > Indeed, it isn't clear at all that the expectations
> > in this case are correct.
To this user, at least, it's clearer that users
will expect the alias's key indication than that
they will expect no key indication.
More importantly, showing the key is more helpful
to users than not showing it. The key has the
same effect, for users, as using the menu item.
Consider also:
(defun foo () (interactive) (message "FOO"))
(global-set-key "\C-o" 'foo)
(defalias 'bar 'foo)
C-h w bar
bar is not on any key;
its alias foo is on C-o
That's nice, complete info. Both pieces of that
info are appropriate for such a Help command.
Presumably we tell users about the alias binding
to let them know that you can use `C-o' to, in
effect, invoke `bar'.
That's the info that's missing, for a menu item.
> So I'm closing this bug report.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 25 Feb 2021 12:24:13 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 53 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.