Commit 213d30b3 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

Tweak doc of `analyze-text-conversion` vs `post-self-insert-hook`

* lisp/simple.el (analyze-text-conversion): Fix typo.

* lisp/progmodes/cc-mode.el (c-initialize-cc-mode): Add comment about
`post-text-conversion-hook`.
parent 127de202
Pipeline #27440 failed with stages
in 102 minutes and 55 seconds
......@@ -256,6 +256,9 @@ control). See \"cc-mode.el\" for more info."
(put 'c-initialize-cc-mode initprop c-initialization-ok))))
;; Set up text conversion, for Emacs >= 30.0
;; This is needed here because CC-mode's implementation of
;; electricity does not rely on `post-self-insert-hook' (which is
;; already handled adequately by `analyze-text-conversion').
(when (boundp 'post-text-conversion-hook)
(add-hook 'post-text-conversion-hook #'c-post-text-conversion nil t))
......
......@@ -11181,7 +11181,7 @@ For each insertion:
and delete the adjascent pair if
`electric-pair-delete-adjacent-pairs'.
- Run `post-self-insert-functions' for the last character of
- Run `post-self-insert-hook' for the last character of
any inserted text so that modes such as `electric-pair-mode'
can work.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment