]> git.eshelyaron.com Git - emacs.git/commit
nadvice.el: Auto-generate the doc describing the "how" arg
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 26 Apr 2022 21:09:03 +0000 (17:09 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 26 Apr 2022 21:36:13 +0000 (17:36 -0400)
commit92e49944a39ce6372a80430f65913c4c8b531677
tree7f4569a727a2f71c75c555d42d360e87599ed306
parentf30625943edefbd88ebf84acbc254ed88db27beb
nadvice.el: Auto-generate the doc describing the "how" arg

* lisp/emacs-lisp/nadvice.el (advice--make-how-alist): New macro.
(advice--how-alist): Use it.
(nadvice--make-docstring): New function.
(add-function, advice-add): Use it to auto-generate the table
describing the accepted values for `how`.
lisp/emacs-lisp/nadvice.el