summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp/cl-generic-tests.el
diff options
context:
space:
mode:
authorMichal Nazarewicz <mina86@mina86.com>2016-06-07 14:05:36 +0200
committerMichal Nazarewicz <mina86@mina86.com>2016-06-15 18:26:12 +0200
commit40e0ef481160d0a0b2290d47c012cc50021a8a82 (patch)
tree4e728d3bdec813b592efa7834f8863d37d4f68b2 /test/lisp/emacs-lisp/cl-generic-tests.el
parent3be326e8e50e296ebd6ed116b5e5b7b54267b087 (diff)
downloademacs-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/cl-generic-tests.el')
0 files changed, 0 insertions, 0 deletions