From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: torys.anderson@gmail.com Newsgroups: gmane.emacs.help Subject: C# mode on Linux: flymake inactive Date: Sat, 22 Nov 2014 13:46:52 -0500 Message-ID: <87bnnz9ioz.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1416682034 9430 80.91.229.3 (22 Nov 2014 18:47:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Nov 2014 18:47:14 +0000 (UTC) To: emacs list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 22 19:47:09 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XsFi8-0000Dt-8n for geh-help-gnu-emacs@m.gmane.org; Sat, 22 Nov 2014 19:47:08 +0100 Original-Received: from localhost ([::1]:46441 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsFi7-0000Ui-Qy for geh-help-gnu-emacs@m.gmane.org; Sat, 22 Nov 2014 13:47:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42767) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsFhw-0000Uc-EB for help-gnu-emacs@gnu.org; Sat, 22 Nov 2014 13:46:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XsFhv-0000I2-8J for help-gnu-emacs@gnu.org; Sat, 22 Nov 2014 13:46:56 -0500 Original-Received: from mail-yh0-x22a.google.com ([2607:f8b0:4002:c01::22a]:33298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsFhv-0000Hr-4U for help-gnu-emacs@gnu.org; Sat, 22 Nov 2014 13:46:55 -0500 Original-Received: by mail-yh0-f42.google.com with SMTP id v1so3326437yhn.29 for ; Sat, 22 Nov 2014 10:46:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version :content-type; bh=34zSG/Kg+gWGzg4/DgCcE9b26GXvNM5SnxzxPi3uHUY=; b=nNEZ3iehLugaWgWI8In/WZfmWW1aKa+UfoCWMFmdZznYh57WIB/VylBBekL73ghK32 vLX/8zx1koO/ErHBe6LT738+M5dO5vpAF8Z19Lf/XX858yiLP6xDttun0KK7C2N9OM8P tisx/EZybOaJB4ZqfgiDaVnhggzJyD7nfDylR7yf09cIeTm5j7XlCRXe/ycp3hZbhJ1+ jLYohsnr9ea6/dkjYAdbruvfMFZNeV6ClGScV2dUgLcqw0QY1mia/bd3J3RB5Vsa96E9 /kX2ge9BOir2m7n+p6zveH3erTothx4O+/3fl6I7zx367s/h8VseAkrXQkm3RgyNv5Fa xInQ== X-Received: by 10.236.164.232 with SMTP id c68mr8784749yhl.102.1416682014096; Sat, 22 Nov 2014 10:46:54 -0800 (PST) Original-Received: from localhost.localdomain ([2601:0:a000:4a1:ee55:f9ff:feb5:5589]) by mx.google.com with ESMTPSA id f110sm4532721yhp.29.2014.11.22.10.46.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 22 Nov 2014 10:46:53 -0800 (PST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4002:c01::22a X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101119 Archived-At: I am trying to develop C# applications on Linux and have installed CSharp-mode and Flymake as per all the direction here: http://www.emacswiki.org/emacs/CSharpMode I have the following code in my .emacs for initialization: (autoload 'csharp-mode "csharp-mode" "Major mode for editing C# code." t) (setq auto-mode-alist (append '(("\\.cs$" . csharp-mode)) auto-mode-alist)) ;; Custom code to use a default compiler string for all C# files (defvar my-csharp-default-compiler nil) (setq my-csharp-default-compiler "gmcs @@FILE@@") (defun my-csharp-get-value-from-comments (marker-string line-limit) my-csharp-default-compiler) (add-hook 'csharp-mode-hook (lambda () (if my-csharp-default-compiler (progn (fset 'orig-csharp-get-value-from-comments (symbol-function 'csharp-get-value-from-comments)) (fset 'csharp-get-value-from-comments (symbol-function 'my-csharp-get-value-from-comments)))) (flymake-mode))) (add-hook 'csharp-mode-hook (lambda () (local-set-key (kbd "{") 'c-electric-brace))) If I make a little demo program I am able to simply compile and run it with `gmcs myfile.cs` and `mono myfile.exe`. However, Flymake mode does absolutely nothing; no errors, no popups, no syntax checking. Although my mode-line indicates Flymake is running (with no exception marks), absolutely nothing happens. Any suggestions on how to get it working?