From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Morelli Newsgroups: gmane.emacs.bugs Subject: bug#49991: 27.2; Anomalous Key Translation Date: Tue, 10 Aug 2021 17:25:51 -0600 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8746"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 To: 49991@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 11 03:00:19 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 1mDcbS-00020U-Or for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 Aug 2021 03:00:19 +0200 Original-Received: from localhost ([::1]:49300 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDcbR-0003ST-09 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 Aug 2021 21:00:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54636) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDcbC-0003Qg-G9 for bug-gnu-emacs@gnu.org; Tue, 10 Aug 2021 21:00:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49515) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDcbC-0003WQ-7h for bug-gnu-emacs@gnu.org; Tue, 10 Aug 2021 21:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mDcbB-0005nW-Tr for bug-gnu-emacs@gnu.org; Tue, 10 Aug 2021 21:00:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Morelli Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Aug 2021 01:00:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49991 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.162864354422189 (code B ref -1); Wed, 11 Aug 2021 01:00:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Aug 2021 00:59:04 +0000 Original-Received: from localhost ([127.0.0.1]:32826 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDcaF-0005ln-2l for submit@debbugs.gnu.org; Tue, 10 Aug 2021 20:59:04 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:38982) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDb8H-0003SI-6M for submit@debbugs.gnu.org; Tue, 10 Aug 2021 19:26:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43224) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDb8G-0002tJ-OS for bug-gnu-emacs@gnu.org; Tue, 10 Aug 2021 19:26:04 -0400 Original-Received: from resqmta-ch2-11v.sys.comcast.net ([2001:558:fe21:29:69:252:207:43]:49286) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDb8D-0003QJ-5X for bug-gnu-emacs@gnu.org; Tue, 10 Aug 2021 19:26:04 -0400 Original-Received: from resomta-ch2-17v.sys.comcast.net ([69.252.207.113]) by resqmta-ch2-11v.sys.comcast.net with ESMTP id DXDwmNi4cjtOrDb84mXq9z; Tue, 10 Aug 2021 23:25:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcastmailservice.net; s=20180828_2048; t=1628637952; bh=xTukIxvA7ozIFKbPpYyVygRHDYeQDhPy+Yx7XMPoWKI=; h=Received:Received:To:Subject:From:Message-ID:Date:MIME-Version: Content-Type; b=Q5eNSLE/xzwlGD1BGDBQ2ndar+5ZqJ3iKI96PeusUZ+rwlircK0PvHvpslAbAXs6u GdlbatgyIJA4u55y/KnjCwM5ZjoDVFB3VAVz38iK+PKCF38wRGLZpGxzv02uys91j7 n7bPGFZXkiNZm0+zr7M2XlrMl+Y6vuWYjwt7wXBMx4z25FYqjMLNmwImNzU1jq1O6f xv1q+E5ZCCDt8GUs+yp0rx0rDgSMaWyMnVZbWQZqE0SH0W6lOzExsj0gPOSRLhNvU5 f65DRVpclXwpb6yf4umQnYzTON6HkLG+nwxVp4a7ZUb21fEyHOBAjp3PgyWHJIYfkD JIeCSFXFCImWQ== Original-Received: from [IPv6:2601:681:5280:4b20:b175:c2f8:aa35:54cf] ([IPv6:2601:681:5280:4b20:b175:c2f8:aa35:54cf]) by resomta-ch2-17v.sys.comcast.net with ESMTPSA id Db83mdwttQPnpDb84mT8pK; Tue, 10 Aug 2021 23:25:52 +0000 X-Xfinity-VMeta: sc=0.00;st=legit Content-Language: en-US Received-SPF: neutral client-ip=2001:558:fe21:29:69:252:207:43; envelope-from=morelli@flux.utah.edu; helo=resqmta-ch2-11v.sys.comcast.net X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_NONE=0.001, SPF_NEUTRAL=0.779 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 10 Aug 2021 20:59:02 -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:211544 Archived-At: From time to time, A-c, A-x, and perhaps a few other similar keys sequences, stop working and become self-insert-command. This seems to happen after running the command C-x 8 where is any key at all, not just c. For what it's worth, my iso-transl-char-map and iso-transl-char-map variables contain pairs like ("*c" . [162]) ("c" . [162]) I don't use this feature much and I only know this from occasionally hitting this sequence by accident. I am working on a MacBook Pro laptop running Mac OS 10.5.1.In my init.el, I have the following: (global-set-key (kbd "A-c") 'kill-ring-save) (global-set-key (kbd "A-x") 'kill-region) (setq mac-command-modifier 'alt) ; cmd key -> alt A- (setq mac-option-modifier 'meta) ; option/alt key -> meta M- (setq mac-control-modifier 'control) ; control key -> control C- (setq mac-function-modifier 'super) ; Fn key -> super s- (setq mac-right-command-modifier 'hyper) ; right cmd key -> hyper H- so the key sequence is invoked with the physical Apple command key. When I run describe-key on, say, A-c, I get: ¢ (translated from A-c) runs the command self-insert-command (found in global-map), which is an interactive built-in function in ‘src/cmds.c’. It is bound to many ordinary text characters. (self-insert-command N &optional C) Probably introduced at or before Emacs version 22.1. ... This behavior is unexpected and unwanted. After the sequence changes, re-evaluating (global-set-key (kbd "A-c") 'kill-ring-save) produces no error message, but has no effect. I have not been able to find any way to get the binding to return to normal except by restarting Emacs. In GNU Emacs 27.2 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95)) of 2021-03-27 built on builder10-14.porkrind.org Windowing system distributor 'Apple', version 10.3.2022 System Description: macOS 11.5.1 Recent messages: ¢ is undefined is undefined Saving file /Users/robertmorelli/MyCloud/Info/Notes/EmacsNotes.tex... Wrote /Users/robertmorelli/MyCloud/Info/Notes/EmacsNotes.tex Saving file /Users/robertmorelli/Library/Mobile Documents/com~apple~CloudDocs/MyCloud/Info/Notes/MacNotes.tex... Wrote /Users/robertmorelli/Library/Mobile Documents/com~apple~CloudDocs/MyCloud/Info/Notes/MacNotes.tex Quit Mark saved where search started Undo Auto-saving... Configured using: 'configure --with-ns '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS JSON PDUMPER GMP Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: yas-global-mode: t yas-minor-mode: t TeX-PDF-mode: t TeX-source-correlate-mode: t recentf-mode: t auto-image-file-mode: t cua-mode: t smartparens-global-mode: t smartparens-mode: t ivy-mode: t delete-selection-mode: t volatile-highlights-mode: t show-paren-mode: t global-git-commit-mode: t magit-auto-revert-mode: t shell-dirtrack-mode: t centaur-tabs-mode: t override-global-mode: t global-hl-line-mode: t tooltip-mode: t global-eldoc-mode: t 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 column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort emacsbug sendmail iso-transl dired-aux flycheck lsp-diagnostics lsp-headerline lsp-modeline view lsp-zig lsp-steep lsp-svelte lsp-sqls lsp-yaml lsp-xml lsp-vimscript lsp-vhdl lsp-vetur lsp-verilog lsp-vala lsp-v lsp-terraform lsp-tex lsp-sorbet lsp-solargraph lsp-rust lsp-rf lsp-r lsp-purescript lsp-pylsp lsp-pyls lsp-pwsh lsp-php lsp-perl lsp-ocaml lsp-nix lsp-nim lsp-markdown lsp-lua lsp-kotlin lsp-json lsp-javascript lsp-haxe lsp-groovy lsp-hack lsp-go lsp-gdscript lsp-fsharp lsp-fortran lsp-eslint lsp-erlang lsp-elixir lsp-elm lsp-dockerfile lsp-dhall lsp-d lsp-css lsp-csharp lsp-crystal lsp-cmake lsp-clojure lsp-clangd lsp-beancount lsp-bash lsp-angular lsp-ada lsp-actionscript mail-extr org-element avl-tree ol-eww eww mm-url url-queue ol-rmail ol-mhe ol-irc ol-info ol-gnus nnir gnus-sum shr svg xml gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range gnus-win gnus nnheader ol-docview doc-view ol-bbdb ol-w3m expand lsp-html ido lsp-icons lsp-completion lsp-semantic-tokens dom lsp-mode lsp-protocol spinner smartparens-markdown markdown-mode lv ht f ewoc s inline cua-gmrk cl novice image-mode exif all-the-icons-dired ibuf-macs ibuffer ibuffer-loaddefs all-the-icons all-the-icons-faces data-material data-weathericons data-octicons data-fileicons data-faicons data-alltheicons autoload tar-mode arc-mode archive-mode lisp-mnt mm-archive gnutls network-stream url-http url-gw nsm url-cache url-auth url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap cus-theme eieio-custom wid-browse ob-ditaa ob-plantuml ol-bibtex bibtex org-clock org-colview org-crypt org-habit org-agenda org-refile smartparens-org org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-pcomplete org-list org-faces org-entities org-version ob-emacs-lisp ol org-loaddefs cal-menu calendar cal-loaddefs org-src ob-comint ob-core ob-eval org-table org-keys org-compat org-macs reftex-parse diminish yasnippet use-package-diminish skeleton sh-script smie executable two-column apropos w32-vars ebnf2ps ps-print ps-print-loaddefs ps-def lpr dos-vars cus-edit cua-rect rect misearch multi-isearch vc-mtn vc-hg vc-git vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs vc vc-dispatcher jka-compr cl-print debug backtrace eieio-opt speedbar sb-image ezimage dframe find-func help-fns radix-tree swiper undo-fu perl-mode preview reftex-dcr reftex-auc reftex reftex-loaddefs reftex-vars flyspell ispell tex-bar tex-buf toolbar-x noutline outline font-latex latex latex-flymake flymake-proc flymake warnings tex-ispell tex-style tex texmathp tex-mode compile latexenc smartparens-javascript js smartparens-c cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs ffap smartparens-python python tramp-sh tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat parse-time iso8601 ls-lisp magit-bookmark bookmark pp tabbar recentf tree-widget wid-edit image-file cus-start cua-base cus-load smartparens-latex smartparens-config smartparens-text smartparens thingatpt ivy delsel ivy-faces ivy-overlay colir use-package-ensure helm-config etags fileloop generator xref project volatile-highlights paren magit-submodule magit-obsolete magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff diff-mode git-commit log-edit message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process with-editor shell pcomplete comint server ansi-color magit-mode transient format-spec magit-git magit-section magit-utils crm dash edmacro kmacro centaur-tabs centaur-tabs-interactive centaur-tabs-functions centaur-tabs-elements powerline advice powerline-separators ring powerline-themes color cl-extra help-mode use-package-bind-key bind-key easy-mmode use-package-core hl-line rx finder-inf pcase tex-site info package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type 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 elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu 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 charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 2351319 333869) (symbols 48 65476 3) (strings 32 377047 31037) (string-bytes 1 11836684) (vectors 16 136367) (vector-slots 8 2621775 243634) (floats 8 3363 2071) (intervals 56 250127 7555) (buffers 1000 315))