summaryrefslogtreecommitdiff
path: root/test/lisp/progmodes/elisp-mode-tests.el
diff options
context:
space:
mode:
authorakater <nuclearspace@gmail.com>2021-10-01 13:25:42 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2021-10-01 13:25:42 +0200
commit5988d6fa2610097f91d822df813cecbdeed26185 (patch)
tree3505ae4149046bbadad21a78173d28b7ec881de5 /test/lisp/progmodes/elisp-mode-tests.el
parentefd239c1475de43806a739702583316cfb297003 (diff)
downloademacs-5988d6fa2610097f91d822df813cecbdeed26185.tar.gz
Restore the flet indentation fixes
* lisp/emacs-lisp/lisp-mode.el (lisp--local-defform-body-p): New function. (lisp-indent-function): Use it to fix cl-flet indentation.
Diffstat (limited to 'test/lisp/progmodes/elisp-mode-tests.el')
-rw-r--r--test/lisp/progmodes/elisp-mode-tests.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/lisp/progmodes/elisp-mode-tests.el b/test/lisp/progmodes/elisp-mode-tests.el
index 3c76f866502..8ce3c1e0935 100644
--- a/test/lisp/progmodes/elisp-mode-tests.el
+++ b/test/lisp/progmodes/elisp-mode-tests.el
@@ -1085,7 +1085,11 @@ evaluation of BODY."
(should (unintern "f-test4---"))))
(ert-deftest test-indentation ()
- (ert-test-erts-file (ert-resource-file "elisp-indents.erts")))
+ (ert-test-erts-file (ert-resource-file "elisp-indents.erts"))
+ (ert-test-erts-file (ert-resource-file "flet.erts")
+ (lambda ()
+ (emacs-lisp-mode)
+ (indent-region (point-min) (point-max)))))
(provide 'elisp-mode-tests)
;;; elisp-mode-tests.el ends here