[Q] Re: [xemacs-base] Add byte-compiler warning control library
Steve Youngs
steve at sxemacs.org
Wed Mar 14 08:53:28 EDT 2007
[ cross-posted and MFT set to xemacs-beta list ]
* Stephen J Turnbull <stephen at xemacs.org> writes:
> Steve Youngs writes:
>> but 2 -- package-suppress doesn't seem to work. I just built XEmacs
>> 21.5 CVS HEAD, and I see no evidence that `package-suppress'
>> is doing anything.
> AFAICT what package-suppress is designed to do is to prevent autoloads
> of core libraries from being overwritten by the package version, and
> that's all.
Well, I was under the impression that `package-suppress' would
completely suppress a given library in the packages. With all
attempts to access said library (apart from an explicit `find-file'
maybe) resulting in either the core lisp version if exists or error.
That's why I say `package-suppress' is broken. In a fresh -vanilla
21.5...
(locate-library "regexp-opt")
=> "/usr/local/lib/xemacs/xemacs-packages/lisp/xemacs-base/regexp-opt.elc"
And `find-library', `find-function', `load', `require' all seem to use
the regexp-opt.elc from packages.
> So in a freshly executed XEmacs 21.5, you should see that
> regexp-opt autoloads refer to the core version of regexp-opt.
How do I do that?
> What would you expect to see?
I'd expect to see everything that returns an elisp library to never
return a suppressed one. I'd expect to see everything that loads an
elisp library to never load a suppressed one.
> I guess we'd also want (require 'regexp-opt) to find the core
> version if the package is suppressed?
Definitely.
> I'm not sure that that is correct though; the package version
> should presumably be used when explicitly requiring from another
> package.
That sounds like crazy talk to me. :-)
I'd really like to hear what Ben has to say, seeing as though he was
the one who wrote the suppression stuff.
--
|---<Steve Youngs>---------------<GnuPG KeyID: A94B3003>---|
| SXEmacs - The only _______ you'll ever need. |
| Fill in the blank, yes, it's THAT good! |
|------------------------------------<steve at sxemacs.org>---|
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 312 bytes
Desc: not available
Url : http://lists.xemacs.org/pipermail/xemacs-beta/attachments/20070314/32276d66/attachment.pgp
More information about the XEmacs-Beta
mailing list