From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cJYRC16dkWCKHgAAgWs5BA (envelope-from ) for ; Tue, 04 May 2021 21:15:42 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id cGC1Bl6dkWA9awAAB5/wlQ (envelope-from ) for ; Tue, 04 May 2021 19:15:42 +0000 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 8ABD91E3D4 for ; Tue, 4 May 2021 21:15:41 +0200 (CEST) Received: from localhost ([::1]:48230 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1le0WB-0005PE-MH for larch@yhetil.org; Tue, 04 May 2021 15:15:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46464) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1le0Vn-0005P7-W6 for emacs-orgmode@gnu.org; Tue, 04 May 2021 15:15:16 -0400 Received: from mailout11.t-online.de ([194.25.134.85]:36662) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1le0Vl-0006fh-VC for emacs-orgmode@gnu.org; Tue, 04 May 2021 15:15:15 -0400 Received: from fwd30.aul.t-online.de (fwd30.aul.t-online.de [172.20.26.135]) by mailout11.t-online.de (Postfix) with SMTP id 2F22835C24 for ; Tue, 4 May 2021 21:15:09 +0200 (CEST) Received: from [192.168.0.10] (VgoiH6ZewhS0l+FEQfhki7K-g10O4BW3LZBUqujlrVU1A6Wp4KocDkRRQ-TiV3KgZt@[95.91.228.2]) by fwd30.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1le0VY-0lDjiS0; Tue, 4 May 2021 21:15:00 +0200 To: emacs-orgmode@gnu.org From: Fr Ml Subject: Bug: org-store-link uses CUSTOM_ID instead of target point [9.4.4 (release_9.4.4 @ /usr/share/emacs/27.2/lisp/org/)] Message-ID: Date: Tue, 4 May 2021 21:17:25 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 Content-Type: text/html; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-ID: VgoiH6ZewhS0l+FEQfhki7K-g10O4BW3LZBUqujlrVU1A6Wp4KocDkRRQ-TiV3KgZt X-TOI-EXPURGATEID: 150726::1620155700-0000D63F-3DC09C74/0/0 CLEAN NORMAL X-TOI-MSGID: 7bfc5baf-3c18-4c43-afbf-4b3dd5bfdb91 Received-SPF: none client-ip=194.25.134.85; envelope-from=fr_ml@t-online.de; helo=mailout11.t-online.de X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, MIME_HTML_ONLY=0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620155741; 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=k1ckMiYRYf2kXCV/4E8HK49t3Zts8oybwJUMnEMfivM=; b=pHPLUGs6GFMWfJEL4R8R9RO3UQD1msJmQcAsGUxRSbeGSOUXKELqcvYQEE9+D7ZcQtSA4p QsnRoG4xRvpwlHk9rA4Lg+Zk77se8RbIT3mtk0TBVlxSczvq2deUknEjbsl6+yaWynLsa4 7gQiPxDqvTcJIWPMqtiUCcE0COMBTMXgeodTzW7s58DEAoH3PRX/Bx0SCyRlmQFHvDbeYk BjVdjUo04s39NtnMl29ym6dE9J7XHfmrjLjdL+CYKbKN2LolrxxBY8ap2vLUzgc2dxY2A2 g9MPm+D4shKXy0HTFYI2e52dI0wewaLjc7y2gn4X2UV2eMXWW+vDDSfIehrdaQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620155741; a=rsa-sha256; cv=none; b=oNEdytLy5yB6TcuTNzIwmKOsRsv8roRqJyJ+OZwe4y7QFEQGcYE6LF3dc8BQyYwY+qwfQ3 Wnh1SYTkOs688b3QCLw/aK7QPlDVngcPsVicUizIeJvfZcLYJJoGqOZejJ0tQt9GTVSDEY sYvxwpGgKzM6F0IN7V1PWwI1eONFx6eeozjBgpnz4fDVAR/v98F53gMnzPyqQrrlKRlqfN nA6cYMr+f9PCAuwPiQSDB1KZM/KoIL3Az0+erO4Yx5H7Ep/+1hmELdsP9XiBxRKq/Ng6AY Chi0JxxCc6Oo5ghvXRE3pmsOozjXTZsW4WW9fP38GSftGVP10ENKmDLPFCfBEQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -0.66 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 8ABD91E3D4 X-Spam-Score: -0.66 X-Migadu-Scanner: scn0.migadu.com X-TUID: Owk/Q1ABQGFR

Hello,

I have a problem with the function org-store-link it doesn't work as
described in the documentation:
https://orgmode.org/manual/Handling-Links.html
"For Org files, if there is a '<<target>>' at point, the link points to
the target."

If the cursor is on a <<target>> and the item has a CUSTOM_ID then a
link to the headline (with the CUSTOM_ID) is stored - and not the link to the target.
This behavior is not always the same.

Also:
https://emacs.stackexchange.com/questions/64693/make-link-using-the-target-at-point-and-ignore-the-id-or-custom-id

Kind regards

Frank

EmacsĀ  : GNU Emacs 27.2
Package: Org mode version 9.4.4 (release_9.4.4 @ /usr/share/emacs/27.2/lisp/org/)