unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: "Matz\, Daniel A. \(JSC-EG511\)" <daniel.a.matz@nasa.gov>
Cc: "28959@debbugs.gnu.org" <28959@debbugs.gnu.org>
Subject: bug#28959: 25.3; Tramp not honoring `tramp-backup-directory-alist'
Date: Thu, 26 Oct 2017 19:39:58 +0200	[thread overview]
Message-ID: <87o9otreoh.fsf@gmx.de> (raw)
In-Reply-To: <BD14D241-B359-4241-A265-F458F7239A6E@nasa.gov> (Daniel A. Matz's message of "Thu, 26 Oct 2017 16:38:17 +0000")

[-- Attachment #1: Type: text/plain, Size: 742 bytes --]

"Matz, Daniel A. (JSC-EG511)" <daniel.a.matz@nasa.gov> 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’s the summary that prints
> 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.


[-- Attachment #2: Type: text/plain, Size: 1260 bytes --]

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)

  reply	other threads:[~2017-10-26 17:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-23 19:46 bug#28959: 25.3; Tramp not honoring `tramp-backup-directory-alist' Matz, Daniel A. (JSC-EG511)
2017-10-24 13:41 ` Michael Albinus
2017-10-26 14:28 ` Michael Albinus
     [not found]   ` <AB7D8E8C-D1B9-432B-B711-0425DE940795@nasa.gov>
2017-10-26 16:09     ` Michael Albinus
2017-10-26 16:38       ` Matz, Daniel A. (JSC-EG511)
2017-10-26 17:39         ` Michael Albinus [this message]
     [not found]           ` <378F4BC2-D081-4922-BCDB-1C3D1355FE92@nasa.gov>
     [not found]             ` <873760zhvr.fsf@gmx.de>
     [not found]               ` <3BA2EAB9-DDF2-4581-B679-E1BA70812EFB@nasa.gov>
2017-10-30 17:34                 ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o9otreoh.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=28959@debbugs.gnu.org \
    --cc=daniel.a.matz@nasa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).