# HG changeset patch # User Richard M. Stallman # Date 752712636 0 # Node ID 24bb9fff22cedca58a7ee77a762b59b689dba912 # Parent c639a86ac9f1e5d7dbca57285ba9909134e58ae4 Fix previous change. diff -r c639a86ac9f1 -r 24bb9fff22ce lisp/textmodes/=ispell4.el --- a/lisp/textmodes/=ispell4.el Sun Nov 07 22:45:42 1993 +0000 +++ b/lisp/textmodes/=ispell4.el Sun Nov 07 22:50:36 1993 +0000 @@ -328,36 +328,37 @@ Return value is t unless exit is due to typing `q'." (interactive) (setq ispell-window-configuration nil) - (unwind-protect - (catch 'ispell-quit - ;; There used to be a save-excursion here, - ;; but that was annoying: it's better if point doesn't move - ;; when you type q. - (let (next) - (while (markerp (setq next (car ispell-bad-words))) - (switch-to-buffer (marker-buffer next)) - (push-mark) - (ispell-point next "at saved position.") - (setq ispell-bad-words (cdr ispell-bad-words)) - (set-marker next nil))) - t) - (if ispell-window-configuration - (set-window-configuration ispell-window-configuration)) - (cond ((null ispell-bad-words) - (error "Ispell has not yet been run.")) - ((markerp (car ispell-bad-words)) - (message (substitute-command-keys - "Type \\[ispell-next] to continue."))) - ((eq (car ispell-bad-words) nil) - (setq ispell-bad-words nil) - (message "No more misspellings (but checker was interrupted.)")) - ((eq (car ispell-bad-words) t) - (setq ispell-bad-words nil) - (message "Ispell done.")) - (t - (setq ispell-bad-words nil) - (message "Bad ispell internal list")))) - (ispell-dump)) + (prog1 + (unwind-protect + (catch 'ispell-quit + ;; There used to be a save-excursion here, + ;; but that was annoying: it's better if point doesn't move + ;; when you type q. + (let (next) + (while (markerp (setq next (car ispell-bad-words))) + (switch-to-buffer (marker-buffer next)) + (push-mark) + (ispell-point next "at saved position.") + (setq ispell-bad-words (cdr ispell-bad-words)) + (set-marker next nil))) + t) + (if ispell-window-configuration + (set-window-configuration ispell-window-configuration)) + (cond ((null ispell-bad-words) + (error "Ispell has not yet been run.")) + ((markerp (car ispell-bad-words)) + (message (substitute-command-keys + "Type \\[ispell-next] to continue."))) + ((eq (car ispell-bad-words) nil) + (setq ispell-bad-words nil) + (message "No more misspellings (but checker was interrupted.)")) + ((eq (car ispell-bad-words) t) + (setq ispell-bad-words nil) + (message "Ispell done.")) + (t + (setq ispell-bad-words nil) + (message "Bad ispell internal list")))) + (ispell-dump))) ;;;###autoload (defun ispell-word (&optional resume) @@ -548,7 +549,7 @@ (setq flag nil)) ((= c ?q) (throw 'ispell-quit nil)) - ((= c quit-char) + ((= c (nth 3 (current-input-mode))) (keyboard-quit)) ((= c ? ) (setq flag nil))