GNU bug report logs -
#58282
Distinguishing glasses-mode display
Previous Next
Reported by: uzibalqa <uzibalqa <at> proton.me>
Date: Tue, 4 Oct 2022 03:39:01 UTC
Severity: normal
Tags: notabug
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 58282 in the body.
You can then email your comments to 58282 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#58282
; Package
emacs
.
(Tue, 04 Oct 2022 03:39:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
uzibalqa <uzibalqa <at> proton.me>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 04 Oct 2022 03:39:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
I am using "glasses-mode", but It is difficult to distinguish which words get changed. For instance, if one has a mixture of CamelCase, Under_scores one would not know which is modified and which is original. Particularly problematic when one is modifying the code.
Could "glasses-mode" be made in such way as to indicate that "glasses-mode" changed its display, by default.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#58282
; Package
emacs
.
(Tue, 04 Oct 2022 07:19:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 58282 <at> debbugs.gnu.org (full text, mbox):
> Date: Tue, 04 Oct 2022 03:36:34 +0000
> From: uzibalqa via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>
>
> I am using "glasses-mode", but It is difficult to distinguish which words get changed. For instance, if one has a mixture of CamelCase, Under_scores one would not know which is modified and which is original. Particularly problematic when one is modifying the code.
>
> Could "glasses-mode" be made in such way as to indicate that "glasses-mode" changed its display, by default.
I think we have this already: customize glasses-face to some distinct
face, like 'bold'. Then the capital letters of identifiers where
glasses.el inserted underscores will be shown in bold, and you can
visually distinguish them from the original underscores.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#58282
; Package
emacs
.
(Tue, 04 Oct 2022 11:02:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 58282 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> I think we have this already: customize glasses-face to some distinct
> face, like 'bold'. Then the capital letters of identifiers where
> glasses.el inserted underscores will be shown in bold, and you can
> visually distinguish them from the original underscores.
Also, I think the idea with this mode is to use it in languages where
camelCase is the accepted way to write things -- and they never mix
camelCase with camel_Case, so changing the defaults here would also be
inappropriate.
So I don't think there's anything here to be fixed, and I'm closing this
bug report.
Added tag(s) notabug.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Tue, 04 Oct 2022 11:02:03 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
58282 <at> debbugs.gnu.org and uzibalqa <uzibalqa <at> proton.me>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Tue, 04 Oct 2022 11:02:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#58282
; Package
emacs
.
(Tue, 04 Oct 2022 11:48:02 GMT)
Full text and
rfc822 format available.
Message #18 received at 58282 <at> debbugs.gnu.org (full text, mbox):
> Sent: Tuesday, October 04, 2022 at 7:18 PM
> From: "Eli Zaretskii" <eliz <at> gnu.org>
> To: "uzibalqa" <uzibalqa <at> proton.me>
> Cc: 58282 <at> debbugs.gnu.org
> Subject: bug#58282: Distinguishing glasses-mode display
>
> > Date: Tue, 04 Oct 2022 03:36:34 +0000
> > From: uzibalqa via "Bug reports for GNU Emacs,
> > the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> >
> >
> > I am using "glasses-mode", but It is difficult to distinguish which words get changed. For instance, if one has a mixture of CamelCase, Under_scores one would not know which is modified and which is original. Particularly problematic when one is modifying the code.
> >
> > Could "glasses-mode" be made in such way as to indicate that "glasses-mode" changed its display, by default.
>
> I think we have this already: customize glasses-face to some distinct
> face, like 'bold'. Then the capital letters of identifiers where
> glasses.el inserted underscores will be shown in bold, and you can
> visually distinguish them from the original underscores.
Because I use bold font the default does not work for me. I want to
make the changes in my init file. How can I change the foreground
and background colour of the glasses matches? Is it possible for users
to use a UTF8 Code as separator, and if so, how can this be done?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#58282
; Package
emacs
.
(Tue, 04 Oct 2022 12:28:02 GMT)
Full text and
rfc822 format available.
Message #21 received at 58282 <at> debbugs.gnu.org (full text, mbox):
------- Original Message -------
On Tuesday, October 4th, 2022 at 11:47 AM, Christopher Dimech <dimech <at> gmx.com> wrote:
> > Sent: Tuesday, October 04, 2022 at 7:18 PM
> > From: "Eli Zaretskii" eliz <at> gnu.org
> > To: "uzibalqa" uzibalqa <at> proton.me
> > Cc: 58282 <at> debbugs.gnu.org
> > Subject: bug#58282: Distinguishing glasses-mode display
> >
> > > Date: Tue, 04 Oct 2022 03:36:34 +0000
> > > From: uzibalqa via "Bug reports for GNU Emacs,
> > > the Swiss army knife of text editors" bug-gnu-emacs <at> gnu.org
> > >
> > > I am using "glasses-mode", but It is difficult to distinguish which words get changed. For instance, if one has a mixture of CamelCase, Under_scores one would not know which is modified and which is original. Particularly problematic when one is modifying the code.
> > >
> > > Could "glasses-mode" be made in such way as to indicate that "glasses-mode" changed its display, by default.
> >
> > I think we have this already: customize glasses-face to some distinct
> > face, like 'bold'. Then the capital letters of identifiers where
> > glasses.el inserted underscores will be shown in bold, and you can
> > visually distinguish them from the original underscores.
>
>
> Because I use bold font the default does not work for me. I want to
> make the changes in my init file. How can I change the foreground
> and background colour of the glasses matches? Is it possible for users
> to use a UTF8 Code as separator, and if so, how can this be done?
Being able to use unicode for separator would be valuable as the typeface
can remain the same, whilst the separator would clearly indicate that the
symbol used is not part of the original code.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#58282
; Package
emacs
.
(Tue, 04 Oct 2022 12:44:02 GMT)
Full text and
rfc822 format available.
Message #24 received at 58282 <at> debbugs.gnu.org (full text, mbox):
> From: Christopher Dimech <dimech <at> gmx.com>
> Cc: uzibalqa <uzibalqa <at> proton.me>, 58282 <at> debbugs.gnu.org
> Date: Tue, 4 Oct 2022 13:47:33 +0200
>
> > I think we have this already: customize glasses-face to some distinct
> > face, like 'bold'. Then the capital letters of identifiers where
> > glasses.el inserted underscores will be shown in bold, and you can
> > visually distinguish them from the original underscores.
>
> Because I use bold font the default does not work for me.
??? What default? The default is that glasses-face is just nil, so no
special face is put on any parts of the identifiers. 'bold' was just
an example of a non-default face; you can use any face there.
> I want to make the changes in my init file. How can I change the
> foreground and background colour of the glasses matches?
You can't. This face is not about changing the matches, it is about
changing the appearance of the capital letters in identifiers where
glasses-mode adds the separator (which is underscore _ by default)
> Is it possible for users to use a UTF8 Code as separator, and if so,
> how can this be done?
Customize the variable glasses-separator. (This has nothing to do
with the original bug report, though.)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#58282
; Package
emacs
.
(Tue, 04 Oct 2022 14:47:02 GMT)
Full text and
rfc822 format available.
Message #27 received at 58282 <at> debbugs.gnu.org (full text, mbox):
------- Original Message -------
On Tuesday, October 4th, 2022 at 12:43 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
> > From: Christopher Dimech dimech <at> gmx.com
> > Cc: uzibalqa uzibalqa <at> proton.me, 58282 <at> debbugs.gnu.org
> > Date: Tue, 4 Oct 2022 13:47:33 +0200
> >
> > > I think we have this already: customize glasses-face to some distinct
> > > face, like 'bold'. Then the capital letters of identifiers where
> > > glasses.el inserted underscores will be shown in bold, and you can
> > > visually distinguish them from the original underscores.
> >
> > Because I use bold font the default does not work for me.
>
>
> ??? What default? The default is that glasses-face is just nil, so no
> special face is put on any parts of the identifiers. 'bold' was just
> an example of a non-default face; you can use any face there.
>
> > I want to make the changes in my init file. How can I change the
> > foreground and background colour of the glasses matches?
>
>
> You can't. This face is not about changing the matches, it is about
> changing the appearance of the capital letters in identifiers where
> glasses-mode adds the separator (which is underscore _ by default)
>
> > Is it possible for users to use a UTF8 Code as separator, and if so,
> > how can this be done?
>
>
> Customize the variable glasses-separator. (This has nothing to do
> with the original bug report, though.)
How can I change the colour of the capital letters or use utf8 using
elisp commands?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#58282
; Package
emacs
.
(Tue, 04 Oct 2022 14:53:01 GMT)
Full text and
rfc822 format available.
Message #30 received at 58282 <at> debbugs.gnu.org (full text, mbox):
> Sent: Wednesday, October 05, 2022 at 2:46 AM
> From: "uzibalqa" <uzibalqa <at> proton.me>
> To: "Eli Zaretskii" <eliz <at> gnu.org>
> Cc: "Christopher Dimech" <dimech <at> gmx.com>, 58282 <at> debbugs.gnu.org
> Subject: Re: bug#58282: Distinguishing glasses-mode display
>
> ------- Original Message -------
> On Tuesday, October 4th, 2022 at 12:43 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>
>
> > > From: Christopher Dimech dimech <at> gmx.com
> > > Cc: uzibalqa uzibalqa <at> proton.me, 58282 <at> debbugs.gnu.org
> > > Date: Tue, 4 Oct 2022 13:47:33 +0200
> > >
> > > > I think we have this already: customize glasses-face to some distinct
> > > > face, like 'bold'. Then the capital letters of identifiers where
> > > > glasses.el inserted underscores will be shown in bold, and you can
> > > > visually distinguish them from the original underscores.
> > >
> > > Because I use bold font the default does not work for me.
> >
> >
> > ??? What default? The default is that glasses-face is just nil, so no
> > special face is put on any parts of the identifiers. 'bold' was just
> > an example of a non-default face; you can use any face there.
> >
> > > I want to make the changes in my init file. How can I change the
> > > foreground and background colour of the glasses matches?
> >
> >
> > You can't. This face is not about changing the matches, it is about
> > changing the appearance of the capital letters in identifiers where
> > glasses-mode adds the separator (which is underscore _ by default)
> >
> > > Is it possible for users to use a UTF8 Code as separator, and if so,
> > > how can this be done?
> >
> >
> > Customize the variable glasses-separator. (This has nothing to do
> > with the original bug report, though.)
>
> How can I change the colour of the capital letters or use utf8 using
> elisp commands?
You could just do
(setq glasses-separator "➾")
with the character being a utf8 symbol.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#58282
; Package
emacs
.
(Tue, 04 Oct 2022 15:55:02 GMT)
Full text and
rfc822 format available.
Message #33 received at 58282 <at> debbugs.gnu.org (full text, mbox):
------- Original Message -------
On Tuesday, October 4th, 2022 at 2:52 PM, Christopher Dimech <dimech <at> gmx.com> wrote:
>
>
> > Sent: Wednesday, October 05, 2022 at 2:46 AM
> > From: "uzibalqa" uzibalqa <at> proton.me
> > To: "Eli Zaretskii" eliz <at> gnu.org
> > Cc: "Christopher Dimech" dimech <at> gmx.com, 58282 <at> debbugs.gnu.org
> > Subject: Re: bug#58282: Distinguishing glasses-mode display
> >
> > ------- Original Message -------
> > On Tuesday, October 4th, 2022 at 12:43 PM, Eli Zaretskii eliz <at> gnu.org wrote:
> >
> > > > From: Christopher Dimech dimech <at> gmx.com
> > > > Cc: uzibalqa uzibalqa <at> proton.me, 58282 <at> debbugs.gnu.org
> > > > Date: Tue, 4 Oct 2022 13:47:33 +0200
> > > >
> > > > > I think we have this already: customize glasses-face to some distinct
> > > > > face, like 'bold'. Then the capital letters of identifiers where
> > > > > glasses.el inserted underscores will be shown in bold, and you can
> > > > > visually distinguish them from the original underscores.
> > > >
> > > > Because I use bold font the default does not work for me.
> > >
> > > ??? What default? The default is that glasses-face is just nil, so no
> > > special face is put on any parts of the identifiers. 'bold' was just
> > > an example of a non-default face; you can use any face there.
> > >
> > > > I want to make the changes in my init file. How can I change the
> > > > foreground and background colour of the glasses matches?
> > >
> > > You can't. This face is not about changing the matches, it is about
> > > changing the appearance of the capital letters in identifiers where
> > > glasses-mode adds the separator (which is underscore _ by default)
> > >
> > > > Is it possible for users to use a UTF8 Code as separator, and if so,
> > > > how can this be done?
> > >
> > > Customize the variable glasses-separator. (This has nothing to do
> > > with the original bug report, though.)
> >
> > How can I change the colour of the capital letters or use utf8 using
> > elisp commands?
>
>
> You could just do
>
> (setq glasses-separator "➾")
>
> with the character being a utf8 symbol.
I would prefer using utf symbols than changing colours.
I am using the following function using hex code for Black Rightwards Arrowhead
(defun typex-camelsens ()
"Splits CamelCase phrases using separator."
(interactive)
(setq glasses-separator "\u27A4")
(glasses-mode))
How can I pass an arbitrary hex code interactively, besides using a default?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#58282
; Package
emacs
.
(Tue, 04 Oct 2022 16:27:02 GMT)
Full text and
rfc822 format available.
Message #36 received at 58282 <at> debbugs.gnu.org (full text, mbox):
> Date: Tue, 04 Oct 2022 14:46:16 +0000
> From: uzibalqa <uzibalqa <at> proton.me>
> Cc: Christopher Dimech <dimech <at> gmx.com>, 58282 <at> debbugs.gnu.org
>
> ------- Original Message -------
> On Tuesday, October 4th, 2022 at 12:43 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>
>
> > > From: Christopher Dimech dimech <at> gmx.com
> > > Cc: uzibalqa uzibalqa <at> proton.me, 58282 <at> debbugs.gnu.org
> > > Date: Tue, 4 Oct 2022 13:47:33 +0200
> > >
> > > > I think we have this already: customize glasses-face to some distinct
> > > > face, like 'bold'. Then the capital letters of identifiers where
> > > > glasses.el inserted underscores will be shown in bold, and you can
> > > > visually distinguish them from the original underscores.
> > >
> > > Because I use bold font the default does not work for me.
> >
> >
> > ??? What default? The default is that glasses-face is just nil, so no
> > special face is put on any parts of the identifiers. 'bold' was just
> > an example of a non-default face; you can use any face there.
> >
> > > I want to make the changes in my init file. How can I change the
> > > foreground and background colour of the glasses matches?
> >
> >
> > You can't. This face is not about changing the matches, it is about
> > changing the appearance of the capital letters in identifiers where
> > glasses-mode adds the separator (which is underscore _ by default)
> >
> > > Is it possible for users to use a UTF8 Code as separator, and if so,
> > > how can this be done?
> >
> >
> > Customize the variable glasses-separator. (This has nothing to do
> > with the original bug report, though.)
>
> How can I change the colour of the capital letters or use utf8 using
> elisp commands?
I answered both questions above. What is unclear?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#58282
; Package
emacs
.
(Tue, 04 Oct 2022 16:29:02 GMT)
Full text and
rfc822 format available.
Message #39 received at 58282 <at> debbugs.gnu.org (full text, mbox):
> From: Christopher Dimech <dimech <at> gmx.com>
> Cc: Eli Zaretskii <eliz <at> gnu.org>, 58282 <at> debbugs.gnu.org
> Date: Tue, 4 Oct 2022 16:52:44 +0200
>
> > > Customize the variable glasses-separator. (This has nothing to do
> > > with the original bug report, though.)
> >
> > How can I change the colour of the capital letters or use utf8 using
> > elisp commands?
>
> You could just do
>
> (setq glasses-separator "➾")
>
> with the character being a utf8 symbol.
No, that will not work in general in this case. You must use
Customize.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#58282
; Package
emacs
.
(Tue, 04 Oct 2022 17:29:01 GMT)
Full text and
rfc822 format available.
Message #42 received at 58282 <at> debbugs.gnu.org (full text, mbox):
------- Original Message -------
On Tuesday, October 4th, 2022 at 4:26 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
> > Date: Tue, 04 Oct 2022 14:46:16 +0000
> > From: uzibalqa uzibalqa <at> proton.me
> > Cc: Christopher Dimech dimech <at> gmx.com, 58282 <at> debbugs.gnu.org
> >
> > ------- Original Message -------
> > On Tuesday, October 4th, 2022 at 12:43 PM, Eli Zaretskii eliz <at> gnu.org wrote:
> >
> > > > From: Christopher Dimech dimech <at> gmx.com
> > > > Cc: uzibalqa uzibalqa <at> proton.me, 58282 <at> debbugs.gnu.org
> > > > Date: Tue, 4 Oct 2022 13:47:33 +0200
> > > >
> > > > > I think we have this already: customize glasses-face to some distinct
> > > > > face, like 'bold'. Then the capital letters of identifiers where
> > > > > glasses.el inserted underscores will be shown in bold, and you can
> > > > > visually distinguish them from the original underscores.
> > > >
> > > > Because I use bold font the default does not work for me.
> > >
> > > ??? What default? The default is that glasses-face is just nil, so no
> > > special face is put on any parts of the identifiers. 'bold' was just
> > > an example of a non-default face; you can use any face there.
> > >
> > > > I want to make the changes in my init file. How can I change the
> > > > foreground and background colour of the glasses matches?
> > >
> > > You can't. This face is not about changing the matches, it is about
> > > changing the appearance of the capital letters in identifiers where
> > > glasses-mode adds the separator (which is underscore _ by default)
> > >
> > > > Is it possible for users to use a UTF8 Code as separator, and if so,
> > > > how can this be done?
> > >
> > > Customize the variable glasses-separator. (This has nothing to do
> > > with the original bug report, though.)
> >
> > How can I change the colour of the capital letters or use utf8 using
> > elisp commands?
>
>
> I answered both questions above. What is unclear?
Been focusing on getting this to work
(defun camelsens (hexcode)
"Splits CamelCase phrases using separator."
(interactive (list
(completing-read "Utf8_hex_code: " '("\u27A4" "\u25BA" "\u2192") nil t "\u2192")))
(setq glasses-separator hexcode)
(glasses-mode))
But this only works the first time I call the function.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#58282
; Package
emacs
.
(Tue, 04 Oct 2022 18:03:02 GMT)
Full text and
rfc822 format available.
Message #45 received at 58282 <at> debbugs.gnu.org (full text, mbox):
> Date: Tue, 04 Oct 2022 17:28:21 +0000
> From: uzibalqa <uzibalqa <at> proton.me>
> Cc: dimech <at> gmx.com, 58282 <at> debbugs.gnu.org
>
> (defun camelsens (hexcode)
>
> "Splits CamelCase phrases using separator."
>
> (interactive (list
>
> (completing-read "Utf8_hex_code: " '("\u27A4" "\u25BA" "\u2192") nil t "\u2192")))
>
> (setq glasses-separator hexcode)
>
> (glasses-mode))
>
> But this only works the first time I call the function.
You cannot simply assign the value to this variable. Look at its
defcustom form to understand what is missing.
And anyway, what does this have to do with the bug report? You are
asking basic Emacs Lisp questions.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#58282
; Package
emacs
.
(Tue, 04 Oct 2022 18:11:02 GMT)
Full text and
rfc822 format available.
Message #48 received at 58282 <at> debbugs.gnu.org (full text, mbox):
------- Original Message -------
On Tuesday, October 4th, 2022 at 6:02 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
> > Date: Tue, 04 Oct 2022 17:28:21 +0000
> > From: uzibalqa uzibalqa <at> proton.me
> > Cc: dimech <at> gmx.com, 58282 <at> debbugs.gnu.org
> >
> > (defun camelsens (hexcode)
> >
> > "Splits CamelCase phrases using separator."
> >
> > (interactive (list
> >
> > (completing-read "Utf8_hex_code: " '("\u27A4" "\u25BA" "\u2192") nil t "\u2192")))
> >
> > (setq glasses-separator hexcode)
> >
> > (glasses-mode))
> >
> > But this only works the first time I call the function.
>
>
> You cannot simply assign the value to this variable. Look at its
> defcustom form to understand what is missing.
>
> And anyway, what does this have to do with the bug report? You are
> asking basic Emacs Lisp questions.
Because I can use utf, I can easily distinguish between code and glasses display.
This feature solves my problem.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#58282
; Package
emacs
.
(Tue, 04 Oct 2022 18:17:02 GMT)
Full text and
rfc822 format available.
Message #51 received at 58282 <at> debbugs.gnu.org (full text, mbox):
> Date: Tue, 04 Oct 2022 18:09:53 +0000
> From: uzibalqa <uzibalqa <at> proton.me>
> Cc: dimech <at> gmx.com, 58282 <at> debbugs.gnu.org
>
> > You cannot simply assign the value to this variable. Look at its
> > defcustom form to understand what is missing.
> >
> > And anyway, what does this have to do with the bug report? You are
> > asking basic Emacs Lisp questions.
>
> Because I can use utf, I can easily distinguish between code and glasses display.
> This feature solves my problem.
So do use it. It is possible and supported, just not by a simple
setq.
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?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#58282
; Package
emacs
.
(Thu, 06 Oct 2022 00:57:02 GMT)
Full text and
rfc822 format available.
Message #54 received at 58282 <at> debbugs.gnu.org (full text, mbox):
------- Original Message -------
On Tuesday, October 4th, 2022 at 6:16 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
> > Date: Tue, 04 Oct 2022 18:09:53 +0000
> > From: uzibalqa uzibalqa <at> proton.me
> > Cc: dimech <at> gmx.com, 58282 <at> debbugs.gnu.org
> >
> > > You cannot simply assign the value to this variable. Look at its
> > > defcustom form to understand what is missing.
> > >
> > > And anyway, what does this have to do with the bug report? You are
> > > asking basic Emacs Lisp questions.
> >
> > Because I can use utf, I can easily distinguish between code and glasses display.
> > This feature solves my problem.
>
>
> So do use it. It is possible and supported, just not by a simple
> setq.
>
> 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)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#58282
; Package
emacs
.
(Thu, 06 Oct 2022 06:37:02 GMT)
Full text and
rfc822 format available.
Message #57 received at 58282 <at> debbugs.gnu.org (full text, mbox):
> Date: Thu, 06 Oct 2022 00:56:05 +0000
> From: uzibalqa <uzibalqa <at> proton.me>
> Cc: dimech <at> gmx.com, 58282 <at> debbugs.gnu.org
>
> > 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.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#58282
; Package
emacs
.
(Thu, 06 Oct 2022 11:54:01 GMT)
Full text and
rfc822 format available.
Message #60 received at 58282 <at> debbugs.gnu.org (full text, mbox):
Sent with Proton Mail secure email.
------- Original Message -------
On Thursday, October 6th, 2022 at 6:35 AM, Eli Zaretskii <eliz <at> gnu.org> wrote:
> > Date: Thu, 06 Oct 2022 00:56:05 +0000
> > From: uzibalqa uzibalqa <at> proton.me
> > Cc: dimech <at> gmx.com, 58282 <at> debbugs.gnu.org
> >
> > > 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?
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 04 Nov 2022 11:24:13 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 228 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.