emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* remember template indentation
@ 2009-03-28 18:45 Eraldo Helal
  2009-03-28 22:19 ` David Maus
  0 siblings, 1 reply; 4+ messages in thread
From: Eraldo Helal @ 2009-03-28 18:45 UTC (permalink / raw)
  To: Org-Mode


[-- Attachment #1.1: Type: text/plain, Size: 733 bytes --]

If the :LOGBOOK: property gets created via TODO state change...

; log state changes into a drawer (introduced in Orgmode 6.23)
(setq org-log-into-drawer "LOGBOOK")

> the :LOGBOOK: item is indented (has as many spaces to the left as the
headline) and gets moved(left right) together with the headline if I use
M-<left|right>.

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?

[-- Attachment #1.2: Type: text/html, Size: 879 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: remember template indentation
  2009-03-28 18:45 remember template indentation Eraldo Helal
@ 2009-03-28 22:19 ` David Maus
  2009-03-28 22:43   ` Eraldo Helal
  0 siblings, 1 reply; 4+ messages in thread
From: David Maus @ 2009-03-28 22:19 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1149 bytes --]

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
...
** <your topic>
   :LOGBOOK:
   - Created <timestamp> from <link>
   :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 sequence that stands for RET.

Regards,

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

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: remember template indentation
  2009-03-28 22:19 ` David Maus
@ 2009-03-28 22:43   ` Eraldo Helal
  2009-03-28 23:58     ` Bernt Hansen
  0 siblings, 1 reply; 4+ messages in thread
From: Eraldo Helal @ 2009-03-28 22:43 UTC (permalink / raw)
  To: David Maus; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 2315 bytes --]

The problem is that the LOGBOOK item does not move with the headline...

example:

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

AFTER
**** <your topic>
  :LOGBOOK:
  - Created <timestamp> from <link>
  :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 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 <maus.david@gmail.com> 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
> ...
> ** <your topic>
>   :LOGBOOK:
>   - Created <timestamp> from <link>
>   :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 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
>
>

[-- Attachment #1.2: Type: text/html, Size: 3490 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: remember template indentation
  2009-03-28 22:43   ` Eraldo Helal
@ 2009-03-28 23:58     ` Bernt Hansen
  0 siblings, 0 replies; 4+ messages in thread
From: Bernt Hansen @ 2009-03-28 23:58 UTC (permalink / raw)
  To: Eraldo Helal; +Cc: emacs-orgmode

Eraldo Helal <admin@eraldo.at> writes:

> The problem is that the LOGBOOK item does not move with the headline...
>
> example:
>
> BEFORE
> ** <your topic>
>   :LOGBOOK:
>   - Created <timestamp> from <link>
>   :END:
> <your description>
>
> AFTER
> **** <your topic>
>   :LOGBOOK:
>   - Created <timestamp> from <link>
>   :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 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?

You need to indent all of the text under the headline for the indents to
change

If any of the text is indented _less_ than the heading level then
changing indents is disabled IIRC.

-Bernt

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-03-28 23:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-28 18:45 remember template indentation Eraldo Helal
2009-03-28 22:19 ` David Maus
2009-03-28 22:43   ` Eraldo Helal
2009-03-28 23:58     ` Bernt Hansen

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).