summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorStefan Kangas <stefankangas@gmail.com>2025-03-13 08:13:24 +0100
committerStefan Kangas <stefankangas@gmail.com>2025-03-13 08:14:36 +0100
commitb51fb2e107a4b3b17f5ced188247479cff0a3c92 (patch)
tree7ef762d5cd2dab92d389c1b701526c0c9c12aab7 /test
parentae33aad7f582864a8dbb0fee10f891fd67abdbe3 (diff)
downloademacs-b51fb2e107a4b3b17f5ced188247479cff0a3c92.tar.gz
emacs-b51fb2e107a4b3b17f5ced188247479cff0a3c92.tar.bz2
emacs-b51fb2e107a4b3b17f5ced188247479cff0a3c92.zip
Fix loading follow.el
* lisp/follow.el (follow-mode-prefix-key): Avoid changing follow-mode-map before it is defined. (Bug#76977) * test/lisp/follow-tests.el: New file.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/follow-tests.el32
1 files changed, 32 insertions, 0 deletions
diff --git a/test/lisp/follow-tests.el b/test/lisp/follow-tests.el
new file mode 100644
index 00000000000..29bda77873b
--- /dev/null
+++ b/test/lisp/follow-tests.el
@@ -0,0 +1,32 @@
+;;; follow-tests.el --- Tests for follow.el -*- lexical-binding: t; -*-
+
+;; Copyright (C) 2025 Free Software Foundation, Inc.
+
+;; This file is part of GNU Emacs.
+
+;; GNU Emacs is free software: you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
+
+;; GNU Emacs is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
+
+;;; Code:
+
+(require 'follow)
+
+(ert-deftest follow-tests-do-nothing-test ()
+ ;; Placeholder test to verify that loading `follow' succeeds.
+ ;; Suppresses an ERT warning due to the absence of tests.
+ ;;
+ ;; Remove this test if real tests are added later.
+ )
+
+(provide 'follow-tests)
+;;; follow-tests.el ends here