[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master b554efb 287/433: After fontifying the region, restore loca
From: |
Dmitry Gutov |
Subject: |
[elpa] master b554efb 287/433: After fontifying the region, restore local vars |
Date: |
Thu, 15 Mar 2018 19:44:22 -0400 (EDT) |
branch: master
commit b554efb5d8530414113bf871ac97c46053da339a
Author: Dmitry Gutov <address@hidden>
Commit: Steve Purcell <address@hidden>
After fontifying the region, restore local vars
---
mmm-compat.el | 2 +-
mmm-region.el | 8 +++++---
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/mmm-compat.el b/mmm-compat.el
index c963c86..ce9e736 100644
--- a/mmm-compat.el
+++ b/mmm-compat.el
@@ -190,4 +190,4 @@ buffer \(name begins with a space). So in XEmacs, we just
call
(provide 'mmm-compat)
-;;; mmm-compat.el ends here
\ No newline at end of file
+;;; mmm-compat.el ends here
diff --git a/mmm-region.el b/mmm-region.el
index bfac6df..211fec8 100644
--- a/mmm-region.el
+++ b/mmm-region.el
@@ -590,6 +590,7 @@ different keymaps, syntax tables, local variables, etc. for
submodes."
(defun mmm-add-hooks ()
(if (featurep 'xemacs)
(make-local-hook 'post-command-hook))
+ ;; FIXME: Use text properties `point-entered' and `point-left' instead?
(add-hook 'post-command-hook 'mmm-update-submode-region nil 'local))
(defun mmm-remove-hooks ()
@@ -777,9 +778,10 @@ of the REGIONS covers START to STOP."
(when (get (car elt) 'mmm-font-lock-mode)
(mmm-fontify-region-list (car elt) (cdr elt))))
(mmm-regions-alist start stop)))
- ;; With jit-lock, this causes blips in the mode line and menus.
- ;; Shouldn't be necessary here, since it's in post-command-hook too.
- ;;(mmm-update-submode-region)
+ ;; It's in `post-command-hook' too, but that's executed before font-lock,
+ ;; so the latter messes up local vars (such as line-indent-function)
+ ;; until after the next command.
+ (mmm-update-submode-region)
(when loudly (message nil)))
(defun mmm-fontify-region-list (mode regions)
- [elpa] master 5289a0b 318/433: Save values of more cc-mode variables, (continued)
- [elpa] master 5289a0b 318/433: Save values of more cc-mode variables, Dmitry Gutov, 2018/03/15
- [elpa] master 034df4b 339/433: Revert c548593, for easier optimization, Dmitry Gutov, 2018/03/15
- [elpa] master e10b20f 347/433: Remove the angle brackets, Dmitry Gutov, 2018/03/15
- [elpa] master 0cb75f0 299/433: Correctly restore pre-indent position, Dmitry Gutov, 2018/03/15
- [elpa] master 9674355 328/433: Merge pull request #18 from prakashk/master, Dmitry Gutov, 2018/03/15
- [elpa] master 05a787e 291/433: Fix further compilation warnings in recent Emacsen, Dmitry Gutov, 2018/03/15
- [elpa] master e269a47 305/433: Require 'mmm-region from 'mmm-erb, avoiding compilation warnings about free variable references, Dmitry Gutov, 2018/03/15
- [elpa] master 961a127 263/433: Prevent bounds from going outside buffer (XEmacs complains), Dmitry Gutov, 2018/03/15
- [elpa] master 66b47cd 218/433: Released 0.4.7, Dmitry Gutov, 2018/03/15
- [elpa] master 07b35d4 250/433: Added mmm-noweb to autoload (Joe Kelsey), Dmitry Gutov, 2018/03/15
- [elpa] master b554efb 287/433: After fontifying the region, restore local vars,
Dmitry Gutov <=
- [elpa] master 0922481 254/433: Added narrow to submode region (Joe Kelsey), Dmitry Gutov, 2018/03/15
- [elpa] master b72e44c 369/433: Released 0.5.1, Dmitry Gutov, 2018/03/15
- [elpa] master bcc5adf 351/433: Define mmm-indent-line-function and its default value, Dmitry Gutov, 2018/03/15
- [elpa] master 8ab7041 297/433: Adjust indentation in primary mode for ERB blocks, Dmitry Gutov, 2018/03/15
- [elpa] master 68b2135 282/433: Fix obsolete backquotes, Dmitry Gutov, 2018/03/15
- [elpa] master e3ef1f8 267/433: Collapsed undo of insertion into one command., Dmitry Gutov, 2018/03/15
- [elpa] master 6dcd817 337/433: * mmm-syntax-propertize-function: Use font-lock-syntactic-keywords, Dmitry Gutov, 2018/03/15
- [elpa] master ea8a1b8 342/433: Rebinding syntax-propertize-chunk-size is pointless, Dmitry Gutov, 2018/03/15
- [elpa] master 970b52a 298/433: Check for EJS "blocks", Dmitry Gutov, 2018/03/15
- [elpa] master 20e65af 372/433: Primary mode spf should see the whole buffer, Dmitry Gutov, 2018/03/15