aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/emacs/erlang.el
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2013-08-19 09:21:41 +0200
committerFredrik Gustafsson <[email protected]>2013-08-19 09:21:41 +0200
commit38f7c7abff39219d94c23d5a8a74bd9a7bd10107 (patch)
tree2476fb70c9ccb919c81089db9b341e568851257b /lib/tools/emacs/erlang.el
parent5d9a587a8fcc164e02f043959338edec2ff69381 (diff)
parent8bfff9e0f80868ad7edc08dfda6c51a2b00966e6 (diff)
downloadotp-38f7c7abff39219d94c23d5a8a74bd9a7bd10107.tar.gz
otp-38f7c7abff39219d94c23d5a8a74bd9a7bd10107.tar.bz2
otp-38f7c7abff39219d94c23d5a8a74bd9a7bd10107.zip
Merge branch 'maint'
Diffstat (limited to 'lib/tools/emacs/erlang.el')
-rw-r--r--lib/tools/emacs/erlang.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/tools/emacs/erlang.el b/lib/tools/emacs/erlang.el
index f3bc95e3e5..3ecda1d285 100644
--- a/lib/tools/emacs/erlang.el
+++ b/lib/tools/emacs/erlang.el
@@ -2813,6 +2813,9 @@ Return nil if inside string, t if in a comment."
(- (+ previous erlang-argument-indent) 1))))
(t
(nth 2 stack-top))))
+ ((= (following-char) ?,)
+ ;; a comma at the start of the line: line up with opening parenthesis.
+ (nth 2 stack-top))
(t
(goto-char (nth 1 stack-top))
(let ((base (cond ((looking-at "[({]\\s *\\($\\|%\\)")