From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id SDNhN+235l9NJAAA0tVLHw (envelope-from ) for ; Sat, 26 Dec 2020 04:11:25 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 0A4vM+235l/BWwAAB5/wlQ (envelope-from ) for ; Sat, 26 Dec 2020 04:11:25 +0000 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 4272E94042C for ; Sat, 26 Dec 2020 04:11:25 +0000 (UTC) Received: from localhost ([::1]:47958 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kt0vL-0005to-KM for larch@yhetil.org; Fri, 25 Dec 2020 23:11:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kt0um-0005th-7I for emacs-orgmode@gnu.org; Fri, 25 Dec 2020 23:10:48 -0500 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]:35722) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kt0ui-0007t9-I6 for emacs-orgmode@gnu.org; Fri, 25 Dec 2020 23:10:47 -0500 Received: by mail-pj1-x102f.google.com with SMTP id b5so3500879pjl.0 for ; Fri, 25 Dec 2020 20:10:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=68nvS2vI9YlpIMdLPW/JwR2bVPmRYqocAYaxgeU+uVs=; b=UMPzysRqZ3916qDpFrP4VOH0El51Cdz58DY/lTmTZD5OtQUKQIJF2htmyfbUSJl/rh m1z/4EVwo0BMmyMqBTdY9sSrFm4dAuoD1jwDLvXPVIppOecYdCpDVd1jfZErrnQ77oDW s2Xxn8RTebccBYI/+p1wvzZR8L5MlrOIwQvHUzUJ9UuMYvHCzZQoUUM3hYhgsVfE4N+E aKBReMXFGEvRw5VRQAjon8yPxOd5o7cxrbIaB9242Kd+TyqdD1SOQVIpC593oQH7BqiK SmI1hoyj52braKvlmywjGlQm52fiu8Kg16pMR5uMbu178wm5W/61eXgosJe8KDwF7YXm w+KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=68nvS2vI9YlpIMdLPW/JwR2bVPmRYqocAYaxgeU+uVs=; b=BWNm9p2GOkE2ht+axFWdxDo9/r4z50x7PRZ7yWzVthadqQy9+T2NQhFd2adq03U74U Ck6rZeUQbRuJGrBhZmvBH51gfIIyQuH2xN6yzOEfjfWz0gPM55VTu8Rc+z+9/lPBWhC9 ck7E1oPtycZnA2zYxn9c4T3sjwPYR2BsYVrS/eJgs5pVlcGIxBopscsxxxHdGnAAwsCW 6na0NRMwBoBg4HtciGzJQQ6huYu4w8D5Q2ziE6/+ukK1mjYcfjJgKG0uN5qVuAK4YxmO Qq1GHdGh/26SnjGUmuyb1x5Hr9S0ngF62+1F+gPYfHwM31zE1j2K6ucR2tcDqhHfd4mz i0vA== X-Gm-Message-State: AOAM5327iOCShtU62X2YoP761S5D5ubBRtEXVSB89TsgwNk4J1DLMlPX yt64TBdWaEsZzUi4P5uyZNk= X-Google-Smtp-Source: ABdhPJyrcts+IBt++RC4IYuJwmCYdcLgopnFY1OhZkN1Orcc7ElOmL+85mdl61u3D5sI5NAa7nwyAQ== X-Received: by 2002:a17:902:b189:b029:dc:4102:4edf with SMTP id s9-20020a170902b189b02900dc41024edfmr22221978plr.80.1608955842962; Fri, 25 Dec 2020 20:10:42 -0800 (PST) Received: from localhost ([96.44.161.8]) by smtp.gmail.com with ESMTPSA id o193sm24305840pfg.27.2020.12.25.20.10.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Dec 2020 20:10:42 -0800 (PST) From: Ihor Radchenko To: =?utf-8?Q?K=C3=A9vin?= Le Gouguec Subject: Re: [9.4] Fixing logbook visibility during isearch In-Reply-To: <87sg7th8mh.fsf@gmail.com> References: <87h7x9e5jo.fsf@localhost> <87mu31adeu.fsf@localhost> <871rkcbx40.fsf@kyleam.com> <87mu301in8.fsf@localhost> <87lfh5vvrp.fsf@localhost> <87sgbc4qpl.fsf@gmail.com> <87sgbaw58y.fsf@localhost> <87pn6ew2pv.fsf@localhost> <8736393tlw.fsf@gmail.com> <87eemtm1ic.fsf@localhost> <875z83hwuc.fsf@gmail.com> <874knm61p3.fsf@localhost> <87r1nrdl5o.fsf_-_@gmail.com> <87r1nqjv9w.fsf@localhost> <87czz91v9h.fsf@gmail.com> <87v9d15dd5.fsf@localhost> <87blesa3mg.fsf@gmail.com> <875z4zam2s.fsf@localhost> <8735zu7p2u.fsf@gmail.com> <87bleizjh6.fsf@localhost> <87sg7th8mh.fsf@gmail.com> Date: Sat, 26 Dec 2020 12:14:42 +0800 Message-ID: <874kk9qk3x.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::102f; envelope-from=yantar92@gmail.com; helo=mail-pj1-x102f.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-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.52 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=UMPzysRq; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 4272E94042C X-Spam-Score: -2.52 X-Migadu-Scanner: scn1.migadu.com X-TUID: ccvRyz0bb7HB K=C3=A9vin Le Gouguec writes: > 1.2. stumps me: is there an isearch API I can use while in the callback > to know where the matches are located? I do not think that there is direct API for this, but the match should be accessible through match-beginning/match-end, as I can see from the isearch.el code. > For 2.1, I guess we will need to cache the temporary invisible overlays > we add during step 1. in a global list; that way when it's time to > destroy them, we can simply iterate on the list? That's what I do in org-fold--isearch-show-temporary. Best, Ihor