unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Glenn Morris <rgm@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: master e5392d3: Make easymenu downcase the menu symbol for greater backwards compat
Date: Tue, 02 Mar 2021 07:51:12 +0100	[thread overview]
Message-ID: <87sg5eyrof.fsf@gnus.org> (raw)
In-Reply-To: <pawnuqifs7.fsf@fencepost.gnu.org> (Glenn Morris's message of "Mon, 01 Mar 2021 19:02:32 -0500")

Glenn Morris <rgm@gnu.org> writes:

>>     Make easymenu downcase the menu symbol for greater backwards compat
>
> This may be more compatible for the goal of "replace old-style menu
> definitions with easymenu ones", but it is an incompatible change for
> any menus already defined with easymenu, which may be accessed by any
> code outside of Emacs.
>
> Eg term-mode-map used to contain "Signals", now it contains "signals".

Yup.  But I searched through both the Emacs tree and GNU ELPA and didn't
find a single instance of any upper-case menu `lookup-key' calls, so I
thought the likelihood of breakages was sufficiently small to make the
(incompatible) change.  But it should probably be called out in NEWS.

Changing `lookup-key' to accept both forms (like Eli) suggests in a
followup would be better, of course, if it can be done efficiently.

easymenu should also be extended with a form to allow explicitly
specifying the symbol to use: For instance, if you change the name of
the menu now, the symbol will also change.  So for backwards
compatibility, symbols should be specified when changing the name in
easymenu calls.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



  parent reply	other threads:[~2021-03-02  6:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20210301212446.5364.12431@vcs0.savannah.gnu.org>
     [not found] ` <20210301212448.4653D20E1B@vcs0.savannah.gnu.org>
2021-03-02  0:02   ` master e5392d3: Make easymenu downcase the menu symbol for greater backwards compat Glenn Morris
2021-03-02  5:57     ` Eli Zaretskii
2021-03-02  6:51     ` Lars Ingebrigtsen [this message]
2021-03-02 13:56       ` Eli Zaretskii
2021-03-03 14:36         ` Lars Ingebrigtsen
2021-03-03 14:41           ` Eli Zaretskii
2021-03-03 18:46             ` Stefan Kangas
2021-03-03 19:20               ` Eli Zaretskii

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sg5eyrof.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=emacs-devel@gnu.org \
    --cc=rgm@gnu.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).