Subject: bug#17543: 24.3.91; highlight-regexp in find-file-hook doesn't work as expected

From: Glenn Morris <[email-masked]>
Date: Wed, 21 May 2014 19:01:27 -0400

I suggest you use instead:

(defun jsynacek-highlight-trailing-whitespace ()
  (setq-local show-trailing-whitespace t))