aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2016-12-24 20:12:06 +0200
committerEli Zaretskii2016-12-24 20:12:06 +0200
commit5b5e03665155c841b775d2d0b97ed16396ffc918 (patch)
tree2b7871a95eae44735fb1d971827c26e50e89af07
parent19994a15022d725d293df44635b07e6b51553e65 (diff)
downloademacs-5b5e03665155c841b775d2d0b97ed16396ffc918.tar.gz
emacs-5b5e03665155c841b775d2d0b97ed16396ffc918.zip
Revert to pre-25.1 behavior in ffap
* lisp/ffap.el (ffap-lax-url): Change the default to t, to produce the same behavior as in Emacs 24.x. (Bug#25264) Explain the trade-offs of customizing this in the doc string.
-rw-r--r--lisp/ffap.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/ffap.el b/lisp/ffap.el
index c000066d8cf..c97c7624a60 100644
--- a/lisp/ffap.el
+++ b/lisp/ffap.el
@@ -162,8 +162,12 @@ schemes (e.g. \"ftp\"); in that case, only convert those URLs."
162 :group 'ffap 162 :group 'ffap
163 :version "24.3") 163 :version "24.3")
164 164
165(defcustom ffap-lax-url nil 165(defcustom ffap-lax-url t
166 "If non-nil, allow lax URL matching." 166 "If non-nil, allow lax URL matching.
167The default non-nil value might produce false URLs in C++ code
168with symbols like \"std::find\". On the other hand, setting
169this to nil will disable recognition of URLs that are not
170well-formed, such as \"user@host\" or \"<user@host>\"."
167 :type 'boolean 171 :type 'boolean
168 :group 'ffap 172 :group 'ffap
169 :version "25.1") 173 :version "25.1")