From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Nathaniel Cunningham" Newsgroups: gmane.emacs.bugs Subject: bug#232: flyspell functions don't initialize aspell dicts Date: Mon, 12 May 2008 17:27:46 -0500 Message-ID: <20ecf6c70805121527y505e6bd5qabad4e401eeaffef__40033.3802834668$1210642400$gmane$org@mail.gmail.com> Reply-To: Nathaniel Cunningham , 232@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5589_33472295.1210631266365" X-Trace: ger.gmane.org 1210642356 12353 80.91.229.12 (13 May 2008 01:32:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 May 2008 01:32:36 +0000 (UTC) To: emacs-pretest-bug@gnu.org, Manuel.Serrano@unice.fr Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 13 03:33:11 2008 Return-path: Envelope-to: geb-bug-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 1JvjO9-00073U-FX for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 May 2008 03:33:09 +0200 Original-Received: from localhost ([127.0.0.1]:48153 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JvjNQ-0007Q0-Em for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 May 2008 21:32:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jvho3-0007QI-8W for bug-gnu-emacs@gnu.org; Mon, 12 May 2008 19:51:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jvho0-0007Pd-Jf for bug-gnu-emacs@gnu.org; Mon, 12 May 2008 19:51:46 -0400 Original-Received: from [199.232.76.173] (port=37616 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jvho0-0007Pa-F9 for bug-gnu-emacs@gnu.org; Mon, 12 May 2008 19:51:44 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:46474) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jvhnz-0000w5-UO for bug-gnu-emacs@gnu.org; Mon, 12 May 2008 19:51:44 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m4CNpdkW006838; Mon, 12 May 2008 16:51:39 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m4CNe6Ba002209; Mon, 12 May 2008 16:40:06 -0700 X-Loop: don@donarmstrong.com Resent-From: "Nathaniel Cunningham" Original-Sender: emacs-devel-bounces+monnier=iro.umontreal.ca@gnu.org Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 12 May 2008 23:40:06 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 232 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.121063510132304 (code B ref -1); Mon, 12 May 2008 23:40:06 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 12 May 2008 23:31:41 +0000 Original-Received: from mercure.iro.umontreal.ca (mercure.iro.umontreal.ca [132.204.24.67]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m4CNVbRL032297 for ; Mon, 12 May 2008 16:31:38 -0700 Original-Received: by mercure.iro.umontreal.ca (Postfix, from userid 20848) id 647602CFDC1; Mon, 12 May 2008 19:31:37 -0400 (EDT) Original-Received: from perlin.iro.umontreal.ca (perlin.iro.umontreal.ca [132.204.24.51]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 4F7BE2CFA6C for ; Mon, 12 May 2008 19:31:37 -0400 (EDT) Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by perlin.iro.umontreal.ca (Postfix) with ESMTP id A22FF14821B for ; Mon, 12 May 2008 19:31:32 -0400 (EDT) Original-Received: from localhost ([127.0.0.1]:60625 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JvhUS-0000Lg-Fe for monnier@iro.umontreal.ca; Mon, 12 May 2008 19:31:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JvgUs-0005j9-RG for emacs-devel@gnu.org; Mon, 12 May 2008 18:27:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JvgUr-0005ix-Pe for emacs-devel@gnu.org; Mon, 12 May 2008 18:27:54 -0400 Original-Received: from [199.232.76.173] (port=42760 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JvgUr-0005iu-LP for emacs-devel@gnu.org; Mon, 12 May 2008 18:27:53 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:54894) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JvgUr-00043z-Do for emacs-devel@gnu.org; Mon, 12 May 2008 18:27:53 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]:45063) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JvgTy-0005fx-2B for emacs-pretest-bug@gnu.org; Mon, 12 May 2008 18:26:58 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JvgUm-00043Y-VJ for emacs-pretest-bug@gnu.org; Mon, 12 May 2008 18:27:53 -0400 Original-Received: from rv-out-0708.google.com ([209.85.198.243]:63117) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JvgUm-000436-JB for emacs-pretest-bug@gnu.org; Mon, 12 May 2008 18:27:48 -0400 Original-Received: by rv-out-0708.google.com with SMTP id k29so3426549rvb.6 for ; Mon, 12 May 2008 15:27:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:mime-version:content-type; bh=Rf13INA2AiRcaDywCfpVylwOb04cDIsoRbvCAF1U8+w=; b=qfOSbPhe5s6p7xdLIPtu+NQ8U1IpgQG3kvTRzhjm4cq+WaeBmYTUgpwuousHyujZOVXw1N+cRsCClOYfpcVsru8Il8gClHZ00FbCKI1YStmYTHyv+kX5c2aU3l0AEDge9Rgvg7x07iN7thKUioACKFlLidtcef2wmYYMgKqIaDE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:mime-version:content-type; b=gL7+Z6fqlxJzsMQYcM0gt9LK4HHZMAgLfB6VO/0qzrqrA6FBiWpMOk5IUZF24Zudrn7zrILiWW/vbniMHcrkvqzjZzYID8vfEE3021VQ2N8OAJtciIATkmUOoywEDhsdnn8kpzj0Fz9YFoaE+A9jVyoaLGwpWJcJSpYMSDXMzOo= Original-Received: by 10.142.229.4 with SMTP id b4mr3488844wfh.118.1210631266381; Mon, 12 May 2008 15:27:46 -0700 (PDT) Original-Received: by 10.143.123.3 with HTTP; Mon, 12 May 2008 15:27:46 -0700 (PDT) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Mon, 12 May 2008 19:30:42 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-0.585, requis 5, BAYES_00 -2.60, HTML_00_10 1.07, HTML_MESSAGE 0.88, RCVD_BY_IP 0.07, SPF_HELO_PASS -0.00) X-DIRO-MailScanner-From: emacs-devel-bounces+monnier=iro.umontreal.ca@gnu.org X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Mon, 12 May 2008 19:51:46 -0400 X-Mailman-Approved-At: Mon, 12 May 2008 21:31:58 -0400 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17987 Archived-At: ------=_Part_5589_33472295.1210631266365 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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. Cheers, Nathaniel ------=_Part_5589_33472295.1210631266365 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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.

Cheers,
Nathaniel
------=_Part_5589_33472295.1210631266365--