diff options
| author | Richard M. Stallman | 2002-07-29 17:29:31 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-07-29 17:29:31 +0000 |
| commit | 6daa20b07490957736ea8e1f3238694479585071 (patch) | |
| tree | 9e3a30ea9816dd62e70499aa1c0921c79482a00b | |
| parent | da5d3a563fc8c8f4adfa5031c2baa8236100c35f (diff) | |
| download | emacs-6daa20b07490957736ea8e1f3238694479585071.tar.gz emacs-6daa20b07490957736ea8e1f3238694479585071.zip | |
(check-ispell-version): Bind default-directory
to avoid errors. Kill the old temp buffer at the beginning.
| -rw-r--r-- | lisp/textmodes/ispell.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index d1547c87820..30b1c71f97b 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el | |||
| @@ -726,8 +726,11 @@ Otherwise returns the library directory name, if that is defined." | |||
| 726 | (let ((case-fold-search-val case-fold-search) | 726 | (let ((case-fold-search-val case-fold-search) |
| 727 | ;; avoid bugs when syntax of `.' changes in various default modes | 727 | ;; avoid bugs when syntax of `.' changes in various default modes |
| 728 | (default-major-mode 'fundamental-mode) | 728 | (default-major-mode 'fundamental-mode) |
| 729 | (default-directory temporary-file-directory) | ||
| 729 | result status) | 730 | result status) |
| 730 | (save-excursion | 731 | (save-excursion |
| 732 | (let ((buf (get-buffer " *ispell-tmp*"))) | ||
| 733 | (if buf (kill-buffer buf))) | ||
| 731 | (set-buffer (get-buffer-create " *ispell-tmp*")) | 734 | (set-buffer (get-buffer-create " *ispell-tmp*")) |
| 732 | (erase-buffer) | 735 | (erase-buffer) |
| 733 | (setq status (call-process | 736 | (setq status (call-process |