diff options
author | Philipp Stephani <phst@google.com> | 2017-12-21 18:25:49 +0100 |
---|---|---|
committer | Philipp Stephani <phst@google.com> | 2018-01-07 12:33:53 +0100 |
commit | 151496a4b96430924bc148f85b9c8471d1e132b1 (patch) | |
tree | 27341499efeba63bb6deae9d6dfeed4a748b5879 /test/lisp/emacs-lisp/benchmark-tests.el | |
parent | f04a527a9266690e6486c65d303a897b08fc5732 (diff) | |
download | emacs-151496a4b96430924bc148f85b9c8471d1e132b1.tar.gz emacs-151496a4b96430924bc148f85b9c8471d1e132b1.tar.bz2 emacs-151496a4b96430924bc148f85b9c8471d1e132b1.zip |
Prevent name clashes between CL structures and builtin types
* lisp/emacs-lisp/cl-preloaded.el (cl-struct-define): Don't allow
structures with the same names as builtin types.
(cl--struct-name-p): New helper function.
* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Don't allow structures
with the same names as builtin types.
* test/lisp/emacs-lisp/cl-macs-tests.el (cl-defstruct/builtin-type):
* test/lisp/emacs-lisp/cl-preloaded-tests.el
(cl-struct-define/builtin-type): New unit tests.
* etc/NEWS: Document changed behavior.
Diffstat (limited to 'test/lisp/emacs-lisp/benchmark-tests.el')
0 files changed, 0 insertions, 0 deletions