aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1992-06-02 04:00:54 +0000
committerRichard M. Stallman1992-06-02 04:00:54 +0000
commit6370a710ed28794d17cb27262bf995e175473cb0 (patch)
tree52d9a42c01641a6d3d2404e0f908dfc8eb410e5c
parent31c75fa7308daa14eb7d36f8c266ec5e2985ba7f (diff)
downloademacs-6370a710ed28794d17cb27262bf995e175473cb0.tar.gz
emacs-6370a710ed28794d17cb27262bf995e175473cb0.zip
*** empty log message ***
-rw-r--r--lisp/textmodes/ispell4.el62
1 files changed, 30 insertions, 32 deletions
diff --git a/lisp/textmodes/ispell4.el b/lisp/textmodes/ispell4.el
index d0f653682f7..caadb0b2e42 100644
--- a/lisp/textmodes/ispell4.el
+++ b/lisp/textmodes/ispell4.el
@@ -2,20 +2,20 @@
2 2
3;;Copyright (C) 1990, 1991 Free Software Foundation, Inc. 3;;Copyright (C) 1990, 1991 Free Software Foundation, Inc.
4;; 4;;
5;;This file is part of GNU ISPELL. 5;;This file is part of GNU Emacs.
6;; 6;;
7;;GNU ISPELL is free software; you can redistribute it and/or modify 7;;GNU Emacs is free software; you can redistribute it and/or modify
8;;it under the terms of the GNU General Public License as published by 8;;it under the terms of the GNU General Public License as published by
9;;the Free Software Foundation; either version 2, or (at your option) 9;;the Free Software Foundation; either version 2, or (at your option)
10;;any later version. 10;;any later version.
11;; 11;;
12;;GNU ISPELL is distributed in the hope that it will be useful, 12;;GNU Emacs is distributed in the hope that it will be useful,
13;;but WITHOUT ANY WARRANTY; without even the implied warranty of 13;;but WITHOUT ANY WARRANTY; without even the implied warranty of
14;;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14;;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15;;GNU General Public License for more details. 15;;GNU General Public License for more details.
16;; 16;;
17;;You should have received a copy of the GNU General Public License 17;;You should have received a copy of the GNU General Public License
18;;along with GNU ISPELL; see the file COPYING. If not, write to 18;;along with GNU Emacs; see the file COPYING. If not, write to
19;;the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 19;;the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
20 20
21(defvar ispell-have-new-look t 21(defvar ispell-have-new-look t
@@ -119,22 +119,22 @@ that have not already been dumped will be lost."
119(defun ispell-cmd (&rest strings) 119(defun ispell-cmd (&rest strings)
120 "Send a command to ispell. Choices are: 120 "Send a command to ispell. Choices are:
121 121
122word any word is checked for spelling. Result is 122WORD Check spelling of WORD. Result is
123 123
124 nil not found 124 nil not found
125 t spelled ok 125 t spelled ok
126 list of strings near misses 126 list of strings near misses
127 127
128:file filename scan the named file, and print the file offsets of 128:file FILENAME scan the named file, and print the file offsets of
129 any misspelled words 129 any misspelled words
130 130
131:insert word put word in private dictonary 131:insert WORD put word in private dictonary
132 132
133:accept word don't complain about word any more this session 133:accept WORD don't complain about word any more this session
134 134
135:dump write out the current private dictionary, if necessary. 135:dump write out the current private dictionary, if necessary.
136 136
137:reload reread ~/ispell.words 137:reload reread `~/ispell.words'
138 138
139:tex 139:tex
140:troff 140:troff
@@ -188,8 +188,8 @@ word any word is checked for spelling. Result is
188 188
189;;;###autoload 189;;;###autoload
190(defun ispell (&optional buf start end) 190(defun ispell (&optional buf start end)
191 "Run ispell over current buffer's visited file. 191 "Run Ispell over current buffer's visited file.
192First the file is scanned for misspelled words, then ispell 192First the file is scanned for misspelled words, then Ispell
193enters a loop with the following commands for every misspelled word: 193enters a loop with the following commands for every misspelled word:
194 194
195DIGIT Near miss selector. If the misspelled word is close to 195DIGIT Near miss selector. If the misspelled word is close to
@@ -291,22 +291,24 @@ q, \\[keyboard-quit] Leave the command loop. You can come back later with \\[is
291 (message "Bad ispell internal list")))) 291 (message "Bad ispell internal list"))))
292 (ispell-dump)) 292 (ispell-dump))
293 293
294
295;;;###autoload 294;;;###autoload
296(defun ispell-word () 295(defun ispell-word (&optional resume)
297 "Check the spelling of the word under the cursor. 296 "Check the spelling of the word under the cursor.
298See `ispell' for more information." 297See `ispell' for more information.
299 (interactive) 298With a prefix argument, resume handling of the previous Ispell command."
300 (condition-case err 299 (interactive "P")
301 (catch 'quit 300 (if resume
302 (save-window-excursion 301 (ispell-next)
303 (ispell-point (point) "at point.")) 302 (condition-case err
304 (ispell-dump)) 303 (catch 'quit
305 (ispell-startup-error 304 (save-window-excursion
306 (cond ((y-or-n-p "Problem starting ispell, use old-style spell instead? ") 305 (ispell-point (point) "at point."))
307 (load-library "spell") 306 (ispell-dump))
308 (define-key esc-map "$" 'spell-word) 307 (ispell-startup-error
309 (spell-word)))))) 308 (cond ((y-or-n-p "Problem starting ispell, use old-style spell instead? ")
309 (load-library "spell")
310 (define-key esc-map "$" 'spell-word)
311 (spell-word)))))))
310;;;###autoload 312;;;###autoload
311(define-key esc-map "$" 'ispell-word) 313(define-key esc-map "$" 'ispell-word)
312 314
@@ -533,10 +535,6 @@ L lookup; Q quit\n")
533 (interactive) 535 (interactive)
534 (ispell-cmd ":reload")) 536 (ispell-cmd ":reload"))
535 537
536(define-key esc-map "$" 'ispell-word)
537;; This conflicts with set-selective-display. What should we do???
538;;(define-key ctl-x-map "$" 'ispell-next)
539
540(defun batch-make-ispell () 538(defun batch-make-ispell ()
541 (byte-compile-file "ispell.el") 539 (byte-compile-file "ispell.el")
542 (find-file "ispell.texinfo") 540 (find-file "ispell.texinfo")