> Date: Mon, 09 Jan 2006 23:49:57 +0100
> From: "Roland Winkler" <[EMAIL PROTECTED]>
> 
> The CVS emacs I installed today gives me a bug with autoload and
> auto-compression-mode that can be reproduced as follows:
> 
> cat > ~/foo/foo.el << EOF
> (defun foo () (interactive) (message "Hello world."))
> EOF
> 
> echo "Hello world" | gzip -c > ! ~/bar/foo.gz
> 
> Then start a fresh emacs --no-init-file and evaluate the following:
> 
> (auto-compression-mode 1)
> (setq load-path (cons "~/foo" load-path))
> (setq load-path (cons "~/bar" load-path))
> (autoload 'foo "foo" nil t)
> (foo)
> 
> When the command foo is evaluated, emacs tries to load the file
> ~/bar/foo.gz. The last CVS emacs I was using (downloaded ~3 months
> ago) did not show this behavior.

This is not a bug, it's an intended behavior (or maybe an unintended
misfeature of intended behavior ;-).  Since ~/bar is before ~/foo in
your load-path, Emacs sees ~/bar/foo.gz first.  And because
auto-compression-mode is now on by default, the fact that it is
compressed is not a reason not to load it.


_______________________________________________
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to