GNU bug report logs -
#9879
23.3; making script executable with tramp
Previous Next
Reported by: Dan Gildea <gildea <at> pobox.com>
Date: Wed, 26 Oct 2011 19:05:02 UTC
Severity: normal
Found in version 23.3
Done: Michael Albinus <michael.albinus <at> gmx.de>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
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.
This bug report was last modified 13 years and 191 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.