Re: [VM] VM change in Emacs 24 - leaving mail mode
Daniel Barrett writes: > On December 15, 2015, Uday Reddy wrote: > >> I've noticed a change in VM's behavior since upgrading to Emacs 24. > >> When I'm composing an email and I run "save-buffer" to a file, the > >> buffer enters text-mode instead of staying in mail-mode. > >That might depend on what file name you use for the file, and what your > >auto-mode setting is for that file name. > > Thanks Uday. The filename for saving has no extension (for example, "foo"). > > I removed this line from my .emacs file: > > (setq default-major-mode 'text-mode) > > and the bad behavior stopped. However, this line was present for > earlier versions of Emacs and didn't cause the mode-switching on > saves. I can't speak for Emacs. The sensible thing to do is to use a file extension for mail messages, e.g., "eml" or "ml", and then define the auto-mode for it to be mail-mode. Cheers, Uday
Re: [VM] VM change in Emacs 24 - leaving mail mode
Daniel Barrett writes: > > I've noticed a change in VM's behavior since upgrading to Emacs 24. > When I'm composing an email and I run "save-buffer" to a file, the > buffer enters text-mode instead of staying in mail-mode. In previous > versions of Emacs, the buffer remained in mail-mode even after saving. > Is there an easy way to prevent this change of mode? That might depend on what file name you use for the file, and what your auto-mode setting is for that file name. Cheers, Uday
Re: [VM] VM change in Emacs 24 - leaving mail mode
On December 15, 2015, Uday Reddy wrote: >> I've noticed a change in VM's behavior since upgrading to Emacs 24. >> When I'm composing an email and I run "save-buffer" to a file, the >> buffer enters text-mode instead of staying in mail-mode. >That might depend on what file name you use for the file, and what your >auto-mode setting is for that file name. Thanks Uday. The filename for saving has no extension (for example, "foo"). I removed this line from my .emacs file: (setq default-major-mode 'text-mode) and the bad behavior stopped. However, this line was present for earlier versions of Emacs and didn't cause the mode-switching on saves. Any suggestions to stop the mode-switching, and still have my default major mode be text-mode? Thanks. -- Dan Barrett dbarr...@blazemonger.com
[VM] VM change in Emacs 24 - leaving mail mode
I've noticed a change in VM's behavior since upgrading to Emacs 24. When I'm composing an email and I run "save-buffer" to a file, the buffer enters text-mode instead of staying in mail-mode. In previous versions of Emacs, the buffer remained in mail-mode even after saving. Is there an easy way to prevent this change of mode? Thanks, Dan -- Dan Barrett dbarr...@blazemonger.com
[VM] VM change in Emacs 24 - leaving mail mode
Daniel Barrett writes: > > I've noticed a change in VM's behavior since upgrading to Emacs 24. > When I'm composing an email and I run "save-buffer" to a file, the > buffer enters text-mode instead of staying in mail-mode. In previous > versions of Emacs, the buffer remained in mail-mode even after saving. > Is there an easy way to prevent this change of mode? > > Thanks, > Dan > > -- > Dan Barrett > dbarr...@blazemonger.com > Just checked on my system with emacs-version 24.2.1 and vm-version 8.1.0 and saw no such change. -- Robert L. Knighten r...@knighten.org