From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#9879: 23.3; making script executable with tramp Date: Thu, 27 Oct 2011 19:17:36 -0400 Message-ID: References: <14vcrbfv28.fsf@e15.cs.rochester.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1319757502 9828 80.91.229.12 (27 Oct 2011 23:18:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 27 Oct 2011 23:18:22 +0000 (UTC) Cc: 9879@debbugs.gnu.org To: Dan Gildea Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 28 01:18:18 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RJZDD-00088S-FL for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Oct 2011 01:18:15 +0200 Original-Received: from localhost ([::1]:50801 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJZDC-0000RB-VS for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Oct 2011 19:18:14 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:36868) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJZD9-0000Qs-Ql for bug-gnu-emacs@gnu.org; Thu, 27 Oct 2011 19:18:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJZD8-0007Lm-Sr for bug-gnu-emacs@gnu.org; Thu, 27 Oct 2011 19:18:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35600) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJZD8-0007Li-Q3 for bug-gnu-emacs@gnu.org; Thu, 27 Oct 2011 19:18:10 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RJZEv-0005Z6-Hz for bug-gnu-emacs@gnu.org; Thu, 27 Oct 2011 19:20:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Oct 2011 23:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9879 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9879-submit@debbugs.gnu.org id=B9879.131975757221346 (code B ref 9879); Thu, 27 Oct 2011 23:20:01 +0000 Original-Received: (at 9879) by debbugs.gnu.org; 27 Oct 2011 23:19:32 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RJZER-0005YF-Bf for submit@debbugs.gnu.org; Thu, 27 Oct 2011 19:19:31 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RJZEO-0005Y7-Sc for 9879@debbugs.gnu.org; Thu, 27 Oct 2011 19:19:29 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RJZCb-0000Hu-6H; Thu, 27 Oct 2011 19:17:37 -0400 X-Spook: top secret FSF passwd Mafia Glock bank FTS2000 Telex X-Ran: )TqRD8T&lDudE93mcJN>G%=a6pL (Dan Gildea's message of "Wed, 26 Oct 2011 14:48:31 -0400") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 27 Oct 2011 19:20:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:53231 Archived-At: 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.