unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#74619: macOS: <ns-show-prefs> displayed as keybinding for \\[customize] on emacs -nw
@ 2024-11-30  7:40 Yoichi Nakayama
  2024-12-02 14:09 ` Robert Pluim
  0 siblings, 1 reply; 3+ messages in thread
From: Yoichi Nakayama @ 2024-11-30  7:40 UTC (permalink / raw)
  To: 74619

I found that bug#55940 (https://debbugs.gnu.org/cgi/bugreport.cgi?bug=55940)
has not been fixed on Emacs started by "emacs -nw"

(substitute-command-keys "\\[customize]")
#("<ns-show-prefs>" 0 15 (font-lock-face help-key-binding face
help-key-binding))

I think this is because make-non-key-event for ns-* is not called
in this situation.

Tested environment:
GNU Emacs 29.4 (build 1, aarch64-apple-darwin21.6.0, NS appkit-2113.60
Version 12.6.6 (Build 21G646)) of 2024-08-03

-- 
Yoichi NAKAYAMA





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#74619: macOS: <ns-show-prefs> displayed as keybinding for \\[customize] on emacs -nw
  2024-11-30  7:40 bug#74619: macOS: <ns-show-prefs> displayed as keybinding for \\[customize] on emacs -nw Yoichi Nakayama
@ 2024-12-02 14:09 ` Robert Pluim
  2024-12-02 14:49   ` Gerd Möllmann
  0 siblings, 1 reply; 3+ messages in thread
From: Robert Pluim @ 2024-12-02 14:09 UTC (permalink / raw)
  To: Yoichi Nakayama; +Cc: Gerd Möllmann, 74619

>>>>> On Sat, 30 Nov 2024 16:40:53 +0900, Yoichi Nakayama <yoichi.nakayama@gmail.com> said:

    Yoichi> I found that bug#55940 (https://debbugs.gnu.org/cgi/bugreport.cgi?bug=55940)
    Yoichi> has not been fixed on Emacs started by "emacs -nw"

    Yoichi> (substitute-command-keys "\\[customize]")
    Yoichi> #("<ns-show-prefs>" 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 called
    Yoichi> in this situation.

Right, but OTOH typical terminal setups donʼt allow you to use super
as a modifier anyway (unless Gerd has a magic recipe). I guess it
couldnʼt do too much harm to call the ns-specific portion of
`x-setup-function-keys' even when not in a graphical frame, but Iʼm
not sure where we could hook that into.

Robert
-- 





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#74619: macOS: <ns-show-prefs> displayed as keybinding for \\[customize] on emacs -nw
  2024-12-02 14:09 ` Robert Pluim
@ 2024-12-02 14:49   ` Gerd Möllmann
  0 siblings, 0 replies; 3+ messages in thread
From: Gerd Möllmann @ 2024-12-02 14:49 UTC (permalink / raw)
  To: Robert Pluim; +Cc: Yoichi Nakayama, 74619

Robert Pluim <rpluim@gmail.com> writes:

>>>>>> On Sat, 30 Nov 2024 16:40:53 +0900, Yoichi Nakayama <yoichi.nakayama@gmail.com> said:
>
>     Yoichi> I found that bug#55940 (https://debbugs.gnu.org/cgi/bugreport.cgi?bug=55940)
>     Yoichi> has not been fixed on Emacs started by "emacs -nw"
>
>     Yoichi> (substitute-command-keys "\\[customize]")
>     Yoichi> #("<ns-show-prefs>" 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 called
>     Yoichi> in this situation.
>
> Right, but OTOH typical terminal setups donʼt allow you to use super
> as a modifier anyway (unless Gerd has a magic recipe). I guess it
> couldnʼt do too much harm to call the ns-specific portion of
> `x-setup-function-keys' even when not in a graphical frame, but Iʼm
> 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 ‘magit-files.el’.

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.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-12-02 14:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-30  7:40 bug#74619: macOS: <ns-show-prefs> displayed as keybinding for \\[customize] on emacs -nw Yoichi Nakayama
2024-12-02 14:09 ` Robert Pluim
2024-12-02 14:49   ` Gerd Möllmann

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).