From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Re: Attach a map to another Date: Sun, 20 Feb 2022 12:10:35 +0100 Message-ID: References: <20220219130737.esdd2kou35avl75e.ref@Ergus> <20220219130737.esdd2kou35avl75e@Ergus> Reply-To: Ergus Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9932"; mail-complaints-to="usenet@ciao.gmane.io" To: Stefan Monnier , Stefan Monnier via Users list for the GNU Emacs text editor , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 20 12:14:31 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 1nLkAh-0002Pm-Cc for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 20 Feb 2022 12:14:31 +0100 Original-Received: from localhost ([::1]:38020 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nLkAf-0008C6-44 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 20 Feb 2022 06:14:29 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41582) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLk75-00077q-9p for help-gnu-emacs@gnu.org; Sun, 20 Feb 2022 06:10:49 -0500 Original-Received: from sonic308-1.consmr.mail.bf2.yahoo.com ([74.6.130.40]:34742) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nLk73-000601-NP for help-gnu-emacs@gnu.org; Sun, 20 Feb 2022 06:10:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1645355445; bh=jt4d/Y+ZTOoMT1oepy928geFi9TBgIyYtYa+pbMJOww=; h=Date:From:To:Subject:In-Reply-To:References:From:Subject:Reply-To; b=dWgvvOf1IDGywBB974BUVfwz84wSDtShbD+VqFBTKpNVoHJOgQGJ7UEQ0JVx3pJXTfrkl8nqj5AV+ka6AuDBWi0Ol7BLd9vqpJrtvZyoEYGOIQ22Mxy1NJYzmTkxuMTtW6mIfTkZpmb/bWCjkTF8WeD1+PYnHj796GSwO1709v2L4TQJjGgt1O7hEQoOoKRfttIdUxiOtUcTu4KoXMA0BiWmUrUJtPufOiGDH/RsN+R9KZN+jdUmMdi3w1bnunv31HCIkOHQy0s17tCTDvRB1bRUUJ3U3Gq9yL35NaQIISlD53FoO5mOC/AXCG27qWjb0tMmSf96nDHza6Uq/Jb9sw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1645355445; bh=737KloQHTJbiLWAy7sIXTjzrbeuU9IdoItbcvZyF5Id=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=pTnrrp9pOSohSVsewqjGMJdG8g+tjdZ3fEtqlDtb8ze3vi33AdtdFZVhj6I3cX0t2Sd1CK4kERzKlKgRlYq34TgsLOcDMVemmo/4lSC2dNRsTtAwuFFRNFyAqQBpcozeXTC7LvW6WqRUPP5nptftF0ymNuBikG9+Hy8xiAPNnmr8a9RMfSKZQ9qBJIa/wYPrIGCCRUWI/YXDu61gDJ0A6sKxxe4+KuOaQfI48PUaX897r7E3s/9h3q1SBOPneUdEYlk02ZgdguR2TsxFCV5d7H4LK2gIecb/hWK1/pC6rF9pBMCGQlGLr3cpaYSuvBOrVkNk6f1K5B6BhkEAdCf3Ew== X-YMail-OSG: svkkv4oVM1klyRQxEck_C0I_mgN4FxYK0WpdFK0MMKqgCji2CU0ef_p_uNpca2Z 6oa_uk0Hmy_9I90N5A1oxGi85eBUewOwOUIMNJmTJ9_b5IFLHCHZKGrH0a3ib2AWMOX_UmsY6g7H KnvKyTjCFLRsRLPisZN3y.iw.R7YzlHZsDgHgtOS3Rv3tFFbf0i0Nob2r7R7HYuz6hPAdM2SCGN_ Vab7PZ899387rf.lp7P1blcd8EC2A0xMYvPzN3k2e1ziy0dUFPaUQ7hS3PfFJL7xkBDqokEYZX99 .ntyBLbGT8lekErSZJBVhb31hgic2oN08YWqPcmATi7W0MGljWE51fIc_.vXipyclN.3UFj9xU82 _.Eg04wYHBbORks1RIrmwPFyhSEtfSWIlGBlaDMGgZPSp9P9EqrBKoonvW4zbnD4zalg1Y3LTVqu 8qMvvu4Tyc42Grq.X8pF6ZlKWWcDleRjWfBB.OSgLvBHVrf0TNtiyoL.3bnCzuk2bJMQu0FnfUne L7nxZg_edHpqHBg1xILlDvWZLXqOtlcGy6SG4AqZYFDiaxSSk4uEvYunYo4j3gM7OE2UipzrDTTS Zk39kaX3jDJVTsC_ppxykohz4bQuGOw1IR5l14VQsnHwrG7LZiR_NOmAhcxWjEAsBtbKUDqM3NfA ii0uCDU.iuH04TZH4UxaoG1gUlqIh8ZEX_4tVUCSr1n_WzEUgRCRRdwEYZPF.V88o1KPKB35lA01 2GMnEPzIDBbkCITRYt5X923pof_0nETNHYTOhJ.uIw4MUlh6wJGwnHYr8HFHGYNAuh6mo8NrhxgF TEH6OnQPqLYSYgOJ81BIsMVWPYo0lMBygKbBzylfZt X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.bf2.yahoo.com with HTTP; Sun, 20 Feb 2022 11:10:45 +0000 Original-Received: by kubenode519.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 7b2a86c5f7293f84d53953c2cafc7538; Sun, 20 Feb 2022 11:10:40 +0000 (UTC) In-Reply-To: X-Mailer: WebService/1.1.19797 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.130.40; envelope-from=spacibba@aol.com; helo=sonic308-1.consmr.mail.bf2.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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-Content-Filtered-By: Mailman/MimeDel 2.1.29 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:136045 Archived-At: It is a pseudo code I wrote quickly :p=2E=2E=2E Adding a :global t may be e= nough? On February 19, 2022 8:24:28 PM GMT+01:00, Stefan Monnier via Users list f= or the GNU Emacs text editor wrote: >> We sadly don't yet have good functions for that, so you have to get >> dirty and do it by hand, with something like: >> >> (define-minor-mode my-mode >> (if my-mode >> (cl-pushnew my-mode-map (cdr isearch-mode-map)) >> (delq my-mode-map isearch-mode-map))) > >BTW, this sample code is badly broken: the above `define-minor-mode` >will create a buffer-local minor mode whereas the modification we apply >to `isearch-mode-map` will be global :-( > > > Stefan > > --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E