From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#7834: 24.0.50; doc of `put-image' Date: Fri, 15 Jul 2011 10:42:54 -0400 Message-ID: References: <2A56F0D4658C4952B1A8CA2ED7F902C2@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1310742040 25277 80.91.229.12 (15 Jul 2011 15:00:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 15 Jul 2011 15:00:40 +0000 (UTC) Cc: 7834@debbugs.gnu.org To: Lars Magne Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 15 17:00:36 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QhjsU-0004IZ-5w for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Jul 2011 17:00:30 +0200 Original-Received: from localhost ([::1]:40259 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhjsS-0003IR-L8 for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Jul 2011 11:00:28 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43475) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qhjcc-00071r-EF for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2011 10:44:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QhjcZ-0000F5-FZ for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2011 10:44:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56428) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhjcZ-0000Eo-5c for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2011 10:44:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QhjcY-0002Oe-IL; Fri, 15 Jul 2011 10:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Jul 2011 14:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7834 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7834-submit@debbugs.gnu.org id=B7834.13107409859117 (code B ref 7834); Fri, 15 Jul 2011 14:44:02 +0000 Original-Received: (at 7834) by debbugs.gnu.org; 15 Jul 2011 14:43:05 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qhjbc-0002Mz-CU for submit@debbugs.gnu.org; Fri, 15 Jul 2011 10:43:04 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QhjbY-0002MT-LL for 7834@debbugs.gnu.org; Fri, 15 Jul 2011 10:43:03 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAOlQIE5MCqt8/2dsb2JhbABTp2N4iHrCVYY6BJ8lhDA X-IronPort-AV: E=Sophos;i="4.65,535,1304308800"; d="scan'208";a="126015308" Original-Received: from 76-10-171-124.dsl.teksavvy.com (HELO ceviche.home) ([76.10.171.124]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 15 Jul 2011 10:42:54 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 56776660D5; Fri, 15 Jul 2011 10:42:54 -0400 (EDT) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Thu, 14 Jul 2011 19:21:52 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 15 Jul 2011 10:44:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:49151 Archived-At: >> 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