On Saturday, April 26, 2008 at 03:17:38, Stephen Turnbull wrote:
[...]
Fourth, when started VM immediately errors and is unable to set up
the summary buffer because the defcustoms `vm-configure-pixmapdir'
and `vm-configure-datadir' default to nil, and then are passed as
the FILENAME argument to expand-file-name. The following patch
illustrates one way to work around this problem.
--- vm-vars.el~ 2008-04-10 06:01:56.000000000 +0900
+++ vm-vars.el 2008-04-26 02:48:53.000000000 +0900
@@ -3154,8 +3154,10 @@
(defun vm-pixmap-directory ()
(interactive)
(let* ((vm-dir (file-name-directory (locate-library "vm")))
- (image-dirs (list (expand-file-name vm-configure-pixmapdir)
- (expand-file-name vm-configure-datadir)
+ (image-dirs (list (and vm-configure-pixmapdir
+ (expand-file-name vm-configure-pixmapdir))
+ (and vm-configure-datadir
+ (expand-file-name vm-configure-datadir))
(expand-file-name "pixmaps" vm-dir)
(expand-file-name "../pixmaps" vm-dir)
(expand-file-name (concat data-directory
"vm/"))))
Finally, if I understand the above, VM is not going to be able to
find its pixmap directory. The two vm-configure-* variables are
nil; in the XEmacs package architecture, the pixmaps will be in
xemacs/etc/vm, not in xemacs-packages/lisp/ or
xemacs-packages/lisp/vm, and data-directory will point to xemacs
binary's own data, not to package data.
So I should use (locate-data-directory "vm") if I guess it
right?
Robert
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta