aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorTom Tromey2018-07-03 22:13:27 -0600
committerTom Tromey2018-07-03 22:13:27 -0600
commit38ea8e147add0b386737df4145d7ee0fc841fe55 (patch)
tree864a27c77ffc79f721ce9335bd1444eed87d92b6 /test
parentf9f0c993845cc51517cef6ed06b0cabe102dcd9f (diff)
downloademacs-38ea8e147add0b386737df4145d7ee0fc841fe55.tar.gz
emacs-38ea8e147add0b386737df4145d7ee0fc841fe55.zip
Fix Tcl indentation in a namespace
Fixes bug#32035 * lisp/progmodes/tcl.el (tcl-proc-list): Add "namespace". * test/lisp/progmodes/tcl-tests.el (tcl-mode-namespace-indent): New test.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/progmodes/tcl-tests.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/lisp/progmodes/tcl-tests.el b/test/lisp/progmodes/tcl-tests.el
index 55211b70be2..061488636d0 100644
--- a/test/lisp/progmodes/tcl-tests.el
+++ b/test/lisp/progmodes/tcl-tests.el
@@ -63,6 +63,15 @@
63 (insert "proc inthis {} {\n # nothing\n") 63 (insert "proc inthis {} {\n # nothing\n")
64 (should (equal "inthis" (add-log-current-defun))))) 64 (should (equal "inthis" (add-log-current-defun)))))
65 65
66;; From bug#32035
67(ert-deftest tcl-mode-namespace-indent ()
68 (with-temp-buffer
69 (tcl-mode)
70 (let ((text "namespace eval Foo {\n variable foo\n}\n"))
71 (insert text)
72 (indent-region (point-min) (point-max))
73 (should (equal (buffer-string) text)))))
74
66(provide 'tcl-tests) 75(provide 'tcl-tests)
67 76
68;;; tcl-tests.el ends here 77;;; tcl-tests.el ends here