From: Ihor Radchenko <yantar92@posteo.net>
To: Vlastimil Vondra <vlastimil.vondra@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Unable to unfold a folded block having point directly after the folded block
Date: Thu, 20 Jul 2023 09:20:29 +0000 [thread overview]
Message-ID: <87h6pzq6qq.fsf@localhost> (raw)
In-Reply-To: <CACjq+cw3wMsyF=W-hPGYBkN_P9Ng5k96Ufk0J-9QRn6-+h16og@mail.gmail.com>
[ Adding 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 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<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>
next prev parent reply other threads:[~2023-07-20 9:21 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-21 13:43 Unable to unfold a folded block having point directly after the folded block Rainer Stengele
2012-01-02 18:53 ` Bastien
2012-01-03 10:58 ` Rainer Stengele
2012-01-04 10:27 ` Bastien
2012-01-10 8:52 ` Rainer Stengele
2023-07-20 8:37 ` Vlastimil Vondra
2023-07-20 8:46 ` Ihor Radchenko
[not found] ` <CACjq+cw3wMsyF=W-hPGYBkN_P9Ng5k96Ufk0J-9QRn6-+h16og@mail.gmail.com>
2023-07-20 9:20 ` Ihor Radchenko [this message]
2023-07-20 9:37 ` Vlastimil Vondra
2023-07-20 22:04 ` Evgenii Klimov
2023-07-21 7:30 ` Ihor Radchenko
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=87h6pzq6qq.fsf@localhost \
--to=yantar92@posteo.net \
--cc=emacs-orgmode@gnu.org \
--cc=vlastimil.vondra@gmail.com \
/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).