# HG changeset patch # User Gerd Moellmann # Date 965247713 0 # Node ID a8130a547f5601aae259c06d90c5f029d4cc6efd # Parent 0551caab4401b8629571abf989c5368b686eebab (ispell): New function, replacing an alias. Spell-check active region if in transient-mark-mode and mark is active; otherwise spell-check buffer. diff -r 0551caab4401 -r a8130a547f56 lisp/textmodes/ispell.el --- a/lisp/textmodes/ispell.el Wed Aug 02 20:21:24 2000 +0000 +++ b/lisp/textmodes/ispell.el Wed Aug 02 20:21:53 2000 +0000 @@ -206,7 +206,6 @@ (and (not version18p) (not (boundp 'epoch::version)) - (defalias 'ispell 'ispell-buffer) (defalias 'ispell-check-version 'check-ispell-version)) @@ -2806,6 +2805,17 @@ (ispell-complete-word t)) +;;;###autoload +(defun ispell () + "Interactively check a region or buffer for spelling errors. +If `transient-mark-mode' is on, an a region is active, spell-check +that region. Otherwise spell-check the buffer." + (interactive) + (if (and transient-mark-mode mark-active) + (ispell-region (region-beginning) (region-end)) + (ispell-buffer))) + + ;;; ********************************************************************** ;;; Ispell Minor Mode ;;; **********************************************************************