bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#6670: 23.1; faulty example in Lisp Reference Manual, 22.17.4 Menu Ex


From: Glenn Morris
Subject: bug#6670: 23.1; faulty example in Lisp Reference Manual, 22.17.4 Menu Example
Date: Tue, 20 Jul 2010 18:23:43 -0400
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

"Robbie Morrison" wrote:

> In section 22.17.4 of the Lisp Reference Manual, I believe that:
>
>      (define-key menu-bar-edit-menu [replace]
>        (list 'menu-item "Replace" menu-bar-replace-menu))
>
> should read:
>
>      (define-key global-map [replace]
>        (list 'menu-item "Replace" menu-bar-replace-menu))
>
> The explanatory paragraph which follows needs checking too.

Thanks for the report, but the original text seems fine to me.
As it explains at the start of the section:

"It is the definition of the `Replace' submenu in the `Edit' menu in
the menu bar[...]"

The difference between the two forms is that yours is intended to put
the Replace menu at the top-level, as opposed to inside the Edit menu.
I don't see that your form works though. Surely it should be:

      (define-key global-map [menu-bar replace]
        (list 'menu-item "Replace" menu-bar-replace-menu))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]