From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alessandro Bertulli Newsgroups: gmane.emacs.help Subject: Re: define-key upon common-lisp-mode and inferior-lisp-mode Date: Thu, 01 Sep 2022 11:27:42 +0200 Message-ID: <87a67je91k.fsf@gmail.com> References: <83o7w2ufa6.fsf@gnu.org> <7W8YIKpAyrHUHX3SntrisHnwBBj7wgmuFM_7SxKRuyyo1SeYNsqCgL4QAqmVoJ2n0YivGF1mUvpcaZi6mCDhD_6-O7Yzwj1WSBgriV2FQHI=@proton.me> <835yi9vqro.fsf@gnu.org> <831qsxvo20.fsf@gnu.org> <87h71sr4wv.fsf@gmail.com> <83sflcshy7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1306"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.9; emacs 29.0.50 Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 01 11:50:39 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oTgqM-0000Es-Mk for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 01 Sep 2022 11:50:38 +0200 Original-Received: from localhost ([::1]:45362 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTgqK-00021V-LN for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 01 Sep 2022 05:50:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36656) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTgWy-0000ZQ-5g for help-gnu-emacs@gnu.org; Thu, 01 Sep 2022 05:30:36 -0400 Original-Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]:40941) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTgWw-0001g8-Ih; Thu, 01 Sep 2022 05:30:35 -0400 Original-Received: by mail-ej1-x62c.google.com with SMTP id qh18so13138138ejb.7; Thu, 01 Sep 2022 02:30:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc; bh=M9iohgY24M/t2PCveA9bP9N4R6Dlaq2G3vkwYd0xG90=; b=B5/Z8Ku7QYdVKXSGxSprW+EUzouMmyOylNbPAHqgNMfdVYEzUAXRRo3d0maBNfebje tQ2pHzHgwlS0tG6QHWn8+mxIUWvKk/b/fq5K2f0Tvl5fMfZA3looI3rs9MNC6aG5wKDA NlG5g8WxsMAPWjDSajKqovm89pl1ieeA+x1NxpS6TA+q0DWVALkDBs8A/6lVHTTU8zUz l6BAl70KoXUinRf8ydFzNNuo8NEZ8LnEf+DJUnbuu1UpX4t0ymfYJSs++ZYnAd3jHQqz TYxK7oh0ZT6t7dddDiMet7s3L46ujath69qU/JsHNmyvrSXGGAbRx65HHwaxm0yRgcZu I7vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc; bh=M9iohgY24M/t2PCveA9bP9N4R6Dlaq2G3vkwYd0xG90=; b=j9R1EX0QJmHZJLXjFHXubGv0sGkIvOwVG/XVZy+Q7eZQuNleS1Iqf8+KuFy0tbbuPd P3KzwKv/Y/Olm66Gj/ZY4tI3z7xJ/bauScONoByGh7cc/wMscKFrs48e/8J+7soRwdv3 Q/WiiYTJDxFB/Ig29BEIuYygy/O1UTyAUTGYv79DCZFTmz00hNbBTE72levVX2tDb27U Q/6fmP4rEyd5X16fElfgyuK5NbPRMcV10GFsNlqwNzHIN4Rn67kawfORr3W1RwUrPkmh O4R/3B2Mo+XSi7syOV9XX08EyGJue2ydqozlzzkdynswLWa1VnYyJurv9+b/nX5ysAgU 9t8Q== X-Gm-Message-State: ACgBeo0QtKLIbYBqZoQAsIA3XPIc+pMavFcSEwprvROUkii3zfTf6bqF 0ts8wkPHA25dkBtgT/2MuqBTf7KjM/w= X-Google-Smtp-Source: AA6agR6PWqrvBsWBRXzcamWITJUSjc3wPU1J4/mDW00WEPuUp+HaKbcAOklhlji6PZ08UNz2SxOSRA== X-Received: by 2002:a17:907:7388:b0:741:9805:5240 with SMTP id er8-20020a170907738800b0074198055240mr12314756ejc.546.1662024632568; Thu, 01 Sep 2022 02:30:32 -0700 (PDT) Original-Received: from commodoroII (2-235-154-9.ip228.fastwebnet.it. [2.235.154.9]) by smtp.gmail.com with ESMTPSA id 7-20020a170906310700b007246492658asm8187139ejx.117.2022.09.01.02.30.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Sep 2022 02:30:32 -0700 (PDT) In-reply-to: <83sflcshy7.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::62c; envelope-from=alessandro.bertulli96@gmail.com; helo=mail-ej1-x62c.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:139211 Archived-At: Eli Zaretskii 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