This avoids running the mode hook (e.g. turning on Flymake) in
each examined file.
(if ,filesym
(with-temp-buffer
(insert-file-contents ,filesym)
- (emacs-lisp-mode)
- ,@body)
+ (with-syntax-table emacs-lisp-mode-syntax-table
+ ,@body))
(save-excursion
(save-restriction
(widen)
(goto-char (point-min))
- ;; Switching major modes is too drastic, so just switch
- ;; temporarily to the Emacs Lisp mode syntax table.
(with-syntax-table emacs-lisp-mode-syntax-table
,@body)))))))