From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: RMAIL bails out with coding-system-error Date: Sun, 5 May 2002 16:35:30 +0300 (IDT) Sender: emacs-devel-admin@gnu.org Message-ID: References: <87lmayeube.fsf@snail.pool> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1020607041 9006 127.0.0.1 (5 May 2002 13:57:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 5 May 2002 13:57:21 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org, pmr@pajato.com Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 174MVt-0002L9-00 for ; Sun, 05 May 2002 15:57:21 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 174Mca-0000kT-00 for ; Sun, 05 May 2002 16:04:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 174MVe-0007na-00; Sun, 05 May 2002 09:57:06 -0400 Original-Received: from is.elta.co.il ([199.203.121.2]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 174MCa-00039u-00; Sun, 05 May 2002 09:37:25 -0400 Original-Received: from is (is [199.203.121.2]) by is.elta.co.il (8.9.3/8.8.8) with SMTP id QAA25167; Sun, 5 May 2002 16:35:31 +0300 (IDT) X-Sender: eliz@is Original-To: David Kuehling In-Reply-To: <87lmayeube.fsf@snail.pool> Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:3602 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:3602 On 5 May 2002, David Kuehling wrote: > (insert "X-Coding-System: " > (symbol-name last-coding-system-used) > "\n"))) > [...] > Using the last coding system is after all a little confusing. Maybe > `default-buffer-file-coding-system' would be a better (and more > predictable) choice? last-coding-system-used is set by all the functions that decode text. So the above code makes sure the encoding of the message is recorded in the message headers. That encoding can come from any number of sources: the Charset= header, the current defaults taken from the language environment, or from the user (see, e.g., rmail-redecode-body). Perhaps I'm missing something, but I fail to see how any global default setting such as default-buffer-file-coding-system, can be an alternative to last-coding-system-used.