Document :depth in add-hook! docstring

This commit is contained in:
Henrik Lissner 2021-05-16 21:19:30 -04:00
parent bd94ef8f84
commit 060636966f

View file

@ -492,8 +492,8 @@ This macro accepts, in order:
1. The mode(s) or hook(s) to add to. This is either an unquoted mode, an 1. The mode(s) or hook(s) to add to. This is either an unquoted mode, an
unquoted list of modes, a quoted hook variable or a quoted list of hook unquoted list of modes, a quoted hook variable or a quoted list of hook
variables. variables.
2. Optional properties :local and/or :append, which will make the hook 2. Optional properties :local, :append, and/or :depth [N], which will make the
buffer-local or append to the list of hooks (respectively), hook buffer-local or append to the list of hooks (respectively),
3. The function(s) to be added: this can be one function, a quoted list 3. The function(s) to be added: this can be one function, a quoted list
thereof, a list of `defun's, or body forms (implicitly wrapped in a thereof, a list of `defun's, or body forms (implicitly wrapped in a
lambda). lambda).