From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: thierry.volpiatto@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#1741: 23.0.60; vc fail to register file while logged as /su:: with tramp Date: Wed, 08 Apr 2009 13:23:48 +0200 Message-ID: <87d4bnfkxn.fsf@tux.homenetwork> References: <87vdt2ndkt.fsf@tux.homenetwork> <200904071657.n37GvIau023055@godzilla.ics.uci.edu> Reply-To: thierry.volpiatto@gmail.com, 1741@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1239191056 23761 80.91.229.12 (8 Apr 2009 11:44:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Apr 2009 11:44:16 +0000 (UTC) Cc: 1741@emacsbugs.donarmstrong.com To: Dan Nicolaescu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 08 13:45:34 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LrWDi-00043h-RF for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Apr 2009 13:45:33 +0200 Original-Received: from localhost ([127.0.0.1]:55855 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LrWCK-0002KW-08 for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Apr 2009 07:44:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LrWCF-0002IT-47 for bug-gnu-emacs@gnu.org; Wed, 08 Apr 2009 07:43:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LrWCA-0002HK-9R for bug-gnu-emacs@gnu.org; Wed, 08 Apr 2009 07:43:58 -0400 Original-Received: from [199.232.76.173] (port=33714 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LrWCA-0002HH-5K for bug-gnu-emacs@gnu.org; Wed, 08 Apr 2009 07:43:54 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:37482) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LrWC9-0001aW-68 for bug-gnu-emacs@gnu.org; Wed, 08 Apr 2009 07:43:53 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n38Bhmk2023776; Wed, 8 Apr 2009 04:43:48 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n38Be5I5022489; Wed, 8 Apr 2009 04:40:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: thierry.volpiatto@gmail.com Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , owner@emacsbugs.donarmstrong.com Resent-Date: Wed, 08 Apr 2009 11:40:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 1741 X-Emacs-PR-Package: emacs,vc X-Emacs-PR-Keywords: Original-Received: via spool by 1741-submit@emacsbugs.donarmstrong.com id=B1741.123919024720463 (code B ref 1741); Wed, 08 Apr 2009 11:40:05 +0000 Original-Received: (at 1741) by emacsbugs.donarmstrong.com; 8 Apr 2009 11:30:47 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail-bw0-f157.google.com (mail-bw0-f157.google.com [209.85.218.157]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n38BUgrJ020443 for <1741@emacsbugs.donarmstrong.com>; Wed, 8 Apr 2009 04:30:44 -0700 Original-Received: by bwz1 with SMTP id 1so106035bwz.1 for <1741@emacsbugs.donarmstrong.com>; Wed, 08 Apr 2009 04:30:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :face:date:in-reply-to:message-id:user-agent:mime-version :content-type; bh=xJZ8kZq7nMdPZQMcdainN4u/lWfDu326GqJWWnYcb7k=; b=ioaKKkQOJS4Im+GJAjZ67XI/MgcVDGdsCGJa72trX/3CRAXOMbLmTN1LXc0+lR2eCP 52SHtD25MuZWtQrJcZBbAwuQURBq2OoaQUjRxk188Ad8fX+No0b3yReUxfQqdyMtCdc5 iQsv53LR23MnlVGvsHzojoHhAx488gdC0Rj5w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:face:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=tQDIZuFmpzp7s3VQgTYdn+izCoBtI81hEeCDPWcrpI0a/B/VFMjY0wYC9szXBOvWsC MF3m3OeTdJSZdwhoCZkqXMMMAjnuwA57nixPI9g63pnCOaporI/xSkaMaadP6vR1YLlo t39pqjl6NwTXyRh/ZgHwNvyBmLjUu9kq3gTPc= Original-Received: by 10.103.246.1 with SMTP id y1mr489927mur.72.1239190237054; Wed, 08 Apr 2009 04:30:37 -0700 (PDT) Original-Received: from tux.homenetwork (217.211.85-79.rev.gaoland.net [79.85.211.217]) by mx.google.com with ESMTPS id b9sm12765946mug.2.2009.04.08.04.30.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 08 Apr 2009 04:30:36 -0700 (PDT) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUHAwNfJRBVTESlTym0 RB/OwKFivhZqAAAACXBIWXMAAAsSAAALEgHS3X78AAAACXZwQWcAAAAwAAAAMADO7oxXAAABeElE QVQ4y3VTW47CMAyMwwUyTfYfUvG/wfC/ET4B0t7/KmsHurRgXFVVPRm/xglhsRj2+npW98G3+Amp tS5BXxl3SqzcXGRuEyf7n5lPA9jXetNPRhE7EJkzfz8YWnIgBSwW95TK4H79/t4GINKNADWj4PgA DiJX/ZxFDzDXeb4oYMw7kNUvyMzcaj3ioICG4hCKEShkPpwQ49Q05nnkGAQLDFDdExjm0qpowBYA Wi61bDlFU1GW0WbY2dSJYX5ZD2S0AiZL+rPyE19TpMzP2IvNWly+NkuWNgD4pO2oL73IQXoSyVX2 NHna7tgadWRXoCdvf2guqEcvGHqZwE520iRD0/QCYiiTE+U21w1Qxvg6iSp9fbIiDCnSAelDkCVF Vn+HekqXzRybwJ40xF4DMRG6SWGK9G1lYzHSxLYEm05GWbpJCB6A9tb9A3BGn2XdwJbS/WuInj74 4QNF8sVFdP3vl+5tgYp4Ev7fyrfFMkXgElDgV4uV/w8TWEeLCIGJ/AAAACV0RVh0Y3JlYXRlLWRh dGUAMjAwOC0wNS0zMVQyMDoxNDoyMiswMDowMAS7YjIAAAARdEVYdGpwZWc6Y29sb3JzcGFjZQAy LHVVnwAAACB0RVh0anBlZzpzYW1wbGluZy1mYWN0b3IAMngyLDF4MSwxeDFJ+qa0AAAAJXRFWHRt b2RpZnktZGF0ZQAyMDA3LTEwLTI4VDE2OjA4OjQ4KzAwOjAw44nspgAAAABJRU5ErkJggg== In-Reply-To: <200904071657.n37GvIau023055@godzilla.ics.uci.edu> (Dan Nicolaescu's message of "Tue, 7 Apr 2009 09:57:18 -0700 (PDT)") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.92 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 08 Apr 2009 07:43:58 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:27003 Archived-At: Hi Dan! Thank you to have a look at this bug. It's a long time, i didn't remember i sent this bug. The bug is still here.(23.0.92) Dan Nicolaescu writes: > Thierry Volpiatto writes: > > > Please write in English if possible, because the Emacs maintainers > > usually do not have translators to read other languages for them. > > > > Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. > > > > Please describe exactly what actions triggered the bug > > and the precise symptoms of the bug: > > > > Hi, > > i can't register a file with vc/rcs when i am logged as root throught > > tramp. > > 1) C-x v i > > 2) Create RCS dir (y/n) ==> The dir is created. > > 3) But now ==> _Here the debug output_: > > > > ,---- > > | Debugger entered--Lisp error: (wrong-type-argument stringp nil) > > | file-exists-p(nil) > > | vc-insert-file(nil "^[0-9]") > > | vc-rcs-fetch-master-state("/su:root@tux.homenetwork:/usr/local/bin/editeur.sh") > > | vc-rcs-working-revision("/su:root@tux.homenetwork:/usr/local/bin/editeur.sh") > > | apply(vc-rcs-working-revision "/su:root@tux.homenetwork:/usr/local/bin/editeur.sh") > > | vc-call-backend(RCS working-revision "/su:root@tux.homenetwork:/usr/local/bin/editeur.sh") > > | vc-working-revision("/su:root@tux.homenetwork:/usr/local/bin/editeur.sh") > > | vc-default-mode-line-string(RCS "/su:root@tux.homenetwork:/usr/local/bin/editeur.sh") > > | apply(vc-default-mode-line-string RCS "/su:root@tux.homenetwork:/usr/local/bin/editeur.sh") > > | vc-call-backend(RCS mode-line-string "/su:root@tux.homenetwork:/usr/local/bin/editeur.sh") > > | vc-mode-line("/su:root@tux.homenetwork:/usr/local/bin/editeur.sh") > > | run-hook-with-args(vc-mode-line "/su:root@tux.homenetwork:/usr/local/bin/editeur.sh") > > | vc-resynch-window("/su:root@tux.homenetwork:/usr/local/bin/editeur.sh" t t) > > | vc-resynch-buffer("/su:root@tux.homenetwork:/usr/local/bin/editeur.sh" t t) > > | > > | [...] > > | > > | [G70600 G70601 rev comment file --cl-dolist-temp-- > > | message "Registering %s... " mapc vc-file-clearprops vc-call-backend > > | register nil vc-file-setprop > > | vc-backend "Registering %s... done"] 6] (quote --files--) (quote --backend--) --cl-rest--))) > > | vc-register(nil) > > | call-interactively(vc-register nil nil) > > `---- > > > > _And if i want to delete RCS directory from dired_: > > > > ,---- > > | (file-error Couldn't delete /su:root@tux.homenetwork:/usr/local/bin/RCS) > > `---- > > > > However if i open an emacs root session i can register my file as > > normal. > > What happens is that vc-check-master-templates gets called with > "/su:root@tux.homenetwork:/usr/local/bin/editeur.sh", and it calls > (file-exists-p "/su:root@tux.homenetwork:/usr/local/bin/editeur.sh") > which returns nil. No, `file-exists-p' recognize tramp file name and return t. (file-exists-p "/su:root@tux.homenetwork:/usr/local/bin/editeur.sh") ==>t The problem is, i think, vc call `file-exists-p' with (vc-name fname) as argument instead of "file_name": ,----[ With a tramp filename return error ] | (file-exists-p (vc-name "/su:root@tux.homenetwork:/usr/local/bin/editeur.sh")) | ==> | Debugger entered--Lisp error: (wrong-type-argument stringp nil) | file-exists-p(nil) | eval((file-exists-p (vc-name "/su:root@tux.homenetwork:/usr/local/bin/editeur.sh"))) | eval-expression((file-exists-p (vc-name "/su:root@tux.homenetwork:/usr/local/bin/editeur.sh")) nil) | call-interactively(eval-expression nil nil) `---- ,----[ With a regular filename return t ] | (file-exists-p (vc-name "~/bin/call-gnus.sh")) | ==>t `---- So it seem the problem come from vc that try to set properties on filename with `vc-name' and fail on tramp filename. (`vc-name' call `vc-file-getprop') Thought i didn't look at the code carefully, so i am may be wrong. > There's a few other `file-exists-p' calls in vc*.el, so it's likely that > other things can go wrong if this one instance is somehow fixed. > > If someone familiar with what tramp needs wants to get this to work, > about all vc calls need to be tested to make sure they don't do > something that tramp can't do. > -- A + Thierry Volpiatto Location: Saint-Cyr-Sur-Mer - France