From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#60399: 30.0.50; Usage of `isearch-open-invisible-temporary' is not documented Date: Sun, 01 Jan 2023 12:51:40 +0000 Message-ID: <87bkni8lk3.fsf@localhost> References: <87tu1ev7uu.fsf@localhost> <865yduf73m.fsf@mail.linkov.net> <87mt73afow.fsf@localhost> <83zgb239rv.fsf@gnu.org> <87edse8vu1.fsf@localhost> <83wn6634gb.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32165"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60399-done@debbugs.gnu.org, juri@linkov.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 01 13:52:25 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pBxpB-0008A9-2x for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 Jan 2023 13:52:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pBxoq-00047n-RN; Sun, 01 Jan 2023 07:52:05 -0500 Original-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 1pBxoo-00047G-PX for bug-gnu-emacs@gnu.org; Sun, 01 Jan 2023 07:52:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pBxoo-0001bC-B9 for bug-gnu-emacs@gnu.org; Sun, 01 Jan 2023 07:52:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pBxoo-0004Ic-0B for bug-gnu-emacs@gnu.org; Sun, 01 Jan 2023 07:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Jan 2023 12:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60399 X-GNU-PR-Package: emacs Original-Received: via spool by 60399-done@debbugs.gnu.org id=D60399.167257748516476 (code D ref 60399); Sun, 01 Jan 2023 12:52:01 +0000 Original-Received: (at 60399-done) by debbugs.gnu.org; 1 Jan 2023 12:51:25 +0000 Original-Received: from localhost ([127.0.0.1]:40430 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pBxoD-0004Hg-Bj for submit@debbugs.gnu.org; Sun, 01 Jan 2023 07:51:25 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:36871) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pBxoB-0004HT-Gv for 60399-done@debbugs.gnu.org; Sun, 01 Jan 2023 07:51:24 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id A10BD2401B5 for <60399-done@debbugs.gnu.org>; Sun, 1 Jan 2023 13:51:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1672577477; bh=1m0k1lEmgz5wOSsm3DIznklrRuB/wKUE2EHUxJKukec=; h=From:To:Cc:Subject:Date:From; b=IaCN/wzvTmByTejip6l325rD4owwjWzZcZDK86sD0ns1gqCueGmjHExeKUz0gYjTP xT56uc2Q6UqoIjV9/zZ8SQZgAIZTaP4+T6tZIsRXYDB/FTPdsWLD0DQB3CKna2FYlz 16iip8hLZZnd/LsH8G8LI98lxyMJw5oWX/hs2Pr/ouxdnUSt498HQ6Yu2tdmDV0Gem 3LqOBwNxcBWDBp+Z2z7elcHSrb5wq5N/WfAFemydoQvSJGzlmZretuW1HyzmWT1147 /6F1stfySp6WUoj0NuC4MyN4Ehrz8Ll0Uoi9VwQsnSnIu1DGRYiQqteZZUmG4EAlMB jLq9Y+6bjyJHQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NlJlS4LRpz9rxK; Sun, 1 Jan 2023 13:51:14 +0100 (CET) In-Reply-To: <83wn6634gb.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:252241 Archived-At: Eli Zaretskii writes: >> What about the manual? >> (elisp) 41.6 Invisible Text > > I don't think this obscure issue needs to be mentioned in the manual. > It is quite clear to me that the overlay in question cannot be > deleted, I actually raised a brow when you asked for this to be > explicitly mentioned. I think I need to explain the context a bit. In org-fold, we want isearch matched to be not just revealed according to the full overlays they are hidden in. We want to rearrange the overlays in such a way that outline structure above the match is revealed: * Folded heading ** Folded sub-heading Some unrelated text. :FOLDED-DRAWER: isearch-match :END: which will look like * Folded heading... When we do isearch, the aim is * Folded heading ** Folded sub-heading... isearch-match ... which requires re-creating overlays used for folding. In the process, 'isearch-open-invisible-temporary may affect more than the overlay used as its argument. In particular, other overlays at point may be affected. The 'isearch-open-invisible-temporary takes care about proper saving and restoring the necessary overlays. However, isearch gets broken. In this setup, it is not that obvious that isearch will still try to do something with overlays that got deleted during the call to 'isearch-open-invisible-temporary. I am not even sure how to achieve the desired custom behavior using the current isearch implementation. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at