← Back to team overview

vm team mailing list archive

[Bug 531969] [NEW] Upgrading to VM 8.0.14 breaks existing VM 7.19 configuratio

 

Public bug reported:

I am trying to upgrade the VM 7.19 package currently being distributed
via pkgsrc (www.pkgsrc.org) to version 8.0.14.

While testing the upgrade, I noticed that replacing an existing VM
7.19 installation with 8.0.14 causes VM to break in a rather confusing
way for existing 7.19 users who still have their .emacs files set up
according to the 7.19 documentation.

Specifically, the VM 7.19 README file says your .emacs file should
contain the following:

   (autoload 'vm "vm" "Start VM on your primary inbox." t)
   (autoload 'vm-other-frame "vm" "Like `vm' but starts in another frame." t)
   (autoload 'vm-visit-folder "vm" "Start VM on an arbitrary folder." t)
   (autoload 'vm-visit-virtual-folder "vm" "Visit a VM virtual folder." t)
   (autoload 'vm-mode "vm" "Run VM major mode on a buffer" t)
   (autoload 'vm-mail "vm" "Send a mail message using VM." t)
   (autoload 'vm-submit-bug-report "vm" "Send a bug report about VM." t)

whereas the 8.0.14 INSTALL file says it should contain

   (require 'vm-autoloads)

If I have a .emacs file still that still contains the VM 7.19
definitions, install VM 8.0.14, start VM with "M-x vm", and then
immediately try to quit VM by pressing the "q" key, I get the error
message ¨Symbol's function definition is void: vm-virtual-quit"
(regardless of the mailbox contents; it happens even with an empty
mailbox).  A number of other operations also fail in a similar way.
This is under GNU Emacs version 21.4.1 or 23.1.1, in case that
makes a difference.

VM 8 ought to provide some backwards compatibility for existing VM 7
users rather than just failing with an unhepful error message.  The
following patch works for me:

--- lisp/vm.el.orig     2009-12-06 17:12:06.000000000 +0200
+++ lisp/vm.el
@@ -27,6 +27,11 @@

 (require 'vm-version)

+;; For backwards compatibility with .emacs files set up according to
+;; the VM 7.19 documentation
+(if (not (featurep 'xemacs))
+   (require 'vm-autoloads))
+
 ;;;###autoload
 (defun vm-recover-folder ()
 "Recover the autosave file for the current folder."

Yours,
--
Andreas Gustafsson, gson@xxxxxxxx

** Affects: vm
     Importance: Undecided
         Status: New

-- 
Upgrading to VM 8.0.14 breaks existing VM 7.19 configuratio
https://bugs.launchpad.net/bugs/531969
You received this bug notification because you are a member of VM
development team, which is the registrant for VM.

Status in VM (View Mail) for Emacs: New

Bug description:
I am trying to upgrade the VM 7.19 package currently being distributed
via pkgsrc (www.pkgsrc.org) to version 8.0.14.

While testing the upgrade, I noticed that replacing an existing VM
7.19 installation with 8.0.14 causes VM to break in a rather confusing
way for existing 7.19 users who still have their .emacs files set up
according to the 7.19 documentation.

Specifically, the VM 7.19 README file says your .emacs file should
contain the following:

   (autoload 'vm "vm" "Start VM on your primary inbox." t)
   (autoload 'vm-other-frame "vm" "Like `vm' but starts in another frame." t)
   (autoload 'vm-visit-folder "vm" "Start VM on an arbitrary folder." t)
   (autoload 'vm-visit-virtual-folder "vm" "Visit a VM virtual folder." t)
   (autoload 'vm-mode "vm" "Run VM major mode on a buffer" t)
   (autoload 'vm-mail "vm" "Send a mail message using VM." t)
   (autoload 'vm-submit-bug-report "vm" "Send a bug report about VM." t)

whereas the 8.0.14 INSTALL file says it should contain

   (require 'vm-autoloads)

If I have a .emacs file still that still contains the VM 7.19
definitions, install VM 8.0.14, start VM with "M-x vm", and then
immediately try to quit VM by pressing the "q" key, I get the error
message ¨Symbol's function definition is void: vm-virtual-quit"
(regardless of the mailbox contents; it happens even with an empty
mailbox).  A number of other operations also fail in a similar way.
This is under GNU Emacs version 21.4.1 or 23.1.1, in case that
makes a difference.

VM 8 ought to provide some backwards compatibility for existing VM 7
users rather than just failing with an unhepful error message.  The
following patch works for me:

--- lisp/vm.el.orig     2009-12-06 17:12:06.000000000 +0200
+++ lisp/vm.el
@@ -27,6 +27,11 @@

 (require 'vm-version)

+;; For backwards compatibility with .emacs files set up according to
+;; the VM 7.19 documentation
+(if (not (featurep 'xemacs))
+   (require 'vm-autoloads))
+
 ;;;###autoload
 (defun vm-recover-folder ()
 "Recover the autosave file for the current folder."

Yours,
--
Andreas Gustafsson, gson@xxxxxxxx





Follow ups

References