From: Glenn Morris <rgm@gnu.org>
To: Robbie Morrison <robbie@actrix.co.nz>
Cc: 6670@debbugs.gnu.org
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 [thread overview]
Message-ID: <vlhbjtaj2o.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <caafc9a201312a3d9b4e4eb76e1a3233.squirrel@my.actrix.co.nz> (Robbie Morrison's message of "Tue\, 20 Jul 2010 06\:21\:59 +1200 \(NZST\)")
"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))
next prev parent reply other threads:[~2010-07-20 22:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-19 18:21 bug#6670: 23.1; faulty example in Lisp Reference Manual, 22.17.4 Menu Example Robbie Morrison
2010-07-20 22:23 ` Glenn Morris [this message]
[not found] ` <124ed7d5446b49e959e9b07dcf67270f.squirrel@my.actrix.co.nz>
2010-08-09 22:46 ` Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=vlhbjtaj2o.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=6670@debbugs.gnu.org \
--cc=robbie@actrix.co.nz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.