From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: ispell default dictionary keeps reverting to "american" Date: Sun, 2 Sep 2007 20:55:50 +0200 Message-ID: <84FF8C1E-FD8C-43AB-A8EE-2AF1B4F1C193@Web.DE> References: <1188730937.948851.317630@22g2000hsm.googlegroups.com> <1188754032.747790.186270@57g2000hsv.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1188759378 23436 80.91.229.12 (2 Sep 2007 18:56:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 2 Sep 2007 18:56:18 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Kevin Brubeck Unhammer Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 02 20:56:18 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IRucJ-0007mc-7x for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Sep 2007 20:56:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IRucH-0001F5-SC for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Sep 2007 14:56:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IRubz-0001BV-Fp for help-gnu-emacs@gnu.org; Sun, 02 Sep 2007 14:55:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IRuby-00019K-I0 for help-gnu-emacs@gnu.org; Sun, 02 Sep 2007 14:55:54 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IRuby-00018p-9X for help-gnu-emacs@gnu.org; Sun, 02 Sep 2007 14:55:54 -0400 Original-Received: from fmmailgate01.web.de ([217.72.192.221]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IRubx-000572-Pa for help-gnu-emacs@gnu.org; Sun, 02 Sep 2007 14:55:54 -0400 Original-Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate01.web.de (Postfix) with ESMTP id 0DB269ABC505; Sun, 2 Sep 2007 20:55:53 +0200 (CEST) Original-Received: from [89.58.94.20] (helo=[192.168.1.2]) by smtp08.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.108 #197) id 1IRubw-000608-00; Sun, 02 Sep 2007 20:55:52 +0200 In-Reply-To: <1188754032.747790.186270@57g2000hsv.googlegroups.com> X-Mailer: Apple Mail (2.752.2) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX1+J8R/p4sQXj+E+UdLwAdSrSTQ6PDmESxAWswNX NS3uukQlrP6zo9pNsFEI7pxFzoS30nTb+TC2NBu54WvRdbe9hW xwfPNAPKsfWm5xpBQXvg== X-Detected-Kernel: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:47107 Archived-At: Am 02.09.2007 um 19:27 schrieb Kevin Brubeck Unhammer: >> Have you checked whether the modes of the buffers that use american >> for ispell do *not* change ispell-dictionary? Have you checked >> whether your buffer do *not* set ispell-dictionary locally? Are you >> sure that your setting of ispell-dictionary in ~/.emacs is executed? >> Some (message ...) might help. > > I tried emptying my .emacs from all but (ispell-change-dictionary > "nynorsk" t), no change... the dictionary starts being "nynorsk" and > changes to "american" after one ispell-check. It's not the complete answer and analysis. It's obviously secure to put a statement like this one (defadvice load (before debug-log activate) (message "(Tipp von Kai G) Lade jetzt: %s" (ad-get-arg 0))) into ~/.emacs, because you describe that your setting of ispell's =20 dictionary is valid until you load some file? Or does it already =20 happen when you spell-check a "built-in" buffer like *scratch*, =20 *Buffer List*, or *Messages*. So let's make the test more complete! Make ~/.emacs report what the ispell-program-name is. In *shell* =20 buffer or some other terminal determine the PID of GNU Emacs. Now =20 start to spell-check some built-in buffer and don't quit! In that =20 other terminal either use ps or pstree to determine all processes =20 that GNU Emacs has spawned. Is ispell or aspell (the new default) =20 doing the spell-check? With the statement above you will be able to see which files of Elisp =20= code are loaded when you load some text file. When you put the =20 statement into the system init file, you can see a bit more of Elisp =20 file loading. When you've found that it's aspell (the new default) and not ispell, =20 that is spell-checking, you could try something similiar to this: (setq ispell-program-name "ispell") ; (setq ispell-program-name "aspell") ; (if (string=3D "aspell" ispell-program-name) (progn ; (setq ispell-extra-args "--norm-form=3Dcomp --norm-required = --run-=20 together") ; (setq ispell-dictionary "en_GB-ise-w_accents") (setq ispell-dictionary "deutsch") (set-default 'ispell-local-dictionary ispell-dictionary) (add-hook 'TeX-language-en-hook (function (lambda () (ispell-=20= change-dictionary "british")))) (add-hook 'TeX-language-de-hook (function (lambda () (ispell-=20= change-dictionary ispell-dictionary)))) (message "Alles f=FCr =ABa=BBspell") ) (setq ispell-dictionary "german8") (add-hook 'TeX-language-en-hook (function (lambda () (ispell-=20= change-dictionary "british")))) (add-hook 'TeX-language-de-hook (function (lambda () (ispell-=20= change-dictionary "deutsch8")))) (message "Alles f=FCr =BBi=ABspell") ) (add-hook 'LaTeX-mode-hook (function (lambda () (setq ispell-=20 extra-args '("-t"))))) -- Greetings Pete ~ o ~_\\_/\ ~ O O