emacs-devel
[Top][All Lists]
Advanced

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

Re: Custom themes and simple variables


From: Chong Yidong
Subject: Re: Custom themes and simple variables
Date: Fri, 23 Oct 2009 13:35:55 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Ralf Angeli <address@hidden> writes:

> There is a built-in list of viewers the user can choose from.  And this
> list is not supposed to be changed by the user.  Therefore it is
> declared with `defvar'.  (The user can add or overwrite viewers in a
> separate, customizable variable which is defined with `defcustom'.)
>
> The idea now is that the list of predefined viewers only contains
> viewers for the chosen platform.  Per default viewers available on
> GNU/Linux would be offered but if a theme for MiKTeX on Windows were
> enabled, only viewers available on Windows would be displayed.

Why not automatically detect the system type in the initialization form
for either the defvar'ed list of built-in viewers, or the defcustom
default for the user viewer?  I.e., either

(defvar available-viewers (cond (eq system-type 'gnu/linux) ....))

or

(defcustom my-viewer (cond (eq system-type 'gnu/linux) ....))

depending on whichever makes more sense for the particular situation.




reply via email to

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