From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tim Johnson Newsgroups: gmane.emacs.help Subject: Re: [External] : Re: Trapping prefixes with universal argument component Date: Sat, 21 Aug 2021 13:30:32 -0800 Message-ID: References: <34c1e5b2-b51f-af62-7f46-f1edd2347e3b@akwebsoft.com> <875yvzaigm.fsf@zoho.eu> <2c62eabd-0a0a-f8af-edd6-8d127f9323f1@akwebsoft.com> <87zgtb4bj8.fsf@zoho.eu> <87wnoe387m.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14292"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 21 23:31:21 2021 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 1mHYaG-0003We-PN for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 21 Aug 2021 23:31:21 +0200 Original-Received: from localhost ([::1]:48276 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHYaE-0006aK-RX for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 21 Aug 2021 17:31:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60106) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHYZZ-0006aA-4g for help-gnu-emacs@gnu.org; Sat, 21 Aug 2021 17:30:37 -0400 Original-Received: from gateway24.websitewelcome.com ([192.185.51.31]:12418) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHYZX-0006cA-Ig for help-gnu-emacs@gnu.org; Sat, 21 Aug 2021 17:30:36 -0400 Original-Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway24.websitewelcome.com (Postfix) with ESMTP id 99661E828 for ; Sat, 21 Aug 2021 16:30:34 -0500 (CDT) Original-Received: from host2075.hostmonster.com ([67.20.113.97]) by cmsmtp with SMTP id HYZWm7whpLjoRHYZWm8HsT; Sat, 21 Aug 2021 16:30:34 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tj49.com; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version: Date:Message-ID:From:References:To:Subject:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=dBLa784B0/nJwuAMVPHGfyxwHl9oyO9dwb86Cna0fno=; b=mmZ4CYLFlfAn4SRZchuIltGmFX g1FnNKSUY49L43oG0L1hMc4ySpyDkaKnTg36NwTRGGChDLTfsT7XL88aEcc9T+jx042VpQ/a2cilA UaPSzzi+joJSjldmcRTHPWaOL; Original-Received: from tjohnson.mtaonline.net ([64.4.232.191]:59796 helo=[192.168.1.2]) by host2075.hostmonster.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mHYZW-003Q5S-00 for help-gnu-emacs@gnu.org; Sat, 21 Aug 2021 15:30:34 -0600 In-Reply-To: Content-Language: en-US X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host2075.hostmonster.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - akwebsoft.com X-BWhitelist: no X-Source-IP: 64.4.232.191 X-Source-L: No X-Exim-ID: 1mHYZW-003Q5S-00 X-Source-Sender: tjohnson.mtaonline.net ([192.168.1.2]) [64.4.232.191]:59796 X-Source-Auth: tim@tj49.com X-Email-Count: 2 X-Source-Cap: bW9sZG92YXM7bW9sZG92YXM7aG9zdDIwNzUuaG9zdG1vbnN0ZXIuY29t X-Local-Domain: yes Received-SPF: neutral client-ip=192.185.51.31; envelope-from=tim@akwebsoft.com; helo=gateway24.websitewelcome.com X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, NICE_REPLY_A=-1.49, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_NEUTRAL=0.779 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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:132663 Archived-At: On 8/21/21 12:08 PM, Drew Adams wrote: >>> Neither did reassigning M-kp-0 >> Hm, maybe it should be put like this: M- ? >> (define-key input-decode-map [M-] nil) > The way to get such things right, assuming that your > keyboard and Emacs can effect the key, is to do this: > > 1. Use `C-h k' to find out how Emacs itself describes > (names) the key sequence. This tells me: > > M-0 (translated from ) runs the command... > > 2. Change that to a string by wrapping with "...": > "". > > 3. Pass that to `kbd': (kbd "") > > That's your answer. And if you want to see what > that ends up being (but you [M-kp-0]don't need to), eval > it: the result is [M-kp-0]. > > So you can use either (kbd "") or [M-kp-0]. Thanks Drew: I always using the kbd method and that is what I originally used to reassign. It just did not work. The other side of this is that these three keys are effectively leaders and I have used them as such in the past. But I'm now retired and just want to make things simple. I think I will just pull the keycaps and wrap some duct tape over the switches. After all, if duct tape is good enough for Red Green, it's good enough for me ... :) -- Tim tj49.com