all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* infinite loop in encoded-kb/iso-transl (emacs 21.4)
@ 2006-11-10 20:37 Chip Coldwell
  2006-11-10 21:43 ` Chong Yidong
  0 siblings, 1 reply; 2+ messages in thread
From: Chip Coldwell @ 2006-11-10 20:37 UTC (permalink / raw)



I've run into an infinite loop using utf-8 keyboard encoding with
iso-transl on emacs 21.4.  To reproduce the problem, run

C-x RET k utf-8

followed by

C-x 8 !

The inverted exclamation mark this is expected to produce is key 161. 
If one evaluates

(key-binding [161])

the result is encoded-kbd-self-insert-ccl.  This function executes a
code conversion language (CCL) program, ccl-decode-mule-utf-8, on the
last-command-char, then sets unread-command-events to the resulting
value.  This value is again 161 (octal 241), as can be verified by
evaluating

(let ((str (char-to-string 161))
       (vec [nil nil nil nil nil nil nil nil nil]))
   (ccl-execute-on-string ccl-decode-mule-utf-8 vec str t))

I think the issue here might be that encoded-kb.el installs a minor
mode keymap for encoded-kbd-mode, and iso-transl.el installs a
key-translation-map.  I don't think we should do both.

Note that if you evaluate

(set-keyboard-coding-system nil)

then

(key-binding [161])

evaluates to self-insert-command and

C-x 8 !

works as expected.

I solicit your comments and advice.

Chip

-- 
Charles M. "Chip" Coldwell
Senior Software Engineer
Red Hat, Inc
978-392-2426

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

* Re: infinite loop in encoded-kb/iso-transl (emacs 21.4)
  2006-11-10 20:37 infinite loop in encoded-kb/iso-transl (emacs 21.4) Chip Coldwell
@ 2006-11-10 21:43 ` Chong Yidong
  0 siblings, 0 replies; 2+ messages in thread
From: Chong Yidong @ 2006-11-10 21:43 UTC (permalink / raw)
  Cc: emacs-devel

Chip Coldwell <coldwell@redhat.com> writes:

> I've run into an infinite loop using utf-8 keyboard encoding with
> iso-transl on emacs 21.4.  To reproduce the problem, run
>
> C-x RET k utf-8
>
> followed by
>
> C-x 8 !

I can't reproduce this using Emacs 22, so this was probably fixed at
some point.

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

end of thread, other threads:[~2006-11-10 21:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-10 20:37 infinite loop in encoded-kb/iso-transl (emacs 21.4) Chip Coldwell
2006-11-10 21:43 ` Chong Yidong

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.