emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master f17bdee79b1: sgml-mode.el: Cosmetic fixes


From: Eli Zaretskii
Subject: Re: master f17bdee79b1: sgml-mode.el: Cosmetic fixes
Date: Mon, 17 Jul 2023 16:33:59 +0300

> From: Robert Pluim <rpluim@gmail.com>
> Cc: emacs-devel@gnu.org
> Date: Mon, 17 Jul 2023 15:17:36 +0200
> 
> >>>>> On Mon, 17 Jul 2023 08:57:03 -0400, Stefan Monnier 
> >>>>> <monnier@iro.umontreal.ca> said:
> 
>     Stefan> diff --git a/lisp/textmodes/sgml-mode.el 
> b/lisp/textmodes/sgml-mode.el
>     Stefan> index b4f5ebf5cd0..d80cdc34775 100644
>     Stefan> --- a/lisp/textmodes/sgml-mode.el
>     Stefan> +++ b/lisp/textmodes/sgml-mode.el
>     Stefan> @@ -66,7 +66,7 @@ When 2, attribute indentation looks like this:
>     Stefan> </element>"
>     Stefan> :version "25.1"
>     Stefan> :type 'integer
>     Stefan> -  :safe 'integerp)
>     Stefan> +  :safe #'integerp)
>     >> 
>     >> Isnʼt that already enforced by the ':typeʼ keyword?
> 
>     Stefan> No.
> 
> If I remove the ':safe' spec, and try to set the value to a string,
> M-x customize refuses to apply it, so now I wonder when this failure
> to enforce occurs.

The :safe property is for using the option in file-local variables,
not for customizing it interactively.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]