From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: inputting characters by hexadigit Date: Tue, 29 Jul 2008 13:33:55 -0400 Message-ID: <87sktsoarg.fsf@stupidchicken.com> 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> <877ib4lmla.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 1217352772 3422 80.91.229.12 (29 Jul 2008 17:32:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Jul 2008 17:32:52 +0000 (UTC) Cc: Ted Zlatanov , "Lennart Borgman \(gmail\)" , Stefan Monnier , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 29 19:33:41 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 1KNt4j-0004D3-EC for ged-emacs-devel@m.gmane.org; Tue, 29 Jul 2008 19:33:29 +0200 Original-Received: from localhost ([127.0.0.1]:40291 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KNt3p-0006rE-34 for ged-emacs-devel@m.gmane.org; Tue, 29 Jul 2008 13:32:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KNt3L-0006fW-Io for emacs-devel@gnu.org; Tue, 29 Jul 2008 13:32:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KNt3J-0006eU-L2 for emacs-devel@gnu.org; Tue, 29 Jul 2008 13:32:02 -0400 Original-Received: from [199.232.76.173] (port=40051 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KNt3J-0006eK-9I for emacs-devel@gnu.org; Tue, 29 Jul 2008 13:32:01 -0400 Original-Received: from cyd.mit.edu ([18.115.2.24]:46573 helo=cyd) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KNt3J-0007ig-2Y for emacs-devel@gnu.org; Tue, 29 Jul 2008 13:32:01 -0400 Original-Received: by cyd (Postfix, from userid 1000) id 8C0F957E333; Tue, 29 Jul 2008 13:33:55 -0400 (EDT) In-Reply-To: <877ib4lmla.fsf@jurta.org> (Juri Linkov's message of "Tue, 29 Jul 2008 18:51:14 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:101702 Archived-At: Juri Linkov writes: >>>> 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. Look OK to me. I'm curious, though: by default, when you use C-q to input a number, the radix is octal; by changing read-quoted-char-radix, you can change this to decimal or hexadecimal. In contrast, ucs-insert always reads the code in hexadecimal. I don't use these commands myself, so I'm wondering which is the preferred behavior (based on the defaults in other applications, and so forth)?