On 8/7/12 8:50 AM, Stefan Monnier wrote: >> +(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. But then the code that defvars the variable needs to know about all the window systems we might use. It seems cleaner to have the window-system-specific code add the window-system-specific alist entries.