branch: elpa/powershell
commit dc8749ddf3385fdf1ed33ec682a6ee789c8d23dc
Author: Joe Schafer <[email protected]>
Commit: Joe Schafer <[email protected]>

    Apply byte-compiler fixes.
---
 powershell.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/powershell.el b/powershell.el
index bcdce4da093..f4b10310da0 100644
--- a/powershell.el
+++ b/powershell.el
@@ -273,9 +273,7 @@ This function does the right thing, and sets the 
buffer-local
   (let ((proc (get-buffer-process buffer-name)))
 
     (if proc
-        (save-excursion
-          (set-buffer buffer-name) ;; to get buffer-local variables
-
+        (with-current-buffer buffer-name
           (powershell-invoke-command-silently
            proc
            powershell--find-max-window-width-command

Reply via email to