From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David De La Harpe Golden Newsgroups: gmane.emacs.devel Subject: Re: inputting characters by hexadigit Date: Mon, 21 Jul 2008 06:35:56 +0100 Message-ID: <4884203C.2090305@harpegolden.net> 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1216618590 19077 80.91.229.12 (21 Jul 2008 05:36:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Jul 2008 05:36:30 +0000 (UTC) Cc: James Cloos , Kenichi Handa , tzz@lifelogs.com, emacs-devel@gnu.org, Juri Linkov , "Stephen J. Turnbull" , Miles Bader To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 21 07:37:18 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 1KKo58-0005jA-PD for ged-emacs-devel@m.gmane.org; Mon, 21 Jul 2008 07:37:11 +0200 Original-Received: from localhost ([127.0.0.1]:43042 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KKo4F-0003nw-Dp for ged-emacs-devel@m.gmane.org; Mon, 21 Jul 2008 01:36:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KKo48-0003mC-4M for emacs-devel@gnu.org; Mon, 21 Jul 2008 01:36:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KKo46-0003kx-VZ for emacs-devel@gnu.org; Mon, 21 Jul 2008 01:36:07 -0400 Original-Received: from [199.232.76.173] (port=52491 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KKo46-0003kV-KP for emacs-devel@gnu.org; Mon, 21 Jul 2008 01:36:06 -0400 Original-Received: from harpegolden.net ([65.99.215.13]:33656) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KKo41-0002oI-Mx; Mon, 21 Jul 2008 01:36:01 -0400 Original-Received: from golden1.harpegolden.net (86-43-171-96.b-ras2.prp.dublin.eircom.net [86.43.171.96]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "David De La Harpe Golden", Issuer "David De La Harpe Golden Personal CA rev 3" (verified OK)) by harpegolden.net (Postfix) with ESMTP id 2351282C7; Mon, 21 Jul 2008 05:35:58 +0000 (UTC) User-Agent: Mozilla-Thunderbird 2.0.0.14 (X11/20080509) In-Reply-To: X-Enigmail-Version: 0.95.0 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:101052 Archived-At: Stefan Monnier wrote: >> ;; 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...