emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Adam Porter <adam@alphapapa.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug with behavior of point in cycle commands?
Date: Sat, 24 Sep 2016 00:38:44 +0200	[thread overview]
Message-ID: <87mviyi6mj.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87lgyjzfb3.fsf@alphapapa.net> (Adam Porter's message of "Thu, 22 Sep 2016 18:26:56 -0500")

Hello,

Adam Porter <adam@alphapapa.net> writes:

> I came across this discussion today:
>
> http://emacs.stackexchange.com/questions/27210/how-to-prevent-org-global-cycle-glitch
>
> It seems like a bug to me, because the visual position of the point does
> not match its actual position.  Shouldn't the cycle commands adjust the
> point to match where it appears after cycling?

`org-cycle' is about visibility, it is not supposed to move point. E.g.,
You may want to have an overview of the document an get back to where
you were editing text.

Cycling visibility back to original state is not configurable, though.
It calls `org-show-entry'. We could use `org-show-set-visibility'
instead, with the `default' context.

Regards,

-- 
Nicolas Goaziou

      reply	other threads:[~2016-09-23 22:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-22 23:26 Bug with behavior of point in cycle commands? Adam Porter
2016-09-23 22:38 ` Nicolas Goaziou [this message]

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=87mviyi6mj.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=adam@alphapapa.net \
    --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).