From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcus Zibrowius Subject: Basic visibility cycling bug in 8.3.6 Date: Sat, 15 Oct 2016 17:22:12 +0200 Message-ID: <1476544932.2521.17.camel@XPS12> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=-tZThsKoXp4/FzxK9cuF8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60521) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bvQn0-0000MO-V6 for emacs-orgmode@gnu.org; Sat, 15 Oct 2016 11:22:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bvQmv-0000My-V7 for emacs-orgmode@gnu.org; Sat, 15 Oct 2016 11:22:22 -0400 Received: from thor.rz.uni-duesseldorf.de ([134.99.128.245]:14222) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bvQmv-0000Kh-OO for emacs-orgmode@gnu.org; Sat, 15 Oct 2016 11:22:17 -0400 Received: from thor.rz.uni-duesseldorf.de (unknown [192.168.25.1]) by localhost (Postfix) with SMTP id D7E11C19FB for ; Sat, 15 Oct 2016 17:22:12 +0200 (CEST) Received: from [192.168.100.11] (ip-109-91-15-153.hsi12.unitymediagroup.de [109.91.15.153]) by thor.rz.uni-duesseldorf.de (Postfix) with ESMTPA id B609AC19CA for ; Sat, 15 Oct 2016 17:22:12 +0200 (CEST) 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: emacs-orgmode@gnu.org --=-tZThsKoXp4/FzxK9cuF8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit I am running org-mode 8.3.6 (8.3.6-6-g194e51-elpa @ .../.emacs.d/elpa/org-20161003/) in GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.7). In this version, visibility cycling does not work as expected. Consider the following three-line example file: * a ** b ** c Consider the following sequence of commands: 1. Place cursor on the letter b. 2. In the menu, choose Org > Refresh/Reload > Refresh setup current buffer. (I do not know how to access this command directly). 3. Press TAB on your keyboard. If I do this in org-mode 8.3.6, my buffer looks as follows: * a ** b ... In this minimalistic example, pressing TAB once more will bring back the line with the c, but in more complex examples, some parts of the buffer seem to "get lost". Moreover, I often find my files garbled like this when I open them from the agenda. If I apply the above sequence of commands using my built-in org-mode 7.9.3, everything is fine. --=-tZThsKoXp4/FzxK9cuF8 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 7bit I am running org-mode 8.3.6 (8.3.6-6-g194e51-elpa @ .../.emacs.d/elpa/org-20161003/) in GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.7).

In this version, visibility cycling does not work as expected.  Consider the following three-line example file:

* a
** b
** c

Consider the following sequence of commands:
1.  Place cursor on the letter b. 
2.  In the menu, choose Org > Refresh/Reload > Refresh setup current buffer.
     (I do not know how to access this command directly). 
3.  Press TAB on your keyboard. 

If I do this in org-mode 8.3.6, my buffer looks as follows:

* a
** b
...

In this minimalistic example, pressing TAB once more will bring back the line with the c, but in more complex examples, some parts of the buffer seem to "get lost".  Moreover, I often find my files garbled like this when I open them from the agenda.

If I apply the above sequence of commands using my built-in org-mode 7.9.3, everything is fine.


--=-tZThsKoXp4/FzxK9cuF8-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Basic visibility cycling bug in 8.3.6 Date: Sat, 15 Oct 2016 22:25:13 +0200 Message-ID: <87lgxp2wd2.fsf@nicolasgoaziou.fr> References: <1476544932.2521.17.camel@XPS12> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43368) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bvVWA-00063i-ID for emacs-orgmode@gnu.org; Sat, 15 Oct 2016 16:25:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bvVW7-0007cw-0N for emacs-orgmode@gnu.org; Sat, 15 Oct 2016 16:25:18 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:38140) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bvVW6-0007cQ-Qb for emacs-orgmode@gnu.org; Sat, 15 Oct 2016 16:25:14 -0400 In-Reply-To: <1476544932.2521.17.camel@XPS12> (Marcus Zibrowius's message of "Sat, 15 Oct 2016 17:22:12 +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: emacs-orgmode@gnu.org Hello, Marcus Zibrowius writes: > In this version, visibility cycling does not work as expected. Consider > the following three-line example file: > > * a > ** b > ** c > > Consider the following sequence of commands: > 1. Place cursor on the letter b. > 2. In the menu, choose Org > Refresh/Reload > Refresh setup current > buffer. Note that you are leaving, on purpose, point in an invisible part of the document. > (I do not know how to access this command directly). > 3. Press TAB on your keyboard. > > If I do this in org-mode 8.3.6, my buffer looks as follows: > > * a > ** b > ... > > In this minimalistic example, pressing TAB once more will bring back the > line with the c, but in more complex examples, some parts of the buffer > seem to "get lost". Moreover, I often find my files garbled like this > when I open them from the agenda. You can reveal text around point with C-c C-r (or even C-u C-c C-r). See `org-reveal' for details. By the way, Org 9.0 (yet to be released) contains a variable to control this: `org-show-context-detail'. You may want to update Org. > If I apply the above sequence of commands using my built-in org-mode > 7.9.3, everything is fine. I can reproduce the same with Org 7.9.3. Regards, -- Nicolas Goaziou 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