aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/cpp.el
diff options
context:
space:
mode:
authorRichard M. Stallman1994-09-14 09:05:48 +0000
committerRichard M. Stallman1994-09-14 09:05:48 +0000
commit7930d72229d822c1d5ccff155a55dfdc8acd2125 (patch)
tree0167c4bb7e0adc91786559035170711f26f34693 /lisp/progmodes/cpp.el
parent20f5d14570100629044c03d915653cec9214f42a (diff)
downloademacs-7930d72229d822c1d5ccff155a55dfdc8acd2125.tar.gz
emacs-7930d72229d822c1d5ccff155a55dfdc8acd2125.zip
*** empty log message ***
Diffstat (limited to 'lisp/progmodes/cpp.el')
-rw-r--r--lisp/progmodes/cpp.el33
1 files changed, 11 insertions, 22 deletions
diff --git a/lisp/progmodes/cpp.el b/lisp/progmodes/cpp.el
index 0d21c22f683..d54cc0b51e0 100644
--- a/lisp/progmodes/cpp.el
+++ b/lisp/progmodes/cpp.el
@@ -3,45 +3,35 @@
3;; Copyright (C) 1994 Free Software Foundation 3;; Copyright (C) 1994 Free Software Foundation
4 4
5;; Author: Per Abrahamsen <abraham@iesd.auc.dk> 5;; Author: Per Abrahamsen <abraham@iesd.auc.dk>
6;; Version: $Id: 0.2 ALPHA RELEASE WITH BUGS $
7;; Keywords: c, faces, tools 6;; Keywords: c, faces, tools
8 7
9;; LCD Archive Entry: 8;; This file is part of GNU Emacs.
10;; cpp|Per Abrahamsen|abraham@iesd.auc.dk|
11;; Highlight or hide text according to cpp conditionals|
12;; $Date: 1994-07-20 $|$Revision: 0.2 $|~/misc/cpp.Z|
13 9
14;; This program is free software; you can redistribute it and/or modify 10;; GNU Emacs is free software; you can redistribute it and/or modify
15;; it under the terms of the GNU General Public License as published by 11;; it under the terms of the GNU General Public License as published by
16;; the Free Software Foundation; either version 2, or (at your option) 12;; the Free Software Foundation; either version 2, or (at your option)
17;; any later version. 13;; any later version.
18;; 14
19;; This program is distributed in the hope that it will be useful, 15;; GNU Emacs is distributed in the hope that it will be useful,
20;; but WITHOUT ANY WARRANTY; without even the implied warranty of 16;; but WITHOUT ANY WARRANTY; without even the implied warranty of
21;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22;; GNU General Public License for more details. 18;; GNU General Public License for more details.
23;; 19
24;; You should have received a copy of the GNU General Public License 20;; You should have received a copy of the GNU General Public License
25;; along with this program; if not, write to the Free Software 21;; along with GNU Emacs; see the file COPYING. If not, write to
26;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 22;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
27 23
28;;; Comments: 24;;; Commentary:
29 25
30;; Parse a text for C preprocessor conditionals, and highlight or hide 26;; Parse a text for C preprocessor conditionals, and highlight or hide
31;; the text inside the conditionals as you wish. 27;; the text inside the conditionals as you wish.
32 28
33;; Insert the following in your `emacs' to activate it. This assumes 29;; You might want to bind keys as follows.
34;; you use BAW's superior cc-mode instead of Boring Old C-Mode. 30;;
35
36;; (autoload 'cpp-parse-buffer "cpp" "Parse and display cpp conditionals." t)
37
38;; (eval-after-load "cc-mode"
39;; '(progn 31;; '(progn
40;; (define-key c-mode-map "\C-c\C-x" 'cpp-parse-buffer) 32;; (define-key c-mode-map "\C-c\C-x" 'cpp-parse-buffer)
41;; (define-key-after (bar (lookup-key c-mode-map [ menu-bar c ])) 33;; (define-key-after (bar (lookup-key c-mode-map [ menu-bar c ]))
42;; [ cpp-parse ] '("Parse Conditionals" . cpp-parse-buffer) 'up)))) 34;; [ cpp-parse ] '("Parse Conditionals" . cpp-parse-buffer) 'up)))
43
44;; Requires GNU Emacs 19.
45 35
46;;; Todo: 36;;; Todo:
47 37
@@ -770,4 +760,3 @@ BRANCH should be either nil (false branch), t (true branch) or 'both."
770(provide 'cpp) 760(provide 'cpp)
771 761
772;;; cpp.el ends here 762;;; cpp.el ends here
773