File 0174-emacs-Fix-try-indentation.patch of Package erlang
From 6e802c8d08442a96ea3b12786bb5c9a6d3451e20 Mon Sep 17 00:00:00 2001
From: Dan Gudmundsson <dgud@erlang.org>
Date: Thu, 13 Feb 2020 13:21:42 +0100
Subject: [PATCH 2/2] emacs: Fix try indentation
try Expr of
Pattern -> ok
...
'Pattern' indented wrong when non default erlang-indent-level was set.
---
lib/tools/emacs/erlang.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/tools/emacs/erlang.el b/lib/tools/emacs/erlang.el
index 16329aeb6f..dafb9d56ac 100644
--- a/lib/tools/emacs/erlang.el
+++ b/lib/tools/emacs/erlang.el
@@ -3035,9 +3035,9 @@ Return nil if inside string, t if in a comment."
(save-excursion
(goto-char (nth 1 stack-top))
(if (and erlang-icr-indent
- (looking-at "\\(if\\|case\\|receive\\)[^_a-zA-Z0-9]"))
+ (looking-at "\\(if\\|case\\|receive\\|try\\)[^_a-zA-Z0-9]"))
(+ (nth 2 stack-top) erlang-icr-indent)
- (if (looking-at "\\(case\\|receive\\)[^_a-zA-Z0-9]")
+ (if (looking-at "\\(case\\|receive\\|try\\)[^_a-zA-Z0-9]")
(+ (nth 2 stack-top) erlang-indent-level)
(skip-chars-forward "a-z")
(skip-chars-forward " \t")
--
2.16.4