From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: michael.cadilhac@lrde.org (=?iso-8859-1?Q?Micha=EBl?= Cadilhac) Newsgroups: gmane.emacs.devel Subject: ucs input method bug. Date: Thu, 07 Sep 2006 13:31:31 +0200 Organization: Epita/LRDE Message-ID: <87k64frjzg.fsf@lrde.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0656056228==" X-Trace: sea.gmane.org 1157628750 30138 80.91.229.2 (7 Sep 2006 11:32:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Sep 2006 11:32:30 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 07 13:32:29 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GLI7I-0000sk-P9 for ged-emacs-devel@m.gmane.org; Thu, 07 Sep 2006 13:32:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GLI7I-0001Ns-79 for ged-emacs-devel@m.gmane.org; Thu, 07 Sep 2006 07:32:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GLI6S-0008Ea-36 for emacs-devel@gnu.org; Thu, 07 Sep 2006 07:31:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GLI6R-0008BW-Cf for emacs-devel@gnu.org; Thu, 07 Sep 2006 07:31:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GLI6R-0008Av-0M for emacs-devel@gnu.org; Thu, 07 Sep 2006 07:31:27 -0400 Original-Received: from [62.39.139.2] (helo=kualalumpur.lrde.epita.fr) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GLI6n-0003Py-1y for emacs-devel@gnu.org; Thu, 07 Sep 2006 07:31:49 -0400 Original-Received: from mahaena.lrde.epita.fr ([192.168.101.66] helo=mahaena.lrde) by kualalumpur.lrde.epita.fr with esmtp (Exim 4.50) id 1GLI6P-0001iY-HK for emacs-devel@gnu.org; Thu, 07 Sep 2006 13:31:25 +0200 Original-To: emacs-devel@gnu.org Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEVWPh+Tai+5r5YKBAEU CQQzGAtiq7gjAAACR0lEQVQ4jW2UzW7lIAyFzVW8BzTZX5DmCZLuU2H2pMXv/ypzbK7aSh2kRCRf /HNsE0q7Sg+RQ7JFKaqtrRNAl5AIIKe6D5DBqgbmUAe5hBI1wIRFAHjeM0RKtZi7XVVEpb0BSNfA IddChChT5DildSLWOWhY5IEItMnncZgFcUAc/5jjwCMsDosRNdfKPDTFEdVBW8C+RebDb4N5Orio RhM1+11IJyx0ng2+LryFHBMPDQDYHrY6IfGuU3ouiXTQNE8LIJDKOWpNxERTFrggQwRPd7USUsTW fJ0XbR3bdj5KgBYy4SACpxDeUYEUAzLmtJ1iIrD2gczPq8Qomjhsh/RjGIgKIO8p7NITjwlx7WID nsnQe5NeuTvoBpi8LX6vLLOh5icjOHqBypgnuSp7M+RE1agbQKHQr5E2z1WObhYW4gMqeGQL7joM jCf2DxSk5ApADSYHfFF4igNfJZL1z0GKP0FN02s4XiDXr7V5P94W6I9v8MfBOQDmfwAaVYt+x8Da v4DJvX8BAdin3Knm5yMZYAO4ABDkDniZLLfi4P40gP1F0TPGZOu0CGwA1lcowxwlGy6A9705mD0V jHCxwVZT/hYdRJVUGZNlx6l7ScQBTluof6Wj6bsPYlvpwoTvXFD9gHPn2TZPF3ntI2ecxVrW5MrV XiCie5EeNa7BlWu/HNSkprDUva163PHxAv5jyGV7gVzyAghSKOTnat85UIYFICXbD2NV9rRiv0BS tKQsg6OHH4A15F1WW+UHKHHa32h6aPnAm3/pUcWp+WYnTQAAAABJRU5ErkJggg== User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:59505 Archived-At: --===============0656056228== Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Test case: emacs -Q M-x set-input-method RET ucs RET Type =AB ut =BB it will produce =AB tut =BB. IMO, ucs strives to be Emacs by doing the command of the faulty (unexpected) key (here =AB t =BB) while it is not needed. I propose just to remove the part that does that. --=-=-= Content-Type: text/x-patch; charset=iso-8859-1 Content-Disposition: inline; filename=uni-input.patch Content-Transfer-Encoding: quoted-printable Index: leim/quail/uni-input.el =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /sources/emacs/emacs/leim/quail/uni-input.el,v retrieving revision 1.11 diff -c -r1.11 uni-input.el *** leim/quail/uni-input.el 20 Apr 2006 08:38:14 -0000 1.11 =2D-- leim/quail/uni-input.el 7 Sep 2006 11:25:07 -0000 *************** *** 100,110 **** (progn (push key events) (ucs-input-insert-char key)) =2D (let ((last-command-char key) =2D (current-prefix-arg)) =2D (condition-case err =2D (call-interactively (key-binding seq)) =2D (quail-error (message "%s" (cdr err)) (beep)))) (quail-delete-region) (throw 'non-digit (append (reverse events) (listify-key-sequence seq)))))) =2D-- 100,105 ---- Index: leim/ChangeLog =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /sources/emacs/emacs/leim/ChangeLog,v retrieving revision 1.193 diff -c -0 -r1.193 ChangeLog *** leim/ChangeLog 12 Jul 2006 00:33:19 -0000 1.193 =2D-- leim/ChangeLog 7 Sep 2006 11:25:15 -0000 *************** *** 0 **** =2D-- 1,6 ---- + 2006-09-06 Micha=EBl Cadilhac +=20 + * quail/uni-input.el (ucs-input-method): Don't make the action of + a key not in [0-9a-zA-Z] when it was expected to be. Let the Emacs + mechanism do it. +=20 --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable (Note: ucs input method triggered the bug I proposed to fix in the thread =AB The order input events are processed. =BB : just type =AB uabt = =BB in a flyspell-ized buffer, and it will introduce the bug.) =2D-=20 | Micha=EBl `Micha' Cadilhac | Un certain Blaise Pascal = | | Epita/LRDE Promo 2007 | etc... etc... = | | http://www.lrde.org/~cadilh_m | -- Pr=E9vert (Les paris stupides) = | `-- - JID: micha@amessage.be --' - -= -' --=-=-=-- --==-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFFAAMTZYNf4qobZ7kRAl+NAKDTd4AemGaZRohkCyT6ZPR85r8zwACgmLzb dzJzOoH1vTmjI4xqIRilwlo= =Laic -----END PGP SIGNATURE----- --==-=-=-- --===============0656056228== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --===============0656056228==--