annotate lisp/cc-mode/cc-menus.el @ 203:850242ba4a81 r20-3b28

Import from CVS: tag r20-3b28
author cvs
date Mon, 13 Aug 2007 10:02:21 +0200
parents 489f57a838ef
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 165
diff changeset
1 ;;; cc-menus.el --- imenu support for CC Mode
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
2
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
3 ;; Copyright (C) 1985,87,92,93,94,95,96,97 Free Software Foundation, Inc.
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
4
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
5 ;; Authors: 1992-1997 Barry A. Warsaw
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
6 ;; 1987 Dave Detlefs and Stewart Clamen
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
7 ;; 1985 Richard M. Stallman
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
8 ;; Maintainer: cc-mode-help@python.org
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
9 ;; Created: 22-Apr-1997 (split from cc-mode.el)
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
10 ;; Version: See cc-mode.el
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
11 ;; Keywords: c languages oop
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
12
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
13 ;; This file is part of GNU Emacs.
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
14
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
15 ;; GNU Emacs is free software; you can redistribute it and/or modify
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
16 ;; it under the terms of the GNU General Public License as published by
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
17 ;; the Free Software Foundation; either version 2, or (at your option)
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
18 ;; any later version.
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
19
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
20 ;; GNU Emacs is distributed in the hope that it will be useful,
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
21 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
22 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
23 ;; GNU General Public License for more details.
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
24
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
25 ;; You should have received a copy of the GNU General Public License
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
26 ;; along with GNU Emacs; see the file COPYING. If not, write to the
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
27 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
28 ;; Boston, MA 02111-1307, USA.
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
29
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
30
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
31 ;; imenu integration
189
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
32 (defvar cc-imenu-c-prototype-macro-regexp nil
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
33 "RE matching macro names used to conditionally specify function prototypes.
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
34
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
35 For example:
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
36
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
37 #ifdef __STDC__
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
38 #define _P(x) x
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
39 #else
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
40 #define _P(x) /*nothing*/
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
41 #endif
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
42
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
43 int main _P( (int argc, char *argv[]) )
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
44
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
45 A sample value might look like: `\\(_P\\|_PROTO\\)'.")
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
46
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
47 (defvar cc-imenu-c++-generic-expression
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
48 (`
189
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
49 (
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
50 ;; Try to match ::operator definitions first. Otherwise `X::operator new ()'
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
51 ;; will be incorrectly recognised as function `new ()' because the regexps
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
52 ;; work by backtracking from the end of the definition.
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
53 (nil
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
54 (,
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
55 (concat
189
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
56 "^\\<.*"
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
57 "[^a-zA-Z0-9_:<>~]" ; match any non-identifier char
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
58 ; (note: this can be `\n')
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
59 "\\("
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
60 "\\([a-zA-Z0-9_:<>~]*::\\)?" ; match an operator
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
61 "operator\\>[ \t]*"
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
62 "\\(()\\|[^(]*\\)" ; special case for `()' operator
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
63 "\\)"
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
64
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
65 "[ \t]*([^)]*)[ \t]*[^ \t;]" ; followed by ws, arg list,
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
66 ; require something other than
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
67 ; a `;' after the (...) to
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
68 ; avoid prototypes. Can't
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
69 ; catch cases with () inside
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
70 ; the parentheses surrounding
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
71 ; the parameters. e.g.:
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
72 ; `int foo(int a=bar()) {...}'
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
73 )) 1)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
74 ;; Special case to match a line like `main() {}'
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
75 ;; e.g. no return type, not even on the previous line.
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
76 (nil
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
77 (,
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
78 (concat
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
79 "^"
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
80 "\\([a-zA-Z_][a-zA-Z0-9_:<>~]*\\)" ; match function name
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
81 "[ \t]*([^)]*)[ \t]*[^ \t;]" ; see above
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
82 )) 1)
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
83 ;; General function name regexp
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
84 (nil
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
85 (,
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
86 (concat
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
87 "^\\<.*" ; line MUST start with word char
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
88 "[^a-zA-Z0-9_:<>~]" ; match any non-identifier char
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
89 "\\([a-zA-Z_][a-zA-Z0-9_:<>~]*\\)" ; match function name
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
90 "[ \t]*(" ; see above, BUT
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
91 "[ \t]*[^ \t(][^)]*)[ \t]*[^ \t;]" ; the argument list must not start
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
92 ; with a parentheses
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
93 )) 1)
189
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
94 ;; Special case for definitions using phony prototype macros like:
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
95 ;; `int main _PROTO( (int argc,char *argv[]) )'.
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
96 ;; This case is only included if cc-imenu-c-prototype-macro-regexp is set.
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
97 ;; Only supported in c-code, so no `:<>~' chars in function name!
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
98 (,@ (if cc-imenu-c-prototype-macro-regexp
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
99 (` ((nil
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
100 (,
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
101 (concat
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
102 "^\\<.*" ; line MUST start with word char
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
103 "[^a-zA-Z0-9_]" ; match any non-identifier char
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
104 "\\([a-zA-Z_][a-zA-Z0-9_]*\\)" ; match function name
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
105 "[ \t]*" ; whitespace before macro name
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
106 cc-imenu-c-prototype-macro-regexp
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
107 "[ \t]*(" ; ws followed by first paren.
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
108 "[ \t]*([^)]*)[ \t]*)[ \t]*[^ \t;]" ; see above
189
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
109 )) 1)))))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
110 ;; Class definitions
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
111 ("Class"
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
112 (, (concat
189
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
113 "^" ; beginning of line is required
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
114 "\\(template[ \t]*<[^>]+>[ \t]*\\)?" ; there may be a `template <...>'
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
115 "class[ \t]+"
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
116 "\\([a-zA-Z0-9_]+\\)" ; the string we want to get
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
117 "[ \t]*[:{]"
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
118 )) 2)))
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
119 "Imenu generic expression for C++ mode. See `imenu-generic-expression'.")
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
120
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
121 (defvar cc-imenu-c-generic-expression
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
122 cc-imenu-c++-generic-expression
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
123 "Imenu generic expression for C mode. See `imenu-generic-expression'.")
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
124
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
125 (defvar cc-imenu-java-generic-expression
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
126 (`
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
127 ((nil
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
128 (,
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
129 (concat
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
130 "^\\([ \t]\\)*"
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
131 "\\([A-Za-z0-9_-]+[ \t]+\\)?" ; type specs; there can be
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
132 "\\([A-Za-z0-9_-]+[ \t]+\\)?" ; more than 3 tokens, right?
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
133 "\\([A-Za-z0-9_-]+[ \t]*[[]?[]]?\\)"
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
134 "\\([ \t]\\)"
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
135 "\\([A-Za-z0-9_-]+\\)" ; the string we want to get
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
136 "\\([ \t]*\\)+("
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
137 "\\([a-zA-Z,_1-9\n \t]*[[]?[]]?\\)*" ; arguments
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
138 ")[ \t]*"
189
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
139 ; "[^;(]"
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
140 "[,a-zA-Z_1-9\n \t]*{"
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
141 )) 6)))
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
142 "Imenu generic expression for Java mode. See `imenu-generic-expression'.")
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
143
189
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
144 (defvar cc-imenu-objc-generic-expression
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
145 (concat
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
146 ;;
189
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
147 ;; For C
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
148 ;; *Warning for developers*
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
149 ;; This expression elements depend on `cc-imenu-c++-generic-expression'.
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
150 ;;
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
151 ;; > Special case to match a line like `main() {}'
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
152 ;; > e.g. no return type, not even on the previous line.
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
153 ;; Pick a token by (match-string 1)
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
154 (car (cdr (nth 1 cc-imenu-c++-generic-expression))) ;
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
155 "\\|"
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
156 ;; > General function name regexp
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
157 ;; Pick a token by (match-string 2)
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
158 (car (cdr (nth 2 cc-imenu-c++-generic-expression)))
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
159 ;; > Special case for definitions using phony prototype macros like:
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
160 ;; > `int main _PROTO( (int argc,char *argv[]) )'.
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
161 ;; Pick a token by (match-string 3)
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
162 (if cc-imenu-c-prototype-macro-regexp
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
163 (concat
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
164 "\\|"
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
165 (car (cdr (nth 3 cc-imenu-c++-generic-expression))))
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
166 "")
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
167 ;;
189
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
168 ;; For Objective-C
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
169 ;; Pick a token by (match-string 3 or 4)
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
170 ;;
189
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
171 "\\|\\("
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
172 "^[-+][:a-zA-Z0-9()*_<>\n\t ]*[;{]" ; Methods
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
173 "\\|"
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
174 "^@interface[\t ]+[a-zA-Z0-9_]+[\t ]*:"
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
175 "\\|"
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
176 "^@interface[\t ]+[a-zA-Z0-9_]+[\t ]*([a-zA-Z0-9_]+)"
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
177 "\\|"
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
178 ;; For NSObject, NSProxy and Object... They don't have super class.
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
179 "^@interface[\t ]+[a-zA-Z0-9_]+[\t ]*.*$"
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
180 "\\|"
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
181 "^@implementation[\t ]+[a-zA-Z0-9_]+[\t ]*([a-zA-Z0-9_]+)"
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
182 "\\|"
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
183 "^@implementation[\t ]+[a-zA-Z0-9_]+"
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
184 "\\|"
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
185 "^@protocol[\t ]+[a-zA-Z0-9_]+" "\\)")
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
186 "Imenu generic expression for ObjC mode. See `imenu-generic-expression'.")
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
187
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
188
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
189 ;; Imenu support for objective-c uses functions.
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
190 (defsubst cc-imenu-objc-method-to-selector (method)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
191 "Return the objc selector style string of METHOD.
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
192 Example:
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
193 - perform: (SEL)aSelector withObject: object1 withObject: object2; /* METHOD */
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
194 =>
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
195 -perform:withObject:withObject:withObject: /* selector */"
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
196 (let ((return "") ; String to be returned
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
197 (p 0) ; Current scanning position in METHOD
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
198 (pmax (length method)) ;
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
199 char ; Current scanning target
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
200 (betweenparen 0) ; CHAR is in parentheses.
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
201 argreq ; An argument is required.
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
202 inargvar) ; position of CHAR is in an argument variable.
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
203 (while (< p pmax)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
204 (setq char (aref method p)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
205 p (1+ p))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
206 (cond
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
207 ;; Is CHAR part of a objc token?
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
208 ((and (not inargvar) ; Ignore if CHAR is part of an argument variable.
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
209 (eq 0 betweenparen) ; Ignore if CHAR is in parentheses.
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
210 (or (and (<= ?a char) (<= char ?z))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
211 (and (<= ?A char) (<= char ?Z))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
212 (and (<= ?0 char) (<= char ?9))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
213 (= ?_ char)))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
214 (if argreq
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
215 (setq inargvar t
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
216 argreq nil)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
217 (setq return (concat return (char-to-string char)))))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
218 ;; Or a white space?
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
219 ((and inargvar (or (eq ?\ char) (eq ?\n char))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
220 (setq inargvar nil)))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
221 ;; Or a method separator?
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
222 ;; If a method separator, the next token will be an argument variable.
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
223 ((eq ?: char)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
224 (setq argreq t
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
225 return (concat return (char-to-string char))))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
226 ;; Or an open parentheses?
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
227 ((eq ?\( char)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
228 (setq betweenparen (1+ betweenparen)))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
229 ;; Or a close parentheses?
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
230 ((eq ?\) char)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
231 (setq betweenparen (1- betweenparen)))))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
232 return))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
233
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
234 (defun cc-imenu-objc-remove-white-space (str)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
235 "Remove all spaces and tabs from STR."
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
236 (let ((return "")
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
237 (p 0)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
238 (max (length str))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
239 char)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
240 (while (< p max)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
241 (setq char (aref str p))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
242 (setq p (1+ p))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
243 (if (or (= char ?\ ) (= char ?\t))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
244 ()
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
245 (setq return (concat return (char-to-string char)))))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
246 return))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
247
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
248 (defun cc-imenu-objc-function ()
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
249 "imenu supports for objc-mode."
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
250 (let (methodlist
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
251 clist
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
252 ;;
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
253 ;; OBJC, C1, C2, C3 are constants.
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
254 ;;
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
255 ;; *Warning for developers*
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
256 ;; These constants depend on `cc-imenu-c++-generic-expression'.
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
257 ;;
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
258 (OBJC
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
259 (if cc-imenu-c-prototype-macro-regexp 4 3))
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
260 (C1 ; > Special case to match a line like `main() {}'
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
261 1)
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
262 (C2 ; > General function name regexp
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
263 2)
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
264 (C3 ; > Special case for definitions using phony prototype macros like:
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
265 3)
189
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
266 langnum
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
267 ;;
189
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
268 (classcount 0)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
269 toplist
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
270 stupid
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
271 str
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
272 str2
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
273 (intflen (length "@interface"))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
274 (implen (length "@implementation"))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
275 (prtlen (length "@protocol"))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
276 bufsubst-fun)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
277 ;;
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
278 ;; Does this emacs has buffer-substring-no-properties?
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
279 ;;
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
280 (fset 'bufsubst-fun (if (fboundp 'buffer-substring-no-properties)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
281 (symbol-function 'buffer-substring-no-properties)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
282 (symbol-function 'buffer-substring)))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
283 (goto-char (point-max))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
284 (imenu-progress-message stupid 0)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
285 ;;
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
286 (while (re-search-backward cc-imenu-objc-generic-expression nil t)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
287 (imenu-progress-message stupid)
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
288 (setq langnum (if (match-beginning OBJC)
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
289 OBJC
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
290 (cond
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
291 ((match-beginning C3) C3)
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
292 ((match-beginning C2) C2)
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
293 ((match-beginning C1) C1))))
189
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
294 (setq str (bufsubst-fun (match-beginning langnum) (match-end langnum)))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
295 ;;
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
296 (cond
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
297 ;;
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
298 ;; C
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
299 ;;
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 189
diff changeset
300 ((not (eq langnum OBJC))
189
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
301 (setq clist (cons (cons str (match-beginning langnum)) clist)))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
302 ;;
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
303 ;; ObjC
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
304 ;;
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
305 ;; An instance Method
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
306 ((eq (aref str 0) ?-)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
307 (setq str (concat "-" (cc-imenu-objc-method-to-selector str)))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
308 (setq methodlist (cons (cons str
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
309 (match-beginning langnum))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
310 methodlist)))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
311 ;; A factory Method
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
312 ((eq (aref str 0) ?+)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
313 (setq str (concat "+" (cc-imenu-objc-method-to-selector str)))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
314 (setq methodlist (cons (cons str
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
315 (match-beginning langnum))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
316 methodlist)))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
317 ;; Interface or implementation or protocol
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
318 ((eq (aref str 0) ?@)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
319 (setq classcount (1+ classcount))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
320 (cond
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
321 ((and (> (length str) implen)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
322 (string= (substring str 0 implen) "@implementation"))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
323 (setq str (substring str implen)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
324 str2 "@implementation"))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
325 ((string= (substring str 0 intflen) "@interface")
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
326 (setq str (substring str intflen)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
327 str2 "@interface"))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
328 ((string= (substring str 0 prtlen) "@protocol")
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
329 (setq str (substring str prtlen)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
330 str2 "@protocol")))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
331 (setq str (cc-imenu-objc-remove-white-space str))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
332 (setq methodlist (cons (cons str2
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
333 (match-beginning langnum))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
334 methodlist))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
335 (setq toplist (cons nil (cons (cons str
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
336 methodlist) toplist))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
337 methodlist nil))))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
338 ;;
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
339 (imenu-progress-message stupid 100)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
340 (if (eq (car toplist) nil)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
341 (setq toplist (cdr toplist)))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
342
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
343 ;; In this buffer, there is only one or zero @{interface|implementation|protocol}.
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
344 (if (< classcount 2)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
345 (let ((classname (car (car toplist)))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
346 (p (cdr (car (cdr (car toplist)))))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
347 last)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
348 (setq toplist (cons (cons classname p) (cdr (cdr (car toplist)))))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
349 ;; Add C lang token
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
350 (if clist
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
351 (progn
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
352 (setq last toplist)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
353 (while (cdr last)
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
354 (setq last (cdr last)))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
355 (setcdr last clist))))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
356 ;; Add C lang tokens as a sub menu
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
357 (setq toplist (cons (cons "C" clist) toplist)))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
358 ;;
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
359 toplist
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
360 ))
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 187
diff changeset
361
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
362
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
363 (provide 'cc-menus)
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents:
diff changeset
364 ;;; cc-menus.el ends here