From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id QW4BDQECuWR3TQAASxT56A (envelope-from ) for ; Thu, 20 Jul 2023 11:44:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kBHGCwECuWTunwAAauVa8A (envelope-from ) for ; Thu, 20 Jul 2023 11:44:33 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9ED6B42B92 for ; Thu, 20 Jul 2023 11:44:32 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=OX8RiWad; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1689846273; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=I0koYqHy2pps63NdT8nwfiJgHG0aL0Ngu9xW+fMm5xU=; b=VBfg942J0XvxkutchvXqLcTayi2zkiBgQJMQuFktb7tX1Gy0Gm6/WmcJh/GU8PkYMxT0Fd wSbM76BkC/5eE4avdsn5RsMav/AX4lLvsD4dauBsYyE6Wp6kMHe9ovnB7IGNcIXnuvl21A Kb/zpjRo6lRLZsA5oS6sEqCmOe6LWd1h7dFzlidSj1GCxLhNwBD+UIRzt5jBnm+9AMwbtc IMuy1O1WrR1fHaTmHQoihvuWO3IcjfQGRGmvIg+bVTNw+4KokYtBZ4L7IwLKuSawk/HKWb LBLpAXFk8BQmkW7HMEBr1QR7jEL7PrV7/4/Qx2Cwf/GRyApxjqeHcxeKHi53GA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1689846273; a=rsa-sha256; cv=none; b=ObPaIpxQhpjBFQ1I5l8gSMrnnaYmHi+Ri38CGmIa2cFE3UeJbaOxqSGH6RA70aPvpk9KGF FJsH+xlxF7HKIzkA5lzqRNQEo7K+yWaJ9rIIcmRIheJ9Ahox7M+/+i+L59zoPZh71s0S/p s06gu5BzSQVEdKzlBkSd/CjgBWakIcQcp3KDGo7e3rvhm1c4to79h5mwku9k4IFkKPO/Q1 VmBGPaYGm2Y46LTNcbscLoa+Yo0V2eDTH1iXIylDpNMSaN5Bs2n4H38Na/9rk6TUT/Y101 uigon0+dPG+TaA6X4rsQqsZMB+sX/PNl2klOywf90H1JWjiIS6zQDRc8z5XZ1g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=OX8RiWad; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qMQ7J-0007uB-0w; Thu, 20 Jul 2023 05:38:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qMQ7E-0007tz-KS for emacs-orgmode@gnu.org; Thu, 20 Jul 2023 05:38:33 -0400 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qMQ7C-0001xJ-LG for emacs-orgmode@gnu.org; Thu, 20 Jul 2023 05:38:32 -0400 Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-3143798f542so494781f8f.2 for ; Thu, 20 Jul 2023 02:38:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689845909; x=1690450709; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=I0koYqHy2pps63NdT8nwfiJgHG0aL0Ngu9xW+fMm5xU=; b=OX8RiWad9mQEcDOZTjip/GQZu+2SNB3dJFVa6GtL13omfAShP2eaVpOpgabSEgL16A rEm34zhG2ctLe9W1iczV0fbxQn2UQh5y9bwEnMt5ON3RZWXLGeGqP9HTq0BF3haIZBQs IE/l/3/TDtYTWxvhPJ+h4FSNkgpCDAvrx4VvLwjJQjGodgtayGesubsYCl3pDx6ZoaVN M+TdEc7ayJPUu/S9bFA955el/xRtrvlMSSWw9RZMo0Qf5/7Tuj1Kb4eL8ioCCJBNeLWI duoNI0UjlczFkrZwWLC7AsB9YOC5c/NwSkEqUp8w54ooLYOHGIbtyGtQmInUBdGBj/nV ctYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689845909; x=1690450709; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=I0koYqHy2pps63NdT8nwfiJgHG0aL0Ngu9xW+fMm5xU=; b=DmJisFOm/oQiFWu9lpA9ZGGDWMSgx0nh+JzTz5TEym0EZF97kJN9lXOwPy2lFkqx/j WQbarQ24olc6L+M7EoKlLeMUwFnjqE1nx0SfUjN5t2aAOOKIKIvG2h+hRaEmrNUD5mI2 aQB+lOCUw5zUGXiB1wshdbitHGrQshBwJSnegzsgtrKsynXMDvYD4iIiYhuI1ewxzdCW eHzj/F/4Vs8DBigGItO+jOwvaRPUCTJ7V2r0Whs1CbrTUOtSR2o9dtOFIc2NBWJlDvmp ZZ1oSGunmKFxYra/phNN01B5IWBE3ks2dk9PVAnrJgxIGOmeLbyWxfcoM/mAjzGoTY8V nAdg== X-Gm-Message-State: ABy/qLYEBIntNWiCZ/qBcLxzrJ9FNOBVg++wivokBtsCsRwgtdEUL7Yj XRiFYzenAPSNNcMViPXrqYJQS4zHfckMxdjNT+c= X-Google-Smtp-Source: APBJJlFeyekD5gmzKMRx78GVeCk6sKWNs3v3zIlyq53mDESiY323XXGesjHY8XGlOx5yOCL0FcDoBmyRTqD+4ZP1Zwo= X-Received: by 2002:a5d:42d1:0:b0:314:9ef:838c with SMTP id t17-20020a5d42d1000000b0031409ef838cmr1613277wrr.15.1689845908564; Thu, 20 Jul 2023 02:38:28 -0700 (PDT) MIME-Version: 1.0 References: <4F0BFC4B.3030403@online.de> <70b0bea6-002f-ce0e-6d8e-e5bcdf291713@gmail.com> <87mszrq8b2.fsf@localhost> <87h6pzq6qq.fsf@localhost> In-Reply-To: <87h6pzq6qq.fsf@localhost> From: Vlastimil Vondra Date: Thu, 20 Jul 2023 11:37:52 +0200 Message-ID: Subject: Re: Unable to unfold a folded block having point directly after the folded block To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="0000000000001aef180600e7e968" Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=vlastimil.vondra@gmail.com; helo=mail-wr1-x436.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx2.migadu.com X-Migadu-Spam-Score: -9.52 X-Spam-Score: -9.52 X-Migadu-Queue-Id: 9ED6B42B92 X-TUID: DEqxc83ZYPxY --0000000000001aef180600e7e968 Content-Type: text/plain; charset="UTF-8" Perfect, org-reveal is working as well, haven't known about that! But it would be good that org-reveal is called automatically before org-cycle, because when going through the task list, I'm just expanding by tab. It is not really convenient to use tab and when reaching error (or no unfold) then hitting C-c C-r. Maybe it's just me. Anyway thanks for letting me know. BR, Vlastimil On Thu, 20 Jul 2023 at 11:20, Ihor Radchenko wrote: > [ Adding Org mailing list back to CC ] > > Vlastimil Vondra writes: > > > Sorry, I think I've sent the reply in wrong manner. I was trying to reply > > to this conversation https://list.orgmode.org/87ty4b7ofr.fsf@gnu.org/t/ > > where Reiner wrote that he is not able to unfold tree if folded and at > the > > end of line. You can get there if you are on line longer then previous, > > then up arrow and now you are not able to unfold. I've created function, > > which will first set cursor to end-of-line by function and then calling > > org-cycle which is then working. > > You are replying to a thread that is 10 years old. That problem > discussed in the thread has been fixed in Org 9.4.4 or earlier (for > drawers). > > > I'm sending video, so it is more obvious. > > In the video, the situation is with folded headings of different length: > > * asd > alskdj > * Headingalksjdlaskdj > alskdj > > If everything is folded: > > * asd... > * Headingalksjdlaskdj... > > Pressing C-p will yield > > * asd... <-- note after ... > * Headingalksjdlaskdj... > > Then, will indeed not unfold, before the point is not actually on > heading. > This situation is one of the edge cases with point adjustment in Emacs. > > The workaround is simple - M-x org-reveal (C-c C-r). > org-reveal generally works any time the cursor is stuck in the middle of > invisible text. > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at > --0000000000001aef180600e7e968 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Perfect, org-reveal is working as well, haven't k= nown about that! But it would be good that org-reveal is called automatical= ly before org-cycle, because when going through the task list, I'm just= expanding by tab. It is not really convenient to use tab and when reaching= error (or no unfold) then hitting C-c C-r. Maybe it's just me.

