From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#6967: flymake not cleaning after itself (kill-buffer) Date: Sun, 24 Oct 2010 13:14:38 -0400 Message-ID: <87eibffr7l.fsf@stupidchicken.com> References: <696071.46975.qm@web56805.mail.re3.yahoo.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1287942191 25761 80.91.229.12 (24 Oct 2010 17:43:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 24 Oct 2010 17:43:11 +0000 (UTC) Cc: Eric Ludlam , 6967@debbugs.gnu.org To: S Boucher Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 24 19:43:09 2010 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.69) (envelope-from ) id 1PA4b6-0002lh-Rw for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Oct 2010 19:43:09 +0200 Original-Received: from localhost ([127.0.0.1]:51474 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PA4b6-00080k-3W for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Oct 2010 13:43:08 -0400 Original-Received: from [140.186.70.92] (port=59305 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PA4ax-0007zJ-9D for bug-gnu-emacs@gnu.org; Sun, 24 Oct 2010 13:43:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PA4av-0007kQ-Mx for bug-gnu-emacs@gnu.org; Sun, 24 Oct 2010 13:42:59 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53797) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PA4av-0007kG-Ko for bug-gnu-emacs@gnu.org; Sun, 24 Oct 2010 13:42:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PA462-0003wt-7v; Sun, 24 Oct 2010 13:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Oct 2010 17:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6967 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6967-submit@debbugs.gnu.org id=B6967.128794024515172 (code B ref 6967); Sun, 24 Oct 2010 17:11:02 +0000 Original-Received: (at 6967) by debbugs.gnu.org; 24 Oct 2010 17:10:45 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PA45l-0003wf-Dy for submit@debbugs.gnu.org; Sun, 24 Oct 2010 13:10:45 -0400 Original-Received: from pantheon-po16.its.yale.edu ([130.132.50.72]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PA45j-0003wa-R1 for 6967@debbugs.gnu.org; Sun, 24 Oct 2010 13:10:44 -0400 Original-Received: from furball (173-9-75-145-NewEngland.hfc.comcastbusiness.net [173.9.75.145]) (authenticated bits=0) by pantheon-po16.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o9OHEgl6007052 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 24 Oct 2010 13:14:43 -0400 Original-Received: by furball (Postfix, from userid 1000) id D93851607BF; Sun, 24 Oct 2010 13:14:38 -0400 (EDT) In-Reply-To: <696071.46975.qm@web56805.mail.re3.yahoo.com> (S. Boucher's message of "Wed, 1 Sep 2010 12:19:02 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 24 Oct 2010 13:11:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:41112 Archived-At: S Boucher writes: > flymake-kill-buffer-hook does not actually kill the flymake process. > So, if flymake is used in conjunction with semantic, it gets > problematic. > > When semantic does background parsing, it may find-file/kill-buffer > for files not already in memory. If semantic proceeds to kill-buffer > while a flymake process is running, then a window pops up asking > whether the buffer's process should be killed (because kill-buffer > asks before killing processes). > > It seems like flymake-kill-buffer-hook should kill the buffer, so that > by the time semantic calls kill-buffer, there won't be a process to > query about. It would be wrong for flymake-kill-buffer-hook to kill the buffer, because there may be other functions on the hook that may need to examine the buffer state. The problem here seems to be that when Semantic visits files to parse them, Flymake is enabled when it should not. I'm guessing you are using flymake-find-file-hook, is that correct? Maybe the solution is for Semantic to either avoid using find-file[-noselect], or detect if Flymake is on and disable it for files that are only being parsed temporarily. Eric, what do you think?