From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mueen Nawaz Subject: Re: Question about searches (ultimately for agenda) Date: Fri, 18 Dec 2009 22:35:47 -0600 Message-ID: References: <22ED17FE-4FB4-4E3E-943A-7B6B6FF92AAF@gmail.com> <49C210B9-FBF3-4B6F-B86A-223A326B25DC@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NLr3l-0000bf-GR for emacs-orgmode@gnu.org; Fri, 18 Dec 2009 23:36:53 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NLr3i-0000ZN-0x for emacs-orgmode@gnu.org; Fri, 18 Dec 2009 23:36:53 -0500 Received: from [199.232.76.173] (port=43154 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NLr3h-0000ZJ-Oq for emacs-orgmode@gnu.org; Fri, 18 Dec 2009 23:36:49 -0500 Received: from lo.gmane.org ([80.91.229.12]:54398) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NLr3h-0004nJ-Jq for emacs-orgmode@gnu.org; Fri, 18 Dec 2009 23:36:49 -0500 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NLr3e-0002O8-3C for emacs-orgmode@gnu.org; Sat, 19 Dec 2009 05:36:46 +0100 Received: from c-98-228-137-161.hsd1.il.comcast.net ([98.228.137.161]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 19 Dec 2009 05:36:46 +0100 Received: from mueen by c-98-228-137-161.hsd1.il.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 19 Dec 2009 05:36:46 +0100 In-Reply-To: <49C210B9-FBF3-4B6F-B86A-223A326B25DC@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On 12/17/09 13:26, Carsten Dominik wrote: > Yes, so that the search only continues after that entry. But yes, you > are right, this can fail for the final entry in a file. > > Try > > '(when (org-entry-is-done) (outline-next-heading) (point)) Seems to work. >> Also, I'm pretty weak with Emacs Lisp. What does (point) do? Google's >> no help (obviously). > > Point returns the buffer position of he cursor, in this case the > position where the next entry starts. OK. I guess I don't understand why we need to know where the point is. Is this returning the value of the point in whatever buffer I am when I /execute/ the agenda command? Or is this more like the function is sweeping the point across all agenda files to find headlines? Or...?