emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: emacs-orgmode@gnu.org
Subject: Two org-remember bugs in 5.07
Date: Wed, 05 Sep 2007 18:08:22 +0200	[thread overview]
Message-ID: <87abs1qemh.fsf@baldur.tsdh.de> (raw)

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

             reply	other threads:[~2007-09-05 16:08 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-05 16:08 Tassilo Horn [this message]
2007-09-06 13:23 ` Two org-remember bugs in 5.07 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87abs1qemh.fsf@baldur.tsdh.de \
    --to=tassilo@member.fsf.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public 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).