changeset 76291:7d2b5814cd4e

* NEWS (fontification): Mention that the new default for jit-lock-stealth-time is now nil. * jit-lock.el (jit-lock-stealth-time): Change default to nil. Preserve 16 as default value for "seconds" when customizing.
author David Kastrup <dak@gnu.org>
date Sun, 04 Mar 2007 08:41:08 +0000
parents d5094572b487
children 81d50597174e
files etc/ChangeLog etc/NEWS lisp/ChangeLog lisp/jit-lock.el
diffstat 4 files changed, 22 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/etc/ChangeLog	Sun Mar 04 07:38:20 2007 +0000
+++ b/etc/ChangeLog	Sun Mar 04 08:41:08 2007 +0000
@@ -1,3 +1,8 @@
+2007-03-04  David Kastrup  <dak@gnu.org>
+
+	* NEWS (fontification): Mention that the new default for
+	jit-lock-stealth-time is now nil.
+
 2007-03-01  Kim F. Storm  <storm@cua.dk>
 
 	* ORDERS: Reformat text.
--- a/etc/NEWS	Sun Mar 04 07:38:20 2007 +0000
+++ b/etc/NEWS	Sun Mar 04 08:41:08 2007 +0000
@@ -1055,10 +1055,16 @@
 
 ---
 *** The default settings for JIT stealth lock parameters are changed.
-The default value for the user option jit-lock-stealth-time is now 16
-instead of 3, and the default value of jit-lock-stealth-nice is now
-0.5 instead of 0.125.  The new defaults should lower the CPU usage
-when Emacs is fontifying in the background.
+The default value for the user option jit-lock-stealth-time is now nil
+instead of 3.  This setting of jit-lock-stealth-time disables stealth
+fontification: on today's machines, it may be a bug in font lock
+patterns if fontification otherwise noticeably degrades interactivity.
+If you find movement in infrequently visited buffers sluggish (and the
+major mode maintainer has no better idea), customizing
+jit-lock-stealth-time to a non-nil value will let Emacs fontify
+buffers in the background when it considers the system to be idle.
+jit-lock-stealth-nice is now 0.5 instead of 0.125 which is supposed to
+cause less load than the old defaults.
 
 ---
 *** jit-lock can now be delayed with `jit-lock-defer-time'.
--- a/lisp/ChangeLog	Sun Mar 04 07:38:20 2007 +0000
+++ b/lisp/ChangeLog	Sun Mar 04 08:41:08 2007 +0000
@@ -1,3 +1,8 @@
+2007-03-04  David Kastrup  <dak@gnu.org>
+
+	* jit-lock.el (jit-lock-stealth-time): Change default to nil.
+	Preserve 16 as default value for "seconds" when customizing.
+
 2007-03-04  Carsten Dominik  <dominik@science.uva.nl>
 
 	* textmodes/org.el (org-self-insert-command)
--- a/lisp/jit-lock.el	Sun Mar 04 07:38:20 2007 +0000
+++ b/lisp/jit-lock.el	Sun Mar 04 08:41:08 2007 +0000
@@ -74,14 +74,14 @@
   :group 'jit-lock)
 
 
-(defcustom jit-lock-stealth-time 16
+(defcustom jit-lock-stealth-time nil
   "*Time in seconds to wait before beginning stealth fontification.
 Stealth fontification occurs if there is no input within this time.
 If nil, stealth fontification is never performed.
 
 The value of this variable is used when JIT Lock mode is turned on."
   :type '(choice (const :tag "never" nil)
-		 (number :tag "seconds"))
+		 (number :tag "seconds" :value 16))
   :group 'jit-lock)