From beff6ec9149cc4954a41bcb5cbf4d02c8af8103f Mon Sep 17 00:00:00 2001 From: Maximilian Wolff Date: Fri, 20 Dec 2019 10:24:17 +0100 Subject: [PATCH] Replace lexical-let with normal let An older PR reintroduced a dependency on lexical let. There is no proper replacement for this in cl-lib therefore I have changed it to a normal let which works the same way. In future we should think of making the entire file lexically bound and only mark the exceptions to be dynamically bound. --- layers/+lang/rust/funcs.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/layers/+lang/rust/funcs.el b/layers/+lang/rust/funcs.el index 807360573..bd6932143 100644 --- a/layers/+lang/rust/funcs.el +++ b/layers/+lang/rust/funcs.el @@ -89,11 +89,11 @@ open a junk Rust file, type in some code and quickly run it. If you want to use third-party crates, create a new project using `cargo-process-new' and run using `cargo-process-run'." (interactive) - (lexical-let ((input-file-name (buffer-file-name)) - (output-file-name (concat temporary-file-directory - (file-name-nondirectory (buffer-file-name)) - "-" - (md5 (buffer-file-name))))) + (let ((input-file-name (buffer-file-name)) + (output-file-name (concat temporary-file-directory + (file-name-nondirectory (buffer-file-name)) + "-" + (md5 (buffer-file-name))))) (add-to-list 'compilation-finish-functions (lambda (buffer status) (if (string-match "finished" status)