aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAgustín Martín2010-05-13 12:36:03 +0200
committerAgustín Martín2010-05-13 12:36:03 +0200
commit57ff5d7b960ff48cba12d91d93f420d62cbcdf63 (patch)
tree0ef3ea993a9bb7389c88af3000584b0fa2070faf
parent3369c79f8a06eeca939603781499d903a25896f4 (diff)
downloademacs-57ff5d7b960ff48cba12d91d93f420d62cbcdf63.tar.gz
emacs-57ff5d7b960ff48cba12d91d93f420d62cbcdf63.zip
Do not ispell-kill-ispell over and over when spellchecking minibuffer contents.
* ispell.el (ispell-init-process): Do not kill ispell process everytime when spellchecking from the minibuffer (bug#6143).
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/textmodes/ispell.el17
2 files changed, 19 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4b73a4fd6df..8c4b4d5c40d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12010-05-13 Agustín Martín <agustin.martin@hispalinux.es>
2
3 * ispell.el (ispell-init-process): Do not kill ispell process
4 everytime when spellchecking from the minibuffer (bug#6143).
5
12010-05-13 Stefan Monnier <monnier@iro.umontreal.ca> 62010-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * progmodes/sh-script.el (sh-mode): Use define-derived-mode. 8 * progmodes/sh-script.el (sh-mode): Use define-derived-mode.
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index c88b32f64cc..94eb721e4cf 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -2630,11 +2630,22 @@ Keeps argument list for future ispell invocations for no async support."
2630 (or ispell-local-dictionary ispell-dictionary "default")) 2630 (or ispell-local-dictionary ispell-dictionary "default"))
2631 (sit-for 0) 2631 (sit-for 0)
2632 (setq ispell-library-directory (ispell-check-version) 2632 (setq ispell-library-directory (ispell-check-version)
2633 ispell-process-directory default-directory
2634 ispell-process (ispell-start-process) 2633 ispell-process (ispell-start-process)
2635 ispell-filter nil 2634 ispell-filter nil
2636 ispell-filter-continue nil 2635 ispell-filter-continue nil)
2637 ispell-process-buffer-name (buffer-name)) 2636 ;; When spellchecking minibuffer contents, make sure ispell process
2637 ;; is not restarted every time the minibuffer is killed.
2638 (if (window-minibuffer-p)
2639 (if (fboundp 'minibuffer-selected-window)
2640 ;; Assign ispell process to parent buffer
2641 (setq ispell-process-directory default-directory
2642 ispell-process-buffer-name (window-buffer (minibuffer-selected-window)))
2643 ;; Force `ispell-process-directory' to $HOME and use a dummy name
2644 (setq ispell-process-directory (expand-file-name "~/")
2645 ispell-process-buffer-name " * Minibuffer-has-spellcheck-enabled"))
2646 ;; Not in a minibuffer
2647 (setq ispell-process-directory default-directory
2648 ispell-process-buffer-name (buffer-name)))
2638 (if ispell-async-processp 2649 (if ispell-async-processp
2639 (set-process-filter ispell-process 'ispell-filter)) 2650 (set-process-filter ispell-process 'ispell-filter))
2640 ;; protect against bogus binding of `enable-multibyte-characters' in XEmacs 2651 ;; protect against bogus binding of `enable-multibyte-characters' in XEmacs