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 19:07:28 +0300 Organization: JURTA Message-ID: <87iquok6lr.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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1217348439 19397 80.91.229.12 (29 Jul 2008 16:20:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Jul 2008 16:20:39 +0000 (UTC) Cc: James Cloos , Kenichi Handa , tzz@lifelogs.com, emacs-devel@gnu.org, "Stephen J. Turnbull" , Miles Bader To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 29 18:21:27 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 1KNrwt-0007tD-Kq for ged-emacs-devel@m.gmane.org; Tue, 29 Jul 2008 18:21:19 +0200 Original-Received: from localhost ([127.0.0.1]:42209 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KNrvz-0005EA-AY for ged-emacs-devel@m.gmane.org; Tue, 29 Jul 2008 12:20:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KNrvS-00053B-Km for emacs-devel@gnu.org; Tue, 29 Jul 2008 12:19:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KNrvQ-00052Z-2K for emacs-devel@gnu.org; Tue, 29 Jul 2008 12:19:50 -0400 Original-Received: from [199.232.76.173] (port=36938 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KNrvQ-00052W-0L for emacs-devel@gnu.org; Tue, 29 Jul 2008 12:19:48 -0400 Original-Received: from smtp-out.neti.ee ([194.126.126.37]:39440) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KNrvK-00046D-Ft; Tue, 29 Jul 2008 12:19:42 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by MXR-5.estpak.ee (Postfix) with ESMTP id A0A771DF0FE; Tue, 29 Jul 2008 19:19:41 +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 IkkJMh+T+ruS; Tue, 29 Jul 2008 19:19:39 +0300 (EEST) Original-Received: from Relayhost3.neti.ee (relayhost3.estpak.ee [88.196.174.169]) by MXR-5.estpak.ee (Postfix) with ESMTP id D90671DF0E2; Tue, 29 Jul 2008 19:19:39 +0300 (EEST) Original-Received: from mail.estpak.ee (66.132.191.90.dyn.estpak.ee [90.191.132.66]) by Relayhost3.neti.ee (Postfix) with ESMTP id C151BD3A50; Tue, 29 Jul 2008 19:19:35 +0300 (EEST) In-Reply-To: (Stefan Monnier's message of "Sun, 20 Jul 2008 21:41:43 -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:101697 Archived-At: >> ;; Assume character codes 0240 - 0377 stand for characters in some >> ;; single-byte character set, and convert them to Emacs >> ;; characters. >> (if (and enable-multibyte-characters >> (>= char ?\240) >> (<= char ?\377)) >> (setq char (unibyte-char-to-multibyte char))) > >> I don't know if this code is still valid now? > > 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). So is it ok to remove this code or it's better to comment it out? BTW, there are also warnings in the same function (and few other places): In quoted-insert: simple.el:685:22:Warning: `translation-table-for-input' is an obsolete variable (as of Emacs 23.1). Could you tell what changes this requires? -- Juri Linkov http://www.jurta.org/emacs/