GNU bug report logs -
#28286
sh-script package has incorrect syntax highlighting when shell type is set to rpm
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 28286 in the body.
You can then email your comments to 28286 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#28286
; Package
emacs
.
(Wed, 30 Aug 2017 03:35:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Andrew Toskin <andrew.toskin <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 30 Aug 2017 03:35: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)]
* Find an RPM spec file, such as this one for the RPM package of Emacs:
- https://src.fedoraproject.org/rpms/emacs/raw/master/f/emacs.spec
* Open it in Emacs without user customizations (emacs --quick emacs.spec)
* If necessary, set the shell type (*C-c :*) to rpm
* Notice that even in the %description block starting on line 104,
apostrophes (') are highlighted as if they begin a quoted string.
%description blocks only contain plain text descriptions of the RPM
package, and last until the following %macro; there should be no syntax
highlighting between the two macros. Or if there were, everything inside
the description should all be the same color, until the next %macro starts.
I'm using Emacs 25.2.1, as packaged on Fedora 26 Workstation x86_64. So,
the sh-script 2.0.6 package is built in.
~ Andrew
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#28286
; Package
emacs
.
(Wed, 30 Aug 2017 20:31:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 28286 <at> debbugs.gnu.org (full text, mbox):
Andrew Toskin wrote:
> %description blocks only contain plain text descriptions of the RPM
> package, and last until the following %macro; there should be no syntax
> highlighting between the two macros. Or if there were, everything inside
> the description should all be the same color, until the next %macro starts.
>
> I'm using Emacs 25.2.1, as packaged on Fedora 26 Workstation x86_64. So,
> the sh-script 2.0.6 package is built in.
sh-script.el's support for RPM spec files is _extremely_ basic.
There is a dedicated rpm-spec-mode.el distributed separately that you
might prefer.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#28286
; Package
emacs
.
(Thu, 31 Aug 2017 15:11:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 28286 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Wed, 2017-08-30 at 16:30 -0400, Glenn Morris wrote:
> sh-script.el's support for RPM spec files is _extremely_ basic.
> There is a dedicated rpm-spec-mode.el distributed separately that you
> might prefer.
Sure, but if sh-script mode is going to support the syntax at all, it
should at least be correct, right? When the spec file's %description
section has an odd number of apostrophes, the "string" highlight gobbles up
the rest of the file unless or until it meets another apostrophe somewhere.
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#28286
; Package
emacs
.
(Sun, 04 Jul 2021 14:50:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 28286 <at> debbugs.gnu.org (full text, mbox):
Andrew Toskin <andrew.toskin <at> gmail.com> writes:
> * Find an RPM spec file, such as this one for the RPM package of Emacs:
> - https://src.fedoraproject.org/rpms/emacs/raw/master/f/emacs.spec
> * Open it in Emacs without user customizations (emacs --quick emacs.spec)
> * If necessary, set the shell type (C-c :) to rpm
> * Notice that even in the %description block starting on line 104, apostrophes (')
> are highlighted as if they begin a quoted string.
>
> %description blocks only contain plain text descriptions of the RPM package, and
> last until the following %macro; there should be no syntax highlighting between
> the two macros. Or if there were, everything inside the description should all be
> the same color, until the next %macro starts.
(I'm going through old bug reports that unfortunately got no response at
the time.)
That URL is no longer valid -- does anybody have a .spec file that
demonstrates the problem?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) moreinfo.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sun, 04 Jul 2021 14:50:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#28286
; Package
emacs
.
(Mon, 05 Jul 2021 09:47:01 GMT)
Full text and
rfc822 format available.
Message #19 received at 28286 <at> debbugs.gnu.org (full text, mbox):
>>>>> On Sun, 04 Jul 2021 16:48:54 +0200, Lars Ingebrigtsen <larsi <at> gnus.org> said:
Lars> Andrew Toskin <andrew.toskin <at> gmail.com> writes:
>> * Find an RPM spec file, such as this one for the RPM package of Emacs:
>> - https://src.fedoraproject.org/rpms/emacs/raw/master/f/emacs.spec
>> * Open it in Emacs without user customizations (emacs --quick emacs.spec)
>> * If necessary, set the shell type (C-c :) to rpm
>> * Notice that even in the %description block starting on line 104, apostrophes (')
>> are highlighted as if they begin a quoted string.
>>
>> %description blocks only contain plain text descriptions of the RPM package, and
>> last until the following %macro; there should be no syntax highlighting between
>> the two macros. Or if there were, everything inside the description should all be
>> the same color, until the next %macro starts.
Lars> (I'm going through old bug reports that unfortunately got no response at
Lars> the time.)
Lars> That URL is no longer valid -- does anybody have a .spec file that
Lars> demonstrates the problem?
Thereʼs a spec file here, but I canʼt get it to do what the OP
describes:
https://src.fedoraproject.org/rpms/emacs/raw/rawhide/f/emacs.spec
Robert
--
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#28286
; Package
emacs
.
(Mon, 05 Jul 2021 13:32:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 28286 <at> debbugs.gnu.org (full text, mbox):
Robert Pluim <rpluim <at> gmail.com> writes:
> Thereʼs a spec file here, but I canʼt get it to do what the OP
> describes:
>
> https://src.fedoraproject.org/rpms/emacs/raw/rawhide/f/emacs.spec
Thanks.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#28286
; Package
emacs
.
(Mon, 05 Jul 2021 13:33:01 GMT)
Full text and
rfc822 format available.
Message #25 received at 28286 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Robert Pluim <rpluim <at> gmail.com> writes:
> Thereʼs a spec file here, but I canʼt get it to do what the OP
> describes:
>
> https://src.fedoraproject.org/rpms/emacs/raw/rawhide/f/emacs.spec
Thanks; included below for further reference if somebody looks at this
bug report in eight years time. :-)
I'm not able to reproduce the issue, either -- if I put a ' character
into the %description part, I don't see any adverse effects. I've tried
this in Emacs 25.1, 26.1 and 28.
So I'm not able to reproduce the problem. Andrew, are you still seeing
this issue?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
[emacs.spec (application/octet-stream, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#28286
; Package
emacs
.
(Wed, 04 Aug 2021 11:30:03 GMT)
Full text and
rfc822 format available.
Message #28 received at 28286 <at> debbugs.gnu.org (full text, mbox):
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> So I'm not able to reproduce the problem. Andrew, are you still seeing
> this issue?
More information was requested, but no response was given within a
month, so I'm closing this bug report. If the problem still exists,
please respond to this email and we'll reopen the bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug closed, send any further explanations to
28286 <at> debbugs.gnu.org and Andrew Toskin <andrew.toskin <at> gmail.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Wed, 04 Aug 2021 11:30:05 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
.
(Thu, 02 Sep 2021 11:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 294 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.