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: Thu, 19 Dec 2024 01:14:06 +0300 Message-ID: <5b491f22-03e0-4fde-0a81-0c9d1e50a3b0@gmail.com> References: <6fc3743a-6a0c-cc4d-9470-dcd634d3b461@gmail.com> <43a99cfc-fb6a-6751-7eda-48bb322e6fb1@gmail.com> <03456761-0989-478b-2b77-593142693ca7@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="15700"; 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 Cc: Drew Adams , "help-gnu-emacs@gnu.org" To: Yuri Khan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 18 23:14:46 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 1tO2Ja-00040I-1o for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 18 Dec 2024 23:14:46 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tO2J6-0000G6-Ps; Wed, 18 Dec 2024 17:14:16 -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 1tO2J3-0000Fx-Kp for help-gnu-emacs@gnu.org; Wed, 18 Dec 2024 17:14:14 -0500 Original-Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tO2J1-0006Gn-Tz for help-gnu-emacs@gnu.org; Wed, 18 Dec 2024 17:14:13 -0500 Original-Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-4361fe642ddso1351215e9.2 for ; Wed, 18 Dec 2024 14:14:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734560048; x=1735164848; darn=gnu.org; h=in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=CZ5ddhYfmEVIRmtuplHD+d/FW7QAstqhgFWvdEP+Zkw=; b=OvNTlQvaPp7Jdo4ooWLUApPYsIX8jkiScwuWD3e3rmZIVamW93vQ4c3GwTfNGNoEMS D54b/jVmZ7Ly+xnqXUlfCyTfTtFj9371Mi9Uye+i8rCoYPy9epTKtixIKKG3ztDoEg3R qMFFOehmd8PQyIwwxgZsQJblC7cPo0POnoherzK2OUVGRLJDnStV0cu+7DQNL2JCES2F b/l5Nk858vOd6gpEOUVjk7i40xslDYBrpJTPsjHd5QyQZY+ROTdg9hDlDRQsPYZ+Z6FY 5dVsZSdM6wjrmi1lyjeLtnETwgrY8Yb2SULvOhH+Zptknd2egzMT9jx4jv8nglPCqEX2 2aiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734560048; x=1735164848; h=in-reply-to:from:references:cc: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=CZ5ddhYfmEVIRmtuplHD+d/FW7QAstqhgFWvdEP+Zkw=; b=BIyvZSiBoPQeDKlJZ+7aL31fCGmnQfwHbsc/zbAxW9Ef5qJXcZiTLFzrsbBgizTb4I nIvhE5coJ0yzTJ4IAvkDQQ/8M0QwyTKLgepbuR9EoEs1qUrvsnx8TNgL+q0g5zIMm0el Pi3fhIMgWFXoll6oD7eyLaM7DV+EvVf4bKLJlXmif+4CcJnWIEfwU3JI3TTuBSirRifj hEwlqSHf1NuDtVsJhTAuyMrYGaUzhXVtS0tNYn6lE2uwsmi2vA663+GnDXLWozAjIalt QeOBf1s9sr5DO70SmxQosKMK/OKO71XZDeEAJJXxdxcfeholuVmTFB+eV/k3QRnBOhX8 dqNg== X-Forwarded-Encrypted: i=1; AJvYcCWGBOX8nMpfJiO4X3zz8KFdDEPY3syhisHg5XiXzkFa7OcIrbdwTkAKed6nM/AMrHIFLbdXQ6pPkxrQfFwgZg==@gnu.org X-Gm-Message-State: AOJu0Yxc24CGKUzx3nMfPqqxl/lbTf8ABDIVRJxWL0uHZY4mwdUcMw80 pIM9a/E7mp7YyizHD33uGNy15m7Qg4YTYtk3lupktVsIgjWH1a3kg4IPLw== X-Gm-Gg: ASbGncuAXxFqdXGN78Kk4SLVtJpp80aZDnnvoXU8kXLEcK1HskXui+p3FUOsfgFQEOc GZIR+2DegPLjhEip6cE8JikOfRQ+qA0ut5Xg4UNbgWUAB1QcnecTNsYWM6t5Fh+zB1bwRcd8fm9 9L/SS0DRho1L6mXcfaBcUJfYvcqcebCe6f9YzQ+2k8/qmE15IKBODsIgXKiDtmqHI+aSHPkUVqX 6qIVFIXbevyQMOjxLO9Wr1KJkCX3amYOdq7VlOub2MAQ82DwxXRHsRAWpJ8MYiE4BKo47EFwJAq gr77T4YD4sGnyNGxpTFcRc38jV4U2qVocwYg1G7kV40pSaR0SP92 X-Google-Smtp-Source: AGHT+IEpfn8ORZl16KD6COB3UG3CvKZenBHRsmcPY3fzxqykgSpHP+Tj9uHzoxSlfNyuYFZZSAZvWg== X-Received: by 2002:a05:600c:3505:b0:434:fa73:a907 with SMTP id 5b1f17b1804b1-4365535e792mr39049615e9.13.1734560048098; Wed, 18 Dec 2024 14:14:08 -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 ffacd0b85a97d-388c8046dabsm15396984f8f.81.2024.12.18.14.14.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 Dec 2024 14:14:07 -0800 (PST) Content-Language: ru In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=tatsu.takamaro@gmail.com; helo=mail-wm1-x333.google.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 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=-2.107, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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:148877 Archived-At: Thank you! This works perfect. >> I must note that you’re in for a lot of swimming against the current if you want to reclaim C-c from its established Emacs role as a prefix. A lot of modes bind some of their functionality to sequences starting with C-c, and you will either have to rebind them in order to start using them, or they will wrest C-c back from you. As far as I read in the Emacs conventions, the C-c is reserved for users, so other modes should not use it. But if some plugin tend to use C-c for somewhat, I'll have to deal with it, yes. This is the price I'm ready to pay to stay with regular and globaly accepted hotkeys. Btw, the Current is a global tendency and even an old convention to use C-c for copy and so on. So it is Emacs who is swimming against it (for historical reasons). Maybe it will drift to use the Ctrl+Z/X/C/V/O/Q gradually. The CUA mode is the first step in this direction. Time will show. вт, 17.12.2024 9:28, Yuri Khan пишет: > On Tue, 17 Dec 2024 at 12:42, Tatsu Takamaro wrote: > >> This one works: >> >> *:keymap '(keymap (?a . kill-ring-save)))* >> >> But I'm not sure why. > You’re not actually supposed to type out keymaps in their internal > representation. Drew probably does that because he learned Emacs > before the introduction of key binding helper functions. > > (defvar ttkeys-mode-map > (define-keymap > "C-c" #'kill-ring-save > "C-a" #'mark-whole-buffer)) > > (define-minor-mode ttkeys-mode "Regular key bindings" > :init-value t > :lighter " TT" > :global t > :keymap ttkeys-mode-map) > > (I must note that you’re in for a lot of swimming against the current > if you want to reclaim C-c from its established Emacs role as a > prefix. A lot of modes bind some of their functionality to sequences > starting with C-c, and you will either have to rebind them in order to > start using them, or they will wrest C-c back from you.)