emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: William Denton <wtd@pobox.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: BUG: org-cycle does not unfold some subtrees
Date: Fri, 12 May 2023 21:15:43 +0000	[thread overview]
Message-ID: <87v8gxs134.fsf@localhost> (raw)
In-Reply-To: <alpine.DEB.2.22.394.2305121656070.195165@shell3.miskatonic.org>

William Denton <wtd@pobox.com> writes:

> No and no, but now that I'm thinking about searching, I remember I use Swiper 
> (and Ivy and Counsel).¹  C-s runs =swiper=, which is =isearch-forward= "with an overview," as it 
> describes itself.
>
> If we've narrowed it down to searching, could it be connected to that?  To the 
> other people with this problem: do you use Swiper?

I am looking at
https://github.com/abo-abo/swiper/blob/master/swiper.el#L980 and I note
that swiper calls `isearch-filter-predicate', but not
`isearch-mode-end-hook', which indeed explains why the isearch overlays
are not converted back to proper Org folds.

Does it help if you try the following variant of `org-fold-core--isearch-filter-predicate-overlays':

(defun org-fold-core--isearch-filter-predicate-overlays (beg end)
  "Return non-nil if text between BEG and END is deemed visible by isearch.
This function is intended to be used as `isearch-filter-predicate'."
  (when isearch-mode (org-fold-core--create-isearch-overlays beg end)) ;; trick isearch by creating overlays in place of invisible text
  (isearch-filter-visible beg end))

-- 
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>


  reply	other threads:[~2023-05-12 21:13 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-05 17:35 BUG: org-cycle does not unfold some subtrees Michael Dauer
2023-05-05 17:46 ` Ihor Radchenko
2023-05-05 18:40   ` Michael Dauer
2023-05-05 20:18     ` Ihor Radchenko
2023-05-06  0:44       ` Christopher M. Miles
2023-05-06  6:27         ` Ihor Radchenko
2023-05-06  7:18           ` Michael Dauer
2023-05-06  7:22             ` Michael Dauer
2023-05-06  7:39               ` Ihor Radchenko
2023-05-06  8:22                 ` Michael Dauer
2023-05-06  8:31                   ` Ihor Radchenko
2023-05-06 17:46                     ` Thomas S. Dye
2023-05-06 18:11                       ` Ihor Radchenko
2023-05-06 18:39                         ` Thomas S. Dye
2023-05-06 19:06                           ` Ihor Radchenko
2023-05-06 20:25                             ` Thomas S. Dye
2023-05-09  0:32                             ` Thomas S. Dye
2023-05-09  6:27                               ` Ihor Radchenko
2023-05-09  6:43                                 ` Michael Dauer
2023-05-09  7:34                                   ` Ihor Radchenko
2023-05-09  7:53                                 ` Thomas S. Dye
2023-05-09  9:53                                   ` Michael Dauer
2023-05-09 10:41                                   ` Ihor Radchenko
2023-05-10  1:56                                   ` William Denton
2023-05-10  7:54                       ` Fraga, Eric
2023-05-10  8:19                         ` Ihor Radchenko
2023-05-10 11:23                           ` Fraga, Eric
2023-05-10 15:18                           ` William Denton
2023-05-11  9:50                             ` Ihor Radchenko
2023-05-11 13:34                               ` William Denton
2023-05-11 13:46                                 ` Ihor Radchenko
2023-05-11 13:52                                   ` William Denton
2023-05-12 12:21                                     ` Ihor Radchenko
2023-05-12 21:01                                       ` William Denton
2023-05-12 21:15                                         ` Ihor Radchenko [this message]
2023-05-12 21:36                                           ` Thomas Dye
2023-05-14 10:56                               ` Michael Dauer
2023-05-14 11:53                                 ` Gregor Zattler
2023-06-01 11:37                                 ` Ihor Radchenko
2023-08-04 13:42                                   ` Michael Dauer
2023-08-04 14:04                                     ` Ihor Radchenko
2023-08-04 14:11                                     ` William Denton
2023-08-08 15:21                                       ` Michael Dauer
2023-08-08 17:10                                         ` Ihor Radchenko
2023-08-09  9:14                                           ` Michael Dauer
2023-08-09  9:15                                             ` Michael Dauer
2023-08-09  9:19                                               ` Ihor Radchenko
2023-05-06 13:39             ` Christopher M. Miles
     [not found]       ` <6455a3ec.c80a0220.7ded4.665aSMTPIN_ADDED_BROKEN@mx.google.com>
2023-05-06  6:43         ` Christopher M. Miles
2023-05-05 23:18 ` Christopher M. Miles

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=87v8gxs134.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=wtd@pobox.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).