branch: externals/phps-mode
commit de29cf9276ae5e4e3a77dca309e474a94684be57
Author: Christian Johansson <[email protected]>
Commit: Christian Johansson <[email protected]>

    Fixed issue with buffer focus when lexer was running
---
 phps-mode-lex-analyzer.el | 3 +--
 phps-mode.el              | 4 ++--
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/phps-mode-lex-analyzer.el b/phps-mode-lex-analyzer.el
index dd65d9a..c9e90dc 100644
--- a/phps-mode-lex-analyzer.el
+++ b/phps-mode-lex-analyzer.el
@@ -2358,8 +2358,7 @@ SQUARE-BRACKET-LEVEL and ROUND-BRACKET-LEVEL."
     (let ((buffer (generate-new-buffer "*PHPs Lexer*")))
 
       ;; Create temporary buffer and run lexer in it
-      (save-excursion
-        (switch-to-buffer buffer)
+      (with-current-buffer buffer
         (insert contents)
 
         (if tokens
diff --git a/phps-mode.el b/phps-mode.el
index 139a3b0..291aa5e 100644
--- a/phps-mode.el
+++ b/phps-mode.el
@@ -5,8 +5,8 @@
 ;; Author: Christian Johansson <[email protected]>
 ;; Maintainer: Christian Johansson <[email protected]>
 ;; Created: 3 Mar 2018
-;; Modified: 26 Feb 2020
-;; Version: 0.3.38
+;; Modified: 10 Apr 2020
+;; Version: 0.3.39
 ;; Keywords: tools, convenience
 ;; URL: https://github.com/cjohansson/emacs-phps-mode
 

Reply via email to