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: Martin Rydstr|m
Subject: Re: elisp question: how to walk through a variable like special-display-buffer-names
Date: 14 Jan 2004 06:23:28 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

"leo" <halloleo@noospaam.myrealbox.com> 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_


reply via email to

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