branch: externals/phps-mode
commit 9d2e70ad2240a69fa0abe88bb0e429a62d9f3d1a
Author: Christian Johansson <[email protected]>
Commit: Christian Johansson <[email protected]>
Made an optimization to previous release
---
phps-mode-lex-analyzer.el | 8 ++++++--
phps-mode.el | 2 +-
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/phps-mode-lex-analyzer.el b/phps-mode-lex-analyzer.el
index d2480c9..a14dceb 100644
--- a/phps-mode-lex-analyzer.el
+++ b/phps-mode-lex-analyzer.el
@@ -2826,7 +2826,9 @@ SQUARE-BRACKET-LEVEL and ROUND-BRACKET-LEVEL."
"Comment region from BEG to END with optional _ARG."
;; Make sure changes has been processed
- (phps-mode-lex-analyzer--process-changes nil t)
+ (when phps-mode-lex-analyzer--idle-timer
+ (phps-mode-lex-analyzer--process-changes nil t)
+ (phps-mode-lex-analyzer--cancel-idle-timer))
;; Iterate tokens from beginning to end and comment out all PHP code
(when-let ((tokens phps-mode-lex-analyzer--tokens))
@@ -2918,7 +2920,9 @@ SQUARE-BRACKET-LEVEL and ROUND-BRACKET-LEVEL."
"Un-comment region from BEG to END with optional ARG."
;; Make sure changes has been processed
- (phps-mode-lex-analyzer--process-changes nil t)
+ (when phps-mode-lex-analyzer--idle-timer
+ (phps-mode-lex-analyzer--process-changes nil t)
+ (phps-mode-lex-analyzer--cancel-idle-timer))
;; Iterate tokens from beginning to end and uncomment out all commented PHP
code
(when-let ((tokens phps-mode-lex-analyzer--tokens))
diff --git a/phps-mode.el b/phps-mode.el
index c9ff975..ed9ee79 100644
--- a/phps-mode.el
+++ b/phps-mode.el
@@ -6,7 +6,7 @@
;; Maintainer: Christian Johansson <[email protected]>
;; Created: 3 Mar 2018
;; Modified: 16 Oct 2020
-;; Version: 0.3.63
+;; Version: 0.3.64
;; Keywords: tools, convenience
;; URL: https://github.com/cjohansson/emacs-phps-mode