From: Mark Wooding Date: Thu, 12 Sep 2024 12:14:49 +0000 (+0100) Subject: el/dot-emacs (mdw-fontify-ada): Clear away dangerous speculative code. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/c37c6e7151cba43c8d243653be67bc54956f74e6 el/dot-emacs (mdw-fontify-ada): Clear away dangerous speculative code. Don't threaten to set `font-lock-syntactic-face-function' to `nil'. Firstly, that's a terrible value to set to the variable, because it makes fontification not work; and, secondly, the Ada mode's syntactic-face function is fine, actually, and I want to leave it as it is. Fortunately, I never actually committed to this foolishness, but when I (evidently) cloned and hacked this function from the Rust-mode version, I couldn't bring myself to delete that part entirely even though it evidently didn't work. Good riddance! --- diff --git a/el/dot-emacs.el b/el/dot-emacs.el index 911226b..bf827cf 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -4126,9 +4126,7 @@ (defun mdw-fontify-ada () ;; And anything else is punctuation. (list "\\(\\s.\\|\\s(\\|\\s)\\|\\s\\\\|\\s/\\)" - '(0 mdw-punct-face))) - ;font-lock-syntactic-face-function nil - ))) + '(0 mdw-punct-face)))))) (progn (add-hook 'ada-mode-hook 'mdw-misc-mode-config t)