bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#20959: Switching script mode to rpm puts nonsense on the first line


From: Petr Hracek
Subject: bug#20959: Switching script mode to rpm puts nonsense on the first line
Date: Fri, 17 Jul 2015 14:04:01 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0

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: address@hidden






reply via email to

[Prev in Thread] Current Thread [Next in Thread]