[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/phps-mode 321803a 182/405: Line indents are now cleanin
From: |
Stefan Monnier |
Subject: |
[elpa] externals/phps-mode 321803a 182/405: Line indents are now cleaning on buffer changes |
Date: |
Sat, 13 Jul 2019 10:00:09 -0400 (EDT) |
branch: externals/phps-mode
commit 321803ad440bc17f14a625a45902a070273445a4
Author: Christian Johansson <address@hidden>
Commit: Christian Johansson <address@hidden>
Line indents are now cleaning on buffer changes
---
phps-mode-functions.el | 3 +++
phps-mode-lexer.el | 5 +----
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/phps-mode-functions.el b/phps-mode-functions.el
index a6cadcf..09466bb 100644
--- a/phps-mode-functions.el
+++ b/phps-mode-functions.el
@@ -444,6 +444,9 @@ Refactor to this structure:
(boundp 'phps-mode-idle-interval)
phps-mode-idle-interval)
;; (message "Enqueued incremental lexer")
+
+ ;; Reset line indents
+ (setq phps-mode-functions-lines-indent nil)
(run-with-idle-timer phps-mode-idle-interval nil
#'phps-mode-lexer-run-incremental))
;; When point of change is not set or when start of new changes precedes
old change - update the point
diff --git a/phps-mode-lexer.el b/phps-mode-lexer.el
index 50a22f9..8eb1905 100644
--- a/phps-mode-lexer.el
+++ b/phps-mode-lexer.el
@@ -1267,9 +1267,6 @@ ANY_CHAR'
(setq phps-mode-lexer-buffer-changes--start nil))
(setq phps-mode-lexer-states nil)
- (when (and (boundp 'phps-mode-functions-lines-indent)
- phps-mode-functions-lines-indent)
- (setq phps-mode-functions-lines-indent nil))
(phps-mode-lexer-BEGIN phps-mode-lexer-ST_INITIAL)))
(defun phps-mode-lexer-run ()
@@ -1324,7 +1321,7 @@ ANY_CHAR'
new-tokens))
(defun phps-mode-lexer-run-incremental ()
- "Run incremental lexer based on `phps-mode-lexer-buffer-changes--start'."
+ "Run incremental lexer based on `phps-mode-lexer-buffer-changes-start'."
(when (and (boundp 'phps-mode-functions-buffer-changes-start)
phps-mode-functions-buffer-changes-start
phps-mode-lexer-states)
- [elpa] externals/phps-mode b99da6b 153/405: Starting using new indentation calculation for indentations, (continued)
- [elpa] externals/phps-mode b99da6b 153/405: Starting using new indentation calculation for indentations, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 6559760 166/405: Work on assignments and class declaration indentations, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 2720be8 165/405: Indentation calculation for heredoc and nowdoc assignments passes, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 13c4c78 164/405: More work on heredoc, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 47ffc37 179/405: More work on refactored indentation calculation, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode a5ced61 158/405: New indentation function passes all original unit tests, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode e3eedd7 167/405: Assignment indentation passes tests, class declaration remains, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode e37c1cf 150/405: New indention calculation works with doc-comments, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode f789468 172/405: Took notes of new indentation tests, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 20e77aa 181/405: Removed debug output, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 321803a 182/405: Line indents are now cleaning on buffer changes,
Stefan Monnier <=
- [elpa] externals/phps-mode 38bcabb 176/405: Improved detection of assignment ends in function optional arguments, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode f1236e2 169/405: Unit tests for indentation calculation for multi-line strings passes, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 105fece 149/405: New indent calculation for inline syntax passes test, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 0a32b17 161/405: Improved calculation for indentation for multi-line assignments, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode b2eac4d 154/405: More work on switch case default, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 6b5a5c3 155/405: More work on calculating indentations, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode ce2d4bd 148/405: New indentation calculation function passes alternative, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 3718931 156/405: Basic tests for indentation calculation passes, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 13e9148 159/405: Indentation unit test for assignment is passing, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode b5c64c1 162/405: Added failing tests for HEREDOC and NOWDOC assignments, Stefan Monnier, 2019/07/13