emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 9/9] Detect window-system from display name


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



reply via email to

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