From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Creating a coding system Date: Sat, 20 Dec 2014 18:53:06 +0200 Message-ID: <83tx0qqn4d.fsf@gnu.org> References: <87ppbeitcs.fsf@fencepost.gnu.org> <87sigasa3n.fsf@igel.home> <878ui2ieu1.fsf@fencepost.gnu.org> <87k31ms3gr.fsf@igel.home> <87zjaigtkz.fsf@fencepost.gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1419094435 12221 80.91.229.3 (20 Dec 2014 16:53:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Dec 2014 16:53:55 +0000 (UTC) Cc: schwab@linux-m68k.org, emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 20 17:53:48 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y2NHn-0006tl-Mz for ged-emacs-devel@m.gmane.org; Sat, 20 Dec 2014 17:53:47 +0100 Original-Received: from localhost ([::1]:35170 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y2NHn-00067F-5n for ged-emacs-devel@m.gmane.org; Sat, 20 Dec 2014 11:53:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54064) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y2NHV-00065b-R0 for emacs-devel@gnu.org; Sat, 20 Dec 2014 11:53:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y2NHQ-0006VB-FB for emacs-devel@gnu.org; Sat, 20 Dec 2014 11:53:29 -0500 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:45450) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y2NHH-0006SH-Jt; Sat, 20 Dec 2014 11:53:15 -0500 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NGW00F003L69D00@a-mtaout23.012.net.il>; Sat, 20 Dec 2014 18:53:14 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NGW00F0I48P6V60@a-mtaout23.012.net.il>; Sat, 20 Dec 2014 18:53:14 +0200 (IST) In-reply-to: <87zjaigtkz.fsf@fencepost.gnu.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.175 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:180388 Archived-At: > From: David Kastrup > Date: Sat, 20 Dec 2014 17:43:40 +0100 > Cc: emacs-devel@gnu.org > > Andreas Schwab writes: > > >>> The translation table operates on the decoded contents. > >> > >> Why would something be decoded twice in a row? > > > > You don't know the characters before decoding. > > That's an "Andreas" answer: an insider joke comprehensible only once you > already know the answer. It's not even a hint. :-) Let me try being a bit more helpful. The translation table is a char-table that converts one character into another. Since these tables convert _characters_, you need to have a character before you apply the table. To have a character, you need to decode the byte stream into characters. You can find more details on this in the node "Translation of Characters" in the ELisp manual.