From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id +Ib6NT972V9pVwAA0tVLHw (envelope-from ) for ; Wed, 16 Dec 2020 03:13:03 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id sBjTMT972V8GTwAA1q6Kng (envelope-from ) for ; Wed, 16 Dec 2020 03:13:03 +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 55D7B940657 for ; Wed, 16 Dec 2020 03:13:03 +0000 (UTC) Received: from localhost ([::1]:42004 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kpNFN-0005Bh-RY for larch@yhetil.org; Tue, 15 Dec 2020 22:13:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39754) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpNEt-0005BX-1x for emacs-orgmode@gnu.org; Tue, 15 Dec 2020 22:12:31 -0500 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]:40075) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kpNEj-0000Vk-8c for emacs-orgmode@gnu.org; Tue, 15 Dec 2020 22:12:30 -0500 Received: by mail-pl1-x634.google.com with SMTP id q4so6421428plr.7 for ; Tue, 15 Dec 2020 19:12:20 -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=cHjfhupSmhqJlsgmzy8ZTifLLM0JI4oeYpJfmC6LsqY=; b=IPKSKMoyw9XHUOVBmd3gZCB/YkqWYDopFYz2FvcW6Sy9Lw+kNPG6S5m70dc3tGQd9f Vt3D72SXDDeTJ9X/viUsl5KRGHhRQ97YwVMl9lpag6/BROsa6zArxbbmDmYZvi3T/D1y Uew9WAMttFn8ir8ogYUO3P5rnIczvY1giIa8LuVvKOHVZ5MBCdSff7cuecsrTm5jhUHz XK/65NyG/4Tm2kSM3K33qDw0xFWoRYqzPt742BiVFTHsX1s+DWtasdjrR60ocAyudOPx ehIyv165g8Y2EBZIQ8Of9pqDpYAbJi9KRJ7PZzZjXUxIWfs5Q1DIpdH3EQLWJ/gHa8Fy qdeQ== 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=cHjfhupSmhqJlsgmzy8ZTifLLM0JI4oeYpJfmC6LsqY=; b=Mn4xX17HfkKY1aRMI1MbaCZJ8mCUtTy1J/3J9DGmY+cyeC9ciofurgBYTyUA40Tc0X TsiJrehSda2JHxsOwnoIEyF/MJ848PgmCe4qW7qlUGPWvM2375METfXyd/DeqduJ9fee RsFxesSKrbqSUjeNMIcwdilwB+GqX34Vpg8O7no9iu5ocIy1Sg/3r7px64WSwDBqL9Kk osQfHkiouZMjV1tc33c0Oqa56dG4mK+MMKe2kYM0x9tt7gd3rRFXf/Vd05jxL2OiU5Ip wbPVgYwmtem5iFFBb8lytmcqnAFzQLsWrk/Fmz5fjETcuUutCS+m8xBENGWNWD0ZMVyz bQ5A== X-Gm-Message-State: AOAM532zL4PeJ4cu62xHMxKtslJoEIbu8HwXyuOFGHHA6djII1TFxbAo M1x/Um/9xQuJTzMHuKf3uGA= X-Google-Smtp-Source: ABdhPJzItmFDZc4caaji5VN/TFOzLhAIJ8BGnFu2pRaXrLxAzHG97YVsma7XP7BPHP8AecNbj7TYFA== X-Received: by 2002:a17:902:8e87:b029:d8:e26a:77ea with SMTP id bg7-20020a1709028e87b02900d8e26a77eamr4964834plb.18.1608088339649; Tue, 15 Dec 2020 19:12:19 -0800 (PST) Received: from localhost ([172.121.189.110]) by smtp.gmail.com with ESMTPSA id w2sm383466pfb.104.2020.12.15.19.12.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Dec 2020 19:12:18 -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: <87r1nrdl5o.fsf_-_@gmail.com> References: <87h7x9e5jo.fsf@localhost> <87sgfqu5av.fsf@localhost> <87sgfn6qpc.fsf@nicolasgoaziou.fr> <87367d4ydc.fsf@localhost> <87r1uuotw8.fsf@nicolasgoaziou.fr> <87mu5iq618.fsf@localhost> <87ftb9pqop.fsf@nicolasgoaziou.fr> <875zc2du63.fsf@localhost> <87wo4en8qk.fsf@nicolasgoaziou.fr> <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> Date: Wed, 16 Dec 2020 11:15:55 +0800 Message-ID: <87r1nqjv9w.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::634; envelope-from=yantar92@gmail.com; helo=mail-pl1-x634.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, 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: -1.01 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=IPKSKMoy; 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: 55D7B940657 X-Spam-Score: -1.01 X-Migadu-Scanner: scn0.migadu.com X-TUID: SBO2tfxdXsRN K=C3=A9vin Le Gouguec writes: > The debugger only fires *after* we exit isearch, and by that time it's > too late: my issue comes from all those logbooks cluttering the screen > while I'm mashing C-s to iterate through matches. > > I can try to dig deeper into this, but before doing so: would you have > any insight as to what's going on here? org-mode is relying on default isearch behaviour during interactive C-s session. By default, isearch simply makes all the overlays at match visible and re-hide them once we move to the next match. In case of org-mode, this reveals drawers as well, since they are in the same overlay with the rest of the folded heading. The way to change default isearch behaviour *during* isearch session is setting undocumented 'isearch-open-invisible-temporary property of the overlay (see isearch-open-overlay-temporary). The function must accept two arguments: overlay and flag. If flag is non-nil, the function should re-hide the overlay text and it should reveal the overlay when flag is nil. Best, Ihor