summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/ffap.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ffap.el b/lisp/ffap.el
index 57f5271708b..2c99f88d505 100644
--- a/lisp/ffap.el
+++ b/lisp/ffap.el
@@ -174,7 +174,8 @@ Note this name may be omitted if it equals the default
"\\`/\\(afs\\|net\\)/."
;; afs only: (and (file-exists-p "/afs") "\\`/afs/.")
"Matching file names are treated as remote. Use nil to disable."
- :type 'regexp
+ :type '(choice (const :tag "Disable" nil)
+ regexp)
:group 'ffap)
(defvar ffap-url-regexp