2009-02-24 Glenn Morris <rgm@gnu.org>
+ * textmodes/flyspell.el (flyspell-use-meta-tab): Add a custom
+ :set function. (Bug#2429)
+
* eshell/esh-util.el (eshell-parse-ange-ls): Define `name' before
potential use.
:group 'flyspell
:type '(choice string (const nil)))
+(defvar flyspell-mode-map)
+
(defcustom flyspell-use-meta-tab t
"Non-nil means that flyspell uses M-TAB to correct word."
:group 'flyspell
- :type 'boolean)
+ :type 'boolean
+ :initialize 'custom-initialize-default
+ :set (lambda (sym val)
+ (define-key flyspell-mode-map "\M-\t"
+ (if (set sym val)
+ 'flyspell-auto-correct-word))))
(defcustom flyspell-auto-correct-binding
[(control ?\;)]