diff options
| author | Reuben Thomas | 2016-12-04 14:38:51 +0000 |
|---|---|---|
| committer | Reuben Thomas | 2016-12-13 19:43:49 +0000 |
| commit | 8886f156b305b76ffd69a96d7470eb3b700f43a4 (patch) | |
| tree | e6041906310e88a9c50aef03597ad13bfea444d0 | |
| parent | 6e88249cdcfefee6ed8f27ff4e93e433ac58ada0 (diff) | |
| download | emacs-8886f156b305b76ffd69a96d7470eb3b700f43a4.tar.gz emacs-8886f156b305b76ffd69a96d7470eb3b700f43a4.zip | |
Remove XEmacs-specific minibuffer handling code from ispell.el
* lisp/textmodes/ispell.el (ispell-init-process): Assume we are not in
XEmacs.
| -rw-r--r-- | lisp/textmodes/ispell.el | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 8978d1460bc..c2d6d60bb79 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el | |||
| @@ -2794,7 +2794,7 @@ Keeps argument list for future Ispell invocations for no async support." | |||
| 2794 | (current-ispell-directory default-directory) ;FIXME: Unused? | 2794 | (current-ispell-directory default-directory) ;FIXME: Unused? |
| 2795 | ;; The default directory for the process. | 2795 | ;; The default directory for the process. |
| 2796 | ;; Use "~/" as default-directory unless using Ispell with per-dir | 2796 | ;; Use "~/" as default-directory unless using Ispell with per-dir |
| 2797 | ;; personal dictionaries and not in a minibuffer under XEmacs | 2797 | ;; personal dictionaries |
| 2798 | (default-directory | 2798 | (default-directory |
| 2799 | (if (or ispell-really-aspell | 2799 | (if (or ispell-really-aspell |
| 2800 | ispell-really-hunspell | 2800 | ispell-really-hunspell |
| @@ -2807,9 +2807,8 @@ Keeps argument list for future Ispell invocations for no async support." | |||
| 2807 | ".ispell_" | 2807 | ".ispell_" |
| 2808 | (or dict-bname | 2808 | (or dict-bname |
| 2809 | "default"))))) | 2809 | "default"))))) |
| 2810 | ;; Ispell, in a minibuffer, and XEmacs | 2810 | ;; Ispell, in a minibuffer |
| 2811 | (and (window-minibuffer-p) | 2811 | (window-minibuffer-p)) |
| 2812 | (not (fboundp 'minibuffer-selected-window)))) | ||
| 2813 | (expand-file-name "~/") | 2812 | (expand-file-name "~/") |
| 2814 | (expand-file-name default-directory)))) | 2813 | (expand-file-name default-directory)))) |
| 2815 | ;; Check if process needs restart | 2814 | ;; Check if process needs restart |
| @@ -2841,12 +2840,11 @@ Keeps argument list for future Ispell invocations for no async support." | |||
| 2841 | 2840 | ||
| 2842 | (unless (equal ispell-process-directory (expand-file-name "~/")) | 2841 | (unless (equal ispell-process-directory (expand-file-name "~/")) |
| 2843 | ;; At this point, `ispell-process-directory' will be "~/" unless using | 2842 | ;; At this point, `ispell-process-directory' will be "~/" unless using |
| 2844 | ;; Ispell with directory-specific dicts and not in XEmacs minibuffer. | 2843 | ;; Ispell with directory-specific dicts. |
| 2845 | ;; If not, kill ispell process when killing buffer. It may be in a | 2844 | ;; If not, kill ispell process when killing buffer. It may be in a |
| 2846 | ;; removable device that would otherwise become un-mountable. | 2845 | ;; removable device that would otherwise become un-mountable. |
| 2847 | (with-current-buffer | 2846 | (with-current-buffer |
| 2848 | (if (and (window-minibuffer-p) ;; In minibuffer | 2847 | (if (window-minibuffer-p) ;; In minibuffer |
| 2849 | (fboundp 'minibuffer-selected-window)) ;; Not XEmacs. | ||
| 2850 | ;; In this case kill ispell only when parent buffer is killed | 2848 | ;; In this case kill ispell only when parent buffer is killed |
| 2851 | ;; to avoid over and over ispell kill. | 2849 | ;; to avoid over and over ispell kill. |
| 2852 | (window-buffer (minibuffer-selected-window)) | 2850 | (window-buffer (minibuffer-selected-window)) |