From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id MJR6EeerXmRjnQAASxT56A (envelope-from ) for ; Fri, 12 May 2023 23:13:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id WLWkEeerXmR7NwAA9RJhRA (envelope-from ) for ; Fri, 12 May 2023 23:13:11 +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 BDEFB242F9 for ; Fri, 12 May 2023 23:13:10 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pxa3r-0004sj-9b; Fri, 12 May 2023 17:12:23 -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 1pxa3p-0004sV-GI for emacs-orgmode@gnu.org; Fri, 12 May 2023 17:12:21 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pxa3n-0007ML-HA for emacs-orgmode@gnu.org; Fri, 12 May 2023 17:12:21 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id A75D22400A6 for ; Fri, 12 May 2023 23:12:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1683925937; bh=tXbFCyNPhX3rHTZ78zizB697w9rC8j7I7OUwiEI4i2Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=Q89Xy0uyqmijHFintlultWdM70324EIzJ+Y3ojr6FeE0yQWxRNDiWXRzY8kfc08TH O4aCEl4rk7xGMmWwLTpvVRnH0JmqfFW6sXGOWRW3Edv66K0rq5oIpsMX+RErts8sfd Yz30OVDAkIBePCPOpKVTek8CWZM2LNQG37FoimDkmmQb9+TA5yHo74F44k9TyPTbgB lJFBpyHq5XrEWgDazdVrUQL4eKeKM2GfpIfUdtgyTnRi8HZb8zutkS16jhfyl7vpsJ XTrMfP6hOnExbflWwen2hC5SB42xSLP2CB8xejE4ENrIJSCZa6Tg0dwXKnntCC1tEH RB05u56/a6Dbg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QJ1g50vytz6txm; Fri, 12 May 2023 23:12:17 +0200 (CEST) From: Ihor Radchenko To: William Denton Cc: "emacs-orgmode@gnu.org" Subject: Re: BUG: org-cycle does not unfold some subtrees In-Reply-To: References: <87o7mybris.fsf@localhost> <87ild6bkhg.fsf@localhost> <87fs8aasa8.fsf@localhost> <87jzxlaoyn.fsf@localhost> <87fs89amj6.fsf@localhost> <878re19wr6.fsf@tsdye.online> <87zg6cvcym.fsf@ucl.ac.uk> <878rdwbnu6.fsf@localhost> <875y8z5h8o.fsf@localhost> <87r0rn3rr7.fsf@localhost> <875y8x2118.fsf@localhost> Date: Fri, 12 May 2023 21:15:43 +0000 Message-ID: <87v8gxs134.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, 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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1683925991; a=rsa-sha256; cv=none; b=FLx/nKy+yQVZqiHayFa4PaTroxr24ORtu9wikJX8ic2viv+IfbaIEukUE6WyOGLNt+gnsb q1eM2rTMn3E4toKZuwMxY66TF4rf61OWk9nP8yCxFKyD/QOkOiPU60SSL9IjxECYFtB6u7 NSLAjzlWJVxwtgs5rcCSNqw7kF4Lg8ozniAzJdwo5GIdU4tWufZmxINaECvDAVU+R8wXEd c7dfcmGRxpFxnppGRI6mbbYdg2LQ8Hx5nGONXdnjRaRXMXswrNFrIhuIbhk1LDsEhvtrqd z8o4rDoBgGwH5paOSRjJzcMge9Q5bBblBXALoT+BHi13D1rWfrpLwXF+UQlLNA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Q89Xy0uy; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1683925991; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=g5+gnfx0IqvRJO2K4c9o3LgYpudXkW49tZJ90L9C6n0=; b=tUHPI25cP5kphq9CUIZKVhlJM2w4f9Ys92Asru6GWLjhDF9/kPVG+3FvkWcarjh7DVh9Th HSaGVrhsZziOzR1CYa03sC10qSAU3W3GEXDqMqKh3sm5F5YfUvTxN1gyVfDSxXAgxhNdin qruDKqHcrlgcf8wxfCljf1Ps2ANP5g+rHS5Pf/Tmgiwx/WDaXzS8aHGh/jsssbjzC1I/94 fLB51AXU6jeMw3BD/k5xVRIXeu/k4lnhpVWUjwcban7HDpLO3TCexn3S01LkDE+BKq6L6H JjBqxSTx1Og/lzEktsCSrj36ym+Mfb5wrhjxBaEYjnxH8AMWaufU7woK8s9YAw== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Q89Xy0uy; dmarc=pass (policy=none) header.from=posteo.net; 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" X-Migadu-Spam-Score: -4.66 X-Spam-Score: -4.66 X-Migadu-Queue-Id: BDEFB242F9 X-TUID: f8dyjx68eAwd William Denton writes: > No and no, but now that I'm thinking about searching, I remember I use Sw= iper=20 > (and Ivy and Counsel).=C2=B9 C-s runs =3Dswiper=3D, which is =3Disearch-= forward=3D "with an overview," as it=20 > describes itself. > > If we've narrowed it down to searching, could it be connected to that? T= o the=20 > 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-fi= lter-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)) ;; t= rick isearch by creating overlays in place of invisible text (isearch-filter-visible beg end)) --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at