From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 27 13:22:53 2025 Received: (at submit) by debbugs.gnu.org; 27 Aug 2025 17:22:53 +0000 Received: from localhost ([127.0.0.1]:34455 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1urJrI-0005aG-QU for submit@debbugs.gnu.org; Wed, 27 Aug 2025 13:22:53 -0400 Received: from lists.gnu.org ([2001:470:142::17]:57092) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1urJkU-000551-92 for submit@debbugs.gnu.org; Wed, 27 Aug 2025 13:15:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1urJkN-0005Hx-PI for bug-gnu-emacs@gnu.org; Wed, 27 Aug 2025 13:15:43 -0400 Received: from p-east3-cluster4-host3-snip4-10.eps.apple.com ([57.103.84.33] helo=outbound.qs.icloud.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1urJkG-0001Xk-Nq for bug-gnu-emacs@gnu.org; Wed, 27 Aug 2025 13:15:43 -0400 Received: from outbound.qs.icloud.com (unknown [127.0.0.2]) by p00-icloudmta-asmtp-us-east-2d-60-percent-5 (Postfix) with ESMTPS id 4FC0C18011FC; Wed, 27 Aug 2025 17:15:27 +0000 (UTC) Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; bh=zT6gh87MlnMFOGGynCDae8lwxNCkF8hd1i1zVEKP9Fg=; h=From:Content-Type:Mime-Version:Subject:Message-Id:Date:To:x-icloud-hme; b=aJQpgZwFOkf0E6wHne7KfFeTrPKIHaDf9GEVbgbqNuV09wYyAEeDTk2e7I0f0EKRjE7FAGiIOh8XTxjiTHcV1E2W66cXvmvmxeaOS0Tk4yK1XevDATascewFxwEGO7R7PJ/TciNHITLhMNifiAuv/NVNAfWLQJB9DqqOGNpW8ILMhtAzs2L0Os1VjTyAIJijiUdw13LFJiW6d5XRvArLxCPgg7tXzj2lPiV6wQ18tUYmWQX3yBRtsE+PSA09zZ7UgoRxihC94gBB522MDKojIdo9VFOPkvzSl+gO6XmEbOxNKHTu7KVYxa8NVYOJJNOIMNnjRTq3y5ZpFcQkH8+TYQ== Received: from smtpclient.apple (qs-asmtp-me-k8s.p00.prod.me.com [17.57.155.37]) by p00-icloudmta-asmtp-us-east-2d-60-percent-5 (Postfix) with ESMTPSA id F02B718013B1; Wed, 27 Aug 2025 17:01:46 +0000 (UTC) From: Linn Stanton Content-Type: multipart/alternative; boundary="Apple-Mail=_66C7C39A-222B-419D-802D-A5DF93F3CE0B" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.100.1.1.5\)) Subject: 30.2; Control-X-prefix not remapable Message-Id: <7EB13652-1CB9-4DAD-9823-41A268D26C77@me.com> Date: Wed, 27 Aug 2025 13:01:36 -0400 To: bug-gnu-emacs@gnu.org X-Mailer: Apple Mail (2.3864.100.1.1.5) X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwODI3MDE0OCBTYWx0ZWRfXxvdx9OyWaE23 0TGOb9xss/u+mxsQW2I62Ui+1g3nRtb1TKdMtyCuGYiGgDzREyS/yoeQcvO5CJQmAapPsz0FNes haWBhEl/kuRS4IwBI+mMs2f25XawOEzS1JoVVwC67lTTfqiQJZpbb0GtZVaCeVXXlqS/MkW1Vsq wEKEUuIo5651AWOHDl9UGtVbMGq0eez7eUPrpc3qMCl94lCoxxSC4GOrYcnb7T73KyT0TY1Ggk7 D5/5BLOJYIlSKTz5+1StDpLaO5AIS3Nu4LXGgLqCzczmXIBMfHItWXKG9ofT/0PU38T4S2oGA= X-Proofpoint-GUID: 5c__nKHu4CG24sdEUe9Sxbzf7bpPIELE X-Proofpoint-ORIG-GUID: 5c__nKHu4CG24sdEUe9Sxbzf7bpPIELE X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-08-27_04,2025-08-26_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 malwarescore=0 suspectscore=0 mlxlogscore=999 bulkscore=0 spamscore=0 mlxscore=0 clxscore=1011 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.22.0-2506270000 definitions=main-2508270148 X-JNJ: AAAAAAABDyEHnasFLj69aLGwPvEIcDjbxDuCog/w9eqi1cSvknzAiSYSbSzscaitdfocexefqqIdNvqfGFLZrpSfB0ckvYFl5YV8z0BLDmqjNq7BQH6O9Fg26EyhCBfe8thLZQ/rX+6cbyx7V4oyDMmBvS5DCZnJluYANZoOEnA3DCG0yMqM1FSOqT7BTJMLX8qc/VukqIhGFUbE/iWK7YPpFOY5KeWDq8uwbLyBtmV1R0HiA78bcYjdH+cnqf+Fycg5za/gUBbyzQyeLOul/N0PLjpniI1nWci22YwTJd6LpI/3X4icKhdMNUZd3tw3/7KgS6vweOfUe+ekkR7iTuirXWmUYjMAy+Xaq7ivWDlgYA/8MUcw/2nHT2AsyMEcCfVsFVD/Hd32e9u/b5iVreWAAGJb6DdU X-Apple-Category-Label: MTkwODQ3ODc1OiRjYXRlZ29yeSRfUGVyc29uYWws Received-SPF: pass client-ip=57.103.84.33; envelope-from=linnstanton@me.com; helo=outbound.qs.icloud.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Y Updating from emacs-29 to emacs-30, I am no longer able to use C-x as a non-prefix key. I have always hated the C-x prefix, as I use C-x for next-line. I am still able to set C-] as my Control-X-prefi [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (linnstanton[at]me.com) 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 HTML_MESSAGE BODY: HTML included in message 1.0 FREEMAIL_REPLY From and body contain different freemails X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 27 Aug 2025 13:22:50 -0400 Cc: Linn Stanton X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --Apple-Mail=_66C7C39A-222B-419D-802D-A5DF93F3CE0B Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Y Updating from emacs-29 to emacs-30, I am no longer able to use C-x as a non-prefix key. I have always hated the C-x prefix, as I use C-x for next-line. I am still able to set C-] as my Control-X-prefix, but I can no longer get C-x mapped to 'next-line. I had been using define-key with a custom overriding-local-map, but that is no longer working In GNU Emacs 30.2 (build 1, aarch64-apple-darwin21.6.0, NS appkit-2113.60 Version 12.6.1 (Build 21G217)) of 2025-08-14 built on builder-m1-12.lan Windowing system distributor 'Apple', version 10.3.2685 System Description: macOS 26.0 Configured using: 'configure --with-ns '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules 'CFLAGS=-DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT' --with-x-toolkit=no' Configured features: ACL GLIB GMP GNUTLS JPEG LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER ZLIB Important settings: value of $LANG: C.UTF-8 locale-coding-system: utf-8-unix Major mode: Info Minor modes in effect: global-tab-line-mode: t tab-line-mode: t which-function-mode: t desktop-save-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t isearch-fold-quotes-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t minibuffer-regexp-mode: t buffer-read-only: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message yank-media puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils jka-compr info shortdoc text-property-search comp-common rx noutline outline two-column kmacro facemenu help-fns radix-tree apropos add-log cl-extra help-mode time-date tab-line cus-load which-func imenu ispell desktop frameset package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs icons password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren 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 nadvice seq simple cl-generic indonesian philippine 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 abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 124293 14842) (symbols 48 22924 4) (strings 32 46142 1443) (string-bytes 1 1005039) (vectors 16 20113) (vector-slots 8 476524 48761) (floats 8 121 98) (intervals 56 8703 96) (buffers 992 17)) L i n n S t a n t o n linnstanton@mac.com (917) 208-8246 "The more corrupt the state, the more numerous the laws" -- Tacitus --Apple-Mail=_66C7C39A-222B-419D-802D-A5DF93F3CE0B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Y

Updating from emacs-29 to emacs-30, I am no longer able to use = C-x as a
non-prefix key. I have always hated the C-x prefix, as I use = C-x for
next-line. I am still able to set C-] as my Control-X-prefix, = but I can
no longer get C-x mapped to 'next-line. I had been using = define-key with
a custom overriding-local-map, but that is no longer = working


In GNU Emacs 30.2 (build 1, = aarch64-apple-darwin21.6.0, NS
appkit-2113.60 Version 12.6.1 (Build = 21G217)) of 2025-08-14 built on
builder-m1-12.lan
Windowing = system distributor 'Apple', version 10.3.2685
System = Description:  macOS = 26.0

Configured using:
'configure --with-ns = '--enable-locallisppath=3D/Library/Application
= Support/Emacs/${version}/site-lisp:/Library/Application
= Support/Emacs/site-lisp' --with-modules 'CFLAGS=3D-DFD_SETSIZE=3D10000
= -DDARWIN_UNLIMITED_SELECT' --with-x-toolkit=3Dno'

Configured = features:
ACL GLIB GMP GNUTLS JPEG LIBXML2 MODULES NOTIFY KQUEUE NS = PDUMPER PNG
RSVG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER = ZLIB

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

Major mode: Info

Minor = modes in effect:
  = global-tab-line-mode: t
  tab-line-mode: t
  which-function-mode: = t
  = desktop-save-mode: t
  tooltip-mode: t
  global-eldoc-mode: = t
  = show-paren-mode: t
  = electric-indent-mode: t
  mouse-wheel-mode: = t
  tool-bar-mode: = t
  menu-bar-mode: = t
  = file-name-shadow-mode: t
  isearch-fold-quotes-mode: = t
  = global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: = t
  = minibuffer-regexp-mode: t
  buffer-read-only: = t
  = line-number-mode: t
 = indent-tabs-mode: t
  transient-mark-mode: = t
  = auto-composition-mode: t
  auto-encryption-mode: = t
  = auto-compression-mode: t

Load-path shadows:
None = found.

Features:
(shadow sort mail-extr emacsbug message = yank-media puny dired
dired-loaddefs rfc822 mml mml-sec epa derived = epg rfc6068 epg-config
gnus-util mm-decode mm-bodies mm-encode = mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 = rfc2045 ietf-drums mm-util
mail-prsvr mail-utils jka-compr info = shortdoc text-property-search
comp-common rx noutline outline = two-column kmacro facemenu help-fns
radix-tree apropos add-log = cl-extra help-mode time-date tab-line
cus-load which-func imenu = ispell desktop frameset package browse-url url
url-proxy url-privacy = url-expand url-methods url-history url-cookie
generate-lisp-file = url-domsuf url-util mailcap url-handlers url-parse
auth-source cl-seq = eieio eieio-core cl-macs icons password-cache json
subr-x map = byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib
rmc = iso-transl tooltip cconv eldoc paren 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 nadvice seq simple = cl-generic
indonesian philippine 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 abbrev obarray oclosure cl-preloaded = button loaddefs
theme-loaddefs faces cus-face macroexp files window = text-properties
overlay sha1 md5 base64 format env code-pages mule = custom widget keymap
hashtable-print-readable backquote threads = kqueue cocoa ns multi-tty
make-network-process emacs)

