[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: normal-mode breaks VM recover-file
From: |
mjchan . inbox |
Subject: |
Re: normal-mode breaks VM recover-file |
Date: |
Tue, 20 Dec 2005 09:27:23 -0500 |
> Why does Emacs think that Text mode is the right mode? Can you set it
> up to recognize automatically that VM mode is the right mode for these
> files?
It was set to text-mode in normal-mode because of the
default-major-mode (mine is set to text-mode). The VM mode was set
when the command 'vm' is used to read a mail folder, which could be
any file (with content in certain mail folder type). VM uses
find-file-hook during recover-file and check if the
buffer being recovered is a VM folder by checking the major mode. If
it is not VM mode, VM skips.
Should the major mode be preserved during recover-buffer?
>>>>> On Tuesday, December 20 2005, Richard M Stallman said:
> With latest CVS emasc I upgraded to last week, I found that VM would
> no longer be able to "recover-file" from an auto-saved copy
> properly. After further investigation, VM would not proceed with
> recovering because the major mode (VM mode) was reset to text-mode
> during the recovery in normal-mode (in files.el).
> I don't remember which bug this fixed, but I am sure it was a bug.
> Perhaps the bug was that if you delete the -*- line from a file and do
> M-x normal-mode, it would fail to switch to Fundamental mode.
> Why does Emacs think that Text mode is the right mode? Can you set it
> up to recognize automatically that VM mode is the right mode for these
> files?