From 487301c25e8d0e364b5e2fc89363408fe1028997 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 11 Nov 2001 20:12:27 +0000 Subject: [PATCH] (flyspell-default-dictionary): Allow nil as value, and make nil the default. --- lisp/textmodes/flyspell.el | 12 +++++++----- 1 file 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." :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]*\\(\\[[^]]*\\]\\)?{[^{}]*\\)" -- 2.39.5