Tassilo Horn <t...@gnu.org> writes:

> Mosè Giordano <m...@gnu.org> writes:
>
>>> But we could test (executable-find "tex") top-level and message a big
>>> fat warning if that returns nil, and we might also test `system-type'
>>> to give a Mac-specific warning.
>>
>> Please find attached a patch.
>
> Yes, looks good.  I'd go with
>
> (when (and (member ..)
>            (not (executable-find ...)))
>    ...)
>
> to have one layer of indentation less but that's just cosmetic.

For yet another layer less, use

(and (member ...)
     (not (executable-find ...))
     (error ...))

Since "when" only has a single clause, the two would be equivalent even
if error did return.

-- 
David Kastrup

_______________________________________________
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex

Reply via email to