Dave Abrahams <[email protected]> writes:

> Hi,

Hi Dave,

> Modified dired buffers seem to cause problems for some packages,
> e.g. magit: https://github.com/magit/magit/issues/231
> The only ones I've seen have been tramp buffers, so I thought maybe
> you'd want to look at it.

It doesn't seem to be a pure Tramp problem. The backtrace you have
published indicates a problem in `magit-save-buffers-predicate-tree-only':

(defun magit-save-buffers-predicate-tree-only ()
  "Only prompt to save buffers which are within the current git project (as
  determined by the dir passed to `magit-status'."
  (let ((current-buf-dir
         (file-name-directory (buffer-file-name (current-buffer)))))
  ...

(buffer-file-name (current-buffer)) implies, that every buffer has a
file name. This is not the case; the call could return
`nil'. `file-name-directory' returns an error then.

A better approach might be to use `default-directory', which is bound
locally in every buffer.

> Cheers,
> Dave

Best regards, Michael.

_______________________________________________
Tramp-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to