From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: rydis (Martin Rydstr|m) @CD.Chalmers.SE Newsgroups: gmane.emacs.help Subject: Re: elisp question: how to walk through a variable like special-display-buffer-names Date: 14 Jan 2004 06:23:28 +0100 Organization: Chalmers University of Technology, Sweden Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <4y7jzv6g52.fsf@skjellgran.ii.uib.no> Reply-To: rydis+replies@cd.chalmers.se NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1074058389 5036 80.91.224.253 (14 Jan 2004 05:33:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 14 Jan 2004 05:33:09 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 14 06:33:05 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 1AgdeL-0006I8-00 for ; Wed, 14 Jan 2004 06:33:05 +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 1AgddG-0001ib-Ll for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Jan 2004 00:31:58 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news.algonet.se!'newsfeed1.telenordia.se'!algonet!newsfeed.sunet.se!news01.sunet.se!dd.chalmers.se!cd.chalmers.se!rydis Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: basil.cd.chalmers.se X-Attribution: mr X-Url: http://www.cd.chalmers.se/~rydis/ Mail-Copies-To: rydis+copies@cd.chalmers.se User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Original-Xref: shelby.stanford.edu gnu.emacs.help:120072 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:16015 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:16015 "leo" writes: > 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. Does (defun leo-get-sdbn-param (buffer-name parameter-symbol) (cdr (assoc parameter-symbol (cdr (assoc buffer-name special-display-buffer-names))))) help any? Regards, 'mr -- [Emacs] is written in Lisp, which is the only computer language that is beautiful. -- Neal Stephenson, _In the Beginning was the Command Line_