From: Matt Price <moptop99@gmail.com>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: org-cycle behaves differently when called with M-x?
Date: Sun, 16 Mar 2014 15:36:42 -0400 [thread overview]
Message-ID: <CAN_Dec-4vKCSfUZSj5yARrdyHxjVuEvAFOn_rDNOkKF606irRg@mail.gmail.com> (raw)
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
next reply other threads:[~2014-03-16 19:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-16 19:36 Matt Price [this message]
2014-03-17 0:31 ` org-cycle behaves differently when called with M-x? Bastien
[not found] ` <CAN_Dec8LoYup5XXzFK02SdWLNYntagDcB-KMUCRfkvdE71G5Eg@mail.gmail.com>
[not found] ` <87r461k24u.fsf@bzg.ath.cx>
2014-03-17 2:18 ` Matt Price
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAN_Dec-4vKCSfUZSj5yARrdyHxjVuEvAFOn_rDNOkKF606irRg@mail.gmail.com \
--to=moptop99@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).