From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Basic visibility cycling bug in 8.3.6 Date: Mon, 17 Oct 2016 08:42:43 +0200 Message-ID: <87a8e3pjbw.fsf@nicolasgoaziou.fr> References: <1476544932.2521.17.camel@XPS12> <87lgxp2wd2.fsf@nicolasgoaziou.fr> <1476597091.2755.18.camel@XPS12> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36819) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bw1dE-00080Z-PE for emacs-orgmode@gnu.org; Mon, 17 Oct 2016 02:42:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bw1dD-0005jl-RY for emacs-orgmode@gnu.org; Mon, 17 Oct 2016 02:42:44 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:42291) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bw1dD-0005jH-L9 for emacs-orgmode@gnu.org; Mon, 17 Oct 2016 02:42:43 -0400 In-Reply-To: <1476597091.2755.18.camel@XPS12> (Marcus Zibrowius's message of "Sun, 16 Oct 2016 07:51:31 +0200") 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: Marcus Zibrowius Cc: Org Mode List Hello, Marcus Zibrowius writes: Cc'ing to the list for further discussion. > Excellent! Thanks a lot for helping so quickly. I still maintain that > the behaviour is different for me in org-mode 7.9.3, but I understand > now that it's a (new?) feature rather than a bug. I misread your version string. The behaviour you describe doesn't happen in Org 7.9.3f, but was introduced in 2efbd0f138180fe14773d5485ad3c59332d6ddb3, i.e., between Org 7.9.3f and and Org 7.9.4. I can indeed observe the same with the latter. However this change never made it into the following release, i.e., Org 8.0. You're observing a very short-lived feature. > Let me reiterate what I think is different , now that I understand > better what is happening: in org-mode 8.3.6, if I start with > > * a > ** b > ** c > ** d > ** e > ** f > ** g > ** h > > with point at e, then if I collapse with Shift+TAB and reexpand with > TAB, I get only: > > * a... > ** e > ... > > with point at the beginning of the line **e, and I can reexpand the > whole tree with C-c C-r. So the line in which point was is somehow > remembered. In contrast, Shift+TAB followed by TAB in org-mode 7.9.3f > (details below) brings back the whole tree directly, but forgets where > point was: point ends up just right of a. I think it is important to preserve point when cycling view. It would be surprising if a function modifying visibility also moved it. Besides, this is useful when one wants to have a glimpse to the overview (S-TAB) and go back to the editing location (another S-TAB) immediatly after. I have no strong opinion on what should be displayed when pressing TAB in this case, tho. It seems the implentation of `org-cycle' sort of decided for us, i.e., it wasn't meant to handle this situation. Regards, -- Nicolas Goaziou 0x80A93738