Mercurial > emacs
annotate man/ebrowse.texi @ 35036:956652ab5efc
%X, %E, %G in format strings.
author | Dave Love <fx@gnu.org> |
---|---|
date | Thu, 04 Jan 2001 11:31:56 +0000 |
parents | b4c4371560b4 |
children | c5792fd59359 |
rev | line source |
---|---|
28867 | 1 \input texinfo @c -*-texinfo-*- |
2 | |
3 @comment %**start of header | |
4 @setfilename ../info/ebrowse | |
5 @settitle A Class Browser for C++ | |
6 @setchapternewpage odd | |
29107 | 7 @syncodeindex fn cp |
28867 | 8 @comment %**end of header |
9 | |
10 @ifinfo | |
34172 | 11 @dircategory Emacs |
28867 | 12 @direntry |
13 * Ebrowse:: A C++ class browser for Emacs. | |
14 @end direntry | |
15 | |
16 This file documents Ebrowse, a C++ class browser for GNU Emacs. | |
17 | |
32315 | 18 Copyright @copyright{} 2000 Free Software Foundation, Inc. |
28867 | 19 |
32315 | 20 Permission is granted to copy, distribute and/or modify this document |
21 under the terms of the GNU Free Documentation License, Version 1.1 or | |
22 any later version published by the Free Software Foundation; with no | |
23 Invariant Sections, with the Front-Cover texts being ``A GNU | |
24 Manual'', and with the Back-Cover Texts as in (a) below. A copy of the | |
25 license is included in the section entitled ``GNU Free Documentation | |
26 License'' in the Emacs manual. | |
28867 | 27 |
32315 | 28 (a) The FSF's Back-Cover Text is: ``You have freedom to copy and modify |
29 this GNU Manual, like GNU software. Copies published by the Free | |
30 Software Foundation raise funds for GNU development.'' | |
31 | |
32 This document is part of a collection distributed under the GNU Free | |
33 Documentation License. If you want to distribute this document | |
34 separately from the collection, you can do so by adding a copy of the | |
35 license to the document, as described in section 6 of the license. | |
28867 | 36 @end ifinfo |
37 | |
29107 | 38 @iftex |
28867 | 39 @titlepage |
29107 | 40 @title Ebrowse User's Manual |
41 @sp 4 | |
42 @subtitle Ebrowse/Emacs 21 | |
43 @sp 1 | |
44 @subtitle May 2000 | |
45 @sp 5 | |
46 @author Gerd Moellmann | |
47 @page | |
28867 | 48 |
29107 | 49 @vskip 0pt plus 1filll |
50 @noindent | |
51 Copyright @copyright{} 2000 Free Software Foundation, Inc. | |
28867 | 52 |
32315 | 53 |
54 Permission is granted to copy, distribute and/or modify this document | |
55 under the terms of the GNU Free Documentation License, Version 1.1 or | |
56 any later version published by the Free Software Foundation; with no | |
57 Invariant Sections, with the Front-Cover texts being ``A GNU | |
58 Manual'', and with the Back-Cover Texts as in (a) below. A copy of the | |
59 license is included in the section entitled ``GNU Free Documentation | |
60 License'' in the Emacs manual. | |
61 | |
62 (a) The FSF's Back-Cover Text is: ``You have freedom to copy and modify | |
63 this GNU Manual, like GNU software. Copies published by the Free | |
64 Software Foundation raise funds for GNU development.'' | |
65 | |
66 This document is part of a collection distributed under the GNU Free | |
67 Documentation License. If you want to distribute this document | |
68 separately from the collection, you can do so by adding a copy of the | |
69 license to the document, as described in section 6 of the license. | |
28867 | 70 @end titlepage |
29107 | 71 @page |
72 @end iftex | |
28867 | 73 |
74 @node Top, Overview, (dir), (dir) | |
75 | |
29107 | 76 @ifnottex |
28867 | 77 You can browse C++ class hierarchies from within Emacs by using |
78 Ebrowse. | |
29107 | 79 @end ifnottex |
28867 | 80 |
81 @menu | |
82 * Overview:: What is it and now does it work? | |
83 * Generating browser files:: How to process C++ source files | |
84 * Loading a Tree:: How to start browsing | |
85 * Tree Buffers:: Traversing class hierarchies | |
86 * Member Buffers:: Looking at member information | |
87 * Tags-like Functions:: Finding members from source files | |
88 * Concept Index:: An entry for each concept defined | |
89 @end menu | |
90 | |
91 | |
92 | |
93 | |
94 @node Overview, Generating browser files, Top, Top | |
95 @chapter Introduction | |
96 | |
97 When working in software projects using C++, I frequently missed | |
98 software support for two things: | |
99 | |
100 @itemize @bullet | |
101 @item | |
102 When you get a new class library, or you have to work on source code you | |
103 haven't written yourself (or written sufficiently long ago), you need a | |
30807
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
104 tool to let you navigate class hierarchies and investigate |
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
105 features of the software. Without such a tool you often end up |
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
106 @command{grep}ing through dozens or even hundreds of files. |
28867 | 107 |
108 @item | |
109 Once you are productive, it would be nice to have a tool that knows your | |
110 sources and can help you while you are editing source code. Imagine to | |
111 be able to jump to the definition of an identifier while you are | |
112 editing, or something that can complete long identifier names because it | |
113 knows what identifiers are defined in your program@dots{}. | |
114 @end itemize | |
115 | |
116 The design of Ebrowse reflects these two needs. | |
117 | |
118 How does it work? | |
119 | |
29107 | 120 @cindex parser for C++ sources |
28867 | 121 A fast parser written in C is used to process C++ source files. |
122 The parser generates a data base containing information about classes, | |
30807
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
123 members, global functions, defines, types etc.@: found in the sources. |
28867 | 124 |
125 The second part of Ebrowse is a Lisp program. This program reads | |
126 the data base generated by the parser. It displays its contents in | |
127 various forms and allows you to perform operations on it, or do | |
128 something with the help of the knowledge contained in the data base. | |
129 | |
29107 | 130 @cindex major modes, of Ebrowse buffers |
28867 | 131 @dfn{Navigational} use of Ebrowse is centered around two |
132 types of buffers which define their own major modes: | |
133 | |
29107 | 134 @cindex tree buffer |
28867 | 135 @dfn{Tree buffers} are used to view class hierarchies in tree form. |
136 They allow you to quickly find classes, find or view class declarations, | |
137 perform operations like query replace on sets of your source files, and | |
138 finally tree buffers are used to produce the second buffer form---member | |
29107 | 139 buffers. @xref{Tree Buffers}. |
28867 | 140 |
29107 | 141 @cindex member buffer |
28867 | 142 Members are displayed in @dfn{member buffers}. Ebrowse |
143 distinguishes between six different types of members; each type is | |
144 displayed as a member list of its own: | |
145 | |
146 @itemize @bullet | |
147 @item | |
30807
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
148 Instance member variables; |
28867 | 149 |
150 @item | |
30807
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
151 Instance member functions; |
28867 | 152 |
153 @item | |
30807
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
154 Static member variables; |
28867 | 155 |
156 @item | |
30807
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
157 Static member functions; |
28867 | 158 |
159 @item | |
30807
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
160 Friends/Defines. The list of defines is contained in the friends |
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
161 list of the pseudo-class @samp{*Globals*}; |
28867 | 162 |
163 @item | |
164 Types (@code{enum}s, and @code{typedef}s defined with class | |
165 scope).@refill | |
166 @end itemize | |
167 | |
168 You can switch member buffers from one list to another, or to another | |
169 class. You can include inherited members in the display, you can set | |
170 filters that remove categories of members from the display, and most | |
171 importantly you can find or view member declarations and definitions | |
29107 | 172 with a keystroke. @xref{Member Buffers}. |
28867 | 173 |
174 These two buffer types and the commands they provide support the | |
175 navigational use of the browser. The second form resembles Emacs' Tags | |
176 package for C and other procedural languages. Ebrowse's commands of | |
177 this type are not confined to special buffers; they are most often used | |
178 while you are editing your source code. | |
179 | |
180 To list just a subset of what you can use the Tags part of Ebrowse for: | |
181 | |
182 @itemize @bullet | |
183 @item | |
184 Jump to the definition or declaration of an identifier in your source | |
29107 | 185 code, with an electric position stack that lets you easily navigate |
28867 | 186 back and forth. |
187 | |
188 @item | |
189 Complete identifiers in your source with a completion list containing | |
190 identifiers from your source code only. | |
191 | |
192 @item | |
193 Perform search and query replace operations over some or all of your | |
194 source files. | |
195 | |
196 @item | |
197 Show all identifiers matching a regular expression---and jump to one of | |
198 them, if you like. | |
199 @end itemize | |
200 | |
201 | |
202 | |
203 | |
204 @node Generating browser files, Loading a Tree, Overview, Top | |
205 @comment node-name, next, previous, up | |
206 @chapter Processing Source Files | |
207 | |
29107 | 208 @cindex @command{ebrowse}, the program |
209 @cindex class data base creation | |
28867 | 210 Before you can start browsing a class hierarchy, you must run the parser |
29107 | 211 @command{ebrowse} on your source files in order to generate a Lisp data |
28867 | 212 base describing your program. |
213 | |
29107 | 214 @cindex command line for @command{ebrowse} |
215 The operation of @command{ebrowse} can be tailored with command line | |
28867 | 216 options. Under normal circumstances it suffices to let the parser use |
217 its default settings. If you want to do that, call it with a command | |
218 line like: | |
219 | |
220 @example | |
221 ebrowse *.h *.cc | |
222 @end example | |
223 | |
224 @noindent | |
29107 | 225 or, if your shell doesn't allow all the file names to be specified on |
28867 | 226 the command line, |
227 | |
228 @example | |
229 ebrowse --files=@var{file} | |
230 @end example | |
231 | |
232 @noindent | |
233 where @var{file} contains the names of the files to be parsed, one | |
234 per line. | |
235 | |
29107 | 236 @findex --help |
237 When invoked with option @samp{--help}, @command{ebrowse} prints a list of | |
28867 | 238 available command line options.@refill |
239 | |
240 @menu | |
241 * Input files:: Specifying which files to parse | |
242 * Output file:: Changing the output file name | |
243 * Structs and unions:: Omitting @code{struct}s and @code{union}s | |
244 * Matching:: Setting regular expression lengths | |
245 * Verbosity:: Getting feedback for lengthy operations | |
246 @end menu | |
247 | |
248 | |
249 | |
250 | |
251 @comment name, next, prev, up | |
252 @node Input files, Output file, Generating browser files, Generating browser files | |
253 @section Specifying Input Files | |
254 | |
255 @table @samp | |
29107 | 256 @cindex input files, for @command{ebrowse} |
28867 | 257 @item file |
29107 | 258 Each file name on the command line tells @command{ebrowse} to parse |
28867 | 259 that file. |
260 | |
29107 | 261 @cindex response files |
262 @findex --files | |
28867 | 263 @item --files=@var{file} |
264 This command line switch specifies that @var{file} contains a list of | |
265 file names to parse. Each line in @var{file} must contain one file | |
266 name. More than one option of this kind is allowed. You might, for | |
267 instance, want to use one file for header files, and another for source | |
268 files. | |
269 | |
29107 | 270 @cindex standard input, specifying input files |
28867 | 271 @item standard input |
29107 | 272 When @command{ebrowse} finds no file names on the command line, and no |
28867 | 273 @samp{--file} option is specified, it reads file names from standard |
29107 | 274 input. This is sometimes convenient when @command{ebrowse} is used as part |
28867 | 275 of a command pipe. |
276 | |
29107 | 277 @findex --search-path |
28867 | 278 @item --search-path=@var{paths} |
30807
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
279 This option lets you specify search paths for your input files. |
28867 | 280 @var{paths} is a list of directory names, separated from each other by a |
281 either a colon or a semicolon, depending on the operating system. | |
282 @end table | |
283 | |
29107 | 284 @cindex header files |
285 @cindex friend functions | |
28867 | 286 It is generally a good idea to specify input files so that header files |
287 are parsed before source files. This facilitates the parser's work of | |
288 properly identifying friend functions of a class. | |
289 | |
290 | |
291 | |
292 @comment name, next, prev, up | |
293 @node Output file, Structs and unions, Input files, Generating browser files | |
294 @section Changing the Output File Name | |
295 | |
296 @table @samp | |
29107 | 297 @cindex output file name |
298 @findex --output-file | |
299 @cindex @file{BROWSE} file | |
28867 | 300 @item --output-file=@var{file} |
29107 | 301 This option instructs @command{ebrowse} to generate a Lisp data base with |
28867 | 302 name @var{file}. By default, the data base is named @file{BROWSE}, and |
29107 | 303 is written in the directory in which @command{ebrowse} is invoked. |
28867 | 304 |
305 If you regularly use data base names different from the default, you | |
29107 | 306 might want to add this to your init file: |
28867 | 307 |
308 @lisp | |
309 (add-to-list 'auto-mode-alist '(@var{NAME} . ebrowse-tree-mode)) | |
310 @end lisp | |
311 | |
312 @noindent | |
313 where @var{NAME} is the Lisp data base name you are using. | |
314 | |
29107 | 315 @findex --append |
316 @cindex appending output to class data base | |
28867 | 317 @item --append |
29107 | 318 By default, each run of @command{ebrowse} erases the old contents of the |
319 output file when writing to it. You can instruct @command{ebrowse} to | |
28867 | 320 append its output to an existing file with this command line option. |
321 @end table | |
322 | |
323 | |
324 | |
325 | |
326 @comment name, next, prev, up | |
327 @node Structs and unions, Matching, Output file, Generating browser files | |
328 @section Structs and Unions | |
329 @cindex structs | |
330 @cindex unions | |
331 | |
332 @table @samp | |
29107 | 333 @findex --no-structs-or-unions |
28867 | 334 @item --no-structs-or-unions |
335 This switch suppresses all classes in the data base declared as | |
336 @code{struct} or @code{union} in the output. | |
337 | |
30807
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
338 This is mainly useful when you are converting an existing |
28867 | 339 C program to C++, and do not want to see the old C structs in a class |
340 tree. | |
341 @end table | |
342 | |
343 | |
344 | |
345 | |
346 @comment name, next, prev, up | |
347 @node Matching, Verbosity, Structs and unions, Generating browser files | |
348 @section Regular Expressions | |
349 | |
29107 | 350 @cindex regular expressions, recording |
351 The parser @command{ebrowse} normally writes regular expressions to its | |
352 output file that help the Lisp part of Ebrowse to find functions, | |
30807
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
353 variables etc.@: in their source files. |
28867 | 354 |
29107 | 355 You can instruct @command{ebrowse} to omit these regular expressions by |
356 calling it with the command line switch @samp{--no-regexps}. | |
28867 | 357 |
358 When you do this, the Lisp part of Ebrowse tries to guess, from member | |
359 or class names, suitable regular expressions to locate that class or | |
360 member in source files. This works fine in most cases, but the | |
361 automatic generation of regular expressions can be too weak if unusual | |
362 coding styles are used. | |
363 | |
364 @table @samp | |
29107 | 365 @findex --no-regexps |
28867 | 366 @item --no-regexps |
30807
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
367 This option turns off regular expression recording. |
28867 | 368 |
29107 | 369 @findex --min-regexp-length |
370 @cindex minimum regexp length for recording | |
28867 | 371 @item --min-regexp-length=@var{n} |
372 The number @var{n} following this option specifies the minimum length of | |
373 the regular expressions recorded to match class and member declarations | |
374 and definitions. The default value is set at compilation time of | |
29107 | 375 @command{ebrowse}. |
28867 | 376 |
30807
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
377 The smaller the minimum length, the higher the probability that |
28867 | 378 Ebrowse will find a wrong match. The larger the value, the |
379 larger the output file and therefore the memory consumption once the | |
380 file is read from Emacs. | |
381 | |
29107 | 382 @findex --max-regexp-length |
383 @cindex maximum regexp length for recording | |
28867 | 384 @item --max-regexp-length=@var{n} |
385 The number following this option specifies the maximum length of the | |
386 regular expressions used to match class and member declarations and | |
387 definitions. The default value is set at compilation time of | |
29107 | 388 @command{ebrowse}. |
28867 | 389 |
30807
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
390 The larger the maximum length, the higher the probability that the |
28867 | 391 browser will find a correct match, but the larger the value the larger |
392 the output file and therefore the memory consumption once the data is | |
30807
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
393 read. As a second effect, the larger the regular expression, the higher |
28867 | 394 the probability that it will no longer match after editing the file. |
395 @end table | |
396 | |
397 | |
398 | |
399 | |
400 @node Verbosity, , Matching, Generating browser files | |
401 @comment node-name, next, previous, up | |
402 @section Verbose Mode | |
29107 | 403 @cindex verbose operation |
28867 | 404 |
405 @table @samp | |
29107 | 406 @findex --verbose |
28867 | 407 @item --verbose |
29107 | 408 When this option is specified on the command line, @command{ebrowse} prints |
28867 | 409 a period for each file parsed, and it displays a @samp{+} for each |
410 class written to the output file. | |
411 | |
29107 | 412 @findex --very-verbose |
28867 | 413 @item --very-verbose |
29107 | 414 This option makes @command{ebrowse} print out the names of the files and |
28867 | 415 the names of the classes seen. |
416 @end table | |
417 | |
418 | |
419 | |
420 | |
421 @node Loading a Tree, Tree Buffers, Generating browser files, Top | |
422 @comment node-name, next, previous, up | |
423 @chapter Starting to Browse | |
424 @cindex loading | |
425 @cindex browsing | |
426 | |
29107 | 427 You start browsing a class hierarchy parsed by @command{ebrowse} by just |
28867 | 428 finding the @file{BROWSE} file with @kbd{C-x C-f}. |
429 | |
430 An example of a tree buffer display is shown below. | |
431 | |
432 @example | |
433 | Collection | |
434 | IndexedCollection | |
435 | Array | |
436 | FixedArray | |
437 | Set | |
438 | Dictionary | |
439 @end example | |
440 | |
29107 | 441 @cindex mouse highlight in tree buffers |
442 When you run Emacs on a display which supports colors and the mouse, you | |
443 will notice that that certain areas in the tree buffer are highlighted | |
444 when you move the mouse over them. This highlight marks mouse-sensitive | |
445 regions in the buffer. Please notice the help strings in the echo area | |
446 when the mouse moves over a sensitive region. | |
28867 | 447 |
29107 | 448 @cindex context menu |
28867 | 449 A click with @kbd{mouse-3} on a mouse-sensitive region opens a context |
450 menu. In addition to this, each buffer also has a buffer-specific menu | |
451 that is opened with a click with @kbd{mouse-3} somewhere in the buffer | |
452 where no highlight is displayed. | |
453 | |
454 | |
455 | |
456 @comment **************************************************************** | |
457 @comment *** | |
458 @comment *** TREE BUFFERS | |
459 @comment *** | |
460 @comment **************************************************************** | |
461 | |
462 @node Tree Buffers, Member Buffers, Loading a Tree, Top | |
463 @comment node-name, next, previous, up | |
464 @chapter Tree Buffers | |
465 @cindex tree buffer mode | |
466 @cindex class trees | |
467 | |
468 Class trees are displayed in @dfn{tree buffers} which install their own | |
469 major mode. Most Emacs keys work in tree buffers in the usual way, | |
30807
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
470 e.g.@: you can move around in the buffer with the usual @kbd{C-f}, |
28867 | 471 @kbd{C-v} etc., or you can search with @kbd{C-s}. |
472 | |
473 Tree-specific commands are bound to simple keystrokes, similar to | |
474 @code{Gnus}. You can take a look at the key bindings by entering | |
475 @kbd{?} which calls @code{M-x describe-mode} in both tree and member | |
476 buffers. | |
477 | |
478 @menu | |
479 * Source Display:: Viewing and finding a class declaration | |
480 * Member Display:: Showing members, switching to member buffers | |
481 * Go to Class:: Finding a class | |
482 * Quitting:: Discarding and burying the tree buffer | |
483 * File Name Display:: Showing file names in the tree | |
484 * Expanding and Collapsing:: Expanding and collapsing branches | |
485 * Tree Indentation:: Changing the tree indentation | |
486 * Killing Classes:: Removing class from the tree | |
487 * Saving a Tree:: Saving a modified tree | |
488 * Statistics:: Displaying class tree statistics | |
489 * Marking Classes:: Marking and unmarking classes | |
490 @end menu | |
491 | |
492 | |
493 | |
494 @node Source Display, Member Display, Tree Buffers, Tree Buffers | |
495 @comment node-name, next, previous, up | |
496 @section Viewing and Finding Class Declarations | |
497 @cindex viewing, class | |
29107 | 498 @cindex finding a class |
28867 | 499 @cindex class declaration |
500 | |
501 You can view or find a class declaration when the cursor is on a class | |
502 name. | |
503 | |
504 @table @kbd | |
505 @item SPC | |
506 This command views the class declaration if the database | |
507 contains informations about it. If you don't parse the entire source | |
508 you are working on, some classes will only be known to exist but the | |
509 location of their declarations and definitions will not be known.@refill | |
510 | |
511 @item RET | |
512 Works like @kbd{SPC}, except that it finds the class | |
513 declaration rather than viewing it, so that it is ready for | |
514 editing.@refill | |
515 @end table | |
516 | |
517 The same functionality is available from the menu opened with | |
518 @kbd{mouse-3} on the class name. | |
519 | |
520 | |
521 | |
522 | |
523 @node Member Display, Go to Class, Source Display, Tree Buffers | |
524 @comment node-name, next, previous, up | |
525 @section Displaying Members | |
29107 | 526 @cindex @samp{*Members*} buffer |
28867 | 527 @cindex @samp{*Globals*} |
29107 | 528 @cindex freezing a member buffer |
529 @cindex member lists, in tree buffers | |
28867 | 530 |
531 Ebrowse distinguishes six different kinds of members, each of | |
532 which is displayed as a separate @dfn{member list}: instance variables, | |
533 instance functions, static variables, static functions, friend | |
534 functions, and types. | |
535 | |
536 Each of these lists can be displayed in a member buffer with a command | |
537 starting with @kbd{L} when the cursor is on a class name. By default, | |
538 there is only one member buffer named @dfn{*Members*} that is reused | |
539 each time you display a member list---this has proven to be more | |
540 practical than to clutter up the buffer list with dozens of member | |
541 buffers. | |
542 | |
543 If you want to display more than one member list at a time you can | |
544 @dfn{freeze} its member buffer. Freezing a member buffer prevents it | |
545 from being overwritten the next time you display a member list. You can | |
546 toggle this buffer status at any time. | |
547 | |
548 Every member list display command in the tree buffer can be used with a | |
549 prefix argument (@kbd{C-u}). Without a prefix argument, the command will | |
550 pop to a member buffer displaying the member list. With prefix argument, | |
551 the member buffer will additionally be @dfn{frozen}. | |
552 | |
553 @table @kbd | |
29107 | 554 @cindex instance member variables, list |
28867 | 555 @item L v |
556 This command displays the list of instance member variables. | |
557 | |
29107 | 558 @cindex static variables, list |
28867 | 559 @item L V |
560 Display the list of static variables. | |
561 | |
29107 | 562 @cindex friend functions, list |
28867 | 563 @item L d |
564 Display the list of friend functions. This list is used for defines if | |
565 you are viewing the class @samp{*Globals*} which is a place holder for | |
566 global symbols. | |
567 | |
29107 | 568 @cindex member functions, list |
28867 | 569 @item L f |
570 Display the list of member functions. | |
571 | |
29107 | 572 @cindex static member functions, list |
28867 | 573 @item L F |
574 Display the list of static member functions. | |
575 | |
29107 | 576 @cindex types, list |
28867 | 577 @item L t |
578 Display a list of types. | |
579 @end table | |
580 | |
581 These lists are also available from the class' context menu invoked with | |
582 @kbd{mouse-3} on the class name. | |
583 | |
584 | |
585 | |
586 | |
587 @node Go to Class, Quitting, Member Display, Tree Buffers | |
588 @comment node-name, next, previous, up | |
589 @section Finding a Class | |
590 @cindex locate class | |
591 @cindex expanding branches | |
29107 | 592 @cindex class location |
28867 | 593 |
594 @table @kbd | |
29107 | 595 @cindex search for class |
28867 | 596 @item / |
597 This command reads a class name from the minibuffer with completion and | |
598 positions the cursor on the class in the class tree. | |
599 | |
600 If the branch of the class tree containing the class searched for is | |
601 currently collapsed, the class itself and all its base classes are | |
29107 | 602 recursively made visible. (See also @ref{Expanding and |
28867 | 603 Collapsing}.)@refill |
604 | |
605 This function is also available from the tree buffer's context menu. | |
606 | |
607 @item n | |
608 Repeat the last search done with @kbd{/}. Each tree buffer has its own | |
609 local copy of the regular expression last searched in it. | |
610 @end table | |
611 | |
612 | |
613 | |
614 | |
615 @node Quitting, File Name Display, Go to Class, Tree Buffers | |
616 @comment node-name, next, previous, up | |
617 @section Burying a Tree Buffer | |
29107 | 618 @cindex burying tree buffer |
28867 | 619 |
620 @table @kbd | |
621 @item q | |
622 Is a synonym for @kbd{M-x bury-buffer}. | |
623 @end table | |
624 | |
625 | |
626 | |
627 | |
628 @node File Name Display, Expanding and Collapsing, Quitting, Tree Buffers | |
629 @comment node-name, next, previous, up | |
630 @section Displaying File Names | |
631 | |
632 @table @kbd | |
29107 | 633 @cindex file names in tree buffers |
28867 | 634 @item T f |
635 This command toggles the display of file names in a tree buffer. If | |
636 file name display is switched on, the names of the files containing the | |
637 class declaration are shown to the right of the class names. If the | |
638 file is not known, the string @samp{unknown} is displayed. | |
639 | |
640 This command is also provided in the tree buffer's context menu. | |
641 | |
642 @item s | |
643 Display file names for the current line, or for the number of lines | |
644 given by a prefix argument. | |
645 @end table | |
646 | |
647 Here is an example of a tree buffer with file names displayed. | |
648 | |
649 @example | |
650 | Collection (unknown) | |
651 | IndexedCollection (indexedcltn.h) | |
652 | Array (array.h) | |
653 | FixedArray (fixedarray.h) | |
654 | Set (set.h) | |
655 | Dictionary (dict.h) | |
656 @end example | |
657 | |
658 | |
659 | |
660 | |
661 @node Expanding and Collapsing, Tree Indentation, File Name Display, Tree Buffers | |
662 @comment node-name, next, previous, up | |
663 @section Expanding and Collapsing a Tree | |
29107 | 664 @cindex expand tree branch |
665 @cindex collapse tree branch | |
666 @cindex branches of class tree | |
667 @cindex class tree, collapse or expand | |
28867 | 668 |
669 You can expand and collapse parts of a tree to reduce the complexity of | |
670 large class hierarchies. Expanding or collapsing branches of a tree has | |
671 no impact on the functionality of other commands, like @kbd{/}. (See | |
29107 | 672 also @ref{Go to Class}.)@refill |
28867 | 673 |
674 Collapsed branches are indicated with an ellipsis following the class | |
675 name like in the example below. | |
676 | |
677 @example | |
678 | Collection | |
679 | IndexedCollection... | |
680 | Set | |
681 | Dictionary | |
682 @end example | |
683 | |
684 @table @kbd | |
685 @item - | |
686 This command collapses the branch of the tree starting at the class the | |
687 cursor is on. | |
688 | |
689 @item + | |
690 This command expands the branch of the tree starting at the class the | |
30807
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
691 cursor is on. Both commands for collapsing and expanding branches are |
28867 | 692 also available from the class' object menu. |
693 | |
694 @item * | |
695 This command expands all collapsed branches in the tree. | |
696 @end table | |
697 | |
698 | |
699 | |
700 | |
701 @node Tree Indentation, Killing Classes, Expanding and Collapsing, Tree Buffers | |
702 @comment node-name, next, previous, up | |
703 @section Changing the Tree Indentation | |
704 @cindex tree indentation | |
29107 | 705 @cindex indentation of the tree |
28867 | 706 |
707 @table @kbd | |
708 @item T w | |
709 This command reads a new indentation width from the minibuffer and | |
30807
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
710 redisplays the tree buffer with the new indentation It is also |
28867 | 711 available from the tree buffer's context menu. |
712 @end table | |
713 | |
714 | |
715 | |
716 | |
717 @node Killing Classes, Saving a Tree, Tree Indentation, Tree Buffers | |
718 @comment node-name, next, previous, up | |
719 @section Removing Classes from the Tree | |
720 @cindex killing classes | |
29107 | 721 @cindex class, remove from tree |
28867 | 722 |
723 @table @kbd | |
724 @item C-k | |
725 This command removes the class the cursor is on and all its derived | |
726 classes from the tree. The user is asked for confirmation before the | |
727 deletion is actually performed. | |
728 @end table | |
729 | |
730 | |
731 | |
732 | |
733 @node Saving a Tree, Statistics, Killing Classes, Tree Buffers | |
734 @comment node-name, next, previous, up | |
735 @comment node-name, next, previous, up | |
736 @section Saving a Tree | |
29107 | 737 @cindex save tree to a file |
738 @cindex tree, save to a file | |
739 @cindex class tree, save to a file | |
28867 | 740 |
741 @table @kbd | |
742 @item C-x C-s | |
30807
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
743 This command writes a class tree to the file from which it was read. |
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
744 This is useful after classes have been deleted from a tree. |
28867 | 745 |
746 @item C-x C-w | |
747 Writes the tree to a file whose name is read from the minibuffer. | |
748 @end table | |
749 | |
750 | |
751 | |
752 | |
753 @node Statistics, Marking Classes, Saving a Tree, Tree Buffers | |
754 @comment node-name, next, previous, up | |
29107 | 755 @cindex statistics for a tree |
756 @cindex tree statistics | |
757 @cindex class statistics | |
28867 | 758 |
759 @table @kbd | |
760 @item x | |
761 Display statistics for the tree, like number of classes in it, number of | |
762 member functions, etc. This command can also be found in the buffer's | |
763 context menu. | |
764 @end table | |
765 | |
766 | |
767 | |
768 | |
769 @node Marking Classes, , Statistics, Tree Buffers | |
770 @comment node-name, next, previous, up | |
771 @cindex marking classes | |
29107 | 772 @cindex operations on marked classes |
28867 | 773 |
774 Classes can be marked for operations similar to the standard Emacs | |
775 commands @kbd{M-x tags-search} and @kbd{M-x tags-query-replace} (see | |
776 also @xref{Tags-like Functions}.)@refill | |
777 | |
778 @table @kbd | |
29107 | 779 @cindex toggle mark |
28867 | 780 @item M t |
781 Toggle the mark of the line point is in or for as many lines as given by | |
782 a prefix command. This command can also be found in the class' context | |
783 menu. | |
784 | |
29107 | 785 @cindex unmark all |
28867 | 786 @item M a |
787 Unmark all classes. With prefix argument @kbd{C-u}, mark all classes in | |
788 the tree. Since this command operates on the whole buffer, it can also be | |
789 found in the buffer's object menu. | |
790 @end table | |
791 | |
792 Marked classes are displayed with an @code{>} in column one of the tree | |
793 display, like in the following example | |
794 | |
795 @example | |
796 |> Collection | |
797 | IndexedCollection... | |
798 |> Set | |
799 | Dictionary | |
800 @end example | |
801 | |
802 | |
803 | |
804 | |
805 @c **************************************************************** | |
806 @c *** | |
807 @c *** MEMBER BUFFERS | |
808 @c *** | |
809 @c **************************************************************** | |
810 | |
811 @node Member Buffers, Tags-like Functions, Tree Buffers, Top | |
812 @comment node-name, next, previous, up | |
813 @chapter Member Buffers | |
814 @cindex members | |
815 @cindex member buffer mode | |
816 | |
29107 | 817 @cindex class members, types |
818 @cindex types of class members | |
28867 | 819 @dfn{Member buffers} are used to operate on lists of members of a class. |
820 Ebrowse distinguishes six kinds of lists: | |
821 | |
822 @itemize @bullet | |
823 @item | |
30807
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
824 Instance variables (normal member variables); |
28867 | 825 @item |
30807
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
826 Instance functions (normal member functions); |
28867 | 827 @item |
30807
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
828 Static variables; |
28867 | 829 @item |
30807
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
830 Static member functions; |
28867 | 831 @item |
30807
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
832 Friend functions; |
28867 | 833 @item |
834 Types (@code{enum}s and @code{typedef}s defined with class scope. | |
835 Nested classes will be shown in the class tree like normal classes. | |
836 @end itemize | |
837 | |
838 Like tree buffers, member buffers install their own major mode. Also | |
839 like in tree buffers, menus are provided for certain areas in the | |
840 buffer: members, classes, and the buffer itself. | |
841 | |
842 @menu | |
843 * Switching Member Lists:: Choosing which members to display | |
844 * Finding/Viewing:: Modifying source code | |
845 * Inherited Members:: Display of Inherited Members | |
846 * Searching Members:: Finding members in member buffer | |
847 * Switching to Tree:: Going back to the tree buffer | |
848 * Filters:: Selective member display | |
849 * Attributes:: Display of @code{virtual} etc. | |
850 * Long and Short Display:: Comprehensive and verbose display | |
851 * Regexp Display:: Showing matching regular expressions | |
852 * Switching Classes:: Displaying another class | |
853 * Killing/Burying:: Getting rid of the member buffer | |
854 * Column Width:: Display style | |
855 * Redisplay:: Redrawing the member list | |
856 * Getting Help:: How to get help for key bindings | |
857 @end menu | |
858 | |
859 | |
860 | |
861 | |
862 @node Switching Member Lists, Finding/Viewing, Member Buffers, Member Buffers | |
863 @comment node-name, next, previous, up | |
864 @section Switching Member Lists | |
29107 | 865 @cindex member lists, in member buffers |
28867 | 866 @cindex static members |
867 @cindex friends | |
868 @cindex types | |
869 @cindex defines | |
870 | |
871 @table @kbd | |
29107 | 872 @cindex next member list |
28867 | 873 @item L n |
874 This command switches the member buffer display to the next member list. | |
875 | |
29107 | 876 @cindex previous member list |
28867 | 877 @item L p |
878 This command switches the member buffer display to the previous member | |
879 list. | |
880 | |
881 @item L f | |
882 Switch to the list of member functions. | |
883 | |
29107 | 884 @cindex static |
28867 | 885 @item L F |
886 Switch to the list of static member functions. | |
887 | |
888 @item L v | |
889 Switch to the list of member variables. | |
890 | |
891 @item L V | |
892 Switch to the list of static member variables. | |
893 | |
894 @item L d | |
895 Switch to the list of friends or defines. | |
896 | |
897 @item L t | |
30807
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
898 Switch to the list of types. |
28867 | 899 @end table |
900 | |
901 Both commands cycle through the member list. | |
902 | |
903 Most of the commands are also available from the member buffer's | |
904 context menu. | |
905 | |
906 | |
907 | |
908 | |
909 @node Finding/Viewing, Inherited Members, Switching Member Lists, Member Buffers | |
910 @comment node-name, next, previous, up | |
911 @section Finding and Viewing Member Source | |
29107 | 912 @cindex finding members, in member buffers |
913 @cindex viewing members, in member buffers | |
914 @cindex member definitions, in member buffers | |
915 @cindex member declarations, in member buffers | |
916 @cindex definition of a member, in member buffers | |
917 @cindex declaration of a member, in member buffers | |
28867 | 918 |
919 @table @kbd | |
920 @item RET | |
921 This command finds the definition of the member the cursor is on. | |
922 Finding involves roughly the same as the standard Emacs tags facility | |
923 does---loading the file and searching for a regular expression matching | |
924 the member. | |
925 | |
926 @item f | |
927 This command finds the declaration of the member the cursor is on. | |
928 | |
929 @item SPC | |
930 This is the same command as @kbd{RET}, but views the member definition | |
931 instead of finding the member's source file. | |
932 | |
933 @item v | |
934 This is the same command as @kbd{f}, but views the member's declaration | |
935 instead of finding the file the declaration is in. | |
936 @end table | |
937 | |
938 You can install a hook function to perform actions after a member or | |
939 class declaration or definition has been found, or when it is not found. | |
940 | |
941 All the commands described above can also be found in the context menu | |
942 displayed when clicking @kbd{mouse-2} on a member name. | |
943 | |
944 | |
945 | |
946 | |
947 @node Inherited Members, Searching Members, Finding/Viewing, Member Buffers | |
948 @comment node-name, next, previous, up | |
949 @section Display of Inherited Members | |
29107 | 950 @cindex superclasses, members |
951 @cindex base classes, members | |
28867 | 952 @cindex inherited members |
953 | |
954 @table @kbd | |
955 @item D b | |
956 This command toggles the display of inherited members in the member | |
30807
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
957 buffer. This is also in the buffer's context menu. |
28867 | 958 @end table |
959 | |
960 | |
961 | |
962 | |
963 @node Searching Members, Switching to Tree, Inherited Members, Member Buffers | |
964 @comment node-name, next, previous, up | |
965 @section Searching Members | |
966 @cindex searching members | |
967 | |
968 @table @kbd | |
969 @item G v | |
970 Position the cursor on a member whose name is read from the minibuffer; | |
971 only members shown in the current member buffer appear in the completion | |
972 list. | |
973 | |
974 @item G m | |
975 Like the above command, but all members for the current class appear in | |
30807
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
976 the completion list. If necessary, the current member list is switched |
28867 | 977 to the one containing the member. |
978 | |
979 With a prefix argument (@kbd{C-u}), all members in the class tree, | |
30807
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
980 i.e.@: all members the browser knows about appear in the completion |
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
981 list. The member display will be switched to the class and member list |
28867 | 982 containing the member. |
983 | |
984 @item G n | |
985 Repeat the last member search. | |
986 @end table | |
987 | |
988 Look into the buffer's context menu for a convenient way to do this with | |
989 a mouse. | |
990 | |
991 | |
992 | |
993 @node Switching to Tree, Filters, Searching Members, Member Buffers | |
994 @comment node-name, next, previous, up | |
995 @section Switching to Tree Buffer | |
29107 | 996 @cindex tree buffer, switch to |
28867 | 997 @cindex buffer switching |
998 @cindex switching buffers | |
999 | |
1000 @table @kbd | |
1001 @item TAB | |
1002 Pop up the tree buffer to which the member buffer belongs. | |
1003 | |
1004 @item t | |
1005 Do the same as @kbd{TAB} but also position the cursor on the class | |
1006 displayed in the member buffer. | |
1007 @end table | |
1008 | |
1009 | |
1010 | |
1011 | |
1012 @node Filters, Attributes, Switching to Tree, Member Buffers | |
1013 @comment node-name, next, previous, up | |
1014 @section Filters | |
1015 @cindex filters | |
1016 | |
1017 @table @kbd | |
29107 | 1018 @cindex @code{public} members |
28867 | 1019 @item F a u |
1020 This command toggles the display of @code{public} members. The | |
1021 @samp{a} stands for `access'. | |
1022 | |
29107 | 1023 @cindex @code{protected} members |
28867 | 1024 @item F a o |
1025 This command toggles the display of @code{protected} members. | |
1026 | |
29107 | 1027 @cindex @code{private} members |
28867 | 1028 @item F a i |
1029 This command toggles the display of @code{private} members. | |
1030 | |
29107 | 1031 @cindex @code{virtual} members |
28867 | 1032 @item F v |
1033 This command toggles the display of @code{virtual} members. | |
1034 | |
29107 | 1035 @cindex @code{inline} members |
28867 | 1036 @item F i |
1037 This command toggles the display of @code{inline} members. | |
1038 | |
29107 | 1039 @cindex @code{const} members |
28867 | 1040 @item F c |
1041 This command toggles the display of @code{const} members. | |
1042 | |
29107 | 1043 @cindex pure virtual members |
28867 | 1044 @item F p |
1045 This command toggles the display of pure virtual members. | |
1046 | |
29107 | 1047 @cindex remove filters |
28867 | 1048 @item F r |
1049 This command removes all filters. | |
1050 @end table | |
1051 | |
1052 These commands are also found in the buffer's context menu. | |
1053 | |
1054 | |
1055 | |
1056 | |
1057 @node Attributes, Long and Short Display, Filters, Member Buffers | |
1058 @comment node-name, next, previous, up | |
1059 @section Displaying Member Attributes | |
1060 @cindex attributes | |
29107 | 1061 @cindex member attribute display |
28867 | 1062 |
1063 @table @kbd | |
1064 @item D a | |
1065 Toggle the display of member attributes (default is on). | |
1066 | |
1067 The nine member attributes Ebrowse knows about are are displayed | |
1068 as a list a single-characters flags enclosed in angle brackets in front | |
1069 the of the member's name. A @samp{-} at a given position means that | |
1070 the attribute is false. The list of attributes from left to right is | |
1071 | |
1072 @table @samp | |
29107 | 1073 @cindex @code{template} attribute |
28867 | 1074 @item T |
1075 The member is a template. | |
1076 | |
29107 | 1077 @cindex @code{extern "C"} attribute |
28867 | 1078 @item C |
1079 The member is declared @code{extern "C"}. | |
1080 | |
29107 | 1081 @cindex @code{virtual} attribute |
28867 | 1082 @item v |
1083 Means the member is declared @code{virtual}. | |
1084 | |
29107 | 1085 @cindex @code{inline} |
28867 | 1086 @item i |
1087 The member is declared @code{inline}. | |
1088 | |
29107 | 1089 @cindex @code{const} attribute |
28867 | 1090 @item c |
1091 The member is @code{const}. | |
1092 | |
29107 | 1093 @cindex pure virtual function attribute |
28867 | 1094 @item 0 |
1095 The member is a pure virtual function. | |
1096 | |
29107 | 1097 @cindex @code{mutable} attribute |
28867 | 1098 @item m |
1099 The member is declared @code{mutable}. | |
1100 | |
29107 | 1101 @cindex @code{explicit} attribute |
28867 | 1102 @item e |
1103 The member is declared @code{explicit}. | |
1104 | |
1105 @item t | |
1106 The member is a function with a throw list. | |
1107 @end table | |
1108 @end table | |
1109 | |
1110 This command is also in the buffer's context menu. | |
1111 | |
1112 | |
1113 | |
1114 @node Long and Short Display, Regexp Display, Attributes, Member Buffers | |
1115 @comment node-name, next, previous, up | |
1116 @section Long and Short Member Display | |
1117 @cindex display form | |
1118 @cindex long display | |
1119 @cindex short display | |
1120 | |
1121 @table @kbd | |
1122 @item D l | |
1123 This command toggles the member buffer between short and long display | |
1124 form. The short display form displays member names, only: | |
1125 | |
1126 @example | |
1127 | isEmpty contains hasMember create | |
1128 | storeSize hash isEqual restoreGuts | |
1129 | saveGuts | |
1130 @end example | |
1131 | |
1132 The long display shows one member per line with member name and regular | |
1133 expressions matching the member (if known): | |
1134 | |
1135 @example | |
1136 | isEmpty Bool isEmpty () const... | |
1137 | hash unsigned hash () const... | |
1138 | isEqual int isEqual (... | |
1139 @end example | |
1140 | |
1141 Regular expressions will only be displayed when the Lisp database has | |
29107 | 1142 not been produced with the @command{ebrowse} option @samp{--no-regexps}. |
1143 @xref{Matching, --no-regexps, Regular Expressions}. | |
28867 | 1144 @end table |
1145 | |
1146 | |
1147 | |
1148 | |
1149 @node Regexp Display, Switching Classes, Long and Short Display, Member Buffers | |
1150 @comment node-name, next, previous, up | |
1151 @section Display of Regular Expressions | |
1152 @cindex regular expression display | |
1153 | |
1154 @table @kbd | |
1155 @item D r | |
1156 This command toggles the long display form from displaying the regular | |
1157 expressions matching the member declarations to those expressions | |
1158 matching member definitions. | |
1159 @end table | |
1160 | |
1161 Regular expressions will only be displayed when the Lisp database has | |
29107 | 1162 not been produced with the @command{ebrowse} option @samp{--no-regexps}, |
1163 see @ref{Matching, --no-regexps, Regular Expressions}. | |
28867 | 1164 |
1165 | |
1166 | |
1167 | |
1168 @node Switching Classes, Killing/Burying, Regexp Display, Member Buffers | |
1169 @comment node-name, next, previous, up | |
1170 @section Displaying Another Class | |
29107 | 1171 @cindex base class, display |
1172 @cindex derived class, display | |
1173 @cindex superclass, display | |
1174 @cindex subclass, display | |
28867 | 1175 @cindex class display |
1176 | |
1177 @table @kbd | |
1178 @item C c | |
1179 This command lets you switch the member buffer to another class. It | |
1180 reads the name of the new class from the minibuffer with completion. | |
1181 | |
1182 @item C b | |
1183 This is the same command as @kbd{C c} but restricts the classes shown in | |
1184 the completion list to immediate base classes, only. If only one base | |
1185 class exists, this one is immediately shown in the minibuffer. | |
1186 | |
1187 @item C d | |
1188 Same as @kbd{C b}, but for derived classes. | |
1189 | |
1190 @item C p | |
1191 Switch to the previous class in the class hierarchy on the same level as | |
1192 the class currently displayed. | |
1193 | |
1194 @item C n | |
1195 Switch to the next sibling of the class in the class tree. | |
1196 @end table | |
1197 | |
1198 | |
1199 | |
1200 | |
1201 @node Killing/Burying, Column Width, Switching Classes, Member Buffers | |
1202 @comment node-name, next, previous, up | |
1203 @section Burying a Member Buffer | |
1204 @cindex burying member buffers | |
1205 | |
1206 @table @kbd | |
1207 @item q | |
1208 This command is a synonym for @kbd{M-x bury-buffer}. | |
1209 @end table | |
1210 | |
1211 | |
1212 | |
1213 | |
1214 @node Column Width, Redisplay, Killing/Burying, Member Buffers | |
1215 @comment node-name, next, previous, up | |
1216 @section Setting the Column Width | |
1217 @cindex column width | |
1218 @cindex member indentation | |
1219 @cindex indentation, member | |
1220 | |
1221 @table @kbd | |
1222 @item D w | |
1223 This command sets the column width depending on the display form used | |
1224 (long or short display). | |
1225 @end table | |
1226 | |
1227 | |
1228 | |
1229 | |
1230 @node Redisplay, Getting Help, Column Width, Member Buffers | |
1231 @comment node-name, next, previous, up | |
1232 @section Forced Redisplay | |
29107 | 1233 @cindex redisplay of member buffers |
28867 | 1234 |
1235 @table @kbd | |
1236 @item C-l | |
1237 This command forces a redisplay of the member buffer. If the width | |
1238 of the window displaying the member buffer is changed this command | |
1239 redraws the member list with the appropriate column widths and number of | |
1240 columns. | |
1241 @end table | |
1242 | |
1243 | |
1244 | |
1245 | |
1246 @node Getting Help, , Redisplay, Member Buffers | |
1247 @comment node-name, next, previous, up | |
1248 @cindex help | |
1249 | |
1250 @table @kbd | |
1251 @item ? | |
1252 This key is bound to @code{describe-mode}. | |
1253 @end table | |
1254 | |
1255 | |
1256 | |
1257 | |
1258 @comment ************************************************************** | |
1259 @comment *** TAGS LIKE FUNCTIONS | |
1260 @comment ************************************************************** | |
1261 | |
1262 @node Tags-like Functions, Concept Index, Member Buffers, Top | |
1263 @comment node-name, next, previous, up | |
1264 @chapter Tags-like Functions | |
1265 | |
1266 Ebrowse provides tags functions similar to those of the standard | |
1267 Emacs Tags facility, but better suited to the needs of C++ programmers. | |
1268 | |
1269 @menu | |
1270 * Finding and Viewing:: Going to a member declaration/definition | |
1271 * Position Stack:: Moving to previous locations | |
1272 * Search & Replace:: Searching and replacing over class tree files | |
1273 * Members in Files:: Listing all members in a given file | |
1274 * Apropos:: Listing members matching a regular expression | |
1275 * Symbol Completion:: Completing names while editing | |
1276 * Member Buffer Display:: Quickly display a member buffer for some | |
1277 identifier | |
1278 @end menu | |
1279 | |
1280 | |
1281 | |
1282 @node Finding and Viewing, Position Stack, Tags-like Functions, Tags-like Functions | |
1283 @comment node-name, next, previous, up | |
1284 @section Finding and Viewing Members | |
29107 | 1285 @cindex finding class member, in C++ source |
1286 @cindex viewing class member, in C++ source | |
28867 | 1287 @cindex tags |
29107 | 1288 @cindex member definition, finding, in C++ source |
1289 @cindex member declaration, finding, in C++ source | |
1290 | |
1291 The functions in this section are similar to those described in | |
1292 @ref{Source Display}, and also in @ref{Finding/Viewing}, except that | |
1293 they work in a C++ source buffer, not in member and tree buffers created | |
1294 by Ebrowse. | |
28867 | 1295 |
1296 @table @kbd | |
1297 @item C-c b f | |
1298 Find the definition of the member around point. If you invoke this | |
1299 function with a prefix argument, the declaration is searched. | |
1300 | |
1301 If more than one class contains a member with the given name you can | |
1302 select the class with completion. If there is a scope declaration in | |
1303 front of the member name, this class name is used as initial input for | |
1304 the completion. | |
1305 | |
1306 @item C-c b F | |
29107 | 1307 Find the declaration of the member around point. |
28867 | 1308 |
1309 @item C-c b v | |
1310 View the definition of the member around point. | |
1311 | |
1312 @item C-c b V | |
1313 View the declaration of the member around point. | |
1314 | |
1315 @item C-c b 4 f | |
1316 Find a member's definition in another window. | |
1317 | |
1318 @item C-c b 4 F | |
1319 Find a member's declaration in another window. | |
1320 | |
1321 @item C-c b 4 v | |
1322 View a member's definition in another window. | |
1323 | |
1324 @item C-c b 4 V | |
1325 View a member's declaration in another window. | |
1326 | |
1327 @item C-c b 5 f | |
1328 Find a member's definition in another frame. | |
1329 | |
1330 @item C-c b 5 F | |
1331 Find a member's declaration in another frame. | |
1332 | |
1333 @item C-c b 5 v | |
1334 View a member's definition in another frame. | |
1335 | |
1336 @item C-c b 5 V | |
1337 View a member's declaration in another frame. | |
1338 @end table | |
1339 | |
1340 | |
1341 | |
1342 @node Position Stack, Search & Replace, Finding and Viewing, Tags-like Functions | |
1343 @comment node-name, next, previous, up | |
1344 @section The Position Stack | |
1345 @cindex position stack | |
1346 | |
1347 When jumping to a member declaration or definition with one of | |
1348 Ebrowse's commands, the position from where you performed the | |
1349 jump and the position where you jumped to are recorded in a | |
1350 @dfn{position stack}. There are several ways in which you can quickly | |
1351 move to positions in the stack:@refill | |
1352 | |
1353 @table @kbd | |
29107 | 1354 @cindex return to original position |
28867 | 1355 @item C-c b - |
1356 This command sets point to the previous position in the position stack. | |
1357 Directly after you performed a jump, this will put you back to the | |
1358 position where you came from. | |
1359 | |
30807
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
1360 The stack is not popped, i.e.@: you can always switch back and forth |
28867 | 1361 between positions in the stack. To avoid letting the stack grow to |
1362 infinite size there is a maximum number of positions defined. When this | |
1363 number is reached, older positions are discarded when new positions are | |
1364 pushed on the stack. | |
1365 | |
1366 @item C-c b + | |
1367 This command moves forward in the position stack, setting point to | |
1368 the next position stored in the position stack. | |
1369 | |
1370 @item C-c b p | |
1371 Displays an electric buffer showing all positions saved in the stack. | |
30807
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
1372 You can select a position by pressing @kbd{SPC} in a line. You can |
28867 | 1373 view a position with @kbd{v}. |
1374 @end table | |
1375 | |
1376 | |
1377 | |
1378 | |
29107 | 1379 @node Search & Replace, Members in Files, Position Stack, Tags-like Functions |
28867 | 1380 @comment node-name, next, previous, up |
1381 @section Searching and Replacing | |
29107 | 1382 @cindex searching multiple C++ files |
1383 @cindex replacing in multiple C++ files | |
28867 | 1384 @cindex restart tags-operation |
1385 | |
1386 Ebrowse allows you to perform operations on all or a subset of the files | |
1387 mentioned in a class tree. When you invoke one of the following | |
1388 functions and more than one class tree is loaded, you must choose a | |
1389 class tree to use from an electric tree menu. If the selected tree | |
1390 contains marked classes, the following commands operate on the files | |
1391 mentioned in the marked classes only. Otherwise all files in the class | |
1392 tree are used. | |
1393 | |
1394 @table @kbd | |
1395 @item C-c b s | |
1396 This function performs a regular expression search in the chosen set of | |
1397 files. | |
1398 | |
1399 @item C-c b u | |
1400 This command performs a search for calls of a given member which is | |
1401 selected in the usual way with completion. | |
1402 | |
1403 @item C-c b % | |
1404 Perform a query replace over the set of files. | |
1405 | |
1406 @item C-c b , | |
30807
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
1407 All three operations above stop when finding a match. You can restart |
28867 | 1408 the operation with this command. |
1409 | |
1410 @item C-c b n | |
1411 This restarts the last tags operation with the next file in the list. | |
1412 @end table | |
1413 | |
1414 | |
1415 | |
1416 | |
1417 @node Members in Files, Apropos, Search & Replace, Tags-like Functions | |
1418 @comment node-name, next, previous, up | |
1419 @section Members in Files | |
1420 @cindex files | |
29107 | 1421 @cindex members in file, listing |
1422 @cindex list class members in a file | |
28867 | 1423 @cindex file, members |
1424 | |
1425 The command @kbd{C-c b l}, lists all members in a given file. The file | |
1426 name is read from the minibuffer with completion. | |
1427 | |
1428 | |
1429 | |
1430 | |
1431 @node Apropos, Symbol Completion, Members in Files, Tags-like Functions | |
1432 @comment node-name, next, previous, up | |
1433 @section Member Apropos | |
29107 | 1434 @cindex apropos on class members |
28867 | 1435 @cindex members, matching regexp |
1436 | |
1437 The command @kbd{C-c b a} can be used to display all members matching a | |
1438 given regular expression. This command can be very useful if you | |
1439 remember only part of a member name, and not its beginning. | |
1440 | |
1441 A special buffer is popped up containing all identifiers matching the | |
30807
a788b278d7e6
Minor English and formatting changes.
Dave Love <fx@gnu.org>
parents:
29713
diff
changeset
|
1442 regular expression, and what kind of symbol it is (e.g.@: a member |
28867 | 1443 function, or a type). You can then switch to this buffer, and use the |
1444 command @kbd{C-c b f}, for example, to jump to a specific member. | |
1445 | |
1446 | |
1447 | |
1448 | |
1449 @node Symbol Completion, Member Buffer Display, Apropos, Tags-like Functions | |
1450 @comment node-name, next, previous, up | |
1451 @section Symbol Completion | |
1452 @cindex completion | |
1453 @cindex symbol completion | |
1454 | |
1455 The command @kbd{C-c b TAB} completes the symbol in front of point. | |
1456 | |
1457 | |
1458 | |
1459 | |
1460 @node Member Buffer Display, , Symbol Completion, Tags-like Functions | |
1461 @section Quick Member Display | |
29107 | 1462 @cindex member buffer, for member at point |
28867 | 1463 |
1464 You can quickly display a member buffer containing the member the cursor | |
1465 in on with the command @kbd{C-c b m}. | |
1466 | |
1467 | |
1468 @node Concept Index, , Tags-like Functions, Top | |
1469 @unnumbered Concept Index | |
1470 @printindex cp | |
1471 | |
1472 @contents | |
1473 @bye |