aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2007-10-18 00:07:48 +0000
committerJuri Linkov2007-10-18 00:07:48 +0000
commit69f5930ae5ef109229ca5702b43abd646faf7f37 (patch)
treeedbbd91f11a52021c7f9877a03b3139db22fea9d
parent09e8c671a4967a23e8805170159db4fc77117edd (diff)
downloademacs-69f5930ae5ef109229ca5702b43abd646faf7f37.tar.gz
emacs-69f5930ae5ef109229ca5702b43abd646faf7f37.zip
(ispell-word): Add interactive arg `region'. Fix docstring.
-rw-r--r--lisp/textmodes/ispell.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index 0e6605dc131..fbeeffaee02 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -1566,7 +1566,7 @@ This allows it to improve the suggestion list based on actual mispellings."
1566 (translate-region pos (point) translation-table-for-input)))) 1566 (translate-region pos (point) translation-table-for-input))))
1567 1567
1568;;;###autoload 1568;;;###autoload
1569(defun ispell-word (&optional following quietly continue) 1569(defun ispell-word (&optional following quietly continue region)
1570 "Check spelling of word under or before the cursor. 1570 "Check spelling of word under or before the cursor.
1571If the word is not found in dictionary, display possible corrections 1571If the word is not found in dictionary, display possible corrections
1572in a window allowing you to choose one. 1572in a window allowing you to choose one.
@@ -1580,6 +1580,9 @@ when called interactively, non-corrective messages are suppressed.
1580With a prefix argument (or if CONTINUE is non-nil), 1580With a prefix argument (or if CONTINUE is non-nil),
1581resume interrupted spell-checking of a buffer or region. 1581resume interrupted spell-checking of a buffer or region.
1582 1582
1583Interactively, in Transient Mark mode when the mark is active, call
1584`ispell-region' to check the active region for spelling errors.
1585
1583Word syntax is controlled by the definition of the chosen dictionary, 1586Word syntax is controlled by the definition of the chosen dictionary,
1584which is in `ispell-local-dictionary-alist' or `ispell-dictionary-alist'. 1587which is in `ispell-local-dictionary-alist' or `ispell-dictionary-alist'.
1585 1588
@@ -1592,10 +1595,9 @@ nil word is correct or spelling is accepted.
1592\"word\" word corrected from word list. 1595\"word\" word corrected from word list.
1593\(\"word\" arg\) word is hand entered. 1596\(\"word\" arg\) word is hand entered.
1594quit spell session exited." 1597quit spell session exited."
1595 1598 (interactive (list ispell-following-word ispell-quietly current-prefix-arg t))
1596 (interactive (list ispell-following-word ispell-quietly current-prefix-arg))
1597 (cond 1599 (cond
1598 ((and transient-mark-mode mark-active 1600 ((and region transient-mark-mode mark-active
1599 (not (eq (region-beginning) (region-end)))) 1601 (not (eq (region-beginning) (region-end))))
1600 (ispell-region (region-beginning) (region-end))) 1602 (ispell-region (region-beginning) (region-end)))
1601 (continue (ispell-continue)) 1603 (continue (ispell-continue))