all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Two org-remember bugs in 5.07
@ 2007-09-05 16:08 Tassilo Horn
  2007-09-06 13:23 ` Carsten Dominik
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Tassilo Horn @ 2007-09-05 16:08 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

I think I've discovered two problems with org's remember integration.
Sadly I use 5.07 since 5.08 hasn't been incorporated Emacs trunk yet.

Here's my remember setup:

--8<---------------cut here---------------start------------->8---
(setq org-default-notes-file "~/org/main.org"
      org-remember-default-headline "Remember"
      org-remember-templates '(;; TODOs
                               (?t "* TODO %?\n(created: %U)\n%i\n%a")
                               ;; Ideas
                               (?i "* Idea: %^{Title}\n(created: %U)\n%?\n%i\n%a")
                               ;; Notes
                               (?n "* Note: %?\n(created: %U)\n%i\n%a")))

(setq remember-annotation-functions     '(org-remember-annotation)
      remember-handler-functions        '(org-remember-handler)
      org-remember-store-without-prompt t)

(add-hook 'remember-mode-hook 'org-remember-apply-template)
--8<---------------cut here---------------end--------------->8---

The file ~/org/main.org is my only org file.  It starts with

* Remember
#+CATEGORY: Remember
** TODO ...
...

and several level-1 headlines and categories follow.  When I file an
item with remember, it should be added as subitem to the "* Remember"
headline.

Bug 1: That doesn't happen.  The new TODO, idea or note is appended to
  the file.  It's always the last entry of the last headline.  I also
  tried letting org-remember-default-headline at its default value ""
  and used remember templates like

      (?t "* TODO %?\n(created: %U)\n%i\n%a" nil "Remember")

  but that makes no difference.  I also tried using "* Remember" as
  headline, but still no luck.

Bug 2: The docs say

  ,----[ (info "(org)Storing notes") ]
  | If the variable `org-adapt-indentation' is non-nil, the entire
  | text is also indented so that it starts in the same column as the
  | headline (after the asterisks).
  `----

  but that doesn't happen, although its value is t.  For example a todo
  made with the remember template above results in something like this.

--8<---------------cut here---------------start------------->8---
** TODO test
(created: [2007-09-05 Wed 18:02])

[[info:org:Storing%20notes][org:Storing notes]]
--8<---------------cut here---------------end--------------->8---

  I would expect the "(created..." and the link to be aligned with the
  headline.  I inserted spaces after the \n in the template, because the
  doc-string of `org-adapt-indentation' says that column 0 entries in
  the body won't be aligned, but then only the single space is inserted,
  resulting in

--8<---------------cut here---------------start------------->8---
** TODO test
 (created: [2007-09-05 Wed 18:02])

 [[info:org:Storing%20notes][org:Storing notes]]
--8<---------------cut here---------------end--------------->8---

I'll check if the problem still persists with 5.08 as soon as it's
included in the emacs trunk.  Please ping me when that's done.

Bye,
Tassilo

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

end of thread, other threads:[~2007-09-10  1:32 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-05 16:08 Two org-remember bugs in 5.07 Tassilo Horn
2007-09-06 13:23 ` Carsten Dominik
2007-09-06 13:35   ` Tassilo Horn
2007-09-07  8:04 ` Carsten Dominik
2007-09-07 10:10   ` Leo
2007-09-07 14:02   ` Tassilo Horn
2007-09-07 14:10     ` Carsten Dominik
2007-09-10  1:00     ` Xavier Maillard
2007-09-07 20:02   ` John Wiegley
2007-09-07 20:45     ` John Wiegley
2007-09-07 20:46     ` Carsten Dominik
2007-09-07 21:12       ` John Wiegley
2007-09-07 12:53 ` Carsten Dominik
2007-09-07 14:08   ` Tassilo Horn

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.