From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: flyspell bug Date: Sun, 02 Oct 2005 23:45:26 +0200 Message-ID: References: <20051002220548.22F6.SLAWOMIR.NOWACZYK.847@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1128290951 10019 80.91.229.2 (2 Oct 2005 22:09:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 2 Oct 2005 22:09:11 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 03 00:09:09 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EMC0J-00054U-QD for ged-emacs-devel@m.gmane.org; Mon, 03 Oct 2005 00:08:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EMC0J-00050q-7q for ged-emacs-devel@m.gmane.org; Sun, 02 Oct 2005 18:08:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EMBz8-0004Wy-Dg for emacs-devel@gnu.org; Sun, 02 Oct 2005 18:07:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EMBz0-0004Rq-Ct for emacs-devel@gnu.org; Sun, 02 Oct 2005 18:07:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EMBz0-0004Jt-5d for emacs-devel@gnu.org; Sun, 02 Oct 2005 18:06:58 -0400 Original-Received: from [195.41.46.236] (helo=pfepb.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EMBeI-0002wz-Lb for emacs-devel@gnu.org; Sun, 02 Oct 2005 17:45:34 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepb.post.tele.dk (Postfix) with SMTP id E98525EE03F; Sun, 2 Oct 2005 23:45:29 +0200 (CEST) Original-To: Slawomir Nowaczyk In-Reply-To: <20051002220548.22F6.SLAWOMIR.NOWACZYK.847@student.lu.se> (Slawomir Nowaczyk's message of "Sun, 02 Oct 2005 22:10:39 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:43473 Archived-At: Slawomir Nowaczyk writes: > On Sun, 02 Oct 2005 13:08:27 -0400 > "Richard M. Stallman" wrote: > > #> 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. > > Not really. I work sometimes with several buffers where each is > written in a different language. After your change, the ispell > dictionary isn't automatically adjusted anymore. > > I need to manually run, for example, ispell-word in order for > ispell/flyspell to notice it should change language/dictionary. > > It seems, therefore, that flyspell should read buffer local > specifications at least after changing buffers. I guess you mean after switching buffers (in the emacs terminology)? I often wondered why there are no hooks associated with switching buffers, windows, and frames. E.g. switch-buffer-functions (args: old buffer, new buffer) select-window-functions (args: old window, new window) select-frame-functions (args: old frame, new frame) But the problem might be to decide when to actually run these hooks -- I think somewhere in the main loop...? > > #> Which suggests making this change. Does it fix the problem? > > Your change does seem to fix the problem with transient mark mode for > me, though. Which is one good reason to install it unless somebody can make a better fix soon!! -- Kim F. Storm http://www.cua.dk