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: flyspell bug Date: Sun, 02 Oct 2005 13:08:27 -0400 Message-ID: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1128274982 4085 80.91.229.2 (2 Oct 2005 17:43:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 2 Oct 2005 17:43:02 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 02 19:43:00 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EM7r6-0000Wu-Al for ged-emacs-devel@m.gmane.org; Sun, 02 Oct 2005 19:42:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EM7r5-0002s0-PA for ged-emacs-devel@m.gmane.org; Sun, 02 Oct 2005 13:42:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EM7lk-0001Gn-7a for emacs-devel@gnu.org; Sun, 02 Oct 2005 13:37:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EM7la-0001D7-M3 for emacs-devel@gnu.org; Sun, 02 Oct 2005 13:36:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EM7lY-00011d-R5 for emacs-devel@gnu.org; Sun, 02 Oct 2005 13:36:48 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EM7K7-0005Z8-P9 for emacs-devel@gnu.org; Sun, 02 Oct 2005 13:08:27 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1EM7K7-0005sd-CK; Sun, 02 Oct 2005 13:08:27 -0400 Original-To: emacs-devel@gnu.org 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:43462 Archived-At: It seems to me that there is no reason for flyspell.el to check the buffer-local specifications every time it checks or corrects a word; doing this when the user enables Flyspell mode ought to be enough. Which suggests making this change. Does it fix the problem? *** flyspell.el 20 Sep 2005 19:31:14 -0400 1.76 --- flyspell.el 02 Oct 2005 01:38:17 -0400 *************** *** 981,987 **** (interactive (list ispell-following-word)) (save-excursion ;; use the correct dictionary ! (flyspell-accept-buffer-local-defs) (let* ((cursor-location (point)) (flyspell-word (flyspell-get-word following)) start end poss word) --- 981,987 ---- (interactive (list ispell-following-word)) (save-excursion ;; use the correct dictionary ! ;;; (flyspell-accept-buffer-local-defs) (let* ((cursor-location (point)) (flyspell-word (flyspell-get-word following)) start end poss word) *************** *** 1715,1721 **** (let ((pos (point)) (old-max (point-max))) ;; use the correct dictionary ! (flyspell-accept-buffer-local-defs) (if (and (eq flyspell-auto-correct-pos pos) (consp flyspell-auto-correct-region)) ;; we have already been using the function at the same location --- 1715,1721 ---- (let ((pos (point)) (old-max (point-max))) ;; use the correct dictionary ! ;;; (flyspell-accept-buffer-local-defs) (if (and (eq flyspell-auto-correct-pos pos) (consp flyspell-auto-correct-region)) ;; we have already been using the function at the same location *************** *** 1886,1892 **** The word checked is the word at the mouse position." (interactive "e") ;; use the correct dictionary ! (flyspell-accept-buffer-local-defs) ;; retain cursor location (I don't know why but save-excursion here fails). (let ((save (point))) (mouse-set-point event) --- 1886,1892 ---- The word checked is the word at the mouse position." (interactive "e") ;; use the correct dictionary ! ;;; (flyspell-accept-buffer-local-defs) ;; retain cursor location (I don't know why but save-excursion here fails). (let ((save (point))) (mouse-set-point event)