chiark / gitweb /
el/dot-emacs (mdw-fontify-ada): Clear away dangerous speculative code.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 12 Sep 2024 12:14:49 +0000 (13:14 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 28 Sep 2024 10:04:29 +0000 (11:04 +0100)
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!

el/dot-emacs.el

index 911226b4513df7fae6d540285e350c095563325e..bf827cf5f929677677d0e68e0014e2cfe2d99016 100644 (file)
@@ -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)