From mboxrd@z Thu Jan 1 00:00:00 1970 From: Noorul Islam K M Subject: Re: Value of `ispell-dictionary-alist' reset by `org-agenda-list' Date: Tue, 07 Sep 2010 11:00:09 +0530 Message-ID: <87bp8a2k9q.fsf@noorul.maa.corp.collab.net> References: <87lj7iu9dk.fsf@mundaneum.com> <87y6bfucvq.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=44539 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OsqmV-0002mC-C2 for emacs-orgmode@gnu.org; Tue, 07 Sep 2010 01:31:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OsqmT-0001B0-Pp for emacs-orgmode@gnu.org; Tue, 07 Sep 2010 01:31:43 -0400 Received: from mail-iw0-f169.google.com ([209.85.214.169]:47036) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OsqmT-0001At-Mr for emacs-orgmode@gnu.org; Tue, 07 Sep 2010 01:31:41 -0400 Received: by iwn33 with SMTP id 33so7235709iwn.0 for ; Mon, 06 Sep 2010 22:31:40 -0700 (PDT) In-Reply-To: <87y6bfucvq.fsf@mundaneum.com> (=?utf-8?Q?=22S=C3=A9bastien?= Vauban"'s message of "Sun, 05 Sep 2010 22:57:45 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?utf-8?Q?S=C3=A9bastien?= Vauban Cc: emacs-orgmode@gnu.org S=C3=A9bastien Vauban writes: > Hi Noorul and everybody, > > Noorul Islam wrote: >> 2010/9/3 S=C3=A9bastien Vauban : >>> I still don't understand what's going on, but I've managed getting clos= er to a >>> long experienced problem in my Emacs: while I set the value of >>> =3Dispell-dictionary-alist=3D in the beginning of my =3D.emacs=3D file,= it is reset >>> when calling =3Dorg-agenda-list=3D. > > (message "Value of `ispell-dictionary-alist' before `org-agenda-list'") > (edebug-print ispell-dictionary-alist) > > (org-agenda-list) > > (message "Value of `ispell-dictionary-alist' after `org-agenda-list'") > (edebug-print ispell-dictionary-alist) > > (delete-other-windows) > > >>> Has anyone any idea on how to circumvent this? >> >> Since orgmode is using flyspell, looks like it is interfering with ispel= l. >> >> From flyspell.el >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D >> (defun flyspell-mode-on () >> "Turn Flyspell mode on. Do not use this; use `flyspell-mode' instead." >> (ispell-set-spellchecker-params) ; Initialize variables and dicts alis= ts >> (setq ispell-highlight-face 'flyspell-incorrect) >> ;; local dictionaries setup >> (or ispell-local-dictionary ispell-dictionary >> (if flyspell-default-dictionary >> (ispell-change-dictionary flyspell-default-dictionary))) >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D > > Yes, but I don't understand why Org *would* (and did not write *does*, as= it > still is not clear enough to me) setq the list of dictionaries... > > Clearly a behavior to forbid! You might be able to write a flyspell-mode hook function which will set the dictionary you like in the variable flyspell-default-dictionary. Thanks and Regards Noorul