From: "Mark Bestley" <gnu@bestley.co.uk>
To: "Gregory Heytings" <gregory@heytings.org>
Cc: 51449@debbugs.gnu.org
Subject: bug#51449: 28.0.50; iso-transl overwrites alt key bindings
Date: Thu, 28 Oct 2021 09:51:29 +0100 [thread overview]
Message-ID: <c138e919-171d-4126-ba03-e6e8a0177bd0@www.fastmail.com> (raw)
In-Reply-To: <8ff3b131c525abbe4682@heytings.org>
On Thu, 28 Oct 2021, at 09:40, Gregory Heytings wrote:
>>
>> (setq mac-command-modifier 'alt)
>>
>> (global-set-key (kbd "A-c") 'info)
>> (global-set-key (kbd "A-z") 'info)
>>
>> Then A-z runs info but A-c just inserts ¢
>>
>
> That's because iso-transl uses key-translation-map, which happens before
> the key is searched in the global-map.
>
Yes I now remember debugging this a few years ago.
> But what do you want to do exactly? As I said earlier,
>
> (setq mac-command-modifier 'meta)
> (setq mac-right-command-modifier 'alt)
>
> should I think give you what you want: a meta key on the left of the space
> bar, an alt key on the right of the space bar.
What I want is to make A-c run the command I want - ie be able to bind it.
The issue is that the code I use Mac-key-mode <https://www.emacswiki.org/emacs/MacKeyMode> (and also Aquamacs) uses A-c as copy to match other MacOS programs.
I would say the bigger issue is that as Eli Zaretskii said I should be able to rebind A-c
Another way but I think not as good would be to make the A- bindings by iso-trans only occur if I ask for them.
From Eli's email saying I can unbind the keys - how do I do that?
In earlier emacs iso-transl was not loaded early (I think was only used in describe-bindings) so that we could work around this.
--
Mark
next prev parent reply other threads:[~2021-10-28 8:51 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-27 20:42 bug#51449: 28.0.50; iso-transl overwrites alt key bindings Mark Bestley
2021-10-27 21:48 ` Gregory Heytings
2021-10-28 7:12 ` Eli Zaretskii
2021-10-28 8:12 ` Mark Bestley
2021-10-28 8:40 ` Gregory Heytings
2021-10-28 8:51 ` Mark Bestley [this message]
2021-10-28 8:57 ` Gregory Heytings
2021-10-28 9:41 ` Eli Zaretskii
2021-10-28 10:53 ` Mark Bestley
2022-09-19 20:15 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c138e919-171d-4126-ba03-e6e8a0177bd0@www.fastmail.com \
--to=gnu@bestley.co.uk \
--cc=51449@debbugs.gnu.org \
--cc=gregory@heytings.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).