comparison lisp/textmodes/=ispell4.el @ 14347:f5f5fa38faa7

(start-ispell, ispell-next): Pass proper format string to message. (ispell-point): Delete format call inside message.
author Karl Heuer <kwzh@gnu.org>
date Thu, 25 Jan 1996 01:15:58 +0000
parents 83f275dcd93a
children ac1673121774
comparison
equal deleted inserted replaced
14346:4a609420dfc1 14347:f5f5fa38faa7
124 (setq last-char (- (point-max) 1))) 124 (setq last-char (- (point-max) 1)))
125 (goto-char (point-min)) 125 (goto-char (point-min))
126 (let ((greeting (read (current-buffer)))) 126 (let ((greeting (read (current-buffer))))
127 (if (not (= (car greeting) 1)) 127 (if (not (= (car greeting) 1))
128 (error "Bad ispell version: wanted 1, got %d" (car greeting))) 128 (error "Bad ispell version: wanted 1, got %d" (car greeting)))
129 (message (car (cdr greeting)))) 129 (message "%s" (car (cdr greeting))))
130 (delete-region (point-min) last-char)))) 130 (delete-region (point-min) last-char))))
131 131
132 ;; Make sure ispell is ready for a command. 132 ;; Make sure ispell is ready for a command.
133 ;; Leaves buffer set to *ispell*, point at '='. 133 ;; Leaves buffer set to *ispell*, point at '='.
134 134
347 (if ispell-window-configuration 347 (if ispell-window-configuration
348 (set-window-configuration ispell-window-configuration)) 348 (set-window-configuration ispell-window-configuration))
349 (cond ((null ispell-bad-words) 349 (cond ((null ispell-bad-words)
350 (error "Ispell has not yet been run")) 350 (error "Ispell has not yet been run"))
351 ((markerp (car ispell-bad-words)) 351 ((markerp (car ispell-bad-words))
352 (message (substitute-command-keys 352 (message "%s"
353 (substitute-command-keys
353 "Type \\[ispell-next] to continue"))) 354 "Type \\[ispell-next] to continue")))
354 ((eq (car ispell-bad-words) nil) 355 ((eq (car ispell-bad-words) nil)
355 (setq ispell-bad-words nil) 356 (setq ispell-bad-words nil)
356 (message "No more misspellings (but checker was interrupted)")) 357 (message "No more misspellings (but checker was interrupted)"))
357 ((eq (car ispell-bad-words) t) 358 ((eq (car ispell-bad-words) t)
453 (setq word (buffer-substring start wend)) 454 (setq word (buffer-substring start wend))
454 (cond ((ispell-still-bad word) 455 (cond ((ispell-still-bad word)
455 ;;; This just causes confusion. -- rms. 456 ;;; This just causes confusion. -- rms.
456 ;;; (goto-char start) 457 ;;; (goto-char start)
457 ;;; (sit-for 0) 458 ;;; (sit-for 0)
458 (message (format "Ispell checking %s" word)) 459 (message "Ispell checking %s" word)
459 (ispell-cmd word) 460 (ispell-cmd word)
460 (let ((message (ispell-next-message))) 461 (let ((message (ispell-next-message)))
461 (cond ((eq message t) 462 (cond ((eq message t)
462 (message "%s: ok" word)) 463 (message "%s: ok" word))
463 ((or (null message) 464 ((or (null message)