[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master a897a41 360/433: * mmm-erb.el: Update comments
From: |
Dmitry Gutov |
Subject: |
[elpa] master a897a41 360/433: * mmm-erb.el: Update comments |
Date: |
Thu, 15 Mar 2018 19:44:36 -0400 (EDT) |
branch: master
commit a897a4131dbf3b09cba77a908a97358bb0682769
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
* mmm-erb.el: Update comments
---
mmm-erb.el | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/mmm-erb.el b/mmm-erb.el
index 9ccd312..86ec45a 100644
--- a/mmm-erb.el
+++ b/mmm-erb.el
@@ -25,8 +25,8 @@
;;; Commentary:
-;; This file contains definitions of JavaScript, CSS, ERB and EJS submode
-;; classes, and well as support functions for proper indentation.
+;; This file contains definitions of ERB and EJS submode classes, and well as
+;; support functions for proper indentation.
;; Usage:
@@ -97,6 +97,12 @@
(if (and mmm-current-overlay mmm-current-submode
(< (overlay-start mmm-current-overlay) (point-at-bol)))
;; Region starts before the current line (and contains indentation).
+ ;; If it starts on the current line, then either first part of the line
+ ;; is in primary mode, or we're on the first line of a script or style
+ ;; tag contents. In the latter case, better to also indent it according
+ ;; to the primary mode (as text): `js-indent-line' ignores narrowing,
+ ;; gets confused by the angle bracket on the previous line and thus
+ ;; breaks our "top level" heuristic.
(mmm-erb-indent-line-submode)
(mmm-erb-indent-line-primary))
(when (> offset 0) (forward-char offset))))
- [elpa] master 3ef8864 374/433: Expected results depend on the Emacs version, (continued)
- [elpa] master 3ef8864 374/433: Expected results depend on the Emacs version, Dmitry Gutov, 2018/03/15
- [elpa] master c563b85 377/433: mmm-beginning-of-syntax: Don't consider overlays ending at point, Dmitry Gutov, 2018/03/15
- [elpa] master b8c18c2 227/433: Defined new submode placement error conditions., Dmitry Gutov, 2018/03/15
- [elpa] master 4e21882 403/433: mmm-match-region: Return front-pos even without front-delim; likewise for back, Dmitry Gutov, 2018/03/15
- [elpa] master b3c3510 289/433: Fix fontification of the first subregion line, Dmitry Gutov, 2018/03/15
- [elpa] master 4d41181 405/433: Make c-mode raise fewer errors, Dmitry Gutov, 2018/03/15
- [elpa] master 6115059 288/433: Refontify buffer when creating new region, Dmitry Gutov, 2018/03/15
- [elpa] master a05fca0 247/433: Initial revision, from Joe Kesley., Dmitry Gutov, 2018/03/15
- [elpa] master 68a169e 366/433: Don't make the temp buffer unmodified before killing it, Dmitry Gutov, 2018/03/15
- [elpa] master aea8495 433/433: Add the agreed-upon copyright exceptions, Dmitry Gutov, 2018/03/15
- [elpa] master a897a41 360/433: * mmm-erb.el: Update comments,
Dmitry Gutov <=
- [elpa] master 1bcb406 379/433: Add magic comment for autoload to mmm-add-classes, Dmitry Gutov, 2018/03/15
- [elpa] master 3ac63b8 336/433: Define mmm-syntax-propertize-function, Dmitry Gutov, 2018/03/15
- [elpa] master 1e655f7 395/433: mmm-save-local-variables: Add forward-sexp-function and SMIE-related vars, Dmitry Gutov, 2018/03/15
- [elpa] master c23be30 384/433: Limit html-php to .php files, Dmitry Gutov, 2018/03/15
- [elpa] master 70f115e 348/433: Update the TODO, Dmitry Gutov, 2018/03/15
- [elpa] master 02a3248 394/433: Merge pull request #49 from namikister/css-mode, Dmitry Gutov, 2018/03/15
- [elpa] master 2995771 420/433: Update copyright dates again, Dmitry Gutov, 2018/03/15
- [elpa] master 3f771f7 419/433: Use cl-lib instead of cl, Dmitry Gutov, 2018/03/15
- [elpa] master 912f3bd 335/433: Use syntax-propertize-function set in submodes, Dmitry Gutov, 2018/03/15
- [elpa] master c9dea38 363/433: Update the FAQ, Dmitry Gutov, 2018/03/15