From: Stefan Monnier Date: Sat, 28 Oct 2023 01:17:38 +0000 (-0400) Subject: (c-initialize-cc-mode): Be slightly more explicit X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=eb6708f0ac129f2faee31b1f5517641ffb38fcdf;p=emacs.git (c-initialize-cc-mode): Be slightly more explicit * lisp/progmodes/cc-mode.el (c-initialize-cc-mode): Don't depend on the fact that `post-text-conversion-hook` is "local only". --- diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el index 8dea599ed98..227a6af2a6b 100644 --- a/lisp/progmodes/cc-mode.el +++ b/lisp/progmodes/cc-mode.el @@ -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)))