1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-29 08:31:35 -08:00
emacs/doc
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
..
emacs Implement and document XDG-style startup files under ~/.config. 2019-05-25 13:23:46 -04:00
lispintro * doc/lispintro/emacs-lisp-intro.texi: Remove euphemism. 2019-05-19 08:29:32 -07:00
lispref * lisp/subr.el (add-hook): Turn append into depth (bug#35508) 2019-05-29 15:56:14 -04:00
man Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
misc * doc/misc/cl.texi (Macro Bindings): Add a detail 2019-05-28 21:46:09 +02:00