From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 4Co6LgE/pmTJBwEASxT56A (envelope-from ) for ; Thu, 06 Jul 2023 06:11:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id wE08LgE/pmTmtQAAauVa8A (envelope-from ) for ; Thu, 06 Jul 2023 06:11:45 +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 36C2C11E76 for ; Thu, 6 Jul 2023 06:11:45 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qHGKK-00064e-VU; Thu, 06 Jul 2023 00:10:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qHGKJ-00064J-0j for emacs-orgmode@gnu.org; Thu, 06 Jul 2023 00:10:43 -0400 Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qHGKF-0004B5-6u for emacs-orgmode@gnu.org; Thu, 06 Jul 2023 00:10:42 -0400 Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2b58330576fso659311fa.1 for ; Wed, 05 Jul 2023 21:10:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688616628; x=1691208628; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=hBeYJ6zDNF6we3MxRfbndxV0nRfZQLqDMnqsVRqmzdA=; b=rAxakqtAkcHrArUxTH76LohugMKsMRNgZF49zgyW3eJ50d01UJF/+7MRoyXyku6pQK bgl2XByjdDGqHQD1q2oHaLWDWb7Fr92fkb8MiqZi/smJ8VSnTZfv5JXUQrPj9qTs169X 8gGb+Tw3M490ul4x3KykES1MVlYQNakbPbaXt/MFv25OoljKWGSxBUC+is6qeKVF9bn3 D5fxGDWshTVbkzGvrUh+tl7DGDgewmXg2ZXsqjdG79OJoSbbKvQyMv9cg+ZRUrq5wa4D NhyO3wkqKa8+cl7CANqEjXebkGU8k9UK3aFx2IU6NEz6iPSYw2REt3jWUYN4JHDoyRnK qADA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688616628; x=1691208628; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=hBeYJ6zDNF6we3MxRfbndxV0nRfZQLqDMnqsVRqmzdA=; b=WzDLpi1cx7FK0oom0OjHWtcifQhPkdadIx+g3aysUCOMmxVIF55OHgA0TZaRUxdrsV 8R+WYO7wNTs7igCLSUF32RfVGMqB0ns4DvpoiAbLtic9rejdLQAUhS8MOoUrSFr8zFID MbY9tMWGFUeK1nQpCDCvZ+8pfD22+v0kAyuEEpLFZ+qZs/QZiXYwodLJYseo/QK+n+I7 z0fsrpM0XMNwfe8tvVDuONSzrmEusXrz7boDN7a4cIUOAsRHa4h59rzl7OBjCMEPFMe7 CFOJn16MBhLp+VqfGp++/xJD/0DXlST31hov2n7QkyFAtilpHnSzPIaZZ9bdalw4JZDf bwsA== X-Gm-Message-State: ABy/qLbHcELijzYpzpTK+Ti2GYT8icMJjxcNLScy3VTfZaHNsGkCceNY a3EB4Zyu/atJtQQRveqm4spzCNqa/7bAOW+1RVYUO82MJMoNFA== X-Google-Smtp-Source: APBJJlGBOCwyIeoObKkdd7NrKQB2IKlOuMv5Z0bYVBsp0cEIr7LPCpI4N2M7pPFNByxvz45t5zc4fJS2GhkAbodcBjI= X-Received: by 2002:a05:6512:406:b0:4f8:6ab4:aac6 with SMTP id u6-20020a056512040600b004f86ab4aac6mr412385lfk.1.1688616627512; Wed, 05 Jul 2023 21:10:27 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6520:4c85:b0:268:94be:fdc7 with HTTP; Wed, 5 Jul 2023 21:10:26 -0700 (PDT) In-Reply-To: <878rbtk7s4.fsf@mbork.pl> References: <878rbtk7s4.fsf@mbork.pl> From: Samuel Wales Date: Wed, 5 Jul 2023 21:10:26 -0700 Message-ID: Subject: Re: How to go to an Org headline programmatically? To: Marcin Borkowski Cc: Org-Mode mailing list Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::22e; envelope-from=samologist@gmail.com; helo=mail-lj1-x22e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1688616705; a=rsa-sha256; cv=none; b=Pcarotoe1v0cSrbTKFz7VgqTkG/cnIfV6YggGrW8r+MGxWvf9PH0x5fV4iilpjIUpTHvZU 1IzXxjhToyqz+aBLG7fKJ3pbxhpqfPrgItS8paEQkPENnTWtX0JhF+GwVZGT8Hmu1k43+5 MRn50RVmxKzm0S6n4yRDnN6mxgu/KxtOpiVJBwXtDpwcGerZnMdNQGonu5db2pgM1tlcKr nwx6thKovk3UJQkJCnToX5gVgb0OauMA/B2gmUyVtJnviGWC8Ksvehr7561nu1tgOKzA/S 2Q47rAnZWbdBoUpjgJkRcXt+N8hKJGsnxhdK/6EyU0ESeFf48O5ylRWPXXndUA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=rAxakqtA; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1688616705; 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=hBeYJ6zDNF6we3MxRfbndxV0nRfZQLqDMnqsVRqmzdA=; b=NSpFTlTFrPMD6b2/Q3/er2Bk21T+Enjqn9bQiIuUHnyfFmLlencDWVu19kFA8pxPDvHoNt oXoOJGVIqAJewaCdrHYYuXkvcah4EDJBlGy7dgj0aAQML2NV+HINEZqZiK+01ibj5ghC6M 1hpkO96ZixghwowKvefclMegcdwcWTGBOCW59rf383a5tNXrT0KLGx+Ve5ZSGQDGpmSkSf mYDuKsxb1JrelIE1iNCveF6Fx3Dnq0u0p/cW7LAiwNS22/a71rYk7uVfPswtoRjZNviyi6 lzZC791uo2kwcmrzhEEZ3pHwihVDxUYRdaENUipTtT0ikGwcfKuieNmVAh8amA== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=rAxakqtA; 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-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -10.44 X-Spam-Score: -10.44 X-Migadu-Queue-Id: 36C2C11E76 X-TUID: pRQDVhCciAeq i have e.g. (let (org-refile-target-verify-function) (org-refile '(4)) for interactive; ther emight be a place to put the header name or id. On 7/5/23, Marcin Borkowski wrote: > Hi all, > > I want to find an Org headline in Elisp. No need to make it visible, > for example - just move the point to the heading with a given title (it > may even be within `save-excursion', as in "go there, do something, go > back"). `org-link-search' seems to do what I want, but it does a lot > more - is there some simpler function to do that? > > TIA, > > -- > Marcin Borkowski > http://mbork.pl > > -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com