From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ralf Angeli Newsgroups: gmane.emacs.devel Subject: Re: Custom themes and simple variables Date: Fri, 23 Oct 2009 19:55:01 +0200 Message-ID: <87aaziov0q.fsf@caeruleus.net> References: <87ocny831r.fsf@stupidchicken.com> <87fx9aoxal.fsf@caeruleus.net> <873a5arp1g.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1256320531 23050 80.91.229.12 (23 Oct 2009 17:55:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Oct 2009 17:55:31 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 23 19:55:24 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N1OMB-0004ye-Gm for ged-emacs-devel@m.gmane.org; Fri, 23 Oct 2009 19:55:19 +0200 Original-Received: from localhost ([127.0.0.1]:56371 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N1OMB-0004wS-4y for ged-emacs-devel@m.gmane.org; Fri, 23 Oct 2009 13:55:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N1OM6-0004ug-5j for emacs-devel@gnu.org; Fri, 23 Oct 2009 13:55:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N1OM1-0004or-6A for emacs-devel@gnu.org; Fri, 23 Oct 2009 13:55:13 -0400 Original-Received: from [199.232.76.173] (port=53161 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N1OM0-0004ob-UA for emacs-devel@gnu.org; Fri, 23 Oct 2009 13:55:08 -0400 Original-Received: from moutng.kundenserver.de ([212.227.17.9]:51434) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N1OM0-0006rQ-Ac for emacs-devel@gnu.org; Fri, 23 Oct 2009 13:55:08 -0400 Original-Received: from photon (p54A50C22.dip0.t-ipconnect.de [84.165.12.34]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0MOkKM-1N7SM52gti-005ZzV; Fri, 23 Oct 2009 19:55:05 +0200 In-Reply-To: <873a5arp1g.fsf@stupidchicken.com> (Chong Yidong's message of "Fri, 23 Oct 2009 13:35:55 -0400") X-Provags-ID: V01U2FsdGVkX1+Xfbz434j04v480ih+0BwpGpUEwXfntf2bjPT FAcJGORbT8oqdza9UAcR4ug9m0kajWecTE2/SsdI3serzKIPM6 Osl3z4Y2bP5v2hNhNFYrA== X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:116340 Archived-At: * Chong Yidong (2009-10-23) writes: > Ralf Angeli writes: > >> 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. The operating system is not the only condition influencing the list of viewers (and at least one additional internal variable). Another important one is the TeX system in use. And I could imagine that there are even people with multiple TeX systems installed who'd like to be able to switch between them. Custom themes would make that quite convenient. Currently something like this is used in the files users can require to activate platform-specific settings: (unless (get 'TeX-kpathsea-path-delimiter 'saved-value) (setq TeX-kpathsea-path-delimiter nil)) It's working but it's a bit less convenient. -- Ralf