]> code.delx.au - gnu-emacs/commitdiff
(flyspell-default-dictionary): Allow nil as value, and make nil the default.
authorRichard M. Stallman <rms@gnu.org>
Sun, 11 Nov 2001 20:12:27 +0000 (20:12 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 11 Nov 2001 20:12:27 +0000 (20:12 +0000)
lisp/textmodes/flyspell.el

index bed5739de3b74c77ea69b35b5315f310a83b4c84..f32f7245887007626d442c715851aae21c37228a 100644 (file)
@@ -156,15 +156,17 @@ incorrect."
   :version "21.1"
   :type 'hook)
 
-(defcustom flyspell-default-dictionary "american"
+(defcustom flyspell-default-dictionary nil
   "A string that is the name of the default dictionary.
 This is passed to the `ispell-change-dictionary' when flyspell is started.
-If the variables `ispell-local-dictionary' or `ispell-dictionary' are non nil
-when flyspell is started, the value of that variables is used instead
-of `flyspell-default-dictionary' to select the default dictionary."
+If the variable `ispell-local-dictionary' or `ispell-dictionary' is non-nil
+when flyspell is started, the value of that variable is used instead
+of `flyspell-default-dictionary' to select the default dictionary.
+Otherwise, if `flyspell-default-dictionary' is nil, it means to use
+Ispell's ultimate default dictionary."
   :group 'flyspell
   :version "21.1"
-  :type 'string)
+  :type '(choice string nil))
 
 (defcustom flyspell-tex-command-regexp
   "\\(\\(begin\\|end\\)[ \t]*{\\|\\(cite[a-z*]*\\|label\\|ref\\|eqref\\|usepackage\\|documentclass\\)[ \t]*\\(\\[[^]]*\\]\\)?{[^{}]*\\)"