From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ICe6K1MCcWKXKQAAbAwnHQ (envelope-from ) for ; Tue, 03 May 2022 12:22:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YNnmKlMCcWKZSQAAG6o9tA (envelope-from ) for ; Tue, 03 May 2022 12:22:11 +0200 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 553551BAC1 for ; Tue, 3 May 2022 12:22:11 +0200 (CEST) Received: from localhost ([::1]:49870 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nlpfW-0005bI-5c for larch@yhetil.org; Tue, 03 May 2022 06:22:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53894) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlpef-0005Z9-0U for emacs-orgmode@gnu.org; Tue, 03 May 2022 06:21:17 -0400 Received: from [39.171.215.226] (port=12997 helo=Mac-mini.local) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nlped-0001EX-1v for emacs-orgmode@gnu.org; Tue, 03 May 2022 06:21:16 -0400 Received: by Mac-mini.local (Postfix, from userid 501) id 7F0874D1DA3A; Tue, 3 May 2022 18:20:58 +0800 (CST) References: <87a6f84edg.fsf@localhost> <6270b43a.1c69fb81.835d4.54a6SMTPIN_ADDED_BROKEN@mx.google.com> <877d73gm6z.fsf@localhost> User-agent: mu4e 1.6.10; emacs 29.0.50 From: "Christopher M. Miles" To: Ihor Radchenko Cc: numbchild@gmail.com, emacs-orgmode@gnu.org Subject: [DONE] Re: [ISSUE] org-fold does not support auto-reveal for some external package commands Date: Tue, 03 May 2022 18:19:56 +0800 In-reply-to: <877d73gm6z.fsf@localhost> Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Host-Lookup-Failed: Reverse DNS lookup failed for 39.171.215.226 (deferred) Received-SPF: softfail client-ip=39.171.215.226; envelope-from=numbchild@gmail.com; helo=Mac-mini.local X-Spam_score_int: 58 X-Spam_score: 5.8 X-Spam_bar: +++++ X-Spam_report: (5.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FROM=0.001, MSGID_MULTIPLE_AT=1, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_PBL=3.335, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, SPOOFED_FREEMAIL_NO_RDNS=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: reject X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: numbchild@gmail.com Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651573331; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=dcxQ2bXWJNwGeu9yxzHmVMOaKbub7qlaNbQ8N08bBBw=; b=SkLvz2TkfIAe81JqHhIgc7fI6n7TB/qBf8ZTi6Lx98D0MqCatgNpGVHapRJbndywAZNedq +Dh75OAxjz6zL1Wspmyrb/LS8BZWQQ2/3yFV88UZ3GwupX4+6EFeCDqy2PjYaSarNQmRM8 RCS+xBG/+myVc5Nvb5QZcMRFEGV0pcziiq+XTH+CWmrIJfe4IQrHfqGO/IfTZm7gwPPBba uR1LKXtI6MQh/OFaN0GSSesqhPHStH7ca8BmaLM1pqgBoq1zzP82h1q/WZeRKfKHwJB4k2 5H9epyDZ4fYOrsS3H1sAusbRinOS6Yx6zvVhVJnauUJX+HUO2w0UW1qx9SyJpQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651573331; a=rsa-sha256; cv=none; b=G2c0qraCPM8h9F3b8VekSs3MZPVxLnGYS77luOxc1TjEVexSsanqCcjFi5E4nModSUoxqk 7eMJYVAneZrGzoTfcfw6Z/j57S2QCaepUqr8irsyINeUk6jb8Gfa5RVZtYtSYWZD5ZpjQE yARkF7XtFHIdiZH7Fehz7Jzms9IXhsE/EmRdLOp10CQm+K0cDphbPTTyVxEKaqkL2Lw8Lm zFSDFA+MauV7ZKodXNw+Kybq328zOTKvgZjNZq9ty4VNGHFSbZfh1Cxb+Rd1eJfRf5Gn+Y SFbRMXwswErhxIlZYEVIGnLU2s/m2KqZSRNAChCuxY3d2XkPgaAK9ILP+OO8xA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 1.62 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 553551BAC1 X-Spam-Score: 1.62 X-Migadu-Scanner: scn0.migadu.com X-TUID: oswvfhv29vbt --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> I'm using package "consult" which has command "consult-org-heading" to s= earch org headlines. It will >> auto jump to the selected headline and expand the jumped headline. After= using org-fold, it does not >> auto jump to the headline now. >> >> The previous discussion here as reference https://github.com/minad/consu= lt/issues/563. >> >> As @minad mentioned we need to wait for org-fold provide an official API= to reveal content. Hope >> this can be added to org-fold plan. > > I reviewed the available API and realized that Org actually does provide > sufficient functionality to reveal search matches temporarily. (there > was a bug in that area, but I already fixed it) > > The basic idea is demonstrated in a simple function below: > > (defun test (pos) > (interactive "nEnter point to be revealed: ") > (read-char "Revealing point temporarily. Press any key...") > (save-excursion > (org-fold-save-outline-visibility nil > (goto-char pos) > (org-fold-show-set-visibility 'local) > (read-char "About to restore the previous fold state. Press any key= ..."))) > (read-char "Now, reveal the point permanently. Press any key...") > (goto-char pos) > (org-fold-show-set-visibility 'local)) > > Hope it helps. > > Best, > Ihor Interesting, I tested and confirmed this works good. Thanks for demonstrati= ng. I will figure out consult-org-heading command part. =2D-=20 [ stardiviner ] I try to make every word tell the meaning that I want to express. Blog: https://stardiviner.github.io/ IRC(freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAmJxAgYACgkQG13xyVro msM2FQf8CH6gUHQnBpOIU0KNiYGgu98x3sQ/7wat8jPhPBKr06X0kAAQTCAZvpjc YCZ6smV1ebWy5AJEfvw+Lw3oWLhmDzwDhD8SgH7+ZOloc+vdMHXGGjbBvHJPv7DD AfB2Q2PB4SEC9zQqYyGeKDhDdN14lKDgUumIWaj6X2qG7Dqd8eJqCXmH/RSM9QLU 3LC07/x6sV01NXWhjSv6hQIoNu8AslpBTYAuVnqBnQ4QzpAQI3K7S/OH+HBKe5R1 gGU/QPZQmLFiu/M5o5CXXv5vrURXCT8zggUaQvbc7Qrux+su0ngMrfoUkVStnrbK QRMMPDO1gkkMwkEQqXJtRDXh7eM/Gg== =eogv -----END PGP SIGNATURE----- --=-=-=--