emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/clojure-ts-mode 552edf7530 054/210: [Fix #331] Indentation


From: ELPA Syncer
Subject: [nongnu] elpa/clojure-ts-mode 552edf7530 054/210: [Fix #331] Indentation in buffers without a final newline
Date: Thu, 31 Oct 2024 18:59:39 -0400 (EDT)

branch: elpa/clojure-ts-mode
commit 552edf753047e606a2b80d51175d95242cebcf8f
Author: Artur Malabarba <bruce.connor.am@gmail.com>
Commit: Artur Malabarba <bruce.connor.am@gmail.com>

    [Fix #331] Indentation in buffers without a final newline
---
 clojure-mode-indentation-test.el | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/clojure-mode-indentation-test.el b/clojure-mode-indentation-test.el
index aa5d6b411f..fe61d26a54 100644
--- a/clojure-mode-indentation-test.el
+++ b/clojure-mode-indentation-test.el
@@ -28,6 +28,16 @@
 (require 'ert)
 (require 's)
 
+(ert-deftest dont-hang-on-eob ()
+  (with-temp-buffer
+    (insert "(let [a b]")
+    (clojure-mode)
+    (goto-char (point-max))
+    (should
+     (with-timeout (2)
+       (newline-and-indent)
+       t))))
+
 (defmacro check-indentation (description before after &optional var-bindings)
   "Declare an ert test for indentation behaviour.
 The test will check that the swift indentation command changes the buffer



reply via email to

[Prev in Thread] Current Thread [Next in Thread]