summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/timer-list.el
diff options
context:
space:
mode:
authorPhilipp Stephani <phst@google.com>2017-12-21 18:25:49 +0100
committerPhilipp Stephani <phst@google.com>2018-01-28 19:21:47 +0100
commit9a747b3554515135d5acadfcb5c2b1b8240d8f84 (patch)
tree3e1511ef5cbef7876e44a4f1ef4f2d7550e772db /lisp/emacs-lisp/timer-list.el
parenta718e1593ae7332fafe734f880181e2d8ecc34df (diff)
downloademacs-9a747b3554515135d5acadfcb5c2b1b8240d8f84.tar.gz
emacs-9a747b3554515135d5acadfcb5c2b1b8240d8f84.tar.bz2
emacs-9a747b3554515135d5acadfcb5c2b1b8240d8f84.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--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.
Diffstat (limited to 'lisp/emacs-lisp/timer-list.el')
0 files changed, 0 insertions, 0 deletions