emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: autoload and auto-compression-mode


From: Eli Zaretskii
Subject: Re: autoload and auto-compression-mode
Date: Fri, 13 Jan 2006 13:26:06 +0200

> Date: Mon, 09 Jan 2006 23:49:57 +0100
> From: "Roland Winkler" <address@hidden>
> 
> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]