From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Rmail and the raw-text coding system Date: Fri, 14 Jan 2011 16:00:40 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1295047776 19870 80.91.229.12 (14 Jan 2011 23:29:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 14 Jan 2011 23:29:36 +0000 (UTC) Cc: emacs-devel@gnu.org To: mark.lillibridge@hp.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 15 00:29:32 2011 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.69) (envelope-from ) id 1Pdt5G-0004i7-7H for ged-emacs-devel@m.gmane.org; Sat, 15 Jan 2011 00:29:30 +0100 Original-Received: from localhost ([127.0.0.1]:40447 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pdt5F-00032u-Gt for ged-emacs-devel@m.gmane.org; Fri, 14 Jan 2011 18:29:29 -0500 Original-Received: from [140.186.70.92] (port=41696 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pdt5A-00032c-KM for emacs-devel@gnu.org; Fri, 14 Jan 2011 18:29:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pdt59-0005PR-Hq for emacs-devel@gnu.org; Fri, 14 Jan 2011 18:29:24 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:16701 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pdt59-0005PJ-E1 for emacs-devel@gnu.org; Fri, 14 Jan 2011 18:29:23 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvAFAIJrME1FxIbi/2dsb2JhbACWR44VdLshhU8EhGuOLg X-IronPort-AV: E=Sophos;i="4.60,325,1291611600"; d="scan'208";a="88130730" Original-Received: from 69-196-134-226.dsl.teksavvy.com (HELO ceviche.home) ([69.196.134.226]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 14 Jan 2011 18:29:22 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 030D666880; Fri, 14 Jan 2011 16:00:41 -0500 (EST) In-Reply-To: (Mark Lillibridge's message of "Fri, 14 Jan 2011 10:14:06 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:134553 Archived-At: > It then decodes the BABYL message part: > (unless (and coding-system > (coding-system-p coding-system)) > (setq coding-system > ;; Emacs 21.1 and later writes RMAIL files in emacs-mule, but > ;; earlier versions did that with the current buffer's encoding. > ;; So we want to favor detection of emacs-mule (whose normal > ;; priority is quite low), but still allow detection of other > ;; encodings if emacs-mule won't fit. The call to > ;; detect-coding-with-priority below achieves that. > (car (detect-coding-with-priority > from to > '((coding-category-emacs-mule . emacs-mule)))))) > (unless (memq coding-system > '(undecided undecided-unix)) > (set-buffer-modified-p t) ; avoid locking when decoding > (let ((buffer-undo-list t)) > (decode-coding-region from to coding-system)) > (setq coding-system last-coding-system-used)) > (set-buffer-modified-p modifiedp) > (setq buffer-file-coding-system nil) > (setq save-buffer-coding-system > (or coding-system 'undecided)))) > This process leaves the buffer as a unibyte buffer. The question for me is why did it choose raw-text here (which results indeed in a unibyte buffer)? It should have been emacs-mule. Stefan