]> git.eshelyaron.com Git - emacs.git/commit
* lisp/register.el: Use cl-generic
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 26 Dec 2017 03:51:23 +0000 (22:51 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 26 Dec 2017 03:51:23 +0000 (22:51 -0500)
commitcd1d9e79f74f137511d49eb9b0ae7ba750ba6c3c
tree5b67f435a66fc5fceae33b73b1e83d410f555930
parentcf13450db84d507ef1d5d32e56345ecf0bd5c592
* lisp/register.el: Use cl-generic

(registerv): Make it a "normal"struct.
(registerv-make): Declare obsolete.
(register-val-jump-to, register-val-describe, register-val-insert):
New generic functions.
(jump-to-register, describe-register-1, insert-register): Use them.

* lisp/emacs-lisp/cl-generic.el: Prefill a combination of struct+typeof.
(cl--generic-prefill-dispatchers): Allow a list of specializers.
lisp/emacs-lisp/cl-generic.el
lisp/register.el