From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Agustin Martin Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: flyspell functions don't initialize aspell dicts Date: Tue, 13 May 2008 12:19:48 +0200 Message-ID: <20080513101948.GA4281@agmartin.aq.upm.es> References: <20ecf6c70805121527y505e6bd5qabad4e401eeaffef@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1210674122 32568 80.91.229.12 (13 May 2008 10:22:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 May 2008 10:22:02 +0000 (UTC) Cc: David Reitter , Manuel.Serrano@unice.fr To: Nathaniel Cunningham , emacs-pretest-bug@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 13 12:22:38 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JvreQ-00089d-Kl for ged-emacs-devel@m.gmane.org; Tue, 13 May 2008 12:22:30 +0200 Original-Received: from localhost ([127.0.0.1]:35777 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jvrdh-0002Ma-BD for ged-emacs-devel@m.gmane.org; Tue, 13 May 2008 06:21:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JvrdZ-0002Jz-6B for emacs-devel@gnu.org; Tue, 13 May 2008 06:21:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JvrdW-0002H0-Kk for emacs-devel@gnu.org; Tue, 13 May 2008 06:21:35 -0400 Original-Received: from [199.232.76.173] (port=58445 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JvrdW-0002Ge-A6 for emacs-devel@gnu.org; Tue, 13 May 2008 06:21:34 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:56569) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JvrdW-0008UU-Ad for emacs-devel@gnu.org; Tue, 13 May 2008 06:21:34 -0400 Original-Received: from mail.gnu.org ([199.232.76.166]:37594 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Jvrca-0008Ib-TX for emacs-pretest-bug@gnu.org; Tue, 13 May 2008 06:20:36 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JvrdR-0008T5-Ha for emacs-pretest-bug@gnu.org; Tue, 13 May 2008 06:21:33 -0400 Original-Received: from euler.ccupm.upm.es ([138.100.4.67]:52255 helo=smtp.upm.es) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JvrdR-0007uk-1Y for emacs-pretest-bug@gnu.org; Tue, 13 May 2008 06:21:29 -0400 Original-Received: from mala.aq.upm.es (Agmartin.aq.upm.es [138.100.41.131]) by smtp.upm.es (8.13.8/8.13.8/euler-005) with ESMTP id m4DAJmk5020866; Tue, 13 May 2008 12:19:48 +0200 Original-Received: by mala.aq.upm.es (Postfix, from userid 1000) id E3F625CB73; Tue, 13 May 2008 12:19:48 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20ecf6c70805121527y505e6bd5qabad4e401eeaffef@mail.gmail.com> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:97079 gmane.emacs.pretest.bugs:22299 Archived-At: On Mon, May 12, 2008 at 05:27:46PM -0500, Nathaniel Cunningham wrote: > Greetings, > I've found that (flyspell-buffer) doesn't go through the same dictionary > initialization steps as (ispell-buffer). Specifically, the flyspell > functions (flyspell-word) and (flyspell-large-region) don't call > (ispell-maybe-find-aspell-dictionaries), they way (ispell-region) and > (flyspell-mode) do. The result: user's aspell setup (if present) doesn't > get to inform `ispell-dictionary-alist', unless e.g. (ispell-buffer) or > (flyspell-mode) is called first. > > I believe simply adding (ispell-maybe-find-aspell-dictionaries) near the top > of `flyspell-word' and `flyspell-large-region' definitions, as it already is > for `flyspell-mode-on', will take care of this. (ispell-maybe-find-aspell-dictionaries) is no longer used in fsf emacs ispell.el or flyspell.el. It has been recently replaced by a more generic (ispell-set-spellchecker-params), which is also called from (flyspell-word) and (flyspell-large-region). flyspell.el: Revision 1.131 ispell.el: Revision 1.227 Regards, -- Agustin