]> git.eshelyaron.com Git - emacs.git/commitdiff
(ispell): If the buffer to spell has no associated file, or, the
authorBrian Fox <bfox@gnu.org>
Mon, 25 Oct 1993 06:18:23 +0000 (06:18 +0000)
committerBrian Fox <bfox@gnu.org>
Mon, 25 Oct 1993 06:18:23 +0000 (06:18 +0000)
associated file has a special handler, use a temporary file with the
buffer contents to pass to the local ispell process.

lisp/textmodes/ispell4.el

index f448ffe2f72c3c8251bb77b9a85552216b4c2dda..a4f55710ceb4cb7a011e67941044e2c08bd92439 100644 (file)
@@ -273,7 +273,8 @@ q, \\[keyboard-quit]        Leave the command loop.  You can come back later with \\[is
          (delete-temp nil))
       (unwind-protect
          (progn
-           (cond ((null filename)
+           (cond ((or (null filename)
+                      (find-file-name-handler buffer-file-name))
                   (setq filename (make-temp-name "/usr/tmp/ispell"))
                   (setq delete-temp t)
                   (write-region (point-min) (point-max) filename))