diff options
author | Michal Nazarewicz <mina86@mina86.com> | 2016-06-07 14:05:36 +0200 |
---|---|---|
committer | Michal Nazarewicz <mina86@mina86.com> | 2016-06-15 18:26:12 +0200 |
commit | 40e0ef481160d0a0b2290d47c012cc50021a8a82 (patch) | |
tree | 4e728d3bdec813b592efa7834f8863d37d4f68b2 /test/lisp/emacs-lisp/package-tests.el | |
parent | 3be326e8e50e296ebd6ed116b5e5b7b54267b087 (diff) | |
download | emacs-40e0ef481160d0a0b2290d47c012cc50021a8a82.tar.gz emacs-40e0ef481160d0a0b2290d47c012cc50021a8a82.tar.bz2 emacs-40e0ef481160d0a0b2290d47c012cc50021a8a82.zip |
Automatically detect whether .h file is C or C++
* lisp/progmodes/cc-mode.el (c-or-c++-mode): A new function which
analyses contents of the buffer to determine whether it looks like C++
source code and based on that enables c-mode or c++-mode.
(c-or-c++-mode--regexp): Regular expression which, when matches
a buffer, signals file is C++.
Diffstat (limited to 'test/lisp/emacs-lisp/package-tests.el')
0 files changed, 0 insertions, 0 deletions