From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: inputting characters by hexadigit Date: Thu, 31 Jul 2008 14:20:50 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <86iqul3lnx.fsf@lifelogs.com> References: <868ww3vydn.fsf@lifelogs.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> <87sktsoarg.fsf@stupidchicken.com> <878wvkfuk1.fsf@jurta.org> <874p68za5h.fsf@stupidchicken.com> <87k5f39y28.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 1217532100 26934 80.91.229.12 (31 Jul 2008 19:21:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Jul 2008 19:21:40 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 31 21:22:30 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 1KOdiD-00043j-Md for ged-emacs-devel@m.gmane.org; Thu, 31 Jul 2008 21:21:21 +0200 Original-Received: from localhost ([127.0.0.1]:36502 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KOdhJ-0004yO-5e for ged-emacs-devel@m.gmane.org; Thu, 31 Jul 2008 15:20:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KOdh0-0004cu-9x for emacs-devel@gnu.org; Thu, 31 Jul 2008 15:20:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KOdgz-0004bK-6k for emacs-devel@gnu.org; Thu, 31 Jul 2008 15:20:05 -0400 Original-Received: from [199.232.76.173] (port=46127 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KOdgz-0004b5-1W for emacs-devel@gnu.org; Thu, 31 Jul 2008 15:20:05 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:37874 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KOdgy-0001ho-Gv for emacs-devel@gnu.org; Thu, 31 Jul 2008 15:20:04 -0400 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1KOdgw-0007U7-Bk for emacs-devel@gnu.org; Thu, 31 Jul 2008 19:20:02 +0000 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 31 Jul 2008 19:20:02 +0000 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 31 Jul 2008 19:20:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:EmKM0BgE8Fg3ZKqsFjzbVfO3+RE= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:101826 Archived-At: On Wed, 30 Jul 2008 18:29:19 +0300 Juri Linkov wrote: JL> Hexadecimal numbers is the primary notation for Unicode code points JL> so it would be better to keep the current default. In addition we can JL> support the hash notation that allows entering decimal numbers (though, JL> in less convenient way) as e.g. #10r182. I propose the following patch JL> that keeps `ucs-insert' backward-compatible in regard of treating JL> numbers as hex by default, adds reading numbers with hash notations, JL> and improves error-handling of `ucs-insert'. How about these separate functions ucs-insert-hex ucs-insert-standard as customization choices for ucs-insert? Obviously one will call the other, but the name will clearly tell the user what he's calling. The confusion will mostly happen the first time he uses the wrong input, at which time the user will check the docs and understand the choices. Ted