[Top][All Lists]

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

Re: Constructed docstrings for closures

From: Ted Zlatanov
Subject: Re: Constructed docstrings for closures
Date: Sun, 18 Jan 2015 13:15:29 -0500
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux)

On Sun, 18 Jan 2015 13:19:25 +0100 David Kastrup <address@hidden> wrote: 

DK> Ted Zlatanov <address@hidden> writes:
>> Would it be crazy to make it look like a `defun' docstring?
>> (lambda (foo bar)
>> "My docstring about FOO and BAR"
>> (code using foo and bar (and blabla as well)))

DK> Uh, that one has worked for decades already.  The point was that the
DK> docstring was to be _computed_ from a variable in the enclosing scope.

I had honestly never seen that in Emacs Lisp code, thanks for letting me
know (and sorry for the stupidity on my part). FWIW, I like Lars'
approach because it keeps things inside the lambda.


reply via email to

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