From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tassilo Horn Subject: Two org-remember bugs in 5.07 Date: Wed, 05 Sep 2007 18:08:22 +0200 Message-ID: <87abs1qemh.fsf@baldur.tsdh.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ISxQi-0000NH-7Z for emacs-orgmode@gnu.org; Wed, 05 Sep 2007 12:08:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ISxQh-0000Le-Ce for emacs-orgmode@gnu.org; Wed, 05 Sep 2007 12:08:35 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISxQh-0000LT-8x for emacs-orgmode@gnu.org; Wed, 05 Sep 2007 12:08:35 -0400 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ISxQg-0005NU-Ji for emacs-orgmode@gnu.org; Wed, 05 Sep 2007 12:08:34 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1ISxQd-0003Z8-Ph for emacs-orgmode@gnu.org; Wed, 05 Sep 2007 18:08:31 +0200 Received: from dslb-084-063-008-166.pools.arcor-ip.net ([84.63.8.166]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 05 Sep 2007 18:08:31 +0200 Received: from tassilo by dslb-084-063-008-166.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 05 Sep 2007 18:08:31 +0200 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: emacs-orgmode@gnu.org 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