From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: [PATCH] org-end-of-meta-data-and-drawers Date: Tue, 05 Jul 2011 11:05:37 +0200 Message-ID: <87d3hpw10e.fsf@gnu.org> References: <87vcwggcud.fsf@ericabrahamsen.net> <87k4c3z4sd.fsf@gnu.org> <87ei2alteb.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qe1Z9-0004Dz-Gf for emacs-orgmode@gnu.org; Tue, 05 Jul 2011 05:05:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qe1Z8-0005sl-Dk for emacs-orgmode@gnu.org; Tue, 05 Jul 2011 05:05:11 -0400 Received: from mail-fx0-f52.google.com ([209.85.161.52]:33605) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qe1Z8-0005sS-7w for emacs-orgmode@gnu.org; Tue, 05 Jul 2011 05:05:10 -0400 Received: by fxd18 with SMTP id 18so5190678fxd.39 for ; Tue, 05 Jul 2011 02:05:09 -0700 (PDT) In-Reply-To: <87ei2alteb.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Thu, 30 Jun 2011 20:46:36 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Abrahamsen Cc: emacs-orgmode@gnu.org Hi Eric, Eric Abrahamsen writes: > Thanks, but this introduces new problems for me -- the regexp matches on > every line, so it trucks along past both drawers and regular text to the > next heading, and stops there. I think the test for the drawer end is > necessary, which probably means the regexp grouping is also necessary… This should be fixed now. Thanks for the careful testing! > PS My own use case (another version of org word count) didn't rely on a > return value from the function, but it strikes me that, all else being > equal, a return value of point could be more useful than nothing… Yes, I left the (point) call at the end. Best, -- Bastien