branch: externals/compat commit 0706a69997cc4add48c7edba636cfceb8c53deb2 Author: Philip Kaludercic <phil...@posteo.net> Commit: Philip Kaludercic <phil...@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 "~/")