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.
Full log
View this message in rfc822 format
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
This bug report was last modified 3 years and 323 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.