]> git.eshelyaron.com Git - emacs.git/commit
* lisp/subr.el (add-hook): Turn `append` into `depth` (bug#35508)
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 29 May 2019 19:56:14 +0000 (15:56 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 29 May 2019 19:56:14 +0000 (15:56 -0400)
commitfe0cb43fb80db52a79ef898f8de49560cc5cdd90
tree4825956db223eb96d69583e707cbf13a4d280789
parent49cdbb4a35f8d1d2139e8469bffcf33f65679094
* lisp/subr.el (add-hook): Turn `append` into `depth` (bug#35508)

Make it possible to control the relative ordering of functions on hooks by
specifying `depth` in the same was as was possible with `add-function`.

* lisp/electric.el (electric--sort-post-self-insertion-hook):
Delete function.
(electric-indent-mode, electric-layout-mode, electric-quote-mode):
* lisp/elec-pair.el (electric-pair-mode): Use new `depth` arg instead of
electric--sort-post-self-insertion-hook.

* lisp/emacs-lisp/syntax.el (syntax-propertize, syntax-ppss):
Use new `depth` arg to make sure noone accidentally gets added
after syntax-ppss-flush-cache.

* doc/lispref/modes.texi (Setting Hooks): Document new `depth` arg.

* test/lisp/subr-tests.el (subr-tests-add-hook-depth): New test.
doc/lispref/modes.texi
etc/NEWS
lisp/elec-pair.el
lisp/electric.el
lisp/emacs-lisp/syntax.el
lisp/progmodes/cc-mode.el
lisp/subr.el
test/lisp/subr-tests.el