[Q] Re: [xemacs-base] Add byte-compiler warning control library

Steve Youngs steve at sxemacs.org
Thu Mar 8 11:04:08 EST 2007


QUERY

* Stephen J Turnbull <stephen at xemacs.org> writes:

  > Because the code is currently duplicated in 21.5, no autoloads
  > are provided.  To move this code out of 21.5 would require
  > infrastructure to distribute packages with the core, something
  > I've been thinking about but haven't come up with a robust
  > scheme yet.

As SXEmacs also has these macros and uses them extensively throughout
its core lisp, how about adding a form like...

(when (and (fboundp #'with-fboundp)
	   (equal (file-name-nondirectory
		   (describe-symbol-find-file 'with-fboundp))
		  "bytecomp-runtime.elc"))
  (error "bytedecl not loaded: already implemented in your emacs"))

...to the top of bytedecl.el.  That way if any SXEmacs or XEmacs 21.5
user tries to load bytedecl they'll quickly see the error of their
ways.:-)

  > However, packages can `(require 'bytedecl)' and use them in 21.4

It might pay to encourage package authors (via bytedecl's commentary)
to use...

(unless (fboundp #'with-fboundp)
  (require 'bytedecl))

...as a further safeguard for 21.5 and SXEmacs users.

  > (lightly tested, painful to test because the only available corpus
  > of elisp that uses them heavily is 21.5 core).

They work fine in SXEmacs, so I doubt there'll be any problems for
XEmacs 21.4.

-- 
|---<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-patches/attachments/20070309/eb633c5d/attachment.pgp


More information about the XEmacs-Patches mailing list