From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Mark Bestley" Newsgroups: gmane.emacs.bugs Subject: bug#51449: 28.0.50; iso-transl overwrites alt key bindings Date: Wed, 27 Oct 2021 21:42:19 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=3a02ce5d6f5740a3a1574786882483fd Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26345"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.5.0-alpha0-1369-gd055fb5e7c-fm-20211018.002-gd055fb5e To: 51449@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 27 23:02:18 2021 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 1mfq3s-0006ca-O2 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Oct 2021 23:02:18 +0200 Original-Received: from localhost ([::1]:35552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mfq3r-0003Jt-9o for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Oct 2021 17:02:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59554) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfq3f-0003Jc-Uw for bug-gnu-emacs@gnu.org; Wed, 27 Oct 2021 17:02:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39141) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mfq3f-0005E4-Hf for bug-gnu-emacs@gnu.org; Wed, 27 Oct 2021 17:02:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mfq3f-0004Rq-F9 for bug-gnu-emacs@gnu.org; Wed, 27 Oct 2021 17:02:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Mark Bestley" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Oct 2021 21:02:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51449 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.163536850317052 (code B ref -1); Wed, 27 Oct 2021 21:02:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Oct 2021 21:01:43 +0000 Original-Received: from localhost ([127.0.0.1]:50685 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfq3F-0004Qp-9o for submit@debbugs.gnu.org; Wed, 27 Oct 2021 17:01:43 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:46856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfplX-0003r7-Om for submit@debbugs.gnu.org; Wed, 27 Oct 2021 16:43:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56214) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfplX-0005fk-9S for bug-gnu-emacs@gnu.org; Wed, 27 Oct 2021 16:43:19 -0400 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]:34981) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfplU-0000NQ-AS for bug-gnu-emacs@gnu.org; Wed, 27 Oct 2021 16:43:18 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 4B8475C0187 for ; Wed, 27 Oct 2021 16:43:13 -0400 (EDT) Original-Received: from imap42 ([10.202.2.92]) by compute5.internal (MEProxy); Wed, 27 Oct 2021 16:43:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bestley.co.uk; h=mime-version:message-id:date:from:to:subject:content-type; s= fm1; bh=9JUNn1tCNefuelyHmGn8+XgOSk8ZI0erzsP7Ws0V/ds=; b=dCzU0Bz3 SUpBvsdRGjCSNb1ZdS1+hQC0J9OGvuuNsLnVqn2kbaJrK2Pwv3QGHZKycTS+svA9 2SDhXmmYzgox24CdLYau/RvVC2J3lyDsgUL0PwvpjeJszgI3KPPFuaC2jEvbPFs6 T62tYez4Gh9t+RdB/6DSYgCtcynv5BteESA5/9xSpT2uQblSguk1/RAcX9uSLX01 ZzaKnzDmYMCwtKGSuV8rNTPRCwKWb99yjGIXoZQmFl/tSw6IW4dNYWf/fVegyOQL ALDylk6jSGwQodODv/qN0NU6aSntrQyu/uRUlyHYKOgxgrvKIuOL3mGEsT8zOeja pnz1QpPlLF1Tjw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=9JUNn1tCNefuelyHmGn8+XgOSk8ZI 0erzsP7Ws0V/ds=; b=gAz/MkzjL9mrXomMjVwFPlRJGvJp5ypoqWaeE7UEPCaCW bj9v2ejivFlweD4b2u1awqUxlAJ5dFj2AdJwRAenq2GE4JcQSru2up2UjppDtFsj bmAMcg4Udl6e+sgd3SW47LWwjVEx5h29vjnghhQqzORIyrH76NzzRDFPt+Q74ger n9yVhsrIsSJDm/5LVU8s3TbIARI7aro5BYjlWdWd0YMXssNcLr3CVT4aLkDFiH8X gBlfNFnEf7l5EctcVoKYLhJZokALEQhrRrnCtLDVQSl/d+gbiTTC+MbyZwsvEH+K cpQWpZKI2cCslfr1q8feiN6qQ26ENa15RHQ5GUvoA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdegtddguddutdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesrgdtre erreerjeenucfhrhhomhepfdforghrkhcuuegvshhtlhgvhidfuceoghhnuhessggvshht lhgvhidrtghordhukheqnecuggftrfgrthhtvghrnhepheekuedugedufeehkeeltdfffe dugfeuvdeileduvedukeetvdetueeggeevkefhnecuffhomhgrihhnpegvmhgrtghsrdgr phhppdhsthgrtghkvgigtghhrghnghgvrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepghhnuhessggvshhtlhgvhidrtghordhukh X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id D52E5218024F; Wed, 27 Oct 2021 16:43:12 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Received-SPF: pass client-ip=66.111.4.29; envelope-from=gnu@bestley.co.uk; helo=out5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 27 Oct 2021 17:01:36 -0400 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" Xref: news.gmane.io gmane.emacs.bugs:218472 Archived-At: --3a02ce5d6f5740a3a1574786882483fd Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable In emacs -Q just need something to get the Alt key bound e.g. (setq mac-command-modifier 'alt) The when you Type A-c you get =C2=A2 and you cannot bind it yourself. On a mac I want the key by space to be Alt as that is what is printed on my PC keyboard. I suspect this is true with PCs The issue is that (require 'iso-transl) is called before the user can al= ter its behaviour and that iso-transl.el then binds to various A-c and o= ther keys. This makes it impossible to use Alt as a modifier key load-history shows ("/Applications/MacPorts/Emacs.app/Contents/Resources/lisp/subdirs.el ") ("/Applications/MacPorts/Emacs.app/Contents/Resources/site-lisp/subdirs.= el ") ("/Applications/MacPorts/Emacs.app/Contents/Resources/lisp/leim/leim-lis= t.el ") ("/Applications/MacPorts/Emacs.app/Contents/Resources/lisp/international= /iso-transl.elc " iso-transl-dead-key-alist iso-transl-char-map iso-trans= l-language-alist iso-transl-ctl-x-8-map (defun . iso-transl-define-keys) (defun . iso-transl-set-language) (provide . iso-transl)) ("/Applications/MacPorts/Emacs.app/Contents/Resources/lisp/tooltip.elc <= http://emacs.app/Contents/Resources/lisp/tooltip.elc>" (require . syntax) =20 In emacs 27 iso-transl was not called that early and only seem to be called by describe-bindings and so could be overridden as shown in Aquam= acs Ideally iso-transl should only bind the A- keys if explicitly asked to do so. At least the user shoulkd be able to configure the behaviour - as exising emacs uses this wrong behaviour the default can be this setting of A- keys but the user should be able to set something to stop this. See https://emacs.stackexchange.com/questions/17508/how-can-i-prevent-overri= de-key-translation-behavior-such-as-%C2%B5-translated-from for other users finding this (and they are not Mac based) In GNU Emacs 28.0.50 (build 1, aarch64-apple-darwin20.6.0, NS appkit-202= 2.60 Version 11.6 (Build 20G165)) of 2021-10-17 built on mini20.local Repository revision: ccb35fb8fb9de5f069fd0103f24e3048d716febc Repository branch: HEAD Windowing system distributor 'Apple', version 10.3.2022 System Description: macOS 11.6 Configured using: 'configure --prefix=3D/opt/local --disable-silent-rules --without-dbus --without-gconf --without-libotf --without-m17n-flt --with-libgmp --with-gnutls --with-json --with-xml2 --with-modules --infodir /opt/local/share/info/emacs --with-ns --with-lcms2 --without-harfbuzz --without-imagemagick --without-xaw3d --with-native-compilation --with-rsvg 'CFLAGS=3D-pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -arch arm64' 'CPPFLAGS=3D-I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk' 'LDFLAGS=3D-L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-no_pie -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -arch arm64'' Configured features: ACL GIF GLIB GMP GNUTLS JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE NS PDUMPER PNG RSVG THREADS TIFF TOOLKIT_SCROLL_BARS XIM ZLIB Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Help Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cl-extra time-date subr-x shortdoc text-property-search seq byte-opt gv bytecomp byte-compile cconv help-fns radix-tree help-mode cl-loaddefs cl-lib iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 80691 8984) (symbols 48 6822 0) (strings 32 21275 2068) (string-bytes 1 715988) (vectors 16 15733) (vector-slots 8 322442 18788) (floats 8 72 30) (intervals 56 355 0) (buffers 992 12)) --=20 Mark Bestley --3a02ce5d6f5740a3a1574786882483fd Content-Type: text/html;charset=utf-8 Content-Transfer-Encoding: quoted-printable
In emacs -Q just need something= to get the Alt key bound
e.g.
(setq  mac-command-modifier 'alt)

The when = you Type A-c you get =C2=A2 and you cannot bind it yourself.

On a mac I wan= t the key by space to be Alt as that is what is printed on
my PC keyboard.= I suspect this is true with PCs

The issue is that (require 'iso-transl) is= called before the user can alter its behaviour and that iso-transl.el t= hen binds to various A-c and other keys.

This makes it impossible to use Al= t as a modifier key

load-history shows

("/Applications/MacPorts/= Emacs.app/Contents/Resources/lisp/international/iso-transl.elc" iso-= transl-dead-key-alist iso-transl-char-map iso-transl-language-alist iso-= transl-ctl-x-8-map
  (defun . iso-transl-define-keys)
  (defun . i= so-transl-set-language)
  (provide . iso-transl))
  (require . syntax)<= br>
&n= bsp;
In emacs 27 iso-transl was not called that early and only seem to be<= br>
ca= lled by describe-bindings and so could be overridden as shown in Aquamac= s
=
I= deally iso-transl should only bind the A- keys if explicitly asked to
do s= o. At least the user shoulkd be able to configure the behaviour - as
=
exisi= ng emacs uses this wrong behaviour the default can be this setting
of A- k= eys but the user should be able to set something to stop this.
=

<= div style=3D"font-family:georgia, serif;font-size:1.266em;">See
for other users finding = this (and they are not Mac based)

In GNU Emacs 28.0.50 (build 1, aarch64-ap= ple-darwin20.6.0, NS appkit-2022.60 Version 11.6 (Build 20G165))
of 2021-1= 0-17 built on mini20.local
Repository revision: ccb35fb8fb9de5f069fd0103f2= 4e3048d716febc
Repository branch: HEAD
Windowing system distributor 'Apple',= version 10.3.2022
System Description:  macOS 11.6

Configured using:
=
'conf= igure --prefix=3D/opt/local --disable-silent-rules --without-dbus
--withou= t-gconf --without-libotf --without-m17n-flt --with-libgmp
--with-gnutls --= with-json --with-xml2 --with-modules --infodir
/opt/local/share/info/emacs= --with-ns --with-lcms2 --without-harfbuzz
--without-imagemagick --without= -xaw3d --with-native-compilation
--with-rsvg 'CFLAGS=3D-pipe -Os
=
-isysroot/L= ibrary/Developer/CommandLineTools/SDKs/MacOSX11.sdk -arch
arm64' 'CPPFLAGS= =3D-I/opt/local/include
-isysroot/Library/Developer/CommandLineTools/SDKs/= MacOSX11.sdk'
'LDFLAGS=3D-L/opt/local/lib -Wl,-headerpad_max_install_names= -Wl,-no_pie
-Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacO= SX11.sdk
-arch arm64''

Configured features:
ACL GIF GLIB GMP GNUTLS JPEG JSON L= CMS2 LIBXML2 MODULES NATIVE_COMP
NOTIFY KQUEUE NS PDUMPER PNG RSVG THREADS= TIFF TOOLKIT_SCROLL_BARS XIM
ZLIB

Important settings:
  value of $LANG: e= n_GB.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Help
=

<= div style=3D"font-family:georgia, serif;font-size:1.266em;">Minor modes = in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  electric-= indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
<= div style=3D"font-family:georgia, serif;font-size:1.266em;">  menu-= bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t<= br>
&n= bsp; font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-m= ode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  b= uffer-read-only: t
  line-number-mode: t
  indent-tabs-mode: t
=
 = ; transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail= -extr emacsbug message rmc puny dired dired-loaddefs
rfc822 mml mml-sec ep= a derived epg rfc6068 epg-config gnus-util rmail
rmail-loaddefs auth-sourc= e cl-seq eieio eieio-core cl-macs
eieio-loaddefs password-cache json map m= m-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailh= eader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils cl= -extra time-date
subr-x shortdoc text-property-search seq byte-opt gv byte= comp
byte-compile cconv help-fns radix-tree help-mode cl-loaddefs cl-lib
iso= -transl tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-typ= e elisp-mode mwheel term/ns-win ns-win ucs-normalize
mule-util term/common= -win tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace n= ewcomment text-mode lisp-mode prog-mode register
page tab-bar menu-bar rfn= -eshadow isearch easymenu timer select
scroll-bar mouse jit-lock font-lock= syntax font-core term/tty-colors
frame minibuffer cl-generic cham georgia= n utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanes= e eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic in= dian cyrillic
chinese composite emoji-zwj charscript charprop case-table e= pa-hook
jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice butt= on
loaddefs faces cus-face macroexp files window text-properties overlay
sha= 1 md5 base64 format env code-pages mule custom widget
hashtable-print-read= able backquote threads kqueue cocoa ns lcms2
multi-tty make-network-proces= s native-compile emacs)

Memory information:
((conses 16 80691 8984)
=
(symbols 48= 6822 0)
(strings 32 21275 2068)
(string-bytes 1 715988)
(vectors 16 15733)
(vec= tor-slots 8 322442 18788)
(floats 8 72 30)
(intervals 56 355 0)
(buffers 992 1= 2))
-- 
Mark Bestley
--3a02ce5d6f5740a3a1574786882483fd--