emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: Capture prepend checkbox doesn't handle scheduled [9.2.3 (9.2.3-elpaplus @ ~/.emacs.d/elpa/org-plus-contrib-20190402/)]
@ 2019-04-09  0:30 Allen Li
  2019-04-09  7:25 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Allen Li @ 2019-04-09  0:30 UTC (permalink / raw)
  To: Org Mode List

Make file /tmp/tmp.org containing:

* TODO Foo
SCHEDULED: <2019-04-08 Mon>

1. emacs -Q
2. Eval

(add-to-list 'load-path (expand-file-name
"~/.emacs.d/elpa/org-plus-contrib-20190402/"))
(setq org-capture-templates '(("c" "Capture" checkitem (file+headline
"/tmp/tmp.org" "Foo") "" :prepend t)))

3. M-x org-capture RET c
4. foo C-c C-c

Contents of tmp.org:

* TODO Foo
- [ ] foo
SCHEDULED: <2019-04-08 Mon>

Expected:

* TODO Foo
SCHEDULED: <2019-04-08 Mon>
- [ ] foo

prepend checkitem should also skip any property drawer in addition to
the planning line.

This bug does not happen if the headline already contains a checkbox
list item.

I cannot reproduce this with the Org mode that ships with Emacs, so
it's probably a regression?

Emacs  : GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.22.24), modified by Debian
Package: Org mode version 9.2.3 (9.2.3-elpaplus @
~/.emacs.d/elpa/org-plus-contrib-20190402/)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Bug: Capture prepend checkbox doesn't handle scheduled [9.2.3 (9.2.3-elpaplus @ ~/.emacs.d/elpa/org-plus-contrib-20190402/)]
  2019-04-09  0:30 Bug: Capture prepend checkbox doesn't handle scheduled [9.2.3 (9.2.3-elpaplus @ ~/.emacs.d/elpa/org-plus-contrib-20190402/)] Allen Li
@ 2019-04-09  7:25 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2019-04-09  7:25 UTC (permalink / raw)
  To: Allen Li; +Cc: Org Mode List

Hello,

Allen Li <darkfeline@felesatra.moe> writes:

> Make file /tmp/tmp.org containing:
>
> * TODO Foo
> SCHEDULED: <2019-04-08 Mon>
>
> 1. emacs -Q
> 2. Eval
>
> (add-to-list 'load-path (expand-file-name
> "~/.emacs.d/elpa/org-plus-contrib-20190402/"))
> (setq org-capture-templates '(("c" "Capture" checkitem (file+headline
> "/tmp/tmp.org" "Foo") "" :prepend t)))
>
> 3. M-x org-capture RET c
> 4. foo C-c C-c
>
> Contents of tmp.org:
>
> * TODO Foo
> - [ ] foo
> SCHEDULED: <2019-04-08 Mon>
>
> Expected:
>
> * TODO Foo
> SCHEDULED: <2019-04-08 Mon>
> - [ ] foo

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-04-09  7:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-09  0:30 Bug: Capture prepend checkbox doesn't handle scheduled [9.2.3 (9.2.3-elpaplus @ ~/.emacs.d/elpa/org-plus-contrib-20190402/)] Allen Li
2019-04-09  7:25 ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).