From unknown Mon Aug 18 11:16:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7261: emacsclient ignores keyboard-translate in .emacs Resent-From: phillip.wood@talktalk.net Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Oct 2010 14:30:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7261 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 7261@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.128767136726795 (code B ref -1); Thu, 21 Oct 2010 14:30:04 +0000 Received: (at submit) by debbugs.gnu.org; 21 Oct 2010 14:29:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P8w8z-0006y8-M0 for submit@debbugs.gnu.org; Thu, 21 Oct 2010 10:29:26 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P8vbH-0006cu-Ee for submit@debbugs.gnu.org; Thu, 21 Oct 2010 09:54:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8vez-0007hU-Mx for submit@debbugs.gnu.org; Thu, 21 Oct 2010 09:58:26 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,HTML_MESSAGE, MIME_QP_LONG_LINE, RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:52120) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8vez-0007hP-Jl for submit@debbugs.gnu.org; Thu, 21 Oct 2010 09:58:25 -0400 Received: from [140.186.70.92] (port=56579 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8vex-0005sJ-U8 for bug-gnu-emacs@gnu.org; Thu, 21 Oct 2010 09:58:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8vew-0007gb-PY for bug-gnu-emacs@gnu.org; Thu, 21 Oct 2010 09:58:23 -0400 Received: from out1.ip07ir2.opaltelecom.net ([62.24.128.243]:26388) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8vew-0007fz-Ko for bug-gnu-emacs@gnu.org; Thu, 21 Oct 2010 09:58:22 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlMFAE7jv0zO3uJW/2dsb2JhbACDHZBKjSCBQ65akXuEVnQE X-IronPort-AV: E=Sophos;i="4.58,217,1286146800"; d="scan'208";a="465291780" Received: from frr2-l27.sis.aol.com (HELO FRR2-L27) ([206.222.226.86]) by out1.ip07ir2.opaltelecom.net with ESMTP; 21 Oct 2010 14:58:18 +0100 Date: Thu, 21 Oct 2010 09:58:18 -0400 X-MB-Message-Source: WebUI X-MB-Message-Type: User MIME-Version: 1.0 From: phillip.wood@talktalk.net Content-Type: multipart/alternative; boundary="--------MB_8CD3F3F2630190E_C70_1D97A_FRR2-L27./f" X-Mailer: Webmail 32797-STANDARD Received: from 92.23.126.116 by FRR2-L27./f (206.222.226.86) with HTTP (WebMailUI); Thu, 21 Oct 2010 09:58:18 -0400 Message-Id: <8CD3F3F25E8B028-C70-7C55@FRR2-L27./f> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -4.5 (----) X-Mailman-Approved-At: Thu, 21 Oct 2010 10:29:24 -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: -4.5 (----) This is a multi-part message in MIME format. ----------MB_8CD3F3F2630190E_C70_1D97A_FRR2-L27./f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" =0A=20=0A=0A=20I=20am=20using=20emacs=2023.2.1=20in=20X=20under=20Arch=20Linux=20= with=20the=20following=20.emacs=0A=0A;;=20;=20Make=20=E2=80=9CC-t=E2=80=9D=20act= =20like=20=E2=80=9CC-x=E2=80=9D,=0A;;=20;=20so=20it's=20easier=20to=20type=20on=20= Dvorak=20layout=0A=20(keyboard-translate=20?\C-t=20?\C-x)=0A=20(keyboard-transla= te=20?\C-x=20?\C-t)=0A=0AIf=20I=20start=20emacs=20normally=20then=20the=20keys=20= are=20translated.=20If=20I=20start=20emacsclient=20with=20=0A=0AGDK_NATIVE_WINDO= WS=3D1=20emacsclient=20--alternate-editor=3D""=20-c=20=0A=0AThen=20the=20keys=20= are=20not=20translated=20on=20startup,=20but=20I=20can=20translate=20them=20by=20= opening=20my=20.emacs=20file=20and=20running=20eval-region=0A=0AIf=20I=20add=20o= ther=20commands=20to=20.emacs=20they=20are=20executed=20correctly=20but=20I=20st= ill=20don't=20get=20any=20key=20translation.=20This=20bug=20is=20present=20in=20= builds=20with=20both=20lucid=20and=20gtk.=20It=20seems=20really=20weird=20that=20= key=20translation=20breaks=20when=20other=20commands=20in=20.emacs=20are=20ok.=0A= =0A=0A=0A ----------MB_8CD3F3F2630190E_C70_1D97A_FRR2-L27./f Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="utf-8" =0A
=20
=0A
=0A= =0A
=20= I=20am=20using=20emacs=2023.2.1=20in=20X=20under=20Arch=20Linux=20with=20the=20f= ollowing=20.emacs
=0A
=0A;;=20;=20Make=20=E2=80=9CC-t=E2=80=9D=20act=20lik= e=20=E2=80=9CC-x=E2=80=9D,
=0A;;=20;=20so=20it's=20easier=20to=20type=20on=20= Dvorak=20layout
=0A (keyboard-translate=20?\C-t=20?\C-x)
=0A (ke= yboard-translate=20?\C-x=20?\C-t)
=0A
=0AIf=20I=20start=20emacs=20normally= =20then=20the=20keys=20are=20translated.=20If=20I=20start=20emacsclient=20with=20=
=0A
=0AGDK_NATIVE_WINDOWS=3D1=20emacsclient=20--alternate-editor=3D""=20-= c=20
=0A
=0AThen=20the=20keys=20are=20not=20translated=20on=20startup,=20b= ut=20I=20can=20translate=20them=20by=20opening=20my=20.emacs=20file=20and=20runn= ing=20eval-region
=0A
=0AIf=20I=20add=20other=20commands=20to=20.emacs=20t= hey=20are=20executed=20correctly=20but=20I=20still=20don't=20get=20any=20key=20t= ranslation.=20This=20bug=20is=20present=20in=20builds=20with=20both=20lucid=20an= d=20gtk.=20It=20seems=20really=20weird=20that=20key=20translation=20breaks=20whe= n=20other=20commands=20in=20.emacs=20are=20ok.
=0A
=0A
= =0A=0A=0A ----------MB_8CD3F3F2630190E_C70_1D97A_FRR2-L27./f-- From unknown Mon Aug 18 11:16:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7261: Further information References: <8CD3F3F25E8B028-C70-7C55@FRR2-L27./f> In-Reply-To: <8CD3F3F25E8B028-C70-7C55@FRR2-L27./f> Resent-From: phillip.wood@talktalk.net Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Oct 2010 15:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7261 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 7261@debbugs.gnu.org Received: via spool by 7261-submit@debbugs.gnu.org id=B7261.128767407228115 (code B ref 7261); Thu, 21 Oct 2010 15:15:02 +0000 Received: (at 7261) by debbugs.gnu.org; 21 Oct 2010 15:14:32 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P8wqW-0007JM-NR for submit@debbugs.gnu.org; Thu, 21 Oct 2010 11:14:32 -0400 Received: from out1.ip08ir2.opaltelecom.net ([62.24.128.244]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P8wqU-0007JH-KX for 7261@debbugs.gnu.org; Thu, 21 Oct 2010 11:14:23 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlEFAIf2v0zO3uJW/2dsb2JhbACTaI0ggUPBZYVKBA X-IronPort-AV: E=Sophos;i="4.58,217,1286146800"; d="scan'208";a="465349069" Received: from frr2-l27.sis.aol.com (HELO FRR2-L27) ([206.222.226.86]) by out1.ip08ir2.opaltelecom.net with ESMTP; 21 Oct 2010 16:18:12 +0100 Date: Thu, 21 Oct 2010 11:18:12 -0400 X-MB-Message-Source: WebUI X-MB-Message-Type: User MIME-Version: 1.0 From: phillip.wood@talktalk.net Content-Type: multipart/alternative; boundary="--------MB_8CD3F4A4FB66F60_C70_1DEAD_FRR2-L27./f" X-Mailer: Webmail 32797-STANDARD Received: from 92.23.126.116 by FRR2-L27./f (206.222.226.86) with HTTP (WebMailUI); Thu, 21 Oct 2010 11:18:12 -0400 Message-Id: <8CD3F4A4F7167D7-C70-7DB5@FRR2-L27./f> X-Spam-Score: -2.9 (--) 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: -2.3 (--) This is a multi-part message in MIME format. ----------MB_8CD3F4A4FB66F60_C70_1DEAD_FRR2-L27./f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="us-ascii" =0A=20=0A=0A=20If=20I=20start=20emacs=20normally=20and=20then=20start=20the=20se= rver=20with=0A=0AM-x=20server-start=0A=0Athen=20start=20emacsclient=20the=20key=20= translation=20works=20in=20the=20client=20frame.=20The=20problem=20only=20occurs= =20when=20emacsclient=20starts=20the=20server=0A=0A=0A ----------MB_8CD3F4A4FB66F60_C70_1DEAD_FRR2-L27./f Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="us-ascii" =0A
=20
=0A
=0A= =0A
=20= If=20I=20start=20emacs=20normally=20and=20then=20start=20the=20server=20with
= =0A
=0AM-x=20server-start
=0A
=0Athen=20start=20emacsclient=20the=20key= =20translation=20works=20in=20the=20client=20frame.=20The=20problem=20only=20occ= urs=20when=20emacsclient=20starts=20the=20server
=0A
=0A=0A= =0A ----------MB_8CD3F4A4FB66F60_C70_1DEAD_FRR2-L27./f-- From unknown Mon Aug 18 11:16:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7261: emacsclient ignores keyboard-translate in .emacs Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Jul 2012 13:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7261 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: phillip.wood@talktalk.net Cc: 7261@debbugs.gnu.org Received: via spool by 7261-submit@debbugs.gnu.org id=B7261.13426184215259 (code B ref 7261); Wed, 18 Jul 2012 13:34:01 +0000 Received: (at 7261) by debbugs.gnu.org; 18 Jul 2012 13:33:41 +0000 Received: from localhost ([127.0.0.1]:47769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrUNo-0001Ml-Oz for submit@debbugs.gnu.org; Wed, 18 Jul 2012 09:33:41 -0400 Received: from mail-pb0-f44.google.com ([209.85.160.44]:64793) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrUNm-0001Md-S9 for 7261@debbugs.gnu.org; Wed, 18 Jul 2012 09:33:39 -0400 Received: by pbcwy7 with SMTP id wy7so2517146pbc.3 for <7261@debbugs.gnu.org>; Wed, 18 Jul 2012 06:27:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; bh=QYUZeF1Q1wUJuSSu3K1ME8Ifmu5Bwutv4KLZ7zokIcI=; b=Nyp5OcBpgBS0rBQgi2VnMKKuI3kbplzLID2jk7FuAnf5qJj4pXXyGElxVEXdm0gX/1 BvCgGX81CIZEzikk4aQHU9b2ASLwm4mPyYnseHu5ceAaWpOTcr+9jw+rT7lRAriMRKWE h6jVFqM+MwsiXa/t9ceReaBh4yZjOAl+o1+CQTNioQS7iWK64IxVnzIuqbWTAPNrTSdu lFG6LLNUFIAEE01wKsd5n6MeZP9/tjjpHRzIMVrTMz4hG0hPMfFF41F+pbC1G0h/YwAo hX9vvcUxucEvHCC/Nqmxs6jq6NtSzECn7s13zePRuExiK5tYNWPoyrkSh1jQajsh1run vlAA== Received: by 10.68.239.9 with SMTP id vo9mr7811706pbc.41.1342618051932; Wed, 18 Jul 2012 06:27:31 -0700 (PDT) Received: from ulysses (cm162.gamma80.maxonline.com.sg. [202.156.80.162]) by mx.google.com with ESMTPS id gh9sm16216935pbc.20.2012.07.18.06.27.28 (version=SSLv3 cipher=OTHER); Wed, 18 Jul 2012 06:27:30 -0700 (PDT) From: Chong Yidong References: <8CD3F3F25E8B028-C70-7C55@FRR2-L27./f> Date: Wed, 18 Jul 2012 21:27:25 +0800 In-Reply-To: <8CD3F3F25E8B028-C70-7C55@FRR2-L27./f> (phillip wood's message of "Thu, 21 Oct 2010 09:58:18 -0400") Message-ID: <87sjcpdwsi.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.6 (--) 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: -2.6 (--) phillip.wood@talktalk.net writes: > ;; ; Make =E2=80=9CC-t=E2=80=9D act like =E2=80=9CC-x=E2=80=9D, > ;; ; so it's easier to type on Dvorak layout > (keyboard-translate ?\C-t ?\C-x) > (keyboard-translate ?\C-x ?\C-t) > > If I start emacs normally then the keys are translated. If I start > emacsclient with=20 > > GDK_NATIVE_WINDOWS=3D1 emacsclient --alternate-editor=3D"" -c=20 > > Then the keys are not translated on startup, but I can translate them > by opening my .emacs file and running eval-region keyboard-translate only acts on the current terminal, since keyboard-translate-table is a terminal-local variable. I will update the docstring to make this clearer. What you probably want is to do something like (add-hook 'after-make-frame-functions (lambda (f) (with-selected-frame f (keyboard-translate ?\C-t ?\C-x)))) From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 18 09:33:56 2012 Received: (at control) by debbugs.gnu.org; 18 Jul 2012 13:33:56 +0000 Received: from localhost ([127.0.0.1]:47772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrUO4-0001NB-95 for submit@debbugs.gnu.org; Wed, 18 Jul 2012 09:33:56 -0400 Received: from mail-gg0-f172.google.com ([209.85.161.172]:51695) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrUO2-0001N4-EN for control@debbugs.gnu.org; Wed, 18 Jul 2012 09:33:54 -0400 Received: by ggnc4 with SMTP id c4so1518460ggn.3 for ; Wed, 18 Jul 2012 06:27:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type; bh=4Z0+FgQSC9lCy+5XYV7klVuvkd0APKqDGY46GcUSePg=; b=X5JI1k2/kf93aeE9cbD427xOSTa+QK3AJjf+2Tx+HGjdAfmwnjyx5v5fxLoVqep61Y k9bl23J2UGRliZ0qRg07m21xr/5uYP3u3sNYgGwVR2Q8YA7SVPvMqQp5O5Oz+SHGOTHs IBrwl88hTUjx9yzn7oCtOSMDIdc8Z3MUbeoV91pyibi5VdC+qHzJx6V30LLYIgf2FJ63 yCMXTpfWTmQDEpAqg35Lfo9gwEGHciXgtZPhL4kDZDhPsqzyixdFsMz5kYGMUrzHZGmq ooHidxypmyiIUgG4/3oiaq3vlLQMxOs0jRFh5aQdSwqZmhRqzm/HFgruex0h4vBfdVK7 6vXw== Received: by 10.66.72.136 with SMTP id d8mr18269pav.21.1342618067830; Wed, 18 Jul 2012 06:27:47 -0700 (PDT) Received: from ulysses (cm162.gamma80.maxonline.com.sg. [202.156.80.162]) by mx.google.com with ESMTPS id os9sm16212490pbb.62.2012.07.18.06.27.44 (version=SSLv3 cipher=OTHER); Wed, 18 Jul 2012 06:27:46 -0700 (PDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 7261 Date: Wed, 18 Jul 2012 21:27:41 +0800 Message-ID: <87fw8p9p2q.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control 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: -2.6 (--) tags 7261 + notabug close 7261 thanks