diff options
| author | Agustín Martín | 2010-06-25 10:28:01 +0200 |
|---|---|---|
| committer | Agustín Martín | 2010-06-25 10:28:01 +0200 |
| commit | 9f446b6ff11425a6efde82180c01b3660c8b3a0c (patch) | |
| tree | 02bd9b925653dfe2065f4995656b0a7c662ec6f8 | |
| parent | c11a5a9cab09a5dba6281f01e4eb4eb1e6a9e936 (diff) | |
| download | emacs-9f446b6ff11425a6efde82180c01b3660c8b3a0c.tar.gz emacs-9f446b6ff11425a6efde82180c01b3660c8b3a0c.zip | |
ispell.el (ispell-init-process): Make sure ispell and default directories are expanded.
| -rw-r--r-- | lisp/textmodes/ispell.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 4d0cc842351..a9915fcfb17 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el | |||
| @@ -2622,7 +2622,7 @@ Keeps argument list for future ispell invocations for no async support." | |||
| 2622 | ;; Restart check for personal dictionary is done in | 2622 | ;; Restart check for personal dictionary is done in |
| 2623 | ;; `ispell-internal-change-dictionary', called from `ispell-buffer-local-dict' | 2623 | ;; `ispell-internal-change-dictionary', called from `ispell-buffer-local-dict' |
| 2624 | (or (or ispell-local-pdict ispell-personal-dictionary) | 2624 | (or (or ispell-local-pdict ispell-personal-dictionary) |
| 2625 | (equal ispell-process-directory default-directory))) | 2625 | (equal ispell-process-directory (expand-file-name default-directory)))) |
| 2626 | (setq ispell-filter nil ispell-filter-continue nil) | 2626 | (setq ispell-filter nil ispell-filter-continue nil) |
| 2627 | ;; may need to restart to select new personal dictionary. | 2627 | ;; may need to restart to select new personal dictionary. |
| 2628 | (ispell-kill-ispell t) | 2628 | (ispell-kill-ispell t) |
| @@ -2638,13 +2638,13 @@ Keeps argument list for future ispell invocations for no async support." | |||
| 2638 | (if (window-minibuffer-p) | 2638 | (if (window-minibuffer-p) |
| 2639 | (if (fboundp 'minibuffer-selected-window) | 2639 | (if (fboundp 'minibuffer-selected-window) |
| 2640 | ;; Assign ispell process to parent buffer | 2640 | ;; Assign ispell process to parent buffer |
| 2641 | (setq ispell-process-directory default-directory | 2641 | (setq ispell-process-directory (expand-file-name default-directory) |
| 2642 | ispell-process-buffer-name (window-buffer (minibuffer-selected-window))) | 2642 | ispell-process-buffer-name (window-buffer (minibuffer-selected-window))) |
| 2643 | ;; Force `ispell-process-directory' to $HOME and use a dummy name | 2643 | ;; Force `ispell-process-directory' to $HOME and use a dummy name |
| 2644 | (setq ispell-process-directory (expand-file-name "~/") | 2644 | (setq ispell-process-directory (expand-file-name "~/") |
| 2645 | ispell-process-buffer-name " * Minibuffer-has-spellcheck-enabled")) | 2645 | ispell-process-buffer-name " * Minibuffer-has-spellcheck-enabled")) |
| 2646 | ;; Not in a minibuffer | 2646 | ;; Not in a minibuffer |
| 2647 | (setq ispell-process-directory default-directory | 2647 | (setq ispell-process-directory (expand-file-name default-directory) |
| 2648 | ispell-process-buffer-name (buffer-name))) | 2648 | ispell-process-buffer-name (buffer-name))) |
| 2649 | (if ispell-async-processp | 2649 | (if ispell-async-processp |
| 2650 | (set-process-filter ispell-process 'ispell-filter)) | 2650 | (set-process-filter ispell-process 'ispell-filter)) |