From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#74619: macOS: displayed as keybinding for \\[customize] on emacs -nw Date: Mon, 02 Dec 2024 15:49:18 +0100 Message-ID: References: <87bjxufa7d.fsf@gmail.com> 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="26446"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Yoichi Nakayama , 74619@debbugs.gnu.org To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 02 15:51:22 2024 Return-path: Envelope-to: geb-bug-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 1tI7lh-0006gk-Cw for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 02 Dec 2024 15:51:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tI7lT-0005AY-3z; Mon, 02 Dec 2024 09:51:07 -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 1tI7lQ-0005AN-2w for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2024 09:51:04 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tI7lP-0004Uj-JG for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2024 09:51:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=ybHFcj/ZbDCQFuRY9eEsaoduZExM0EbN0NTDKhxg7k8=; b=Q2fVLHoEDhmuZRxbZIlscfakHunFFCu7/9ZmgZjsmUV2JN0w/UT/ipa0RqNSviogXxt71Ue3hq1IikRQsJZ0BZ+g2Hi95PEVeBfPrUoSAjwE5TmAnRpOZCcLi3PtCtcUvPRKJg1nBaSOlcbrl3E1w0os3bAzINF+WrKP6pg5OH1BmbYoOLdmZbwp/WipGtDyVX8beAAjKJ/XRQKvQwRgLi1EoDRvtHT0wBSDmiw9AK4yAKcJFsJ78fywQ7eITUcS1sbobgaHMNfMu5ZcX38bE9pBjfnVl+u95dBxQlfst3vgaVeQT6eYOqvu3490rVg/tcaeTNRx9f1ylII/URDAsQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tI7lO-0004U8-95 for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2024 09:51:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Dec 2024 14:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74619 X-GNU-PR-Package: emacs Original-Received: via spool by 74619-submit@debbugs.gnu.org id=B74619.173315102817172 (code B ref 74619); Mon, 02 Dec 2024 14:51:02 +0000 Original-Received: (at 74619) by debbugs.gnu.org; 2 Dec 2024 14:50:28 +0000 Original-Received: from localhost ([127.0.0.1]:54862 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tI7kp-0004St-MZ for submit@debbugs.gnu.org; Mon, 02 Dec 2024 09:50:28 -0500 Original-Received: from mail-wr1-f46.google.com ([209.85.221.46]:46215) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tI7kn-0004SZ-Vk for 74619@debbugs.gnu.org; Mon, 02 Dec 2024 09:50:26 -0500 Original-Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-385e075255fso1875984f8f.0 for <74619@debbugs.gnu.org>; Mon, 02 Dec 2024 06:50:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733150960; x=1733755760; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ybHFcj/ZbDCQFuRY9eEsaoduZExM0EbN0NTDKhxg7k8=; b=Obr695wFn9TD0hN2k+3xksqawYIFHGC5Uyef4lQRFHyTExlk2Vq1EIYibK+WnHStxq KMCuDhQ0jCyGHhU2ZgAEd+dU6yu2wshAHwikHEaqIgX17pSWQa3j9J9C44JFU3Kn+Duc /d/j8Xput2mzcTLHahjZvWJlIz3PRQzolsjei0SY+xjZb5wSLRCrlG0SU4Y1YZeXzslf DpipYgrW2t2ec3La0L99mBxriIb5k21zl2O50NIWuDGN9DiWPmlW23HR5rb9jOSh/u3T ELQYgoRSKi0qzREgpZvoKJnCeWbv9XpnAVinU1tY5NG65v2OnCi7+B1MQ1DhN2aEL2be 5SLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733150960; x=1733755760; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=ybHFcj/ZbDCQFuRY9eEsaoduZExM0EbN0NTDKhxg7k8=; b=pLWMJxET41OBcjedOZ/KAV3qtB2Q+VxDQHsItobL0Bdc8f/Mj5/zQN0ErsaqpbIJeZ v+UFae73o7MO6asNGinkZ9g+ZRdOKAoxX7QDkxYOvCOY9bYQWSKcHYisgNiEmDNfFgZh bHF3BdjFNDVWPdDWY6pEV8/LwPQi7Jb4Wf4eYDCHRfXOMehLXkJ4uN26+L26qrgSty5S +9xxU9UB4bn9areIKw5WOBknwo6c9BfctDkgOYj5/ULdbaXjg1JHymnqX2ATut1xl1Gv fPgJ/C9pdgxanCEVCV6Oj6F5pCgOWgcuJQ69x4N/ndFzn4D3LR+pNbZKiDid+5e0RAhn dvMg== X-Forwarded-Encrypted: i=1; AJvYcCVTPb/YwKgmjQWGqnxej2nbOjpbfH3K8FbLx/JI1Ojm75Ur1M8Ov0qu5Mh3SOtB0qwLhJ2ALg==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzMgaySRfEC5j0PpYKC0WLqVOzPgXkanssTMxKbTk3Mr1Q/WR5G lYjNjV/FEYDskKsUFSscMfDuOKeMmmqqPCAnkcrZ9U5hVmNW6NXKqCjq7w== X-Gm-Gg: ASbGncvjQBHE7U0rRaAZaKjob2jvEtAPQGzNzX5IE6oc7G7kfFkq+qjW1dHy9U56E80 6Ur6IAPCshPrfp7idwUj18+HxMSCeISR30vMOhabSTOCSoDCMywrlBxS8TrTjvL5DfGlrqUPGbr ftT+SC8NybdOYExCT/0QjqboLJ2o8w8qvB/SgCyBjTrmSZfHgMzTNtkItrZvuebPxO4H3rPUg9x t4Zp/x7o4nJhM5ZceTCyg4iG1ZjuNZOPoOzSDclBCFuvM5fY2Za4P+X5OwzsF8t8pIIhVHddFIw BqTqqxiHGJsF/rEEpcRXpqjzgNX9hElpik34VJK+hLj3jr2Fd1WWztNZr80= X-Google-Smtp-Source: AGHT+IE4iu9KTA/PUQ1XQtcl3ZFw4ZSWLG2foFpocOr52Zz2WjcHtJC07e/9Q92/mZaRR2K9359oSw== X-Received: by 2002:a05:6000:2102:b0:385:ec89:2efd with SMTP id ffacd0b85a97d-385ec893097mr4682373f8f.22.1733150959542; Mon, 02 Dec 2024 06:49:19 -0800 (PST) Original-Received: from pro2 (p200300e0b7492f00752439841d4cfe6e.dip0.t-ipconnect.de. [2003:e0:b749:2f00:7524:3984:1d4c:fe6e]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-434b0dbfa2csm157819295e9.17.2024.12.02.06.49.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Dec 2024 06:49:19 -0800 (PST) In-Reply-To: <87bjxufa7d.fsf@gmail.com> (Robert Pluim's message of "Mon, 02 Dec 2024 15:09:26 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:296328 Archived-At: Robert Pluim writes: >>>>>> On Sat, 30 Nov 2024 16:40:53 +0900, Yoichi Nakayama said: > > Yoichi> I found that bug#55940 (https://debbugs.gnu.org/cgi/bugreport= .cgi?bug=3D55940) > Yoichi> has not been fixed on Emacs started by "emacs -nw" > > Yoichi> (substitute-command-keys "\\[customize]") > Yoichi> #("" 0 15 (font-lock-face help-key-binding face > Yoichi> help-key-binding)) > > Yoichi> I think this is because make-non-key-event for ns-* is not ca= lled > Yoichi> in this situation. > > Right, but OTOH typical terminal setups don=CA=BCt allow you to use super > as a modifier anyway (unless Gerd has a magic recipe). I guess it > couldn=CA=BCt do too much harm to call the ns-specific portion of > `x-setup-function-keys' even when not in a graphical frame, but I=CA=BCm > not sure where we could hook that into. > > Robert I think I have even 2 magic recipes :-). 1. Use a terminal like iTerm that supports the Kitty Keyboard Protocol, and use kkp.el in Emacs. Example from my Emacs C-h k Command-M g ives s-m runs the command magit-file-dispatch (found in global-map), which is an autoloaded interactive native-comp-function in =E2=80=98magit-files= .el=E2=80=99. That requires some fiddling with iTerm key settings so that iTerm itself doesn't use the Command keys one wants to define. https://sw.kovidgoyal.net/kitty/keyboard-protocol/ https://github.com/benjaminor/kkp 2. Use something like Devil https://github.com/susam/devil/blob/main/devil.el In short, that can map input like `. x' to `s-x'. I think there is at least one other similar package named God, but I haven't tried that.