[cmake-developers] [CMake 0013664]: Emacs integration should be easier

Mantis Bug Tracker mantis at public.kitware.com
Thu Nov 8 16:13:33 EST 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=13664 
====================================================================== 
Reported By:                Dave Abrahams
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13664
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-11-08 16:13 EST
Last Modified:              2012-11-08 16:13 EST
====================================================================== 
Summary:                    Emacs integration should be easier
Description: 
Integrating CMake with compilation-mode is obscenely difficult

Steps to Reproduce: 
It's not much code, but the fact that we have to load and trawl the
cmake_install.cmake file is just... wrong.

(defun cmake-project-filename ()
  (let ((filename (match-string-no-properties 1)))
    (save-match-data
      (with-temp-buffer
        (insert-file-contents-literally "cmake_install.cmake")
        (goto-char (point-min))
        (re-search-forward "Install script for directory: \\(.+\\)")
        (cons filename (match-string-no-properties 1))))))

(push 'cmake compilation-error-regexp-alist)
(push '(cmake "^\\(?:CMake Error at \\|  \\)\\(.+?\\):\\([0-9]+\\)
([A-Za-z_][A-Za-z0-9_]*)"
              (cmake-project-filename) 2)
      compilation-error-regexp-alist-alist)
 
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-11-08 16:13 Dave Abrahams  New Issue                                    
======================================================================




More information about the cmake-developers mailing list