1 \input texinfo @c -*-texinfo-*-
3 @comment %**start of header
4 @setfilename ../../info/ebrowse.info
5 @settitle A Class Browser for C++
6 @documentencoding UTF-8
9 @comment %**end of header
12 This file documents Ebrowse, a C++ class browser for GNU Emacs.
14 Copyright @copyright{} 2000--2015 Free Software Foundation, Inc.
17 Permission is granted to copy, distribute and/or modify this document
18 under the terms of the GNU Free Documentation License, Version 1.3 or
19 any later version published by the Free Software Foundation; with no
20 Invariant Sections, with the Front-Cover Texts being ``A GNU Manual,''
21 and with the Back-Cover Texts as in (a) below. A copy of the license
22 is included in the section entitled ``GNU Free Documentation License''.
24 (a) The FSF's Back-Cover Text is: ``You have the freedom to copy and
25 modify this GNU manual.''
29 @dircategory Emacs misc features
31 * Ebrowse: (ebrowse). A C++ class browser for Emacs.
35 @title Ebrowse User's Manual
37 @subtitle Ebrowse/Emacs
39 @author Gerd Moellmann
41 @vskip 0pt plus 1filll
51 You can browse C++ class hierarchies from within Emacs by using
58 * Overview:: What is it and how does it work?
59 * Generating browser files:: How to process C++ source files
60 * Loading a Tree:: How to start browsing
61 * Tree Buffers:: Traversing class hierarchies
62 * Member Buffers:: Looking at member information
63 * Tags-like Functions:: Finding members from source files
64 * GNU Free Documentation License:: The license for this documentation.
65 * Concept Index:: An entry for each concept defined
74 When working in software projects using C++, I frequently missed
75 software support for two things:
79 When you get a new class library, or you have to work on source code you
80 haven't written yourself (or written sufficiently long ago), you need a
81 tool to let you navigate class hierarchies and investigate
82 features of the software. Without such a tool you often end up
83 @command{grep}ing through dozens or even hundreds of files.
86 Once you are productive, it would be nice to have a tool that knows your
87 sources and can help you while you are editing source code. Imagine to
88 be able to jump to the definition of an identifier while you are
89 editing, or something that can complete long identifier names because it
90 knows what identifiers are defined in your program@dots{}.
93 The design of Ebrowse reflects these two needs.
97 @cindex parser for C++ sources
98 A fast parser written in C is used to process C++ source files.
99 The parser generates a data base containing information about classes,
100 members, global functions, defines, types etc.@: found in the sources.
102 The second part of Ebrowse is a Lisp program. This program reads
103 the data base generated by the parser. It displays its contents in
104 various forms and allows you to perform operations on it, or do
105 something with the help of the knowledge contained in the data base.
107 @cindex major modes, of Ebrowse buffers
108 @dfn{Navigational} use of Ebrowse is centered around two
109 types of buffers which define their own major modes:
112 @dfn{Tree buffers} are used to view class hierarchies in tree form.
113 They allow you to quickly find classes, find or view class declarations,
114 perform operations like query replace on sets of your source files, and
115 finally tree buffers are used to produce the second buffer form---member
116 buffers. @xref{Tree Buffers}.
118 @cindex member buffer
119 Members are displayed in @dfn{member buffers}. Ebrowse
120 distinguishes between six different types of members; each type is
121 displayed as a member list of its own:
125 Instance member variables;
128 Instance member functions;
131 Static member variables;
134 Static member functions;
137 Friends/Defines. The list of defines is contained in the friends
138 list of the pseudo-class @samp{*Globals*};
141 Types (@code{enum}s, and @code{typedef}s defined with class
145 You can switch member buffers from one list to another, or to another
146 class. You can include inherited members in the display, you can set
147 filters that remove categories of members from the display, and most
148 importantly you can find or view member declarations and definitions
149 with a keystroke. @xref{Member Buffers}.
151 These two buffer types and the commands they provide support the
152 navigational use of the browser. The second form resembles Emacs's Tags
153 package for C and other procedural languages. Ebrowse's commands of
154 this type are not confined to special buffers; they are most often used
155 while you are editing your source code.
157 To list just a subset of what you can use the Tags part of Ebrowse for:
161 Jump to the definition or declaration of an identifier in your source
162 code, with an electric position stack that lets you easily navigate
166 Complete identifiers in your source with a completion list containing
167 identifiers from your source code only.
170 Perform search and query replace operations over some or all of your
174 Show all identifiers matching a regular expression---and jump to one of
181 @node Generating browser files
182 @chapter Processing Source Files
184 @cindex @command{ebrowse}, the program
185 @cindex class data base creation
186 Before you can start browsing a class hierarchy, you must run the parser
187 @command{ebrowse} on your source files in order to generate a Lisp data
188 base describing your program.
190 @cindex command line for @command{ebrowse}
191 The operation of @command{ebrowse} can be tailored with command line
192 options. Under normal circumstances it suffices to let the parser use
193 its default settings. If you want to do that, call it with a command
201 or, if your shell doesn't allow all the file names to be specified on
205 ebrowse --files=@var{file}
209 where @var{file} contains the names of the files to be parsed, one
213 When invoked with option @samp{--help}, @command{ebrowse} prints a list of
214 available command line options.
217 * Input files:: Specifying which files to parse
218 * Output file:: Changing the output file name
219 * Structs and unions:: Omitting @code{struct}s and @code{union}s
220 * Matching:: Setting regular expression lengths
221 * Verbosity:: Getting feedback for lengthy operations
227 @comment name, next, prev, up
229 @section Specifying Input Files
232 @cindex input files, for @command{ebrowse}
234 Each file name on the command line tells @command{ebrowse} to parse
237 @cindex response files
239 @item --files=@var{file}
240 This command line switch specifies that @var{file} contains a list of
241 file names to parse. Each line in @var{file} must contain one file
242 name. More than one option of this kind is allowed. You might, for
243 instance, want to use one file for header files, and another for source
246 @cindex standard input, specifying input files
248 When @command{ebrowse} finds no file names on the command line, and no
249 @samp{--file} option is specified, it reads file names from standard
250 input. This is sometimes convenient when @command{ebrowse} is used as part
253 @findex --search-path
254 @item --search-path=@var{paths}
255 This option lets you specify search paths for your input files.
256 @var{paths} is a list of directory names, separated from each other by a
257 either a colon or a semicolon, depending on the operating system.
261 @cindex friend functions
262 It is generally a good idea to specify input files so that header files
263 are parsed before source files. This facilitates the parser's work of
264 properly identifying friend functions of a class.
268 @comment name, next, prev, up
270 @section Changing the Output File Name
273 @cindex output file name
274 @findex --output-file
275 @cindex @file{BROWSE} file
276 @item --output-file=@var{file}
277 This option instructs @command{ebrowse} to generate a Lisp data base with
278 name @var{file}. By default, the data base is named @file{BROWSE}, and
279 is written in the directory in which @command{ebrowse} is invoked.
281 If you regularly use data base names different from the default, you
282 might want to add this to your init file:
285 (add-to-list 'auto-mode-alist '(@var{NAME} . ebrowse-tree-mode))
289 where @var{NAME} is the Lisp data base name you are using.
292 @cindex appending output to class data base
294 By default, each run of @command{ebrowse} erases the old contents of the
295 output file when writing to it. You can instruct @command{ebrowse} to
296 append its output to an existing file produced by @command{ebrowse}
297 with this command line option.
303 @comment name, next, prev, up
304 @node Structs and unions
305 @section Structs and Unions
310 @findex --no-structs-or-unions
311 @item --no-structs-or-unions
312 This switch suppresses all classes in the data base declared as
313 @code{struct} or @code{union} in the output.
315 This is mainly useful when you are converting an existing
316 C program to C++, and do not want to see the old C structs in a class
323 @comment name, next, prev, up
325 @section Regular Expressions
327 @cindex regular expressions, recording
328 The parser @command{ebrowse} normally writes regular expressions to its
329 output file that help the Lisp part of Ebrowse to find functions,
330 variables etc.@: in their source files.
332 You can instruct @command{ebrowse} to omit these regular expressions by
333 calling it with the command line switch @samp{--no-regexps}.
335 When you do this, the Lisp part of Ebrowse tries to guess, from member
336 or class names, suitable regular expressions to locate that class or
337 member in source files. This works fine in most cases, but the
338 automatic generation of regular expressions can be too weak if unusual
339 coding styles are used.
344 This option turns off regular expression recording.
346 @findex --min-regexp-length
347 @cindex minimum regexp length for recording
348 @item --min-regexp-length=@var{n}
349 The number @var{n} following this option specifies the minimum length of
350 the regular expressions recorded to match class and member declarations
351 and definitions. The default value is set at compilation time of
354 The smaller the minimum length, the higher the probability that
355 Ebrowse will find a wrong match. The larger the value, the
356 larger the output file and therefore the memory consumption once the
357 file is read from Emacs.
359 @findex --max-regexp-length
360 @cindex maximum regexp length for recording
361 @item --max-regexp-length=@var{n}
362 The number following this option specifies the maximum length of the
363 regular expressions used to match class and member declarations and
364 definitions. The default value is set at compilation time of
367 The larger the maximum length, the higher the probability that the
368 browser will find a correct match, but the larger the value the larger
369 the output file and therefore the memory consumption once the data is
370 read. As a second effect, the larger the regular expression, the higher
371 the probability that it will no longer match after editing the file.
378 @section Verbose Mode
379 @cindex verbose operation
384 When this option is specified on the command line, @command{ebrowse} prints
385 a period for each file parsed, and it displays a @samp{+} for each
386 class written to the output file.
388 @findex --very-verbose
390 This option makes @command{ebrowse} print out the names of the files and
391 the names of the classes seen.
398 @chapter Starting to Browse
402 You start browsing a class hierarchy parsed by @command{ebrowse} by just
403 finding the @file{BROWSE} file with @kbd{C-x C-f}.
405 An example of a tree buffer display is shown below.
416 @cindex mouse highlight in tree buffers
417 When you run Emacs on a display which supports colors and the mouse, you
418 will notice that certain areas in the tree buffer are highlighted
419 when you move the mouse over them. This highlight marks mouse-sensitive
420 regions in the buffer. Please notice the help strings in the echo area
421 when the mouse moves over a sensitive region.
424 A click with @kbd{Mouse-3} on a mouse-sensitive region opens a context
425 menu. In addition to this, each buffer also has a buffer-specific menu
426 that is opened with a click with @kbd{Mouse-3} somewhere in the buffer
427 where no highlight is displayed.
431 @comment ****************************************************************
433 @comment *** TREE BUFFERS
435 @comment ****************************************************************
438 @chapter Tree Buffers
439 @cindex tree buffer mode
442 Class trees are displayed in @dfn{tree buffers} which install their own
443 major mode. Most Emacs keys work in tree buffers in the usual way,
444 e.g., you can move around in the buffer with the usual @kbd{C-f},
445 @kbd{C-v} etc., or you can search with @kbd{C-s}.
447 Tree-specific commands are bound to simple keystrokes, similar to
448 @code{Gnus}. You can take a look at the key bindings by entering
449 @kbd{?} which calls @code{M-x describe-mode} in both tree and member
453 * Source Display:: Viewing and finding a class declaration
454 * Member Display:: Showing members, switching to member buffers
455 * Go to Class:: Finding a class
456 * Quitting:: Discarding and burying the tree buffer
457 * File Name Display:: Showing file names in the tree
458 * Expanding and Collapsing:: Expanding and collapsing branches
459 * Tree Indentation:: Changing the tree indentation
460 * Killing Classes:: Removing class from the tree
461 * Saving a Tree:: Saving a modified tree
462 * Statistics:: Displaying class tree statistics
463 * Marking Classes:: Marking and unmarking classes
469 @section Viewing and Finding Class Declarations
470 @cindex viewing, class
471 @cindex finding a class
472 @cindex class declaration
474 You can view or find a class declaration when the cursor is on a class
479 This command views the class declaration if the database
480 contains information about it. If you don't parse the entire source
481 you are working on, some classes will only be known to exist but the
482 location of their declarations and definitions will not be known.
485 Works like @kbd{SPC}, except that it finds the class
486 declaration rather than viewing it, so that it is ready for
490 The same functionality is available from the menu opened with
491 @kbd{Mouse-3} on the class name.
497 @section Displaying Members
498 @cindex @file{*Members*} buffer
499 @cindex @samp{*Globals*}
500 @cindex freezing a member buffer
501 @cindex member lists, in tree buffers
503 Ebrowse distinguishes six different kinds of members, each of
504 which is displayed as a separate @dfn{member list}: instance variables,
505 instance functions, static variables, static functions, friend
506 functions, and types.
508 Each of these lists can be displayed in a member buffer with a command
509 starting with @kbd{L} when the cursor is on a class name. By default,
510 there is only one member buffer named @dfn{*Members*} that is reused
511 each time you display a member list---this has proven to be more
512 practical than to clutter up the buffer list with dozens of member
515 If you want to display more than one member list at a time you can
516 @dfn{freeze} its member buffer. Freezing a member buffer prevents it
517 from being overwritten the next time you display a member list. You can
518 toggle this buffer status at any time.
520 Every member list display command in the tree buffer can be used with a
521 prefix argument (@kbd{C-u}). Without a prefix argument, the command will
522 pop to a member buffer displaying the member list. With prefix argument,
523 the member buffer will additionally be @dfn{frozen}.
526 @cindex instance member variables, list
528 This command displays the list of instance member variables.
530 @cindex static variables, list
532 Display the list of static variables.
534 @cindex friend functions, list
536 Display the list of friend functions. This list is used for defines if
537 you are viewing the class @samp{*Globals*} which is a place holder for
540 @cindex member functions, list
542 Display the list of member functions.
544 @cindex static member functions, list
546 Display the list of static member functions.
550 Display a list of types.
553 These lists are also available from the class' context menu invoked with
554 @kbd{Mouse-3} on the class name.
560 @section Finding a Class
562 @cindex expanding branches
563 @cindex class location
566 @cindex search for class
568 This command reads a class name from the minibuffer with completion and
569 positions the cursor on the class in the class tree.
571 If the branch of the class tree containing the class searched for is
572 currently collapsed, the class itself and all its base classes are
573 recursively made visible. (See also @ref{Expanding and
576 This function is also available from the tree buffer's context menu.
579 Repeat the last search done with @kbd{/}. Each tree buffer has its own
580 local copy of the regular expression last searched in it.
587 @section Burying a Tree Buffer
588 @cindex burying tree buffer
592 Is a synonym for @kbd{M-x bury-buffer}.
598 @node File Name Display
599 @section Displaying File Names
602 @cindex file names in tree buffers
604 This command toggles the display of file names in a tree buffer. If
605 file name display is switched on, the names of the files containing the
606 class declaration are shown to the right of the class names. If the
607 file is not known, the string @samp{unknown} is displayed.
609 This command is also provided in the tree buffer's context menu.
612 Display file names for the current line, or for the number of lines
613 given by a prefix argument.
616 Here is an example of a tree buffer with file names displayed.
619 | Collection (unknown)
620 | IndexedCollection (indexedcltn.h)
622 | FixedArray (fixedarray.h)
624 | Dictionary (dict.h)
628 @node Expanding and Collapsing
629 @section Expanding and Collapsing a Tree
630 @cindex expand tree branch
631 @cindex collapse tree branch
632 @cindex branches of class tree
633 @cindex class tree, collapse or expand
635 You can expand and collapse parts of a tree to reduce the complexity of
636 large class hierarchies. Expanding or collapsing branches of a tree has
637 no impact on the functionality of other commands, like @kbd{/}. (See
638 also @ref{Go to Class}.)
640 Collapsed branches are indicated with an ellipsis following the class
641 name like in the example below.
645 | IndexedCollection...
652 This command collapses the branch of the tree starting at the class the
656 This command expands the branch of the tree starting at the class the
657 cursor is on. Both commands for collapsing and expanding branches are
658 also available from the class' object menu.
661 This command expands all collapsed branches in the tree.
667 @node Tree Indentation
668 @section Changing the Tree Indentation
669 @cindex tree indentation
670 @cindex indentation of the tree
674 This command reads a new indentation width from the minibuffer and
675 redisplays the tree buffer with the new indentation It is also
676 available from the tree buffer's context menu.
682 @node Killing Classes
683 @section Removing Classes from the Tree
684 @cindex killing classes
685 @cindex class, remove from tree
689 This command removes the class the cursor is on and all its derived
690 classes from the tree. The user is asked for confirmation before the
691 deletion is actually performed.
698 @section Saving a Tree
699 @cindex save tree to a file
700 @cindex tree, save to a file
701 @cindex class tree, save to a file
705 This command writes a class tree to the file from which it was read.
706 This is useful after classes have been deleted from a tree.
709 Writes the tree to a file whose name is read from the minibuffer.
717 @cindex statistics for a tree
718 @cindex tree statistics
719 @cindex class statistics
723 Display statistics for the tree, like number of classes in it, number of
724 member functions, etc. This command can also be found in the buffer's
731 @node Marking Classes
732 @section Marking Classes
733 @cindex marking classes
734 @cindex operations on marked classes
736 Classes can be marked for operations similar to the standard Emacs
737 commands @kbd{M-x tags-search} and @kbd{M-x tags-query-replace} (see
738 also @xref{Tags-like Functions}.)
743 Toggle the mark of the line point is in or for as many lines as given by
744 a prefix command. This command can also be found in the class' context
749 Unmark all classes. With prefix argument @kbd{C-u}, mark all classes in
750 the tree. Since this command operates on the whole buffer, it can also be
751 found in the buffer's object menu.
754 Marked classes are displayed with an @code{>} in column one of the tree
755 display, like in the following example
759 | IndexedCollection...
767 @c ****************************************************************
769 @c *** MEMBER BUFFERS
771 @c ****************************************************************
774 @chapter Member Buffers
776 @cindex member buffer mode
778 @cindex class members, types
779 @cindex types of class members
780 @dfn{Member buffers} are used to operate on lists of members of a class.
781 Ebrowse distinguishes six kinds of lists:
785 Instance variables (normal member variables);
787 Instance functions (normal member functions);
791 Static member functions;
795 Types (@code{enum}s and @code{typedef}s defined with class scope.
796 Nested classes will be shown in the class tree like normal classes.
799 Like tree buffers, member buffers install their own major mode. Also
800 like in tree buffers, menus are provided for certain areas in the
801 buffer: members, classes, and the buffer itself.
804 * Switching Member Lists:: Choosing which members to display
805 * Finding/Viewing:: Modifying source code
806 * Inherited Members:: Display of Inherited Members
807 * Searching Members:: Finding members in member buffer
808 * Switching to Tree:: Going back to the tree buffer
809 * Filters:: Selective member display
810 * Attributes:: Display of @code{virtual} etc.
811 * Long and Short Display:: Comprehensive and verbose display
812 * Regexp Display:: Showing matching regular expressions
813 * Switching Classes:: Displaying another class
814 * Killing/Burying:: Getting rid of the member buffer
815 * Column Width:: Display style
816 * Redisplay:: Redrawing the member list
817 * Getting Help:: How to get help for key bindings
823 @node Switching Member Lists
824 @section Switching Member Lists
825 @cindex member lists, in member buffers
826 @cindex static members
832 @cindex next member list
834 This command switches the member buffer display to the next member list.
836 @cindex previous member list
838 This command switches the member buffer display to the previous member
842 Switch to the list of member functions.
846 Switch to the list of static member functions.
849 Switch to the list of member variables.
852 Switch to the list of static member variables.
855 Switch to the list of friends or defines.
858 Switch to the list of types.
861 Both commands cycle through the member list.
863 Most of the commands are also available from the member buffer's
869 @node Finding/Viewing
870 @section Finding and Viewing Member Source
871 @cindex finding members, in member buffers
872 @cindex viewing members, in member buffers
873 @cindex member definitions, in member buffers
874 @cindex member declarations, in member buffers
875 @cindex definition of a member, in member buffers
876 @cindex declaration of a member, in member buffers
880 This command finds the definition of the member the cursor is on.
881 Finding involves roughly the same as the standard Emacs tags facility
882 does---loading the file and searching for a regular expression matching
886 This command finds the declaration of the member the cursor is on.
889 This is the same command as @kbd{RET}, but views the member definition
890 instead of finding the member's source file.
893 This is the same command as @kbd{f}, but views the member's declaration
894 instead of finding the file the declaration is in.
897 You can install a hook function to perform actions after a member or
898 class declaration or definition has been found, or when it is not found.
900 All the commands described above can also be found in the context menu
901 displayed when clicking @kbd{Mouse-2} on a member name.
906 @node Inherited Members
907 @section Display of Inherited Members
908 @cindex superclasses, members
909 @cindex base classes, members
910 @cindex inherited members
914 This command toggles the display of inherited members in the member
915 buffer. This is also in the buffer's context menu.
921 @node Searching Members
922 @section Searching Members
923 @cindex searching members
927 Position the cursor on a member whose name is read from the minibuffer;
928 only members shown in the current member buffer appear in the completion
932 Like the above command, but all members for the current class appear in
933 the completion list. If necessary, the current member list is switched
934 to the one containing the member.
936 With a prefix argument (@kbd{C-u}), all members in the class tree,
937 i.e., all members the browser knows about appear in the completion
938 list. The member display will be switched to the class and member list
939 containing the member.
942 Repeat the last member search.
945 Look into the buffer's context menu for a convenient way to do this with
950 @node Switching to Tree
951 @section Switching to Tree Buffer
952 @cindex tree buffer, switch to
953 @cindex buffer switching
954 @cindex switching buffers
958 Pop up the tree buffer to which the member buffer belongs.
961 Do the same as @key{TAB} but also position the cursor on the class
962 displayed in the member buffer.
973 @cindex @code{public} members
975 This command toggles the display of @code{public} members. The
976 @samp{a} stands for ``access''.
978 @cindex @code{protected} members
980 This command toggles the display of @code{protected} members.
982 @cindex @code{private} members
984 This command toggles the display of @code{private} members.
986 @cindex @code{virtual} members
988 This command toggles the display of @code{virtual} members.
990 @cindex @code{inline} members
992 This command toggles the display of @code{inline} members.
994 @cindex @code{const} members
996 This command toggles the display of @code{const} members.
998 @cindex pure virtual members
1000 This command toggles the display of pure virtual members.
1002 @cindex remove filters
1004 This command removes all filters.
1007 These commands are also found in the buffer's context menu.
1013 @section Displaying Member Attributes
1015 @cindex member attribute display
1019 Toggle the display of member attributes (default is on).
1021 The nine member attributes Ebrowse knows about are displayed
1022 as a list a single-characters flags enclosed in angle brackets in front
1023 the of the member's name. A @samp{-} at a given position means that
1024 the attribute is false. The list of attributes from left to right is
1027 @cindex @code{template} attribute
1029 The member is a template.
1031 @cindex @code{extern "C"} attribute
1033 The member is declared @code{extern "C"}.
1035 @cindex @code{virtual} attribute
1037 Means the member is declared @code{virtual}.
1039 @cindex @code{inline}
1041 The member is declared @code{inline}.
1043 @cindex @code{const} attribute
1045 The member is @code{const}.
1047 @cindex pure virtual function attribute
1049 The member is a pure virtual function.
1051 @cindex @code{mutable} attribute
1053 The member is declared @code{mutable}.
1055 @cindex @code{explicit} attribute
1057 The member is declared @code{explicit}.
1060 The member is a function with a throw list.
1064 This command is also in the buffer's context menu.
1068 @node Long and Short Display
1069 @section Long and Short Member Display
1070 @cindex display form
1071 @cindex long display
1072 @cindex short display
1076 This command toggles the member buffer between short and long display
1077 form. The short display form displays member names, only:
1080 | isEmpty contains hasMember create
1081 | storeSize hash isEqual restoreGuts
1085 The long display shows one member per line with member name and regular
1086 expressions matching the member (if known):
1089 | isEmpty Bool isEmpty () const...
1090 | hash unsigned hash () const...
1091 | isEqual int isEqual (...
1094 Regular expressions will only be displayed when the Lisp database has
1095 not been produced with the @command{ebrowse} option @samp{--no-regexps}.
1096 @xref{Matching, --no-regexps, Regular Expressions}.
1102 @node Regexp Display
1103 @section Display of Regular Expressions
1104 @cindex regular expression display
1108 This command toggles the long display form from displaying the regular
1109 expressions matching the member declarations to those expressions
1110 matching member definitions.
1113 Regular expressions will only be displayed when the Lisp database has
1114 not been produced with the @command{ebrowse} option @samp{--no-regexps},
1115 see @ref{Matching, --no-regexps, Regular Expressions}.
1120 @node Switching Classes
1121 @section Displaying Another Class
1122 @cindex base class, display
1123 @cindex derived class, display
1124 @cindex superclass, display
1125 @cindex subclass, display
1126 @cindex class display
1130 This command lets you switch the member buffer to another class. It
1131 reads the name of the new class from the minibuffer with completion.
1134 This is the same command as @kbd{C c} but restricts the classes shown in
1135 the completion list to immediate base classes, only. If only one base
1136 class exists, this one is immediately shown in the minibuffer.
1139 Same as @kbd{C b}, but for derived classes.
1142 Switch to the previous class in the class hierarchy on the same level as
1143 the class currently displayed.
1146 Switch to the next sibling of the class in the class tree.
1152 @node Killing/Burying
1153 @section Burying a Member Buffer
1154 @cindex burying member buffers
1158 This command is a synonym for @kbd{M-x bury-buffer}.
1165 @section Setting the Column Width
1166 @cindex column width
1167 @cindex member indentation
1168 @cindex indentation, member
1172 This command sets the column width depending on the display form used
1173 (long or short display).
1180 @section Forced Redisplay
1181 @cindex redisplay of member buffers
1185 This command forces a redisplay of the member buffer. If the width
1186 of the window displaying the member buffer is changed this command
1187 redraws the member list with the appropriate column widths and number of
1195 @section Getting Help
1200 This key is bound to @code{describe-mode}.
1206 @comment **************************************************************
1207 @comment *** TAGS LIKE FUNCTIONS
1208 @comment **************************************************************
1210 @node Tags-like Functions
1211 @chapter Tags-like Functions
1213 Ebrowse provides tags functions similar to those of the standard
1214 Emacs Tags facility, but better suited to the needs of C++ programmers.
1217 * Finding and Viewing:: Going to a member declaration/definition
1218 * Position Stack:: Moving to previous locations
1219 * Search & Replace:: Searching and replacing over class tree files
1220 * Members in Files:: Listing all members in a given file
1221 * Apropos:: Listing members matching a regular expression
1222 * Symbol Completion:: Completing names while editing
1223 * Member Buffer Display:: Quickly display a member buffer for some
1229 @node Finding and Viewing
1230 @section Finding and Viewing Members
1231 @cindex finding class member, in C++ source
1232 @cindex viewing class member, in C++ source
1234 @cindex member definition, finding, in C++ source
1235 @cindex member declaration, finding, in C++ source
1237 The functions in this section are similar to those described in
1238 @ref{Source Display}, and also in @ref{Finding/Viewing}, except that
1239 they work in a C++ source buffer, not in member and tree buffers created
1244 Find the definition of the member around point. If you invoke this
1245 function with a prefix argument, the declaration is searched.
1247 If more than one class contains a member with the given name you can
1248 select the class with completion. If there is a scope declaration in
1249 front of the member name, this class name is used as initial input for
1253 Find the declaration of the member around point.
1256 View the definition of the member around point.
1259 View the declaration of the member around point.
1262 Find a member's definition in another window.
1265 Find a member's declaration in another window.
1268 View a member's definition in another window.
1271 View a member's declaration in another window.
1274 Find a member's definition in another frame.
1277 Find a member's declaration in another frame.
1280 View a member's definition in another frame.
1283 View a member's declaration in another frame.
1288 @node Position Stack
1289 @section The Position Stack
1290 @cindex position stack
1292 When jumping to a member declaration or definition with one of
1293 Ebrowse's commands, the position from where you performed the
1294 jump and the position where you jumped to are recorded in a
1295 @dfn{position stack}. There are several ways in which you can quickly
1296 move to positions in the stack:
1299 @cindex return to original position
1301 This command sets point to the previous position in the position stack.
1302 Directly after you performed a jump, this will put you back to the
1303 position where you came from.
1305 The stack is not popped, i.e., you can always switch back and forth
1306 between positions in the stack. To avoid letting the stack grow to
1307 infinite size there is a maximum number of positions defined. When this
1308 number is reached, older positions are discarded when new positions are
1309 pushed on the stack.
1312 This command moves forward in the position stack, setting point to
1313 the next position stored in the position stack.
1316 Displays an electric buffer showing all positions saved in the stack.
1317 You can select a position by pressing @kbd{SPC} in a line. You can
1318 view a position with @kbd{v}.
1324 @node Search & Replace
1325 @section Searching and Replacing
1326 @cindex searching multiple C++ files
1327 @cindex replacing in multiple C++ files
1328 @cindex restart tags-operation
1330 Ebrowse allows you to perform operations on all or a subset of the files
1331 mentioned in a class tree. When you invoke one of the following
1332 functions and more than one class tree is loaded, you must choose a
1333 class tree to use from an electric tree menu. If the selected tree
1334 contains marked classes, the following commands operate on the files
1335 mentioned in the marked classes only. Otherwise all files in the class
1340 This function performs a regular expression search in the chosen set of
1344 This command performs a search for calls of a given member which is
1345 selected in the usual way with completion.
1348 Perform a query replace over the set of files.
1351 All three operations above stop when finding a match. You can restart
1352 the operation with this command.
1355 This restarts the last tags operation with the next file in the list.
1361 @node Members in Files
1362 @section Members in Files
1364 @cindex members in file, listing
1365 @cindex list class members in a file
1366 @cindex file, members
1368 The command @kbd{C-c C-m l}, lists all members in a given file. The file
1369 name is read from the minibuffer with completion.
1375 @section Member Apropos
1376 @cindex apropos on class members
1377 @cindex members, matching regexp
1379 The command @kbd{C-c C-m a} can be used to display all members matching a
1380 given regular expression. This command can be very useful if you
1381 remember only part of a member name, and not its beginning.
1383 A special buffer is popped up containing all identifiers matching the
1384 regular expression, and what kind of symbol it is (e.g., a member
1385 function, or a type). You can then switch to this buffer, and use the
1386 command @kbd{C-c C-m f}, for example, to jump to a specific member.
1391 @node Symbol Completion
1392 @section Symbol Completion
1394 @cindex symbol completion
1396 The command @kbd{C-c C-m @key{TAB}} completes the symbol in front of point.
1401 @node Member Buffer Display
1402 @section Quick Member Display
1403 @cindex member buffer, for member at point
1405 You can quickly display a member buffer containing the member the cursor
1406 in on with the command @kbd{C-c C-m m}.
1409 @node GNU Free Documentation License
1410 @appendix GNU Free Documentation License
1411 @include doclicense.texi
1415 @unnumbered Concept Index