Memory = information:
((conses 16 124293 14842) (symbols 48 22924 4) (strings = 32 46142 1443)
(string-bytes 1 1005039) (vectors 16 20113)
= (vector-slots 8 476524 48761) (floats 8 121 98)
(intervals 56 8703 = 96) (buffers 992 17))


L i n n   S t a n t o = n
linnstanton@mac.com  
(917) 208-8246

"The more corrupt the = state, the more numerous the laws" -- Tacitus




= --Apple-Mail=_66C7C39A-222B-419D-802D-A5DF93F3CE0B-- From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 27 15:15:17 2025 Received: (at 79323) by debbugs.gnu.org; 27 Aug 2025 19:15:17 +0000 Received: from localhost ([127.0.0.1]:35274 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1urLc4-0008VB-VY for submit@debbugs.gnu.org; Wed, 27 Aug 2025 15:15:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37108) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1urLc0-0008RB-HF for 79323@debbugs.gnu.org; Wed, 27 Aug 2025 15:15:13 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1urLbt-0005kk-HD; Wed, 27 Aug 2025 15:15:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=PC/bwqX3nWlXcsmAMmTNRG/P0jxfVrw1r3w13z+tmsA=; b=dX08XlZQhN/O sCiyffaVkCGgbyefrbPBGkExy7ELxxAU49ZS1JUWmP4RgZdz04DFXd/NyTWxKyNz54GCldRM4xt6X TIdXcPeIbGmFavxx4PnXbjhRtM3XzaspPTvSnuMKRoCujeK1m1cviqJA7ShqJ62WdQmZICBceWLQU 1DCZqPO23qj25xsqYvM/olq3eDdRqs5wwiTEnSqbQlSCSc5/nnTrK03SRwF4DovPQGPc5GvHkTWgj 4kdDrShLdsK/1ULBBRU/HdQ/4OA1joskWLFcTfqq8AokrIo7ba/CBkdTa96o04tmTRBTn7eRJLjQl rHV7J0dElX0vhiRbsLz0Kw==; Date: Wed, 27 Aug 2025 22:15:02 +0300 Message-Id: <86ecswtw3t.fsf@gnu.org> From: Eli Zaretskii To: Linn Stanton In-Reply-To: <7EB13652-1CB9-4DAD-9823-41A268D26C77@me.com> (bug-gnu-emacs@gnu.org) Subject: Re: bug#79323: 30.2; Control-X-prefix not remapable References: <7EB13652-1CB9-4DAD-9823-41A268D26C77@me.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79323 Cc: 79323@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Cc: Linn Stanton > Date: Wed, 27 Aug 2025 13:01:36 -0400 > From: Linn Stanton via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > Updating from emacs-29 to emacs-30, I am no longer able to use C-x as a > non-prefix key. I have always hated the C-x prefix, as I use C-x for > next-line. I am still able to set C-] as my Control-X-prefix, but I can > no longer get C-x mapped to 'next-line. I had been using define-key with > a custom overriding-local-map, but that is no longer working Please show the code that worked for you in Emacs 29, but does not work in Emacs 30.2. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 28 10:22:26 2025 Received: (at 79323) by debbugs.gnu.org; 28 Aug 2025 14:22:26 +0000 Received: from localhost ([127.0.0.1]:39490 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1urdWE-0007vM-A6 for submit@debbugs.gnu.org; Thu, 28 Aug 2025 10:22:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45596) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1urdW8-0007u0-V8 for 79323@debbugs.gnu.org; Thu, 28 Aug 2025 10:22:22 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1urdVz-0006R8-1n; Thu, 28 Aug 2025 10:22:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Hi5yRTTqQQWhqPanhRANBviWaYJ5ARYXYVcwMs14OpM=; b=IjrcaE180qwQ tksgL9maR2JnZvtZ13+am+YuazE9Sg8alWRGUx/Gq70CV2vIF10vFmRMs/e9h49i5ZDJMEq8m+er6 cLyiC/z2L11PMEnbl29wUJ7rSEVfbd4WGkavWuetABOCgt3bpzRDkHm15+yTnLJL61YG589lMKpoL L6RJD2SOLeXHl+XkqelTSGV/oip2a973WPy532OqdND83MpvCQ9tRVq9N+/bgKPTAH5Phje58SiNE 9C55+l0KFWLtulxk5uOjoMEhBzDnM1tawol+/34QPUKcbQTOx9byf671c3xWsoRawr7jcrgfrS8R4 muOrgiIFDR/Tj8bKskj+3w==; Date: Thu, 28 Aug 2025 17:22:05 +0300 Message-Id: <86qzwvsf02.fsf@gnu.org> From: Eli Zaretskii To: Linn Stanton , Stefan Monnier In-Reply-To: <1F470D34-11BD-44FC-86F5-4298D5CC4EF5@me.com> (message from Linn Stanton on Thu, 28 Aug 2025 09:47:22 -0400) Subject: Re: bug#79323: 30.2; Control-X-prefix not remapable References: <7EB13652-1CB9-4DAD-9823-41A268D26C77@me.com> <86ecswtw3t.fsf@gnu.org> <1F470D34-11BD-44FC-86F5-4298D5CC4EF5@me.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79323 Cc: 79323@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Linn Stanton > Date: Thu, 28 Aug 2025 09:47:22 -0400 > Cc: Linn Stanton , > 79323@debbugs.gnu.org > > Here is the relevant portion of my .emacs: > > (make-local-variable 'overriding-local-map) > (setq overriding-local-map (copy-keymap global-map)) > (define-key global-map [(control ?\])] 'Control-X-prefix) > (global-set-key [(control x)] 'next-line) > (define-key global-map [(control x)] 'next-line) > (define-key overriding-local-map [(control x)] 'next-line) > (define-key minibuffer-local-map [(control e)] 'previous-history-element) > (define-key minibuffer-local-map [(control x)] 'next-history-element) > (define-key minibuffer-local-completion-map [(control e)] 'previous-history-element) > (define-key minibuffer-local-completion-map [(control x)] 'next-history-element) > (define-key minibuffer-local-isearch-map [(control e)] 'previous-history-element) > > Up until recently, this let me remap C-x to next-line, with all the standard C-x functionality moving to C-], but > in the current version while the C-] mapping still works, C-x is still interpreted as a prefix I cannot quite reproduce this, so maybe something is missing from the above recipe. If I start "emacs -Q" and then evaluate this: (make-local-variable 'overriding-local-map) (setq overriding-local-map (copy-keymap global-map)) (define-key global-map [(control ?\])] 'Control-X-prefix) (global-set-key [(control x)] 'next-line) (define-key global-map [(control x)] 'next-line) (define-key overriding-local-map [(control x)] 'next-line) then C-x becomes bound to next-line both in Emacs 29 and in Emacs 30. C-] doesn't get bound to C-x prefix, but that doesn't happen in Emacs 29, either. Stefan, did we change anything in Emacs 30 that should affect the above? From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 28 11:53:05 2025 Received: (at 79323) by debbugs.gnu.org; 28 Aug 2025 15:53:06 +0000 Received: from localhost ([127.0.0.1]:39645 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1urevx-0004Zo-97 for submit@debbugs.gnu.org; Thu, 28 Aug 2025 11:53:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43448) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1urevt-0004YN-Mq for 79323@debbugs.gnu.org; Thu, 28 Aug 2025 11:53:02 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1urevm-0003UK-Ik; Thu, 28 Aug 2025 11:52:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=4NddvLzHxZFKfftqvdrxBU8J0ATVEw5SptbvexMyAFs=; b=k/cATkZdC/cg hfdenh6COgLeCRKIlXuHf4VKY1dCeUaU/GdxcQMDZtuK4X5ktZPXrQv+LQfbdLFYiY2rjMJ06PKag 1M2ku999nLoVohOGO6B97JvJnj+EJ1zC0DJNaikD9/Ng9Rn76KvwptclVx3AASZfiirGliJh4amxp oWw99LGwQqC0xEOQ9Gpc1SCIckXnwqFaQRar9WVQbvaBNcfBT7yRJelK6FMtjrLNG957siDsFNHz5 yXF09t3vmhTwQ93GVjdQ8vUADt0D/uODZSr8k5dHx0AN0Q0mYEWAuB+l0vW8vU4vxzGNr0P+NUpQj bAMohyDH1Xzhp1MdpZNBXg==; Date: Thu, 28 Aug 2025 18:52:51 +0300 Message-Id: <86plcfsass.fsf@gnu.org> From: Eli Zaretskii To: Linn Stanton In-Reply-To: (message from Linn Stanton on Thu, 28 Aug 2025 10:35:39 -0400) Subject: Re: bug#79323: 30.2; Control-X-prefix not remapable References: <7EB13652-1CB9-4DAD-9823-41A268D26C77@me.com> <86ecswtw3t.fsf@gnu.org> <1F470D34-11BD-44FC-86F5-4298D5CC4EF5@me.com> <86qzwvsf02.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79323 Cc: 79323@debbugs.gnu.org, monnier@iro.umontreal.ca X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Linn Stanton > Date: Thu, 28 Aug 2025 10:35:39 -0400 > Cc: Linn Stanton , > Stefan Monnier , > 79323@debbugs.gnu.org > > I am attaching my entire .emacs, but it does seem odd > > In the current 30.2, with just the code fragment, it seems the C-] assignment has to go into overriding-local-map Maybe this is something specific to macOS? Can anyone else reproduce this? From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 28 11:53:26 2025 Received: (at 79323) by debbugs.gnu.org; 28 Aug 2025 15:53:27 +0000 Received: from localhost ([127.0.0.1]:39647 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1urewH-0004cL-Ou for submit@debbugs.gnu.org; Thu, 28 Aug 2025 11:53:26 -0400 Received: from p-east3-cluster3-host5-snip4-9.eps.apple.com ([57.103.86.52]:11418 helo=outbound.qs.icloud.com) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ureET-0006E7-A9 for 79323@debbugs.gnu.org; Thu, 28 Aug 2025 11:08:11 -0400 Received: from outbound.qs.icloud.com (unknown [127.0.0.2]) by p00-icloudmta-asmtp-us-east-2d-60-percent-4 (Postfix) with ESMTPS id 39DFE18028F7; Thu, 28 Aug 2025 15:08:02 +0000 (UTC) Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; bh=zYOWsX/2QeokXGVwJBTZVcS/D5vVUsJhyPut94VaB9E=; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date:To:x-icloud-hme; b=gZi4qyIoYcnbhq2LPjNWzXYmycJUwYiiKwyU0CzqT8CRU6rQbVywZvv7ALLZCAGomp1R+fYLmDApkpeHhJoD86ddPZoxPnjONcUJnmzOrlv9CjyMwS86wTgYBr9W3hVulJnW6PpR6GMKwBOGP/ynT+Ae/qLWGNFx+InWP3J0eVPFLmacXVgA6gSFYezc+lLQPtk5o8SNYMCOxJ6hv6t4xh40Wo4+rilr0Eam4El2MgGDVTKBLyhKRT6ehIzhiHxGMSpG2f8PsiPEXSRCIqoqbn7gBLQTkI07dshyl7RPkwMoiF8QjDUwNEZebFivWjsfpQIWOnmEuFCsWCjIgPqq+A== Received: from smtpclient.apple (qs-asmtp-me-k8s.p00.prod.me.com [17.57.155.37]) by p00-icloudmta-asmtp-us-east-2d-60-percent-4 (Postfix) with ESMTPSA id D0CED18024F8; Thu, 28 Aug 2025 14:53:37 +0000 (UTC) From: Linn Stanton Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_E2035AD2-788C-4AC6-B70C-A142E23395B7" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.100.1.1.5\)) Subject: Re: bug#79323: 30.2; Control-X-prefix not remapable Date: Thu, 28 Aug 2025 10:53:27 -0400 In-Reply-To: To: Eli Zaretskii References: <7EB13652-1CB9-4DAD-9823-41A268D26C77@me.com> <86ecswtw3t.fsf@gnu.org> <1F470D34-11BD-44FC-86F5-4298D5CC4EF5@me.com> <86qzwvsf02.fsf@gnu.org> X-Mailer: Apple Mail (2.3864.100.1.1.5) X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwODI4MDEyNyBTYWx0ZWRfXx0JzVp5dUtHd 57REnbLOu2ABnaaeiDgyg7tMgPsXYf0BV82e3h9cFwWtAJ1Us0VIW4jSJ0HqhAj5u1BIgSCpyWj aQoF0wYUMGLMlbnas96hAphWKNsb00X3D22Mh+d1QfU1uFusehlZppBg8oPnpLwequHCWmqqKKv lFFRHAtXEubNhSjlVUanQEoMKUgmB9Rh9uRihMRaJnkdO/yXAscyo4XgJ8/lePXxPo2yzacfA/Y 2ikA7SG0Wj879S/FQ82N0quCp+qK2RIaMbbxfb2TE4LRrjyvE/uGQlomDusZtzAw8TF8uV0to= X-Proofpoint-GUID: 4zhBGHaAhp8xLjzCtta4KPMrQJPbn7bv X-Proofpoint-ORIG-GUID: 4zhBGHaAhp8xLjzCtta4KPMrQJPbn7bv X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-08-28_04,2025-08-28_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 adultscore=0 spamscore=0 mlxlogscore=999 phishscore=0 suspectscore=0 malwarescore=0 clxscore=1015 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.22.0-2506270000 definitions=main-2508280127 X-JNJ: AAAAAAABYw+VoCbFBorba0hTmDfSpRcLOYe6pkkg7LHQfuiM4kbqgzmP+vimSAfeVsq+7slcJzm36glsTwshFo/Dvvig9zuifQdEoqDDNfLs+4ncTHbjCht0XM8Bp8gc8Y+B3tPQ4LRJc1S0KimtkQWH4sTnil0RnWz4fUfxVYgGadV19u4zbLwsu+TVtWjJlyFbNF9vKkS6f7q26NC0U9fz8xJl0N5CxqNg9QKPNictDSQ+6DwUSHBHuBsWAip6BYTitSSQeVi/t4gIzzfzsQGnrp2hT4i4t/aC51uqJ2JPWW1brywKZFJVvPrWr89pDQX8t9CzdhzsvgDFSr58kQ1RKmeiu+23xrjZ7gl8nFHMwVJUeHzmJt1DJNcj4qCy49fPfdGmfYpKvNrYEiKHk9k5TllWMsbQ4EVCwba+gGxdXBA6aA7l X-Apple-Category-Label: MTkwODQ3ODc1OiRjYXRlZ29yeSRfUGVyc29uYWws X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 79323 X-Mailman-Approved-At: Thu, 28 Aug 2025 11:53:22 -0400 Cc: Linn Stanton , Stefan Monnier , 79323@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --Apple-Mail=_E2035AD2-788C-4AC6-B70C-A142E23395B7 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 As an update, I am attaching my current .emacs. Interestingly, it does = not set C-x for the entire session, but if I eval-region on the = overriding-local-map chunk, then it takes. Is the overriding-local-map = so local that it won=E2=80=99t work in .emacs? =EF=BF=BC L i n n S t a n t o n linnstanton@mac.com =20 (917) 208-8246 In any moment of decision, the best thing you can do is the right thing, = the next best thing is the wrong thing, and the worst thing you can do = is nothing. Theodore Roosevelt = > On Aug 28, 2025, at 10:35=E2=80=AFAM, Linn Stanton = wrote: >=20 > I am attaching my entire .emacs, but it does seem odd >=20 > In the current 30.2, with just the code fragment, it seems the C-] = assignment has to go into overriding-local-map >=20 > <.emacs copy> >=20 > L i n n S t a n t o n > linnstanton@mac.com =20 > (917) 208-8246 >=20 >=20 > Do what you can, with what you have, where you are. >=20 > Theodore Roosevelt = >=20 >=20 >=20 >=20 >> On Aug 28, 2025, at 10:22=E2=80=AFAM, Eli Zaretskii = wrote: >>=20 >>> From: Linn Stanton > >>> Date: Thu, 28 Aug 2025 09:47:22 -0400 >>> Cc: Linn Stanton >, >>> 79323@debbugs.gnu.org >>>=20 >>> Here is the relevant portion of my .emacs: >>>=20 >>> (make-local-variable 'overriding-local-map) >>> (setq overriding-local-map (copy-keymap global-map)) >>> (define-key global-map [(control ?\])] 'Control-X-prefix) >>> (global-set-key [(control x)] 'next-line) >>> (define-key global-map [(control x)] 'next-line) >>> (define-key overriding-local-map [(control x)] 'next-line) >>> (define-key minibuffer-local-map [(control e)] = 'previous-history-element) >>> (define-key minibuffer-local-map [(control x)] = 'next-history-element) >>> (define-key minibuffer-local-completion-map [(control e)] = 'previous-history-element) >>> (define-key minibuffer-local-completion-map [(control x)] = 'next-history-element) >>> (define-key minibuffer-local-isearch-map [(control e)] = 'previous-history-element) >>>=20 >>> Up until recently, this let me remap C-x to next-line, with all the = standard C-x functionality moving to C-], but >>> in the current version while the C-] mapping still works, C-x is = still interpreted as a prefix >>=20 >> I cannot quite reproduce this, so maybe something is missing from the >> above recipe. >>=20 >> If I start "emacs -Q" and then evaluate this: >>=20 >> (make-local-variable 'overriding-local-map) >> (setq overriding-local-map (copy-keymap global-map)) >> (define-key global-map [(control ?\])] 'Control-X-prefix) >> (global-set-key [(control x)] 'next-line) >> (define-key global-map [(control x)] 'next-line) >> (define-key overriding-local-map [(control x)] 'next-line) >>=20 >> then C-x becomes bound to next-line both in Emacs 29 and in Emacs 30. >> C-] doesn't get bound to C-x prefix, but that doesn't happen in Emacs >> 29, either. >>=20 >> Stefan, did we change anything in Emacs 30 that should affect the >> above? >=20 --Apple-Mail=_E2035AD2-788C-4AC6-B70C-A142E23395B7 Content-Type: multipart/mixed; boundary="Apple-Mail=_0BC77FC4-CAE6-4EA7-8BB8-207B697B64C5" --Apple-Mail=_0BC77FC4-CAE6-4EA7-8BB8-207B697B64C5 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 As an update, I am attaching my current = .emacs.  Interestingly, it does not set C-x for the entire session, = but if I eval-region on the overriding-local-map chunk, then it takes. = Is the overriding-local-map so local that it won=E2=80=99t work in = .emacs?
= --Apple-Mail=_0BC77FC4-CAE6-4EA7-8BB8-207B697B64C5 Content-Disposition: attachment; filename=.emacs Content-Type: application/octet-stream; x-unix-mode=0644; name=".emacs" Content-Transfer-Encoding: 7bit ;;; ;;; initial setq's for the global environment ;;; ;; ____________________________________________________________________________ ;; Aquamacs custom-file warning: ;; Warning: After loading this .emacs file, Aquamacs will also load ;; customizations from `custom-file' (customizations.el). Any settings there ;; will override those made here. ;; Consider moving your startup settings to the Preferences.el file, which ;; is loaded after `custom-file': ;; ~/Library/Preferences/Aquamacs Emacs/Preferences ;; _____________________________________________________________________________ (setq inhibit-startup-message t) (setq visible-bell t) (transient-mark-mode t) (setq search-highlight t) (set-mouse-color "red") (set-cursor-color "red") (set-face-background (quote default) "grey95") (set-face-foreground (quote default) "black") ;(set-face-background (quote modeline) "yellow") ;(set-face-foreground (quote modeline) "blue") (set-face-attribute 'default (selected-frame) :height 250) ;; save buffers for next session (desktop-save-mode 1) ;; ;; load all our packages now, to avoid keybinding errors ;; ;; Melpa ;(require 'package) ;(add-to-list 'package-archives ; '("melpa" . "http://melpa.milkbox.net/packages/") t) ;(package-initialize) ;(autoload 'flyspell-mode "flyspell" "On-the-fly ispell." t) (autoload 'postscript-mode "postscript.el" "" t) (setq auto-mode-alist (append '(("\\.C$" . c++-mode) ("\\.cc$" . c++-mode) ("\\.hh$" . c++-mode) ("\\.java$" . java-mode) ("\\.c$" . c-mode) ("\\.h$" . objc-mode) ("\\.m$" . objc-mode) ("\\.H$" . c++-mode) ("\\.pl$" . perl-mode) ("\\.ps$" . postscript-mode) ("\\.g$" . emacs-lisp-mode) ("\\.swift" . swift-mode) ("/[A-Z][a-zA-Z]*$" . c++-mode) ) auto-mode-alist)) (setq magic-mode-alist (append (list '("\\(.\\|\n\\)*\n@implementation" . objc-mode) '("\\(.\\|\n\\)*\n@interface" . objc-mode) '("\\(.\\|\n\\)*\n@protocol" . objc-mode)) magic-mode-alist)) ;(load "objc-font-lock") ;(objc-font-lock-global-mode) ;(add-hook 'objc-mode-hook 'objc-font-lock-mode) ;(load "cl") ; deprecated (load "ispell") (setq mark-even-if-inactive t) (line-number-mode t) (global-font-lock-mode t) ;;; additional font-locking for better readability (add-hook 'java-mode-hook (function (lambda () ;(setq font-lock-keywords java-font-lock-keywords-2) ;(setq c-basic-offset '2) (local-set-key [(control d)] 'forward-char) ) ) ) (add-hook 'c-mode-hook (function (lambda () (local-set-key [(control d)] 'forward-char) ; (setq font-lock-keywords c-font-lock-keywords-3) ))) (add-hook 'c++-mode-hook (function (lambda () (local-set-key [(control d)] 'forward-char) ;(setq font-lock-keywords c++-font-lock-keywords-3) ))) (add-hook 'lisp-mode-hook (function (lambda () (local-set-key [(control d)] 'forward-char) (setq font-lock-keywords lisp-el-font-lock-keywords-2)))) (setq-default font-lock-maximum-decoration t) (font-lock-add-keywords 'lisp-mode '( ("(set" . font-lock-keyword-face) ("(setq" . font-lock-keyword-face) ) t) ;; ;; additional c,c++ keywords (font-lock-add-keywords 'c-mode '( ("{" . font-lock-comment-face) ("}" . font-lock-comment-face) ("(" . font-lock-keyword-face) (")" . font-lock-keyword-face) ) t) (font-lock-add-keywords 'c++-mode '( ("{" . font-lock-comment-face) ("}" . font-lock-comment-face) ("(" . font-lock-keyword-face) (")" . font-lock-keyword-face) ) t) ;; ;; additional swift, ObjC keywords (font-lock-add-keywords 'swift-mode '( (":" . font-lock-comment-face) ("\\." . font-lock-comment-face) ("{" . font-lock-comment-face) ("}" . font-lock-comment-face) ("(" . font-lock-keyword-face) (")" . font-lock-keyword-face) ) t) (font-lock-add-keywords 'objc-mode '( (":" . font-lock-comment-face) ("\\[" . font-lock-comment-face) ("\\]" . font-lock-comment-face) ("\\." . font-lock-comment-face) ("{" . font-lock-comment-face) ("}" . font-lock-comment-face) ("(" . font-lock-keyword-face) (")" . font-lock-keyword-face) ) t) ;; ;; additional java keywords (font-lock-add-keywords 'java-mode '( ("{" . font-lock-comment-face) ("}" . font-lock-comment-face) ("(" . font-lock-keyword-face) (")" . font-lock-keyword-face) ) t) ;; ;; additional postscript keywords (font-lock-add-keywords 'postscript-mode '( ("{" . font-lock-comment-face) ("}" . Font-lock-comment-face) ("/" . font-lock-comment-face) ) t) ;;; ;;; set function keys ;;; ;;; and set to over-ride local map ;;; ;(make-local-variable 'overriding-local-map) ;(setq overriding-local-map (copy-keymap global-map)) ;;; ;;; ;; row 1 (function key row) (global-set-key [f1] 'start-kbd-macro) (global-set-key [f2] 'end-kbd-macro) (global-set-key [f3] 'call-last-kbd-macro) (global-set-key [f4] 'sort-lines) (global-set-key [f5] 'repeat-complex-command) (global-set-key [f6] 'execute-extended-command) (global-set-key [f7] 'apply-macro-to-region-lines) (global-set-key [f9] 're-search-forward) (global-set-key [f10] 're-search-backward) ;(global-set-key [home] 'find-file) ;(define-key overriding-local-map [home] 'find-file) ;(global-set-key [end] 'save-buffer) ;(define-key overriding-local-map [end] 'save-buffer) ;(global-set-key [prior] 'beginning-of-buffer) ;(define-key overriding-local-map [prior] 'beginning-of-buffer) ;(global-set-key [next] 'end-of-buffer) ;(define-key overriding-local-map [next] 'end-of-buffer) ;(global-set-key [f13] 'find-file-other-frame) ;; print screen ;(global-set-key [f14] 'save-buffer) ;; scroll lock ;(global-set-key [f15] 'find-file) ;; pause ;(global-set-key [f16] 'start-kbd-macro) ;(global-set-key [f17] 'end-kbd-macro) ;(global-set-key [f18] 'call-last-kbd-macro) ;(global-set-key [f19] 'sort-lines) ;; row 3 (qwertyuiop) (global-set-key [(control q)] 'scroll-down) (global-set-key [(control w)] 'beginning-of-line) (global-set-key [(control e)] 'previous-line) (global-set-key [(control r)] 'end-of-line) (global-set-key [(control o)] 'quoted-insert) (global-set-key [(control p)] 'apply-macro-to-region-lines) ;; row 4 (asdfghjkl) (global-set-key [(control a)] 'backward-word) (global-set-key [(control s)] 'backward-char) (global-set-key [(control d)] 'forward-char) (global-set-key [(control f)] 'forward-word) (global-set-key [(control g)] 'beginning-of-buffer) (global-set-key [(control j)] 'end-of-buffer) (global-set-key [(control l)] 'kill-region) (define-key global-map [(control ?\])] 'Control-X-prefix) ;; row 5 (zxcvbnm) (global-set-key [(control z)] 'scroll-up) ;(global-unset-key (kbd "C-x")) ;(local-unset-key (kbd "C-x")) ;(global-set-key (kbd "C-x") 'next-line) ;(define-key global-map (kbd "C-x") 'next-line) ;(define-key overriding-local-map [(control x)] 'next-line) ;;; (global-set-key [?\242] ' ;;; (global-set-key [f11] ' ;(global-set-key [(control c)] 'execute-extended-command) ;(define-key overriding-local-map [(control c)] 'execute-extended-command) (global-set-key [(control v)] 'repeat-complex-command) (global-set-key [(control b)] 're-search-backward) (global-set-key [(control n)] 're-search-forward) (global-set-key [(control m)] 'newline-and-indent) ;;; ;;; minibuffer local ;;; (define-key minibuffer-local-map [(control e)] 'previous-history-element) (define-key minibuffer-local-map [(control x)] 'next-history-element) (define-key minibuffer-local-completion-map [(control e)] 'previous-history-element) (define-key minibuffer-local-completion-map [(control x)] 'next-history-element) (define-key minibuffer-local-isearch-map [(control e)] 'previous-history-element) (which-function-mode) (put 'downcase-region 'disabled nil) (put 'upcase-region 'disabled nil) (make-local-variable 'overriding-local-map) (setq overriding-local-map (copy-keymap global-map)) (define-key overriding-local-map [(control ?\])] 'Control-X-prefix) (global-set-key [(control x)] 'next-line) (define-key global-map [(control x)] 'next-line) (define-key overriding-local-map [(control x)] 'next-line) (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(font-lock-maximum-decoration t) '(global-tab-line-mode t) '(minibuffer-visible-completions t) '(package-selected-packages '(swift-mode)) '(send-mail-function 'mailclient-send-it)) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(mode-line ((t (:background "yellow1" :foreground "gray0" :box (:line-width (1 . -1) :style released-button)))))) --Apple-Mail=_0BC77FC4-CAE6-4EA7-8BB8-207B697B64C5 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8


L i n n   S t = a n t o n
linnstanton@mac.com  
(917) = 208-8246

In any moment of decision, the = best thing you can do is the right thing, the next best thing is the = wrong thing, and the worst thing you can do is nothing.

Theodore = Roosevelt


On Aug 28, 2025, at 10:35=E2=80=AF= AM, Linn Stanton <linnstanton@me.com> wrote:

I = am attaching my entire .emacs, but it does seem = odd

In the current 30.2, with just the code fragment, = it seems the C-] assignment has to go into = overriding-local-map

<.emacs = copy>

L i n n   S t a n t o = n
linnstanton@mac.com  
(917) 208-8246


Do what you can, with what you have, where you are.

Theodore = Roosevelt





On Aug 28, 2025, at 10:22=E2=80=AF= AM, Eli Zaretskii <eliz@gnu.org> wrote:

From: Linn Stanton <linnstanton@me.com>
Date: = Thu, 28 Aug 2025 09:47:22 -0400
Cc: Linn Stanton <linnstanton@me.com>,
79323@debbugs.gnu.org

Her= e is the relevant portion of my .emacs:

(make-local-variable = 'overriding-local-map)
(setq overriding-local-map (copy-keymap = global-map))
(define-key global-map [(control ?\])] = 'Control-X-prefix)
(global-set-key [(control x)] = 'next-line)
(define-key global-map [(control x)] = 'next-line)
(define-key overriding-local-map [(control x)] = 'next-line)
(define-key minibuffer-local-map  [(control e)] = 'previous-history-element)
(define-key minibuffer-local-map =  [(control x)] 'next-history-element)
(define-key = minibuffer-local-completion-map [(control e)] = 'previous-history-element)
(define-key = minibuffer-local-completion-map [(control x)] = 'next-history-element)
(define-key minibuffer-local-isearch-map = [(control e)] 'previous-history-element)

Up until recently, this = let me remap C-x to next-line, with all the standard C-x functionality = moving to C-], but
in the current version while the C-] mapping still = works, C-x is still interpreted as a prefix

I cannot quite reproduce this, so maybe = something is missing from the
above = recipe.

If I start "emacs -Q" = and then evaluate this:

 (make-local-variable 'overriding-local-map)
 (setq overriding-local-map = (copy-keymap global-map))
 (define-key global-map [(control ?\])] = 'Control-X-prefix)
 (global-set-key [(control x)] 'next-line)
 (define-key global-map [(control x)] = 'next-line)
 (define-key = overriding-local-map [(control x)] 'next-line)

then C-x becomes bound to next-line both in = Emacs 29 and in Emacs 30.
C-] = doesn't get bound to C-x prefix, but that doesn't happen in = Emacs
29, either.

Stefan, did we change anything in Emacs 30 = that should affect the
above?

<= /blockquote>

= --Apple-Mail=_0BC77FC4-CAE6-4EA7-8BB8-207B697B64C5-- --Apple-Mail=_E2035AD2-788C-4AC6-B70C-A142E23395B7-- From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 28 13:51:39 2025 Received: (at 79323) by debbugs.gnu.org; 28 Aug 2025 17:51:39 +0000 Received: from localhost ([127.0.0.1]:39875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1urgmg-0005Gi-GZ for submit@debbugs.gnu.org; Thu, 28 Aug 2025 13:51:39 -0400 Received: from p-west1-cluster1-host7-snip4-10.eps.apple.com ([57.103.64.33]:17324 helo=outbound.pv.icloud.com) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1urgmY-0005Ej-8E for 79323@debbugs.gnu.org; Thu, 28 Aug 2025 13:51:32 -0400 Received: from outbound.pv.icloud.com (unknown [127.0.0.2]) by p00-icloudmta-asmtp-us-west-1a-100-percent-2 (Postfix) with ESMTPS id 8E8F018013C8 for <79323@debbugs.gnu.org>; Thu, 28 Aug 2025 17:51:20 +0000 (UTC) Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; bh=ZExZMbULHle5iwHWp9DS0QCEGl7u5eT8nw4DCGSf0Ko=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:x-icloud-hme; b=A/wDkUTPLAF9pft7Gl+oL2nNIgXR6jmcWl5CoGc9G4ly98MiiRRaS3QlNhu8sTyc9YaX05GscSsiiSfgmNjfvzBcOWrwdGpOW+k3xm+PHmXjU/GZQVXVLfh06QJLgfsnaI5TK+5kkxTeyXahUl4p6kiBg20hq1iKSCQtXGsgH4cSbaHYIBF62dTgU48ZlQkLpqybImHQh5rkPGImZBhi1x15gtxOKzYVmdrlVg/NSoFSXLS3orL0p+PS4979kTLohjk78sTBI/x8BPIHLl9qvc/sarOJV+JFjgQK1FVxeFXIFdIcRE0AYoibjE98+7H17hpZAzcueWMlTJrahg6/oA== mail-alias-created-date: 1337680789000 Received: from neun.local (pv-asmtp-me-k8s.p00.prod.me.com [17.56.9.36]) by p00-icloudmta-asmtp-us-west-1a-100-percent-2 (Postfix) with ESMTPSA id C289E18000AD for <79323@debbugs.gnu.org>; Thu, 28 Aug 2025 17:51:19 +0000 (UTC) From: Scott Bell To: 79323@debbugs.gnu.org Subject: Re: bug#79323: 30.2; Control-X-prefix not remapable Date: Thu, 28 Aug 2025 11:51:15 -0600 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwODI4MDE0OSBTYWx0ZWRfXzc/YR0FGsSnO i8Pp28iS7c6MHXMqqHwH7tZXzpO/LPDCcu36Ufbug6/UJPSMeoGDesfVD0S5C0Ifl9PyCBXIPOC lwKsB2sxu5VJ2qhcTCscmYYe6+yfrQquRY79KtAQ74pyopoi6E5KjKLdDIxqAUbx6BQS1UX/Dow YK6pomRZEFKChCsvBlUGlMt+XTFQWkwM14hhtsTx4iX2NJ9MDuX5PMbwJPdEuxqbA6rzsdiKD3r lqeK9kZV5Ci5+r3a/mgiPUpc24JLumrXoNIN/IF0MGel1LFCIIXQp14/Nl9jKHg7PyPP0aUgY= X-Proofpoint-GUID: jf3vXX6VItpv66Q43nHuJBz-yNbobjr_ X-Proofpoint-ORIG-GUID: jf3vXX6VItpv66Q43nHuJBz-yNbobjr_ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-08-28_04,2025-08-28_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 mlxscore=0 adultscore=0 spamscore=0 clxscore=1011 bulkscore=0 suspectscore=0 malwarescore=0 mlxlogscore=547 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.22.0-2506270000 definitions=main-2508280149 X-JNJ: AAAAAAABB3cRoLLDjYe/6PUNaAzsilzGhzn9LLlOoqUedeFvCz18Y2QEdAFnCJlXA85/6lhktYG0bGtA8caUupWuDhdQ71JUV4yEPkdSVt5VvMRbIrD0axebduxH0qSD/8oWj2PhEUT4q0GKG6XOVYaA7ARfppgXQlrvSBm/RoEPo3GQuWVAFh0P4+yzLoTCjKcNDwHFGJr9Yz92Lpp4wIaqEZRSyeygZ+JZ98oOtC7STSySOpCLkdu6QQ40PlOUlGb+mRTZuC5oWpSsGBPfwXqmakOr73BLxsteeTeO52vbOkrqqdhh3ZkmmjG1yFVz+KzmarrJQUefOKY04NEdNYO/zHhzYlw/+/uNUO80+vyX X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 79323 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > As an update, I am attaching my current .emacs. Interestingly, it > does not set C-x for the entire session, but if I eval-region on the > overriding-local-map chunk, then it takes. Is the overriding-local-map > so local that it won=E2=80=99t work in .emacs? I was able to reproduce the issue as described on macOS with the .emacs provided, and reduced it to the minimum as follows: (define-key global-map [(control ?\])] 'Control-X-prefix) (make-local-variable 'overriding-local-map) (setq overriding-local-map (copy-keymap global-map)) (define-key overriding-local-map [(control ?\])] 'Control-X-prefix) (global-set-key [(control x)] 'next-line) (define-key global-map [(control x)] 'next-line) (define-key overriding-local-map [(control x)] 'next-line) (custom-set-variables '(global-tab-line-mode t)) The culprit here is global-tab-line-mode. Commit 230eecf12a introduces C-x prefixed bindings for tab switching, which are present in 30.2 but not 29.4. From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 28 13:59:03 2025 Received: (at 79323) by debbugs.gnu.org; 28 Aug 2025 17:59:04 +0000 Received: from localhost ([127.0.0.1]:39883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1urgto-0006KG-CN for submit@debbugs.gnu.org; Thu, 28 Aug 2025 13:59:03 -0400 Received: from mail-vs1-xe2f.google.com ([2607:f8b0:4864:20::e2f]:61716) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1urgtf-0006Iw-W5 for 79323@debbugs.gnu.org; Thu, 28 Aug 2025 13:58:53 -0400 Received: by mail-vs1-xe2f.google.com with SMTP id ada2fe7eead31-51eea6b3b83so840400137.3 for <79323@debbugs.gnu.org>; Thu, 28 Aug 2025 10:58:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1756403925; x=1757008725; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=5B1dpqNyVQBJ+EqSl/aeyzAZwSjte8XRqOEOKE5OXXQ=; b=STW2tRLRPBryClg5P0cp+M+hxMdqJr/bn5HrE9rPFbrWQYhbH4COrY8DRb70xA1g07 ABmDuGiUXr/Bb99SUEx61EOw/h9wNAmORPDIX3Cvm8YasgWCvfAtwiRB3c96osybPY/H iuVW9NFes0rMt+UzqlDC+BkaO053RLW4gAj6SWDC/BJa82c2CyYwwC2itbLPLlqM0gVK nkhFj8PZGgm8/srKNp0u9oLgHjK8uJ1r/hZT5fKpIswjCb9g6uyUrNbgkHS7SLIqkODR /7lmxv7aYZMEgqOzWl/O2nE1eHr2ZXB2w2HEhf/vpGVcZgUOF23mmn8L87UkjyN0FvFe 5B2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756403926; x=1757008726; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5B1dpqNyVQBJ+EqSl/aeyzAZwSjte8XRqOEOKE5OXXQ=; b=CGoygv335Z5S8r5730i+O5ybkH9j23eyTyEYGrR+HXw2EZbXA009bAygnb8wHMp5O+ Kj8vAQeMExjneUdeHddw5SPtF0hUV49t7fx1ZTjyuRItKA8O9+/oRvauDVp2xC5WRUGi pZh1yi7N64h/9A5uhjgwvCrvsSGHvHwgy7ZCR4VldViLhmaPeTHCV++FeRS3ONYUVkbW Nw7CD3UCYMftuQbcrjNzgeGR7f8DfsRwuthzcc98LArHERb2mEwpqPi7Iaph02Gn9EOv acLGujZCDuqGIz5Xlbaq9M0FO6eijJxpS6U6YEahJEPMZpoBjA8yufaIAPWuPofJKnGF GavA== X-Gm-Message-State: AOJu0YwfQYC7Xj0n3bDdSPZ28nbJZAsN5Ys/V7zyUEWU94ekiikvzYiF IjbPzFzG5AE3b2BDqaLbfISTQtLwJxhYL7B4Ag8zfdh9RunluxpQ7ddD7kS9Wy3BNlh/VlM6oGp BXNVK7lSjI479XB1WgtcWiWi1z1/lxoE= X-Gm-Gg: ASbGnctibCas4oCNiQK84w4yCNTa7L7Fu4SSvzA49mVfuFfMBM+nO83uY2mxa59+DlM DEJpWNngrsTYx4by9aNoh5QSZnho37wgyytdGJs6h82Qjj9qVrKACscCapHnO0X05IsJOyjDl15 T2RnapRSo6ANE3sjA9ByT2Ep/BX0CGl9RtLaGqcmGlMOAtXmcMm2Uhk4N1DQVmuB0RktpbwSAiC qrkS7RNM0qb7hMr0I6DETNO4G9HcfE30hTPUKIczg+hbiynU6FOee3DiK/b6C2A7Tx9Xg1VviU5 gvKgIQav2aroG3UZa31ucMqFUA7u3m6wjCsZm9EQLV9Xx4JpV684xXezQ16D4686Ye5viRndyqH 1vOw4Ba6sPd26oJvEPtygO8uZpLW+d3lsSYsX58F4 X-Google-Smtp-Source: AGHT+IE9Uia+x0/6bv+wXd0WuVNcyYcuFq+zk4dmQV/BcmU376dctl9u0XCQDCVo1WgeYutoZayjQGLVudNIgH8wbq8= X-Received: by 2002:a05:6102:3f48:b0:4e6:d94f:c197 with SMTP id ada2fe7eead31-51d0f3fde51mr8899384137.23.1756403925366; Thu, 28 Aug 2025 10:58:45 -0700 (PDT) MIME-Version: 1.0 References: <7EB13652-1CB9-4DAD-9823-41A268D26C77@me.com> In-Reply-To: From: =?UTF-8?Q?St=C3=A9phane_Marks?= Date: Thu, 28 Aug 2025 13:58:33 -0400 X-Gm-Features: Ac12FXxEDAxDj7ywwnogL8fxUBBORhs2k3h1TqbsKJTyQDCUnkO5WhUE-bvUP-4 Message-ID: Subject: Re: bug#79323: 30.2; Control-X-prefix not remapable To: Scott Bell Content-Type: multipart/alternative; boundary="0000000000000dbc71063d70a803" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 79323 Cc: 79323@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --0000000000000dbc71063d70a803 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Aug 28, 2025 at 1:56=E2=80=AFPM Scott Bell via Bug reports for GNU = Emacs, the Swiss army knife of text editors wrote: > > As an update, I am attaching my current .emacs. Interestingly, it > > does not set C-x for the entire session, but if I eval-region on the > > overriding-local-map chunk, then it takes. Is the overriding-local-map > > so local that it won=E2=80=99t work in .emacs? > > I was able to reproduce the issue as described on macOS with the .emacs > provided, and reduced it to the minimum as follows: > > (define-key global-map [(control ?\])] 'Control-X-prefix) > (make-local-variable 'overriding-local-map) > (setq overriding-local-map (copy-keymap global-map)) > (define-key overriding-local-map [(control ?\])] 'Control-X-prefix) > (global-set-key [(control x)] 'next-line) > (define-key global-map [(control x)] 'next-line) > (define-key overriding-local-map [(control x)] 'next-line) > > (custom-set-variables > '(global-tab-line-mode t)) > > The culprit here is global-tab-line-mode. > > Commit 230eecf12a introduces C-x prefixed bindings for tab switching, > which are present in 30.2 but not 29.4. > If I were a `tab-line` user, I suppose we would have done the same there as we did in `tab-bar. See master `tab-bar-define-keys` which I bind to nil as I manage my own bindings. --0000000000000dbc71063d70a803 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
= On Thu, Aug 28, 2025 at 1:56=E2=80=AFPM Scott Bell via Bug reports for GNU = Emacs, the Swiss army knife of text editors <bug-gnu-emacs@gnu.org> wrote:
> As an update, I am attaching my current .emacs.=C2= =A0 Interestingly, it
> does not set C-x for the entire session, but if I eval-region on the > overriding-local-map chunk, then it takes. Is the overriding-local-map=
> so local that it won=E2=80=99t work in .emacs?

