emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/lua-mode 79ff5d0 110/468: lua-postprocess-output-buffer: r


From: Philip Kaludercic
Subject: [nongnu] elpa/lua-mode 79ff5d0 110/468: lua-postprocess-output-buffer: replace save-excursion/set-buffer with with-current-buffer
Date: Thu, 5 Aug 2021 04:58:17 -0400 (EDT)

branch: elpa/lua-mode
commit 79ff5d08d10abd4844e2cb706d4ba35110e8adce
Author: immerrr <immerrr+lua@gmail.com>
Commit: immerrr <immerrr+lua@gmail.com>

    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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]