emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Bug: org-capture inserts empty line before title


From: Luke
Subject: Re: [O] Bug: org-capture inserts empty line before title
Date: Fri, 9 Mar 2018 11:36:16 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

On 04/03/18 08:13, Luke wrote:
Hi,


On 04/03/18 06:40, Nicolas Goaziou wrote:
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,

I've set up a minimal-org.el file with the following contents:

     ;; 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")


As a follow up, after running `git bisect` I've tracked down that the behavior that I describe starts to appear in commit 8ebf4b7274 ("Change `org-paste-subtree' behavior").

It doesn't seem to manifest in the commits previous to that. I'm not sure why though.

Regards,
--
Luke




reply via email to

[Prev in Thread] Current Thread [Next in Thread]