|
From: | Stefan Monnier |
Subject: | Re: [PATCH 9/9] Detect window-system from display name |
Date: | Tue, 07 Aug 2012 11:50:19 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
> +(defvar display-format-alist nil > + "Alist of patterns to decode display names. > +The car of each entry is a regular expression matching a display > +name string. The cdr is a symbol giving the window-system that > +handles the corresponding kind of display.") [...] > +(add-to-list 'display-format-alist '("\\`ns\\'" . ns)) [...] > +(add-to-list 'display-format-alist '("\\`windows\\'" . w32)) [...] > +(add-to-list 'display-format-alist '("\\`[^:]*:[0-9]+\\(\\.[0-9]+\\)?\\'" . > x)) Better just put all three entries directly in the defvar. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |