[cmake-developers] [CMake 0012995]: Emacs case-insensitive indentation in cmake-mode
Mantis Bug Tracker
mantis at public.kitware.com
Thu Feb 23 21:36:04 EST 2012
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=12995
======================================================================
Reported By: Christopher Sean Morrison
Assigned To:
======================================================================
Project: CMake
Issue ID: 12995
Category: Documentation
Reproducibility: always
Severity: tweak
Priority: normal
Status: new
======================================================================
Date Submitted: 2012-02-23 21:36 EST
Last Modified: 2012-02-23 21:36 EST
======================================================================
Summary: Emacs case-insensitive indentation in cmake-mode
Description:
The cmake-mode.el Emacs mode would incorrectly indent cmake sources if they were
written in lower-case. Attached is a patch that makes the mode case-insensitive
so that it will indent correctly regardless of case used. This makes the emacs
mode match cmake's own internal (case-insensitive) logic parsing.
Steps to Reproduce:
"M-x indent-region" on a .cmake source file or CMakeLists.txt file that writes
uses lowercase instead of uppercase for the syntax. Example:
macro(BAD_INDENT)
if(some_condition)
set(foo "bar")
else(some_condition)
set(bar "foo")
endif(some_condition)
endmacro(BAD_INDENT)
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-02-23 21:36 Christopher Sean MorrisonNew Issue
2012-02-23 21:36 Christopher Sean MorrisonFile Added: cmake-mode-case.patch
======================================================================
More information about the cmake-developers
mailing list