branch: elpa/lua-mode
commit 79ff5d08d10abd4844e2cb706d4ba35110e8adce
Author: immerrr <[email protected]>
Commit: immerrr <[email protected]>
lua-postprocess-output-buffer: replace save-excursion/set-buffer with
with-current-buffer
---
lua-mode.el | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lua-mode.el b/lua-mode.el
index de35e92..5a35762 100644
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -1010,8 +1010,7 @@ If `lua-process' is nil or dead, start a new process
first."
t, otherwise return nil. BUF must exist."
(let ((lua-stdin-line-offset (or lua-stdin-line-offset 0))
line file bol err-p)
- (save-excursion
- (set-buffer buf)
+ (with-current-buffer buf
(goto-char start)
(beginning-of-line)
(if (re-search-forward lua-traceback-line-re nil t)