55
|
1 ;;This is the GNU EMACS interface to GNU ISPELL version 3.
|
317
|
2 ;; Copyright (C) 1990, 1991 Free Software Foundation, Inc.
|
55
|
3 ;;
|
|
4 ;;This file is part of GNU ISPELL.
|
|
5 ;;
|
|
6 ;;GNU ISPELL is free software; you can redistribute it and/or modify
|
|
7 ;;it under the terms of the GNU General Public License as published by
|
317
|
8 ;;the Free Software Foundation; either version 2, or (at your option)
|
55
|
9 ;;any later version.
|
|
10 ;;
|
|
11 ;;GNU ISPELL is distributed in the hope that it will be useful,
|
|
12 ;;but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13 ;;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14 ;;GNU General Public License for more details.
|
|
15 ;;
|
|
16 ;;You should have received a copy of the GNU General Public License
|
|
17 ;;along with GNU ISPELL; see the file COPYING. If not, write to
|
|
18 ;;the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
19
|
|
20 (defvar ispell-have-new-look t
|
|
21 "T if default 'look' program has the -r flag.")
|
|
22
|
|
23 (defvar ispell-enable-tex-parser nil
|
|
24 "T to enable experimental tex parser in ispell for tex buffers.")
|
|
25
|
|
26 (defvar ispell-process nil "The process running ISPELL")
|
|
27 (defvar ispell-next-message nil
|
|
28 "An integer telling where in the *ispell* buffer where
|
|
29 to look for the next message from the ISPELL program.")
|
|
30
|
|
31 ;Each marker in this list points to the start of a word that
|
|
32 ;ispell thought was bad last time it did the :file command.
|
|
33 ;Notice that if the user accepts or inserts a word into his
|
|
34 ;private dictionary, then some "good" words will be on the list.
|
|
35 ;We would like to deal with this by looking up the words again just before
|
|
36 ;presenting them to the user, but that is too slow on machines
|
|
37 ;without the select system call. Therefore, see the variable
|
|
38 ;ispell-recently-accepted.
|
|
39 (defvar ispell-bad-words nil
|
|
40 "A list of markers corresponding to the output of the ISPELL :file command.")
|
|
41
|
|
42 ;list of words that the user has accepted, but that might still
|
|
43 ;be on the bad-words list
|
|
44 (defvar ispell-recently-accepted nil)
|
|
45
|
|
46 ;t when :dump command needed
|
|
47 (defvar ispell-dump-needed nil)
|
|
48
|
|
49 (defun ispell-flush-bad-words ()
|
|
50 (while ispell-bad-words
|
|
51 (if (markerp (car ispell-bad-words))
|
|
52 (set-marker (car ispell-bad-words) nil))
|
|
53 (setq ispell-bad-words (cdr ispell-bad-words)))
|
|
54 (setq ispell-recently-accepted nil))
|
|
55
|
|
56 (defun kill-ispell ()
|
|
57 "Kill the ispell process.
|
|
58 Any changes the your private dictionay
|
|
59 that have not already been dumped will be lost."
|
|
60 (interactive)
|
|
61 (if ispell-process
|
|
62 (delete-process ispell-process))
|
|
63 (setq ispell-process nil)
|
|
64 (ispell-flush-bad-words))
|
|
65
|
|
66 (put 'ispell-startup-error 'error-conditions
|
|
67 '(ispell-startup-error error))
|
|
68 (put 'ispell-startup-error 'error-message
|
|
69 "Problem starting ispell - see buffer *ispell*")
|
|
70
|
|
71 (defun start-ispell ()
|
|
72 "Start an ispell subprocess; check the version; and display the greeting."
|
|
73 (message "Starting ispell ...")
|
|
74 (let ((buf (get-buffer "*ispell*")))
|
|
75 (if buf
|
|
76 (kill-buffer buf)))
|
|
77 (condition-case err
|
|
78 (setq ispell-process (start-process "ispell" "*ispell*" "ispell" "-S"))
|
|
79 (file-error (signal 'ispell-startup-error nil)))
|
|
80 (process-kill-without-query ispell-process)
|
|
81 (buffer-disable-undo (process-buffer ispell-process))
|
|
82 (accept-process-output ispell-process)
|
|
83 (let (last-char)
|
|
84 (save-excursion
|
|
85 (set-buffer (process-buffer ispell-process))
|
|
86 (bury-buffer (current-buffer))
|
|
87 (setq last-char (- (point-max) 1))
|
|
88 (while (not (eq (char-after last-char) ?=))
|
|
89 (cond ((not (eq (process-status ispell-process) 'run))
|
|
90 (kill-ispell)
|
|
91 (signal 'ispell-startup-error nil)))
|
|
92 (accept-process-output ispell-process)
|
|
93 (setq last-char (- (point-max) 1)))
|
|
94 (goto-char (point-min))
|
|
95 (let ((greeting (read (current-buffer))))
|
|
96 (if (not (= (car greeting) 1))
|
|
97 (error "Bad ispell version: wanted 1, got %d" (car greeting)))
|
|
98 (message (car (cdr greeting))))
|
|
99 (delete-region (point-min) last-char))))
|
|
100
|
|
101 ;leaves buffer set to *ispell*, point at '='
|
|
102 (defun ispell-sync (intr)
|
|
103 "Make sure ispell is ready for a command."
|
|
104 (if (or (null ispell-process)
|
|
105 (not (eq (process-status ispell-process) 'run)))
|
|
106 (start-ispell))
|
|
107 (if intr
|
|
108 (interrupt-process ispell-process))
|
|
109 (let (last-char)
|
|
110 (set-buffer (process-buffer ispell-process))
|
|
111 (bury-buffer (current-buffer))
|
|
112 (setq last-char (- (point-max) 1))
|
|
113 (while (not (eq (char-after last-char) ?=))
|
|
114 (accept-process-output ispell-process)
|
|
115 (setq last-char (- (point-max) 1)))
|
|
116 (goto-char last-char)))
|
|
117
|
|
118 (defun ispell-cmd (&rest strings)
|
|
119 "Send a command to ispell. Choices are:
|
|
120
|
|
121 word any word is checked for spelling. Result is
|
|
122
|
|
123 nil not found
|
|
124 t spelled ok
|
|
125 list of strings near misses
|
|
126
|
|
127 :file filename scan the named file, and print the file offsets of
|
|
128 any misspelled words
|
|
129
|
|
130 :insert word put word in private dictonary
|
|
131
|
|
132 :accept word don't complain about word any more this session
|
|
133
|
|
134 :dump write out the current private dictionary, if necessary.
|
|
135
|
|
136 :reload reread ~/ispell.words
|
|
137
|
|
138 :tex
|
|
139 :troff
|
|
140 :generic set type of parser to use when scanning whole files
|
|
141 "
|
|
142 (save-excursion
|
|
143 (ispell-sync t)
|
|
144 (set-buffer (process-buffer ispell-process))
|
|
145 (bury-buffer (current-buffer))
|
|
146 (erase-buffer)
|
|
147 (setq ispell-next-message (point-min))
|
|
148 (while strings
|
|
149 (process-send-string ispell-process (car strings))
|
|
150 (setq strings (cdr strings)))
|
|
151 (process-send-string ispell-process "\n")
|
|
152 (accept-process-output ispell-process)
|
|
153 (ispell-sync nil)))
|
|
154
|
|
155 (defun ispell-dump ()
|
|
156 (cond (ispell-dump-needed
|
|
157 (setq ispell-dump-needed nil)
|
|
158 (ispell-cmd ":dump"))))
|
|
159
|
|
160 (defun ispell-insert (word)
|
|
161 (ispell-cmd ":insert " word)
|
|
162 (if ispell-bad-words
|
|
163 (setq ispell-recently-accepted (cons word ispell-recently-accepted)))
|
|
164 (setq ispell-dump-needed t))
|
|
165
|
|
166 (defun ispell-accept (word)
|
|
167 (ispell-cmd ":accept " word)
|
|
168 (if ispell-bad-words
|
|
169 (setq ispell-recently-accepted (cons word ispell-recently-accepted))))
|
|
170
|
|
171
|
|
172 (defun ispell-next-message ()
|
|
173 "Return the next message sent by the ispell subprocess."
|
|
174 (save-excursion
|
|
175 (set-buffer (process-buffer ispell-process))
|
|
176 (bury-buffer (current-buffer))
|
|
177 (save-restriction
|
|
178 (goto-char ispell-next-message)
|
|
179 (narrow-to-region (point)
|
|
180 (progn (forward-sexp 1) (point)))
|
|
181 (setq ispell-next-message (point))
|
|
182 (goto-char (point-min))
|
|
183 (read (current-buffer)))))
|
|
184
|
|
185 (defun ispell-tex-buffer-p ()
|
|
186 (memq major-mode '(plain-TeX-mode LaTeX-mode)))
|
|
187
|
256
|
188 ;;;###autoload
|
55
|
189 (defun ispell (&optional buf start end)
|
|
190 "Run ispell over current buffer's visited file.
|
|
191 First the file is scanned for misspelled words, then ispell
|
|
192 enters a loop with the following commands for every misspelled word:
|
|
193
|
|
194 DIGIT Near miss selector. If the misspelled word is close to
|
|
195 some words in the dictionary, they are offered as near misses.
|
|
196 r Replace. Replace the word with a string you type. Each word
|
|
197 of your new string is also checked.
|
|
198 i Insert. Insert this word in your private dictonary (kept in
|
|
199 `$HOME/ispell.words').
|
|
200 a Accept. Accept this word for the rest of this editing session,
|
|
201 but don't put it in your private dictonary.
|
|
202 l Lookup. Look for a word in the dictionary by fast binary
|
|
203 search, or search for a regular expression in the dictionary
|
|
204 using grep.
|
|
205 SPACE Accept the word this time, but complain if it is seen again.
|
214
|
206 q, \\[keyboard-quit] Leave the command loop. You can come back later with \\[ispell-next]."
|
55
|
207 (interactive)
|
|
208 (if (null start)
|
|
209 (setq start 0))
|
|
210 (if (null end)
|
|
211 (setq end 0))
|
|
212
|
|
213 (if (null buf)
|
|
214 (setq buf (current-buffer)))
|
|
215 (setq buf (get-buffer buf))
|
|
216 (if (null buf)
|
|
217 (error "Can't find buffer"))
|
|
218 (save-excursion
|
|
219 (set-buffer buf)
|
|
220 (let ((filename buffer-file-name)
|
|
221 (delete-temp nil))
|
|
222 (unwind-protect
|
|
223 (progn
|
|
224 (cond ((null filename)
|
|
225 (setq filename (make-temp-name "/usr/tmp/ispell"))
|
|
226 (setq delete-temp t)
|
|
227 (write-region (point-min) (point-max) filename))
|
|
228 ((and (buffer-modified-p buf)
|
|
229 (y-or-n-p (format "Save file %s? " filename)))
|
|
230 (save-buffer)))
|
|
231 (message "Ispell scanning file...")
|
|
232 (if (and ispell-enable-tex-parser
|
|
233 (ispell-tex-buffer-p))
|
|
234 (ispell-cmd ":tex")
|
|
235 (ispell-cmd ":generic"))
|
|
236 (ispell-cmd (format ":file %s %d %d" filename start end)))
|
|
237 (if delete-temp
|
|
238 (condition-case ()
|
|
239 (delete-file filename)
|
|
240 (file-error nil)))))
|
|
241 (message "Parsing ispell output ...")
|
|
242 (ispell-flush-bad-words)
|
|
243 (let (pos bad-words)
|
|
244 (while (numberp (setq pos (ispell-next-message)))
|
|
245 ;;ispell may check the words on the line following the end
|
|
246 ;;of the region - therefore, don't record anything out of range
|
|
247 (if (or (= end 0)
|
|
248 (< pos end))
|
|
249 (setq bad-words (cons (set-marker (make-marker) (+ pos 1))
|
|
250 bad-words))))
|
|
251 (setq bad-words (cons pos bad-words))
|
|
252 (setq ispell-bad-words (nreverse bad-words))))
|
|
253 (cond ((not (markerp (car ispell-bad-words)))
|
|
254 (setq ispell-bad-words nil)
|
|
255 (message "No misspellings."))
|
|
256 (t
|
|
257 (message "Ispell parsing done.")
|
|
258 (ispell-next))))
|
|
259
|
316
|
260 ;;;###autoload
|
|
261 (fset 'ispell-buffer 'ispell)
|
|
262
|
55
|
263 (defun ispell-next ()
|
|
264 "Resume command loop for most recent ispell command."
|
|
265 (interactive)
|
|
266 (unwind-protect
|
|
267 (catch 'quit
|
|
268 (save-window-excursion
|
|
269 (save-excursion
|
|
270 (let (next)
|
|
271 (while (markerp (setq next (car ispell-bad-words)))
|
|
272 (switch-to-buffer (marker-buffer next))
|
|
273 (push-mark)
|
|
274 (ispell-point next "at saved position.")
|
|
275 (setq ispell-bad-words (cdr ispell-bad-words))
|
|
276 (set-marker next nil))))))
|
|
277 (cond ((null ispell-bad-words)
|
|
278 (error "Ispell has not yet been run."))
|
|
279 ((markerp (car ispell-bad-words))
|
|
280 (message (substitute-command-keys
|
|
281 "Type \\[ispell-next] to continue.")))
|
|
282 ((eq (car ispell-bad-words) nil)
|
|
283 (setq ispell-bad-words nil)
|
|
284 (message "No more misspellings (but checker was interrupted.)"))
|
|
285 ((eq (car ispell-bad-words) t)
|
|
286 (setq ispell-bad-words nil)
|
|
287 (message "Ispell done."))
|
|
288 (t
|
|
289 (setq ispell-bad-words nil)
|
|
290 (message "Bad ispell internal list"))))
|
|
291 (ispell-dump))
|
|
292
|
|
293
|
256
|
294 ;;;###autoload
|
55
|
295 (defun ispell-word ()
|
|
296 "Check the spelling of the word under the cursor.
|
214
|
297 See `ispell' for more information."
|
55
|
298 (interactive)
|
|
299 (condition-case err
|
|
300 (catch 'quit
|
|
301 (save-window-excursion
|
|
302 (ispell-point (point) "at point."))
|
|
303 (ispell-dump))
|
|
304 (ispell-startup-error
|
|
305 (cond ((y-or-n-p "Problem starting ispell, use old-style spell instead? ")
|
|
306 (load-library "spell")
|
|
307 (define-key esc-map "$" 'spell-word)
|
|
308 (spell-word))))))
|
316
|
309 ;;;###autoload
|
|
310 (define-key esc-map "$" 'ispell-word)
|
55
|
311
|
256
|
312 ;;;###autoload
|
55
|
313 (defun ispell-region (start &optional end)
|
|
314 "Check the spelling for all of the words in the region."
|
|
315 (interactive "r")
|
|
316 (ispell (current-buffer) start end))
|
|
317
|
|
318 (defun ispell-letterp (c)
|
|
319 (and c
|
|
320 (or (and (>= c ?A) (<= c ?Z))
|
|
321 (and (>= c ?a) (<= c ?z))
|
|
322 (>= c 128))))
|
|
323
|
|
324 (defun ispell-letter-or-quotep (c)
|
|
325 (and c
|
|
326 (or (and (>= c ?A) (<= c ?Z))
|
|
327 (and (>= c ?a) (<= c ?z))
|
|
328 (= c ?')
|
|
329 (>= c 128))))
|
|
330
|
|
331 (defun ispell-find-word-start ()
|
|
332 ;;backward to a letter
|
|
333 (if (not (ispell-letterp (char-after (point))))
|
|
334 (while (and (not (bobp))
|
|
335 (not (ispell-letterp (char-after (- (point) 1)))))
|
|
336 (backward-char)))
|
|
337 ;;backward to beginning of word
|
|
338 (while (ispell-letter-or-quotep (char-after (- (point) 1)))
|
|
339 (backward-char))
|
|
340 (skip-chars-forward "'"))
|
|
341
|
|
342 (defun ispell-find-word-end ()
|
|
343 (while (ispell-letter-or-quotep (char-after (point)))
|
|
344 (forward-char))
|
|
345 (skip-chars-backward "'"))
|
|
346
|
|
347 (defun ispell-next-word ()
|
|
348 (while (and (not (eobp))
|
|
349 (not (ispell-letterp (char-after (point)))))
|
|
350 (forward-char)))
|
|
351
|
|
352 ;if end is nil, then do one word at start
|
|
353 ;otherwise, do all words from the beginning of the word where
|
|
354 ;start points, to the end of the word where end points
|
|
355 (defun ispell-point (start message)
|
|
356 (let ((wend (make-marker))
|
|
357 rescan
|
|
358 end)
|
|
359 (save-excursion
|
|
360 (goto-char start)
|
|
361 (ispell-find-word-start) ;find correct word start
|
|
362 (setq start (point-marker))
|
|
363 (ispell-find-word-end) ;now find correct end
|
|
364 (setq end (point-marker))
|
|
365 (if (>= start end)
|
|
366 (error "No word %s" message))
|
|
367 (while (< start end)
|
|
368 (goto-char start)
|
|
369 (ispell-find-word-end) ;find end of current word
|
|
370 ;could be before 'end' if
|
|
371 ;user typed replacement
|
|
372 ;that is more than one word
|
|
373 (set-marker wend (point))
|
|
374 (setq rescan nil)
|
|
375 (setq word (buffer-substring start wend))
|
|
376 (cond ((ispell-still-bad word)
|
|
377 (goto-char start);just to show user where we are working
|
|
378 (sit-for 0)
|
|
379 (message (format "Ispell checking %s" word))
|
|
380 (ispell-cmd word)
|
|
381 (let ((message (ispell-next-message)))
|
|
382 (cond ((eq message t)
|
|
383 (message "%s: ok" word))
|
|
384 ((or (null message)
|
|
385 (consp message))
|
|
386 (setq rescan
|
|
387 (ispell-command-loop word start wend message)))
|
|
388 (t
|
|
389 (error "unknown ispell response %s" message))))))
|
|
390 (cond ((null rescan)
|
|
391 (goto-char wend)
|
|
392 (ispell-next-word)
|
|
393 (set-marker start (point)))))
|
|
394 ;;clear the choices buffer; otherwise it's hard for the user to tell
|
|
395 ;;when we get back to the command loop
|
|
396 (let ((buf (get-buffer "*ispell choices*")))
|
|
397 (cond (buf
|
|
398 (set-buffer buf)
|
|
399 (erase-buffer))))
|
|
400 (set-marker start nil)
|
|
401 (set-marker end nil)
|
|
402 (set-marker wend nil))))
|
|
403
|
|
404 (defun ispell-still-bad (word)
|
|
405 (let ((words ispell-recently-accepted)
|
|
406 (ret t)
|
|
407 (case-fold-search t))
|
|
408 (while words
|
|
409 (cond ((eq (string-match (car words) word) 0)
|
|
410 (setq ret nil)
|
|
411 (setq words nil)))
|
|
412 (setq words (cdr words)))
|
|
413 ret))
|
|
414
|
|
415 (defun ispell-show-choices (word message first-line)
|
|
416 ;;if there is only one window on the screen, make the ispell
|
|
417 ;;messages winow be small. otherwise just use the other window
|
|
418 (let* ((selwin (selected-window))
|
|
419 (resize (eq selwin (next-window)))
|
|
420 (buf (get-buffer-create "*ispell choices*"))
|
|
421 w)
|
|
422 (setq w (display-buffer buf))
|
|
423 (buffer-disable-undo buf)
|
|
424 (if resize
|
|
425 (unwind-protect
|
|
426 (progn
|
|
427 (select-window w)
|
|
428 (enlarge-window (- 6 (window-height w))))
|
|
429 (select-window selwin)))
|
|
430 (save-excursion
|
|
431 (set-buffer buf)
|
|
432 (bury-buffer buf)
|
|
433 (set-window-point w (point-min))
|
|
434 (set-window-start w (point-min))
|
|
435 (erase-buffer)
|
|
436 (insert first-line "\n")
|
|
437 (insert
|
|
438 "SPC skip; A accept; I insert; DIGIT select; R replace; \
|
|
439 L lookup; Q quit\n")
|
|
440 (cond ((not (null message))
|
|
441 (let ((i 0))
|
|
442 (while (< i 3)
|
|
443 (let ((j 0))
|
|
444 (while (< j 3)
|
|
445 (let* ((n (+ (* j 3) i))
|
|
446 (choice (nth n message)))
|
|
447 (cond (choice
|
|
448 (let ((str (format "%d %s" n choice)))
|
|
449 (insert str)
|
|
450 (insert-char ? (- 20 (length str)))))))
|
|
451 (setq j (+ j 1))))
|
|
452 (insert "\n")
|
|
453 (setq i (+ i 1)))))))))
|
|
454
|
|
455 (defun ispell-command-loop (word start end message)
|
|
456 (let ((flag t)
|
|
457 (rescan nil)
|
|
458 first-line)
|
|
459 (if (null message)
|
|
460 (setq first-line (concat "No near misses for '" word "'"))
|
|
461 (setq first-line (concat "Near misses for '" word "'")))
|
|
462 (while flag
|
|
463 (ispell-show-choices word message first-line)
|
|
464 (message "Ispell command: ")
|
|
465 (let ((c (downcase (read-char)))
|
|
466 replacement)
|
|
467 (cond ((and (>= c ?0)
|
|
468 (<= c ?9)
|
|
469 (setq replacement (nth (- c ?0) message)))
|
|
470 (ispell-replace start end replacement)
|
|
471 (setq flag nil))
|
|
472 ((= c ?q)
|
|
473 (throw 'quit nil))
|
|
474 ((= c ? )
|
|
475 (setq flag nil))
|
|
476 ((= c ?r)
|
|
477 (ispell-replace start end (read-string "Replacement: "))
|
|
478 (setq rescan t)
|
|
479 (setq flag nil))
|
|
480 ((= c ?i)
|
|
481 (ispell-insert word)
|
|
482 (setq flag nil))
|
|
483 ((= c ?a)
|
|
484 (ispell-accept word)
|
|
485 (setq flag nil))
|
|
486 ((= c ?l)
|
|
487 (let ((val (ispell-do-look word)))
|
|
488 (setq first-line (car val))
|
|
489 (setq message (cdr val))))
|
|
490 ((= c ??)
|
|
491 (message
|
|
492 "Type 'C-h d ispell' to the emacs main loop for more help")
|
|
493 (sit-for 2))
|
|
494 (t
|
|
495 (message "Bad ispell command")
|
|
496 (sit-for 2)))))
|
|
497 rescan))
|
|
498
|
|
499 (defun ispell-do-look (bad-word)
|
|
500 (let (regex buf words)
|
|
501 (cond ((null ispell-have-new-look)
|
|
502 (setq regex (read-string "Lookup: ")))
|
|
503 (t
|
|
504 (setq regex (read-string "Lookup (regex): " "^"))))
|
|
505 (setq buf (get-buffer-create "*ispell look*"))
|
|
506 (save-excursion
|
|
507 (set-buffer buf)
|
|
508 (delete-region (point-min) (point-max))
|
|
509 (if ispell-have-new-look
|
|
510 (call-process "look" nil buf nil "-r" regex)
|
|
511 (call-process "look" nil buf nil regex))
|
|
512 (goto-char (point-min))
|
|
513 (forward-line 10)
|
|
514 (delete-region (point) (point-max))
|
|
515 (goto-char (point-min))
|
|
516 (while (not (= (point-min) (point-max)))
|
|
517 (end-of-line)
|
|
518 (setq words (cons (buffer-substring (point-min) (point)) words))
|
|
519 (forward-line)
|
|
520 (delete-region (point-min) (point)))
|
|
521 (kill-buffer buf)
|
|
522 (cons (format "Lookup '%s'" regex)
|
|
523 (reverse words)))))
|
|
524
|
|
525 (defun ispell-replace (start end new)
|
|
526 (goto-char start)
|
|
527 (insert new)
|
|
528 (delete-region (point) end))
|
|
529
|
|
530 (defun reload-ispell ()
|
|
531 "Tell ispell to re-read your private dictionary."
|
|
532 (interactive)
|
|
533 (ispell-cmd ":reload"))
|
|
534
|
|
535 (define-key esc-map "$" 'ispell-word)
|
|
536 ;; This conflicts with set-selective-display. What should we do???
|
|
537 ;;(define-key ctl-x-map "$" 'ispell-next)
|
|
538
|
|
539 (defun batch-make-ispell ()
|
|
540 (byte-compile-file "ispell.el")
|
|
541 (find-file "ispell.texinfo")
|
|
542 (let ((old-dir default-directory)
|
|
543 (default-directory "/tmp"))
|
|
544 (texinfo-format-buffer))
|
|
545 (Info-validate)
|
|
546 (if (get-buffer " *problems in info file*")
|
|
547 (kill-emacs 1))
|
|
548 (write-region (point-min) (point-max) "ispell.info"))
|
|
549
|