emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Noorul Islam K M <noorul@noorul.com>
To: "Sébastien Vauban" <wxhgmqzgwmuf@spammotel.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Value of `ispell-dictionary-alist' reset by `org-agenda-list'
Date: Tue, 07 Sep 2010 11:00:09 +0530	[thread overview]
Message-ID: <87bp8a2k9q.fsf@noorul.maa.corp.collab.net> (raw)
In-Reply-To: <87y6bfucvq.fsf@mundaneum.com> ("Sébastien Vauban"'s message of "Sun, 05 Sep 2010 22:57:45 +0200")

Sébastien Vauban <wxhgmqzgwmuf@spammotel.com> writes:

> Hi Noorul and everybody,
>
> Noorul Islam wrote:
>> 2010/9/3 Sébastien Vauban <wxhgmqzgwmuf@spammotel.com>:
>>> I still don't understand what's going on, but I've managed getting closer to a
>>> long experienced problem in my Emacs: while I set the value of
>>> =ispell-dictionary-alist= in the beginning of my =.emacs= file, it is reset
>>> when calling =org-agenda-list=.
>
> (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 ispell.
>>
>> From flyspell.el
>> ======================================================
>> (defun flyspell-mode-on ()
>>   "Turn Flyspell mode on.  Do not use this; use `flyspell-mode' instead."
>>   (ispell-set-spellchecker-params) ; Initialize variables and dicts alists
>>   (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)))
>> ======================================================
>
> 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

      reply	other threads:[~2010-09-07  5:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-03 15:36 Value of `ispell-dictionary-alist' reset by `org-agenda-list' Sébastien Vauban
2010-09-04  5:39 ` Noorul Islam
2010-09-05 20:57   ` Sébastien Vauban
2010-09-07  5:30     ` Noorul Islam K M [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bp8a2k9q.fsf@noorul.maa.corp.collab.net \
    --to=noorul@noorul.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=wxhgmqzgwmuf@spammotel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).