branch: master
commit 61b9cf44f54bcd964949e2953136df1f7440ca78
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>

    Don't pass nil to mmm-set-local-variables
    
    Finishes e848ef1.
---
 mmm-region.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mmm-region.el b/mmm-region.el
index 69b62ea..6608490 100644
--- a/mmm-region.el
+++ b/mmm-region.el
@@ -793,7 +793,7 @@ of the REGIONS covers START to STOP."
         (goto-char (or saved-pos (point-min)))
         (mmm-set-current-submode saved-mode)
         ;; This looks for the current overlay at point to set region locals.
-        (mmm-set-local-variables saved-mode))))
+        (mmm-set-local-variables (or saved-mode mmm-primary-mode)))))
   (when loudly (message nil)))
 
 (defun mmm-fontify-region-list (mode regions)

Reply via email to