all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chip Coldwell <coldwell@redhat.com>
Subject: infinite loop in encoded-kb/iso-transl (emacs 21.4)
Date: Fri, 10 Nov 2006 15:37:25 -0500 (EST)	[thread overview]
Message-ID: <Pine.LNX.4.64.0611101503210.2532@localhost.localdomain> (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

             reply	other threads:[~2006-11-10 20:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-10 20:37 Chip Coldwell [this message]
2006-11-10 21:43 ` infinite loop in encoded-kb/iso-transl (emacs 21.4) Chong Yidong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.64.0611101503210.2532@localhost.localdomain \
    --to=coldwell@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.