From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Joakim Hove Newsgroups: gmane.emacs.help Subject: Re: elisp question: how to walk through a variable like special-display-buffer-names Date: Tue, 13 Jan 2004 16:07:53 +0100 Organization: University of Bergen Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <4y7jzv6g52.fsf@skjellgran.ii.uib.no> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1074007511 26672 80.91.224.253 (13 Jan 2004 15:25:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Jan 2004 15:25:11 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 13 16:25:09 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AgQPk-0000Vz-00 for ; Tue, 13 Jan 2004 16:25:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AgQH6-0000RK-4D for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Jan 2004 10:16:12 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fi.sn.net!newsfeed2.fi.sn.net!news.eunet.no!uio.no!nntp.uib.no!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: skjellgran.ii.uib.no Original-X-Trace: toralf.uib.no 1074010196 95349 129.177.20.52 (13 Jan 2004 16:09:56 GMT) Original-X-Complaints-To: abuse@uib.no Original-NNTP-Posting-Date: 13 Jan 2004 16:09:56 GMT User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:HVRA33z168Cg9u+KkatxgHBQuEY= Original-Xref: shelby.stanford.edu gnu.emacs.help:120041 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:15983 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15983 leo 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 / \--------------------------------------------------------------------/