bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#34196: Error in auto-revert-buffers: Wrong type argument


From: Alex Branham
Subject: bug#34196: Error in auto-revert-buffers: Wrong type argument
Date: Wed, 13 Feb 2019 13:00:43 -0600
User-agent: mu4e 1.1.0; emacs 27.0.50

Hi Michael -

The fix for this bug seems to cause issues if default-directory is nil
for any buffer. In particular, you get a wrong type argument where
auto-revert-buffers is expecting a string instead of nil.

This change fixes the issue for me:

Thanks,
Alex

diff --git a/lisp/autorevert.el b/lisp/autorevert.el
index 150693baf1..318b10d4a8 100644
--- a/lisp/autorevert.el
+++ b/lisp/autorevert.el
@@ -773,7 +773,8 @@ the timer when no buffers need to be checked."
                        (mapcar
                         (lambda (buf)
                           (with-current-buffer buf
-                            (and (or (not (file-remote-p default-directory))
+                            (and default-directory
+                                 (or (not (file-remote-p default-directory))
                                      (file-remote-p default-directory nil t))
                                  buf)))
                         bufs)))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]