From 6351296c27dd984d59c777509b021b1cb376354e Mon Sep 17 00:00:00 2001 From: Brian Fox Date: Mon, 25 Oct 1993 06:18:23 +0000 Subject: [PATCH] (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. --- lisp/textmodes/ispell4.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/textmodes/ispell4.el b/lisp/textmodes/ispell4.el index f448ffe2f72..a4f55710ceb 100644 --- a/lisp/textmodes/ispell4.el +++ b/lisp/textmodes/ispell4.el @@ -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)) -- 2.39.5