From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Lars Magne Ingebrigtsen <larsi@gnus.org>
Cc: 7834@debbugs.gnu.org
Subject: bug#7834: 24.0.50; doc of `put-image'
Date: Fri, 15 Jul 2011 10:42:54 -0400 [thread overview]
Message-ID: <jwvy5zz7ghv.fsf-monnier+INBOX@gnu.org> (raw)
In-Reply-To: <m3oc0wu6a7.fsf@quimbies.gnus.org> (Lars Magne Ingebrigtsen's message of "Thu, 14 Jul 2011 19:21:52 +0200")
>> 2. Why not have `put-image' return the overlay itself? That would
>> simplify code such as that of `image-dired-dired-toggle-marked-thumbs',
>> which, just after calling `put-image', tries to examine all overlays at
>> point just to find the right one - the one with a `put-image' property.
> That's a good idea. Stefan, however, is really against primarily
> side-effect-ey functions returning usable values, so we should check
> with him first.
This function creates a new object, and that's a good idea to return it.
The cases to which I'm opposed is when the function returns something
which the caller knows even before calling the function.
Stefan
next prev parent reply other threads:[~2011-07-15 14:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-12 22:43 bug#7834: 24.0.50; doc of `put-image' Drew Adams
2011-07-14 17:21 ` Lars Magne Ingebrigtsen
2011-07-15 14:42 ` Stefan Monnier [this message]
2011-07-15 14:51 ` Lars Magne Ingebrigtsen
2011-07-15 21:01 ` Stefan Monnier
2011-07-17 17:49 ` Lars Magne Ingebrigtsen
2012-04-10 2:35 ` Lars Magne Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvy5zz7ghv.fsf-monnier+INBOX@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=7834@debbugs.gnu.org \
--cc=larsi@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).