diff options
| author | Richard M. Stallman | 2004-11-25 03:06:16 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2004-11-25 03:06:16 +0000 |
| commit | 0a6d03627fa8d7b018d91d7a0af1c15a72a26310 (patch) | |
| tree | f9625832a4bbc0dff4db2958a7242d376f439a96 | |
| parent | bde94a7f475a7b6ecdfd1def20f1f459c7b97c00 (diff) | |
| download | emacs-0a6d03627fa8d7b018d91d7a0af1c15a72a26310.tar.gz emacs-0a6d03627fa8d7b018d91d7a0af1c15a72a26310.zip | |
(ispell-check-version): If default-directory is nonexistent, use home dir.
| -rw-r--r-- | lisp/textmodes/ispell.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index d221d39180f..f6a1c1d5cce 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el | |||
| @@ -769,6 +769,8 @@ Otherwise returns the library directory name, if that is defined." | |||
| 769 | (if buf (kill-buffer buf))) | 769 | (if buf (kill-buffer buf))) |
| 770 | (set-buffer (get-buffer-create " *ispell-tmp*")) | 770 | (set-buffer (get-buffer-create " *ispell-tmp*")) |
| 771 | (erase-buffer) | 771 | (erase-buffer) |
| 772 | (unless (file-exists-p default-directory) | ||
| 773 | (setq default-directory (expand-file-name "~/"))) | ||
| 772 | (setq status (call-process | 774 | (setq status (call-process |
| 773 | ispell-program-name nil t nil | 775 | ispell-program-name nil t nil |
| 774 | ;; aspell doesn't accept the -vv switch. | 776 | ;; aspell doesn't accept the -vv switch. |