:group 'goto-address)
(defcustom goto-address-fontify-maximum-size 30000
- "*Maximum size of file in which to fontify and/or highlight URLs."
- :type 'integer
+ "*Maximum size of file in which to fontify and/or highlight URLs.
+A value of t means there is no limit--fontify regardless of the size."
+ :type '(choice (integer :tag "Maximum size") (const :tag "No limit" t))
:group 'goto-address)
(defvar goto-address-mail-regexp
(save-excursion
(let ((inhibit-point-motion-hooks t))
(goto-char (point-min))
- (if (< (- (point-max) (point)) goto-address-fontify-maximum-size)
+ (if (or (eq t goto-address-fontify-maximum-size)
+ (< (- (point-max) (point)) goto-address-fontify-maximum-size))
(progn
(while (re-search-forward goto-address-url-regexp nil t)
(let* ((s (match-beginning 0))