From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "leo" Newsgroups: gmane.emacs.help Subject: Re: elisp question: how to walk through a variable like special-display-buffer-names Date: Wed, 14 Jan 2004 10:58:48 +1100 Organization: Netspace Internet Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <4y7jzv6g52.fsf@skjellgran.ii.uib.no> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1074042475 12588 80.91.224.253 (14 Jan 2004 01:07:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 14 Jan 2004 01:07:55 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 14 02:07:47 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 1AgZVb-0003xA-00 for ; Wed, 14 Jan 2004 02:07:47 +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 1AgYUG-0002ue-Ck for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Jan 2004 19:02:20 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.mel.connect.com.au!news.netspace.net.au!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 49 Original-NNTP-Posting-Host: dsl-210-15-204-246.nsw.netspace.net.au Original-X-Trace: otis.netspace.net.au 1074038304 2280 210.15.204.246 (13 Jan 2004 23:58:24 GMT) Original-X-Complaints-To: usenet@otis.netspace.net.au Original-NNTP-Posting-Date: Tue, 13 Jan 2004 23:58:24 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Original-Xref: shelby.stanford.edu gnu.emacs.help:120067 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:16010 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:16010 i couldn't find joakim's direct reply post, that's why i answer to klaus' reply: "Klaus Berndl" wrote in message news:uk73vlvct.fsf@sdm.de... > On Tue, 13 Jan 2004, Joakim Hove wrote: > > > > > 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: >> > > (dolist (el list) > > ;; do something with el > > (let ((buffer (car el)) > > (alist (cdr el))) > > ;; > > ;; But then ... > > ;; > > )) ok, i just hoped that there might be a function in emacs for that: emacs has so many variables which contain lists of lists or regexps... but thanks for the tip with dolist! > > I dont understand what you mean with 'contained alist' - but you might > > need the assoc function. well, special-display-buffer-names can have the follwoing structure: '( (name-of-buffer1 (parameter1 . value_a) (parameter2 . value_b) ...) (name-of-buffer2 (parameter1 . value_c) (parameter2 . value_d) ...) (name-of-buffer2 (parameter1 . value_e) (parameter2 . value_f) ...) ...) and i want to pull out e.g. the value for parameter2 for a specific buffer name, say name-of-buffer2 with a function i feed with the parameter-symbol and the buffer-name. cheers, leo