From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Constructed docstrings for closures Date: Sun, 18 Jan 2015 13:19:25 +0100 Message-ID: <8761c4b7si.fsf@fencepost.gnu.org> References: <87mw5g2t3g.fsf@lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1421583574 4622 80.91.229.3 (18 Jan 2015 12:19:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 Jan 2015 12:19:34 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 18 13:19:33 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YCopH-0007Ra-Rv for ged-emacs-devel@m.gmane.org; Sun, 18 Jan 2015 13:19:31 +0100 Original-Received: from localhost ([::1]:33298 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCopG-0005dh-Ok for ged-emacs-devel@m.gmane.org; Sun, 18 Jan 2015 07:19:30 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36231) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCopD-0005dc-ET for emacs-devel@gnu.org; Sun, 18 Jan 2015 07:19:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YCopC-0006rE-Ir for emacs-devel@gnu.org; Sun, 18 Jan 2015 07:19:27 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58363) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCopC-0006rA-GM for emacs-devel@gnu.org; Sun, 18 Jan 2015 07:19:26 -0500 Original-Received: from localhost ([127.0.0.1]:37306 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCopC-00022e-4v for emacs-devel@gnu.org; Sun, 18 Jan 2015 07:19:26 -0500 Original-Received: by lola (Postfix, from userid 1000) id B5303DF3AE; Sun, 18 Jan 2015 13:19:25 +0100 (CET) In-Reply-To: <87mw5g2t3g.fsf@lifelogs.com> (Ted Zlatanov's message of "Sun, 18 Jan 2015 07:04:03 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:181400 Archived-At: Ted Zlatanov writes: > On Fri, 16 Jan 2015 11:18:26 -0500 Stefan Monnier > wrote: > > SM> I'd like to lift this restriction by offering a new feature that lets us > SM> do something like: > > SM> (lambda (foo bar) > SM> > SM> (code using foo and bar (and blabla as well))) > > SM> and get the closure we want with the docstring we want. > > SM> Does anyone have an idea of what the > SM> could/should be? > > 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))) Uh, that one has worked for decades already. The point was that the docstring was to be _computed_ from a variable in the enclosing scope. -- David Kastrup