* Hrvoje Niksic <hniksic(a)xemacs.org> writes:
I'm not sure if this is Debian-specific, but when I press C-h n,
I get
"ERC news":
ERC NEWS -*-
outline -*-
[...]
Since I don't even know what "ERC" is, I was
unpleasantly surprised
by this. I assume the problem is that `view-emacs-news' looks up the
NEWS file using `locate-data-file' (which used to be the advertised
way of finding such files), but (locate-data-file "NEWS") returns
"/usr/share/xemacs21/xemacs-packages/etc/erc/NEWS".
Two possible fixes...
1) ...
Index: packages.el
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lisp/packages.el,v
retrieving revision 1.53
diff -u -p -u -r1.53 packages.el
--- packages.el 3 Feb 2005 23:56:53 -0000 1.53
+++ packages.el 9 Oct 2005 13:32:35 -0000
@@ -334,7 +334,7 @@ If no DIR-LIST is supplied, it defaults
"Locate a file in a search path DIR-LIST (a list of directories).
If no DIR-LIST is supplied, it defaults to `data-directory-list'.
This function is basically a wrapper over `locate-file'."
- (locate-file name (or dir-list data-directory-list)))
+ (locate-file name (or dir-list (nreverse data-directory-list))))
;; Path setup
2) ...
Index: help.el
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lisp/help.el,v
retrieving revision 1.44
diff -u -p -u -r1.44 help.el
--- help.el 31 Jan 2005 20:08:45 -0000 1.44
+++ help.el 9 Oct 2005 13:35:12 -0000
@@ -838,7 +838,7 @@ of the key sequence that ran this comman
(defun view-emacs-news ()
"Display info on recent changes to XEmacs."
(interactive)
- (Help-find-file (locate-data-file "NEWS")))
+ (Help-find-file (expand-file-name "NEWS" data-directory)))
(defun xemacs-www-page ()
"Go to the XEmacs World Wide Web page."
Which one do you want? #2 gives the least surprises :-)
This problem will probably recur with other "data files" of
the same
name in different directories.
Sure does.
--
|---<Steve Youngs>---------------<GnuPG KeyID: A94B3003>---|
| I am Dyslexic of Borg. |
| Fusistance is retile. Your arse will be laminated. |
|------------------------------------<steve(a)sxemacs.org>---|