|
From: | Luke |
Subject: | Re: [O] Bug: org-capture inserts empty line before title |
Date: | Sun, 4 Mar 2018 08:13:09 +0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
Hi, On 04/03/18 06:40, Nicolas Goaziou
wrote:
I've set up a minimal-org.el file with the following contents:Hello, Luke <address@hidden> writes:org-capture seems to be inserting an extra line before the task heading. So the narrowed buffer for editing the task looks something like this: -------------------- Top of window --------------- ** TODO My new task [2018-03-02 Fri] [[file:~/.notes]] -------------------- End of buffer --------------- I would expect the task heading to be the first line in the buffer. After pressing 'C-c C-c' the resulting file looks like this: -------------------------------------------------- * Tasks ** TODO My new task [2018-03-02 Fri] [[file:~/.notes]] -------------------------------------------------- Is this a bug? If not, how do I stop the blank line from being inserted before the heading. As far as I can tell, this is not related to org-blank-before-new-entry.Could you show the capture template you used? I do not notice anything like that with my templates. Regards, ;; Minimal setup to load latest 'org-mode' ;; activate debugging (setq debug-on-error t debug-on-signal nil debug-on-quit t) ;; add latest org-mode to load path (add-to-list 'load-path (expand-file-name "~/elisp/org-mode/lisp")) (add-to-list 'load-path (expand-file-name "~/elisp/org-mode/contrib/lisp" t)) Then I've run emacs with `emacs -Q -l minimal-org.el`. So I'm just running the with org-mode default capture template, which (taken from org-capture.el) would be: ("t" "Task" entry (file+headline "" "Tasks") "* TODO %?\n %u\n %a") |
[Prev in Thread] | Current Thread | [Next in Thread] |