From 35592141cc8951c91a4bd6cc02f73d1ddd35aca4 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Tue, 19 Apr 2022 16:22:37 +0200 Subject: Allow several mode: elements in the local variable section * etc/NEWS (mode): Fall back on outline-mode in older Emacsen. * 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. --- test/lisp/files-resources/file-mode-multiple | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test/lisp/files-resources/file-mode-multiple (limited to 'test/lisp/files-resources/file-mode-multiple') diff --git a/test/lisp/files-resources/file-mode-multiple b/test/lisp/files-resources/file-mode-multiple new file mode 100644 index 00000000000..ac051ccbcbd --- /dev/null +++ b/test/lisp/files-resources/file-mode-multiple @@ -0,0 +1,5 @@ +Local variables: +mode: text +mode: test-mode-undef +mode: outline +end: -- cgit v1.2.3