From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#51449: 28.0.50; iso-transl overwrites alt key bindings Date: Thu, 28 Oct 2021 10:12:32 +0300 Message-ID: <83sfwltyfz.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22754"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51449@debbugs.gnu.org To: "Mark Bestley" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 28 09:13:44 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 1mfzbb-0005kA-Mt for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Oct 2021 09:13:43 +0200 Original-Received: from localhost ([::1]:48960 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mfzba-0000RA-Je for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Oct 2021 03:13:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48466) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfzax-00086T-Ms for bug-gnu-emacs@gnu.org; Thu, 28 Oct 2021 03:13:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39653) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mfzaw-0008QL-Cs for bug-gnu-emacs@gnu.org; Thu, 28 Oct 2021 03:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mfzaw-0001ya-4x for bug-gnu-emacs@gnu.org; Thu, 28 Oct 2021 03:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Oct 2021 07:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51449 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 51449-submit@debbugs.gnu.org id=B51449.16354051637569 (code B ref 51449); Thu, 28 Oct 2021 07:13:02 +0000 Original-Received: (at 51449) by debbugs.gnu.org; 28 Oct 2021 07:12:43 +0000 Original-Received: from localhost ([127.0.0.1]:51199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfzad-0001y1-DS for submit@debbugs.gnu.org; Thu, 28 Oct 2021 03:12:43 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51094) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfzaZ-0001xj-AS for 51449@debbugs.gnu.org; Thu, 28 Oct 2021 03:12:42 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39414) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfzaU-0008Lp-2D; Thu, 28 Oct 2021 03:12:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=oTuLfM+PrSLFuU4HVDv03ueD9eOjaIbStp62s1g/ANc=; b=d/58V8JMD512XF61IcGk /HmrcANsCwhlrM6hFCj+IywuMfzcLHI8ccpngDpnAX1la1jhd7/eHgaul2KmGU6pvfYBTPEncx59q Id30DjMKkjxOLplUyu4dJNORkRyecc8YHDbKMkR/sYcfLZ/ZG+fh9iazM39oRM6CEg9MGPhrsmUc6 f1k79631bJIUHLyzzmSWmBl9M0b1wpKRwCqCfxLTvYRLdycrZBWXc990o2sBZjyjuvKhhjiiFhH2Q LKdjcGzzuLJ8g6JmZTS+jD9bLvvLYePSgtkjXOPC1Df9m3WuwF4R3nzVQIN/Y5F0Y1f1Z2IQaC8ts iLfYWxuTe8TZug==; Original-Received: from [87.69.77.57] (port=2470 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfzaS-0007pb-7I; Thu, 28 Oct 2021 03:12:33 -0400 In-Reply-To: (gnu@bestley.co.uk) 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:218487 Archived-At: > Date: Wed, 27 Oct 2021 21:42:19 +0100 > From: "Mark Bestley" > > 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 ยข 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 alter its behaviour and that iso-transl.el > then binds to various A-c and other 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-list.el") > ("/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 . iso-transl-set-language) > (provide . iso-transl)) > ("/Applications/MacPorts/Emacs.app/Contents/Resources/lisp/tooltip.elc" > (require . syntax) > > 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 Aquamacs 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.)