[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] absurd
From: |
Achim Gratz |
Subject: |
Re: [O] absurd |
Date: |
Mon, 10 Jun 2013 22:55:52 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Uwe Brauer writes:
> I don't understand:
>
> (defun my-test-if ()
> (interactive)
> (if (featurep 'xemacs)
> (message "Xemacs")
> (message "GNUS")))
>
>
> when executed in Xemacs returns Xemacs, when executed in GNU emacs returns
> GNUS.
Yes, but the byte-compiler has to compile both branches, since the if is
actually resolved at run-time. You'd need to use a compatibility macro
to make that decision at compile-time and only use the XEmacs branch.
That was once in Org, but later reverted by Bastien.
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
Wavetables for the Terratec KOMPLEXER:
http://Synth.Stromeko.net/Downloads.html#KomplexerWaves