* lisp/files.el (hack-local-variables--find-variables): Use the
final mode: line (which is the same as having several mode: bits
in the header line.
;; Note this is a no-op if enable-local-variables is nil.
(hack-dir-local-variables))
(let ((result (append (hack-local-variables--find-variables handle-mode)
- (hack-local-variables-prop-line))))
+ (hack-local-variables-prop-line handle-mode))))
(if (and enable-local-variables
(not (inhibit-local-variables-p)))
(progn
--- /dev/null
+-*- mode: notexist; mode: text -*-
(find-file (ert-resource-file "file-mode-multiple"))
(should (eq major-mode 'outline-mode)))
+(ert-deftest files-test-set-mode-prop-line ()
+ (find-file (ert-resource-file "file-mode-prop-line"))
+ (should (eq major-mode 'text-mode)))
+
(provide 'files-tests)
;;; files-tests.el ends here