aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2001-11-11 20:12:27 +0000
committerRichard M. Stallman2001-11-11 20:12:27 +0000
commit487301c25e8d0e364b5e2fc89363408fe1028997 (patch)
treeade0ff6550b67aca99966bcbdf9fada785104077
parent5a04bfa9849cddb5feb93f4e539b363c50962c24 (diff)
downloademacs-487301c25e8d0e364b5e2fc89363408fe1028997.tar.gz
emacs-487301c25e8d0e364b5e2fc89363408fe1028997.zip
(flyspell-default-dictionary): Allow nil as value, and make nil the default.
-rw-r--r--lisp/textmodes/flyspell.el12
1 files changed, 7 insertions, 5 deletions
diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el
index bed5739de3b..f32f7245887 100644
--- a/lisp/textmodes/flyspell.el
+++ b/lisp/textmodes/flyspell.el
@@ -156,15 +156,17 @@ incorrect."
156 :version "21.1" 156 :version "21.1"
157 :type 'hook) 157 :type 'hook)
158 158
159(defcustom flyspell-default-dictionary "american" 159(defcustom flyspell-default-dictionary nil
160 "A string that is the name of the default dictionary. 160 "A string that is the name of the default dictionary.
161This is passed to the `ispell-change-dictionary' when flyspell is started. 161This is passed to the `ispell-change-dictionary' when flyspell is started.
162If the variables `ispell-local-dictionary' or `ispell-dictionary' are non nil 162If the variable `ispell-local-dictionary' or `ispell-dictionary' is non-nil
163when flyspell is started, the value of that variables is used instead 163when flyspell is started, the value of that variable is used instead
164of `flyspell-default-dictionary' to select the default dictionary." 164of `flyspell-default-dictionary' to select the default dictionary.
165Otherwise, if `flyspell-default-dictionary' is nil, it means to use
166Ispell's ultimate default dictionary."
165 :group 'flyspell 167 :group 'flyspell
166 :version "21.1" 168 :version "21.1"
167 :type 'string) 169 :type '(choice string nil))
168 170
169(defcustom flyspell-tex-command-regexp 171(defcustom flyspell-tex-command-regexp
170 "\\(\\(begin\\|end\\)[ \t]*{\\|\\(cite[a-z*]*\\|label\\|ref\\|eqref\\|usepackage\\|documentclass\\)[ \t]*\\(\\[[^]]*\\]\\)?{[^{}]*\\)" 172 "\\(\\(begin\\|end\\)[ \t]*{\\|\\(cite[a-z*]*\\|label\\|ref\\|eqref\\|usepackage\\|documentclass\\)[ \t]*\\(\\[[^]]*\\]\\)?{[^{}]*\\)"