aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2025-05-31 15:09:42 +0300
committerEli Zaretskii2025-05-31 15:09:42 +0300
commit32d911cddfd6ccdf288247a5d7eaf3d9a977b87c (patch)
tree1058c37ccd898144437122ee2c482e46a454bd96
parentbcc7c4dbbbc1a68a6467c336db2b0910f3362ae0 (diff)
downloademacs-32d911cddfd6ccdf288247a5d7eaf3d9a977b87c.tar.gz
emacs-32d911cddfd6ccdf288247a5d7eaf3d9a977b87c.zip
Remove unused user options in sh-script.el
* lisp/progmodes/sh-script.el (sh-indent-comment) (sh-first-lines-indent, sh-indent-for-else): Remove variables that are no longer obeyed. (sh-var-list): Likewise. (Bug#78592)
-rw-r--r--lisp/progmodes/sh-script.el40
1 files changed, 1 insertions, 39 deletions
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index 5075e9a0afc..d10e9fbfb43 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -1162,17 +1162,6 @@ are conflicts."
1162 (const :tag "Always" t)) 1162 (const :tag "Always" t))
1163 :group 'sh-indentation) 1163 :group 'sh-indentation)
1164 1164
1165(defcustom sh-first-lines-indent 0
1166 "The indentation of the first non-blank non-comment line.
1167Usually 0 meaning first column.
1168Can be set to a number, or to nil which means leave it as is."
1169 :type '(choice
1170 (const :tag "Leave as is" nil)
1171 (integer :tag "Column number"
1172 :menu-tag "Indent to this col (0 means first col)" ))
1173 :group 'sh-indentation)
1174
1175
1176(defcustom sh-basic-offset 4 1165(defcustom sh-basic-offset 4
1177 "The default indentation increment. 1166 "The default indentation increment.
1178This value is used for the `+' and `-' symbols in an indentation variable." 1167This value is used for the `+' and `-' symbols in an indentation variable."
@@ -1180,21 +1169,6 @@ This value is used for the `+' and `-' symbols in an indentation variable."
1180 :safe #'integerp 1169 :safe #'integerp
1181 :group 'sh-indentation) 1170 :group 'sh-indentation)
1182 1171
1183(defcustom sh-indent-comment t
1184 "How a comment line is to be indented.
1185nil means leave it as it is;
1186t means indent it as a normal line, aligning it to previous non-blank
1187 non-comment line;
1188a number means align to that column, e.g. 0 means first column."
1189 :type '(choice
1190 (const :tag "Leave as is." nil)
1191 (const :tag "Indent as a normal line." t)
1192 (integer :menu-tag "Indent to this col (0 means first col)."
1193 :tag "Indent to column number.") )
1194 :version "24.3"
1195 :group 'sh-indentation)
1196
1197
1198(defvar sh-debug nil 1172(defvar sh-debug nil
1199 "Enable lots of debug messages - if function `sh-debug' is enabled.") 1173 "Enable lots of debug messages - if function `sh-debug' is enabled.")
1200 1174
@@ -1220,16 +1194,6 @@ a number means align to that column, e.g. 0 means first column."
1220 (const :tag "/ " :value / 1194 (const :tag "/ " :value /
1221 :menu-tag "/ Indent left half sh-basic-offset"))) 1195 :menu-tag "/ Indent left half sh-basic-offset")))
1222 1196
1223(defcustom sh-indent-for-else 0
1224 "How much to indent an `else' relative to its `if'. Usually 0."
1225 :type `(choice
1226 (integer :menu-tag "A number (positive=>indent right)"
1227 :tag "A number")
1228 (const :tag "--") ;; separator!
1229 ,@ sh-symbol-list
1230 )
1231 :group 'sh-indentation)
1232
1233(defconst sh-number-or-symbol-list 1197(defconst sh-number-or-symbol-list
1234 (append '((integer :menu-tag "A number (positive=>indent right)" 1198 (append '((integer :menu-tag "A number (positive=>indent right)"
1235 :tag "A number") 1199 :tag "A number")
@@ -1380,19 +1344,17 @@ punctuation characters like `-'."
1380 1344
1381(defconst sh-var-list 1345(defconst sh-var-list
1382 '( 1346 '(
1383 sh-basic-offset sh-first-lines-indent sh-indent-after-case 1347 sh-basic-offset sh-indent-after-case
1384 sh-indent-after-do sh-indent-after-done 1348 sh-indent-after-do sh-indent-after-done
1385 sh-indent-after-else 1349 sh-indent-after-else
1386 sh-indent-after-if 1350 sh-indent-after-if
1387 sh-indent-after-loop-construct 1351 sh-indent-after-loop-construct
1388 sh-indent-after-open 1352 sh-indent-after-open
1389 sh-indent-comment
1390 sh-indent-for-case-alt 1353 sh-indent-for-case-alt
1391 sh-indent-for-case-label 1354 sh-indent-for-case-label
1392 sh-indent-for-continuation 1355 sh-indent-for-continuation
1393 sh-indent-for-do 1356 sh-indent-for-do
1394 sh-indent-for-done 1357 sh-indent-for-done
1395 sh-indent-for-else
1396 sh-indent-for-fi 1358 sh-indent-for-fi
1397 sh-indent-for-then 1359 sh-indent-for-then
1398 ) 1360 )