From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eraldo Helal Subject: Re: remember template indentation Date: Sat, 28 Mar 2009 23:43:12 +0100 Message-ID: <938fae2d0903281543o22e24f1fv897eb7d4ac7835fa@mail.gmail.com> References: <938fae2d0903281145t5eb3f368q77ba958b796e267d@mail.gmail.com> <20090328221940.GA5179@thinkpad> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1519804601==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LnhFI-0002ZC-Bl for emacs-orgmode@gnu.org; Sat, 28 Mar 2009 18:43:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LnhFD-0002Kr-9P for emacs-orgmode@gnu.org; Sat, 28 Mar 2009 18:43:19 -0400 Received: from [199.232.76.173] (port=44010 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LnhFD-0002KS-39 for emacs-orgmode@gnu.org; Sat, 28 Mar 2009 18:43:15 -0400 Received: from mail-ew0-f160.google.com ([209.85.219.160]:36459) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LnhFC-0004WA-Id for emacs-orgmode@gnu.org; Sat, 28 Mar 2009 18:43:14 -0400 Received: by ewy4 with SMTP id 4so1634735ewy.42 for ; Sat, 28 Mar 2009 15:43:13 -0700 (PDT) In-Reply-To: <20090328221940.GA5179@thinkpad> 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: David Maus Cc: emacs-orgmode@gnu.org --===============1519804601== Content-Type: multipart/alternative; boundary=0015174be07807b9ab04663593dd --0015174be07807b9ab04663593dd Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit The problem is that the LOGBOOK item does not move with the headline... example: BEFORE ** :LOGBOOK: - Created from :END: AFTER **** :LOGBOOK: - Created from :END: It does when created by changing to state.... But I did also find out that this is a general problem! (not remember only) It works like this: If there is a description text, it does not move with the headline. If there is no description text, it does move along with the headline. Any suggestions how to solve this? PS: Thank you for your reply. On Sat, Mar 28, 2009 at 23:19, David Maus wrote: > Evening, > > On 28 Mar 09, Eraldo Helal wrote: > > > > If I create it with my remember template however... > > > > ("inbox" ?i "* %^{topic}%i\n:LOGBOOK:\n- Created: %U from > > %a\n:END:\n%?" "inbox.org" "stuff") > > > > then it is all the way in the left margin (first char) > > and it does not move when the headline does (promote|demote) > > > > Any idea how I can get my remember template to make the LOGBOOK and enter > > the creation date there while keeping the default behavior? > > Intend the LOGBOOK-Drawer in your template with two spaces: > > ("inbox" ?i "* %^{topic}%i\n :LOGBOOK:\n - Created: %U from %a\n > :END:\n%?" > "inbox.org" "stuff") > > This template creates a level two headline in inbox.org like this: > > * stuff > ... > ** > :LOGBOOK: > - Created from > :END: > > > So the LOGBOOK-Drawer is placed exactly if it would be if created by > changing a todo state (and behaves so). The "\n" is a escape sequence that > stands for RET. > > Regards, > > -- David > -- > Email..... maus.david@gmail.com > Jabber.... dmjena@jabber.org > ICQ....... 241051416 > OpenPGP... 0x316F4BE4670716FD > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > > iEYEARECAAYFAknOonwACgkQMW9L5GcHFv2VkgCfe6kK0wLrC4ped2j9Ow4FZ3Bl > pDYAoMZ+zrVHEKCXaO78gXz1IsgJO6HI > =XpfF > -----END PGP SIGNATURE----- > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > --0015174be07807b9ab04663593dd Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable The problem is that the LOGBOOK item does not move with the headline...
=
example:

BEFORE
** <your topic>
=C2=A0 :LOGBOOK:
=C2=A0 - Created <timestamp> from <link>
=C2=A0 :END:
<your description>

AFTER
**** <your topic>
=C2=A0 :LOGBOOK:
=C2=A0 - Created <timestamp> from <link>
=C2=A0 :END:
<your description>

It does when created by changing to state..= ..
But I did also find out that this is a general problem! (not remember= only)

It works like this:
If there is a description text, it doe= s not move with the headline.
If there is no description text, it does move along with the headline.
<= br>Any suggestions how to solve this?

PS: Thank you for your reply.<= br>

On Sat, Mar 28, 2009 at 23:19, David = Maus <maus.dav= id@gmail.com> wrote:
Evening,

On 28 Mar 09, Eraldo Helal wrote:
>
> If I create it with my remember template however...
>
> =C2=A0 =C2=A0 =C2=A0 ("inbox" ?i "* %^{topic}%i\n:LOGBO= OK:\n- Created: %U from
> %a\n:END:\n%?" "inbox.org" "stuff")
>
> then it is all the way in the left margin (first char)
> and it does not move when the headline does (promote|demote)
>
> Any idea how I can get my remember template to make the LOGBOOK and en= ter
> the creation date there while keeping the default behavior?

Intend the LOGBOOK-Drawer in your template with two spaces:

("inbox" ?i "* %^{topic}%i\n =C2=A0:LOGBOOK:\n =C2=A0- Creat= ed: %U from %a\n =C2=A0:END:\n%?"
"inbox.org" &q= uot;stuff")

This template creates a level two headline in inbox.org like this:

* stuff
...
** <your topic>
=C2=A0 :LOGBOOK:
=C2=A0 - Created <timestamp> from <link>
=C2=A0 :END:
<your description>

So the LOGBOOK-Drawer is placed exactly if it would be if created by
changing a todo state (and behaves so). The "\n" is a escape sequ= ence that stands for RET.

Regards,

=C2=A0-- David
--
Email..... maus.david@gmail.com=
Jabber.... dmjena@jabber.org
ICQ....... 241051416
OpenPGP... 0x316F4BE4670716FD

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAknOonwACgkQMW9L5GcHFv2VkgCfe6kK0wLrC4ped2j9Ow4FZ3Bl
pDYAoMZ+zrVHEKCXaO78gXz1IsgJO6HI
=3DXpfF
-----END PGP SIGNATURE-----

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


--0015174be07807b9ab04663593dd-- --===============1519804601== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1519804601==--