Windows, Emacs, Git Bash e shell-command

Windows 7. Emacs 24.3.1. Git 1.8.1.msysgit.1. Eu tenho o seguinte no meu arquivo equivalente .emacs:

(if (equal system-type 'windows-nt)
    (progn (setq explicit-shell-file-name
                 "C:/Program Files (x86)/Git/bin/sh.exe")
           (setq shell-file-name "bash")
           (setq explicit-sh.exe-args '("--login" "-i"))
           (setenv "SHELL" shell-file-name)
           (add-hook 'comint-output-filter-functions 'comint-strip-ctrl-m)))

Isso funciona muito bem quando eu quero fazerEscudo M-x: Eu posso abrir um shell e digitar "ls".

Contudo,M-x shell-command está falhando. Quando tento executar "ls" via shell-command (que deve imprimir sua saída no buffer * Shell Command Output *, de acordo comC-h f shell-comando), Recebo uma única mensagem de erro:

"Procurando por programa: permissão negada, bash"

Há algumas sugestões muito antigas sobre o Google sobreprocesso de chamada e muitas perguntas no StackOverflow sobre como fazer o shell funcionar no Emacs. Por favor note queEscudo M-x funciona muito bem, e o que eu gostaria de trabalhar é shell-command.

(Razão:https://github.com/donkirkby/live-py-plugin#installing-the-emacs-mode)

questionAnswers(3)

yourAnswerToTheQuestion