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

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

[elpa] externals/buffer-env 5d0a3d67c9: Use buffer-local value of buffer


From: ELPA Syncer
Subject: [elpa] externals/buffer-env 5d0a3d67c9: Use buffer-local value of buffer-env-command
Date: Mon, 14 Mar 2022 04:57:18 -0400 (EDT)

branch: externals/buffer-env
commit 5d0a3d67c9ae196bd44c9d41edc60cb59550eb21
Author: Augusto Stoffel <arstoffel@gmail.com>
Commit: Augusto Stoffel <arstoffel@gmail.com>

    Use buffer-local value of buffer-env-command
    
    Closes #2.
---
 buffer-env.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/buffer-env.el b/buffer-env.el
index 351d723a53..b8657095c9 100644
--- a/buffer-env.el
+++ b/buffer-env.el
@@ -151,14 +151,14 @@ When called interactively, ask for a FILE."
                                        file file t))))
   (when-let* ((file (if file
                         (expand-file-name file)
-                     (buffer-env--locate-script)))
+                      (buffer-env--locate-script)))
+              (command buffer-env-command)
               ((buffer-env--authorize file))
               (vars (with-temp-buffer
                       (let* ((default-directory (file-name-directory file))
                              (status (call-process shell-file-name nil t nil
                                                    shell-command-switch
-                                                   buffer-env-command
-                                                   file)))
+                                                   command file)))
                         (if (eq 0 status)
                             (split-string (buffer-substring (point-min) 
(point-max))
                                           "\0" t)



reply via email to

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