From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id INgjIDa1pGShQwAASxT56A (envelope-from ) for ; Wed, 05 Jul 2023 02:11:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id cI8sHza1pGQopwAAG6o9tA (envelope-from ) for ; Wed, 05 Jul 2023 02:11:34 +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 0FD64D592 for ; Wed, 5 Jul 2023 02:11:34 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=B2JIAjkT; dmarc=pass (policy=none) header.from=gmail.com; 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=1688515894; a=rsa-sha256; cv=none; b=u3HXmpVYUh4RB14Xh1keHPbBV0MrXxuScpNj2KAsmfQn9lpVzoOjBbq948bgE/8QjCJuFQ iNF3zfM4N/QhRgfM8BlpFcCaWdtokyksUBJcblyfbxC0YkEX2Hx0YJDc0I96H6Esmq0RME sBpat6mLkCM/rU4ES32o/YOzTn/zYgnCmfPKARQDP30AcXrkAYzrEUC3iOOCcyFFLmwOGF L/7kI/8I5gQzy6DmXtxSWG4C7tGM7reIc2vBe9lp7+6hrrKWHiINt184VVioHPLiDsy7I6 kuBa9iIa3QBGZOY9HDbQYHwAyQLj1/oGjoeP1q0QpSxZvAuRf/UpvTORRAK+XQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=B2JIAjkT; dmarc=pass (policy=none) header.from=gmail.com; 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=1688515894; 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=0jy9Dyrjh+NQXd5+PcGsckvpJXRu1HDmXLUGgxKRVZw=; b=Q7s5RUyuJQgAy5lj9sBpfMK1dz4myRUOh70LjM5fTNZZoNtveACK7+aNvNxVN46kZek+mV I9lbOGRRY25PJmo8sGPTwwqgf0qibSoLQADzmJbBkOt7CULG/v1iAjJXr7ELYQGPCTara5 0Sn8fQnmQTOu/VmrZxrbemUVjR+k7BKJWLlr8LSbkJpsYbXdmETja2L+H6lOj3BPxnrJFL ombeLvCoicG1KZxP5XGtdYOgI+k5wa3gzr3TYUocwWCCN4DKl8gMc4mPJGOzpi3sZ0mitd V5GQ0vBYQ2Ybbkxh3gL2oiTenlaxAzb0bqfIJmA/BajEwgq4fDPjUr+tnIEtjA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qGq6U-0007qm-Go; Tue, 04 Jul 2023 20:10:42 -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 1qGq6S-0007qX-E8 for emacs-orgmode@gnu.org; Tue, 04 Jul 2023 20:10:40 -0400 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qGq6Q-0002pq-9H for emacs-orgmode@gnu.org; Tue, 04 Jul 2023 20:10:40 -0400 Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-4fb7bbbfa95so1956253e87.0 for ; Tue, 04 Jul 2023 17:10:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688515836; x=1691107836; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=0jy9Dyrjh+NQXd5+PcGsckvpJXRu1HDmXLUGgxKRVZw=; b=B2JIAjkTG+OI45CBytPxJ+ff6Hp6O61lG+ZrDQNGA4ekMeW2sxNLChwDpSynPx5bzD ImIm4v2l0YX+tZrSH9/ZRMjEnWcjfK0rYBwVDp4mkA7eKrYbRH1CPgiBuFWsYe268b1F mSmgIxX82ehUkqZCOljULkBO3VhIWW9fpNWSfLvZ8MU73tg8yWbH/At+WKtPLK3fpnVB 1bHmKpLdM8ZI0qr6ygr/gwkFp5zjRwKASy4IRQOJkT4YWvlorgXlLMYSpFysRp1MtIvL BkGkZz4iqJ0Q45qajdPTyzDD9tdmWb1HeYK6auGFLBCI4M4C/qiGSZyaslwrKE0FkBKI qpXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688515836; x=1691107836; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0jy9Dyrjh+NQXd5+PcGsckvpJXRu1HDmXLUGgxKRVZw=; b=dXg6dEnJZAzmTMjKmX1z8W25SDTAkOKF+UXD9p5WeMKjC5IyzC7FMXdXUm21thwneb nKVSTN0iIGXYBhyl2yjPz3nxxRJ5GGKPWCxfDl/MbKoW6tEKBVeE189LxIwfMA6KsLY1 K/8G5CT3sjhpKziZvfQKRsBEysw2bLEprm0J0uF8w4QKGXNpF/fPQdTu3DIhKX1m7eBD 0Iz9QAPN2DYbXDDXF1rtxoYpY0dnRwR8kAPtUTa5m1EfPOBmXn9HqTgjrrk6zfi/vWu4 vKj76IBpFJcisiT29gd593Oh0h+/lfmtA7eS5qZ+Bkb+MlPB+SoELutNzfHOcY1kzmSp NDrg== X-Gm-Message-State: ABy/qLYtzQ9+HgqjnK/QUj28/DVWZjS13EjUy3wazw63EZqYe5Yt6PHE 8zWHVz+nx8DgGmJyT0b7MO4xZ8mqNQCA8kftaPo= X-Google-Smtp-Source: APBJJlHn1N9mQPn2CEcuUBJntj4lKFb4Q26AN/VUILwkVb7+Ti1DbCP0PjZ+3O3N4DL3pMIOxv65nZfywxQaTY9AO2k= X-Received: by 2002:a05:6512:3744:b0:4fa:73ea:aa2d with SMTP id a4-20020a056512374400b004fa73eaaa2dmr7986504lfs.4.1688515835333; Tue, 04 Jul 2023 17:10:35 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6520:4c85:b0:268:94be:fdc7 with HTTP; Tue, 4 Jul 2023 17:10:33 -0700 (PDT) In-Reply-To: <87cz18f2g1.fsf@localhost> References: <87cz18f2g1.fsf@localhost> From: Samuel Wales Date: Tue, 4 Jul 2023 17:10:33 -0700 Message-ID: Subject: Re: org-insert-link completion by description (Re: what is the purpose of "This link has already been stored"?) To: Ihor Radchenko Cc: Max Nikulin , emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::129; envelope-from=samologist@gmail.com; helo=mail-lf1-x129.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, 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.93 X-Migadu-Queue-Id: 0FD64D592 X-Spam-Score: -4.93 X-TUID: hjAWnV9scGnw On 7/4/23, Ihor Radchenko wrote: > 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'. i have struggled with this in a wider context and gotten nowhere for years. > >> --------------- >>> 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: what is the purpose of the prefixes? where is the description in this case? was it a bare link? that is unusual for an id link. > > (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: please note that it is of course not my intention to criticize anybody or anybody's code. merely saying what i need. max is trying to be helpful. iu am not even sure how we got on this topic as my original report was the already stored bug. in the context of mindless store/insert, which is what i do most frequently, if the most recently stored is set to the completion default, this topic is moot as presumably others agree this is desirable. in the context of choosing a different link from the default, the short url-like prefixes being there in front of specific links confuses me. for me, i just want the original buffer where you are pasting, and minibuffer completion. only. then there is the more fancy question of grabbing random links from all over your org files in order to paste them all in one place which i will not cover here. > > 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. definitely in favor of copleting by the description of the link. htank you for any effort toward that. > > This commit is a part of Org 9.6. > May it be that you are using older Org version? 9.6.7, most recent bugfix. comments apply to vanilla. > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at > -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com