Subject: bug#9879: 23.3; making script executable with tramp

From: Glenn Morris <[email-masked]>
Date: Thu, 27 Oct 2011 19:17:36 -0400

Dan Gildea wrote:

> emacs -Q
>
> (add-hook 'after-save-hook
> 'executable-make-buffer-file-executable-if-script-p)
>
> open new remote file with tramp with name ending in .sh
>
> add #!/bin/bash
>
> save file
>
> receive following error message:
> executable-make-buffer-file-executable-if-script-p: Wrong type
> argument: number-or-marker-p, nil

I am unable to reproduce this using Emacs 23.3 and Tramp's scpc method.
The file is correctly made executable. Perhaps you could give more
details about what Tramp method you are using, etc. Also perhaps do M-x
toggle-debug-on-error, repeat the process, and post the resulting
backtrace. Though I guess the error can only be due to file-modes
returning nil.