unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Constructed docstrings for closures
@ 2015-01-16 16:18 Stefan Monnier
  2015-01-16 16:46 ` David Kastrup
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Stefan Monnier @ 2015-01-16 16:18 UTC (permalink / raw)
  To: emacs-devel

When converting backquoted lambdas to closures, I've often bumped into
the following problem:

   `(lambda (foo bar)
      ,(concat "Toto is very " blabla ".")
      (code using foo and bar (and ',blabla as well)))

So code-wise, this can be replaced by a closure just fine, but doc-wise
we don't have a way to construct a different docstring for
every closure.

I'd like to lift this restriction by offering a new feature that lets us
do something like:

   (lambda (foo bar)
     <something-magical-here>
     (code using foo and bar (and blabla as well)))

and get the closure we want with the docstring we want.

Does anyone have an idea of what the <something-magical-here>
could/should be?


        Stefan



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-01-18 18:15 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-16 16:18 Constructed docstrings for closures Stefan Monnier
2015-01-16 16:46 ` David Kastrup
2015-01-16 16:51 ` Lars Magne Ingebrigtsen
2015-01-16 16:52   ` Lars Magne Ingebrigtsen
2015-01-16 20:54     ` Stefan Monnier
2015-01-16 23:07       ` Artur Malabarba
2015-01-18 12:04 ` Ted Zlatanov
2015-01-18 12:19   ` David Kastrup
2015-01-18 18:15     ` Ted Zlatanov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).