Article View: gnu.emacs.vm.bug
Article #381Re: void-function locate-file error in 8.0.2
From: newsspam5REMOVETHIS
Date: Wed, 15 Aug 2007 20:57
Date: Wed, 15 Aug 2007 20:57
66 lines
3461 bytes
3461 bytes
blueman <NOSPAM@nospam.com> writes:
> Just installed the Fedora rpm (8.0.2.482-4) for Fedora Core 6.
>
> Every time I try to vm-mail or vm-reply-to to an email I get the following
> error:
>
> Debugger entered--Lisp error: (void-function locate-file)
> locate-file("bzr.exe" ("/usr/kerberos/bin" "/home/kosowsky/bin"
> "/usr/local/b$
> vm-version()
> vm-mail-internal(nil nil nil)
> vm-mail()
> * call-interactively(vm-mail)
>
>
> I am using emacs 21.4.1.
> Is it possible that this is an xemacs function that is not found in
> gnu emacs?
It is there in Emacs 22 and XEmacs, but not in Emacs 21
This error should not happen unless you are running a development
version, i.e. if VM finds a .bzr directory in the directory ../
relative to the vm.el source file, but then it also should not
search for bzr ...
The following patch should fix it ...
Robert.
=== modified file 'lisp/vm-version.el'
--- lisp/vm-version.el 2007-07-18 00:35:58 +0000
+++ lisp/vm-version.el 2007-08-15 20:55:49 +0000
@@ -40,13 +40,15 @@
(let* ((f (locate-library "vm"))
(d (file-name-directory f))
(b (get-buffer " *vm-version*"))
- (devo (file-exists-p (expand-file-name ".bzr" (concat d "../"))))
- (bzr (or (locate-file "bzr.exe" exec-path)
- (locate-file "bzr.bat" exec-path)
- (locate-file "bzr" exec-path))))
+ (bzrdir (expand-file-name ".bzr" (concat d "../")))
+ (bzr (and (file-exists-p bzrdir)
+ (functionp 'locate-file)
+ (or (locate-file "bzr.exe" exec-path)
+ (locate-file "bzr.bat" exec-path)
+ (locate-file "bzr" exec-path)))))
(setq default-directory d)
(erase-buffer)
- (cond ((and devo bzr
+ (cond ((and bzr
(condition-case nil
(= 0 (call-process bzr nil b))
(error nil)))
@@ -55,7 +57,9 @@
(call-process bzr nil b nil "--no-aliases" "--no-plugins" "nick")
(insert "-")
(call-process bzr nil b nil "--no-aliases" "--no-plugins" "revno"))
- ((and (not devo) (locate-library "vm-revno") (load-library "vm-revno"))
+ ((and (not bzr)
+ (locate-library "vm-revno")
+ (load-library "vm-revno"))
(insert vm-revno))
(t
(insert "?bug?")
Technical Details
Message-ID:
<85tzr0zfb0.fsf@robf.de>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!feeder3.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!62.216.30.27.MISMATCH!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed.freenet.de!newsfeed.r-kom.de!news.m-online.net!not-for-mailReferences:
<m2absvxxo0.fsf@consult.pretender>Show Full Headers
Complete Article Headers
X-Google-Thread: f6829,64fc8c61e7cca85 X-Google-Attributes: gidf6829,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!feeder3.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!62.216.30.27.MISMATCH!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed.freenet.de!newsfeed.r-kom.de!news.m-online.net!not-for-mail From: newsspam5REMOVETHIS@robf.de Newsgroups: gnu.emacs.vm.bug Subject: Re: void-function locate-file error in 8.0.2 Date: Wed, 15 Aug 2007 22:57:39 +0200 Organization: (posted via) M-net Telekommunikations GmbH Lines: 68 Message-ID: <85tzr0zfb0.fsf@robf.de> References: <m2absvxxo0.fsf@consult.pretender> NNTP-Posting-Host: ppp-82-135-84-71.dynamic.mnet-online.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: svr7.m-online.net 1187211467 22607 82.135.84.71 (15 Aug 2007 20:57:47 GMT) X-Complaints-To: abuse@m-online.net NNTP-Posting-Date: Wed, 15 Aug 2007 20:57:47 +0000 (UTC) User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.19 (linux) Cancel-Lock: sha1:UxFwiWyKDCZ7xGGDyreXrl5blgk=