I was able to reproduce the issue as described on macOS with the .emacs
provided, and reduced it to the minimum as follows:

(define-key global-map [(control ?\])] 'Control-X-prefix)
(make-local-variable 'overriding-local-map)
(setq overriding-local-map (copy-keymap global-map))
(define-key overriding-local-map [(control ?\])] 'Control-X-prefix)
(global-set-key [(control x)] 'next-line)
(define-key global-map [(control x)] 'next-line)
(define-key overriding-local-map [(control x)] 'next-line)

(custom-set-variables
=C2=A0'(global-tab-line-mode t))

The culprit here is global-tab-line-mode.

Commit 230eecf12a introduces C-x prefixed bindings for tab switching,
which are present in 30.2 but not 29.4.

If I were a `tab-l= ine` user, I suppose we would have done the same there as we did in `tab-ba= r.=C2=A0 See master `tab-bar-define-keys` which I bind to nil as I manage m= y own bindings.
--0000000000000dbc71063d70a803-- From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 28 14:57:11 2025 Received: (at 79323) by debbugs.gnu.org; 28 Aug 2025 18:57:11 +0000 Received: from localhost ([127.0.0.1]:40039 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1urho6-0006Wb-7O for submit@debbugs.gnu.org; Thu, 28 Aug 2025 14:57:10 -0400 Received: from mout-p-102.mailbox.org ([80.241.56.152]:39762) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1urho2-0006UA-4W for 79323@debbugs.gnu.org; Thu, 28 Aug 2025 14:57:07 -0400 Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4cCVxg3Tfsz9tgH; Thu, 28 Aug 2025 20:56:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; t=1756407415; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=SpQ3hxg6xY9HT+9Sc3HDQR49yVUJ1i3y8QSc3CrwGHg=; b=nZvaCwFJHr7iKz0Y5t+3gz9naRmfpqnUsqR2dxC+PtywNstN00OcLC+EtMo3za684bDBoO GepGzRPX6lOva2wGtTedNi8fIijn/YW5bLZPCdgIMj6OB7ioFE4PRmCbvD3vqoYq9o130f 5TXRaDyCFO/V4wTGz2zegCjHfh3Lwv9CXddAgLvsY+KfW7aw4kMUH05whf93BM17ky6fB2 z5eg1tsR8wubt1gG2zxWiTgw0catY18ogI5EpJEwS8f+sm+5Ek7v+0Cg2xbzsYRcFTG2rD slYM+EaolZJiMCMPchTd1u8Rv5YnVSIKek+HICrC074hyfv3hiSOsDET6x/O2A== From: Juri Linkov To: Scott Bell Subject: Re: bug#79323: 30.2; Control-X-prefix not remapable In-Reply-To: Organization: LINKOV.NET References: <7EB13652-1CB9-4DAD-9823-41A268D26C77@me.com> Date: Thu, 28 Aug 2025 21:56:01 +0300 Message-ID: <87349b5l8e.fsf@mail.linkov.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 79323 Cc: 79323@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > The culprit here is global-tab-line-mode. > > Commit 230eecf12a introduces C-x prefixed bindings for tab switching, > which are present in 30.2 but not 29.4. Thanks for finding this commit. I forgot we have a special keymap 'ctl-x-map'. This patch should fix it: diff --git a/lisp/tab-line.el b/lisp/tab-line.el index 7caae8bc2c1..17015ffcbb5 100644 --- a/lisp/tab-line.el +++ b/lisp/tab-line.el @@ -1279,12 +1279,13 @@ tab-line-event-start (defvar-keymap tab-line-mode-map :doc "Keymap for keys of `tab-line-mode'." - "C-x " #'tab-line-switch-to-prev-tab - "C-x C-" #'tab-line-switch-to-prev-tab - "C-x M-" #'tab-line-move-tab-backward - "C-x " #'tab-line-switch-to-next-tab - "C-x C-" #'tab-line-switch-to-next-tab - "C-x M-" #'tab-line-move-tab-forward) + :parent ctl-x-map + "" #'tab-line-switch-to-prev-tab + "C-" #'tab-line-switch-to-prev-tab + "M-" #'tab-line-move-tab-backward + "" #'tab-line-switch-to-next-tab + "C-" #'tab-line-switch-to-next-tab + "M-" #'tab-line-move-tab-forward) (defvar-keymap tab-line-switch-repeat-map :doc "Keymap to repeat tab/buffer cycling. Used in `repeat-mode'." From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 28 15:08:12 2025 Received: (at 79323) by debbugs.gnu.org; 28 Aug 2025 19:08:12 +0000 Received: from localhost ([127.0.0.1]:40072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1urhym-0008AA-0d for submit@debbugs.gnu.org; Thu, 28 Aug 2025 15:08:12 -0400 Received: from mout-p-201.mailbox.org ([2001:67c:2050:0:465::201]:46780) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1urhyh-00087x-FL for 79323@debbugs.gnu.org; Thu, 28 Aug 2025 15:08:09 -0400 Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4cCWBN4Kpvz9tdm; Thu, 28 Aug 2025 21:07:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; t=1756408076; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=cLT8cvs/HRRh8HFDpyDZm0uxXOuTv4GIPSHy8Dh4Zfg=; b=dScXHKmyfqHOr5XE+RLduuHkpyI/opGtWkPaRIAutf7m8qDHlAMdcbuIXO4dGLVLl0Ydcr NmaXRUKWbk5JCWPUyhm347x/qlV5e88Bw6M59nHj7xS5/Kwz0mcgRPSqsM0RNrbFTruo4F 3WSt48g6CKzBgq0mB0d6mxkusk4S7uroguJU4a9vrmH+FHbyMhGtXk+AnNDUu3uuu05fmL zP2hfB7xQD8l8Zw5SaN1Qeak4grJCnDuytohgQtnTBRBXZZ9//f2Fwtc/Fh8pVyQDX/6M6 KiqAz0MUDxrTTh6EMOG1Q8AiSVcrBz/YN49K/nRsycFiEvWRGtW+dikCeMJw/Q== From: Juri Linkov To: Scott Bell Subject: Re: bug#79323: 30.2; Control-X-prefix not remapable In-Reply-To: <87349b5l8e.fsf@mail.linkov.net> Organization: LINKOV.NET References: <7EB13652-1CB9-4DAD-9823-41A268D26C77@me.com> <87349b5l8e.fsf@mail.linkov.net> Date: Thu, 28 Aug 2025 22:07:20 +0300 Message-ID: <87tt1r4653.fsf@mail.linkov.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 79323 Cc: 79323@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > (defvar-keymap tab-line-mode-map > :doc "Keymap for keys of `tab-line-mode'." > + :parent ctl-x-map > + "" #'tab-line-switch-to-prev-tab > + "C-" #'tab-line-switch-to-prev-tab > + "M-" #'tab-line-move-tab-backward > + "" #'tab-line-switch-to-next-tab > + "C-" #'tab-line-switch-to-next-tab > + "M-" #'tab-line-move-tab-forward) Actually, this doesn't work. And this doesn't work too: diff --git a/lisp/tab-line.el b/lisp/tab-line.el index 7caae8bc2c1..b9eb3b967c7 100644 --- a/lisp/tab-line.el +++ b/lisp/tab-line.el @@ -1279,12 +1279,13 @@ tab-line-event-start (defvar-keymap tab-line-mode-map :doc "Keymap for keys of `tab-line-mode'." - "C-x " #'tab-line-switch-to-prev-tab - "C-x C-" #'tab-line-switch-to-prev-tab - "C-x M-" #'tab-line-move-tab-backward - "C-x " #'tab-line-switch-to-next-tab - "C-x C-" #'tab-line-switch-to-next-tab - "C-x M-" #'tab-line-move-tab-forward) + :prefix 'ctl-x-map + "" #'tab-line-switch-to-prev-tab + "C-" #'tab-line-switch-to-prev-tab + "M-" #'tab-line-move-tab-backward + "" #'tab-line-switch-to-next-tab + "C-" #'tab-line-switch-to-next-tab + "M-" #'tab-line-move-tab-forward) Probably there is no way to do this with 'defvar-keymap'? This leaves only one solution with (define-key ctl-x-map ... From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 28 15:17:04 2025 Received: (at 79323) by debbugs.gnu.org; 28 Aug 2025 19:17:04 +0000 Received: from localhost ([127.0.0.1]:40103 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uri7M-00015V-8t for submit@debbugs.gnu.org; Thu, 28 Aug 2025 15:17:04 -0400 Received: from mout-p-101.mailbox.org ([2001:67c:2050:0:465::101]:51388) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uri7H-00013X-Ha for 79323@debbugs.gnu.org; Thu, 28 Aug 2025 15:17:01 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4cCWNc6Zp0z9tCY; Thu, 28 Aug 2025 21:16:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; t=1756408608; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=0qMgJScweFI4eJv08VWn2Ujj6Yh6IOcVFgaKrHvMv5E=; b=ChCkumkkeP2eHf4Ssd30kLPLBBCszkJqdLMzDOcMHqQqWsUIiDFr0M6DaZZX+iSPsuFtbE LaxDz9dofO3wOsykFL0Scy7Q7Fj03aCRWMvVpuscLm+dIrRk5Garh3/SmAV/MN+LHY3sck KHwpVpNdAxQxcDErXjEuXwlUkvEGX3c84+StucTCIcTRqi1j8loWgATJrta69/KLK5lfaj hvEPFCvn9rXj4uJXYLGQ2tDCw8mrQEfReLrQZ5IhpT3Cl920cNmsuhr5ImmhQyrI5n49A4 vemrpwoUGbhczH54X/moVu/QKtB3zrV84cYRpY0PWe4hc9RxP/Jdt4pw54M4Cw== From: Juri Linkov To: Scott Bell Subject: Re: bug#79323: 30.2; Control-X-prefix not remapable In-Reply-To: <87tt1r4653.fsf@mail.linkov.net> Organization: LINKOV.NET References: <7EB13652-1CB9-4DAD-9823-41A268D26C77@me.com> <87349b5l8e.fsf@mail.linkov.net> <87tt1r4653.fsf@mail.linkov.net> Date: Thu, 28 Aug 2025 22:13:30 +0300 Message-ID: <87jz2n45rd.fsf@mail.linkov.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 79323 Cc: 79323@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > Probably there is no way to do this with 'defvar-keymap'? > This leaves only one solution with > > (define-key ctl-x-map ... I meant this patch: diff --git a/lisp/tab-line.el b/lisp/tab-line.el index 7caae8bc2c1..b1f097effd4 100644 --- a/lisp/tab-line.el +++ b/lisp/tab-line.el @@ -1277,14 +1277,12 @@ tab-line-event-start -(defvar-keymap tab-line-mode-map - :doc "Keymap for keys of `tab-line-mode'." - "C-x " #'tab-line-switch-to-prev-tab - "C-x C-" #'tab-line-switch-to-prev-tab - "C-x M-" #'tab-line-move-tab-backward - "C-x " #'tab-line-switch-to-next-tab - "C-x C-" #'tab-line-switch-to-next-tab - "C-x M-" #'tab-line-move-tab-forward) +(define-key ctl-x-map [left] #'tab-line-switch-to-prev-tab) +(define-key ctl-x-map [C-left] #'tab-line-switch-to-prev-tab) +(define-key ctl-x-map [M-left] #'tab-line-move-tab-backward) +(define-key ctl-x-map [right] #'tab-line-switch-to-next-tab) +(define-key ctl-x-map [C-right] #'tab-line-switch-to-next-tab) +(define-key ctl-x-map [M-right] #'tab-line-move-tab-forward) But this will throw away all user keys customized in 'tab-line-mode-map' :-( From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 29 03:09:01 2025 Received: (at 79323) by debbugs.gnu.org; 29 Aug 2025 07:09:01 +0000 Received: from localhost ([127.0.0.1]:41526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1urtEK-0001ch-5g for submit@debbugs.gnu.org; Fri, 29 Aug 2025 03:09:01 -0400 Received: from mout-p-101.mailbox.org ([2001:67c:2050:0:465::101]:57908) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1urtEH-0001b7-2d for 79323@debbugs.gnu.org; Fri, 29 Aug 2025 03:08:58 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4cCqB706VCz9t29; Fri, 29 Aug 2025 09:08:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; t=1756451327; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=TKZD0TK7sRFkVuuvRIkLvkHvkOv+FRdU2e7tmZG426M=; b=OYA3Vx/038GWsyb3oGGAY7my6SqtCLGRp4/iBZf1KkFbr4Z+cgtcZCT/mOx9TRDUEVg80S WLINlIrzyuUSW0DsBbbaLFB/GBZPnmIC97UtvZLMyFaJMLu7JXnjD0XopuKAFVwWMWsN3r 8UsUWQI8RmcEyTugJW1XcEa68s8q0D6Totl8PAsCl0jF0xMMU+VVYFmVpQVwvhEWOqNz+k bywp0bLEV3y0Yrpr+H58JLb6MdywtogwtYTOH0ox7vkdARhjEnbmu/UsNFS+iMx6bKQ0vv CRheKSWualcvaxFb0xcP1uDycEYDm9tXwYHfbavCfbnYqNH6sl3YAItrc+sVJA== Authentication-Results: outgoing_mbo_mout; dkim=none; spf=pass (outgoing_mbo_mout: domain of juri@linkov.net designates 2001:67c:2050:b231:465::2 as permitted sender) smtp.mailfrom=juri@linkov.net From: Juri Linkov To: =?iso-8859-1?Q?St=E9phane?= Marks Subject: Re: bug#79323: 30.2; Control-X-prefix not remapable In-Reply-To: Organization: LINKOV.NET References: <7EB13652-1CB9-4DAD-9823-41A268D26C77@me.com> Date: Fri, 29 Aug 2025 09:57:17 +0300 Message-ID: <87ecsufvx6.fsf@mail.linkov.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Rspamd-Queue-Id: 4cCqB706VCz9t29 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 79323 Cc: Scott Bell , 79323@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain > If I were a `tab-line` user, I suppose we would have done the same there as > we did in `tab-bar. See master `tab-bar-define-keys` which I bind to nil > as I manage my own bindings. Thanks for the good idea, this should work: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=tab-line-define-keys.patch diff --git a/lisp/tab-line.el b/lisp/tab-line.el index 7caae8bc2c1..aba88d8e8f5 100644 --- a/lisp/tab-line.el +++ b/lisp/tab-line.el @@ -1277,14 +1277,48 @@ tab-line-event-start (event-start event))) +(defcustom tab-line-define-keys t + "Define specific tab-line key bindings. +If t, the default, key mappings for switching and moving tabs +are defined. If nil, do not define any key mappings." + :type 'boolean + :initialize #'custom-initialize-default + :set (lambda (sym val) + (tab-line--undefine-keys) + (set-default sym val) + ;; Enable the new keybindings + (tab-line--define-keys)) + :group 'tab-line + :version "31.1") + +(defun tab-line--define-keys () + "Install key bindings to switch between tabs if so configured." + (when tab-line-define-keys + (when (eq (lookup-key ctl-x-map [left]) 'previous-buffer) + (define-key ctl-x-map [left] 'tab-line-switch-to-prev-tab)) + (when (eq (lookup-key ctl-x-map [C-left]) 'previous-buffer) + (define-key ctl-x-map [C-left] 'tab-line-switch-to-prev-tab)) + (unless (lookup-key ctl-x-map [M-left]) + (define-key ctl-x-map [M-left] 'tab-line-move-tab-backward)) + (when (eq (lookup-key ctl-x-map [right]) 'next-buffer) + (define-key ctl-x-map [right] 'tab-line-switch-to-next-tab)) + (when (eq (lookup-key ctl-x-map [C-right]) 'next-buffer) + (define-key ctl-x-map [C-right] 'tab-line-switch-to-next-tab)) + (unless (lookup-key ctl-x-map [M-right]) + (define-key ctl-x-map [M-right] 'tab-line-move-tab-forward)))) + +(defun tab-line--undefine-keys () + "Uninstall key bindings previously bound by `tab-line--define-keys'." + (when tab-line-define-keys + (define-key ctl-x-map [left] 'previous-buffer) + (define-key ctl-x-map [C-left] 'previous-buffer) + (define-key ctl-x-map [M-left] nil) + (define-key ctl-x-map [right] 'next-buffer) + (define-key ctl-x-map [C-right] 'next-buffer) + (define-key ctl-x-map [M-right] 'next-buffer))) + (defvar-keymap tab-line-mode-map - :doc "Keymap for keys of `tab-line-mode'." - "C-x " #'tab-line-switch-to-prev-tab - "C-x C-" #'tab-line-switch-to-prev-tab - "C-x M-" #'tab-line-move-tab-backward - "C-x " #'tab-line-switch-to-next-tab - "C-x C-" #'tab-line-switch-to-next-tab - "C-x M-" #'tab-line-move-tab-forward) + :doc "Keymap for keys of `tab-line-mode'.") (defvar-keymap tab-line-switch-repeat-map :doc "Keymap to repeat tab/buffer cycling. Used in `repeat-mode'." @@ -1374,7 +1408,10 @@ tab-line-mode--turn-on (define-globalized-minor-mode global-tab-line-mode tab-line-mode tab-line-mode--turn-on :group 'tab-line - :version "27.1") + :version "27.1" + (if tab-line-mode + (tab-line--define-keys) + (tab-line--undefine-keys))) (global-set-key [tab-line down-mouse-3] 'tab-line-context-menu) --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 29 10:48:40 2025 Received: (at 79323) by debbugs.gnu.org; 29 Aug 2025 14:48:40 +0000 Received: from localhost ([127.0.0.1]:42763 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1us0PA-0003DD-11 for submit@debbugs.gnu.org; Fri, 29 Aug 2025 10:48:40 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:59816) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1us0P6-0003C1-N1 for 79323@debbugs.gnu.org; Fri, 29 Aug 2025 10:48:37 -0400 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id F291C1000BC; Fri, 29 Aug 2025 10:48:30 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1756478909; bh=7hob/teZvzyM4nOh4Bo3EupLNmT5P0XSLneNUtiDG3k=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=V12Zqu/bS7eiJNPrro8h5l+S4QdCK/aW8D/aDY+1xqWP4+UtCkJuf0wDlsLrNzydt Zj6GoQwsgA5PvUSDk19hDsoHdUv98Bt3DFtURJWA9PW7A/g2rSGfBF2tB8F5bS2NHK P9tmz0R0T78pUwsxAoef1QLiSZ+jJ+eTDPH2t/YStONuz8FMtblCTdFOkr8VFCkXyK +l7LrQTz0Ir+EzU8tzubVtiZ4oTu319IWbz0PgM3i5dNifoxDRnouI/EUWDUKGOnFW gEABuz5GJbssJ1dxCyrUrgScDDsh1XYZhYW9MnyEcHasdIkFKOAwVtgbc73f5jan/A oVx2N9nunmhWA== Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id E021B10002E; Fri, 29 Aug 2025 10:48:29 -0400 (EDT) Received: from asado (unknown [10.35.229.186]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id D2BFD120572; Fri, 29 Aug 2025 10:48:29 -0400 (EDT) From: Stefan Monnier To: Eli Zaretskii Subject: Re: bug#79323: 30.2; Control-X-prefix not remapable In-Reply-To: <86qzwvsf02.fsf@gnu.org> Message-ID: References: <7EB13652-1CB9-4DAD-9823-41A268D26C77@me.com> <86ecswtw3t.fsf@gnu.org> <1F470D34-11BD-44FC-86F5-4298D5CC4EF5@me.com> <86qzwvsf02.fsf@gnu.org> Date: Fri, 29 Aug 2025 10:48:26 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79323 Cc: Linn Stanton , 79323@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) >> Here is the relevant portion of my .emacs: >> >> (make-local-variable 'overriding-local-map) That doesn't make sense: the buffer that's current while reading `.emacs` is probably not the one for which you want to set `overriding-local-map`. Stefan From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 30 23:50:51 2025 Received: (at 79323) by debbugs.gnu.org; 31 Aug 2025 03:50:51 +0000 Received: from localhost ([127.0.0.1]:51126 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1usZ5e-0005GK-Qk for submit@debbugs.gnu.org; Sat, 30 Aug 2025 23:50:51 -0400 Received: from mail-qt1-x82f.google.com ([2607:f8b0:4864:20::82f]:42034) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1usZ5Z-0005Fq-Pt for 79323@debbugs.gnu.org; Sat, 30 Aug 2025 23:50:48 -0400 Received: by mail-qt1-x82f.google.com with SMTP id d75a77b69052e-4b31201d331so24462801cf.0 for <79323@debbugs.gnu.org>; Sat, 30 Aug 2025 20:50:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1756612240; x=1757217040; darn=debbugs.gnu.org; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=+vH+UXTt2zV0sMSTKuWWD6NmB5LJyFf9ckv5xrg2SKc=; b=FhtnAkxoqi4O89wlWmH9tcbwv0z4L5dX2V8N5nAd1qmn4LDb0zcz4ffrWvCMy8TtIM PHXLpbIxqnYm8dTC91czgKIP1BB2j/xsTgHqGkTv16W9lY0qSD4o1eU0YM6OnfcwvbCa q8/9NPdRmVgXlztTKUYFFoXQ57nE/Mt6TK0zGXawBKL1GveYNKSb52V7/rHnIektWSHs KwA3m9ZPVW4ldmxIiUyH3sKeboeKAXMWaKi0Qf3FR89ETia4xoJUHKUDiZhJ2ZfWWzcK v0u0KdubamN6eFu0PXbFJU7BRZJNVj6Y7nAQYRA0JOxF5jwEjzoOKSmZ+e6oOCsDpreu Vj2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756612240; x=1757217040; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+vH+UXTt2zV0sMSTKuWWD6NmB5LJyFf9ckv5xrg2SKc=; b=HyW2o+KaETEycodAo7cvA7AIIOWTEBSP+VGkymovbU0ZjYc3A0DcJHPuw4HgQmNBYf mjlJQArhGePW6p5BXgmL67YJ9lxW/GhFiYdYg0sXcdIdtsO+41vYoxHCUPyft8IamfzN p3bhzPR9Ph9FCO2nB68mJUS9yVysnL+HAbbWDQNl8vEeJBBWxko6u+c18WkkzWQJtXJs 3xC+6Vkzbx7ddItuftHFBFZK6MPel4hUSCZr/7IAYs0G6hsXeLM5x2L2H7j1jQoEp/K1 wkv25ISxuyg98PRNQXbSoWSg6ITaOGR/QDJg52JmxXKBkgPv0s6dh5P5aDDRgzY1g/zU UiTQ== X-Gm-Message-State: AOJu0Yx1I5ibZJ2vWFKC2WD+FqYIefuOX4szSBc0ymJiON5DuT39fDoO SVgFDJ/aBesAgDY8d1gp9rbSItCxWRDuqHbBJE/Gc64AQ1yWGGN+VQ9J X-Gm-Gg: ASbGncsnA7SzcA4juUQMTP0wiNi6eOWnJySUWUctdY/uimI5ARO7cBaUIPgSDstRrXj jOWqRE2UC1jMJ3PRv/CLYyN4MASp7QqkNhXTfPhyEmHjx+o/VpnSKoWZdMQY5WYx3P7VQgDFqpJ ny0qbYJMwtewUwUfWQVY5behKDA8CzUp5gQMqfK+sb7CQjNf5FyrJ3vuPIERxtcxAlmEc9u28kj OMHA6Z8jS7XcqPEhvIQc698eDbjfhGxnQD0gBr194PH/j3P6WMVDeTSHKRgCZgx3huSwkLdSW/s NKHJYjwpI1yGM6EOPDdK6szuGGk4WD0xtU5ncakY8JccDhAfBj5SzPckJ9Ee+0EBmMvfhRBZljb dMscXp9R7LCTDprDm0cAlgYj0Up5UKuGNlw== X-Google-Smtp-Source: AGHT+IHeXcSESmlOdHdYYKcCYye0/QTi1/apb9JPoSEgnKwuaOhRnhXIJSMYJ8giuWLPJRb00K6k3A== X-Received: by 2002:a05:622a:5c90:b0:4b1:1109:6090 with SMTP id d75a77b69052e-4b31d80deefmr41771371cf.4.1756612239904; Sat, 30 Aug 2025 20:50:39 -0700 (PDT) Received: from smtpclient.apple ([72.85.185.24]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-4b30edd2079sm36128921cf.44.2025.08.30.20.50.38 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 30 Aug 2025 20:50:39 -0700 (PDT) From: Howard Melman Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\)) Subject: Re: bug#79323: 30.2; Control-X-prefix not remapable Message-Id: Date: Sat, 30 Aug 2025 23:50:27 -0400 To: juri@linkov.net X-Mailer: Apple Mail (2.3826.700.81) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 79323 Cc: 79323@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Juri Linkov writes: > +(defun tab-line--undefine-keys () > + "Uninstall key bindings previously bound by `tab-line--define-keys'." > + (when tab-line-define-keys > + (define-key ctl-x-map [left] 'previous-buffer) > + (define-key ctl-x-map [C-left] 'previous-buffer) > + (define-key ctl-x-map [M-left] nil) > + (define-key ctl-x-map [right] 'next-buffer) > + (define-key ctl-x-map [C-right] 'next-buffer) > + (define-key ctl-x-map [M-right] 'next-buffer))) I didn't check this, but could you do this instead? (I use this form of define-keymap in other cases.) (defun tab-line--undefine-keys () "Uninstall key bindings previously bound by `tab-line--define-keys'." (when tab-line-define-keys (define-keymap :keymap ctl-x-map [left] 'previous-buffer [C-left] 'previous-buffer [M-left] nil [right] 'next-buffer [C-right] 'next-buffer [M-right] 'next-buffer))) -- Howard From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 31 14:28:24 2025 Received: (at 79323) by debbugs.gnu.org; 31 Aug 2025 18:28:24 +0000 Received: from localhost ([127.0.0.1]:55274 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1usmmt-0002Fw-ND for submit@debbugs.gnu.org; Sun, 31 Aug 2025 14:28:24 -0400 Received: from mout-p-102.mailbox.org ([80.241.56.152]:36460) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1usmmq-0002Fb-Db for 79323@debbugs.gnu.org; Sun, 31 Aug 2025 14:28:22 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4cFL980rzsz9tMv; Sun, 31 Aug 2025 20:28:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; t=1756664892; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=M7jdzI/ec+EXc/HwIjpcB7XpSvWWiKuemhwlMSeGT+s=; b=fO7uZ5ITKZq+3OX42PfuNVO4q7bTY+XR8zE240inUK581MI4WTiiA2H6VSYHlR150mWSo+ 75Ygv0ZbU4EP0hjpQPNpv1dgCudc+nCJ1RRz2Qm7LXR2LF/V5P+kd1ezygi1N0uFWQysis LEqdR2FcuiGutccHEZ/BC3EZWikjTBMthY1NKYvCA2KJO7AdpJ5IwU6noqX2CPn39QH6i2 rIV1DPdRhJymql2ErsJ+mnnlbkcjZsEGHpEHYHjFAPPwpsAb7rqxC6BlgWBbwbyDv2ZcSz CqL72j6c8Se5Pdsl/Z0PA9TheVL+nkxBcRQCJw5eoGeJh4ZJK/i+JClWpAbpLw== From: Juri Linkov To: Howard Melman Subject: Re: bug#79323: 30.2; Control-X-prefix not remapable In-Reply-To: Organization: LINKOV.NET References: Date: Sun, 31 Aug 2025 21:01:33 +0300 Message-ID: <877byje5fm.fsf@mail.linkov.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 79323 Cc: 79323@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > I didn't check this, but could you do this instead? > (I use this form of define-keymap in other cases.) > > (defun tab-line--undefine-keys () > "Uninstall key bindings previously bound by `tab-line--define-keys'." > (when tab-line-define-keys > (define-keymap :keymap ctl-x-map > [left] 'previous-buffer > [C-left] 'previous-buffer > [M-left] nil > [right] 'next-buffer > [C-right] 'next-buffer > [M-right] 'next-buffer))) I tried :parent and :prefix without success, but completely missed :keymap. Thanks for pointing out the correct keyword. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 31 14:28:28 2025 Received: (at 79323) by debbugs.gnu.org; 31 Aug 2025 18:28:28 +0000 Received: from localhost ([127.0.0.1]:55278 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1usmmy-0002GI-2h for submit@debbugs.gnu.org; Sun, 31 Aug 2025 14:28:28 -0400 Received: from mout-p-201.mailbox.org ([80.241.56.171]:40318) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1usmmu-0002Fi-6p; Sun, 31 Aug 2025 14:28:24 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4cFL9C01rTz9tJf; Sun, 31 Aug 2025 20:28:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; t=1756664895; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=FpiLBaZxgseI0eL1xk+w1fjVfCdeGZ2IH1Io+Y0zn/w=; b=GQrV10fPGvRWddT+Af2UfgbSr5/p24Y+KSASr36uV6oR8kD0E0/hi4G8Z9MVMR0Avy2RRl MF7f4by/MOCvulbyipbtQCGGlX94rnnMGNjprS2ujgsSUv2FKB70eaQZM4GZVyVMI2MX+N PzSmyN4CUtIVtMbgZkwSvcIqYGpkLUq11Xe8O5t5pJvgsWINf3FbMHtPBmd3kIW+KzJ+hD mTUqlAkev6ilNz/tUx1wMGUUwk7GBsUTOm5G4y14q3NMznDC/Ck/wdPEJriMJw0CR1jdnU nZMDyCWq/M2FQyHQ0Lk6gYDUf5zUPZtSbgv7x7pMpX8arW0KGErL8fk0WYSxag== From: Juri Linkov To: =?iso-8859-1?Q?St=E9phane?= Marks Subject: Re: bug#79323: 30.2; Control-X-prefix not remapable In-Reply-To: <87ecsufvx6.fsf@mail.linkov.net> Organization: LINKOV.NET References: <7EB13652-1CB9-4DAD-9823-41A268D26C77@me.com> <87ecsufvx6.fsf@mail.linkov.net> Date: Sun, 31 Aug 2025 21:23:58 +0300 Message-ID: <871pore4e9.fsf@mail.linkov.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.7 (-) X-Debbugs-Envelope-To: 79323 Cc: Scott Bell , 79323@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.7 (--) close 79323 31.0.50 thanks >> If I were a `tab-line` user, I suppose we would have done the same there as >> we did in `tab-bar. See master `tab-bar-define-keys` which I bind to nil >> as I manage my own bindings. > > Thanks for the good idea, this should work: > > +(defcustom tab-line-define-keys t So this is pushed now and closed.