aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2000-08-02 20:21:53 +0000
committerGerd Moellmann2000-08-02 20:21:53 +0000
commit754bd273b799ccc998fab2a9c86f96d7e3b5fd30 (patch)
tree388efb3b6888356204490698da9a4debe7f34108
parentd79dfd472ef4a5a31766cc4fc85b4b9c2a3a8f25 (diff)
downloademacs-754bd273b799ccc998fab2a9c86f96d7e3b5fd30.tar.gz
emacs-754bd273b799ccc998fab2a9c86f96d7e3b5fd30.zip
(ispell): New function, replacing an alias.
Spell-check active region if in transient-mark-mode and mark is active; otherwise spell-check buffer.
-rw-r--r--lisp/textmodes/ispell.el12
1 files changed, 11 insertions, 1 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index b82a2195601..ae2900f4f9a 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -206,7 +206,6 @@
206 206
207(and (not version18p) 207(and (not version18p)
208 (not (boundp 'epoch::version)) 208 (not (boundp 'epoch::version))
209 (defalias 'ispell 'ispell-buffer)
210 (defalias 'ispell-check-version 'check-ispell-version)) 209 (defalias 'ispell-check-version 'check-ispell-version))
211 210
212 211
@@ -2806,6 +2805,17 @@ Standard ispell choices are then available."
2806 (ispell-complete-word t)) 2805 (ispell-complete-word t))
2807 2806
2808 2807
2808;;;###autoload
2809(defun ispell ()
2810 "Interactively check a region or buffer for spelling errors.
2811If `transient-mark-mode' is on, an a region is active, spell-check
2812that region. Otherwise spell-check the buffer."
2813 (interactive)
2814 (if (and transient-mark-mode mark-active)
2815 (ispell-region (region-beginning) (region-end))
2816 (ispell-buffer)))
2817
2818
2809;;; ********************************************************************** 2819;;; **********************************************************************
2810;;; Ispell Minor Mode 2820;;; Ispell Minor Mode
2811;;; ********************************************************************** 2821;;; **********************************************************************