From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tatsu Takamaro Newsgroups: gmane.emacs.help Subject: Re: [External] : Q1 - the keys' bindings to work more widely Date: Tue, 17 Dec 2024 08:42:42 +0300 Message-ID: References: <6fc3743a-6a0c-cc4d-9470-dcd634d3b461@gmail.com> <43a99cfc-fb6a-6751-7eda-48bb322e6fb1@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12494"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 To: Drew Adams , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 17 06:43:12 2024 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 1tNQMQ-00037a-Vc for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 17 Dec 2024 06:43:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNQMA-0001ux-2x; Tue, 17 Dec 2024 00:42:54 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tNQM8-0001uM-Jo for help-gnu-emacs@gnu.org; Tue, 17 Dec 2024 00:42:52 -0500 Original-Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tNQM3-0008QI-2N for help-gnu-emacs@gnu.org; Tue, 17 Dec 2024 00:42:51 -0500 Original-Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-4361c705434so34925565e9.3 for ; Mon, 16 Dec 2024 21:42:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734414165; x=1735018965; darn=gnu.org; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=rT8XC4FLI73BogFSZ5pWRK0UtHHG7JXq0hGKT3bKmyU=; b=QpoQB5fx9oCAhJmnXPu2dnNohl8kixV71f87m6zCTFPd3dobDB8aSTC3hY9pRqtCV3 7rXiDByR3ZqW8RPD7iAO5lR1TB+SUWm3+io0a48I0za2kskIz0kcfXkHfe71mKXyunMc 29ST783ztj5kvM5sQ8HS19pce7Y9JOqVfmr3xuIYdjxCRBHtM1CdwUT80y3MsZjuoEHT F3DyE+OIWdRN3LUq2CsAY7V+ZKo4Bjyocgr/YPmcOwlotk6+/x230etQjUmv0bJlHGz2 PXpwA74mGb2diAhRn8avq5to+6CPSldDoWIIZD76zBlYMDFyd5LaDYZdi5PnYF8JJqN1 kJsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734414165; x=1735018965; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=rT8XC4FLI73BogFSZ5pWRK0UtHHG7JXq0hGKT3bKmyU=; b=a8zBAwmGIwlajKI0Gr4ogcikizhmb/GihzfmYOe3zvB2r5iJ/r/HYWU/7D+bzQK7oI fradZ9HR/Pxm2qsPsSgpPgfZJ5AuFTzXnDubxWf5W+EnytxTRApa06mPoYA1x6pPHe4+ xCTvbFHAsnccFgPHbokC1cWLtMTrsvvGmZEZpvhN7+lt0xgESblLq08p9xCwOtxAdhVF DoIODr/NrhyKDNSwKp+sbeuYob0thu6d8g1BISClCPxOP0MDc4f26aTLBVA470OrisM8 FwGd2B2lPYKIekivpOEU1mZZI2REuupuZz4vb0qKys+QPtvm8+8Ulz+qjPRyNaZsji3Y nuLw== X-Forwarded-Encrypted: i=1; AJvYcCVJp52j3DXDY3R2gbY4FyNYpWCOfIdLJSqrhMfM227g4fltIGP0CEXXU01V7Gp2OwOlBloTSGQZCrdk9ZpTkw==@gnu.org X-Gm-Message-State: AOJu0YwQBRLEtNJyy5gcrT7oz48ueEGwu+jmaCJsFUXd8CquI/NplIsQ zEyuCja4yErjjArIudo49kKF1X0bE9Y9j88UQAIKKNxeFcUp4++nGOLp/w== X-Gm-Gg: ASbGncutj3mYxTS3S7xb0RkBNzSmX08mlScpgxTl3W4777DKufvtddO7ZB71y4svzNk leh/S7PUyiQSgAoWxBLgzygpgQ69V3V2Ko2tdNulxzNK83DfUjvqEkNAEet+SJ2yxHVHAgYA4RP HcmnDysOLzKorOAltzX6wWAwEV59S+t3GJQNN2aszqDyTeQCs+w4o+wAYOXFK1Hf/zQKPlMN7ee +sBgGhBN23LgqttI5qFfZr3TuzF241sjPCfnvPg8UXctnfsOEKzpkBbhzH6VV708l+J+/WRk+r8 d32ASSj7N0+7I7XJVQEKs/6+oaujrgiHKnni80k+QvFOhvhwKAmv X-Google-Smtp-Source: AGHT+IE+NjerCBxKJYzVf1jwceP7+dfxuOepTEMChY9lbu1gMBJFPJg7M9pQSLuLqlaYqw6WrPFEHw== X-Received: by 2002:a05:600c:45d1:b0:434:a1e7:27b0 with SMTP id 5b1f17b1804b1-43647690425mr17975105e9.11.1734414164953; Mon, 16 Dec 2024 21:42:44 -0800 (PST) Original-Received: from [192.168.1.120] (broadband-37-110-24-126.ip.moscow.rt.ru. [37.110.24.126]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-436362b656fsm106465525e9.34.2024.12.16.21.42.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Dec 2024 21:42:43 -0800 (PST) Content-Language: ru In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=tatsu.takamaro@gmail.com; helo=mail-wm1-x329.google.com X-Spam_score_int: -29 X-Spam_score: -3.0 X-Spam_bar: --- X-Spam_report: (-3.0 / 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, NICE_REPLY_A=-0.934, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148858 Archived-At: I meant "read that page" of course, not wrote (in the previous letter)... вт, 17.12.2024 5:17, Drew Adams пишет: >>> This is a keymap: '(keymap ("a" . #'kill-ring-save))) > It satisfies `keymapp', at least. ;-) But unfortunately, > `keymapp' doesn't guarantee a keymap. The Elisp manual > says it allows any list whose car is `keymap': > > More precisely, this function tests for a list whose CAR is > ‘keymap’, or for a symbol whose function definition satisfies > ‘keymapp’. > >> Do you mean this: >> >> (define-minor-mode ttkeys-mode "Normal key bindings" >> :init-value 1 :lighter " TT" :global 1 >> :keymap '(keymap ("a" . #'kill-ring-save))) >> >> Doesn't work either. > Try this: > > :keymap '(keymap (?a . kill-ring-save))) > > or this: > > :keymap '(keymap (97 . kill-ring-save))) > > https://www.gnu.org/software/emacs/manual/html_node/elisp/Format-of-Keymaps.html