[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 "~/")
- [elpa] externals/compat updated (88d26596cb -> 9fa3fbab8a), ELPA Syncer, 2022/03/05
- [elpa] externals/compat e4db344ed5 01/27: Add MANUAL, ELPA Syncer, 2022/03/05
- [elpa] externals/compat f475f8027b 08/27: Set compat--generate-function globally when loading compat-tests, ELPA Syncer, 2022/03/05
- [elpa] externals/compat 511801e28f 02/27: Fix typo in README, ELPA Syncer, 2022/03/05
- [elpa] externals/compat 0706a69997 04/27: Avoid using gensym in with-existing-directory,
ELPA Syncer <=
- [elpa] externals/compat 28a6e2db53 06/27: Remove unnecessary whitespace before closing parentheses, ELPA Syncer, 2022/03/05
- [elpa] externals/compat 26ee17853e 07/27: Add bool-vector functions, ELPA Syncer, 2022/03/05
- [elpa] externals/compat efb9ff712a 10/27: Add completion-table-merge and completion-table-with-cache, ELPA Syncer, 2022/03/05
- [elpa] externals/compat 4aca90834f 09/27: Add get-pos-property to missing functions in 24.4, ELPA Syncer, 2022/03/05
- [elpa] externals/compat 3f511afce0 12/27: Add directory-files-recursively, ELPA Syncer, 2022/03/05
- [elpa] externals/compat efa6e171e5 13/27: Document define-advice as not implemented, ELPA Syncer, 2022/03/05
- [elpa] externals/compat 441539ae8b 11/27: Add face-spec-set, ELPA Syncer, 2022/03/05
- [elpa] externals/compat b3b75333b1 14/27: Document generators as not implemented, ELPA Syncer, 2022/03/05
- [elpa] externals/compat c4893fa014 15/27: Document bufferpos-to-filepos as not implemented, ELPA Syncer, 2022/03/05
- [elpa] externals/compat 35072b3d25 22/27: Fix if-let and add tests, ELPA Syncer, 2022/03/05