From unknown Wed Aug 20 02:46:51 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#5842 <5842@debbugs.gnu.org> To: bug#5842 <5842@debbugs.gnu.org> Subject: Status: Move Control modifier only in Emacs Reply-To: bug#5842 <5842@debbugs.gnu.org> Date: Wed, 20 Aug 2025 09:46:51 +0000 retitle 5842 Move Control modifier only in Emacs reassign 5842 emacs submitter 5842 andrey@fotola.ru severity 5842 wishlist tag 5842 wontfix patch thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 06 07:21:30 2010 Received: (at submit) by debbugs.gnu.org; 6 Apr 2010 11:21:30 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nz6qX-00088g-UE for submit@debbugs.gnu.org; Tue, 06 Apr 2010 07:21:30 -0400 Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nz4hV-0007Ft-Gy for submit@debbugs.gnu.org; Tue, 06 Apr 2010 05:04:02 -0400 Received: from lists.gnu.org ([199.232.76.165]:34064) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Nz4hS-0007Fu-Ea for submit@debbugs.gnu.org; Tue, 06 Apr 2010 05:03:58 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nz4hR-00069n-U1 for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2010 05:03:57 -0400 Received: from [140.186.70.92] (port=53009 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nz4hP-00068z-Tz for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2010 05:03:57 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00, RECEIVED_FROM_WINDOWS_HOST autolearn=no version=3.3.0 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nz4hO-00055D-JE for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2010 05:03:55 -0400 Received: from piter25.dns-rus.net ([91.215.170.25]:49610) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nz4hO-00054h-6E for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2010 05:03:54 -0400 Received: from [109.94.72.14] (helo=geany.lan) by piter25.dns-rus.net with esmtpa (Exim 4.69) (envelope-from ) id 1Nz2SB-0007UO-MH for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2010 10:40:05 +0400 From: andrey@fotola.ru MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19386.55045.788449.550686@geany.lan> Date: Tue, 6 Apr 2010 10:39:01 +0400 To: bug-gnu-emacs@gnu.org Subject: Move Control modifier only in Emacs X-Mailer: VM 8.0.12 under 24.0.50.1 (i686-pc-linux-gnu) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - piter25.dns-rus.net X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - fotola.ru X-detected-operating-system: by eggs.gnu.org: Windows 98 (1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 06 Apr 2010 07:21:28 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) This patch allows to move Control modifier only in Emacs. For example, you can do (setq x-ctrl-keysym 'meta) (setq x-meta-keysym 'ctrl) to swap Control and Meta in Emacs, but not in X Window. diff -ur emacs.orig/src/xterm.c emacs/src/xterm.c --- emacs.orig/src/xterm.c 2010-04-06 09:05:46.000000000 +0400 +++ emacs/src/xterm.c 2010-04-06 10:27:24.644183557 +0400 @@ -315,9 +315,9 @@ /* The keysyms to use for the various modifiers. */ -Lisp_Object Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym, Vx_super_keysym; +Lisp_Object Vx_ctrl_keysym, Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym, Vx_super_keysym; Lisp_Object Vx_keysym_table; -static Lisp_Object Qalt, Qhyper, Qmeta, Qsuper, Qmodifier_value; +static Lisp_Object Qctrl, Qalt, Qhyper, Qmeta, Qsuper, Qmodifier_value; static Lisp_Object Qvendor_specific_keysyms; static Lisp_Object Qlatin_1; @@ -3649,12 +3649,15 @@ struct x_display_info *dpyinfo; unsigned int state; { + EMACS_UINT mod_ctrl = ctrl_modifier; EMACS_UINT mod_meta = meta_modifier; EMACS_UINT mod_alt = alt_modifier; EMACS_UINT mod_hyper = hyper_modifier; EMACS_UINT mod_super = super_modifier; Lisp_Object tem; + tem = Fget (Vx_ctrl_keysym, Qmodifier_value); + if (! EQ (tem, Qnil)) mod_ctrl = XUINT (tem); tem = Fget (Vx_alt_keysym, Qmodifier_value); if (! EQ (tem, Qnil)) mod_alt = XUINT (tem); tem = Fget (Vx_meta_keysym, Qmodifier_value); @@ -3666,7 +3669,7 @@ return ( ((state & (ShiftMask | dpyinfo->shift_lock_mask)) ? shift_modifier : 0) - | ((state & ControlMask) ? ctrl_modifier : 0) + | ((state & ControlMask) ? mod_ctrl : 0) | ((state & dpyinfo->meta_mod_mask) ? mod_meta : 0) | ((state & dpyinfo->alt_mod_mask) ? mod_alt : 0) | ((state & dpyinfo->super_mod_mask) ? mod_super : 0) @@ -3678,6 +3681,7 @@ struct x_display_info *dpyinfo; unsigned int state; { + EMACS_UINT mod_ctrl = ctrl_modifier; EMACS_UINT mod_meta = meta_modifier; EMACS_UINT mod_alt = alt_modifier; EMACS_UINT mod_hyper = hyper_modifier; @@ -3685,6 +3689,8 @@ Lisp_Object tem; + tem = Fget (Vx_ctrl_keysym, Qmodifier_value); + if (! EQ (tem, Qnil)) mod_ctrl = XUINT (tem); tem = Fget (Vx_alt_keysym, Qmodifier_value); if (! EQ (tem, Qnil)) mod_alt = XUINT (tem); tem = Fget (Vx_meta_keysym, Qmodifier_value); @@ -3699,7 +3705,7 @@ | ((state & mod_super) ? dpyinfo->super_mod_mask : 0) | ((state & mod_hyper) ? dpyinfo->hyper_mod_mask : 0) | ((state & shift_modifier) ? ShiftMask : 0) - | ((state & ctrl_modifier) ? ControlMask : 0) + | ((state & mod_ctrl) ? ControlMask : 0) | ((state & mod_meta) ? dpyinfo->meta_mod_mask : 0)); } @@ -11024,6 +11030,8 @@ last_mouse_motion_frame = Qnil; Qmodifier_value = intern_c_string ("modifier-value"); + Qctrl = intern_c_string ("ctrl"); + Fput (Qctrl, Qmodifier_value, make_number (ctrl_modifier)); Qalt = intern_c_string ("alt"); Fput (Qalt, Qmodifier_value, make_number (alt_modifier)); Qhyper = intern_c_string ("hyper"); @@ -11035,30 +11043,37 @@ DEFVAR_LISP ("x-alt-keysym", &Vx_alt_keysym, doc: /* Which keys Emacs uses for the alt modifier. -This should be one of the symbols `alt', `hyper', `meta', `super'. -For example, `alt' means use the Alt_L and Alt_R keysyms. The default -is nil, which is the same as `alt'. */); +This should be one of the symbols `ctrl', `alt', `hyper', `meta', `super'. +For example, `alt' means use the Alt_L and Alt_R keysyms. +The default is nil, which is the same as `alt'. */); Vx_alt_keysym = Qnil; + DEFVAR_LISP ("x-ctrl-keysym", &Vx_ctrl_keysym, + doc: /* Which keys Emacs uses for the ctrl modifier. +This should be one of the symbols `ctrl', `alt', `hyper', `meta', `super'. +For example, `ctrl' means use the Control_L and Control_R keysyms. +The default is nil, which is the same as `ctrl'. */); + Vx_ctrl_keysym = Qnil; + DEFVAR_LISP ("x-hyper-keysym", &Vx_hyper_keysym, doc: /* Which keys Emacs uses for the hyper modifier. -This should be one of the symbols `alt', `hyper', `meta', `super'. -For example, `hyper' means use the Hyper_L and Hyper_R keysyms. The -default is nil, which is the same as `hyper'. */); +This should be one of the symbols `ctrl', `alt', `hyper', `meta', `super'. +For example, `hyper' means use the Hyper_L and Hyper_R keysyms. +The default is nil, which is the same as `hyper'. */); Vx_hyper_keysym = Qnil; DEFVAR_LISP ("x-meta-keysym", &Vx_meta_keysym, doc: /* Which keys Emacs uses for the meta modifier. -This should be one of the symbols `alt', `hyper', `meta', `super'. -For example, `meta' means use the Meta_L and Meta_R keysyms. The -default is nil, which is the same as `meta'. */); +This should be one of the symbols `ctrl', `alt', `hyper', `meta', `super'. +For example, `meta' means use the Meta_L and Meta_R keysyms. +The default is nil, which is the same as `meta'. */); Vx_meta_keysym = Qnil; DEFVAR_LISP ("x-super-keysym", &Vx_super_keysym, doc: /* Which keys Emacs uses for the super modifier. -This should be one of the symbols `alt', `hyper', `meta', `super'. -For example, `super' means use the Super_L and Super_R keysyms. The -default is nil, which is the same as `super'. */); +This should be one of the symbols `ctrl', `alt', `hyper', `meta', `super'. +For example, `super' means use the Super_L and Super_R keysyms. +The default is nil, which is the same as `super'. */); Vx_super_keysym = Qnil; DEFVAR_LISP ("x-keysym-table", &Vx_keysym_table, -- Andrey Astafiev From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 09 03:35:30 2010 Received: (at control) by debbugs.gnu.org; 9 Apr 2010 07:35:30 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O08kU-0003Xi-CV for submit@debbugs.gnu.org; Fri, 09 Apr 2010 03:35:30 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O08kT-0003Xd-8n for control@debbugs.gnu.org; Fri, 09 Apr 2010 03:35:29 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1O08kP-0006Ni-4J; Fri, 09 Apr 2010 03:35:25 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19390.55485.81568.1029@fencepost.gnu.org> Date: Fri, 9 Apr 2010 03:35:25 -0400 From: Glenn Morris To: control Subject: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: red X-Ran: _P%M'F]N\9Q2aZCt{>Ve4BpngVQ^T=%zY!%lq*~0!#Oczz4~0|fLx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.1 (-----) merge 2423 5908 reassign 5860 emacs,ns severity 5910 wishlist severity 5854 wishlist severity 5853 wishlist reassign 5851 emacs,cc-mode tags 5842 patch severity 5842 wishlist severity 5844 wishlist From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 11 10:44:17 2012 Received: (at 5842) by debbugs.gnu.org; 11 Apr 2012 14:44:17 +0000 Received: from localhost ([127.0.0.1]:52217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHymO-0007EP-St for submit@debbugs.gnu.org; Wed, 11 Apr 2012 10:44:17 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:47905) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHymL-0007EG-DI for 5842@debbugs.gnu.org; Wed, 11 Apr 2012 10:44:14 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1SHylA-0006JO-1a; Wed, 11 Apr 2012 16:43:00 +0200 From: Lars Magne Ingebrigtsen To: andrey@fotola.ru Subject: Re: bug#5842: Move Control modifier only in Emacs References: <19386.55045.788449.550686@geany.lan> X-Now-Playing: Hector Zazou & Swara's _In the House of Mirrors_: "Darbari (with Soul Without Rules)" Date: Wed, 11 Apr 2012 16:42:58 +0200 In-Reply-To: <19386.55045.788449.550686@geany.lan> (andrey@fotola.ru's message of "Tue, 6 Apr 2010 10:39:01 +0400") Message-ID: User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1SHylA-0006JO-1a X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1334760180.18696@Tm67Vil2fmVdwDzo6IxHeA X-Spam-Status: No X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 5842 Cc: 5842@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) andrey@fotola.ru writes: > This patch allows to move Control modifier only in Emacs. > For example, you can do > (setq x-ctrl-keysym 'meta) > (setq x-meta-keysym 'ctrl) > to swap Control and Meta in Emacs, but not in X Window. This does make sense, I guess? And there's the precedence with `x-alt-keysym' and friends... On the other hand, stuff like this really ought to be fixed on the X level, I think. Opinions? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 11 13:52:36 2012 Received: (at 5842) by debbugs.gnu.org; 11 Apr 2012 17:52:36 +0000 Received: from localhost ([127.0.0.1]:52452 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SI1ie-00042j-72 for submit@debbugs.gnu.org; Wed, 11 Apr 2012 13:52:36 -0400 Received: from ironport-out.teksavvy.com ([206.248.143.162]:39595) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SI1ic-00042c-D2 for 5842@debbugs.gnu.org; Wed, 11 Apr 2012 13:52:35 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApUIACxOgk9FxL8q/2dsb2JhbABDuCMDgQyBCIIJAQEEAVYjEAs0EhQYDSSIHAW2MothhHkEpEWBXYMD X-IronPort-AV: E=Sophos;i="4.75,391,1330923600"; d="scan'208";a="173408965" Received: from 69-196-191-42.dsl.teksavvy.com (HELO pastel.home) ([69.196.191.42]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 11 Apr 2012 13:51:25 -0400 Received: by pastel.home (Postfix, from userid 20848) id 26B4B58D2B; Wed, 11 Apr 2012 13:51:25 -0400 (EDT) From: Stefan Monnier To: Lars Magne Ingebrigtsen Subject: Re: bug#5842: Move Control modifier only in Emacs Message-ID: References: <19386.55045.788449.550686@geany.lan> Date: Wed, 11 Apr 2012 13:51:25 -0400 In-Reply-To: (Lars Magne Ingebrigtsen's message of "Wed, 11 Apr 2012 16:42:58 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 5842 Cc: andrey@fotola.ru, 5842@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) >> This patch allows to move Control modifier only in Emacs. >> For example, you can do >> (setq x-ctrl-keysym 'meta) >> (setq x-meta-keysym 'ctrl) >> to swap Control and Meta in Emacs, but not in X Window. I would much prefer a patch that's independent of the underlying GUI, so we can use the same config vars under a tty, X11, Windows, ... Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 12 08:32:00 2012 Received: (at 5842) by debbugs.gnu.org; 12 Apr 2012 12:32:00 +0000 Received: from localhost ([127.0.0.1]:53466 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SIJBw-0002hz-7V for submit@debbugs.gnu.org; Thu, 12 Apr 2012 08:32:00 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:33622) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SIJBt-0002hr-UL for 5842@debbugs.gnu.org; Thu, 12 Apr 2012 08:31:58 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1SIJAZ-00034E-Ii; Thu, 12 Apr 2012 14:30:35 +0200 From: Lars Magne Ingebrigtsen To: Stefan Monnier Subject: Re: bug#5842: Move Control modifier only in Emacs References: <19386.55045.788449.550686@geany.lan> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEWGRzs5EBcdCA/7zKr0 vZnprYnJiWxXHR/wi9pIAAACMElEQVQ4jW2ST4+bMBDFZ6uNfY25cK259APA7nklTM6VgunV6pbJ Fa/azNfvG0Noou0okeD9mH/PpvZThBBinAhPXdv2N7VvO4AhRnptzy9t+/4IRoA3fp/ivINuz+iG 9xDP/UOLAk4B4supD7cUBehOA/P8ymm46d2qRyofjMMYz2vzrdIGQuheznuHBxBO57XKJxACvu63 x0cQ/gsGJjmEvrsHQ+Rkq6ZpZL7vMa2ix7+5jrs+Ud3sUX+dw7jpvAN3FPo2xy0APiAeSYisOH+4 A9mQGEPWOVc9gCcMqqqrGu9NUWErwBdREV83O8BIM0C9AQxdwIj1kgFwXkHj3Q102PgKAL1RcMvA gaIt008Aj8Wdrr/QPOtJT3YFlRZCijfT9R54ba7be8O8lirAb60RACOu3JAWWOIbbVsy4A2pi5Ot CVNpDb/5SzZiDbYi9OT/+d7AS108WbhqtyqIj3pBqQFAkgJ3O5FGxBpcdKajFZJN9i47t9g/yOAn QQ+pSnfnRGpZ0u9xmJIrIMPYyrkaLwDPGPayAfUdwCoYnztskbOrCRXgCABZuxCbHkZVqKx3oMRC ljkZOgx20XRk5Fqyy7XV8zR8YKwgK8D3OV+/03giZpPEYKxM2lOTDj+of8XBcRL8dKoStfxiE94g xwsyxNoVIGNmHhKcSkR8ESYdt87YyEBIhCuYCkiENbJufSyjXmC8wGPNwCXByoQ3MrEUWTC1kCse kZ4MaTAvZdC/z+UL8cX/aVIAAAAASUVORK5CYII= X-Now-Playing: Bob Hund's _Sover Aldrig_: "Mer =?iso-8859-1?Q?=C4n_S=E5?= Kan Ingen Bli" Date: Thu, 12 Apr 2012 14:30:34 +0200 In-Reply-To: (Stefan Monnier's message of "Wed, 11 Apr 2012 13:51:25 -0400") Message-ID: User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1SIJAZ-00034E-Ii X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1334838635.64328@QTJkqj++LMT9hdO3EVYEgA X-Spam-Status: No X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 5842 Cc: andrey@fotola.ru, 5842@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Stefan Monnier writes: > I would much prefer a patch that's independent of the underlying GUI, so > we can use the same config vars under a tty, X11, Windows, ... That would be a lot better. Is there a particular reason for why all these other keysum redefinition things (like `x-alt-keysum' and friends) target X particularly? Historical reasons? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 12 10:41:17 2012 Received: (at 5842) by debbugs.gnu.org; 12 Apr 2012 14:41:17 +0000 Received: from localhost ([127.0.0.1]:54397 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SILD2-0006nH-Bi for submit@debbugs.gnu.org; Thu, 12 Apr 2012 10:41:16 -0400 Received: from ironport-out.teksavvy.com ([206.248.143.162]:22761) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SILD0-0006nA-2Z for 5842@debbugs.gnu.org; Thu, 12 Apr 2012 10:41:14 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApUIACxOgk9FxL8q/2dsb2JhbABDuCMDgQyBCIIJAQEEAVYjEAs0EhQYDSSIHAW2MothhHkEpEWBXYMD X-IronPort-AV: E=Sophos;i="4.75,391,1330923600"; d="scan'208";a="173709072" Received: from 69-196-191-42.dsl.teksavvy.com (HELO pastel.home) ([69.196.191.42]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 12 Apr 2012 10:40:00 -0400 Received: by pastel.home (Postfix, from userid 20848) id 36FF359168; Thu, 12 Apr 2012 10:40:00 -0400 (EDT) From: Stefan Monnier To: Lars Magne Ingebrigtsen Subject: Re: bug#5842: Move Control modifier only in Emacs Message-ID: References: <19386.55045.788449.550686@geany.lan> Date: Thu, 12 Apr 2012 10:40:00 -0400 In-Reply-To: (Lars Magne Ingebrigtsen's message of "Thu, 12 Apr 2012 14:30:34 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 5842 Cc: andrey@fotola.ru, 5842@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) >> I would much prefer a patch that's independent of the underlying GUI, so >> we can use the same config vars under a tty, X11, Windows, ... > That would be a lot better. Is there a particular reason for why all > these other keysum redefinition things (like `x-alt-keysum' and friends) > target X particularly? Historical reasons? Probably historical reasons, yes. The fact that we have many such variables for different GUI backends and that none of them are really general indicates that it's just the result of a patchwork of small changes to cover the submitter's particular needs. IOW, not much design in there. Then again of course, maybe it's not as easy to do in a generic way. Stefan From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 28 01:00:03 2016 Received: (at 5842) by debbugs.gnu.org; 28 Feb 2016 06:00:04 +0000 Received: from localhost ([127.0.0.1]:49357 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZuOh-00089f-Ic for submit@debbugs.gnu.org; Sun, 28 Feb 2016 01:00:03 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:48392) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZuOe-000887-Ow for 5842@debbugs.gnu.org; Sun, 28 Feb 2016 01:00:02 -0500 Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aZuOH-0003iK-J1; Sun, 28 Feb 2016 06:59:38 +0100 From: Lars Ingebrigtsen To: andrey@fotola.ru Subject: Re: bug#5842: Move Control modifier only in Emacs References: <19386.55045.788449.550686@geany.lan> Date: Sun, 28 Feb 2016 16:59:33 +1100 In-Reply-To: <19386.55045.788449.550686@geany.lan> (andrey's message of "Tue, 6 Apr 2010 10:39:01 +0400") Message-ID: <87ziultlx6.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1aZuOH-0003iK-J1 X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1457243978.30197@KdY7asBYqB6BsBxZmXiC2w X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 5842 Cc: 5842@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: 0.0 (/) andrey@fotola.ru writes: > This patch allows to move Control modifier only in Emacs. > For example, you can do > (setq x-ctrl-keysym 'meta) > (setq x-meta-keysym 'ctrl) > to swap Control and Meta in Emacs, but not in X Window. [...] > I would much prefer a patch that's independent of the underlying GUI, so > we can use the same config vars under a tty, X11, Windows, ... Is this possible to do on that level? Anyway, I don't really feel that it makes much sense to have these piece meal way of modifying some modifier keys in Emacs, when you can do that directly in X (or whatever GUI you're using), so I'm closing this bug. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 28 01:00:15 2016 Received: (at control) by debbugs.gnu.org; 28 Feb 2016 06:00:15 +0000 Received: from localhost ([127.0.0.1]:49360 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZuOs-0008Kg-Tl for submit@debbugs.gnu.org; Sun, 28 Feb 2016 01:00:15 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:48403) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZuOr-0008J4-GE for control@debbugs.gnu.org; Sun, 28 Feb 2016 01:00:13 -0500 Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aZuOT-0003iU-5O for control@debbugs.gnu.org; Sun, 28 Feb 2016 06:59:49 +0100 Date: Sun, 28 Feb 2016 16:59:40 +1100 Message-Id: <87y4a5tlwz.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #5842 X-MailScanner-ID: 1aZuOT-0003iU-5O X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1457243990.04293@lP2eesz4bzZftk7eSKLhmQ X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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 (/) tags 5842 wontfix close 5842 From unknown Wed Aug 20 02:46:51 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 27 Mar 2016 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator