Subject: bug#34952: files with/out final newline look the same no matter what

From: "Basil L. Contovounesios" <[email-masked]>
Date: Sun, 24 Mar 2019 01:23:20 +0000

"Basil L. Contovounesios" <[email-masked]> writes:

>   (defun my-hi-lock-no-eof-nl ()
>     "Highlight missing trailing EOF newlines."
>     (setf (alist-get "^.+\\'" hi-lock-interactive-patterns nil nil #'equal)
>           '(0 'trailing-whitespace prepend)))

Oops, you probably don't want to use setf+alist-get here.  Better just:

  (add-to-list 'hi-lock-interactive-patterns
               '("^.+\\'" 0 'trailing-whitespace prepend))

-- 
Basil