VM

Emacs24 enable-multibyte-characters

Bug #1069731 reported by Uday Reddy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
VM
Triaged
Low
Uday Reddy

Bug Description

The following problem seems to occur with Emacs24.

If you visit a VM folder, and then open a text file, the buffer of the text file has enable-multibyte-characters set to nil. What is VM doing to break Emacs?

This is likely to be an Emacs bug, but we need to find a way to reproduce it in Emacs without VM.

Revision history for this message
Uday Reddy (reddyuday) wrote :

It is likely that the text buffer is getting visited in a "literal" mode because the dos line endings don't get decoded either.

Revision history for this message
Uday Reddy (reddyuday) wrote :

The problem is occurring because emacs-w3m is setting something. Without it, the problem goes away.

Changed in vm:
importance: Critical → Low
milestone: 8.2.0b1 → 8.1.90a
tags: added: w3m
tags: added: new
Revision history for this message
Uday Reddy (reddyuday) wrote :

Kazuhiro Ito (emacs-dev) informs:

I guess your problem is related with Bug#12989. Please check whether
buffer-file-type is non-nil when the problem occurs. If that is the
cause, write the below code in your ~/.emacs for workaround.

(defvar-local buffer-file-type nil)

-------

Using this work-around, the enable-multibyte-characters problem got fixed.

Revision history for this message
Uday Reddy (reddyuday) wrote :

Eli Zaretskii says on emacs-dev mailing that buffer-file-type is obsolete. It is not supposed to be used any more.

Rev. 1451 removes most of the occurrences of buffer-file-type from VM. But, now the problem with enable-multibyte-characters comes back, even with Kazuhiro Ito work-around!

Revision history for this message
Uday Reddy (reddyuday) wrote :

Reverted the changes of rev. 1451, and put it in a separate branch buffer-file-type.

Revision history for this message
Uday Reddy (reddyuday) wrote :

Eli Zaretskii has changed emacs-24 development branch, rev. 110960, to bring back the buffer-file-type variable.

Trying to test it causes problems. When the test-imap folder is visited, there is some corruption for the very first message displayed. vm-mime-verify-cached-layout fails, and the message display gets clobbered.

Not clear what is going on.

Revision history for this message
Uday Reddy (reddyuday) wrote :

Funnily, this problem arises only for the first folder visited during the Emacs session. It doesn't seem repeatable.

Uday Reddy (reddyuday)
Changed in vm:
milestone: 8.1.90a → 8.2.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.