[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch] introducing turn-on-flyspell-mode turn-off-flyspell-mode
From: |
Jari Aalto+mail.emacs |
Subject: |
[patch] introducing turn-on-flyspell-mode turn-off-flyspell-mode |
Date: |
04 Mar 2001 01:01:42 +0200 |
User-agent: |
Gnus/5.090001 (Oort Gnus v0.01) Emacs/20.7 (i386-*-windows98.1998) |
2001-03-03 Sat Jari Aalto <jari.aalto@poboxes.com>
* textmodes/flyspell.el (flyspell-mode): Typo fixed 'iff' -> 'off'.
(turn-off-flyspell-mode): Added defalias to conform standard Emacs
naming conventions
(tunrn-on-flyspell-mode): New Function. Calls `flyspell-mode'.
RCS file:
/cygdrive/g/data/version-control/cvsroot/emacs/gnu-emacs/lisp/textmodes/flyspell.el,v
retrieving revision 1.1.1.1
retrieving revision 1.1.1.1.26.1
diff -u -IId: -b -w -u -r1.1.1.1 -r1.1.1.1.26.1
--- textmodes/flyspell.el 2000/12/10 19:54:13 1.1.1.1
+++ textmodes/flyspell.el 2001/03/03 19:59:44 1.1.1.1.26.1
@@ -272,7 +272,7 @@
Ispell is automatically spawned on background for each entered words.
The default flyspell behavior is to highlight incorrect words.
With no argument, this command toggles Flyspell mode.
-With a prefix argument ARG, turn Flyspell minor mode on iff ARG is positive.
+With a prefix argument ARG, turn Flyspell minor mode on off ARG is positive.
Bindings:
\\[ispell-word]: correct words (using Ispell).
@@ -449,6 +449,16 @@
;; we mark the mode as killed
(setq flyspell-mode nil))
+
+;;; to conform standard Emacs naming conventions
+;;;###autoload
+(defalias 'flyspell-mode-off 'turn-off-flyspell-mode)
+
+;;;###autoload
+(defun tunrn-on-flyspell-mode ()
+ "Turn on flyspell mode."
+ (flyspell-mode 1))
+
;*---------------------------------------------------------------------*/
;* flyspell-check-word-p ... */
;*---------------------------------------------------------------------*/
- [patch] introducing turn-on-flyspell-mode turn-off-flyspell-mode,
Jari Aalto+mail.emacs <=