emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs-29 acd462b0306: ; Improve the use-package manual


From: Stefan Monnier
Subject: Re: emacs-29 acd462b0306: ; Improve the use-package manual
Date: Sun, 11 Dec 2022 09:24:08 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

>> >> I think we can drop either the window-system example or the system-type
>> >> example.  But I don't know which one is more useful.
>> >
>> > The one where there are two values, not one, I guess?
>> 
>> The examples we have are:
>> 
>>     :if (eq system-type 'gnu/linux)
>> 
>> and
>> 
>>     :if (memq window-system '(ns x))
>> 
>> Do you mean that the `window-system' one is the more useful one?
>
> Yes, because the other one is just a special case.

OTOH testing `window-system` in the init file is not a good idea.
It will fail to do what is expected when used in `early-init.el`, and
similarly when used with the daemon.
So we probably shouldn't promote the practice in our examples.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]