GNU bug report logs - #78467
30.1; evaluating isearch-forward to invisible text in org-mode breaks folding

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Brett <brett.kerwin1@HIDDEN>; dated Sat, 17 May 2025 08:13:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 17 May 2025 08:12:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 17 04:12:11 2025
Received: from localhost ([127.0.0.1]:45204 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uGCeR-0004Mh-27
	for submit <at> debbugs.gnu.org; Sat, 17 May 2025 04:12:11 -0400
Received: from lists.gnu.org ([2001:470:142::17]:41602)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <brett.kerwin1@HIDDEN>)
 id 1uFwut-00031U-9y
 for submit <at> debbugs.gnu.org; Fri, 16 May 2025 11:24:07 -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 <brett.kerwin1@HIDDEN>)
 id 1uFwun-0005yN-JV
 for bug-gnu-emacs@HIDDEN; Fri, 16 May 2025 11:24:01 -0400
Received: from mail-ej1-x644.google.com ([2a00:1450:4864:20::644])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <brett.kerwin1@HIDDEN>)
 id 1uFwul-0006gs-Pf
 for bug-gnu-emacs@HIDDEN; Fri, 16 May 2025 11:24:01 -0400
Received: by mail-ej1-x644.google.com with SMTP id
 a640c23a62f3a-ad4d5bb4d0eso392483366b.1
 for <bug-gnu-emacs@HIDDEN>; Fri, 16 May 2025 08:23:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1747409038; x=1748013838; darn=gnu.org;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=xQ9cRtmcPvbhtzSsA9YcSBbdvPAzRGhHZKQMr0sHyVo=;
 b=hhR1htsWr2K5a/tY3R2l+q6n4LIGaCUWwNC1yiuvphPlWgRA5Mi8qHkKNavHfudTLy
 EN2nseG++s2hEGGsMXckBTSAkJuisbUg/2HmUqdXCjUiQC4xgRuMHcvl5ULIsIPLRhZj
 5dptca26UgrRUyHVQqNVno/TAoEBC0PDB78h9Kmt27EaFefXH454+StDgn1FlPf5q/av
 BM4cIk4QaJ/+UiFtga8QLIhLFccCBzokNZCi5gNDRFfxzRF/AKvu1ueOvHNXR4xy/v4c
 mP8PWVgXyiq3FOAANKIYa6ClcRJCgXvLP5JjfQ8W5fV0DaMo2Didq1eU9TaWFJ/xCZH2
 herA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1747409038; x=1748013838;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=xQ9cRtmcPvbhtzSsA9YcSBbdvPAzRGhHZKQMr0sHyVo=;
 b=wu0O+nr3sjED+imoYPUXUa/w8g4AX/ENbdu1n8DAfdtUyiqcR0eDx8Qwi+DUUm0xxs
 UQyNK26r7Q+yUL4WnzAWt/Z6IBP3OOMZDDKvyt8DTIUrJzdEHUEPO80p32RtChn2zP7f
 XGnVhmBX1FneEvJCPDjD4RbViI7XKoFpVhqnCpsGpEbsQF3odUUfoR76Ye4DKttIzbJB
 bwMApq0TvOUow8O+vQCUq3q3nYpxre1nWDfqMTp77+wQIuOHXyKTcoOCngnPcjl2GkfV
 0iBKMuyrwM3gPwPFNusGHYF7Xc31lhZhznXdbsrrAmYqbNrz7TcwQzaSwsx5jin/DYO5
 pmGQ==
X-Gm-Message-State: AOJu0YyOVFkn3aJAPC9aNtE1wEaOidurJpx2JkdjSe9GBlGcUs4OYyEv
 Gphk3Yv/aA3EX3mkwIerBF+Z0KSyf5bs7yJPZmbtpr+37fG74o2B82DNYoPtdzGBGnaw8XCuKbC
 wNYEzUZpVpm3RE5GxtpwSMhGCaumNZZHrO2rk4iBGub6e83c=
X-Gm-Gg: ASbGncsw/4SeEcBgk5SEVk+KLSAVNczqGQ58UbWLpd7zQ7daIfS1RFDJ+p0VGVidOZT
 Ehwctc7HtdrN7NcHK7w1EgpVmi326bJlD1PsnfS0FKn1ilsQpDK8zLIbugE6Pnz2lOteQYbkhZQ
 yQeANZaJoiB4a2155jHL1T+ndWdHhqFw==
X-Google-Smtp-Source: AGHT+IF9Y878/5KCrgf+mS5BbmwaZhtjZxmmooKP9KxvuSkw6WOhglUfFMBp7+zF/vgkCpIoxauLA1tpF0oiowaDWJs=
X-Received: by 2002:a17:907:e916:b0:ace:c59c:1b00 with SMTP id
 a640c23a62f3a-ad52d42dc34mr373086766b.5.1747409037985; Fri, 16 May 2025
 08:23:57 -0700 (PDT)
MIME-Version: 1.0
From: Brett <brett.kerwin1@HIDDEN>
Date: Fri, 16 May 2025 17:23:47 +0200
X-Gm-Features: AX0GCFvK6HRQjGpE8DpRibmIdBfYH5i22hK00ln4pdPWsKO68Wn5Qk5fgdUkWe4
Message-ID: <CACZEyLjerj_WgPZPm-cuvPeyScGXKTbT9Nrwm2U3mSJtdZ=0HQ@HIDDEN>
Subject: 30.1; evaluating isearch-forward to invisible text in org-mode breaks
 folding
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=2a00:1450:4864:20::644;
 envelope-from=brett.kerwin1@HIDDEN; helo=mail-ej1-x644.google.com
X-Spam_score_int: -17
X-Spam_score: -1.8
X-Spam_bar: -
X-Spam_report: (-1.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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.2 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview: Create a 3-line file named foobar.org containing exactly
 this:
 * foo ** bar baz (So the first character of the file is *.) Type 
 Content analysis details:   (1.2 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org]
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends
 in digit (brett.kerwin1[at]gmail.com)
 1.0 SPF_SOFTFAIL           SPF: sender does not match SPF record (softfail)
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (brett.kerwin1[at]gmail.com)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Sat, 17 May 2025 04:12:09 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.2 (/)

Create a 3-line file named foobar.org containing exactly this:

* foo
** bar
baz

(So the first character of the file is *.)  Type

emacs -Q foobar.org

and type

TAB M-: (isearch-forward) RET b RET

(this folds everything, then calls the isearch-forward function, searches
for b which will unfold everything and position the point on the second
line).  Now type TAB: this should fold the second heading only, but it will
fold everything.  And in fact you can try moving around and pressing TAB
again as many times as you want: you will never be able to fold only the
second heading again.

Note that replacing

M-: (isearch-forward)

in the above sequence with

M-x isearch-forward

does NOT trigger the bug, instead it does produce the desired behaviour.

In GNU Emacs 30.1 (build 1, x86_64-redhat-linux-gnu, X toolkit, cairo
version 1.18.2, Xaw3d scroll bars) of 2025-04-08 built on
801fee700660491d8dc8419bf4a7391e




Acknowledgement sent to Brett <brett.kerwin1@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#78467; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 17 May 2025 08:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.