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: Re: Emacs24 coding system problems Date: Fri, 30 Nov 2012 10:58:04 +0000 Message-ID: <20664.37180.453000.739079@gargle.gargle.HOWL> References: <20627.33570.796000.901596@gargle.gargle.HOWL> <20649.12724.125000.858979@gargle.gargle.HOWL> <83k3tizkl2.fsf@gnu.org> <20649.61758.750000.69012@gargle.gargle.HOWL> <20657.53134.989000.793074@gargle.gargle.HOWL> <874nkdrjhc.wl%%xmue@d1.dion.ne.jp> <20658.30817.183000.810770@gargle.gargle.HOWL> <831ufhz8pl.fsf@gnu.org> <20658.43946.898000.250218@gargle.gargle.HOWL> <83y5hpxc6y.fsf@gnu.org> <87zk24davy.wl%%xmue@d1.dion.ne.jp> <83txscxp21.fsf@gnu.org> <50B67F2A.4020803@gmail.com> <83y5hlul4e.fsf@gnu.org> 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 1354273114 7133 80.91.229.3 (30 Nov 2012 10:58:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Nov 2012 10:58:34 +0000 (UTC) Cc: kzhr@d1.dion.ne.jp, monnier@IRO.UMontreal.CA, Uday S Reddy , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 30 11:58:46 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 1TeOIq-0004hd-Ep for ged-emacs-devel@m.gmane.org; Fri, 30 Nov 2012 11:58:40 +0100 Original-Received: from localhost ([::1]:38757 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeOIf-0005gc-3J for ged-emacs-devel@m.gmane.org; Fri, 30 Nov 2012 05:58:29 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeOIZ-0005gR-SS for emacs-devel@gnu.org; Fri, 30 Nov 2012 05:58:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TeOIY-0002Ku-Rx for emacs-devel@gnu.org; Fri, 30 Nov 2012 05:58:23 -0500 Original-Received: from sun61.bham.ac.uk ([147.188.128.150]:33934) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeOIY-0002Kh-Le; Fri, 30 Nov 2012 05:58:22 -0500 Original-Received: from [147.188.128.127] (helo=bham.ac.uk) by sun61.bham.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1TeOIU-0005BS-Nd; Fri, 30 Nov 2012 10:58:18 +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 1TeOIU-0006uk-DU using interface smart1.bham.ac.uk; Fri, 30 Nov 2012 10:58:18 +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 1TeOIU-0002Hl-8U; Fri, 30 Nov 2012 10:58:18 +0000 In-Reply-To: <83y5hlul4e.fsf@gnu.org> 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:155140 Eli Zaretskii writes: > Is that strange behavior related to encoding and decoding non-ASCII > characters in any way? I can't say either way definitively. To give a rough idea of what is happening, when I open an IMAP folder in VM, it loads the cache folder that has only mail message headers. Then it fetches the body of the "current message" from the IMAP server and inserts it in folder buffer at the right place based on the markers that have been placed there when the cache folder was first parsed, and displays it to the user. The message body is getting inserted at wrong places, which means that the markers are off somehow. The folders are all unibyte ASCII buffers. I was testing it with the current message getting fetched is also ASCII. So, the problems are arising with unibyte buffers. When I load uncompiled code of VM or place debug-on-entry on the relevant code, the behaviour changes. So, it isn't easy narrow down where the problem is. The markers are also off in the Summary window, which is a multibyte buffer. What is worse, the problems are only noticeable at the very beginning of the Emacs session. They are not happening consistently throughout the Emacs session. So, I have to restart Emacs every time I want to try something different. Cheers, Uday