From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uPWiHSZBq2PbEgEAbAwnHQ (envelope-from ) for ; Tue, 27 Dec 2022 20:01:58 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id WGO9HSZBq2NFQQAA9RJhRA (envelope-from ) for ; Tue, 27 Dec 2022 20:01:58 +0100 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 618773B6F2 for ; Tue, 27 Dec 2022 20:01:57 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pAFBZ-0007Kb-Qj; Tue, 27 Dec 2022 14:00:25 -0500 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 1pAFBY-0007K0-8F for emacs-orgmode@gnu.org; Tue, 27 Dec 2022 14:00:24 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pAFBU-00059A-5r for emacs-orgmode@gnu.org; Tue, 27 Dec 2022 14:00:22 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 76A81320079B; Tue, 27 Dec 2022 14:00:14 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 27 Dec 2022 14:00:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=imapmail.org; h= cc:content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=fm2; t= 1672167614; x=1672254014; bh=6yGaD62I6Tq4bP5YyqTyNI5x37RCYg1AHQA HtLvnFi8=; b=g1jLHH3XjdviwFVsn8qXkQCaJDsFxeCEnoTTUXJq8fpbMvrGKzP x9BmUVCtSaULPJNhC0Rcsv9U0hnAUoQMLRtDupYTLBHVQwJZvYPEYNcIE9l1MP3r JFj27Y+k1eDQwH5wqM7anbl0eTF6sTZ8MwpATsZxCsfN/xH89zzXY97CDd/TKSXI InMohQSLc4l76VI4Tdaq64Ei0BJOogXlBbpcqzRG2fpbo5HR4zodwhZ5O+Ih7Bua itUkh3D6pkKhmDqB7TVBVDekIzH6e+XpqEwk3sgW0OsuWLL3MDmjkhErRQIjhcxj BzEwHHkuwB3hXpwufnKRYXeY0UOXnT1TPBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1672167614; x= 1672254014; bh=6yGaD62I6Tq4bP5YyqTyNI5x37RCYg1AHQAHtLvnFi8=; b=u g6wJ/fKj14ZuUpQBENwk4BlTvdK7m/qptK5SqU0K1+8q7BAuzWmllXFlyaBN7kP6 EqL2ELT3L8MfzN4DYYZio5G4VRZ0Cfvo3odBF/Xe3HkMPrA+daBFE7ojIV6rxtbP lGc4CbSVd5dbsSBYCoP6PvMQGudly0jS4mMyo30qFCCpyJBuI2+BSXE/OdggP1yo 7goiY0gl5nNdqveOfiMDRV5K+xkLWpKavVWbyvE9iVvGjTot8XECVcQCM+PS23Ep fi1tKKtjD1hUdQi6vnXYaU/Q9WnLhgq5LsavxhiTxoZYzFvcW0LbTIp+goV2HsVk aN2B6XXNynVIMhF7ioy0w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedriedtgdduudekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkgggtsehttdertddttd dtnecuhfhrohhmpeforghtthcunfhunhguihhnuceomhgulhesihhmrghpmhgrihhlrdho rhhgqeenucggtffrrghtthgvrhhnpeeffeekieevffeugeelieeikeehhfettdekveevtd egheeiteehveeiteduffdtfeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpehmughlsehimhgrphhmrghilhdrohhrgh X-ME-Proxy: Feedback-ID: ieb924183:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 27 Dec 2022 14:00:13 -0500 (EST) From: Matt Lundin To: emacs-orgmode@gnu.org Subject: [Bug] isearch errors when org-fold-core-style is 'overlays Date: Tue, 27 Dec 2022 13:00:11 -0600 Message-ID: <87pmc4smdg.fsf@fastmail.fm> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=64.147.123.25; envelope-from=mdl@imapmail.org; helo=wout2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672167718; a=rsa-sha256; cv=none; b=chcve7NLA3/qecrAERsMewxuRKIa+Tefg0WlufSSln+d2LQ4qYXS8OTfBb+si5G02IY18I 1NTL91FUJEc+FpnDfjebQvdWBB7ExiL6ducy3CJSONtUG1k5MY2CEwQH9uav8NHrSLmGJV 4w7qAWTZ/3tOgEhjeoHEeTIh0YVf2xK9HClQ+zngsXEqnbFBIB28nnBUt4yWAbYw4WG1IJ HKJnSYG/zTUSZljs/WZsAh9OkmWl/Ao5lvhPECT3Eaf4ebQugPtXwJWcQEpCjj4DfYyQVg 7j/nIyKMJ/2L+W5h7SEdC8lsw/aYtEkQKqPr8RiqxaHJRy9FLWX04CWQLgK4MA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=imapmail.org header.s=fm2 header.b=g1jLHH3X; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b="u g6wJ/f"; 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=fail reason="SPF not aligned (relaxed)" header.from=imapmail.org (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672167718; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=6yGaD62I6Tq4bP5YyqTyNI5x37RCYg1AHQAHtLvnFi8=; b=nZDr1s3BnE5VaPOai7pKcj+8oXQj9c47k7zIULGwm6eZpvnK7E49dWIwK76MyzJY/H0Mw2 COnGoHgFdtYCfb1AVux1ZSlv36X1RQbkP92STJNd4Sb6R9/IrKFBHTxvvarNaIvCVknBpu SKYEGtm9qxR1NzFo2sgbwl7/0WsnTVnniXX4OsgMKLQNGdoyx+58h885STyTKZOIfrIWg0 Ych+N7ktBD7abYtTj15Rr0mmsZ6xKG15gyAvdh7AEhSvvsuk5X4MpLrF/GjmqJgWmrZUmy M2vUMxU4tPIK+2YVrkSWVL0Jtn0mT5dJ9J4yt7H/jCd6ARTG8tvZFxkPhWLUYw== X-Spam-Score: -1.23 X-Migadu-Queue-Id: 618773B6F2 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=imapmail.org header.s=fm2 header.b=g1jLHH3X; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b="u g6wJ/f"; 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=fail reason="SPF not aligned (relaxed)" header.from=imapmail.org (policy=none) X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -1.23 X-TUID: 0ZhrpBHTT8UT I'm finding that isearch fails to unfold the correct region or to search in the correct region when there are folded regions in a buffer and `org-fold-core-style` is set to 'overlays. Here is a minimal recipe for reproducing the bug: Use a minimal emacs startup file: --8<---------------cut here---------------start------------->8--- (add-to-list 'load-path "~/org-mode/lisp/") (setq org-startup-folded t) (setq org-fold-core-style 'overlays) --8<---------------cut here---------------end--------------->8--- Open the following file: --8<---------------cut here---------------start------------->8--- * One word * Two word --8<---------------cut here---------------end--------------->8--- Issue #1: Go to the beginning of headline "Two" when the trees are folded. Type "M-x isearch word [RET]". Expected behavior: isearch should reveal the entry under headline two and shift the highlighted region dynamically as the characters typed begin to match. What happens: the beginning of the highlighted region remains stuck at the beginning of the headline and the entry does not unfold until after the return key is pressed. Issue #2: Cycle headlines to folded state. Go to the beginning of headline "Two". Type "M-x isearch word [RET]". Note that during this second search dynamically highlighted region expands to include the folded headline "One". Once return is pressed, isearch reveals the entry under headline "One" and moves the point to the "word" there. After running git bisect, I traced the issue to commit 6cd7c6fb1cf6363f1057086760bed9875cdd97c7 Thanks, Matt