From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: flyspell bug Date: Mon, 03 Oct 2005 11:35:27 -0400 Message-ID: References: <20051002220548.22F6.SLAWOMIR.NOWACZYK.847@student.lu.se> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1128354198 757 80.91.229.2 (3 Oct 2005 15:43:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 3 Oct 2005 15:43:18 +0000 (UTC) Cc: slawomir.nowaczyk.847@student.lu.se, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 03 17:43:17 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EMSST-0007TM-Jc for ged-emacs-devel@m.gmane.org; Mon, 03 Oct 2005 17:42:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EMSST-0007Zk-22 for ged-emacs-devel@m.gmane.org; Mon, 03 Oct 2005 11:42:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EMSQn-0006zp-8v for emacs-devel@gnu.org; Mon, 03 Oct 2005 11:40:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EMSQg-0006wZ-IX for emacs-devel@gnu.org; Mon, 03 Oct 2005 11:40:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EMSQg-0006qm-EA for emacs-devel@gnu.org; Mon, 03 Oct 2005 11:40:38 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EMSLg-0002qU-QX for emacs-devel@gnu.org; Mon, 03 Oct 2005 11:35:28 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1EMSLf-0001AE-RH; Mon, 03 Oct 2005 11:35:27 -0400 Original-To: storm@cua.dk (Kim F. Storm) In-reply-to: (storm@cua.dk) 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:43497 Archived-At: Do these changes give good results? *** ispell.el 24 Sep 2005 22:42:55 -0400 1.177 --- ispell.el 03 Oct 2005 11:33:22 -0400 *************** *** 1558,1563 **** --- 1558,1564 ---- (interactive (list ispell-following-word ispell-quietly current-prefix-arg)) (if continue (ispell-continue) + (ispell-maybe-find-aspell-dictionaries) (ispell-accept-buffer-local-defs) ; use the correct dictionary (let ((cursor-location (point)) ; retain cursor location (word (ispell-get-word following)) *************** *** 2616,2621 **** --- 2617,2623 ---- Return nil if spell session is quit, otherwise returns shift offset amount for last line processed." (interactive "r") ; Don't flag errors on read-only bufs. + (ispell-maybe-find-aspell-dictionaries) (if (not recheckp) (ispell-accept-buffer-local-defs)) ; set up dictionary, local words, etc. (let ((skip-region-start (make-marker)) *************** *** 3577,3583 **** (defun ispell-accept-buffer-local-defs () "Load all buffer-local information, restarting Ispell when necessary." - (ispell-maybe-find-aspell-dictionaries) (ispell-buffer-local-dict) ; May kill ispell-process. (ispell-buffer-local-words) ; Will initialize ispell-process. (ispell-buffer-local-parsing)) --- 3579,3584 ---- *** flyspell.el 20 Sep 2005 19:31:14 -0400 1.76 --- flyspell.el 03 Oct 2005 11:34:03 -0400 *************** *** 536,541 **** --- 536,542 ---- ;*---------------------------------------------------------------------*/ (defun flyspell-mode-on () "Turn Flyspell mode on. Do not use this; use `flyspell-mode' instead." + (ispell-maybe-find-aspell-dictionaries) (setq ispell-highlight-face 'flyspell-incorrect) ;; local dictionaries setup (or ispell-local-dictionary ispell-dictionary