diff options
author | Fredrik Gustafsson <[email protected]> | 2012-08-27 13:34:11 +0200 |
---|---|---|
committer | Fredrik Gustafsson <[email protected]> | 2012-08-27 13:34:11 +0200 |
commit | 21ae4a2f201cfc921edb422b1a57bd3983dceadd (patch) | |
tree | 3e3093f68be2c2bb563f36a3f5d5f4955d7260f6 | |
parent | 81a0882fa92746907e69dea2f920b6c43292b663 (diff) | |
parent | 46dea84b7af49d5a4d20fce06b5c10bdccbe19d5 (diff) | |
download | otp-21ae4a2f201cfc921edb422b1a57bd3983dceadd.tar.gz otp-21ae4a2f201cfc921edb422b1a57bd3983dceadd.tar.bz2 otp-21ae4a2f201cfc921edb422b1a57bd3983dceadd.zip |
Merge branch 'maint'
-rw-r--r-- | lib/tools/emacs/Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/tools/emacs/Makefile b/lib/tools/emacs/Makefile index e5ed56b412..69946be24a 100644 --- a/lib/tools/emacs/Makefile +++ b/lib/tools/emacs/Makefile @@ -86,3 +86,19 @@ release_docs_spec: docs $(INSTALL_DATA) $(MAN_FILES) "$(RELEASE_PATH)/man/man3" endif endif + +EMACS ?= emacs + +test_indentation: + @rm -f test.erl + @rm -f test_indent.el + @echo '(load "erlang-start")' >> test_indent.el + @echo '(find-file "test.erl.orig")' >> test_indent.el + @echo "(require 'cl) ; required with Emacs < 23 for ignore-errors" >> test_indent.el + @echo '(erlang-mode)' >> test_indent.el + @echo '(toggle-debug-on-error)' >> test_indent.el + @echo '(erlang-indent-current-buffer)' >> test_indent.el + @echo '(write-file "test.erl")' >> test_indent.el + $(EMACS) --batch -Q -L . -l test_indent.el + diff -u test.erl.indented test.erl + @echo "No differences between expected and actual indentation" |