Subject: bug#15189: 24.3.50; display-buffer does not work well with custom frames.

From: Kevin Rodgers <[email-masked]>
Date: Tue, 27 Aug 2013 21:59:31 -0600

On 8/27/13 12:47 AM, martin rudalics wrote:
> BTW you should also make code like
>
> (if (and
> (not (equal "MAIN" (frame-parameter frame 'name)))
> (not (equal "SYSTEM" (frame-parameter frame 'name)))
> (not (equal "ORG" (frame-parameter frame 'name)))
> (not (equal "WANDERLUST" (frame-parameter frame 'name)))
> (not (equal "MISCELLANEOUS" (frame-parameter frame 'name))) )
>
> more readable by defining a variable like
>
> (defvar my-regexp "^\\(?:MAIN\\|SYSTEM\\|ORG\\|WANDERLUST\\| MISCELLANEOUS\\)$"
> "My doc-string.")
>
> and using
> (not (string-match my-regexp (frame-parameter frame 'name)))
>
> instead.

Or:

(defvar my-list '("MAIN" "SYSTEM" "ORG" "WANDERLUST" "MISCELLANEOUS")
   "My doc string.")
...
(not (member (frame-parameter frame 'name) my-string))

-- 
Kevin Rodgers
Denver, Colorado, USA