Files
emacs/lisp/progmodes
Stefan Monnier fe0cb43fb8 * 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.
2019-05-29 15:56:14 -04:00
..
2019-05-26 01:00:16 -07:00
2019-02-13 00:51:15 -08:00
2019-05-15 18:55:27 +02:00
2019-05-26 01:00:16 -07:00
2019-05-15 18:55:27 +02:00
2019-05-15 18:55:27 +02:00
2019-05-26 01:00:16 -07:00
2019-05-26 01:00:16 -07:00
2019-05-26 01:00:16 -07:00
2019-05-26 01:00:16 -07:00
2019-05-26 01:00:16 -07:00
2019-05-26 01:00:16 -07:00
2019-05-26 01:00:16 -07:00
2019-05-26 01:00:16 -07:00
2019-03-08 09:09:40 -08:00
2019-03-18 17:02:29 -07:00
2019-03-18 17:02:29 -07:00
2019-03-10 23:11:21 -07:00
2019-04-24 20:59:25 -04:00
2019-05-26 01:49:00 +03:00