mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Move gensym to core Elisp
* doc/lispref/symbols.texi (Creating Symbols): Mention gensym right after make-symbol. * etc/NEWS: Mention. * lisp/emacs-lisp/cl-macs.el (cl--gensym-counter): Alias to gensym-counter. (cl-gensym): Alias to gensym. * lisp/emacs-lisp/cl.el: Remove gensym from list of aliases. * lisp/emacs-lisp/edebug.el (edebug-make-enter-wrapper): * lisp/emacs-lisp/ert-x.el (ert-with-message-capture): (ert--expand-should-1, ert--expand-should): (ert--should-error-handle-error): * lisp/emacs-lisp/generator.el (cps--gensym): * lisp/emacs-lisp/gv.el (setf): * lisp/emacs-lisp/inline.el (inline--do-letlisteval): * lisp/emacs-lisp/pcase.el (pcase--make-docstring, pcase-dolist): (pcase--funcall, pcase--u1): Use gensym. * lisp/subr.el (gensym-counter): New variable. (gensym): New function, assimilated from cl-lib.
This commit is contained in:
parent
2ae46b4c0d
commit
35c893ddaf
12 changed files with 45 additions and 32 deletions
|
|
@ -86,10 +86,7 @@
|
|||
(defvar cps--cleanup-function nil)
|
||||
|
||||
(defmacro cps--gensym (fmt &rest args)
|
||||
;; Change this function to use `cl-gensym' if you want the generated
|
||||
;; code to be easier to read and debug.
|
||||
;; (cl-gensym (apply #'format fmt args))
|
||||
`(progn (ignore ,@args) (make-symbol ,fmt)))
|
||||
`(gensym (format ,fmt ,@args)))
|
||||
|
||||
(defvar cps--dynamic-wrappers '(identity)
|
||||
"List of transformer functions to apply to atomic forms we
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue