[Top][All Lists]

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

Re: autoload and auto-compression-mode

From: Roland Winkler
Subject: Re: autoload and auto-compression-mode
Date: Fri, 13 Jan 2006 14:29:39 +0100

On Fri Jan 13 2006 Eli Zaretskii wrote:
> 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.

Certainly, I can find various ways to work around this problem.
However, there are two things that suprise me:

- Older versions of CVS emacs (built a couple of months ago) do not
  try to load ~/bar/foo.gz (even if ~/foo/foo.el doesn't exist at

  (I have something like ~/bar/foo.gz in my load-path for several
  years. It was never a problem.)

- Even my latest build of CVS emacs doesn't try to load an
  uncompressed file ~/bar/foo.

  Indeed, until today I wasn't aware that the last resort of
  `(auto)load' was to try to use the unmodified FILE name. I do not
  know what is supposed to happen when a directory at the beginning
  of the load-path contains FILE and another directory at the end of
  the load-path contains FILE.el. Apperently, emacs will load
  FILE.el, but it will load FILE if FILE is compressed. I find this
  a bit confusing / inconsistent.


reply via email to

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