unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* ucs input method bug.
@ 2006-09-07 11:31 Michaël Cadilhac
  2006-09-14  2:46 ` Kenichi Handa
  0 siblings, 1 reply; 2+ messages in thread
From: Michaël Cadilhac @ 2006-09-07 11:31 UTC (permalink / raw)



[-- Attachment #1.1.1: Type: text/plain, Size: 275 bytes --]


Test case:

emacs -Q
M-x set-input-method RET ucs RET
Type « ut » it will produce « tut ».

IMO, ucs strives to be Emacs by doing the command of the faulty
(unexpected) key (here « t ») while it is not needed.

I propose just to remove the part that does that.


[-- Attachment #1.1.2: uni-input.patch --]
[-- Type: text/x-patch, Size: 1362 bytes --]

Index: leim/quail/uni-input.el
===================================================================
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
--- leim/quail/uni-input.el	7 Sep 2006 11:25:07 -0000
***************
*** 100,110 ****
  		      (progn
  			(push key events)
  			(ucs-input-insert-char key))
- 		    (let ((last-command-char key)
- 			  (current-prefix-arg))
- 		      (condition-case err
- 			  (call-interactively (key-binding seq))
- 			(quail-error (message "%s" (cdr err)) (beep))))
  		    (quail-delete-region)
  		    (throw 'non-digit (append (reverse events)
  					      (listify-key-sequence seq))))))
--- 100,105 ----
Index: leim/ChangeLog
===================================================================
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
--- leim/ChangeLog	7 Sep 2006 11:25:15 -0000
***************
*** 0 ****
--- 1,6 ----
+ 2006-09-06  Michaël Cadilhac  <michael.cadilhac@lrde.org>
+ 
+ 	* 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.
+ 

[-- Attachment #1.1.3: Type: text/plain, Size: 529 bytes --]


(Note: ucs  input method triggered  the bug I  proposed to fix  in the
thread « The order input events are  processed. » : just type « uabt »
in a flyspell-ized buffer, and it will introduce the bug.)

-- 
 |      Michaël `Micha' Cadilhac   |  Un certain Blaise Pascal              |
 |         Epita/LRDE Promo 2007   |    etc... etc...                       |
 | http://www.lrde.org/~cadilh_m   |  -- Prévert (Les paris stupides)       |
 `--  -   JID: micha@amessage.be --'                                   -  --'

[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]

[-- Attachment #2: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ucs input method bug.
  2006-09-07 11:31 ucs input method bug Michaël Cadilhac
@ 2006-09-14  2:46 ` Kenichi Handa
  0 siblings, 0 replies; 2+ messages in thread
From: Kenichi Handa @ 2006-09-14  2:46 UTC (permalink / raw)
  Cc: emacs-devel

In article <87k64frjzg.fsf@lrde.org>, michael.cadilhac@lrde.org (Michaël Cadilhac) writes:

> Test case:

> emacs -Q
> M-x set-input-method RET ucs RET
> Type « ut » it will produce « tut ».

> IMO, ucs strives to be Emacs by doing the command of the faulty
> (unexpected) key (here « t ») while it is not needed.

> I propose just to remove the part that does that.

I agree.  I've just installed your change, thank you.

---
Kenichi Handa
handa@m17n.org

> [1.1.2 uni-input.patch <text/x-patch; iso-8859-1 (quoted-printable)>]
> Index: leim/quail/uni-input.el
> ===================================================================
> 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
> --- leim/quail/uni-input.el	7 Sep 2006 11:25:07 -0000
> ***************
> *** 100,110 ****
>   		      (progn
>   			(push key events)
>   			(ucs-input-insert-char key))
> - 		    (let ((last-command-char key)
> - 			  (current-prefix-arg))
> - 		      (condition-case err
> - 			  (call-interactively (key-binding seq))
> - 			(quail-error (message "%s" (cdr err)) (beep))))
>   		    (quail-delete-region)
>   		    (throw 'non-digit (append (reverse events)
>   					      (listify-key-sequence seq))))))
> --- 100,105 ----
> Index: leim/ChangeLog
> ===================================================================
> 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
> --- leim/ChangeLog	7 Sep 2006 11:25:15 -0000
> ***************
> *** 0 ****
> --- 1,6 ----
> + 2006-09-06  Michaël Cadilhac  <michael.cadilhac@lrde.org>
> + 
> + 	* 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.
> + 
> [1.1.3  <text/plain; iso-8859-1 (quoted-printable)>]

> (Note: ucs  input method triggered  the bug I  proposed to fix  in the
> thread « The order input events are  processed. » : just type « uabt »
> in a flyspell-ized buffer, and it will introduce the bug.)

> -- 
>  |      Michaël `Micha' Cadilhac   |  Un certain Blaise Pascal              |
>  |         Epita/LRDE Promo 2007   |    etc... etc...                       |
>  | http://www.lrde.org/~cadilh_m   |  -- Prévert (Les paris stupides)       |
>  `--  -   JID: micha@amessage.be --'                                   -  --'
> [1.2  <application/pgp-signature (7bit)>]

> [2  <text/plain; us-ascii (7bit)>]
> _______________________________________________
> Emacs-devel mailing list
> Emacs-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-09-14  2:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-07 11:31 ucs input method bug Michaël Cadilhac
2006-09-14  2:46 ` Kenichi Handa

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).