File 1262-emacs-fix-erlang-icr-indent-definition.patch of Package erlang

From 1ea1cba4467521d156bcaa34b1313cf8112c510d Mon Sep 17 00:00:00 2001
From: Dmitri Vereshchagin <dmitri.vereshchagin@gmail.com>
Date: Sun, 23 Mar 2025 21:35:49 +0300
Subject: [PATCH] emacs: fix `erlang-icr-indent' definition

As with `erlang-argument-indent', the value should be either nil
or an integer.
---
 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 7493c7e6a4..cf10ada6d1 100644
--- a/lib/tools/emacs/erlang.el
+++ b/lib/tools/emacs/erlang.el
@@ -498,8 +498,8 @@ To activate the workaround, place the following in your `~/.emacs' file:
 nil means keeping default behavior.  When non-nil, indent to the column of
 if/case/receive."
   :group 'erlang
-  :type 'boolean
-  :safe 'booleanp)
+  :type '(restricted-sexp :match-alternatives (integerp 'nil))
+  :safe (lambda (val) (or (eq val nil) (integerp val))))
 
 (defcustom erlang-indent-guard 2
   "Indentation of Erlang guards."
-- 
2.43.0

openSUSE Build Service is sponsored by