From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Uday Reddy Newsgroups: gmane.emacs.devel Subject: Emacs24 coding system problems Date: Fri, 2 Nov 2012 08:24:02 +0000 Message-ID: <20627.33570.796000.901596@gargle.gargle.HOWL> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1351844660 30666 80.91.229.3 (2 Nov 2012 08:24:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 2 Nov 2012 08:24:20 +0000 (UTC) Cc: Uday Reddy To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 02 09:24:29 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 1TUCYG-0005Cg-KG for ged-emacs-devel@m.gmane.org; Fri, 02 Nov 2012 09:24:28 +0100 Original-Received: from localhost ([::1]:53407 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TUCY8-0007Fd-2p for ged-emacs-devel@m.gmane.org; Fri, 02 Nov 2012 04:24:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42159) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TUCY1-0007FL-WE for emacs-devel@gnu.org; Fri, 02 Nov 2012 04:24:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TUCXw-0007SJ-Tl for emacs-devel@gnu.org; Fri, 02 Nov 2012 04:24:13 -0400 Original-Received: from sun61.bham.ac.uk ([147.188.128.150]:61230) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TUCXw-0007R7-Nc for emacs-devel@gnu.org; Fri, 02 Nov 2012 04:24:08 -0400 Original-Received: from [147.188.128.127] (helo=bham.ac.uk) by sun61.bham.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1TUCXu-0000px-No; Fri, 02 Nov 2012 08:24:06 +0000 Original-Received: from mx1.cs.bham.ac.uk ([147.188.192.53]) by bham.ac.uk (envelope-from ) with esmtp (Exim 4.72) id 1TUCXu-0002ht-Dp using interface smart1.bham.ac.uk; Fri, 02 Nov 2012 08:24:06 +0000 Original-Received: from gromit.cs.bham.ac.uk ([147.188.193.16] helo=MARUTI.cs.bham.ac.uk) by mx1.cs.bham.ac.uk with esmtp (Exim 4.51) id 1TUCXu-0006Ve-57; Fri, 02 Nov 2012 08:24:06 +0000 X-Mailer: VM 8.2.0b under 24.2.1 (i386-mingw-nt5.1.2600) X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 147.188.128.150 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:154628 Archived-At: I have a problem with Emacs 24 that is a bit mystifying. I manage to put it in a state, by using VM, where - enable-multibyte-characters has the global value of t, but - every time I visit a file, it gets turned off locally. This happens with both Emacs 24.1 and 24.2. It didn't happen with Emacs 23. The DOS line endings in files don't get recognized either. 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. Cheers, Uday