summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorAgustín Martín <agustin.martin@hispalinux.es>2010-06-25 10:28:01 +0200
committerAgustín Martín <agustin.martin@hispalinux.es>2010-06-25 10:28:01 +0200
commit9f446b6ff11425a6efde82180c01b3660c8b3a0c (patch)
tree02bd9b925653dfe2065f4995656b0a7c662ec6f8 /lisp
parentc11a5a9cab09a5dba6281f01e4eb4eb1e6a9e936 (diff)
downloademacs-9f446b6ff11425a6efde82180c01b3660c8b3a0c.tar.gz
ispell.el (ispell-init-process): Make sure ispell and default directories are expanded.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/textmodes/ispell.el6
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."
;; Restart check for personal dictionary is done in
;; `ispell-internal-change-dictionary', called from `ispell-buffer-local-dict'
(or (or ispell-local-pdict ispell-personal-dictionary)
- (equal ispell-process-directory default-directory)))
+ (equal ispell-process-directory (expand-file-name default-directory))))
(setq ispell-filter nil ispell-filter-continue nil)
;; may need to restart to select new personal dictionary.
(ispell-kill-ispell t)
@@ -2638,13 +2638,13 @@ Keeps argument list for future ispell invocations for no async support."
(if (window-minibuffer-p)
(if (fboundp 'minibuffer-selected-window)
;; Assign ispell process to parent buffer
- (setq ispell-process-directory default-directory
+ (setq ispell-process-directory (expand-file-name default-directory)
ispell-process-buffer-name (window-buffer (minibuffer-selected-window)))
;; Force `ispell-process-directory' to $HOME and use a dummy name
(setq ispell-process-directory (expand-file-name "~/")
ispell-process-buffer-name " * Minibuffer-has-spellcheck-enabled"))
;; Not in a minibuffer
- (setq ispell-process-directory default-directory
+ (setq ispell-process-directory (expand-file-name default-directory)
ispell-process-buffer-name (buffer-name)))
(if ispell-async-processp
(set-process-filter ispell-process 'ispell-filter))