all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#14942: 24.3.50; Improve key descriptions for facemenu menu items
@ 2013-07-24  5:30 Drew Adams
  2016-04-29 13:18 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 7+ messages in thread
From: Drew Adams @ 2013-07-24  5:30 UTC (permalink / raw)
  To: 14942

`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@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''





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#14942: 24.3.50; Improve key descriptions for facemenu menu items
  2013-07-24  5:30 bug#14942: 24.3.50; Improve key descriptions for facemenu menu items Drew Adams
@ 2016-04-29 13:18 ` Lars Ingebrigtsen
  2016-04-29 13:35   ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Lars Ingebrigtsen @ 2016-04-29 13:18 UTC (permalink / raw)
  To: Drew Adams; +Cc: 14942

Drew Adams <drew.adams@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





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#14942: 24.3.50; Improve key descriptions for facemenu menu items
  2016-04-29 13:18 ` Lars Ingebrigtsen
@ 2016-04-29 13:35   ` Eli Zaretskii
  2016-04-29 13:39     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2016-04-29 13:35 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 14942

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Fri, 29 Apr 2016 15:18:17 +0200
> Cc: 14942@debbugs.gnu.org
> 
> Drew Adams <drew.adams@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)))






^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#14942: 24.3.50; Improve key descriptions for facemenu menu items
  2016-04-29 13:35   ` Eli Zaretskii
@ 2016-04-29 13:39     ` Lars Ingebrigtsen
  2016-04-29 13:57       ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Lars Ingebrigtsen @ 2016-04-29 13:39 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 14942

Eli Zaretskii <eliz@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





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#14942: 24.3.50; Improve key descriptions for facemenu menu items
  2016-04-29 13:39     ` Lars Ingebrigtsen
@ 2016-04-29 13:57       ` Eli Zaretskii
  2016-04-29 14:10         ` Lars Ingebrigtsen
  0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2016-04-29 13:57 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 14942

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: drew.adams@oracle.com,  14942@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.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#14942: 24.3.50; Improve key descriptions for facemenu menu items
  2016-04-29 13:57       ` Eli Zaretskii
@ 2016-04-29 14:10         ` Lars Ingebrigtsen
  2016-04-29 16:10           ` Andreas Schwab
  0 siblings, 1 reply; 7+ messages in thread
From: Lars Ingebrigtsen @ 2016-04-29 14:10 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 14942

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Lars Ingebrigtsen <larsi@gnus.org>
>> Cc: drew.adams@oracle.com,  14942@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





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#14942: 24.3.50; Improve key descriptions for facemenu menu items
  2016-04-29 14:10         ` Lars Ingebrigtsen
@ 2016-04-29 16:10           ` Andreas Schwab
  0 siblings, 0 replies; 7+ messages in thread
From: Andreas Schwab @ 2016-04-29 16:10 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 14942

Lars Ingebrigtsen <larsi@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@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-04-29 16:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-24  5:30 bug#14942: 24.3.50; Improve key descriptions for facemenu menu items Drew Adams
2016-04-29 13:18 ` Lars Ingebrigtsen
2016-04-29 13:35   ` Eli Zaretskii
2016-04-29 13:39     ` Lars Ingebrigtsen
2016-04-29 13:57       ` Eli Zaretskii
2016-04-29 14:10         ` Lars Ingebrigtsen
2016-04-29 16:10           ` Andreas Schwab

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.