[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master c306848: Fix an error in tramp-sh-inotifywait-proce
From: |
Michael Albinus |
Subject: |
[Emacs-diffs] master c306848: Fix an error in tramp-sh-inotifywait-process-filter |
Date: |
Wed, 31 Jul 2019 08:54:17 -0400 (EDT) |
branch: master
commit c306848c0fe830127ee8d4fd936f17f341ad179b
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>
Fix an error in tramp-sh-inotifywait-process-filter
* lisp/net/tramp-sh.el (tramp-sh-inotifywait-process-filter):
Add default FILE to returned event, if inotifywait doesn't tell us.
---
lisp/net/tramp-sh.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 6a82fef..3399b96 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -3785,7 +3785,8 @@ file-notify events."
(intern-soft
(replace-regexp-in-string "_" "-" (downcase x))))
(split-string (match-string 1 line) "," 'omit))
- (match-string 3 line))))
+ (or (match-string 3 line)
+ (file-name-nondirectory (process-get proc 'watch-name))))))
;; Usually, we would add an Emacs event now. Unfortunately,
;; `unread-command-events' does not accept several events at
;; once. Therefore, we apply the handler directly.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master c306848: Fix an error in tramp-sh-inotifywait-process-filter,
Michael Albinus <=