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

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

[elpa] externals/transient b0185a3ad6 125/366: transient--read-file-cont


From: Jonas Bernoulli
Subject: [elpa] externals/transient b0185a3ad6 125/366: transient--read-file-contents: Remove stray variable access
Date: Tue, 25 Jan 2022 18:54:33 -0500 (EST)

branch: externals/transient
commit b0185a3ad616e668c2041464dd322f791b6e7612
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    transient--read-file-contents: Remove stray variable access
    
    `with-temp-file' takes a FILE argument; `with-temp-buffer' does not.
---
 lisp/transient.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/transient.el b/lisp/transient.el
index 3ce0aaddac..35ad1c0946 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -373,7 +373,7 @@ Only the background color is significant."
 (defun transient--read-file-contents (file)
   (with-demoted-errors "Transient error: %S"
     (and (file-exists-p file)
-         (with-temp-buffer file
+         (with-temp-buffer
            (insert-file-contents file)
            (read (current-buffer))))))
 



reply via email to

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