Subject: Re: bug#58282: Distinguishing glasses-mode display

From: uzibalqa <[email-masked]>
Date: Thu, 06 Oct 2022 11:53:35 +0000

Sent with Proton Mail secure email.

------- Original Message -------
On Thursday, October 6th, 2022 at 6:35 AM, Eli Zaretskii <[email-masked]> wrote:

> > Date: Thu, 06 Oct 2022 00:56:05 +0000
> > From: uzibalqa [email-masked]
> > Cc: [email-masked], [email-masked]
> > 
> > > Here's the defcustom of that option from glasses.el:
> > > 
> > > (defcustom glasses-separator "_"
> > > "String to be displayed as a visual separator in identifiers.
> > > It is used both for adding missing separators and for replacing separators
> > > defined by `glasses-original-separator'. If you don't want to add missing separators, set` glasses-separator' to an empty string. If you don't want to
> > > replace existent separators, set `glasses-original-separator' to an empty
> > > string."
> > > :type 'string
> > > :set 'glasses-custom-set
> > > :initialize 'custom-initialize-default)
> > > 
> > > What does the :set attribute tell you?
> > 
> > I could call (glasses-set-overlay-properties)
> 
> 
> That's not really related.
> 
> What the :set attribute says is that you need to call that function
> after changing the value, to "install" the new value.

The function "glasses-custom-set"?  The documentation also states that
"glasses-set-overlay-properties" can also be used.  What would be the 
best code sequence then?