]> git.eshelyaron.com Git - emacs.git/commitdiff
(c-initialize-cc-mode): Be slightly more explicit
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 28 Oct 2023 01:17:38 +0000 (21:17 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 28 Oct 2023 01:17:38 +0000 (21:17 -0400)
* lisp/progmodes/cc-mode.el (c-initialize-cc-mode): Don't depend on
the fact that `post-text-conversion-hook` is "local only".

lisp/progmodes/cc-mode.el

index 8dea599ed98575aec256123de4030f7021cf1786..227a6af2a6beef0ddde7d3e930eaa0fdd9447ed0 100644 (file)
@@ -257,7 +257,7 @@ control).  See \"cc-mode.el\" for more info."
 
   ;; Set up text conversion, for Emacs >= 30.0
   (when (boundp 'post-text-conversion-hook)
-    (add-hook 'post-text-conversion-hook #'c-post-text-conversion))
+    (add-hook 'post-text-conversion-hook #'c-post-text-conversion nil t))
 
   (unless new-style-init
     (c-init-language-vars-for 'c-mode)))