changeset 4889:8b896067d6fb

(ispell): If the buffer to spell has no associated file, or, the associated file has a special handler, use a temporary file with the buffer contents to pass to the local ispell process.
author Brian Fox <bfox@gnu.org>
date Mon, 25 Oct 1993 06:18:23 +0000
parents a58a505c42d9
children dab300dfe449
files lisp/textmodes/=ispell4.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/=ispell4.el	Mon Oct 25 06:13:41 1993 +0000
+++ b/lisp/textmodes/=ispell4.el	Mon Oct 25 06:18:23 1993 +0000
@@ -273,7 +273,8 @@
 	  (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))