From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id m6+QJzXNcGJ7CQAAbAwnHQ (envelope-from ) for ; Tue, 03 May 2022 08:35:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 2KeGJjXNcGL9FwEA9RJhRA (envelope-from ) for ; Tue, 03 May 2022 08:35:33 +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 3DE29387CF for ; Tue, 3 May 2022 08:35:33 +0200 (CEST) Received: from localhost ([::1]:52626 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nlm8B-0007bE-T9 for larch@yhetil.org; Tue, 03 May 2022 02:35:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44792) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlm5B-0007Ym-Ry for emacs-orgmode@gnu.org; Tue, 03 May 2022 02:32:31 -0400 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]:42968) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nlm5A-0003s6-4G for emacs-orgmode@gnu.org; Tue, 03 May 2022 02:32:25 -0400 Received: by mail-pj1-x1032.google.com with SMTP id l11-20020a17090a49cb00b001d923a9ca99so1229936pjm.1 for ; Mon, 02 May 2022 23:32:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=aSrTdCGt3HATzDmCorWiCHAz9nzy09lhVydztKEI3Qs=; b=XHZSHvHlIeR43OUm9K7F9K7y11X9YHlPr0H0bw/YHjvwYJgXxm0tBob2lF53OW4LhN VZFLjJ0P5/BEnvAsyZdZVLE2nSiYGoU5ZG9O+re/YiIuCUXcxMYihR+RFIrtn4oLPPol 2KoZfdKsDocHQ0pUD/ADkMLvvM+1ftaFqbyktiXrvHAvT8F3/P/qdnyhVu7GwbELW6UR taVPvCsdVBk8hX5stxtGlgStKg+aL2OJ/L3r2OeqUosQP299q2VfpRuHDmyblNz7chmB 7jX13izaOaiv9+i9JMFoNalEXrhruS1GWl+DP3Hhv8vYNfDDX2J4uGFwuFDzkrNj78yU raTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=aSrTdCGt3HATzDmCorWiCHAz9nzy09lhVydztKEI3Qs=; b=ZwdnL9xn8/CScx0qGQ348QaHEqhJXOXdK1vEo3mBqsGYuoQIOnu3tpEkNE+XXN7Iod SiNYeb+3EZHU0zt4uZpD9D+iHy6chjqTkZpkRxXAB4FAJ8YuuuRLVkAffa0Q9vgKyBIx UoYn3tJJ2EddqZbgVY1QjShcxINfpR7aseeC5muKpgyAWtpDl8XrBzev7xrvGjXCRfP1 8ffA8OLj9dAOlcin7xSB6XGLmFRjCp6gSopQUovPP4suNYtC+x4M5PdD6a33bxKJ05I4 MWi5ZsI/UjKrKzs7IKUjWUBg2VuYndWNhpdlr6XoxB/9JXsWciMePIWtLgff/EAWZbS6 5XIQ== X-Gm-Message-State: AOAM5324riYxMsvwBgL/nB/c/ZFeaGgO4aFStiSk4F24UUEeNAayTdCu 6M9IzR2QoicOnQnCbXb7yHo= X-Google-Smtp-Source: ABdhPJw++WsfaNKf+CsmaPzfhb/sy1MW20ovrGUBhG35pTd+jBPrfotmtHEc2T0YFBdO/fJqhuiecg== X-Received: by 2002:a17:902:f789:b0:156:5f56:ddff with SMTP id q9-20020a170902f78900b001565f56ddffmr15516891pln.116.1651559542072; Mon, 02 May 2022 23:32:22 -0700 (PDT) Received: from localhost ([134.73.240.160]) by smtp.gmail.com with ESMTPSA id p11-20020a1709028a8b00b0015e8d4eb297sm5638619plo.225.2022.05.02.23.32.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 23:32:20 -0700 (PDT) From: Ihor Radchenko To: numbchild@gmail.com Cc: emacs-orgmode@gnu.org Subject: Re: [ISSUE] org-fold does not support auto-reveal for some external package commands In-Reply-To: <6270b43a.1c69fb81.835d4.54a6SMTPIN_ADDED_BROKEN@mx.google.com> References: <87a6f84edg.fsf@localhost> <6270b43a.1c69fb81.835d4.54a6SMTPIN_ADDED_BROKEN@mx.google.com> Date: Tue, 03 May 2022 14:33:08 +0800 Message-ID: <877d73gm6z.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1032; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1032.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , 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=1651559733; h=from:from:sender:sender: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:dkim-signature; bh=aSrTdCGt3HATzDmCorWiCHAz9nzy09lhVydztKEI3Qs=; b=ikM2P6ChfBfRbBnHvC5/Xow9iy3YDsTF8+Mo20enVw1VcO6nfCMFhiBzRwoqJHNPNmnJf4 5iZ5wcoFRugBkwpuCtIPqPNYPE1Hn+bZjJcb+NtxkPVD++32FgeN8/1qakOTuRMAq/WTo5 e2OpTnPon2rCG23hqCjvzi/1M6F1dctTb0qmDGA7cDWdWZDrNGSprOF6ZJNfOowSlOrTRn RMbDZaqphp8e/LHf+JLKVdU9J8XC8QKYfIxfnBahnJGJcBJZj5vfbDG+1Z6n5sqAPVVKSz s01MiICusCeJze6SAlETpnM0v923u8XoxFVOoysqdPrj3N/TYWKfjLAiL0nKDA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651559733; a=rsa-sha256; cv=none; b=ZwbqgcJUBN/AQ6yYcfH5zuxW7lPSBJb6Z/qST7mw4/+zb6iWaZ7NQ/nLovybRBYn4OODz+ 8Y00o/Zp6JKS3NHSiqD+OdXyjiTsjk1oKYvUoEu+poGZLRIJCg9ppBuoiJC2kDpyNhChzx T0oMoIkfDEdpCETyCLALGXp6BDlXPjVkKcrfqGKJ/IJVFJcHD4kL7YpUKkpgdjiyoTTsAE fY0+oau4pybigm9P75uCT+lEDRNRfzRA7WimNrt/p+XfxOTjqbnPxQUA5jxREiELDuj6uW I1lpWJBl9Crv5krJYrs3rDRv1d/vD5+LZkNb/YWjYtQqIksQ8pltecA4+4wIow== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=XHZSHvHl; dmarc=pass (policy=none) header.from=gmail.com; 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: -4.78 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=XHZSHvHl; dmarc=pass (policy=none) header.from=gmail.com; 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: 3DE29387CF X-Spam-Score: -4.78 X-Migadu-Scanner: scn0.migadu.com X-TUID: ZpifS2SWEsDP "Christopher M. Miles" writes: > I'm using package "consult" which has command "consult-org-heading" to search 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/consult/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