emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ido, org-insert-link, and completion based on link description


From: Max Nikulin
Subject: ido, org-insert-link, and completion based on link description
Date: Tue, 6 Sep 2022 21:34:12 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]