From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?=C3=93scar?= Fuentes Newsgroups: gmane.emacs.bugs Subject: bug#22944: 24.4; Wishlist: Support for cmake in compilation-mode Date: Wed, 20 Apr 2016 02:16:41 +0200 Message-ID: <87twixuoba.fsf@wanadoo.es> References: <87si013rsh.fsf@jorrit.de> <87shzy75ia.fsf@wanadoo.es> <20160410153311.GA4361@paranoia> <87bn5h1io1.fsf@wanadoo.es> <20160411132745.GD4361@paranoia> <877fg32182.fsf@wanadoo.es> <87bn57w1m4.fsf@wanadoo.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1461111443 21815 80.91.229.3 (20 Apr 2016 00:17:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Apr 2016 00:17:23 +0000 (UTC) Cc: John Wiegley , 22944@debbugs.gnu.org, jorrit@jorrit.de To: Richard Stallman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 20 02:17:10 2016 Return-path: Envelope-to: geb-bug-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 1asfpN-00048Y-82 for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Apr 2016 02:17:09 +0200 Original-Received: from localhost ([::1]:38726 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asfpM-0000WJ-AX for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Apr 2016 20:17:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asfpH-0000TM-TJ for bug-gnu-emacs@gnu.org; Tue, 19 Apr 2016 20:17:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1asfpG-0000qh-ID for bug-gnu-emacs@gnu.org; Tue, 19 Apr 2016 20:17:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56686) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asfpG-0000qd-FC for bug-gnu-emacs@gnu.org; Tue, 19 Apr 2016 20:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1asfpG-0000pH-5y for bug-gnu-emacs@gnu.org; Tue, 19 Apr 2016 20:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=C3=93scar?= Fuentes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Apr 2016 00:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22944 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22944-submit@debbugs.gnu.org id=B22944.14611114143154 (code B ref 22944); Wed, 20 Apr 2016 00:17:02 +0000 Original-Received: (at 22944) by debbugs.gnu.org; 20 Apr 2016 00:16:54 +0000 Original-Received: from localhost ([127.0.0.1]:40790 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1asfp7-0000oo-Vq for submit@debbugs.gnu.org; Tue, 19 Apr 2016 20:16:54 -0400 Original-Received: from smtp11.acens.net ([86.109.99.135]:42480 helo=smtp.movistar.es) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1asfp4-0000oX-DZ for 22944@debbugs.gnu.org; Tue, 19 Apr 2016 20:16:51 -0400 X-CTCH-RefID: str=0001.0A0B0203.5716CA6A.00E8, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown Original-Received: from qcore (88.22.75.120) by smtp.movistar.es (8.6.122.03) (authenticated as 981711563$telefonica.net) id 56BC428E04C67096; Wed, 20 Apr 2016 00:17:00 +0000 In-Reply-To: (Richard Stallman's message of "Tue, 19 Apr 2016 19:50:43 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:116621 Archived-At: Richard Stallman writes: > [[[ To any NSA and FBI agents reading my email: please consider ]]] > [[[ whether defending the US Constitution against all enemies, ]]] > [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > > > I did not know this was waiting for me. What is the question people are > > > asking me about? Could someone explain the specific question to me? > > > Whether the patch associated with this bug is beyond the limit for what's > > accepted without a copyright assignment form. > > Could you please show me the patch? diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 0b15a28..5bfd35e 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el @@ -161,6 +161,13 @@ compilation-error-regexp-alist-alist \\(?: characters? \\([0-9]+\\)-?\\([0-9]+\\)?:\\)?\\([ \n]Warning\\(?: [0-9]+\\)?:\\)?\\)" 2 (3 . 4) (5 . 6) (7)) + (cmake + "^CMake \\(?:Error\\|\\(Warning\\)\\) at \\(.*\\):\\([1-9][0-9]*\\) ([^)]+):$" + 2 3 nil (1)) + (cmake-info + "^ \\(?: \\*\\)?\\(.*\\):\\([1-9][0-9]*\\) ([^)]+)$"From f86584c59f3ca463e439c5a9972b294744492967 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6=20Fahlke?= Date: Thu, 24 Mar 2016 18:22:43 +0100 Subject: [PATCH] Add CMake support in compilation-mode (Bug#22944) * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Add regexps for matching CMake output. * test/lisp/progmodes/compile-tests.el (compile-tests--test-regexps-data): Add CMake test cases. * etc/compilation.txt (CMake): Add CMake examples. --- etc/NEWS | 5 +++++ etc/compilation.txt | 26 ++++++++++++++++++++++++++ lisp/progmodes/compile.el | 7 +++++++ test/lisp/progmodes/compile-tests.el | 7 +++++++ 4 files changed, 45 insertions(+) diff --git a/etc/NEWS b/etc/NEWS index 6ec82f8..efdb1a9 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -118,6 +118,11 @@ in these situations. * Changes in Specialized Modes and Packages in Emacs 25.2 +** Compilation mode + +--- +*** Messages from CMake are now recognized. + ** eww +++ diff --git a/etc/compilation.txt b/etc/compilation.txt index d26af20..4a15312 100644 --- a/etc/compilation.txt +++ b/etc/compilation.txt @@ -84,6 +84,32 @@ Warning: this expression should have type unit. File "/tmp/foo.py", line 10 +* CMake + +symbols: cmake cmake-info + +CMake Error at CMakeLists.txt:19 (hurz): + Unknown CMake command "hurz". +CMake Warning at cmake/modules/UseUG.cmake:73 (find_package): + Could not find a package configuration file provided by "UG" (requested + version 3.11.0) with any of the following names: + + UGConfig.cmake + ug-config.cmake + + Add the installation prefix of "UG" to CMAKE_PREFIX_PATH or set "UG_DIR" to + a directory containing one of the above files. If "UG" provides a separate + development package or SDK, be sure it has been installed. +Call Stack (most recent call first): + cmake/modules/DuneGridMacros.cmake:19 (include) + /home/joe/Projekte/EXA-DUNE/patches/dune-common/cmake/modules/DuneMacros.cmake:556 (include) + /home/joe/Projekte/EXA-DUNE/patches/dune-common/cmake/modules/DuneMacros.cmake:694 (dune_process_dependency_macros) + CMakeLists.txt:22 (dune_project) + + +-- Could NOT find UG (missing: UG_DIR HAVE_UG) + + * Apollo cc, 4.3BSD fc & IBM RS6000/AIX xlc compiler & Microtec mcc68k & GNAT (July 94) + 1 2 nil 0) + (comma "^\"\\([^,\" \n\t]+\\)\", line \\([0-9]+\\)\ \\(?:[(. pos]+\\([0-9]+\\))?\\)?[:.,; (-]\\( warning:\\|[-0-9 ]*(W)\\)?" 1 2 3 (4)) diff --git a/test/lisp/progmodes/compile-tests.el b/test/lisp/progmodes/compile-tests.el index 6821a6b..8961576 100644 --- a/test/lisp/progmodes/compile-tests.el +++ b/test/lisp/progmodes/compile-tests.el @@ -79,6 +79,13 @@ compile-tests--test-regexps-data 1 nil 302 "\\lib\\python\\Products\\PythonScripts\\PythonScript.py") ("File \"/tmp/foo.py\", line 10" 1 nil 10 "/tmp/foo.py") + ;; cmake cmake-info + ("CMake Error at CMakeLists.txt:23 (hurz):" + 1 nil 23 "CMakeLists.txt") + ("CMake Warning at cmake/modules/UseUG.cmake:73 (find_package):" + 1 nil 73 "cmake/modules/UseUG.cmake") + (" cmake/modules/DuneGridMacros.cmake:19 (include)" + 1 nil 19 "cmake/modules/DuneGridMacros.cmake") ;; comma ("\"foo.f\", line 3: Error: syntax error near end of statement" 1 nil 3 "foo.f")