From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id QJSVGKAp92WkfgAAe85BDQ:P1 (envelope-from ) for ; Sun, 17 Mar 2024 18:34:24 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id QJSVGKAp92WkfgAAe85BDQ (envelope-from ) for ; Sun, 17 Mar 2024 18:34:24 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=clSnURmB; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710696864; 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=ZFCMpvG4zLuAaBwazF/8vS9MbtukGkn/gK0AocudNSU=; b=iRlPGBf2rB+uAa/869BRYjb8+mpR8OtMJSnnJgAvaDEDq1SeThOuQ6JD6HbPA1B1FwIO/J eJRhMndvBhmKONwfpJIewsylGYIPx8eB2y81D4Yg3UlTGjs4OMdWEmG+0lSLNYq7qZMCc4 41/Y2Vuc7Qlr9fScrcd8t8ErvBlbkaw5eNU9c7XWMTlKTX4rXVvpgekVdhU99L6ua5YnxQ HWagNE+Qcs3EIikTxWI+mLvDN/fgG6DxKhXekjPKrd63tiiDX6Mt5uv0JwMbOwwC3liw56 ynHwFUw8mX30RB/Dsz2LrqcIwstbvCSc0xpQEZnDx2wgYTuMISqJP6Y1rpC+6A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710696864; a=rsa-sha256; cv=none; b=S6Od4wrs8xcIiQ2ndRhDxn1BfZJO5V0N7Pij9kOG+zfWxtiEehGu5Q6B7WCB56Nz9T0eaf 5P98+DKvXwvXaa2po7r+cuZJFRbXhqIz3GOznn6QEl60coqOKUwn+25Bq74F6zbJUUQ0ZM 1E9TIWsgvEP/zvA+EUB0R3TZn+L0SD8pTSK5LJU/Ga/wqVtVJC7nls4577e2BTOGjW5mzd VLWNj1EKLZd6PaoAp1fcwOqX+d0b207Y1lHtQmVy3pcc8amYaTr8wLMTsm+FUHf4yfFRyS EFiQybvnOtqJCOGIW3eRLFCNIKVpqtXAqqgXe1rtw0a/eseNoya+xjmDcBjdEg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=clSnURmB; 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"; dmarc=pass (policy=none) header.from=gmail.com 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 231426EA8D for ; Sun, 17 Mar 2024 18:34:24 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rluOe-0005kC-RU; Sun, 17 Mar 2024 13:34:08 -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 1rluOd-0005k4-Hf for emacs-orgmode@gnu.org; Sun, 17 Mar 2024 13:34:07 -0400 Received: from mail-oa1-x35.google.com ([2001:4860:4864:20::35]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rluOb-0005C5-Qd for emacs-orgmode@gnu.org; Sun, 17 Mar 2024 13:34:07 -0400 Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-222a9eae9a7so593902fac.3 for ; Sun, 17 Mar 2024 10:34:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710696844; x=1711301644; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ZFCMpvG4zLuAaBwazF/8vS9MbtukGkn/gK0AocudNSU=; b=clSnURmBBOlfQck4KYvPBrXaHfBeCdiwbqyVnGPhnjSs5GrmJBjWYv9ECcpF08dRjj LSPkng4PpxqoO3LJXc20/f2Rfps2N9kqAWWCkhfzDZJASJF1u8HlS/saiAlo4kvOpU5z 9uoRBj/XBfjU8oqHOgJCX+DJwlwhJCkbaZzpI/hjk/asaE8N+qCPXnAA3e9WqBtcaMgp 6/Ntbk7k3t4xdAuGKyd3f9/aqHuEBssPLBCWODEAxjcT2PEjwZFb0MnbL7idGjCjpVTA I3TvOX/xFZCZ1FCHOim4YmGnFtDvyucx+YHkNFTyzmuBy4tV1G6iQ9WcQHG8rpGfvYJc yq2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710696844; x=1711301644; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZFCMpvG4zLuAaBwazF/8vS9MbtukGkn/gK0AocudNSU=; b=TJUHgmhvKC56JSLdb0sks+tuWCadkjhnwS7RC6mbVeBtJXUuwz/4pQ/l/G7AVPlOHK F1+3YGm4r55PC2AeTmCszPlxLdeBI6iPdimNYRHUaKy3FkSkx2+YvJYc2Sof6NqXDn3I fC8AflrYKhwMxtjxo1/Pb90jpx12+zQTrTDRkg+sSwF/YCTf5461Z4tlV/S4coUIoG6x Rylf1f4e+ZpbFCxVMbNUgSYwLVkk7P7drfG1YOcJQZ54ZipAOe1TMIjuQP/CxqXTd7o+ xnnFZcZBGqaHGo12iJLiaTY6NBMk65/5FyQtlvIbRA7lKxPhFDxbzSyQ2NEYFryiwEPK NoXQ== X-Gm-Message-State: AOJu0YzExYRuQTDSB780qmKNeshNVhrqN4ALVcWig7McAcxAhzZk+L42 /X3HsXv7cnwzLMPtVTg338f9y8GDicxEVpg8UPNWeWJsBYqYoU4i3DU8Pcn5aJgTvQDr815xhy7 FnmfzsLR6Bh7W8B+/GzFbGUrToKuYJFvdDTPQeA== X-Google-Smtp-Source: AGHT+IEnBL/dE9kgTUbFttFV0ye/+DuwkyeStKM0puvZrUPiIEYgds/OEisM8HqtRKEw5bwAof9PzJijYoEV11ijBtU= X-Received: by 2002:a05:6870:e415:b0:21e:a47f:ec31 with SMTP id n21-20020a056870e41500b0021ea47fec31mr11393866oag.43.1710696844286; Sun, 17 Mar 2024 10:34:04 -0700 (PDT) MIME-Version: 1.0 References: <87frwpyp3g.fsf@localhost> In-Reply-To: <87frwpyp3g.fsf@localhost> From: Rudi C Date: Sun, 17 Mar 2024 21:03:27 +0330 Message-ID: Subject: Re: How do I link to a specific line in an org-babel block? To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="000000000000b8e54a0613dea5cc" Received-SPF: pass client-ip=2001:4860:4864:20::35; envelope-from=rudiwillalwaysloveyou@gmail.com; helo=mail-oa1-x35.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, HTML_MESSAGE=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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -5.61 X-Spam-Score: -5.61 X-Migadu-Queue-Id: 231426EA8D X-Migadu-Scanner: mx11.migadu.com X-TUID: zyDDGqMl6mVo --000000000000b8e54a0613dea5cc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks, that works great. Can these work with ID links, too? (`[[id:9bbb6468-2907-4e74-a4d1-2e391e33e0fe::...]]`) On Sun, Mar 17, 2024 at 4:47=E2=80=AFPM Ihor Radchenko wrote: > Rudi C writes: > > > How do I link to a specific line in an org-babel block? > > a.org: > > #+begin_src emacs-lisp > (message "Hello world!") > (message "Hello other worlds!!!") ; (ref:greetworlds) > #+end_src > > b:org > [[./a.org::(greetworlds)]] > > See https://orgmode.org/manual/Literal-Examples.html > > > I tried using [[file:.../my.org::search-term]] , but this only works fo= r > > jumping to a heading, not an arbitrary line. (It does work for non-org > > files.) > > That's because "search-term" is used for fuzzy search, which is limited > to headings by default. You can customize > `org-link-search-must-match-exact-headline' to change this. > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at > --000000000000b8e54a0613dea5cc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks, that works great. Can these work with ID links, to= o? (`[[id:9bbb6468-2907-4e74-a4d1-2e391e33e0fe::...]]`)

On Sun, Mar 17, 2024= at 4:47=E2=80=AFPM Ihor Radchenko <yantar92@posteo.net> wrote:
Rudi C <rudiwillalwaysloveyou@gmail.com> writes:<= br>
> How do I link to a specific line in an org-babel block?

a.org:
#+begin_src emacs-lisp
(message "Hello world!")
(message "Hello other worlds!!!") ; (ref:greetworlds)
#+end_src

b:org
[[./a.org::(greetworlds)]]

See https://orgmode.org/manual/Literal-Examples.html=

> I tried using [[file:.../my.org::search-term]] , but this only works f= or
> jumping to a heading, not an arbitrary line. (It does work for non-org=
> files.)

That's because "search-term" is used for fuzzy search, which = is limited
to headings by default. You can customize
`org-link-search-must-match-exact-headline' to change this.

--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,=
or support my work at <https://liberapay.com/yantar92>
--000000000000b8e54a0613dea5cc--