From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#28959: 25.3; Tramp not honoring `tramp-backup-directory-alist' Date: Thu, 26 Oct 2017 19:39:58 +0200 Message-ID: <87o9otreoh.fsf@gmx.de> References: <0B96357E-C413-4429-8A1A-AA9144FA4ECB@nasa.gov> <87wp3iq8yi.fsf@gmx.de> <87she5riv6.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1509039681 25223 195.159.176.226 (26 Oct 2017 17:41:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 26 Oct 2017 17:41:21 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: "28959@debbugs.gnu.org" <28959@debbugs.gnu.org> To: "Matz\, Daniel A. \(JSC-EG511\)" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 26 19:41:15 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7m9V-00051f-2N for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Oct 2017 19:41:09 +0200 Original-Received: from localhost ([::1]:54016 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7m9a-0006ec-M3 for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Oct 2017 13:41:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46818) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7m9R-0006dG-RV for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2017 13:41:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7m9O-0001eQ-OI for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2017 13:41:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54946) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e7m9O-0001eB-J2 for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2017 13:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e7m9O-0002NE-5q for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2017 13:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Oct 2017 17:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28959 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28959-submit@debbugs.gnu.org id=B28959.15090396389083 (code B ref 28959); Thu, 26 Oct 2017 17:41:02 +0000 Original-Received: (at 28959) by debbugs.gnu.org; 26 Oct 2017 17:40:38 +0000 Original-Received: from localhost ([127.0.0.1]:35394 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7m90-0002MR-0a for submit@debbugs.gnu.org; Thu, 26 Oct 2017 13:40:38 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:54380) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7m8y-0002MB-41 for 28959@debbugs.gnu.org; Thu, 26 Oct 2017 13:40:36 -0400 Original-Received: from detlef.gmx.de ([212.86.45.73]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M5a9E-1dExUO0AJM-00xXqu; Thu, 26 Oct 2017 19:40:00 +0200 In-Reply-To: (Daniel A. Matz's message of "Thu, 26 Oct 2017 16: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qXipCHWKvlOewTURp3sYHBOxvZSLrI1C X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:139025 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable "Matz, Daniel A. (JSC-EG511)" writes: > Michael, Hi Daniel, > I double checked my checkout, and it is recent and includes your commit. > > For the tests, 43/58 does indeed pass. Here=E2=80=99s the summary that p= rints > at the end: This guarantees you have the latest changes. I've added tramp-test34-find-backup-file-name earlier today, and you have it. So we need traces. Could you pls apply the appended patch to tramp.el? Set tramp-verbose to 6, and rerun your test. Hopefully, we'll see what happens in the Tramp debug buffer, which you'll send to me. If you fear there are sensible information, you could send the debug buffer to me directly, w/o Cc. > Daniel Best regards, Michael. --=-=-= Content-Type: text/plain Content-Disposition: attachment diff --git a/lisp/tramp.el b/lisp/tramp.el index e300b3a..08a9076 100644 --- a/lisp/tramp.el +++ b/lisp/tramp.el @@ -3218,6 +3218,12 @@ User is always nil." (defun tramp-handle-find-backup-file-name (filename) "Like `find-backup-file-name' for Tramp files." (with-parsed-tramp-file-name filename nil + (tramp-message + v 5 "filename %s backup-enable-predicate %s" + filename backup-enable-predicate) + (tramp-message + v 5 "backup-directory-alist %s tramp-backup-directory-alist %s" + backup-directory-alist tramp-backup-directory-alist) (let ((backup-directory-alist (if tramp-backup-directory-alist (mapcar @@ -3231,8 +3237,14 @@ User is always nil." method user domain host port (cdr x) hop) (cdr x)))) tramp-backup-directory-alist) - backup-directory-alist))) - (tramp-run-real-handler 'find-backup-file-name (list filename))))) + backup-directory-alist)) + result) + (setq result + (tramp-run-real-handler 'find-backup-file-name (list filename))) + (tramp-message + v 5 "backup-directory-alist %s result %s" + backup-directory-alist result) + result))) (defun tramp-handle-insert-directory (filename switches &optional wildcard full-directory-p) --=-=-=--