aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/emacs/erlang.el
diff options
context:
space:
mode:
authorSteve Vinoski <[email protected]>2014-01-10 19:57:58 -0500
committerSteve Vinoski <[email protected]>2014-01-10 19:57:58 -0500
commitfbefef025128e65fdfb562b485820dcb1ab04e99 (patch)
tree35ee66c1ede8c1da9c6821395d2b1927a468404f /lib/tools/emacs/erlang.el
parent25237481ccccd3ddfa74582dc267632ad618ba30 (diff)
downloadotp-fbefef025128e65fdfb562b485820dcb1ab04e99.tar.gz
otp-fbefef025128e65fdfb562b485820dcb1ab04e99.tar.bz2
otp-fbefef025128e65fdfb562b485820dcb1ab04e99.zip
fix indentation error from scan-sexp in erlang.el
Fix an indentation error being returned by scan-sexp, and add a new indentation test case for the error.
Diffstat (limited to 'lib/tools/emacs/erlang.el')
-rw-r--r--lib/tools/emacs/erlang.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tools/emacs/erlang.el b/lib/tools/emacs/erlang.el
index c395d22356..3ab73dca86 100644
--- a/lib/tools/emacs/erlang.el
+++ b/lib/tools/emacs/erlang.el
@@ -3038,7 +3038,7 @@ This assumes that the preceding expression is either simple
\(i.e. an atom) or parenthesized."
(save-excursion
(or arg (setq arg 1))
- (forward-sexp (- arg))
+ (ignore-errors (forward-sexp (- arg)))
(let ((col (current-column)))
(skip-chars-backward " \t")
;; Special hack to handle: (note line break)