GNU bug report logs -
#45840
28.0.50; [PATCH] Remove hardcoded underline for perl-mode variables
Previous Next
Reported by: Protesilaos Stavrou <info <at> protesilaos.com>
Date: Wed, 13 Jan 2021 13:47:01 UTC
Severity: normal
Tags: fixed, patch
Found in version 28.0.50
Fixed in version 28.1
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 45840 in the body.
You can then email your comments to 45840 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#45840
; Package
emacs
.
(Wed, 13 Jan 2021 13:47:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Protesilaos Stavrou <info <at> protesilaos.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 13 Jan 2021 13:47:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Dear maintainers,
I have noticed that perl-mode modifies in a non-standard way the
font-lock-variable-name-face. This makes it impossible to get perl
buffers to look like other programming modes, in accordance with user or
theme configurations.
The attached patch merely assigns font-lock-variable-name-face while
removing the hardcoded underline property.
If you think that the underline should remain in place, then I can
provide another patch that would add a new face which would inherit from
font-lock-variable-name-face and add an underline accordingly.
All the best,
Protesilaos
--
Protesilaos Stavrou
protesilaos.com
[0001-Remove-hardcoded-underline-for-perl-mode-variables.patch (text/x-patch, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#45840
; Package
emacs
.
(Tue, 19 Jan 2021 06:33:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 45840 <at> debbugs.gnu.org (full text, mbox):
Protesilaos Stavrou <info <at> protesilaos.com> writes:
> The attached patch merely assigns font-lock-variable-name-face while
> removing the hardcoded underline property.
>
> If you think that the underline should remain in place, then I can
> provide another patch that would add a new face which would inherit from
> font-lock-variable-name-face and add an underline accordingly.
The comment here mentions this:
;; Additionally underline non-scalar variables. Maybe this is a bad idea.
;;'("[$@%*][#{]?\\(\\sw+\\)" 1 font-lock-variable-name-face)
("[$*]{?\\(\\sw+\\(::\\sw+\\)*\\)" 1 font-lock-variable-name-face)
("\\([@%]\\|\\$#\\)\\(\\sw+\\(::\\sw+\\)*\\)"
(2 (cons font-lock-variable-name-face '(underline))))
And it is a bad idea to hard-code this, but having different faces here
makes sense, I think. So could you whip up another patch to add the new
face, as you suggested?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#45840
; Package
emacs
.
(Tue, 19 Jan 2021 07:08:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 45840 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 2021-01-19, 07:32 +0100, Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
> Protesilaos Stavrou <info <at> protesilaos.com> writes:
>
>> The attached patch merely assigns font-lock-variable-name-face while
>> removing the hardcoded underline property.
>>
>> If you think that the underline should remain in place, then I can
>> provide another patch that would add a new face which would inherit from
>> font-lock-variable-name-face and add an underline accordingly.
>
> The comment here mentions this:
>
> ;; Additionally underline non-scalar variables. Maybe this is a bad idea.
> ;;'("[$@%*][#{]?\\(\\sw+\\)" 1 font-lock-variable-name-face)
> ("[$*]{?\\(\\sw+\\(::\\sw+\\)*\\)" 1 font-lock-variable-name-face)
> ("\\([@%]\\|\\$#\\)\\(\\sw+\\(::\\sw+\\)*\\)"
> (2 (cons font-lock-variable-name-face '(underline))))
>
> And it is a bad idea to hard-code this, but having different faces here
> makes sense, I think. So could you whip up another patch to add the new
> face, as you suggested?
Thank you, Lars! Please find attached the new patch. I also added a
NEWS entry. Feel free to edit it as you will.
--
Protesilaos Stavrou
protesilaos.com
[0001-Add-perl-non-scalar-variable-face-to-perl-mode.patch (text/x-patch, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#45840
; Package
emacs
.
(Tue, 19 Jan 2021 07:13:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 45840 <at> debbugs.gnu.org (full text, mbox):
Protesilaos Stavrou <info <at> protesilaos.com> writes:
> Thank you, Lars! Please find attached the new patch. I also added a
> NEWS entry. Feel free to edit it as you will.
Thanks; applied to Emacs 28.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) fixed.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Tue, 19 Jan 2021 07:13:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 28.1, send any further explanations to
45840 <at> debbugs.gnu.org and Protesilaos Stavrou <info <at> protesilaos.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Tue, 19 Jan 2021 07:13:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 16 Feb 2021 12:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 63 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.