changeset 40933:29830f44be6a

(flyspell-default-dictionary): Allow nil as value, and make nil the default.
author Richard M. Stallman <rms@gnu.org>
date Sun, 11 Nov 2001 20:12:27 +0000
parents 103ddc9d157a
children 79d4aae20aa3
files lisp/textmodes/flyspell.el
diffstat 1 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/flyspell.el	Sun Nov 11 20:11:14 2001 +0000
+++ b/lisp/textmodes/flyspell.el	Sun Nov 11 20:12:27 2001 +0000
@@ -156,15 +156,17 @@
   :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]*\\(\\[[^]]*\\]\\)?{[^{}]*\\)"