Revert to pre-25.1 behavior in ffap
authorEli Zaretskii <eliz@gnu.org>
Sat, 24 Dec 2016 18:12:06 +0000 (20:12 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 24 Dec 2016 18:12:06 +0000 (20:12 +0200)
* 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.

lisp/ffap.el

index c000066d8cf066982bac917a8d2854ac70472e02..c97c7624a60cdc042a9c342c87f9ad385a893ab5 100644 (file)
@@ -162,8 +162,12 @@ schemes (e.g. \"ftp\"); in that case, only convert those URLs."
   :group 'ffap
   :version "24.3")
 
-(defcustom ffap-lax-url nil
-  "If non-nil, allow lax URL matching."
+(defcustom ffap-lax-url t
+  "If non-nil, allow lax URL matching.
+The default non-nil value might produce false URLs in C++ code
+with symbols like \"std::find\".  On the other hand, setting
+this to nil will disable recognition of URLs that are not
+well-formed, such as \"user@host\" or \"<user@host>\"."
   :type 'boolean
   :group 'ffap
   :version "25.1")