GNU bug report logs -
#20959
Switching script mode to rpm puts nonsense on the first line
Previous Next
Reported by: Petr Hracek <phracek <at> redhat.com>
Date: Thu, 2 Jul 2015 09:40:03 UTC
Severity: minor
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 20959 in the body.
You can then email your comments to 20959 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#20959
; Package
emacs
.
(Thu, 02 Jul 2015 09:40:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Petr Hracek <phracek <at> redhat.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 02 Jul 2015 09:40:04 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Reproducer is:
1) shell-script-mode
2) 'sh-set-shell' 'rpm'
then on the first line is #!/usr/bin/rpm which doe not make sense.
https://bugzilla.redhat.com/show_bug.cgi?id=1030391#c6
Did you discover it?
Whole RedHat bugzilla is here
https://bugzilla.redhat.com/show_bug.cgi?id=1030391
--
Petr Hracek
Software Engineer
Developer Experience
Red Hat, Inc
Mob: +420777056169
email: phracek <at> redhat.com
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#20959
; Package
emacs
.
(Thu, 02 Jul 2015 15:54:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 20959 <at> debbugs.gnu.org (full text, mbox):
Petr Hracek wrote:
> Reproducer is:
> 1) shell-script-mode
> 2) 'sh-set-shell' 'rpm'
>
> then on the first line is #!/usr/bin/rpm which doe not make sense.
> https://bugzilla.redhat.com/show_bug.cgi?id=1030391#c6
>
> Did you discover it?
That's what the command is documented to do.
I assume it's being called for the effect of "switching the buffer to
the rpm dialect of sh-mode". To do that, you can call it like
M-: (sh-set-shell "rpm" nil nil)
(which isn't much more typing).
Perhaps C-u M-x sh-set-shell could mean that.
The alternative would be a hard-coded list of interpreters that aren't
really shells (I think rpm is the only one sh-mode handles?).
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#20959
; Package
emacs
.
(Fri, 17 Jul 2015 12:05:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 20959 <at> debbugs.gnu.org (full text, mbox):
On 07/02/2015 05:53 PM, Glenn Morris wrote:
> Petr Hracek wrote:
>
>> Reproducer is:
>> 1) shell-script-mode
>> 2) 'sh-set-shell' 'rpm'
>>
>> then on the first line is #!/usr/bin/rpm which doe not make sense.
>> https://bugzilla.redhat.com/show_bug.cgi?id=1030391#c6
>>
>> Did you discover it?
> That's what the command is documented to do.
>
> I assume it's being called for the effect of "switching the buffer to
> the rpm dialect of sh-mode". To do that, you can call it like
>
> M-: (sh-set-shell "rpm" nil nil)
>
> (which isn't much more typing).
>
> Perhaps C-u M-x sh-set-shell could mean that.
>
> The alternative would be a hard-coded list of interpreters that aren't
> really shells (I think rpm is the only one sh-mode handles?).
Yeah hard-coded list of interpreters that aren't really shells would be
great.
--
Petr Hracek
Software Engineer
Developer Experience
Red Hat, Inc
Mob: +420777056169
email: phracek <at> redhat.com
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#20959
; Package
emacs
.
(Thu, 08 Jul 2021 14:25:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 20959 <at> debbugs.gnu.org (full text, mbox):
Glenn Morris <rgm <at> gnu.org> writes:
> Perhaps C-u M-x sh-set-shell could mean that.
I've now done this in Emacs 28.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug marked as fixed in version 28.1, send any further explanations to
20959 <at> debbugs.gnu.org and Petr Hracek <phracek <at> redhat.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Thu, 08 Jul 2021 14:25: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
.
(Fri, 06 Aug 2021 11:24:09 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 235 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.