emacs-devel
[Top][All Lists]
Advanced

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

Re: doc-view support for bookmark.el


From: Kim F. Storm
Subject: Re: doc-view support for bookmark.el
Date: Sun, 30 Dec 2007 01:34:34 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>>> cleanest thing would probably be an association list:
>>> 
>>> '((buffer BUFFER) (point POINT))
>>> 
>
>> If you decide to change this, please use a plist, as in
>
>>    '(:buffer BUFFER :point POINT ...)
>
> Why?

Alists certainly are more generally useful and versatile, but for this
kind of values, I find plists + keywords much simpler to use and
understand than alists.

E.g. it's trivial to make such a value:

     (list :buffer (current-buffer) :point (point))

However, if you decide an alist is better, shouldn't it be:

 '((buffer . BUFFER) (point . POINT))

using conses rather than lists as values ?

-- 
Kim F. Storm <address@hidden> http://www.cua.dk





reply via email to

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