unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Mark Bestley" <gnu@bestley.co.uk>
To: "Eli Zaretskii" <eliz@gnu.org>
Cc: 51449@debbugs.gnu.org
Subject: bug#51449: 28.0.50; iso-transl overwrites alt key bindings
Date: Thu, 28 Oct 2021 11:53:25 +0100	[thread overview]
Message-ID: <280ee409-8f30-41ef-8613-c5e161862c2d@www.fastmail.com> (raw)
In-Reply-To: <83cznptrkf.fsf@gnu.org>



On Thu, 28 Oct 2021, at 10:41, Eli Zaretskii wrote:
>> Date: Thu, 28 Oct 2021 09:12:54 +0100
>> From: "Mark Bestley" <gnu@bestley.co.uk>
>> Cc: 51449@debbugs.gnu.org
>> 
>> On Thu, 28 Oct 2021, at 08:12, Eli Zaretskii wrote:
>> 
>> >
>> > iso-transl is preloaded now.  But I don't think I understand why it
>> > gets in your way: can't you unbind the bindings that iso-transl does,
>> > if you have no use for them, or rebind them after changing Alt to be a
>> > modifier key if you do have use for iso-transl?
>> >
>> > (Caveat: I don't use a Mac, so I may be missing some Mac-specific
>> > issue here.)
>> 
>> In scratch buffer on emacs - Q
>> 
>> 
>> (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 ¢
>
> I'm not arguing against facts, I asked why you cannot undo what
> iso-transl does.  For example, disable key-translation-map, or
> redefine its entries as you see fit.


Mainly because I did not know the depths of emacs and what to do with key-translation-map and getting annoyed with something happening without me asking for it and being totally surprised by the change in bindings especially as I thought users had complete control of A- bindings, only C-x were reserved for emacs use. (Ie I had not require iso-trans myself)

I have now undone the iso-trans changes as Gregory suggested 

(dolist (transl-char iso-transl-char-map)
      (let ((vec (vconcat (car transl-char))))
        (aset vec 0 (logior (aref vec 0) ?\A-\^@))
        (define-key key-translation-map vec nil)))))



-- 
Mark





  reply	other threads:[~2021-10-28 10:53 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
2021-10-28  8:57         ` Gregory Heytings
2021-10-28  9:41     ` Eli Zaretskii
2021-10-28 10:53       ` Mark Bestley [this message]
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=280ee409-8f30-41ef-8613-c5e161862c2d@www.fastmail.com \
    --to=gnu@bestley.co.uk \
    --cc=51449@debbugs.gnu.org \
    --cc=eliz@gnu.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).