From e540533884dcb48f605df33cea7fd1b6cf8e1270 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Mon, 1 Mar 1999 03:48:22 +0000 Subject: [PATCH] (ispell-dictionary-alist-override): New variable. (ispell-dictionary-alist): Don't setq it, if ispell-dictionary-alist-override is set. --- lisp/textmodes/ispell.el | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 95dbfc3aec2..f3e46e3df8a 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -113,14 +113,14 @@ ;; BUGS: ;; Accepting definitions in latex mode can mess up math mode skipping... -;; Highlighting in version 19 still doesn't work on tty's. ;; On some versions of emacs, growing the minibuffer fails. ;; Autoloading ispell can result in problems if you need to use a local or -;; modified dictionary. Place the following in your .emacs file to -;; override the autoload definitions: +;; modified dictionary. Place the following in your .emacs file to +;; override the autoload definitions: ;; (setq ispell-dictionary-alist (cons '(dictionary ...) ;; ispell-dictionary-alist)) ;; (setq ispell-menu-map nil) +;; (setq ispell-dictionary-alist-override t) ;; (load-library "ispell") @@ -526,9 +526,12 @@ LANGUAGE.aff file \(e.g., english.aff\)." (const iso-8859-2)))) :group 'ispell) +(defvar ispell-dictionary-alist-override nil) + ;;; update the dictionaries at load time -(setq ispell-dictionary-alist - (append ispell-dictionary-alist-1 ispell-dictionary-alist-2)) +(unless ispell-dictionary-alist-override + (setq ispell-dictionary-alist + (append ispell-dictionary-alist-1 ispell-dictionary-alist-2))) ;;; The preparation of the menu bar menu must be autoloaded ;;; because otherwise this file gets autoloaded every time Emacs starts -- 2.39.2