From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iNhNBncq519kVwAA0tVLHw (envelope-from ) for ; Sat, 26 Dec 2020 12:20:07 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id KGE9Ancq519IdwAAbx9fmQ (envelope-from ) for ; Sat, 26 Dec 2020 12:20:07 +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 896F29404D2 for ; Sat, 26 Dec 2020 12:20:06 +0000 (UTC) Received: from localhost ([::1]:45812 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kt8YG-00054G-CA for larch@yhetil.org; Sat, 26 Dec 2020 07:20:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38230) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kt8Wm-00053J-Ix for emacs-orgmode@gnu.org; Sat, 26 Dec 2020 07:18:32 -0500 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]:52976) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kt8Wh-0006lT-4K for emacs-orgmode@gnu.org; Sat, 26 Dec 2020 07:18:32 -0500 Received: by mail-pj1-x1029.google.com with SMTP id v1so3580642pjr.2 for ; Sat, 26 Dec 2020 04:18:26 -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=+lXjMgFTrCqs93BSBwiyArMmLNpVf27vvFlFOJKfP6c=; b=PNjntzDsECfErud6Yo1BpWr+b57E08weSvQ2K3YzZO3MTzmfXITM0hVexbc6E9Fh0/ F344pQK9cYmn9VEdkjr4yQYiJRZYbWoRl6GWIuq/PbQrN6/BKlO4q6cpwD9/AKz0xjr6 Ti957q/vTDa5ttLPn1WPdWmozy7I8p7tpQcWVEAnjZpXz8U4l+orhYHEPUgNFOW/Na1c nxPg8zJGlL55uPUjYZsqX1h72Qv6YB0dkbsUcn3XSdW+BjwNUSITaR915dlLZ1YJUrZX 0Ek8CkNNpRxy+6nFC+2rncg+IfeRYLSOh+oCQNxzdk2XhRthxaZgHJKazLkDqx7iLHLM mnzg== 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=+lXjMgFTrCqs93BSBwiyArMmLNpVf27vvFlFOJKfP6c=; b=kpNbjfC+zCw0KL5aKeQHQ39XJZLwIMXzuVe9vdpD/s0TRRHBcoVNxmzIwwTiCNLAJQ 7PNyjU3L0fJY/uj37bI+MfgHwIxSzS3kknSYW3gUh8o7HTPfC4+umUXeRhgyrfG82gTA V7t6szLHJ2+zYG+3TLBeif1LzPiagfUU+q7tARJSlKq83rPvLyC3Y6W2pC5yK+y6/i2k AqEcl0ALtfdipgk20T7NxlKOOUPGwGyJf6gf+cHWiI9xcvWO69weW0LNRUWXm6BeuM4V 6cAEDG6750x5VHWnpln9iNRVrQsHxwebYMp/UrfB96gdwx4szrvPZH5TNzNHvLlSItUR gpnA== X-Gm-Message-State: AOAM533VRY9aq07BjnDoTtyv3oYv/V+vbRKvaZ0TPLRbYLRbg77Pa9F9 r4ICH7VsV5T/+iaRdRUYEHk= X-Google-Smtp-Source: ABdhPJy93sQqJk1YFYWu8f9zx4ehJNpGe3Nj5gaZJi6wTAFO9nvjAaPxSOcVOv5foAlOgh8Kmr+sRA== X-Received: by 2002:a17:902:c242:b029:db:d0ee:8926 with SMTP id 2-20020a170902c242b02900dbd0ee8926mr36600217plg.31.1608985105708; Sat, 26 Dec 2020 04:18:25 -0800 (PST) Received: from localhost ([96.44.161.8]) by smtp.gmail.com with ESMTPSA id g7sm7860782pjm.46.2020.12.26.04.18.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Dec 2020 04:18:24 -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: <8735zs7pvy.fsf@gmail.com> References: <87h7x9e5jo.fsf@localhost> <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> <874kk9qk3x.fsf@localhost> <8735zs7pvy.fsf@gmail.com> Date: Sat, 26 Dec 2020 20:22:24 +0800 Message-ID: <87y2hkpxj3.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::1029; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1029.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=PNjntzDs; 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: 896F29404D2 X-Spam-Score: -2.52 X-Migadu-Scanner: scn1.migadu.com X-TUID: 0AGYmQfzjtAB K=C3=A9vin Le Gouguec writes: > Ihor Radchenko writes: > >> 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. > > Right, I've seen this too; I wonder if it's a hard guarantee or an > implementation detail. I might page help-gnu-emacs about this. Another way could by using isearch-filter-predicate. It is given the search region directly.