[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: locate-library doesn't find new compressed el.gz files
From: |
Andrew M. Scott |
Subject: |
Re: locate-library doesn't find new compressed el.gz files |
Date: |
Wed, 2 Nov 2005 10:26:39 -0700 |
>>>>> "Romain" == Romain Francoise <address@hidden> writes:
Romain> "Andrew M. Scott" <address@hidden> writes:
>> (locate-library "cc-mode.el") erroneously returns nil, not
>> noticing that the cc-mode.el.gz exists.
Romain> Is that a problem in practice?
Yes, to the extent that the syntax (locate-library "cc-mode.el")
*used* to work up to the point that the *.el's were compressed. Here
are two cases I can think of:
1. My fingers sometimes add the .el extension without my asking. I
often load .el's, as they are easier to debug. That's what prompted
this original bug-report.
2. If someone has legacy ~/.emacs code like the following
example, but without the optional 2nd arg of nil, a move from
Emacs-21.3 -> Emacs-22 would unexpected not load/execute their code
fragment:
(when (locate-library "specman-mode" nil)
(progn
(autoload 'specman-mode "specman-mode" "Specman code editing mode" t)
(add-to-list 'auto-mode-alist '("\\.e\\'" . specman-mode))
(add-to-list 'auto-mode-alist '("\\.e3\\'" . specman-mode))
(add-to-list 'auto-mode-alist '("\\.load\\'" . specman-mode))
(add-to-list 'auto-mode-alist '("\\.ecom\\'" . specman-mode))
(add-to-list 'auto-mode-alist '("\\.etst\\'" . specman-mode))
))
Thanks,
Andy Scott