aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/textmodes/ispell.el10
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index ae2900f4f9a..c888cf09981 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -204,6 +204,12 @@
204(defconst version20p (string-match "20\\.[0-9]+\\.[0-9]+" emacs-version) 204(defconst version20p (string-match "20\\.[0-9]+\\.[0-9]+" emacs-version)
205 "Non nil if using emacs version 20.") 205 "Non nil if using emacs version 20.")
206 206
207(defconst ispell-graphic-p
208 (if (fboundp 'display-graphic-p)
209 (display-graphic-p)
210 xemacsp)
211 "True if running on a `graphics capable' display.")
212
207(and (not version18p) 213(and (not version18p)
208 (not (boundp 'epoch::version)) 214 (not (boundp 'epoch::version))
209 (defalias 'ispell-check-version 'check-ispell-version)) 215 (defalias 'ispell-check-version 'check-ispell-version))
@@ -270,7 +276,7 @@ This minimizes redisplay thrashing."
270 :type 'boolean 276 :type 'boolean
271 :group 'ispell) 277 :group 'ispell)
272 278
273(defcustom ispell-choices-win-default-height (if xemacsp 3 2) 279(defcustom ispell-choices-win-default-height (if ispell-graphic-p 3 2)
274 "*The default size of the `*Choices*' window, including mode line. 280 "*The default size of the `*Choices*' window, including mode line.
275Must be greater than 1. 281Must be greater than 1.
276XEmacs modeline is thicker than a line of text, so it partially covers the 282XEmacs modeline is thicker than a line of text, so it partially covers the
@@ -1830,7 +1836,7 @@ SPC: Accept word this time.
1830 (save-window-excursion 1836 (save-window-excursion
1831 (if ispell-help-in-bufferp 1837 (if ispell-help-in-bufferp
1832 (progn 1838 (progn
1833 (ispell-overlay-window (if xemacsp 5 4)) 1839 (ispell-overlay-window (if ispell-graphic-p 5 4))
1834 (switch-to-buffer (get-buffer-create "*Ispell Help*")) 1840 (switch-to-buffer (get-buffer-create "*Ispell Help*"))
1835 (insert (concat help-1 "\n" help-2 "\n" help-3)) 1841 (insert (concat help-1 "\n" help-2 "\n" help-3))
1836 (sit-for 5) 1842 (sit-for 5)