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: Wed, 23 Jul 2008 01:59:29 +0300 Organization: JURTA Message-ID: <87y73t8qv3.fsf@jurta.org> References: <868ww3vydn.fsf@lifelogs.com> <87myki6fqp.fsf@jurta.org> <87mykhz6tf.fsf@jurta.org> <87tzeokrku.fsf@jurta.org> <87tzeogih6.fsf@catnip.gol.com> <488020A4.4060601@harpegolden.net> <87vdz3p3om.fsf@uwakimon.sk.tsukuba.ac.jp> <4880D3E4.7050400@harpegolden.net> <87mykfow76.fsf@uwakimon.sk.tsukuba.ac.jp> <87mykeohbf.fsf@jurta.org> <4884203C.2090305@harpegolden.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1216768306 32236 80.91.229.12 (22 Jul 2008 23:11:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Jul 2008 23:11:46 +0000 (UTC) Cc: James Cloos , Kenichi Handa , tzz@lifelogs.com, emacs-devel@gnu.org, Stefan Monnier , "Stephen J. Turnbull" , Miles Bader To: David De La Harpe Golden Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 23 01:12:34 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 1KLR1v-0003UM-N5 for ged-emacs-devel@m.gmane.org; Wed, 23 Jul 2008 01:12:27 +0200 Original-Received: from localhost ([127.0.0.1]:41089 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLR12-00039v-Bx for ged-emacs-devel@m.gmane.org; Tue, 22 Jul 2008 19:11:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KLQyB-0001ax-9o for emacs-devel@gnu.org; Tue, 22 Jul 2008 19:08:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KLQyA-0001a7-4C for emacs-devel@gnu.org; Tue, 22 Jul 2008 19:08:34 -0400 Original-Received: from [199.232.76.173] (port=58760 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLQy9-0001Zu-QN for emacs-devel@gnu.org; Tue, 22 Jul 2008 19:08:33 -0400 Original-Received: from relay02.kiev.sovam.com ([62.64.120.197]:64000) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KLQy4-0004eT-Qs; Tue, 22 Jul 2008 19:08:29 -0400 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay02.kiev.sovam.com with esmtp (Exim 4.67) (envelope-from ) id 1KLQy1-000E1Q-Pt; Wed, 23 Jul 2008 02:08:26 +0300 In-Reply-To: <4884203C.2090305@harpegolden.net> (David De La Harpe Golden's message of "Mon, 21 Jul 2008 06:35:56 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu) X-Scanner-Signature: 69470ef176344869aa12c1af2e75e870 X-DrWeb-checked: yes X-SpamTest-Envelope-From: juri@jurta.org X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Trusted X-SpamTest-Info: Profiles 4414 [July 23 2008] X-SpamTest-Info: {received from trusted relay: common white list} X-SpamTest-Info: {HEADERS: header Content-Type found without required header Content-Transfer-Encoding} X-SpamTest-Method: white ip list X-SpamTest-Rate: 10 X-SpamTest-Status: Trusted X-SpamTest-Status-Extended: trusted X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0278], KAS30/Release X-detected-kernel: by monty-python.gnu.org: FreeBSD 6.x (1) 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:101260 Archived-At: >>> ;; Assume character codes 0240 - 0377 stand for characters in some > >> Indeed, it's not valid any more. >> It should probably try something like >> >> (aref (decode-coding-string (unibyte-string char) locale-coding-system) 0) >> >> instead, tho I'd argue that we should drop this feature and insert the >> corresponding Unicode char instead (which would give the latin-1 >> equivalent as well). > > While I agree that having it just be unicode simplifies matters, > couldn't doing the translation again pretty easily be made a > customisable "read-quoted-char-use-locale-coding-system" boolean ? > > ... but should that be > read-quoted-char-use-buffer-file-coding-system ? > - i.e. if you open an iso8859-15 file, and "C-q a4" (assuming hex radix) > , you get a euro sign inserted? > > - it just strikes me people with non unicode locales (or files) > are some of the most likely to want to enter characters by number from > the relevant non-unicode charset... Couldn't they do that using the `C-x 8' prefix? -- Juri Linkov http://www.jurta.org/emacs/