diff options
| author | Richard M. Stallman | 2001-10-28 14:21:59 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2001-10-28 14:21:59 +0000 |
| commit | bb41818d98843bc03338434e4e5cbe0700b9cc2e (patch) | |
| tree | 5a5516833773cb3b4f2b9f42c285cd950e784352 | |
| parent | 36656ee3bcb7c8bae14b5b4e7eb3c443bd240062 (diff) | |
| download | emacs-bb41818d98843bc03338434e4e5cbe0700b9cc2e.tar.gz emacs-bb41818d98843bc03338434e4e5cbe0700b9cc2e.zip | |
(version18p, version20p): Vars deleted.
All uses removed--assume Emacs version is >= 20.
| -rw-r--r-- | lisp/textmodes/ispell.el | 30 |
1 files changed, 6 insertions, 24 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 24a96213eaf..178363e1beb 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el | |||
| @@ -204,23 +204,13 @@ | |||
| 204 | (defconst xemacsp (string-match "Lucid\\|XEmacs" emacs-version) | 204 | (defconst xemacsp (string-match "Lucid\\|XEmacs" emacs-version) |
| 205 | "Non nil if using XEmacs.") | 205 | "Non nil if using XEmacs.") |
| 206 | 206 | ||
| 207 | ;;;###autoload | ||
| 208 | (defconst version18p (string-match "18\\.[0-9]+\\.[0-9]+" emacs-version) | ||
| 209 | "Non nil if using emacs version 18.") | ||
| 210 | |||
| 211 | ;;;###autoload | ||
| 212 | (defconst version20p (string-match "20\\.[0-9]+\\.[0-9]+" emacs-version) | ||
| 213 | "Non nil if using emacs version 20.") | ||
| 214 | |||
| 215 | (defconst ispell-graphic-p | 207 | (defconst ispell-graphic-p |
| 216 | (if (fboundp 'display-graphic-p) | 208 | (if (fboundp 'display-graphic-p) |
| 217 | (display-graphic-p) | 209 | (display-graphic-p) |
| 218 | xemacsp) | 210 | xemacsp) |
| 219 | "True if running on a `graphics capable' display.") | 211 | "True if running on a `graphics capable' display.") |
| 220 | 212 | ||
| 221 | (and (not version18p) | 213 | (defalias 'ispell-check-version 'check-ispell-version) |
| 222 | (not (boundp 'epoch::version)) | ||
| 223 | (defalias 'ispell-check-version 'check-ispell-version)) | ||
| 224 | 214 | ||
| 225 | ;;; ********************************************************************** | 215 | ;;; ********************************************************************** |
| 226 | ;;; The following variables should be set according to personal preference | 216 | ;;; The following variables should be set according to personal preference |
| @@ -818,7 +808,6 @@ and added as a submenu of the \"Edit\" menu.") | |||
| 818 | (defvar ispell-menu-map-needed | 808 | (defvar ispell-menu-map-needed |
| 819 | ;; only needed when not version 18 and not XEmacs. | 809 | ;; only needed when not version 18 and not XEmacs. |
| 820 | (and (not ispell-menu-map) | 810 | (and (not ispell-menu-map) |
| 821 | (not version18p) | ||
| 822 | (not xemacsp) | 811 | (not xemacsp) |
| 823 | 'reload)) | 812 | 'reload)) |
| 824 | 813 | ||
| @@ -941,7 +930,6 @@ and added as a submenu of the \"Edit\" menu.") | |||
| 941 | 930 | ||
| 942 | ;;; XEmacs versions 19 & 20 | 931 | ;;; XEmacs versions 19 & 20 |
| 943 | (if (and xemacsp | 932 | (if (and xemacsp |
| 944 | (not version18p) | ||
| 945 | (featurep 'menubar) | 933 | (featurep 'menubar) |
| 946 | (null ispell-menu-xemacs) | 934 | (null ispell-menu-xemacs) |
| 947 | (not (and (boundp 'infodock-version) infodock-version))) | 935 | (not (and (boundp 'infodock-version) infodock-version))) |
| @@ -1888,7 +1876,7 @@ SPC: Accept word this time. | |||
| 1888 | (kill-buffer "*Ispell Help*")) | 1876 | (kill-buffer "*Ispell Help*")) |
| 1889 | (select-window (minibuffer-window)) | 1877 | (select-window (minibuffer-window)) |
| 1890 | (erase-buffer) | 1878 | (erase-buffer) |
| 1891 | (if (not version18p) (message nil)) | 1879 | (message nil) |
| 1892 | ;;(set-minibuffer-window (selected-window)) | 1880 | ;;(set-minibuffer-window (selected-window)) |
| 1893 | (enlarge-window 2) | 1881 | (enlarge-window 2) |
| 1894 | (insert (concat help-1 "\n" help-2 "\n" help-3)) | 1882 | (insert (concat help-1 "\n" help-2 "\n" help-3)) |
| @@ -2058,8 +2046,7 @@ The variable `ispell-highlight-face' selects the face to use for highlighting." | |||
| 2058 | (cond | 2046 | (cond |
| 2059 | (xemacsp | 2047 | (xemacsp |
| 2060 | (ispell-highlight-spelling-error-xemacs start end highlight)) | 2048 | (ispell-highlight-spelling-error-xemacs start end highlight)) |
| 2061 | ((and (not version18p) | 2049 | ((and (featurep 'faces) |
| 2062 | (featurep 'faces) | ||
| 2063 | (or (and (fboundp 'display-color-p) (display-color-p)) | 2050 | (or (and (fboundp 'display-color-p) (display-color-p)) |
| 2064 | window-system)) | 2051 | window-system)) |
| 2065 | (ispell-highlight-spelling-error-overlay start end highlight)) | 2052 | (ispell-highlight-spelling-error-overlay start end highlight)) |
| @@ -2234,9 +2221,7 @@ Keeps argument list for future ispell invocations for no async support." | |||
| 2234 | (set-process-coding-system ispell-process (ispell-get-coding-system) | 2221 | (set-process-coding-system ispell-process (ispell-get-coding-system) |
| 2235 | (ispell-get-coding-system))) | 2222 | (ispell-get-coding-system))) |
| 2236 | ;; Get version ID line | 2223 | ;; Get version ID line |
| 2237 | (if (not version18p) | 2224 | (ispell-accept-output 3) |
| 2238 | (ispell-accept-output 3) | ||
| 2239 | (ispell-accept-output)) | ||
| 2240 | ;; get more output if filter empty? | 2225 | ;; get more output if filter empty? |
| 2241 | (if (null ispell-filter) (ispell-accept-output 3)) | 2226 | (if (null ispell-filter) (ispell-accept-output 3)) |
| 2242 | (cond ((null ispell-filter) | 2227 | (cond ((null ispell-filter) |
| @@ -2245,9 +2230,7 @@ Keeps argument list for future ispell invocations for no async support." | |||
| 2245 | (stringp (car ispell-filter)) | 2230 | (stringp (car ispell-filter)) |
| 2246 | (if (string-match "warning: " (car ispell-filter)) | 2231 | (if (string-match "warning: " (car ispell-filter)) |
| 2247 | (progn | 2232 | (progn |
| 2248 | (if (not version18p) | 2233 | (ispell-accept-output 3) ; was warn msg. |
| 2249 | (ispell-accept-output 3) ; was warn msg. | ||
| 2250 | (ispell-accept-output)) | ||
| 2251 | (stringp (car ispell-filter))) | 2234 | (stringp (car ispell-filter))) |
| 2252 | (null (cdr ispell-filter))) | 2235 | (null (cdr ispell-filter))) |
| 2253 | (string-match "^@(#) " (car ispell-filter))) | 2236 | (string-match "^@(#) " (car ispell-filter))) |
| @@ -2286,8 +2269,7 @@ With NO-ERROR, just return non-nil if there was no Ispell running." | |||
| 2286 | (kill-process ispell-process)) | 2269 | (kill-process ispell-process)) |
| 2287 | (while (not (or (eq (ispell-process-status) 'exit) | 2270 | (while (not (or (eq (ispell-process-status) 'exit) |
| 2288 | (eq (ispell-process-status) 'signal))) | 2271 | (eq (ispell-process-status) 'signal))) |
| 2289 | (if (or xemacsp version20p) (sleep-for 0.25) | 2272 | (sleep-for 0.25))) |
| 2290 | (sleep-for 0 250)))) | ||
| 2291 | ;; synchronous processes | 2273 | ;; synchronous processes |
| 2292 | (ispell-send-string "\n") ; make sure side effects occurred. | 2274 | (ispell-send-string "\n") ; make sure side effects occurred. |
| 2293 | (kill-buffer ispell-output-buffer) | 2275 | (kill-buffer ispell-output-buffer) |