emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-cycle behaves differently when called with M-x?
@ 2014-03-16 19:36 Matt Price
  2014-03-17  0:31 ` Bastien
  0 siblings, 1 reply; 3+ messages in thread
From: Matt Price @ 2014-03-16 19:36 UTC (permalink / raw)
  To: Org Mode

Hi,

I am not sure if this a bug or intended behaviour, but org-cycle
behaves ddifferently than expected when I call it using M-x (rather
than with TAB).  Instead of cycling
FOLDED-->CHILDREN-->SUBTREE-->FOLDED
it cycles
FOLDED-->CHILDREN-->FOLDED

Does everyone else see the same issue?  I think the issue is likely
caused by this (cond) clause startging at line 6857 of org.el, within
org-cycle-internal-local:

     ((or children-skipped
      (and (eq last-command this-command)
           (eq org-cycle-subtree-status 'children)))


I still don't quite understand how the value of (this-command) is set,
but I'm imagining that M-x  may also set it? So if called with M-x, it
may not give the desired result.

thank you!

Matt

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

end of thread, other threads:[~2014-03-17  2:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-16 19:36 org-cycle behaves differently when called with M-x? Matt Price
2014-03-17  0:31 ` Bastien
     [not found]   ` <CAN_Dec8LoYup5XXzFK02SdWLNYntagDcB-KMUCRfkvdE71G5Eg@mail.gmail.com>
     [not found]     ` <87r461k24u.fsf@bzg.ath.cx>
2014-03-17  2:18       ` Matt Price

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