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 ms5.migadu.com with LMTPS id iHf1BbZbF2PsdQEAbAwnHQ (envelope-from ) for ; Tue, 06 Sep 2022 16:39:50 +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 wNnxBbZbF2PvHQAAauVa8A (envelope-from ) for ; Tue, 06 Sep 2022 16:39:50 +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 CD49D45C6C for ; Tue, 6 Sep 2022 16:39:49 +0200 (CEST) Received: from localhost ([::1]:44030 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVZjw-0000JP-V2 for larch@yhetil.org; Tue, 06 Sep 2022 10:39:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVZef-0000py-WA for emacs-orgmode@gnu.org; Tue, 06 Sep 2022 10:34:22 -0400 Received: from ciao.gmane.io ([116.202.254.214]:47908) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVZee-0004Fs-Ba for emacs-orgmode@gnu.org; Tue, 06 Sep 2022 10:34:21 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1oVZeb-0001cD-Ih for emacs-orgmode@gnu.org; Tue, 06 Sep 2022 16:34:17 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: ido, org-insert-link, and completion based on link description Date: Tue, 6 Sep 2022 21:34:12 +0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Content-Language: en-US Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 28 X-Spam_score: 2.8 X-Spam_bar: ++ X-Spam_report: (2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1662475189; 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=K/BepyWMtIGjA+vgS9MyqwJmPtehoP7M1ovq2BFjhII=; b=qsM/RwxxjP7NbwNQb6uoBbloimOTq9SZVlgATODpaUKJASMy9ogB82yfpwloUnvazYWlTx D0A5PYr9bKnUkbN0FCR5lkhBaRXIZ+d8GgOulPsKFfpRjY1ZLCTZaW8NOU4zkEyvpjZlno ih/Y8/iGXC/bTBjRAW6fqgY5M1qwlBMlCjKNb5N1xDWQFQr5he/8eD5kPicPkiMssqVma3 agVJfkMVvhFvdmX0Vnhh3WJ1ZccCaphlMRc2T8vYbBapRshNV8rw6k/yNT0hX8+k7ZGoww J71mPkITSmXtfrnV+Bo49Pta4vOSUSfkoFPnxC/jJG0eKW+mmtHyBilWPO4H/w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662475189; a=rsa-sha256; cv=none; b=PY8UDolKknSrBnvnM7yq9/gTfBMaVOzn0AHxQjswTcrdw9tptTOUZ+13+ckTTSfaq3DeGd sruU6M0a4KkqRB5ghEn93Kj4T1I2k4vikDCoeBDipqfi7l/but1r0Cxbfvef+M9qwB615t VtjaN5UMKyBWmAv8ADmB5dUJdJHPPh37V0lDldpdobNWpz63LfayK++Dgbnym9HBNuXl6R Bl0S/Y3JItY9pI4gK9pRawjM7cesBeOihrThORx/g3Xr9psfgIPfWWBQeiPrW+hItZeM4N xKcbLaDUJLKufJeribGfj/iHuVH4WqVh3XEyIX2YKSqdLA5lzvT8a/ulcIQ9GA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=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-Spam-Score: 3.93 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=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: CD49D45C6C X-Spam-Score: 3.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: qDqIJSSmlwFf Hi, Does anyone have an idea why it was necessary to drop completion of stored links based on their description for the sake of ido? I am not an ido user, so I am surprised that such feature negatively affected usability. I mean the commit 7f096ad37 2012-10-12 14:39:53 +1100 Tony Day: org-insert-link: Use ido when inserting links https://list.orgmode.org/04D0E787-A8A1-4246-8DD2-D607E38D61BA@gmail.com/T/#u > - (mapcar 'cadr org-stored-links)) If I read the code correctly, Bastien added this line to include link descriptions to the completion list in response to Yagnesh Raghava Yakkala. #+LABEL and CUSTOM_ID with reftex. Mon, 21 May 2012 04:45:29 +0900 https://list.orgmode.org/877gw6ocva.fsf@okhotsk19.lowtem.hokudai.ac.jp/T/#u https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=1e34c5d34 2012-08-03 14:08:20 +0200 Bastien Guerry: org.el: Fontify links to current buffer when inserting a link. The only issue I suspect is that `org-store-link' may add to the list of stored links entries with identical path and description causing duplicated completion options, but it may be solved in another way. From my point of view, currently the code of `org-insert-link' related to `auto-desc' is completely confusing. It was added to allow description completion, but it was not removed in the commit related to ido. It is rather inconsistent, so it may be unintentional. P.S. My question is related to the following threads: - Carlos Pita. Adding target and custom id links doesn't ask for description. Tue, 2 Aug 2022 14:44:58 -0300. https://list.orgmode.org/D99A712C-18D1-4A4F-8093-35A0BFB469C4@gmail.com - Max Nikulin. Re: Bug: org-store-link uses CUSTOM_ID instead of target point. Sat, 6 Nov 2021 19:51:29 +0700. https://list.orgmode.org/e2c807a7-1924-6f08-9e63-4f70aee9d3b5@gmail.com I decided to start a new thread to concentrate on ido, link completion by their description, and the `auto-desc' variable.