[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] fix org-insert-todo-heading-respect-content in plain lis
From: |
Ingo Lohmar |
Subject: |
Re: [O] [PATCH] fix org-insert-todo-heading-respect-content in plain list item |
Date: |
Mon, 28 Oct 2013 20:35:50 +0100 |
User-agent: |
Notmuch/0.14+519~gb349ce6 (http://notmuchmail.org) Emacs/24.3.50.1 (x86_64-pc-linux-gnu) |
Hi Nicolas,
sure: emacs -q -nw, and in the scratch buffer
(add-to-list 'load-path "~/src/org-mode/lisp/") ;refer to HEAD as of yesterday
(org-mode)
;and enter/paste:
* test
- an -!- item
- another one
Then, with the cursor at -!- (for example), hitting <C-S-return> breaks
the line, while it /should/ create a todo heading after the subtree.
Replacing the t with '(4) (which is what org-todo-heading comapres with)
fixes this.
HTH, regards,
Ingo
On Mon, Oct 28 2013 09:43 (+0100), Nicolas Goaziou wrote:
> Hello,
>
> Ingo Lohmar <address@hidden> writes:
>
>> please find attached a 1-4-char patch fixing the behavior of the above
>> function when inside a plain list.
>
> [...]
>
>> Subject: [PATCH] fix org-insert-todo-heading-respect-content in plain list
>> item
>>
>> * lisp/org.el (org-insert-todo-heading-respect-content): pass correct
>> prefix arg to always insert heading
>>
>> TINYCHANGE
>>
>> This function used a second argument t, which is eventually passed to
>> org-insert-heading, adding a list item when inside a plain list. Use
>> the proper argument '(4) now, to always create a heading, just like
>> the function's name and documentation imply.
>
> Thank you for your patch.
>
> Could you provide a test case, because, after a quick test, I do not see
> any difference before and after applying your patch.
>
>
> Regards,
>
> --
> Nicolas Goaziou