|
From: | Ihor Radchenko |
Subject: | Re: [DISCUSSION] May we recognize everything like [[protocol:uri]] as a non-fuzzy link? (was: [BUG] URI handling is overly complicated and nonstandard [9.6.7 (N/A @ /gnu/store/mg7223g8mw90lccp6mm5g6f3mpjk70si-emacs-org-9.6.7/share/emacs/site-lisp/org-9.6.7/)]) |
Date: | Thu, 07 Sep 2023 10:42:25 +0000 |
Max Nikulin <manikulin@gmail.com> writes: >> Max Nikulin writes: >>> I am unsure if any "PREFIX:" should be recognized as a link type, but >>> there is another possibility on this way: allow users to mark some >>> prefixes as search links, not link types. >> >> May you elaborate? > > I am considering another behavior. If any PREFIX: is recognized then the > link exported literally as PREFIX:PATH unless the PREFIX is registered as > > (org-link-register-search-link-prefix "sec") > > So if the document does not contain PREFIX:NAME target then it is an > export error (or another prescription controlled by > `org-export-with-broken-links') and it may be reported so by `org-lint'. > > Different users expect different degree of strictness during link > export. I am unsure which variant is better. I feel that it will be too complex. We might simply throw a warning when we get unregistered [[type:path]] link, so that the user can notice if there is any problem. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>
[Prev in Thread] | Current Thread | [Next in Thread] |