From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: inputting characters by hexadigit Date: Tue, 29 Jul 2008 18:51:14 +0300 Organization: JURTA Message-ID: <877ib4lmla.fsf@jurta.org> References: <868ww3vydn.fsf@lifelogs.com> <87tzeokrku.fsf@jurta.org> <87tzeogih6.fsf@catnip.gol.com> <488020A4.4060601@harpegolden.net> <873am6rb8k.fsf@jurta.org> <87r69oqojm.fsf@jurta.org> <006a01c8ec04$27f3c2d0$0200a8c0@us.oracle.com> <86ej5keovj.fsf@lifelogs.com> <48872C97.6020505@gmail.com> <873am0fzfw.fsf@jurta.org> <874p6g1fpx.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1217346873 13409 80.91.229.12 (29 Jul 2008 15:54:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Jul 2008 15:54:33 +0000 (UTC) Cc: Ted Zlatanov , "Lennart Borgman \(gmail\)" , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 29 17:55:22 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KNrXk-0005YY-VO for ged-emacs-devel@m.gmane.org; Tue, 29 Jul 2008 17:55:21 +0200 Original-Received: from localhost ([127.0.0.1]:43409 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KNrWq-0000VJ-RS for ged-emacs-devel@m.gmane.org; Tue, 29 Jul 2008 11:54:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KNrV7-0007YZ-4H for emacs-devel@gnu.org; Tue, 29 Jul 2008 11:52:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KNrV5-0007Y9-LT for emacs-devel@gnu.org; Tue, 29 Jul 2008 11:52:36 -0400 Original-Received: from [199.232.76.173] (port=40737 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KNrV5-0007Y4-8p for emacs-devel@gnu.org; Tue, 29 Jul 2008 11:52:35 -0400 Original-Received: from smtp-out.neti.ee ([194.126.126.37]:34017) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KNrV4-0008JT-LP for emacs-devel@gnu.org; Tue, 29 Jul 2008 11:52:35 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by MXR-5.estpak.ee (Postfix) with ESMTP id DC19D1DE623; Tue, 29 Jul 2008 18:52:33 +0300 (EEST) X-Virus-Scanned: Debian amavisd-new at estpak.ee Original-Received: from smtp-out.neti.ee ([127.0.0.1]) by localhost (MXR-5.estpak.ee [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1eXxZZiv48te; Tue, 29 Jul 2008 18:52:30 +0300 (EEST) Original-Received: from Relayhost1.neti.ee (Relayhost1 [88.196.174.141]) by MXR-5.estpak.ee (Postfix) with ESMTP id 2862A1DEB8B; Tue, 29 Jul 2008 18:52:30 +0300 (EEST) Original-Received: from mail.estpak.ee (66.132.191.90.dyn.estpak.ee [90.191.132.66]) by Relayhost1.neti.ee (Postfix) with ESMTP id D770E2A4A3F; Tue, 29 Jul 2008 18:52:29 +0300 (EEST) In-Reply-To: (Stefan Monnier's message of "Wed, 23 Jul 2008 22:05:56 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu) X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:101696 Archived-At: >>> From my experience using C-q to input a number was a pain in the echo area. >> IMHO, using the minibuffer is more convenient that reading a string >> with a sequence of `read-event'. That's why I have doubts about moving > > Then use C-x 8 RET. No need for us to choose. I installed a patch that changes `ucs-insert' to read Unicode names. Anyone could improve it further with a discussed multi-level completion mechanism. A patch below binds `ucs-insert' to `C-x 8 RET'. I tried to bind RET to iso-transl-ctl-x-8-map in iso-transl.el, but then `C-x 8 RET' calls `ucs-insert' as a non-interactive function (i.e. ignoring its `interactive' declaration). However, `ucs-insert' bound directly to `ctl-x-map' as below works without problems. Index: lisp/international/mule-cmds.el =================================================================== RCS file: /sources/emacs/emacs/lisp/international/mule-cmds.el,v retrieving revision 1.335 diff -u -r1.335 mule-cmds.el --- lisp/international/mule-cmds.el 29 Jul 2008 14:45:50 -0000 1.335 +++ lisp/international/mule-cmds.el 29 Jul 2008 15:50:47 -0000 @@ -2878,6 +2878,7 @@ (error "Not a Unicode character code: 0x%X" arg)) (insert-and-inherit arg)) +(define-key ctl-x-map "8\r" 'ucs-insert) ;; arch-tag: b382c432-4b36-460e-bf4c-05efd0bb18dc ;;; mule-cmds.el ends here -- Juri Linkov http://www.jurta.org/emacs/