From: Alessandro Bertulli <alessandro.bertulli96@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: define-key upon common-lisp-mode and inferior-lisp-mode
Date: Thu, 01 Sep 2022 11:27:42 +0200 [thread overview]
Message-ID: <87a67je91k.fsf@gmail.com> (raw)
In-Reply-To: <83sflcshy7.fsf@gnu.org>
Eli Zaretskii <eliz@gnu.org> writes:
> In the version which says that, use keymap-local-set, if you prefer
> that. But local-set-key is not going anywhere any time soon, so I
> wouldn't worry about that, if you need to write code for multiple
> versions of Emacs, or help people who might use released versions
> (which is what happens here).
You're right, and as a matter of fact, from the doctring I cannot see when
that advice was introduced.
> The advantage is that you don't need to care about the mode and its
> map. Which was a problem in this case, so I thought I was helping.
Thanks, that's something I can use too. Usually I use define-key because
I'm setting my init file, and I know (almost everytime) which mode I'm
customizing. Anyway, your suggestion is super useful. Thanks!
Alessandro
next prev parent reply other threads:[~2022-09-01 9:27 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-30 4:59 define-key upon common-lisp-mode and inferior-lisp-mode wilnerthomas--- via Users list for the GNU Emacs text editor
2022-08-30 11:44 ` Eli Zaretskii
2022-08-30 12:26 ` uzibalqa
2022-08-30 12:51 ` Eli Zaretskii
2022-08-30 13:22 ` uzibalqa
2022-08-30 13:49 ` Eli Zaretskii
2022-08-30 14:15 ` uzibalqa
2022-08-30 15:25 ` tomas
2022-08-30 18:21 ` wilnerthomas--- via Users list for the GNU Emacs text editor
2022-08-30 18:41 ` tomas
2022-08-30 19:08 ` wilnerthomas--- via Users list for the GNU Emacs text editor
2022-08-31 12:11 ` Alessandro Bertulli
2022-08-30 16:24 ` Eli Zaretskii
2022-08-31 12:04 ` Alessandro Bertulli
2022-08-31 12:42 ` Eli Zaretskii
2022-09-01 9:27 ` Alessandro Bertulli [this message]
2022-08-30 13:24 ` Stefan Monnier via Users list for the GNU Emacs text editor
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=87a67je91k.fsf@gmail.com \
--to=alessandro.bertulli96@gmail.com \
--cc=eliz@gnu.org \
--cc=help-gnu-emacs@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.
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).