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: Emacs24 coding system problems Date: Fri, 09 Nov 2012 12:01:29 -0500 Message-ID: References: <20627.33570.796000.901596@gargle.gargle.HOWL> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1352480510 21993 80.91.229.3 (9 Nov 2012 17:01:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Nov 2012 17:01:50 +0000 (UTC) Cc: emacs-devel To: Uday Reddy Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 09 18:01:59 2012 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 1TWrxq-0007bK-11 for ged-emacs-devel@m.gmane.org; Fri, 09 Nov 2012 18:01:54 +0100 Original-Received: from localhost ([::1]:53573 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWrxf-0001q5-Td for ged-emacs-devel@m.gmane.org; Fri, 09 Nov 2012 12:01:43 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45378) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWrxd-0001ob-S6 for emacs-devel@gnu.org; Fri, 09 Nov 2012 12:01:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TWrxc-0002Le-Ty for emacs-devel@gnu.org; Fri, 09 Nov 2012 12:01:41 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:55227) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWrxc-0002LA-39 for emacs-devel@gnu.org; Fri, 09 Nov 2012 12:01:40 -0500 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id qA9H1TqH018872; Fri, 9 Nov 2012 12:01:29 -0500 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 27A34B4278; Fri, 9 Nov 2012 12:01:29 -0500 (EST) In-Reply-To: <20627.33570.796000.901596@gargle.gargle.HOWL> (Uday Reddy's message of "Fri, 2 Nov 2012 08:24:02 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4396=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4396> : streams <854615> : uri <1263854> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 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:154768 Archived-At: > - enable-multibyte-characters has the global value of t, but > - every time I visit a file, it gets turned off locally. > The DOS line endings in files don't get recognized either. Could you have set coding-system-for-read maybe? > There must be something that VM does which fires this bug, but can't figure > out what. VM often creates unibyte buffers to load mail folders. It uses a > function like this to do so: > (defun vm-generate-new-unibyte-buffer (name) > (if vm-xemacs-p > (generate-new-buffer name) > (let* ((buffer (generate-new-buffer name))) > (when (fboundp 'set-buffer-multibyte) > (with-current-buffer buffer > (set-buffer-multibyte nil))) > buffer))) > I am not sure if this is violating any protocols. No, this code looks sane. Stefan