comparison lisp/textmodes/ispell.el @ 6288:3197bf3cc0a1

(ispell-pdict-save, ispell-kill-ispell, ispell-continue): (ispell-help): Add autoloads.
author Richard M. Stallman <rms@gnu.org>
date Thu, 10 Mar 1994 07:37:04 +0000
parents 27515aae66a8
children 9217f29851c2
comparison
equal deleted inserted replaced
6287:33477d79a6f2 6288:3197bf3cc0a1
770 ;;; Global ispell-pdict-modified-p is set by ispell-command-loop and 770 ;;; Global ispell-pdict-modified-p is set by ispell-command-loop and
771 ;;; tracks changes in the dictionary. The global may either be 771 ;;; tracks changes in the dictionary. The global may either be
772 ;;; a value or a list, whose value is the state of whether the 772 ;;; a value or a list, whose value is the state of whether the
773 ;;; dictionary needs to be saved. 773 ;;; dictionary needs to be saved.
774 774
775 ;;;###autoload
775 (defun ispell-pdict-save (&optional no-query force-save) 776 (defun ispell-pdict-save (&optional no-query force-save)
776 "Check to see if the personal dictionary has been modified. 777 "Check to see if the personal dictionary has been modified.
777 If so, ask if it needs to be saved." 778 If so, ask if it needs to be saved."
778 (interactive (list ispell-silently-savep t)) 779 (interactive (list ispell-silently-savep t))
779 (if (and ispell-pdict-modified-p (listp ispell-pdict-modified-p)) 780 (if (and ispell-pdict-modified-p (listp ispell-pdict-modified-p))
980 (t (ding) t)))))) 981 (t (ding) t))))))
981 result)) 982 result))
982 (if (not ispell-keep-choices-win) (bury-buffer ispell-choices-buffer)))) 983 (if (not ispell-keep-choices-win) (bury-buffer ispell-choices-buffer))))
983 984
984 985
986 ;;;###autoload
985 (defun ispell-help () 987 (defun ispell-help ()
986 "This gives a list of the options available when a misspelling is encountered. 988 "This gives a list of the options available when a misspelling is encountered.
987 989
988 Selections are: 990 Selections are:
989 991
1346 (process-send-string ispell-process 1348 (process-send-string ispell-process
1347 (concat extended-char-mode "\n")))) 1349 (concat extended-char-mode "\n"))))
1348 (process-kill-without-query ispell-process))) 1350 (process-kill-without-query ispell-process)))
1349 1351
1350 1352
1353 ;;;###autoload
1351 (defun ispell-kill-ispell (&optional no-error) 1354 (defun ispell-kill-ispell (&optional no-error)
1352 "Kill current ispell process (so that you may start a fresh one). 1355 "Kill current ispell process (so that you may start a fresh one).
1353 With NO-ERROR, just return non-nil if there was no ispell running." 1356 With NO-ERROR, just return non-nil if there was no ispell running."
1354 (interactive) 1357 (interactive)
1355 (if (not (and ispell-process 1358 (if (not (and ispell-process
1616 (defun ispell-buffer () 1619 (defun ispell-buffer ()
1617 "Check the current buffer for spelling errors interactively." 1620 "Check the current buffer for spelling errors interactively."
1618 (interactive) 1621 (interactive)
1619 (ispell-region (point-min) (point-max))) 1622 (ispell-region (point-min) (point-max)))
1620 1623
1621 1624 ;;;###autoload
1622 (defun ispell-continue () 1625 (defun ispell-continue ()
1623 (interactive) 1626 (interactive)
1624 "Continue a spelling session after making some changes." 1627 "Continue a spelling session after making some changes."
1625 (if (not (marker-position ispell-region-end)) 1628 (if (not (marker-position ispell-region-end))
1626 (message "No session to continue. Use 'X' command when checking!") 1629 (message "No session to continue. Use 'X' command when checking!")