From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subhan Tindall Subject: Re: Finding LAST copy of a given headline in a file Date: Thu, 25 Jul 2013 16:39:08 -0700 Message-ID: References: <20130725225148.GB9608@kuru.dyndns-at-home.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e013d10024a9cf904e25e88be Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53541) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2V7p-0006kz-4K for emacs-orgmode@gnu.org; Thu, 25 Jul 2013 19:39:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V2V7l-0001u9-Vz for emacs-orgmode@gnu.org; Thu, 25 Jul 2013 19:39:12 -0400 Received: from mail-la0-f48.google.com ([209.85.215.48]:54818) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2V7l-0001tz-M7 for emacs-orgmode@gnu.org; Thu, 25 Jul 2013 19:39:09 -0400 Received: by mail-la0-f48.google.com with SMTP id hi8so1808442lab.7 for ; Thu, 25 Jul 2013 16:39:08 -0700 (PDT) In-Reply-To: <20130725225148.GB9608@kuru.dyndns-at-home.com> 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: Suvayu Ali Cc: Org-Mode --089e013d10024a9cf904e25e88be Content-Type: text/plain; charset=ISO-8859-1 Yes, you are correct, file+datetree does not do this. A while ago I suggested a file+datetree+headline type function be added, but it was not received well. I attempted a function for use with file+function, but couldn't get it quite working. I'm not quite sure how to use org-map-entries to find headlines? Thanks! Subhan On Thu, Jul 25, 2013 at 3:51 PM, Suvayu Ali wrote: > Hello Subhan, > > On Thu, Jul 25, 2013 at 03:29:10PM -0700, Subhan Tindall wrote: > > Have template that inserts itself under the LAST entry in the target file > > for a given headline > > What problem do you have with the above? Can you give us a minimal > example? > > > composes the right strings to use file+olp to find the specific headline > > under the current date's date-tree heading. > > For example, I have a date tree with **** Ticket X under each of several > > days, including today's date. > > I want to insert an entry ***** What I did today with some additional > > information under **** Ticket X for today. > > > > * 2013 > > ** 2013-07-25 > > *** 2013-07-24 Wednesday > > **** Ticket X > > ***** LOG ticket X stuff for Wednesday > > *** 2013-07-25 Thursday > > **** Ticket X > > ***** LOG ticket X stuff > > **** Ticket Y > > ****** Log ticket y stuff > > Date trees can be tricky. As far as I understand, you want to add a > subheading to entries for a day. I do not think file+datetree can do > that. I would recommend you try file+function instead. It should be > easy to implement. You could use org-map-entries to find the headline > in your headline finding function. > > Hope this helps, > > -- > Suvayu > > Open source is the future. It sets us free. > > -- Subhan Michael Tindall | Software Developer | smt@rentrakmail.com RENTRAK | www.rentrak.com | NASDAQ: RENT --089e013d10024a9cf904e25e88be Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Yes, you are correct, file+datetree does not do this. =A0A= while ago I suggested a file+datetree+headline type function be added, but= it was not received well. =A0
I attempted a function for use wit= h file+function, but couldn't get it quite working.
I'm not quite sure how to use org-map-entries to find headli= nes?
Thanks!
Subhan



On Thu, Jul 25, 2= 013 at 3:51 PM, Suvayu Ali <fatkasuvayu+linux@gmail.com><= /span> wrote:
Hello Subhan,

On Thu, Jul 25, 2013 at 03:29:10PM -0700, Subhan Tindall wrote:
> Have template that inserts itself under the LAST entry in the target f= ile
> for a given headline

What problem do you have with the above? =A0Can you give us a minimal=
example?

> composes the right strings to use file+olp to find the specific headli= ne
> under the current date's date-tree heading.
> For example, I have a date tree with **** Ticket X under each of sever= al
> days, including today's date.
> I want to insert an entry ***** What I did today =A0 with some additio= nal
> information under **** Ticket X for today.
>
> * =A02013
> ** 2013-07-25
> *** 2013-07-24 Wednesday
> **** Ticket X
> ***** LOG ticket X stuff for Wednesday
> *** 2013-07-25 Thursday
> **** Ticket X
> ***** LOG ticket X stuff
> **** Ticket Y
> ****** Log ticket y stuff

Date trees can be tricky. =A0As far as I understand, you want to add = a
subheading to entries for a day. =A0I do not think file+datetree can do
that. =A0I would recommend you try file+function instead. =A0It should be easy to implement. =A0You could use org-map-entries to find the headline in your headline finding function.

Hope this helps,

--
Suvayu

Open source is the future. It sets us free.




-- Subhan Michael Tindall | Software Developer=
| smt@rentrakm= ail.com
RENTRAK | www.rentrak= .com | NASDAQ: RENT
--089e013d10024a9cf904e25e88be--