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

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

[elpa] externals/compat 0706a69997 04/27: Avoid using gensym in with-exi


From: ELPA Syncer
Subject: [elpa] externals/compat 0706a69997 04/27: Avoid using gensym in with-existing-directory
Date: Sat, 5 Mar 2022 04:57:27 -0500 (EST)

branch: externals/compat
commit 0706a69997cc4add48c7edba636cfceb8c53deb2
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>

    Avoid using gensym in with-existing-directory
    
    There should be no difference in behaviour when it comes to the result
    of the macro-expansion.
---
 compat-28.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/compat-28.el b/compat-28.el
index f2a27b8758..c81eb04a5e 100644
--- a/compat-28.el
+++ b/compat-28.el
@@ -312,12 +312,11 @@ Also see `local-variable-p'."
       (void-variable nil (throw 'fail nil)))
     t))
 
-(declare-function gensym nil (&optional prefix))
 (compat-defmacro with-existing-directory (&rest body)
   "Execute BODY with `default-directory' bound to an existing directory.
 If `default-directory' is already an existing directory, it's not changed."
   (declare (indent 0) (debug t))
-  (let ((quit (gensym)))
+  (let ((quit (make-symbol "with-existing-directory-quit")))
     `(catch ',quit
        (dolist (dir (list default-directory
                           (expand-file-name "~/")



reply via email to

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