all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: Ralf Angeli <angeli@caeruleus.net>
Cc: emacs-devel@gnu.org
Subject: Re: Custom themes and simple variables
Date: Fri, 23 Oct 2009 13:35:55 -0400	[thread overview]
Message-ID: <873a5arp1g.fsf@stupidchicken.com> (raw)
In-Reply-To: <87fx9aoxal.fsf@caeruleus.net> (Ralf Angeli's message of "Fri, 23 Oct 2009 19:05:54 +0200")

Ralf Angeli <angeli@caeruleus.net> 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	other threads:[~2009-10-23 17:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-22 21:11 Custom themes and simple variables Ralf Angeli
2009-10-23 16:53 ` Chong Yidong
2009-10-23 17:05   ` Ralf Angeli
2009-10-23 17:35     ` Chong Yidong [this message]
2009-10-23 17:55       ` Ralf Angeli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=873a5arp1g.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=angeli@caeruleus.net \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.