emacs-diffs
[Top][All Lists]
Advanced

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

master 3281f8615ae 2/2: Increase goto-address-fontify-maximum-size


From: Stefan Kangas
Subject: master 3281f8615ae 2/2: Increase goto-address-fontify-maximum-size
Date: Wed, 18 Dec 2024 23:07:49 -0500 (EST)

branch: master
commit 3281f8615aefc08b47a99eb9761c0b630b053c58
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>

    Increase goto-address-fontify-maximum-size
    
    The new value is ~4 times larger, and should be more than fine on any
    reasonably modern machine.  Alternatively, the default could be set to
    t, as requested here:
    https://lists.gnu.org/r/bug-gnu-emacs/2003-05/msg00114.html
    
    * lisp/net/goto-addr.el (goto-address-fontify-maximum-size): Increase
    default value from 30000 to 128 KiB.
---
 lisp/net/goto-addr.el | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/lisp/net/goto-addr.el b/lisp/net/goto-addr.el
index 298e11807c8..3e5bc1ec090 100644
--- a/lisp/net/goto-addr.el
+++ b/lisp/net/goto-addr.el
@@ -79,10 +79,12 @@ But only if `goto-address-highlight-p' is also non-nil."
   "Non-nil means URLs and e-mail addresses in buffer are highlighted."
   :type 'boolean)
 
-(defcustom goto-address-fontify-maximum-size 30000
-  "Maximum size of file in which to fontify and/or highlight URLs.
+(defcustom goto-address-fontify-maximum-size (* 128 1024)
+  "Maximum size of file in which to fontify and/or highlight URLs (in bytes).
 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)))
+  :type '(choice (integer :tag "Maximum size")
+                 (const :tag "No limit" t))
+  :version "31.1")
 
 (defvar goto-address-mail-regexp
   ;; Actually pretty much any char could appear in the username part.  -stef



reply via email to

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