aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-11-07 22:50:36 +0000
committerRichard M. Stallman1993-11-07 22:50:36 +0000
commit2fc91d5b509d1df27846fe11e78064ec595e0706 (patch)
treede70d744f70e446de361c5a1c4737a4f3ce887c9
parentaf4d43e9093ea04dd075011a530a5c3fbc48583a (diff)
downloademacs-2fc91d5b509d1df27846fe11e78064ec595e0706.tar.gz
emacs-2fc91d5b509d1df27846fe11e78064ec595e0706.zip
Fix previous change.
-rw-r--r--lisp/textmodes/ispell4.el63
1 files changed, 32 insertions, 31 deletions
diff --git a/lisp/textmodes/ispell4.el b/lisp/textmodes/ispell4.el
index cb632810a19..43eca7d1450 100644
--- a/lisp/textmodes/ispell4.el
+++ b/lisp/textmodes/ispell4.el
@@ -328,36 +328,37 @@ q, \\[keyboard-quit] Leave the command loop. You can come back later with \\[is
328Return value is t unless exit is due to typing `q'." 328Return value is t unless exit is due to typing `q'."
329 (interactive) 329 (interactive)
330 (setq ispell-window-configuration nil) 330 (setq ispell-window-configuration nil)
331 (unwind-protect 331 (prog1
332 (catch 'ispell-quit 332 (unwind-protect
333 ;; There used to be a save-excursion here, 333 (catch 'ispell-quit
334 ;; but that was annoying: it's better if point doesn't move 334 ;; There used to be a save-excursion here,
335 ;; when you type q. 335 ;; but that was annoying: it's better if point doesn't move
336 (let (next) 336 ;; when you type q.
337 (while (markerp (setq next (car ispell-bad-words))) 337 (let (next)
338 (switch-to-buffer (marker-buffer next)) 338 (while (markerp (setq next (car ispell-bad-words)))
339 (push-mark) 339 (switch-to-buffer (marker-buffer next))
340 (ispell-point next "at saved position.") 340 (push-mark)
341 (setq ispell-bad-words (cdr ispell-bad-words)) 341 (ispell-point next "at saved position.")
342 (set-marker next nil))) 342 (setq ispell-bad-words (cdr ispell-bad-words))
343 t) 343 (set-marker next nil)))
344 (if ispell-window-configuration 344 t)
345 (set-window-configuration ispell-window-configuration)) 345 (if ispell-window-configuration
346 (cond ((null ispell-bad-words) 346 (set-window-configuration ispell-window-configuration))
347 (error "Ispell has not yet been run.")) 347 (cond ((null ispell-bad-words)
348 ((markerp (car ispell-bad-words)) 348 (error "Ispell has not yet been run."))
349 (message (substitute-command-keys 349 ((markerp (car ispell-bad-words))
350 "Type \\[ispell-next] to continue."))) 350 (message (substitute-command-keys
351 ((eq (car ispell-bad-words) nil) 351 "Type \\[ispell-next] to continue.")))
352 (setq ispell-bad-words nil) 352 ((eq (car ispell-bad-words) nil)
353 (message "No more misspellings (but checker was interrupted.)")) 353 (setq ispell-bad-words nil)
354 ((eq (car ispell-bad-words) t) 354 (message "No more misspellings (but checker was interrupted.)"))
355 (setq ispell-bad-words nil) 355 ((eq (car ispell-bad-words) t)
356 (message "Ispell done.")) 356 (setq ispell-bad-words nil)
357 (t 357 (message "Ispell done."))
358 (setq ispell-bad-words nil) 358 (t
359 (message "Bad ispell internal list")))) 359 (setq ispell-bad-words nil)
360 (ispell-dump)) 360 (message "Bad ispell internal list"))))
361 (ispell-dump)))
361 362
362;;;###autoload 363;;;###autoload
363(defun ispell-word (&optional resume) 364(defun ispell-word (&optional resume)
@@ -548,7 +549,7 @@ L lookup; Q quit\n")
548 (setq flag nil)) 549 (setq flag nil))
549 ((= c ?q) 550 ((= c ?q)
550 (throw 'ispell-quit nil)) 551 (throw 'ispell-quit nil))
551 ((= c quit-char) 552 ((= c (nth 3 (current-input-mode)))
552 (keyboard-quit)) 553 (keyboard-quit))
553 ((= c ? ) 554 ((= c ? )
554 (setq flag nil)) 555 (setq flag nil))