Anyway thanks for letting me know.

BR,
Vlastimil

On Thu, 20 Jul 2023 at 11:20, Ihor = Radchenko <yantar92@posteo.net> wrote:
[ A= dding Org mailing list back to CC ]

Vlastimil Vondra <
vlastimil.vondra@gmail.com> writes:

> Sorry, I think I've sent the reply in wrong manner. I was trying t= o reply
> to this conversation https://list.orgmode.org= /87ty4b7ofr.fsf@gnu.org/t/
> where Reiner wrote that he is not able to unfold tree if folded and at= the
> end of line. You can get there if you are on line longer then previous= ,
> then up arrow and now you are not able to unfold. I've created fun= ction,
> which will first set cursor to end-of-line by function and then callin= g
> org-cycle which is then working.

You are replying to a thread that is 10 years old. That problem
discussed in the thread has been fixed in Org 9.4.4 or earlier (for
drawers).

> I'm sending video, so it is more obvious.

In the video, the situation is with folded headings of different length:
* asd
alskdj
* Headingalksjdlaskdj
alskdj

If everything is folded:

* asd...
* Headingalksjdlaskdj<point>...

Pressing C-p will yield

* asd...<point> <-- note <point> after ...
* Headingalksjdlaskdj...

Then, <TAB> will indeed not unfold, before the point is not actually = on
heading.
This situation is one of the edge cases with point adjustment in Emacs.

The workaround is simple - M-x org-reveal (C-c C-r).
org-reveal generally works any time the cursor is stuck in the middle of invisible text.

--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,=
or support my work at <https://liberapay.com/yantar92>
--0000000000001aef180600e7e968--