From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: What does the coding system nil mean? Date: 25 Jan 2004 08:10:58 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1075011128 32140 80.91.224.253 (25 Jan 2004 06:12:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 25 Jan 2004 06:12:08 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 25 07:12:03 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AkdV4-0005Kw-00 for ; Sun, 25 Jan 2004 07:12:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AkdTP-00085y-Ef for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Jan 2004 01:10:19 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AkdSw-0007yz-Gu for help-gnu-emacs@gnu.org; Sun, 25 Jan 2004 01:09:50 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AkdSO-0007Z9-Rl for help-gnu-emacs@gnu.org; Sun, 25 Jan 2004 01:09:47 -0500 Original-Received: from [207.232.27.5] (helo=WST0054) by monty-python.gnu.org with asmtp (Exim 4.24) id 1AkdSO-0007Z0-1a for help-gnu-emacs@gnu.org; Sun, 25 Jan 2004 01:09:16 -0500 Original-To: help-gnu-emacs@gnu.org In-reply-to: (message from Jesper Harder on Sat, 24 Jan 2004 23:13:38 +0100) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:16335 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:16335 > Newsgroups: gnu.emacs.help > From: Jesper Harder > Date: Sat, 24 Jan 2004 23:13:38 +0100 > > So, can anyone explain what a nil coding system means? It means, quite naturally, that no code-conversion should take place. That is, the original text or string are left unaltered. Try it: M-: (encode-coding-string "SOME STRING" nil) => "SOME STRING" (include non-ASCII characters in the string to convince yourself they are not encoded). I agree that this should be in the docs somewhere, e.g. in the docs of the en/decoding primitives such as encode-coding-region and decode-coding-string. So a documentation bug report is probably in order.