Commit 6351296c authored by Brian Fox's avatar Brian Fox
Browse files

(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.
parent 57e15005
......@@ -273,7 +273,8 @@ q, \\[keyboard-quit] Leave the command loop. You can come back later with \\[is
(delete-temp nil))
(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))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment