Ar an ceathrú lá de mí Méan Fómhair, scríobh Steve Youngs:
* Aidan Kehoe <kehoea(a)parhasard.net> writes:
> Ar an dara lá de mí Méan Fómhair, scríobh Steve Youngs:
>> APPROVE 21.5 RECOMMEND 21.4
>> This patch optimises #'featurep for the cases...
>> (featurep 'xemacs) and (featurep 'sxemacs)
>> ...making the former be always t and the latter be nil.
> The latter behaviour is inappropriate, isn’t it?
Not at all. You don't want (featurep 'sxemacs) returning t on XEmacs do
Nope. But it shouldn’t be optimised away to nil if the code is to run on
SXEmacs, though! Test case, with your patch applied to XEmacs:
$ echo "(if (featurep 'sxemacs) (message \"in SXEmacs\") (message
\"not\"))" > /tmp/whatever.el
$ ~/xemacs-21.5/src/xemacs -batch -f batch-byte-compile /tmp/whatever.el
$ ~/sxemacs-22.1.6/src/sxemacs -batch -l /tmp/whatever.elc
This same code in SXEmacs give t for both. The intention is so that
_can_ write SXEmacs only code if you want to and not have problems with
it on XEmacs.
On the quay of the little Black Sea port, where the rescued pair came once
more into contact with civilization, Dobrinton was bitten by a dog which was
assumed to be mad, though it may only have been indiscriminating. (Saki)
XEmacs-Patches mailing list