• Stefan Monnier's avatar
    * lisp/subr.el (add-hook): Turn `append` into `depth` (bug#35508) · fe0cb43f
    Stefan Monnier authored
    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.
    fe0cb43f
Name
Last commit
Last update
..
ChangeLog.1 Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
abbrevs.texi Loading commit data...
anti.texi Loading commit data...
back.texi Loading commit data...
backups.texi Loading commit data...
book-spine.texi Loading commit data...
buffers.texi Loading commit data...
commands.texi Loading commit data...
compile.texi Loading commit data...
control.texi Loading commit data...
customize.texi Loading commit data...
debugging.texi Loading commit data...
display.texi Loading commit data...
doclicense.texi Loading commit data...
edebug.texi Loading commit data...
elisp.texi Loading commit data...
errors.texi Loading commit data...
eval.texi Loading commit data...
files.texi Loading commit data...
frames.texi Loading commit data...
functions.texi Loading commit data...
gpl.texi Loading commit data...
hash.texi Loading commit data...
help.texi Loading commit data...
hooks.texi Loading commit data...
index.texi Loading commit data...
internals.texi Loading commit data...
intro.texi Loading commit data...
keymaps.texi Loading commit data...
lay-flat.texi Loading commit data...
lists.texi Loading commit data...
loading.texi Loading commit data...
macros.texi Loading commit data...
maps.texi Loading commit data...
markers.texi Loading commit data...
minibuf.texi Loading commit data...
modes.texi Loading commit data...
nonascii.texi Loading commit data...
numbers.texi Loading commit data...
objects.texi Loading commit data...
os.texi Loading commit data...
package.texi Loading commit data...
positions.texi Loading commit data...
processes.texi Loading commit data...
records.texi Loading commit data...
searching.texi Loading commit data...
sequences.texi Loading commit data...
spellfile Loading commit data...
streams.texi Loading commit data...
strings.texi Loading commit data...
symbols.texi Loading commit data...
syntax.texi Loading commit data...
text.texi Loading commit data...
threads.texi Loading commit data...
tips.texi Loading commit data...
two-volume-cross-refs.txt Loading commit data...
two-volume.make Loading commit data...
variables.texi Loading commit data...
windows.texi Loading commit data...