]> git.eshelyaron.com Git - emacs.git/commitdiff
* test/lisp/files-tests.el (sh-shell): Move down declaration.
authorMichael Albinus <michael.albinus@gmx.de>
Sun, 22 Dec 2024 09:20:15 +0000 (10:20 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 23 Dec 2024 15:20:21 +0000 (16:20 +0100)
(cherry picked from commit fb7bf20a9c129a97ceeabad00523ecafaa58697c)

test/lisp/files-tests.el

index 78fc139025c15affe11f1f57fc93a6ec39506dec..9dbf42ee603e92c968675e866e21081ea4831616 100644 (file)
@@ -1659,8 +1659,6 @@ The door of all subtleties!
   (should (equal (file-name-base "foo") "foo"))
   (should (equal (file-name-base "foo/bar") "bar")))
 
-(defvar sh-shell)
-
 (defun files-tests--check-mode (filename)
   "Return the major mode found in `auto-mode-alist' for FILENAME."
   (set-auto-mode--find-matching-alist-entry
@@ -1682,6 +1680,8 @@ The door of all subtleties!
   (should-not (eq (files-tests--check-mode "gdbinit.5") #'gdb-script-mode))
   (should-not (eq (files-tests--check-mode ".gdbinit.py.in") #'gdb-script-mode)))
 
+(defvar sh-shell)
+
 (defun files-tests--check-shebang (shebang expected-mode &optional expected-dialect)
   "Assert that mode for SHEBANG derives from EXPECTED-MODE.