]> git.eshelyaron.com Git - emacs.git/commitdiff
Tweak doc of `analyze-text-conversion` vs `post-self-insert-hook`
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 9 Dec 2023 23:03:48 +0000 (18:03 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 9 Dec 2023 23:03:48 +0000 (18:03 -0500)
* lisp/simple.el (analyze-text-conversion): Fix typo.

* lisp/progmodes/cc-mode.el (c-initialize-cc-mode): Add comment about
`post-text-conversion-hook`.

lisp/progmodes/cc-mode.el
lisp/simple.el

index 227a6af2a6beef0ddde7d3e930eaa0fdd9447ed0..4842de15164b492ee8b5246ac0b12780c7fdcad8 100644 (file)
@@ -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))
 
index fab6b2791892b7c5b9b413547de9fd55f731ac71..d60acf5477a2ef4b620847e749cbd90e9840ccde 100644 (file)
@@ -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.