From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug with behavior of point in cycle commands? Date: Sat, 24 Sep 2016 00:38:44 +0200 Message-ID: <87mviyi6mj.fsf@nicolasgoaziou.fr> References: <87lgyjzfb3.fsf@alphapapa.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48135) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnZ7I-00078r-D5 for emacs-orgmode@gnu.org; Fri, 23 Sep 2016 18:38:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bnZ7F-0001vX-V3 for emacs-orgmode@gnu.org; Fri, 23 Sep 2016 18:38:47 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:34941) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnZ7F-0001vC-Oz for emacs-orgmode@gnu.org; Fri, 23 Sep 2016 18:38:45 -0400 In-Reply-To: <87lgyjzfb3.fsf@alphapapa.net> (Adam Porter's message of "Thu, 22 Sep 2016 18:26:56 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Adam Porter Cc: emacs-orgmode@gnu.org Hello, Adam Porter 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