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

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

bug#9879: 23.3; making script executable with tramp


From: Glenn Morris
Subject: bug#9879: 23.3; making script executable with tramp
Date: Thu, 27 Oct 2011 19:17:36 -0400
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

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.




reply via email to

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