]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix running spell-checking in remote buffers
authorEli Zaretskii <eliz@gnu.org>
Sat, 17 Sep 2022 07:10:10 +0000 (10:10 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 17 Sep 2022 07:10:10 +0000 (10:10 +0300)
* lisp/textmodes/ispell.el (ispell-with-safe-default-directory):
Don't use remote 'default-directory' when running the speller.
(Bug#57649)

lisp/textmodes/ispell.el

index 4b5ed98ecc9ac66da876c3bb87a0abdd1858f4e9..b3fb326cf9be6753d6e2306078a5ec7d86891999 100644 (file)
@@ -740,7 +740,8 @@ Otherwise returns the library directory name, if that is defined."
   "Execute the forms in BODY with a reasonable `default-directory'."
   (declare (indent 0) (debug t))
   `(let ((default-directory default-directory))
-     (unless (file-accessible-directory-p default-directory)
+     (unless (and (not (file-remote-p default-directory))
+                  (file-accessible-directory-p default-directory))
        (setq default-directory (expand-file-name "~/")))
      ,@body))