emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [DISCUSSION] May we recognize everything like [[protocol:uri]] as a


From: Max Nikulin
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, 7 Sep 2023 18:07:00 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0

On 07/09/2023 17:42, Ihor Radchenko wrote:
Max Nikulin writes:

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.

I do not think it noticeably increases complexity in comparison to the current state of affairs, but I agree concerning warnings. It would be great.

It is my dream for a long time to get a buffer with export warnings in `compilation-mode' with file:lineno labels. I admit it may be a challenge taking into account include directives and various filters that changes content of export buffer.





reply via email to

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