[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/mmm-mode 44e5100 2/3: Add a couple of FIXMEs
From: |
Dmitry Gutov |
Subject: |
[elpa] externals/mmm-mode 44e5100 2/3: Add a couple of FIXMEs |
Date: |
Mon, 19 Mar 2018 18:27:25 -0400 (EDT) |
branch: externals/mmm-mode
commit 44e5100e688b1583b3c6927d487556772ea32ab3
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
Add a couple of FIXMEs
---
mmm-class.el | 2 ++
mmm-region.el | 3 +++
2 files changed, 5 insertions(+)
diff --git a/mmm-class.el b/mmm-class.el
index 34beae9..6b7d604 100644
--- a/mmm-class.el
+++ b/mmm-class.el
@@ -106,6 +106,8 @@ error once all classes have been applied."
;;}}}
;;{{{ Apply All Classes
+;; FIXME: This should be called by syntax-propertize-function,
+;; not vice versa.
(cl-defun mmm-apply-all (&key (start (point-min)) (stop (point-max)))
"MMM-ify from START to STOP by all submode classes.
The classes come from mode/ext, `mmm-classes', `mmm-global-classes',
diff --git a/mmm-region.el b/mmm-region.el
index db5dcc7..d8b98f5 100644
--- a/mmm-region.el
+++ b/mmm-region.el
@@ -697,6 +697,9 @@ region and mode for the previous position."
(font-lock-mode 1)
(font-lock-mode 0)))
+;; FIXME: Most uses of this function happen when the buffer is parsed
+;; into regions manually. That should go away after
+;; syntax-propertize-function does this.
(defun mmm-refontify-maybe (&optional start stop)
"Re-fontify from START to STOP, or entire buffer, if enabled."
(when font-lock-mode