Mercurial > emacs
comparison lisp/emacs-lisp/bytecomp.el @ 92373:abf955d20dfa
(byte-compile-maybe-guarded): Restore code commented out 2007-11-10.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Sat, 01 Mar 2008 20:07:28 +0000 |
parents | 5ed3a8ae2d11 |
children | 9e5010f3f5a9 |
comparison
equal
deleted
inserted
replaced
92372:0418e6ff8eb2 | 92373:abf955d20dfa |
---|---|
3560 ;; Suppress all warnings, for code not used in Emacs. | 3560 ;; Suppress all warnings, for code not used in Emacs. |
3561 ;; FIXME: by the time this is executed the `featurep' | 3561 ;; FIXME: by the time this is executed the `featurep' |
3562 ;; emacs/xemacs tests have been optimized away, so this is | 3562 ;; emacs/xemacs tests have been optimized away, so this is |
3563 ;; not doing anything useful here, is should probably be | 3563 ;; not doing anything useful here, is should probably be |
3564 ;; moved to a different place. | 3564 ;; moved to a different place. |
3565 ;; (byte-compile-warnings | 3565 ;; It is doing _something_. If this is commented out, then |
3566 ;; (if (member ,condition '((featurep 'xemacs) | 3566 ;; compiling a file which requires another file which |
3567 ;; (not (featurep 'emacs)))) | 3567 ;; defines a defsubst that uses (featurep 'xemacs) results |
3568 ;; nil byte-compile-warnings)) | 3568 ;; in a spurious compilation warning about the xemacs code. Eg: |
3569 ;; (defsubst foo () (if (featurep 'xemacs) (setq foo t))) | |
3570 ;; where foo is a free variable. | |
3571 (byte-compile-warnings | |
3572 (if (member ,condition '((featurep 'xemacs) | |
3573 (not (featurep 'emacs)))) | |
3574 nil byte-compile-warnings)) | |
3569 ) | 3575 ) |
3570 (unwind-protect | 3576 (unwind-protect |
3571 (progn ,@body) | 3577 (progn ,@body) |
3572 ;; Maybe remove the function symbol from the unresolved list. | 3578 ;; Maybe remove the function symbol from the unresolved list. |
3573 (dolist (fbound fbound-list) | 3579 (dolist (fbound fbound-list) |