[Top][All Lists]

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

[ELPA-diffs] ELPA branch, master, updated. cad780fdc1758c7b4cd25f5451cfc

From: Stefan Monnier
Subject: [ELPA-diffs] ELPA branch, master, updated. cad780fdc1758c7b4cd25f5451cfc628f73b037a
Date: Sun, 25 Aug 2013 03:55:20 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "ELPA".

The branch, master has been updated
       via  cad780fdc1758c7b4cd25f5451cfc628f73b037a (commit)
      from  3d071d4d8be0c094dec0b2c16cb18956c0292b6f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit cad780fdc1758c7b4cd25f5451cfc628f73b037a
Author: Stefan Monnier <address@hidden>
Date:   Sat Aug 24 23:55:14 2013 -0400

    * adaptive-wrap.el (adaptive-wrap-mode): Move after font-lock (bug#15155).

diff --git a/packages/adaptive-wrap/adaptive-wrap.el 
index 3787a99..9455789 100644
--- a/packages/adaptive-wrap/adaptive-wrap.el
+++ b/packages/adaptive-wrap/adaptive-wrap.el
@@ -96,7 +96,13 @@ extra indent = 2
   :lighter ""
   :group 'visual-line
   (if adaptive-wrap-prefix-mode
-      (jit-lock-register #'adaptive-wrap-prefix-function)
+      (progn
+        ;; HACK ATTACK!  We need to run after font-lock, but jit-lock-register
+        ;; doesn't accept an `append' argument, so we add ourselves beforehand,
+        ;; to make sure we're at the end of the hook (bug#15155).
+        (add-hook 'jit-lock-functions
+                  #'adaptive-wrap-prefix-function 'append t)
+        (jit-lock-register #'adaptive-wrap-prefix-function))
     (jit-lock-unregister #'adaptive-wrap-prefix-function)


Summary of changes:
 packages/adaptive-wrap/adaptive-wrap.el |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)


reply via email to

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