From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id IOJvGjzno2SARAEASxT56A (envelope-from ) for ; Tue, 04 Jul 2023 11:32:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id KAzQGTzno2SkBgAAauVa8A (envelope-from ) for ; Tue, 04 Jul 2023 11:32:44 +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 44EE941A9D for ; Tue, 4 Jul 2023 11:32:43 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qGcNp-0000f3-64; Tue, 04 Jul 2023 05:31:41 -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 1qGcNn-0000es-9r for emacs-orgmode@gnu.org; Tue, 04 Jul 2023 05:31:39 -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 1qGcNl-0006fW-22 for emacs-orgmode@gnu.org; Tue, 04 Jul 2023 05:31:39 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id C8262240104 for ; Tue, 4 Jul 2023 11:31:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1688463090; bh=a5rPqEM9/7jJ2D8sDYPLoldVLN8jZEuu55WJ3GxTJps=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=sEF3qOK/MNfsorZIkhNnOcfguW8eSheaXu9Zsus0hZuzJAQyNxfcx/AJXcE3iW7mm ijA9ak5kmWyjwJ3QZG4E8aN4QkrJaCf3vPKktlj8Mim2Aqb8YrZs3OkzKTmAz3EKbk 5Yyj2KyX0EK95tuGwFQ4v2H0iz3QbM0d+d2OuL83B4JNn7c/9nq6xLhMJo13LEu2Kc b1G97A0jMnSuEXoBUEhNnGOhjTMHGRqr6t2bFHCoZH7pSFtalLFIDNSDxfCaqohJ0F WjmivMEu2bT+4M/IH9IaKhkqUAhQU/uhr6qcE/WU11V5XzMNjeUTt5QqjIaJDnScdB Y+HnXUxbjlNJQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QwHc20K20z9rxM; Tue, 4 Jul 2023 11:31:29 +0200 (CEST) From: Ihor Radchenko To: Samuel Wales Cc: Max Nikulin , emacs-orgmode@gnu.org Subject: Re: org-insert-link completion by description (Re: what is the purpose of "This link has already been stored"?) In-Reply-To: References: Date: Tue, 04 Jul 2023 09:31:10 +0000 Message-ID: <87cz18f2g1.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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1688463164; 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=CtsZ8QLRhGNeo1Vg8/grrEyGcpdG38ezCM7zMPbkG8s=; b=OArttgWSs2WSN+52VwbUcCVdGmhwBwNzE6GC9RLPVWNqHiTF+GVkn8fg70NHYA1NEcRGJh h7mHFL0nZxxV+TrAZiqQ1EnoLoEr639q0Ze11jBMGZMUdykMttC1/DvE5PsSlAVzLwmxIW /PD6BXtsTbWdsvIrQnMEHtj7mQsRAem1Jv6nOJ7sBYwdqKv787TkCOgW2aK0waeBVIP9k0 WKkWXNoHLFRQy1kui5aek10adWgfITCSS9h6M0Ov0gmr83ZVU0O86hsuW5xOjNt3YFuW9q rVDflDCRa3svv36MK7qo1JAKUJAJXV1dFCanoiI1YkSvojeQINzduqELEcPlzQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="sEF3qOK/"; 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-Seal: i=1; s=key1; d=yhetil.org; t=1688463164; a=rsa-sha256; cv=none; b=l+1Do3NajGFTlBZie4zK+G+YLgpNAjlx5NXHsVoiy3iI+3wTWfbzOx99A/tSUF//O4vpDo cH4P/A4x8PmwH5DB+LVhzmjCV/OKfCoP42gnlmLwZ8mDQdAyzQbkdMk4UzQQwJsTKnU8qZ l1As3NawH6d1kjqgeW1m+Zs3Rj7VvuuASBb1AygeMyLe3zUox6Jm+C9dQyqvVs/JVesF0r MzfrWFTPItB3UpRn5ITH1KwCFM4QblzBLQC3oppLJ7z/KfjpVxY1bIa+ktRmHLVwBUI3g8 2jfSxFMTx7QSXzkn2AJEcev5uWpjRCdwc2ihOnZ0nLtJLOBoAdBjaqnoQM104A== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -6.24 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="sEF3qOK/"; 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-Queue-Id: 44EE941A9D X-Spam-Score: -6.24 X-TUID: ZryCMRagpIXw Samuel Wales writes: >> -UUU:**--F1 *Org Links* Top L1 (Fundamental) > > this buffer contains nothing useful and shortens the above buffer. This is fine. I assume that you can simply hide it away using `display-buffer-alist'. > --------------- >> http: https: >> id: id:e69336ca-ca50-4535-9bad-63a31e030f31 >> info: irc: >> mailto: mhe: >> news: rmail: >> shell: title >> w3m: > > these prefixes like http: i do not understand thier use. i want > descriptions of headings. the id link is not one. Org shows link prefixes, stored links, and link description in the completion. The relevant code in `org-insert-link' is: (org-completing-read "Link: " (append (mapcar (lambda (x) (concat x ":")) all-prefixes) (mapcar #'car org-stored-links) ;; Allow description completion. Avoid "nil" option ;; in the case of `completing-read-default' and ;; an error in `ido-completing-read' when some links ;; have no description. (delq nil (mapcar 'cadr org-stored-links))) nil nil nil 'org-link--history (caar org-stored-links)) >> Notice that "title" is present among the completion options. > > title does not show in my case and nots ure the signiricance. i use > large fonts. that might or might nto be relevant. Completing descriptions feature has been added by Max 10 months ago - it is a fairly recent addition: 0432f4fe6ba9b07c17ac555beab1527d8f844234 Author: Max Nikulin ol.el: Restore complete by description for insert link * lisp/ol.el (org-insert-link): Allow completion of link target by its description. Almost certainly the feature was removed unintentionally. This commit is a part of Org 9.6. May it be that you are using older Org version? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at