]> git.eshelyaron.com Git - emacs.git/commitdiff
; Test for Bug#32014
authorNoam Postavsky <npostavs@gmail.com>
Sat, 30 Jun 2018 00:15:10 +0000 (20:15 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Mon, 9 Jul 2018 23:39:03 +0000 (19:39 -0400)
* test/lisp/emacs-lisp/lisp-mode-tests.el
(lisp-indent-with-read-only-field): New test.

test/lisp/emacs-lisp/lisp-mode-tests.el

index 0b5b0a401981f0fa1ea8b3f602c78ea4aeb9e53a..2ac0e5ce1d43a261043b0c99d8f4177005edd83e 100644 (file)
@@ -224,6 +224,17 @@ Expected initialization file: `%s'\"
       (comment-indent)
       (should (equal (buffer-string) correct)))))
 
+(ert-deftest lisp-indent-with-read-only-field ()
+  "Test indentation on line with read-only field (Bug#32014)."
+  :expected-result :failed
+  (with-temp-buffer
+    (insert (propertize "prompt> " 'field 'output 'read-only t
+                        'rear-nonsticky t 'front-sticky '(read-only)))
+    (insert " foo")
+    (lisp-indent-line)
+    (should (equal (buffer-string) "prompt> foo"))))
+
+
 
 (provide 'lisp-mode-tests)
 ;;; lisp-mode-tests.el ends here