emacs-orgmode
[Top][All Lists]
Advanced

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

Re: A small bug in org-file-url-p


From: Timothy
Subject: Re: A small bug in org-file-url-p
Date: Wed, 01 Sep 2021 22:40:59 +0800
User-agent: mu4e 1.6.5; emacs 28.0.50

Hi Peder,

Thanks for reporting this bug 🙂, and explaining the issue well. I’ve just pushed a fix in fbfcd79f8.

All the best,
Timothy

From: Peder Stray
Subject: A small bug in org-file-url-p
To: emacs-orgmode@gnu.org
Date: Wed, 01 Sep 2021 19:59:26 +0800

Hi

Just wanted to report a small bug in org-file-url-p, regarding its use of ffap-url-regexp.

The documentation for ffap-url-regexp states:
Regexp matching the beginning of a URI, for ffap.
If the value is nil, disable URL-matching features in ffap.

I have it set to nil in my setup, to disable url-matching, and this causes org-file-url-p to pass on nil in (string-match-p ffap-url-regexp file), thus causing string-match-p do die with an error.

Othe code in ffap uses and to test the value of ffap-url-regexp before passing it on as in:
(and ffap-url-regexp (string-match-p ffap-url-regexp file))

--
  Peder Stray

reply via email to

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