From unknown Tue Aug 12 03:19:46 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#1003 <1003@debbugs.gnu.org> To: bug#1003 <1003@debbugs.gnu.org> Subject: Status: 23.0.60; set-keyboard-coding-system incompatible with TeX input method Reply-To: bug#1003 <1003@debbugs.gnu.org> Date: Tue, 12 Aug 2025 10:19:46 +0000 retitle 1003 23.0.60; set-keyboard-coding-system incompatible with TeX inpu= t method reassign 1003 emacs submitter 1003 lconrad@laymusic.org severity 1003 normal thanks From lconrad@laymusic.org Fri Sep 19 09:12:43 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.3 required=4.0 tests=BAYES_00,FH_FROMEML_NOTLD, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 19 Sep 2008 16:12:44 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8JGCete031473 for ; Fri, 19 Sep 2008 09:12:41 -0700 Received: from mail.gnu.org ([199.232.76.166]:48502 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KgiZ7-0003pS-2q for emacs-pretest-bug@gnu.org; Fri, 19 Sep 2008 12:10:41 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Kgiav-0002Yk-Kv for emacs-pretest-bug@gnu.org; Fri, 19 Sep 2008 12:12:36 -0400 Received: from qmta10.westchester.pa.mail.comcast.net ([76.96.62.17]:49497) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kgiav-0002YW-EX for emacs-pretest-bug@gnu.org; Fri, 19 Sep 2008 12:12:33 -0400 Received: from OMTA06.westchester.pa.mail.comcast.net ([76.96.62.51]) by QMTA10.westchester.pa.mail.comcast.net with comcast id GaFb1a00F16LCl05AgCYXf; Fri, 19 Sep 2008 16:12:32 +0000 Received: from clavichord ([98.216.50.33]) by OMTA06.westchester.pa.mail.comcast.net with comcast id GgCX1a00G0iyclN3SgCXNl; Fri, 19 Sep 2008 16:12:32 +0000 X-Authority-Analysis: v=1.0 c=1 a=O2ShvTdlkWQA:10 a=eCuNmPtsSokA:10 a=TyGlp0-VkFUA:10 a=c1GobjQgzx-E4fumoVEA:9 a=AyqaNbGg8CH7h8b1UuJoMK86LXUA:4 a=BZOwtjCc6HsA:10 From: lconrad@clavichord (Laura Conrad) To: emacs-pretest-bug@gnu.org Subject: 23.0.60; set-keyboard-coding-system incompatible with TeX input method Date: Fri, 19 Sep 2008 12:11:17 -0400 (EDT) Reply-to: lconrad@laymusic.org Message-Id: <20080919161117.DE08EE3CD9A@clavichord> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. in TeX input mode, I expect to be able to type =C3=A9nt by typing "\'ent". When I set: (set-keyboard-coding-system 'utf-8) typing those four characters gives me some Chinese character. This is with the ubuntu Linux 8.04 emacs-snapshot package. From monnier@iro.umontreal.ca Sat Sep 20 13:45:53 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.1 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1003) by emacsbugs.donarmstrong.com; 20 Sep 2008 20:45:53 +0000 Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8KKjlVI024706 for <1003@emacsbugs.donarmstrong.com>; Sat, 20 Sep 2008 13:45:51 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiMFACL+1EjO+KDT/2dsb2JhbACBXbQ4gWWBAw X-IronPort-AV: E=Sophos;i="4.32,438,1217822400"; d="scan'208";a="27157951" Received: from 206-248-160-211.dsl.teksavvy.com (HELO ceviche.home) ([206.248.160.211]) by ironport2-out.teksavvy.com with ESMTP; 20 Sep 2008 16:45:42 -0400 Received: by ceviche.home (Postfix, from userid 20848) id EA6FAB40B1; Sat, 20 Sep 2008 16:45:41 -0400 (EDT) From: Stefan Monnier To: lconrad@laymusic.org Cc: 1003@debbugs.gnu.org Subject: Re: bug#1003: 23.0.60; set-keyboard-coding-system incompatible with TeX input method Message-ID: References: <20080919161117.DE08EE3CD9A@clavichord> Date: Sat, 20 Sep 2008 16:45:41 -0400 In-Reply-To: <20080919161117.DE08EE3CD9A@clavichord> (Laura Conrad's message of "Fri, 19 Sep 2008 12:11:17 -0400 (EDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable > in TeX input mode, I expect to be able to type =E9nt by typing "\'ent". > When I set: > (set-keyboard-coding-system 'utf-8) > typing those four characters gives me some Chinese character. IIUC the problem is that the input method processing is done before the keyboard-coding-system processing. So the sequence "\ ' e n t" is turned by the input method into "=E9 n t" (i.e. 233 110 116) which is then interpreted as a utf-8 sequence which happens to give you a chinese character. In Emacs-22, bytes such as 233 were different from any other char, so such confusion wasn't possible, which worked around the underlying ordering problem. A real fix would probably be to perform keyboard-coding-system decoding earlier, but it's a non trivial change which may introduce its own set of problems. Maybe another way to fix the problem is to let quail emit not just =E9 but the sequence [im-char =E9] and then have input-decode-map strip the `im-char' pseudo event; this would protect those im-generated chars from being processed by the keyboard-coding-system processing. Handa? Stefan From handa@m17n.org Sun May 24 21:43:55 2009 Received: (at 1003) by emacsbugs.donarmstrong.com; 25 May 2009 04:43:56 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.8 required=4.0 tests=AWL,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8,SPF_HELO_PASS autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mx1.aist.go.jp (mx1.aist.go.jp [150.29.246.133]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n4P4hodH012069 for <1003@emacsbugs.donarmstrong.com>; Sun, 24 May 2009 21:43:51 -0700 Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id n4P4hl0d022960; Mon, 25 May 2009 13:43:47 +0900 (JST) env-from (handa@m17n.org) Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id n4P4hlEC004696; Mon, 25 May 2009 13:43:47 +0900 (JST) env-from (handa@m17n.org) Received: by smtp1.aist.go.jp with ESMTP id n4P4hlU8005792; Mon, 25 May 2009 13:43:47 +0900 (JST) env-from (handa@m17n.org) Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1M8S2m-00062o-Sf; Mon, 25 May 2009 13:44:12 +0900 From: Kenichi Handa To: monnier@iro.umontreal.ca CC: lconrad@laymusic.org, 1003@debbugs.gnu.org Subject: bug#1003: 23.0.60; set-keyboard-coding-system incompatible with TeX input method MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-Id: Date: Mon, 25 May 2009 13:44:12 +0900 I've just noticed that this bug is not yet closed. Laura Conrad wrote: > in TeX input mode, I expect to be able to type ént by typing "\'ent". > When I set: > > (set-keyboard-coding-system 'utf-8) > > typing those four characters gives me some Chinese character. > > This is with the ubuntu Linux 8.04 emacs-snapshot package. It seems that this bug is now fixed by Stefan's workaround patch accompanied with this comment: ;; Invalid utf-8 sequence. Might be because Quail got involved ;; in-between and the bytes we thought we were reading were actually ;; latin-1 chars. Let's presume that `event' is the second "byte", ;; i.e. there weren't any "apprently correct" between `lead' and ;; `event': it's easy to recover in this case, and the more general ;; case seems pretty unlikely. ;; FIXME: We should really do encoded-kbd decoding before processing ;; input-methods. The strange thing is that the date of the orignal bug report is 2008-09-19 but the above patch was installed on 2008-06-15. Laura, do you still see the problem? Stefan Monnier wrote: > A real fix would probably be to perform keyboard-coding-system decoding > earlier, but it's a non trivial change which may introduce its own set > of problems. I vaguely remember that I sent a patch to do that long ago, but it seems that the discussion fizzled out without reaching any conclusion. > Maybe another way to fix the problem is to let quail emit not just é but > the sequence [im-char é] and then have input-decode-map strip the > `im-char' pseudo event; this would protect those im-generated chars from > being processed by the keyboard-coding-system processing. That's one idea, but seems tricky. I prefer the first method. --- Kenichi Handa handa@m17n.org From lconrad@laymusic.org Mon May 25 04:01:42 2009 Received: (at 1003) by emacsbugs.donarmstrong.com; 25 May 2009 11:01:42 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from QMTA10.westchester.pa.mail.comcast.net (qmta10.westchester.pa.mail.comcast.net [76.96.62.17]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n4PB1cAL007728 for <1003@emacsbugs.donarmstrong.com>; Mon, 25 May 2009 04:01:39 -0700 Received: from OMTA10.westchester.pa.mail.comcast.net ([76.96.62.28]) by QMTA10.westchester.pa.mail.comcast.net with comcast id vmhh1b00E0cZkys5An1ZPv; Mon, 25 May 2009 11:01:33 +0000 Received: from clavichord ([67.186.134.116]) by OMTA10.westchester.pa.mail.comcast.net with comcast id vn1Y1b0092WqrpP3Wn1ZrB; Mon, 25 May 2009 11:01:33 +0000 From: Laura Conrad To: Kenichi Handa Cc: monnier@iro.umontreal.ca, 1003@debbugs.gnu.org Subject: Re: bug#1003: 23.0.60; set-keyboard-coding-system incompatible with TeX input method References: X-Face: +h=WU/v,Ro}5P&TcQ=|qp9>.kdKUH!`7s(WC)X/15|Nd{D!]zW(^%[Sp(}0v"O|b=C9z}*4@)x_C2fgA~Wi&@/V"f6vs*B.1`(};T=]?M6O;HvGS Date: Mon, 25 May 2009 07:01:31 -0400 In-Reply-To: (Kenichi Handa's message of "Mon, 25 May 2009 13:44:12 +0900") Message-ID: <87k545la44.fsf@laymusic.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >>>>> "Kenichi" == Kenichi Handa writes: Kenichi> The strange thing is that the date of the orignal bug report Kenichi> is 2008-09-19 but the above patch was installed on Kenichi> 2008-06-15. Laura, do you still see the problem? No. Not on ubuntu 9.04 with GNU Emacs 23.0.91.1. The report was made when I upgraded to Ubuntu 8.04, with whatever version their emacs-snapshot was. Thanks for the fix. -- Laura (mailto:lconrad@laymusic.org http://www.laymusic.org/ ) (617) 661-8097 233 Broadway, Cambridge, MA 02139 Jesus, I'm Thirsty. (Danku) 'Who's getting the beer?' Judas stepped up to the bar. He'd had a windfall! Danny Reynolds From handa@m17n.org Wed Jul 1 04:49:30 2009 Received: (at 1003) by emacsbugs.donarmstrong.com; 1 Jul 2009 11:49:30 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.8 required=4.0 tests=AWL,FVGT_m_MULTI_ODD, HAS_BUG_NUMBER,IMPRONONCABLE_2,MURPHY_DRUGS_REL8,SPF_HELO_PASS autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mx1.aist.go.jp (mx1.aist.go.jp [150.29.246.133]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n61BnPem011303 for <1003@emacsbugs.donarmstrong.com>; Wed, 1 Jul 2009 04:49:27 -0700 Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id n61BnN2A006162; Wed, 1 Jul 2009 20:49:23 +0900 (JST) env-from (handa@m17n.org) Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id n61BnNo4027449; Wed, 1 Jul 2009 20:49:23 +0900 (JST) env-from (handa@m17n.org) Received: by smtp2.aist.go.jp with ESMTP id n61BnMNG009293; Wed, 1 Jul 2009 20:49:22 +0900 (JST) env-from (handa@m17n.org) Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1MLyJW-0003ry-CZ; Wed, 01 Jul 2009 20:49:22 +0900 From: Kenichi Handa To: Stefan Monnier CC: lconrad@laymusic.org, 1003@debbugs.gnu.org In-reply-to: (message from Stefan Monnier on Mon, 25 May 2009 09:47:57 -0400) Subject: Re: bug#1003: 23.0.60; set-keyboard-coding-system incompatible with TeX input method References: Message-Id: Date: Wed, 01 Jul 2009 20:49:22 +0900 In article , Stefan Monnier writes: >>> A real fix would probably be to perform keyboard-coding-system decoding >>> earlier, but it's a non trivial change which may introduce its own set >>> of problems. > > I vaguely remember that I sent a patch to do that long ago, > > but it seems that the discussion fizzled out without > > reaching any conclusion. > I also had a vague feeling of seeing such a thing, but couldn't find it > in the archives, so I figured I was confused. > If not, please try and remember to install it for Emacs-23.2. I've just installed the change. As encoded-kb.el is now not necessary, I deleted that file. --- Kenichi Handa handa@m17n.org From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 21 02:51:32 2010 Received: (at control) by debbugs.gnu.org; 21 Jan 2010 07:51:33 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NXrpE-000607-Jk for submit@debbugs.gnu.org; Thu, 21 Jan 2010 02:51:32 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NXrpC-0005zw-KE for control@debbugs.gnu.org; Thu, 21 Jan 2010 02:51:30 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1NXrp9-0002qN-5l; Thu, 21 Jan 2010 02:51:27 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19288.1919.63653.823920@gargle.gargle.HOWL> Date: Thu, 21 Jan 2010 02:51:27 -0500 From: Glenn Morris To: control Subject: control X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: control 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: -5.0 (-----) close 1003 unarchive 1270 unmerge 1270 From unknown Tue Aug 12 03:19:46 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 18 Feb 2010 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator