help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: elisp question: how to walk through a variable like special-display-


From: Joakim Hove
Subject: Re: elisp question: how to walk through a variable like special-display-buffer-names
Date: Tue, 13 Jan 2004 16:07:53 +0100
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

leo <leo@bella.local> writes:

>i want to walk through the list in special-display-buffer-names (and
>special-display-regexps), in order to find out if the left parameter is
>set in the contained alist.

Well,

I personally like (dolist) a lot:

(require 'cl)
(dolist (el list)
   ;; do something with el
   (let ((buffer (car el))
         (alist  (cdr el)))     
    ;;
    ;; But then ...
    ;;
    )) 

I dont understand what you mean with 'contained alist' - but you might
need the assoc function.


HTH - Joakim

-- 
  /--------------------------------------------------------------------\
 / Joakim Hove  / hove@bccs.no  /  (55 5) 84076       |                 \
 | Unifob AS, Avdeling for Beregningsvitenskap (BCCS) | Stabburveien 18 |
 | CMU                                                | 5231 Paradis    |
 \ Thormøhlensgt.55, 5020 Bergen.                     | 55 91 28 18     /
  \--------------------------------------------------------------------/


reply via email to

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