commit/edit-utils: Jerry James: Append, rather than prepend, lazy-lock-after-change to after-change-functions.

[email protected] Tue, 30 Sep 2014 03:43:53 -0000
Newsgroups gmane.emacs.xemacs.patches
Message-ID <[email protected]>
1 new commit in edit-utils:

https://bitbucket.org/xemacs/edit-utils/commits/540d548b93b5/
Changeset:   540d548b93b5
User:        Jerry James
Date:        2014-09-30 03:42:33+00:00
Summary:     Append, rather than prepend, lazy-lock-after-change to after-change-functions.
See <CAHCOHQ=cZzs=nBYbXaj0zRmVAgSOuY1923sRbiM_hKQ7o5RqAw@mail.gmail.com> in
xemacs-patches, and also see xemacs-beta message
<CAHCOHQkkSQXUFbJ96o+DsFXM2VZ3n3LegGYNLmeB4ZiJO8q+8w@mail.gmail.com>.
Affected #:  3 files

diff -r e24f8c81c99181bc3121e3a43ecb0d72f589e6a3 -r 540d548b93b5ebad284c597e84722f125b5364a5 ChangeLog
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2014-09-23  Jerry James  <[email protected]>
+
+	* lazy-lock.el (lazy-lock-install-hooks): Append, rather than
+	prepend, lazy-lock-after-change to after-change-functions.
+	(lazy-lock-unstall): Ditto for font-lock-after-change-function.
+	* lazy-shot.el (lazy-shot-install): Ditto for
+	lazy-shot-after-change-function.
+	(lazy-shot-unstall): Ditto for font-lock-after-change-function.
+
 2014-05-26  Norbert Koch  <[email protected]>
 
 	* Makefile (VERSION): XEmacs package 2.55 released.

diff -r e24f8c81c99181bc3121e3a43ecb0d72f589e6a3 -r 540d548b93b5ebad284c597e84722f125b5364a5 lazy-lock.el
--- a/lazy-lock.el
+++ b/lazy-lock.el
@@ -571,7 +571,7 @@
   ;; Replace Font Lock mode hook.
   (make-local-hook 'after-change-functions)
   (remove-hook 'after-change-functions 'font-lock-after-change-function t)
-  (add-hook 'after-change-functions 'lazy-lock-after-change nil t)
+  (add-hook 'after-change-functions 'lazy-lock-after-change t t)
 
   ;; FSF 21.2: Lots and lots of hooks here.  Hooks for `outline', hooks for
   ;; `hideshow', hooks for redisplay-end-triggers, window-size-changed, and
@@ -616,7 +616,7 @@
 	  (save-restriction
 	    (widen)
 	    (lazy-lock-fontify-region (point-min) (point-max))))))
-    (add-hook 'after-change-functions 'font-lock-after-change-function nil t))
+    (add-hook 'after-change-functions 'font-lock-after-change-function t t))
   ;;
   ;; Remove the text properties.
   (lazy-lock-after-unfontify-buffer)

diff -r e24f8c81c99181bc3121e3a43ecb0d72f589e6a3 -r 540d548b93b5ebad284c597e84722f125b5364a5 lazy-shot.el
--- a/lazy-shot.el
+++ b/lazy-shot.el
@@ -298,7 +298,7 @@
   ;; entire changed area.
   (remove-hook 'after-change-functions 'font-lock-after-change-function t)
   (make-local-hook 'after-change-functions)
-  (add-hook 'after-change-functions 'lazy-shot-after-change-function nil t))
+  (add-hook 'after-change-functions 'lazy-shot-after-change-function t t))
 
 ;; Kludge needed untill lazy-lock-fontify-region is more intelligent
 (defun lazy-shot-unstall-after-fontify ()
@@ -319,8 +319,7 @@
       (lazy-shot-fontify-region (point-min) (point-max))))
   (remove-hook 'after-change-functions 'lazy-shot-after-change-function t)
   (if font-lock-mode
-      (add-hook 'after-change-functions 'font-lock-after-change-function
-		nil t)))
+      (add-hook 'after-change-functions 'font-lock-after-change-function t t)))
 
 (provide 'lazy-shot)

Repository URL: https://bitbucket.org/xemacs/edit-utils/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.