1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-05-08 06:12:14 -07:00

Refine SGML offset user option types

* lisp/textmodes/sgml-mode.el (sgml-basic-offset)
(sgml-attribute-offset): Allow natural numbers, not arbitrary
integers.
This commit is contained in:
Philip Kaludercic 2026-05-03 17:47:11 +02:00
parent 7a710c3c0e
commit dbc2e073c0
No known key found for this signature in database

View file

@ -47,8 +47,8 @@
(defcustom sgml-basic-offset 2
"Specifies the basic indentation level for `sgml-indent-line'."
:type 'integer
:safe #'integerp)
:type 'natnum
:safe #'natnump)
(defcustom sgml-attribute-offset 0
"Specifies a delta for attribute indentation in `sgml-indent-line'.
@ -65,8 +65,8 @@ When 2, attribute indentation looks like this:
attribute=\"value\">
</element>"
:version "25.1"
:type 'integer
:safe #'integerp)
:type 'natnum
:safe #'natnump)
(defcustom sgml-xml-mode nil
"When non-nil, tag insertion functions will be XML-compliant.