1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-24 06:20:43 -08:00
emacs/test/lisp/emacs-lisp
Philipp Stephani 9a747b3554 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--typeof-types, cl--all-builtin-types): Move from cl-generic.el and
rename.
(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.

* lisp/emacs-lisp/cl-generic.el (cl--generic-typeof-generalizer)
(cl-generic-generalizers): Adapt to name change.

* 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.
2018-01-28 19:21:47 +01:00
..
edebug-resources Update copyright year to 2018 2018-01-01 00:57:59 -08:00
eieio-tests Merge from origin/emacs-26 2018-01-15 13:53:40 -08:00
faceup-resources Update copyright year to 2018 2018-01-01 01:25:56 -08:00
faceup-tests Update copyright year to 2018 2018-01-01 01:25:56 -08:00
package-resources Don't use IP 0.0.0.0 for package test server (Bug#22582) 2017-02-25 12:56:09 -05:00
shadow-resources Handle case-insensitive filenames for load-path shadows (Bug#5845) 2018-01-18 16:26:52 -05:00
testcover-resources Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
benchmark-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
bytecomp-tests.el ; Adapt a unit test to a recent change 2018-01-07 16:47:17 +01:00
checkdoc-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
cl-extra-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
cl-generic-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
cl-lib-tests.el Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
cl-macs-tests.el Prevent name clashes between CL structures and builtin types 2018-01-28 19:21:47 +01:00
cl-preloaded-tests.el Prevent name clashes between CL structures and builtin types 2018-01-28 19:21:47 +01:00
cl-print-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
cl-seq-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
derived-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
edebug-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ert-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ert-x-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
generator-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
gv-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
let-alist-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
lisp-mode-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
lisp-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
map-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
nadvice-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
package-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
pcase-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
pp-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
regexp-opt-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ring-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
rmc-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
rx-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
seq-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
shadow-tests.el ; Spelling fix 2018-01-22 08:42:29 -08:00
subr-x-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
tabulated-list-test.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
testcover-tests.el Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
thunk-tests.el Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
timer-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00