all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#73108: 29.2; easy-menu-define
@ 2024-09-07 16:47 Francis Wright
  2024-09-07 17:19 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Francis Wright @ 2024-09-07 16:47 UTC (permalink / raw)
  To: 73108

[-- Attachment #1: Type: text/plain, Size: 579 bytes --]

The docstring and the Elisp manual both state that easy-menu-define "defines SYMBOL as a function for popping up the menu" but it doesn't. It defines SYMBOL as a variable whose value is the menu, which could be used for popping up the menu. This behaviour is useful and I use it, so I suggest that the documentation should be corrected.

Thanks, Francis

In GNU Emacs 29.2 (build 2, x86_64-w64-mingw32) of 2024-01-18 built on AVALON
Windowing system distributor 'Microsoft Corp.', version 10.0.22631
System Description: Microsoft Windows 10 Home (v10.0.2009.22631.4037)


[-- Attachment #2: Type: text/html, Size: 1666 bytes --]

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

* bug#73108: 29.2; easy-menu-define
  2024-09-07 16:47 bug#73108: 29.2; easy-menu-define Francis Wright
@ 2024-09-07 17:19 ` Eli Zaretskii
  2024-09-07 17:35   ` Francis Wright
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2024-09-07 17:19 UTC (permalink / raw)
  To: Francis Wright; +Cc: 73108

> From: Francis Wright <f.j.wright@live.co.uk>
> Date: Sat, 7 Sep 2024 16:47:17 +0000
> 
> The docstring and the Elisp manual both state that easy-menu-define "defines SYMBOL as a function for
> popping up the menu" but it doesn't.

Are you sure?

  emacs -Q
  M-x load-library RET bookmark RET
  M-: (symbol-function 'bookmark-menu) RET
    => #[257 "\301^A\3009\203^W\0\302\300\303N\304\"...

Adding Stefan in case he has comments.





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

* bug#73108: 29.2; easy-menu-define
  2024-09-07 17:19 ` Eli Zaretskii
@ 2024-09-07 17:35   ` Francis Wright
  2024-09-14  8:56     ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Francis Wright @ 2024-09-07 17:35 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 73108@debbugs.gnu.org

[-- Attachment #1: Type: text/plain, Size: 887 bytes --]

Looking again, SYMBOL appears to be both a variable and a function, so I was wrong. Sorry! But it might be helpful to add to the documentation that SYMBOL also defines a variable.

Francis
________________________________
From: Eli Zaretskii <eliz@gnu.org>
Sent: 07 September 2024 6:19 PM
To: Francis Wright <f.j.wright@live.co.uk>
Cc: 73108@debbugs.gnu.org <73108@debbugs.gnu.org>
Subject: Re: bug#73108: 29.2; easy-menu-define

> From: Francis Wright <f.j.wright@live.co.uk>
> Date: Sat, 7 Sep 2024 16:47:17 +0000
>
> The docstring and the Elisp manual both state that easy-menu-define "defines SYMBOL as a function for
> popping up the menu" but it doesn't.

Are you sure?

  emacs -Q
  M-x load-library RET bookmark RET
  M-: (symbol-function 'bookmark-menu) RET
    => #[257 "\301^A\3009\203^W\0\302\300\303N\304\"...

Adding Stefan in case he has comments.

[-- Attachment #2: Type: text/html, Size: 2017 bytes --]

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

* bug#73108: 29.2; easy-menu-define
  2024-09-07 17:35   ` Francis Wright
@ 2024-09-14  8:56     ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2024-09-14  8:56 UTC (permalink / raw)
  To: Francis Wright; +Cc: 73108-done

> From: Francis Wright <f.j.wright@live.co.uk>
> CC: "73108@debbugs.gnu.org" <73108@debbugs.gnu.org>
> Date: Sat, 7 Sep 2024 17:35:09 +0000
> 
> Looking again, SYMBOL appears to be both a variable and a function, so I was wrong. Sorry! But it might be
> helpful to add to the documentation that SYMBOL also defines a variable.

Done.





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

end of thread, other threads:[~2024-09-14  8:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-07 16:47 bug#73108: 29.2; easy-menu-define Francis Wright
2024-09-07 17:19 ` Eli Zaretskii
2024-09-07 17:35   ` Francis Wright
2024-09-14  8:56     ` Eli Zaretskii

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.