From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: How to disable flymake in tramp buffers Date: Wed, 18 Aug 2010 20:34:40 +0200 Message-ID: <87r5hv6a7z.fsf@gmx.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1282156550 18661 80.91.229.12 (18 Aug 2010 18:35:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 18 Aug 2010 18:35:50 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Gary Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 18 20:35:47 2010 Return-path: Envelope-to: geh-help-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 1OlnU4-0004jg-Pj for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Aug 2010 20:35:44 +0200 Original-Received: from localhost ([127.0.0.1]:43607 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OlnTy-0007DE-CV for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Aug 2010 14:35:26 -0400 Original-Received: from [140.186.70.92] (port=35022 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OlnTM-0007Be-Hi for help-gnu-emacs@gnu.org; Wed, 18 Aug 2010 14:34:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OlnTK-0006cu-JH for help-gnu-emacs@gnu.org; Wed, 18 Aug 2010 14:34:47 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:60185 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OlnTK-0006ca-8I for help-gnu-emacs@gnu.org; Wed, 18 Aug 2010 14:34:46 -0400 Original-Received: (qmail invoked by alias); 18 Aug 2010 18:34:43 -0000 Original-Received: from p4FC18BC7.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [79.193.139.199] by mail.gmx.net (mp064) with SMTP; 18 Aug 2010 20:34:43 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/mJs4fvnjmBm2524ycSXGAqOL2ANnedyxLAkSWcp v3Vw1uGo/EIyag User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:74720 Archived-At: Gary writes: > It is a known problem with flymake when opening files on a remote > host. It uses the wrong function to start the checking process, I > believe. Michael Albinus knows more than I do, it was one of his posts I > found explaining it :) - see IIRC, I've asked for a bug report. Nobody did report, consequently nobody did work on it. However, the change is not risky. I have committed the following patch to the Emacs 23 branch: --8<---------------cut here---------------start------------->8--- *** /usr/local/src/emacs-23/lisp/progmodes/flymake.el.~99985~" 2010-08-18 20:19:10.536199643 +0200 --- /usr/local/src/emacs-23/lisp/progmodes/flymake.el 2010-08-18 16:44:18.545857439 +0200 *************** *** 1152,1158 **** (when dir (let ((default-directory dir)) (flymake-log 3 "starting process on dir %s" default-directory))) ! (setq process (apply 'start-process "flymake-proc" (current-buffer) cmd args)) (set-process-sentinel process 'flymake-process-sentinel) (set-process-filter process 'flymake-process-filter) (push process flymake-processes) --- 1152,1159 ---- (when dir (let ((default-directory dir)) (flymake-log 3 "starting process on dir %s" default-directory))) ! (setq process (apply 'start-file-process ! "flymake-proc" (current-buffer) cmd args)) (set-process-sentinel process 'flymake-process-sentinel) (set-process-filter process 'flymake-process-filter) (push process flymake-processes) --8<---------------cut here---------------end--------------->8--- Could somebody, please, check, whether this is TRT? I do not use flymake. Best regards, Michael.