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 ms9.migadu.com with LMTPS id 4J8SJ7SQnGTJ3AAASxT56A (envelope-from ) for ; Wed, 28 Jun 2023 21:57:40 +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 OPcIJ7SQnGSDCQEA9RJhRA (envelope-from ) for ; Wed, 28 Jun 2023 21:57:40 +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 0839D9B7D for ; Wed, 28 Jun 2023 21:57:39 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qEbHa-0006mK-HZ; Wed, 28 Jun 2023 15:56:54 -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 1qEbHY-0006m2-6V for emacs-orgmode@gnu.org; Wed, 28 Jun 2023 15:56:52 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qEbHW-0006Wr-0I for emacs-orgmode@gnu.org; Wed, 28 Jun 2023 15:56:51 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id AEC4E240104 for ; Wed, 28 Jun 2023 21:56:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1687982207; bh=ym1fDSx6dmSJC/WhqE5osQ6CwpU9HrgGLPJW0QzqkI4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=NvNLYhs8o7gf+TAZaR7cShX+F9OT4/K4eVkY/SMyUumqgva72+njxWqUYKAfJ0Z48 oaZU1Gguybpb1H/eI+kXLNTnc3Opg5QtPiQazmMSU5v/A1DGKQAGICfQ6ftFlX3DjQ v59FfNH8Z3s2QURSIBDzZcB+KI9xWNHwkvuzbqEnoSVvvvDNXfvBYEGrAR97rtBpyv BSare+SQJQPhDxKtX/8rvkI8CmQY6bqU1xi5YA3U8tT4MS/0W6uR9i10HZCPooZYck 8NuhmEXEYsTg8wqHZxGf4+BYgc8wY/ruQnRJW/E/mf/bV91C5tvg3MeDnQugt0yUNd t8He6eXQvuCpg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QrsmH14hlz6txN; Wed, 28 Jun 2023 21:56:46 +0200 (CEST) From: Ihor Radchenko To: Anthony Carrico Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] org-store-link on document title In-Reply-To: <4c7716d8-eb38-9ea9-44cf-687c1b0b5910@memebeam.org> References: <4c7716d8-eb38-9ea9-44cf-687c1b0b5910@memebeam.org> Date: Wed, 28 Jun 2023 19:56:42 +0000 Message-ID: <87wmznwebp.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, 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=1687982260; a=rsa-sha256; cv=none; b=H7C+KmlRK6xurPH14wI26d6vGJYJDzRa40VxQQEmNZBtON09TnCX2NtOAApeyDhdKSfWZ9 FpLT1tkhMmwdeAy22D67x9vzYFP6SEsp3vo279aRKJH4ubksXEB7aRlduD4Vobff/KVJlp SpLDB19LhC0J0ZzDIEhv9uT2wNj0ZhB2WBmDag0qBKf5XJkrTrep2GTR5Ye9qwUQFQ8wwp ber0l6Q9s4qq1KcLlwTW29zs9JHn4nwMzju80QcwsbdC/e3VCHD9u1E+jW7IobWP1xPp+y Qk68P0uZkV2Qw1tPIaHoA+b+oRsvaxFMuSY9XOxInWSifXRHTdn2o3zUeG50xA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=NvNLYhs8; dmarc=pass (policy=none) header.from=posteo.net; 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=1687982260; 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=d2Cn1a+R7xsK/JrXTAX4U/bO+eS6lbbGrcQg0j+i7g0=; b=bgyacOQgITlKvV72r3p2izi3vxFjfUJkmgNY5mKMHdI47JLZKKMcaXeSabxl5BJeKoACOz Q32uv4AxbsLxjChhqFxRjabDlqhrqTDQgjYr78istsh6pEx01vZYdCHn1XsgzAV/+pch5N BzjDuWUymc3vciKDtK2O0vUXvXHH/+7t/QiKN1DSsjIKh51G+DXIMwr5Nvp41lX1NB54ha m5dTiAsTDzE9SqbzIrRngfiA0IyjsHGFRaZBsPacpZlhIZ4BhEovONyubc5seWWBq7Sas1 CtHaxKTHw26TcYo2IdxiEzksoF7/d11NOuAZVh/3JjWEc+d2KPMDiW6eH1hH0w== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=NvNLYhs8; dmarc=pass (policy=none) header.from=posteo.net; 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: -11.82 X-Spam-Score: -11.82 X-Migadu-Queue-Id: 0839D9B7D X-TUID: LUr4BfKLYXUb Anthony Carrico writes: > To duplicate: > > Create file test.org as in this example: > #+begin_example > #+TITLE: test org title link > #+end_example > > 1. go to title line of test.org, and do org-store link: 'C-c l' > 2. go to new file test2.org, and do org-insert-link: 'C-c C-l M-p ' > > Here is the actual file test2.org produced by this method: > #+begin_example > [[file:test.org::+TITLE: test org title link]] > #+end_example > > This isn't great because there is no description. Org does not know if you want to store link to file or to this specific line. The current default is trying to store link to current line, stripping "#" to disambiguate from custom ID search string. See 4.8 Search Options in File Links > 1. Expected file test2.org: > #+begin_example > [[file:test.org::+TITLE: test org title link][test org title link]] > #+end_example > > Or even better: > > 2. Desired file test2.org: > #+begin_example > [[file:test.org][test org title link]] > #+end_example You can set `org-id-link-to-org-use-id' to non-nil (4.5 Handling Links). Then, Org will store link to current file/heading instead of more generic link. Latest version of Org will also auto-assign TITLE as the link description. Canceled. You may consider sending patch for Org manual if you think that we can do a better job describing how Org handles links. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at