unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Strange change in bytecmop.el
@ 2005-07-21 21:49 Stefan Monnier
  2005-07-21 23:12 ` Juanma Barranquero
  2005-07-22 22:52 ` Richard M. Stallman
  0 siblings, 2 replies; 20+ messages in thread
From: Stefan Monnier @ 2005-07-21 21:49 UTC (permalink / raw)


Regarding the change below:

	* emacs-lisp/bytecomp.el (byte-compile-and-recursion): New function.
	(byte-compile-and): Use byte-compile-and-recursion.
	(byte-compile-or-recursion): New function.
	(byte-compile-or): Use that.
	(byte-compile-if): Guard the else-clause too.
	(byte-compile-maybe-guarded): Handle (not (featurep 'emacs)).

the last part not only is strange because (featurep 'emacs) is never used
(since Emacs does not provide the `emacs' feature) but also because it tries
to handle (featurep 'xemacs) even though that's already handled in
byteopt.el where we do:

   (put 'featurep 'byte-optimizer 'byte-optimize-featurep)
   (defun byte-optimize-featurep (form)
     ;; Emacs-21's byte-code doesn't run under XEmacs anyway, so we can
     ;; safely optimize away this test.
     (if (equal '((quote xemacs)) (cdr-safe form))
         nil
       form))


-- Stefan

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2005-07-28 22:04 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-21 21:49 Strange change in bytecmop.el Stefan Monnier
2005-07-21 23:12 ` Juanma Barranquero
2005-07-22 19:43   ` Stefan Monnier
2005-07-22 22:52 ` Richard M. Stallman
2005-07-23 18:45   ` Stefan Monnier
2005-07-24 14:41     ` Richard M. Stallman
2005-07-24 16:44       ` David Kastrup
2005-07-25  1:43         ` Richard M. Stallman
2005-07-25  1:59           ` David Kastrup
2005-07-25 11:39             ` Robert J. Chassell
2005-07-25 12:51               ` David Kastrup
2005-07-25 16:03             ` Richard M. Stallman
2005-07-25 17:21               ` David Kastrup
2005-07-26  8:12             ` Juanma Barranquero
2005-07-26  8:44               ` David Kastrup
2005-07-26 10:09                 ` Juanma Barranquero
2005-07-26 12:38                   ` David Kastrup
2005-07-26 12:58                     ` Juanma Barranquero
2005-07-28 22:04                 ` Kim F. Storm
2005-07-24 14:41     ` Richard M. Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).