Howdy all.
After getting around the odd embedded image problem in VM I reported the other
day, I found another problem (again, after upgrading the VM package from 7.00
to 7.03) this time with the menus (I don't use the menus very often so it took
longer to hit it and so I can also easily work around it). Basically I get
the error:
Syntax error: "Unrecognized menu descriptor", vm-menu-folder-menu
no matter where I try and click on the menubar.
Note that I use set vm-use-menus to 1 since I prefer that type of menu
behavior, and that seems to be where the trouble lies since I noticed that
they work ok if I don't change the setting of that variable i.e. xemacs
-vanilla, but if I eval the setq for the above before running VM the bad
behavior returns, and in fact the menu isn't loaded at all because I get the
message right away and VM doesn't even start up. Which makes me wonder why VM
starts without that error with the rest of my setup in there...
Anyone else see this behavior? I looked at the diffs and I'm guessing it's
linked to the changes in vm-menu.el between 7.01 and 7.02, like this one:
======================================================================
*** dist/vm-menu.el.dist Tue Jan 22 14:28:29 2002
--- vm-menu.el Sat Mar 2 11:51:17 2002
***************
*** 51,87 ****
! (defconst vm-menu-folder-menu
! (list
! "Folder"
! (if vm-fsfemacs-p
! ["Manipulate Folders" ignore (ignore)]
! vm-menu-folders-menu)
! "---"
! ["Display Summary" vm-summarize t]
! ["Toggle Threading" vm-toggle-threads-display t]
! "---"
! ["Get New Mail" vm-get-new-mail (vm-menu-can-get-new-mail-p)]
! "---"
! ["Search" vm-isearch-forward vm-message-list]
! "---"
! ["Auto-Archive" vm-auto-archive-messages vm-message-list]
! ["Expunge" vm-expunge-folder vm-message-list]
! ["Expunge POP Messages" vm-expunge-pop-messages
! (vm-menu-can-expunge-pop-messages-p)]
! "---"
! ["Visit Folder" vm-visit-folder t]
! ["Visit POP Folder" vm-visit-pop-folder t]
! ["Revert Folder (back to disk version)" revert-buffer
(vm-menu-can-revert-p
)]
! ["Recover Folder (from auto-save file)" recover-file
(vm-menu-can-recover-p
)]
! ["Save" vm-save-folder (vm-menu-can-save-p)]
! ["Save As..." vm-write-file t]
! ["Quit" vm-quit-no-change t]
! ["Save & Quit" vm-quit t]
! "---"
! "---"
! ;; special string that marks the tail of this menu for
! ;; vm-menu-install-visited-folders-menu.
! "-------"
! ))
! (defconst vm-menu-dispose-menu
(let ((title (if (vm-menu-fsfemacs19-menus-p)
--- 51,88 ----
! (defvar vm-menu-folder-menu
! `("Folder"
! ,(if vm-fsfemacs-p
! ["Manipulate Folders" ignore (ignore)]
! vm-menu-folders-menu)
! "---"
! ["Display Summary" vm-summarize t]
! ["Toggle Threading" vm-toggle-threads-display t]
! "---"
! ["Get New Mail" vm-get-new-mail (vm-menu-can-get-new-mail-p)]
! "---"
! ["Search" vm-isearch-forward vm-message-list]
! "---"
! ["Auto-Archive" vm-auto-archive-messages vm-message-list]
! ["Expunge" vm-expunge-folder vm-message-list]
! ["Expunge POP Messages" vm-expunge-pop-messages
! (vm-menu-can-expunge-pop-messages-p)]
! "---"
! ["Visit Folder" vm-visit-folder t]
! ["Visit POP Folder" vm-visit-pop-folder t]
! ["Revert Folder (back to disk version)" vm-revert-buffer
! (vm-menu-can-revert-p)]
! ["Recover Folder (from auto-save file)" vm-recover-file
! (vm-menu-can-recover-p)]
! ["Save" vm-save-folder (vm-menu-can-save-p)]
! ["Save As..." vm-write-file t]
! ["Quit" vm-quit-no-change t]
! ["Save & Quit" vm-quit t]
! "---"
! "---"
! ;; special string that marks the tail of this menu for
! ;; vm-menu-install-visited-folders-menu.
! "-------"
! ))
! (defvar vm-menu-dispose-menu
(let ((title (if (vm-menu-fsfemacs19-menus-p)
======================================================================
I specifically suspect the change in the usage of "`" instead of (list) and
the introduction of ",' and ",@" (instead of append?) in some of those
lists,
but the Emacs Lisp programming I've done has never used those constructs so I
don't exactly understand what's going on or what the motivation for the change
is and thus I merely bring it up and leave it for my elisp-betters to figure
out...:)
Thanks,
Chuck
ps - Notes on my setup, although I suspect it's irrelevant: XEmacs 21.4.6,
Solaris 2.7, Forte compiler, optimizations.
--
Charles K. Hines <ckh(a)requesttech.com> <chuck.hines(a)baesystems.com>
Principal Scientist at ReQuest Technologies Inc (
http://www.ReQuestTech.com/)
"You tell him and I will smack you. I will smack you like a
bad bad donkey, okay!" - Pepe in 'Muppets From Space'