GNU bug report logs -
#14942
24.3.50; Improve key descriptions for facemenu menu items
Previous Next
To reply to this bug, email your comments to 14942 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14942
; Package
emacs
.
(Wed, 24 Jul 2013 05:31: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
.
(Wed, 24 Jul 2013 05:31:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
`C-h f facemenu-set-invisible' says that the command is bound to
<C-down-mouse-2> <sp> v, <menu-bar> <edit> <props> <sp> v.
Good luck trying to understand that, Ms User. And yet it is so close.
This would be a lot more helpful for users if we simply used reasonable
names for the menu-item pseudo-function keys. Instead of <sp> use
<special-properties> and things suddenly become much clearer. Likewise,
use <text-properties> instead of <props>. Likewise, use <invisible>
instead of just [?v].
There is no reason to take shortcuts coding this kind of thing. Keep
in mind that the names used for menu-item keys are part of the user
interface. Please make an effort to provide names that help users
instead of just looking for a quick abbreviation.
In GNU Emacs 24.3.50.1 (i686-pc-mingw32)
of 2013-07-14 on ODIEONE
Bzr revision: 113423 lekktu <at> gmail.com-20130715004922-i67tg2ois14h3fpm
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
`configure --prefix=/c/Devel/emacs/binary --enable-checking=yes,glyphs
CFLAGS='-O0 -g3' CPPFLAGS='-Ic:/Devel/emacs/include'
LDFLAGS='-Lc:/Devel/emacs/lib''
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14942
; Package
emacs
.
(Fri, 29 Apr 2016 13:19:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 14942 <at> debbugs.gnu.org (full text, mbox):
Drew Adams <drew.adams <at> oracle.com> writes:
> `C-h f facemenu-set-invisible' says that the command is bound to
> <C-down-mouse-2> <sp> v, <menu-bar> <edit> <props> <sp> v.
[...]
> This would be a lot more helpful for users if we simply used reasonable
> names for the menu-item pseudo-function keys. Instead of <sp> use
> <special-properties> and things suddenly become much clearer.
What is <sp> meant to express, anyway? I thought perhaps it was a
keyboard shortcut, but nothing I press after C-down-mouse-2 seem to do
anything...
And neither does the v.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14942
; Package
emacs
.
(Fri, 29 Apr 2016 13:37:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 14942 <at> debbugs.gnu.org (full text, mbox):
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Fri, 29 Apr 2016 15:18:17 +0200
> Cc: 14942 <at> debbugs.gnu.org
>
> Drew Adams <drew.adams <at> oracle.com> writes:
>
> > `C-h f facemenu-set-invisible' says that the command is bound to
> > <C-down-mouse-2> <sp> v, <menu-bar> <edit> <props> <sp> v.
>
> [...]
>
> > This would be a lot more helpful for users if we simply used reasonable
> > names for the menu-item pseudo-function keys. Instead of <sp> use
> > <special-properties> and things suddenly become much clearer.
>
> What is <sp> meant to express, anyway? I thought perhaps it was a
> keyboard shortcut, but nothing I press after C-down-mouse-2 seem to do
> anything...
>
> And neither does the v.
Use the source, Lars:
(defvar facemenu-special-menu
(let ((map (make-sparse-keymap "Special")))
(define-key map [?s] (cons (purecopy "Remove Special")
'facemenu-remove-special))
(define-key map [?t] (cons (purecopy "Intangible")
'facemenu-set-intangible))
(define-key map [?v] (cons (purecopy "Invisible")
'facemenu-set-invisible))
(define-key map [?r] (cons (purecopy "Read-Only")
'facemenu-set-read-only))
map)
"Menu keymap for non-face text-properties.")
(defalias 'facemenu-special-menu facemenu-special-menu)
[...]
(let ((map facemenu-menu))
(define-key map [in] (cons (purecopy "Indentation")
'facemenu-indentation-menu))
(define-key map [ju] (cons (purecopy "Justification")
'facemenu-justification-menu))
(define-key map [s2] (list (purecopy "--")))
(define-key map [sp] (cons (purecopy "Special Properties") <<<<<<<<<
^^^^ 'facemenu-special-menu))
(define-key map [bg] (cons (purecopy "Background Color")
'facemenu-background-menu))
(define-key map [fg] (cons (purecopy "Foreground Color")
'facemenu-foreground-menu))
(define-key map [fc] (cons (purecopy "Face")
'facemenu-face-menu)))
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14942
; Package
emacs
.
(Fri, 29 Apr 2016 13:40:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 14942 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> What is <sp> meant to express, anyway? I thought perhaps it was a
>> keyboard shortcut, but nothing I press after C-down-mouse-2 seem to do
>> anything...
>>
>> And neither does the v.
>
> Use the source, Lars:
[...]
> (define-key map [sp] (cons (purecopy "Special Properties") <<<<<<<<<
> ^^^^ 'facemenu-special-menu))
So it is supposed to be a keyboard shortcut?
If I hit <C-down-mouse-2>, hitting "s" or "p" doesn't do anything for
me afterwards...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14942
; Package
emacs
.
(Fri, 29 Apr 2016 13:59:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 14942 <at> debbugs.gnu.org (full text, mbox):
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: drew.adams <at> oracle.com, 14942 <at> debbugs.gnu.org
> Date: Fri, 29 Apr 2016 15:39:46 +0200
>
> > (define-key map [sp] (cons (purecopy "Special Properties") <<<<<<<<<
> > ^^^^ 'facemenu-special-menu))
>
> So it is supposed to be a keyboard shortcut?
No, just a symbol to put into a vector.
> If I hit <C-down-mouse-2>, hitting "s" or "p" doesn't do anything for
> me afterwards...
Of course: there's no key named 'sp'.
I think this is too-level programming getting back at us, but maybe
I'm missing something.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14942
; Package
emacs
.
(Fri, 29 Apr 2016 14:12:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 14942 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Lars Ingebrigtsen <larsi <at> gnus.org>
>> Cc: drew.adams <at> oracle.com, 14942 <at> debbugs.gnu.org
>> Date: Fri, 29 Apr 2016 15:39:46 +0200
>>
>> > (define-key map [sp] (cons (purecopy "Special Properties") <<<<<<<<<
>> > ^^^^ 'facemenu-special-menu))
>>
>> So it is supposed to be a keyboard shortcut?
>
> No, just a symbol to put into a vector.
Huh.
>> If I hit <C-down-mouse-2>, hitting "s" or "p" doesn't do anything for
>> me afterwards...
>
> Of course: there's no key named 'sp'.
>
> I think this is too-level programming getting back at us, but maybe
> I'm missing something.
So the key description here is less than useful, and there's not
something I'm missing? I mean, about this particular thing. :-)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14942
; Package
emacs
.
(Fri, 29 Apr 2016 16:12:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 14942 <at> debbugs.gnu.org (full text, mbox):
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> So the key description here is less than useful, and there's not
> something I'm missing? I mean, about this particular thing. :-)
Have you tried reading the manual?
(elisp) Menu Example
Andreas.
--
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
This bug report was last modified 9 years and 45 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.