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 not working in TeX mode Date: Fri, 15 Feb 2008 22:58:19 +0100 Message-ID: <1DAB8889-93A1-4FA6-822C-70F8237D34E8@Web.DE> References: <9BA22A38-A1BB-43C5-9EDB-DAF2BED59E13@Web.DE> <47B5FFB4.6050607@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1203112730 32601 80.91.229.12 (15 Feb 2008 21:58:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Feb 2008 21:58:50 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Rasmus Pank Roulund Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 15 22:59:14 2008 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 1JQ8aO-0000aP-9t for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Feb 2008 22:59:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQ8Zu-0005zz-8j for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Feb 2008 16:58:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JQ8Zf-0005xC-60 for help-gnu-emacs@gnu.org; Fri, 15 Feb 2008 16:58:27 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JQ8Zd-0005ur-LW for help-gnu-emacs@gnu.org; Fri, 15 Feb 2008 16:58:26 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQ8Zd-0005uo-Gq for help-gnu-emacs@gnu.org; Fri, 15 Feb 2008 16:58:25 -0500 Original-Received: from fmmailgate03.web.de ([217.72.192.234]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JQ8Zc-0007bI-Vd for help-gnu-emacs@gnu.org; Fri, 15 Feb 2008 16:58:25 -0500 Original-Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate03.web.de (Postfix) with ESMTP id 04FB9CF13192; Fri, 15 Feb 2008 22:58:24 +0100 (CET) Original-Received: from [195.4.211.200] (helo=[192.168.1.2]) by smtp06.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.109 #226) id 1JQ8Zb-0001Af-00; Fri, 15 Feb 2008 22:58:23 +0100 In-Reply-To: <47B5FFB4.6050607@gmail.com> X-Mailer: Apple Mail (2.753) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX1/KdPd80uaZjBU9T8UTZJshqULxXwalsxJV0+0J K5PhDH2a68yKZIDZM94h0aohm2kmQltW/eRNg/5HKC69vrDBqJ 4Cw4tTzrfStnDw0BK6xQ== X-detected-kernel: by monty-python.gnu.org: 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:51577 Archived-At: Am 15.02.2008 um 22:10 schrieb Rasmus Pank Roulund: > As I stated in the original post, it is only a problem when the =20 > file is located on the D partition rather than the C drive. Of course I am not use Losedos user, but how about adopting this code =20= to your init file? (if (string=3D "aspell" ispell-program-name) (progn ; (setq ispell-extra-args "--norm-form=3Dcomp --norm-required --=20= run-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 () =20 (ispell-change-dictionary "british")))) (add-hook 'TeX-language-de-hook (function (lambda () =20 (ispell-change-dictionary ispell-dictionary))));"deutsch" (add-hook 'LaTeX-mode-hook (function (lambda () (setq =20 ispell-extra-args '("--mode=3Dtex"))))) ; (setq-default ispell-extra-args '("--mode=3Dtex")) ; (setq-default ispell-extra-args '("--=20 personal=3Dcustom_dict.rws")) ; (add-hook 'LaTeX-mode-hook 'flyspell-mode) (message "Alles f=FCr =ABa=BBspell") ) (setq ispell-dictionary "german8") (add-hook 'TeX-language-en-hook (function (lambda () =20 (ispell-change-dictionary "british")))) (add-hook 'TeX-language-de-hook (function (lambda () =20 (ispell-change-dictionary "deutsch8")))) (add-hook 'LaTeX-mode-hook (function (lambda () (setq =20 ispell-extra-args '("-t"))))) (message "Alles f=FCr =BBi=ABspell") ) You probably know how to find the dictionaries *spell can use. =20 Setting the programme and the dictionary once might allow both to =20 survive the change of the slice/volume/partition/drive. If not, there =20= are some variables you can set to determine exactly and unalterable =20 where aspell will find its dictionaries and other paraphernalia, =20 maybe best as "C:/...": ispell-aspell-data-dir ispell-aspell-dict-dir =BFispell-really-aspell? Maybe you also need to create a hook that changes ispell-process-directory if not changed correctly. -- Greetings Pete If you're not confused, you're not paying attention.