emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Another case which org-insert-todo-heading doesn't work
@ 2020-03-25  6:23 Yasushi SHOJI
  2020-03-26  2:31 ` Kyle Meyer
  0 siblings, 1 reply; 3+ messages in thread
From: Yasushi SHOJI @ 2020-03-25  6:23 UTC (permalink / raw)
  To: emacs-org list

Hi,

https://www.mail-archive.com/emacs-orgmode@gnu.org//msg122319.html

There seems to be another case where org-insert-todo-heading doesn't
work.  Let's say we have the following doc.

#+begin_src org
  ,* foo
    - [ ] a
      - [ ] b
#+end_src

If the list is unfolded, org-insert-todo-heading works everywhere. But
once you fold the list at "a" so that what we see is "- [ ] a...", the
function doesn't work but creates a next heading with "TODO" with it.

Does anyone see this?

#+begin_src org
  ,* foo
    - [ ] a
      - [ ] b

  ,* TODO
#+end_src
-- 
           yashi

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

* Re: Another case which org-insert-todo-heading doesn't work
  2020-03-25  6:23 Another case which org-insert-todo-heading doesn't work Yasushi SHOJI
@ 2020-03-26  2:31 ` Kyle Meyer
  2020-03-28 13:18   ` Yasushi SHOJI
  0 siblings, 1 reply; 3+ messages in thread
From: Kyle Meyer @ 2020-03-26  2:31 UTC (permalink / raw)
  To: Yasushi SHOJI, emacs-org list

Hello,

Yasushi SHOJI <yasushi.shoji@gmail.com> writes:

> There seems to be another case where org-insert-todo-heading doesn't
> work.  Let's say we have the following doc.
>
> #+begin_src org
>   ,* foo
>     - [ ] a
>       - [ ] b
> #+end_src
>
> If the list is unfolded, org-insert-todo-heading works everywhere. But
> once you fold the list at "a" so that what we see is "- [ ] a...", the
> function doesn't work but creates a next heading with "TODO" with it.
>
> Does anyone see this?

No, I tried on master (5b9698870) as well as maint (685b2c441) and
didn't see the behavior you describe.  In both cases, an unchecked box
is inserted.

What Org version are you using?  Can you trigger the behavior without
any customization?

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

* Re: Another case which org-insert-todo-heading doesn't work
  2020-03-26  2:31 ` Kyle Meyer
@ 2020-03-28 13:18   ` Yasushi SHOJI
  0 siblings, 0 replies; 3+ messages in thread
From: Yasushi SHOJI @ 2020-03-28 13:18 UTC (permalink / raw)
  To: Kyle Meyer; +Cc: emacs-org list

Hi,

On Thu, Mar 26, 2020 at 11:31 AM Kyle Meyer <kyle@kyleam.com> wrote:
>
> > Does anyone see this?
>
> No, I tried on master (5b9698870) as well as maint (685b2c441) and
> didn't see the behavior you describe.  In both cases, an unchecked box
> is inserted.
>
> What Org version are you using?  Can you trigger the behavior without
> any customization?

I've tried both emacs 26 and 27 with -Q -q.

Org mode version 9.3.6 (release_9.3.6-441-gba6855 @
/home/yashi/src/org-mode/lisp/)
GNU Emacs 27.0.90 (build 1, x86_64-pc-linux-gnu, cairo version 1.16.0)
 of 2020-03-16
GNU Emacs 26.2 (build 1, x86_64-pc-linux-gnu) of 2019-04-14

What I did was to add org-mode/lisp to the load-path and load org.  That's it.
(add-to-list 'load-path "~/src/org-mode/lisp/")
-- 
            yashi

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

end of thread, other threads:[~2020-03-28 13:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-25  6:23 Another case which org-insert-todo-heading doesn't work Yasushi SHOJI
2020-03-26  2:31 ` Kyle Meyer
2020-03-28 13:18   ` Yasushi SHOJI

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).