From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: Please try Pmail Date: Wed, 21 Jan 2009 23:12:52 -0500 Message-ID: References: <87r6303c31.fsf@cyd.mit.edu> <87ljt83svc.fsf@cyd.mit.edu> <87eiyyvz2h.fsf@cyd.mit.edu> <873afdti10.fsf@cyd.mit.edu> <87zlhkitpv.fsf@cyd.mit.edu> <87bpu0uzh7.fsf@cyd.mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1232597605 7157 80.91.229.12 (22 Jan 2009 04:13:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Jan 2009 04:13:25 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: "Chong Yidong" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 22 05:14:37 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LPqxg-0003Ww-0F for ged-emacs-devel@m.gmane.org; Thu, 22 Jan 2009 05:14:36 +0100 Original-Received: from localhost ([127.0.0.1]:41950 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPqwO-0005bg-Gs for ged-emacs-devel@m.gmane.org; Wed, 21 Jan 2009 23:13:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LPqwJ-0005ap-DW for emacs-devel@gnu.org; Wed, 21 Jan 2009 23:13:11 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LPqwI-0005Zq-5j for emacs-devel@gnu.org; Wed, 21 Jan 2009 23:13:11 -0500 Original-Received: from [199.232.76.173] (port=49555 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPqwI-0005Zn-2X for emacs-devel@gnu.org; Wed, 21 Jan 2009 23:13:10 -0500 Original-Received: from mail.g-wis.com ([204.250.154.18]:1278) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LPqwG-0005IV-N8; Wed, 21 Jan 2009 23:13:08 -0500 thread-index: Acl8R7YYbxr/Tl/YRAKXU5vwUXdPjw== X-Received-From-Address: 69.38.23.210 X-Envelope-From: monnier@iro.umontreal.ca X-Envelope-To: emacs-devel@gnu.org, rms@gnu.org, cyd@stupidchicken.com, monnier@iro.umontreal.ca Original-Received: from ceviche.home ([69.38.23.210]) by mail.g-wis.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 21 Jan 2009 20:12:58 -0800 Original-Received: by ceviche.home (Postfix, from userid 20848) id C91B2B400C; Wed, 21 Jan 2009 23:12:52 -0500 (EST) Content-Class: urn:content-classes:message Importance: normal Priority: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4325 In-Reply-To: <87bpu0uzh7.fsf@cyd.mit.edu> (Chong Yidong's message of "Wed, 21Jan 2009 16:21:40 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-OriginalArrivalTime: 22 Jan 2009 04:12:58.0851 (UTC) FILETIME=[B5A0DB30:01C97C47] X-detected-operating-system: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:108067 Archived-At: >> I don't propose a hook, but a buffer-local *-function (as opposed to >> *-functions or *-hook). I.e. a single function, just like your >> proposal, except it's stored in the final "returned" buffer, rather than >> returned explicitly. > You mean something like this? [...] > After `write-region' completes, Emacs calls the function stored in > `write-region-post-annotation-function', once for each buffer that was > current when building the annotations (i.e., at least once if > `write-region-annotate-functions' is non-nil). This function is called > with no arguments, and with that buffer current. */); Well, that's a possibility. You could also just say "run the write-region-post-annotation-function of the last buffer" and let the annotation code do the work of accumulating the intermediate write-region-post-annotation-functions in the last buffer's write-region-post-annotation-function. After all, this corner case never happens AFAIK, so there's no point spending much time on it. Stefan