From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Two org-remember bugs in 5.07 Date: Thu, 6 Sep 2007 15:23:41 +0200 Message-ID: <387ded17cb772376c1ed94a74c99290c@science.uva.nl> References: <87abs1qemh.fsf@baldur.tsdh.de> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ITHLe-0005A5-5W for emacs-orgmode@gnu.org; Thu, 06 Sep 2007 09:24:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ITHLd-00058w-2X for emacs-orgmode@gnu.org; Thu, 06 Sep 2007 09:24:41 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITHLc-00058X-TG for emacs-orgmode@gnu.org; Thu, 06 Sep 2007 09:24:40 -0400 Received: from korteweg.uva.nl ([146.50.98.70]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ITHLc-0000Sj-Gb for emacs-orgmode@gnu.org; Thu, 06 Sep 2007 09:24:40 -0400 In-Reply-To: <87abs1qemh.fsf@baldur.tsdh.de> 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: Tassilo Horn Cc: emacs-orgmode@gnu.org What happens if you leave an empty line before the "* Remember" line? - Carsten On Sep 5, 2007, at 18:08, Tassilo Horn wrote: > 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 > > > > _______________________________________________ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > -- Carsten Dominik Sterrenkundig Instituut "Anton Pannekoek" Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477