MantisBT - CMake
View Issue Details
0014385CMakeDevelopmentpublic2013-09-02 02:122016-06-10 14:31
Peter Eisentraut 
Kitware Robot 
normalminoralways
closedmoved 
any
CMake 2.8.11.2 
 
0014385: integrate emacs cmake-mode with ELPA
Please find the attached patch which makes two enhancements to cmake-mode.el:

- Add some required headers to the file can act as a proper ELPA package and be installed by, say, package-install-file.

- Add autoload cookies, so that auto-mode-alist is automatically set up when using ELPA.
No tags attached.
patch cmake-mode.patch (1,752) 2013-09-02 02:12
https://public.kitware.com/Bug/file/4868/cmake-mode.patch
Issue History
2013-09-02 02:12Peter EisentrautNew Issue
2013-09-02 02:12Peter EisentrautFile Added: cmake-mode.patch
2013-09-02 09:01Brad KingNote Added: 0033772
2016-06-10 14:29Kitware RobotNote Added: 0042358
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0033772)
Brad King   
2013-09-02 09:01   
In the hunks:

-;; Add this code to your .emacs file to use the mode:
+;; If you don't use ELPA, add this code to your .emacs file to use the
+;; mode:
...
+;;
+;; If you use ELPA, this is set up automatically through autoloads.

wouldn't it be simpler to use the other order:

 If you use ELPA, autoloads will set up the mode automatically.
 Otherwise, add this code to your .emacs file to use the mode:

?

Will this hunk:

+;;;###autoload
+(add-to-list 'auto-mode-alist '("CMakeLists\\.txt\\'" . cmake-mode))
+;;;###autoload
+(add-to-list 'auto-mode-alist '("\\.cmake\\'" . cmake-mode))

have any effects when not using ELPA?
(0042358)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.