From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 oIBfL8SKnGRIPwAASxT56A (envelope-from ) for ; Wed, 28 Jun 2023 21:32:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 2PtILsSKnGTdugAAG6o9tA (envelope-from ) for ; Wed, 28 Jun 2023 21:32:20 +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 3CFDA9406 for ; Wed, 28 Jun 2023 21:32:20 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qEasw-00081u-9C; Wed, 28 Jun 2023 15:31:26 -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 1qEasu-00081O-U5 for emacs-orgmode@gnu.org; Wed, 28 Jun 2023 15:31:24 -0400 Received: from carrot.memebeam.org ([2600:3c03::f03c:93ff:fe9f:2547]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qEast-0006IB-04 for emacs-orgmode@gnu.org; Wed, 28 Jun 2023 15:31:24 -0400 Received: from [192.168.1.15] (dhcp-68-142-49-163.greenmountainaccess.net [68.142.49.163]) by carrot.memebeam.org (Postfix) with ESMTPSA id 2475E3DAD8 for ; Wed, 28 Jun 2023 15:31:21 -0400 (EDT) Message-ID: <4c7716d8-eb38-9ea9-44cf-687c1b0b5910@memebeam.org> Date: Wed, 28 Jun 2023 15:31:20 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Content-Language: en-US To: emacs-orgmode@gnu.org From: Anthony Carrico Subject: [BUG] org-store-link on document title Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2600:3c03::f03c:93ff:fe9f:2547; envelope-from=acarrico@memebeam.org; helo=carrot.memebeam.org X-Spam_score_int: 18 X-Spam_score: 1.8 X-Spam_bar: + X-Spam_report: (1.8 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_SBL_CSS=3.335, RCVD_IN_XBL=0.375, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1687980740; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=wPpmrMTArrvHfflYykpEuEnOOp/IIOc9vQhPy4p7ueo=; b=hVxesaTIwkXgkyonMONv+x4F7Mt6hAbIvCqI3UzzV8IRcVqnIe7QgzvBLkl5hhc9oggbhq qfoF+M5IejRthc3w/cNWwJfcK/J8RQXukAOUfXI74YSVCj38VqCCCTdt9iv4/4PItxRCF7 ge9xkTwiar0oOd35XRw32hbkZZK04VP9AVu+4d75+V8mueTKdNtcxoJ52gDi2nkAEmZKgD xt9Z8QZkYvYZVU6kN+IIrk8KrQMopLD+z1ruA5+5w4PYJIjzv1i14gu7Hjj+kfqFJRIJs7 Mr65FcZrCaWg62MFGXa5CH1QUKe0nbK709sSvHihOUhVuEM+GGOjg7iUvW6S0g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1687980740; a=rsa-sha256; cv=none; b=Rhp0jQQv8s+3U8uzydlNQSlxYIkM1Ftx53i2lMldQxXyPQgjU0SFo7k8IMGuPfepC3aENo 6IsuvKp7xZH47ql+xGpHsGoyNttMR9Z458iU3cmS8LslmGdlHTJQ4SyoGBK5EuZIhaoDnS B5LWGX+Prwz7viZ/Jcds+cjThAkBI0jHurv+Jwl0O2a3QNlfhgjpqSNUrbWDO44XjQ7VZv S1N5LpN8qpTh4H7ha8FVid3DuhY+0Tf9/Mna6GrbXQGNMgFFdI3eznINdWHuZtEvRckX28 Qp573c7SQvOML6aXuaO4s/1AZN09RwF4TJdDzYRDL7DEUNHbFfHAPjdymRDz7Q== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -3.05 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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: 3CFDA9406 X-Spam-Score: -3.05 X-TUID: Pbo0bVF0URIS On 6/28/23 12:48, Ihor Radchenko wrote: > I cannot reproduce. > Please provide more details and report this under a different email > subject, so that we can easily distinguish the two bugs. > See https://orgmode.org/manual/Feedback.html#Feedback Ah, very sorry for the distraction on the "This link has already been stored" issue. I'll describe the behavior I observe, and a more useful behavior. I'm not sure this constitutes an actual bug, since org-store-link isn't documented to work on the title line of a document. Org mode version 9.5.5 (release_9.5.5 @ /usr/share/emacs/28.2/lisp/org/) GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.36, cairo version 1.17.6) of 2023-01-02 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. 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 Here the title is used as the description, and the file itself is linked, rather than the title line. The second option makes more sense to me. Why? Because at the title line I intend to store a link to the document labeled with the title, and at a headline I intend to store a link to a section of the document labeled with the headline. This option also produces cleaner html output (at least a few years ago--see org mailing list around 2020-08-06 with subject "ISSUE: Unable to resolve link (html export)"). -- Anthony Carrico