annotate man/speedbar.texi @ 79165:4e282ea90733

* hexl.el (hexl-menu): New major mode menu.
author Dan Nicolaescu <dann@ics.uci.edu>
date Sun, 21 Oct 2007 02:41:13 +0000
parents 88224dc74061
children 02b9a9aa5b0c dc002877ce12 e6fdae9180d4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1 \input texinfo @c -*-texinfo-*-
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
2
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
3 @setfilename ../info/speedbar
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
4 @settitle Speedbar: File/Tag summarizing utility
47737
0a70200bde27 use @copying instead of @ifinfo.
Karl Berry <karl@gnu.org>
parents: 43962
diff changeset
5 @syncodeindex fn cp
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
6
47737
0a70200bde27 use @copying instead of @ifinfo.
Karl Berry <karl@gnu.org>
parents: 43962
diff changeset
7 @copying
75249
4ad431d8e164 Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents: 69681
diff changeset
8 Copyright @copyright{} 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
4ad431d8e164 Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents: 69681
diff changeset
9 2007 Free Software Foundation, Inc.
34235
Dave Love <fx@gnu.org>
parents: 34233
diff changeset
10
47737
0a70200bde27 use @copying instead of @ifinfo.
Karl Berry <karl@gnu.org>
parents: 43962
diff changeset
11 @quotation
34235
Dave Love <fx@gnu.org>
parents: 34233
diff changeset
12 Permission is granted to copy, distribute and/or modify this document
65555
69b3598a61c5 Update all manuals to specify GFDL version 1.2.
Romain Francoise <romain@orebokech.com>
parents: 64890
diff changeset
13 under the terms of the GNU Free Documentation License, Version 1.2 or
34235
Dave Love <fx@gnu.org>
parents: 34233
diff changeset
14 any later version published by the Free Software Foundation; with the
Dave Love <fx@gnu.org>
parents: 34233
diff changeset
15 Invariant Sections being ``The GNU Manifesto'', ``Distribution'' and
Dave Love <fx@gnu.org>
parents: 34233
diff changeset
16 ``GNU GENERAL PUBLIC LICENSE'', with the Front-Cover texts being ``A GNU
Dave Love <fx@gnu.org>
parents: 34233
diff changeset
17 Manual'', and with the Back-Cover Texts as in (a) below. A copy of the
Dave Love <fx@gnu.org>
parents: 34233
diff changeset
18 license is included in the section entitled ``GNU Free Documentation
Dave Love <fx@gnu.org>
parents: 34233
diff changeset
19 License'' in the Emacs manual.
Dave Love <fx@gnu.org>
parents: 34233
diff changeset
20
Dave Love <fx@gnu.org>
parents: 34233
diff changeset
21 (a) The FSF's Back-Cover Text is: ``You have freedom to copy and modify
Dave Love <fx@gnu.org>
parents: 34233
diff changeset
22 this GNU Manual, like GNU software. Copies published by the Free
Dave Love <fx@gnu.org>
parents: 34233
diff changeset
23 Software Foundation raise funds for GNU development.''
Dave Love <fx@gnu.org>
parents: 34233
diff changeset
24
Dave Love <fx@gnu.org>
parents: 34233
diff changeset
25 This document is part of a collection distributed under the GNU Free
Dave Love <fx@gnu.org>
parents: 34233
diff changeset
26 Documentation License. If you want to distribute this document
Dave Love <fx@gnu.org>
parents: 34233
diff changeset
27 separately from the collection, you can do so by adding a copy of the
Dave Love <fx@gnu.org>
parents: 34233
diff changeset
28 license to the document, as described in section 6 of the license.
47737
0a70200bde27 use @copying instead of @ifinfo.
Karl Berry <karl@gnu.org>
parents: 43962
diff changeset
29 @end quotation
0a70200bde27 use @copying instead of @ifinfo.
Karl Berry <karl@gnu.org>
parents: 43962
diff changeset
30 @end copying
0a70200bde27 use @copying instead of @ifinfo.
Karl Berry <karl@gnu.org>
parents: 43962
diff changeset
31
0a70200bde27 use @copying instead of @ifinfo.
Karl Berry <karl@gnu.org>
parents: 43962
diff changeset
32 @dircategory Emacs
0a70200bde27 use @copying instead of @ifinfo.
Karl Berry <karl@gnu.org>
parents: 43962
diff changeset
33 @direntry
0a70200bde27 use @copying instead of @ifinfo.
Karl Berry <karl@gnu.org>
parents: 43962
diff changeset
34 * Speedbar: (speedbar). File/Tag summarizing utility.
0a70200bde27 use @copying instead of @ifinfo.
Karl Berry <karl@gnu.org>
parents: 43962
diff changeset
35 @end direntry
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
36
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
37 @titlepage
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
38 @sp 10
34235
Dave Love <fx@gnu.org>
parents: 34233
diff changeset
39 @center @titlefont{Speedbar}
Dave Love <fx@gnu.org>
parents: 34233
diff changeset
40 @sp 2
Dave Love <fx@gnu.org>
parents: 34233
diff changeset
41 @center Eric Ludlam
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
42 @vskip 0pt plus 1 fill
34235
Dave Love <fx@gnu.org>
parents: 34233
diff changeset
43 @page
Dave Love <fx@gnu.org>
parents: 34233
diff changeset
44 @vskip 0pt plus 1filll
47737
0a70200bde27 use @copying instead of @ifinfo.
Karl Berry <karl@gnu.org>
parents: 43962
diff changeset
45 @insertcopying
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
46 @end titlepage
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
47
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
48 @node Top, , , (dir)Top
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
49 @comment node-name, next, previous, up
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
50
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
51 Speedbar is a program for Emacs which can be used to summarize
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
52 information related to the current buffer. Its original inspiration
34238
17ee7879735a Fix double quotes.
Dave Love <fx@gnu.org>
parents: 34235
diff changeset
53 is the `explorer' often used in modern development environments, office
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
54 packages, and web browsers.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
55
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
56 Speedbar displays a narrow frame in which a tree view is shown. This
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
57 tree view defaults to containing a list of files and directories. Files
34238
17ee7879735a Fix double quotes.
Dave Love <fx@gnu.org>
parents: 34235
diff changeset
58 can be `expanded' to list tags inside. Directories can be expanded to
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
59 list the files within itself. Each file or tag can be jumped to
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
60 immediately.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
61
34238
17ee7879735a Fix double quotes.
Dave Love <fx@gnu.org>
parents: 34235
diff changeset
62 Speedbar expands upon `explorer' windows by maintaining context with the
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
63 user. For example, when using the file view, the current buffer's file
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
64 is highlighted. Speedbar also mimics the explorer windows by providing
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
65 multiple display modes. These modes come in two flavors. Major display
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
66 modes remain consistent across buffers, and minor display modes appear
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
67 only when a buffer of the applicable type is shown. This allows
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
68 authors of other packages to provide speedbar summaries customized to
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
69 the needs of that mode.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
70
34238
17ee7879735a Fix double quotes.
Dave Love <fx@gnu.org>
parents: 34235
diff changeset
71 Throughout this manual, activities are defined as `clicking on', or
64462
7f555663a119 (Top): Delete duplicate words.
Juri Linkov <juri@jurta.org>
parents: 63712
diff changeset
72 `expanding' items. Clicking means using @kbd{Mouse-2} on a
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
73 button. Expanding refers to clicking on an expansion button to display
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
74 an expanded summary of the entry the expansion button is
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
75 on. @xref{Basic Navigation}.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
76
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
77 @menu
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
78 * Introduction:: Basics of speedbar.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
79 * Basic Navigation:: Basics of speedbar common between all modes.
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
80 * File Mode:: Summarizing files.
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
81 * Buffer Mode:: Summarizing buffers.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
82 * Minor Modes:: Additional minor modes such as Info and RMAIL.
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
83 * Customizing:: Changing speedbar behavior.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
84 * Extending:: Extend speedbar for your own project.
77235
88224dc74061 Include GFDL.
Chong Yidong <cyd@stupidchicken.com>
parents: 75249
diff changeset
85 * GNU Free Documentation License:: The license for this documentation.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
86 * Index::
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
87 @end menu
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
88
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
89 @node Introduction, Basic Navigation, , Top
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
90 @comment node-name, next, previous, up
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
91 @chapter Introduction
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
92 @cindex introduction
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
93
65915
318b3b3bee1b (Introduction): Describe new location of speedbar
Nick Roberts <nickrob@snap.net.nz>
parents: 65848
diff changeset
94 To start using speedbar use the command @kbd{M-x speedbar RET} or
318b3b3bee1b (Introduction): Describe new location of speedbar
Nick Roberts <nickrob@snap.net.nz>
parents: 65848
diff changeset
95 select it from the @samp{Options->Show/Hide} sub-menu. This command
318b3b3bee1b (Introduction): Describe new location of speedbar
Nick Roberts <nickrob@snap.net.nz>
parents: 65848
diff changeset
96 will open a new frame to summarize the local files. On X Window
318b3b3bee1b (Introduction): Describe new location of speedbar
Nick Roberts <nickrob@snap.net.nz>
parents: 65848
diff changeset
97 systems or on MS-Windows, speedbar's frame is twenty characters wide,
318b3b3bee1b (Introduction): Describe new location of speedbar
Nick Roberts <nickrob@snap.net.nz>
parents: 65848
diff changeset
98 and will mimic the height of the frame from which it was started. It
318b3b3bee1b (Introduction): Describe new location of speedbar
Nick Roberts <nickrob@snap.net.nz>
parents: 65848
diff changeset
99 positions itself to the left or right of the frame you started it
318b3b3bee1b (Introduction): Describe new location of speedbar
Nick Roberts <nickrob@snap.net.nz>
parents: 65848
diff changeset
100 from.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
101
33079
678eca93205c Speling &c.
Dave Love <fx@gnu.org>
parents: 32702
diff changeset
102 To use speedbar effectively, it is important to understand its
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
103 relationship with the frame you started it from. This frame is the
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
104 @dfn{attached frame} which speedbar will use as a reference point. Once
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
105 started, speedbar watches the contents of this frame, and attempts to
33079
678eca93205c Speling &c.
Dave Love <fx@gnu.org>
parents: 32702
diff changeset
106 make its contents relevant to the buffer loaded into the attached
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
107 frame. In addition, all requests made in speedbar that require the
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
108 display of another buffer will display in the attached frame.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
109
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
110 When used in terminal mode, the new frame appears the same size as the
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
111 terminal. Since it is not visible while working in the attached frame,
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
112 speedbar will save time by using the @dfn{slowbar mode}, where no tracking is
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
113 done until speedbar is requested to show itself (i.e., the speedbar's
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
114 frame becomes the selected frame).
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
115
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
116 @cindex @code{speedbar-get-focus}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
117 The function to use when switching between frames using the keyboard is
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
118 @code{speedbar-get-focus}. This function will toggle between frames, and
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
119 it's useful to bind it to a key in terminal mode. @xref{Customizing}.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
120
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
121 @node Basic Navigation, File Mode, Introduction, Top
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
122 @comment node-name, next, previous, up
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
123 @chapter Basic Navigation
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
124
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
125 Speedbar can display different types of data, and has several display
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
126 and behavior modes. These modes all have a common behavior, menu
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
127 system, and look. If one mode is learned, then the other modes are easy
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
128 to use.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
129
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
130 @menu
39267
a8c0a02f6129 Spelling corrections.
Richard M. Stallman <rms@gnu.org>
parents: 38865
diff changeset
131 * Basic Key Bindings::
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
132 * Basic Visuals::
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
133 * Mouse Bindings::
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
134 * Displays Submenu::
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
135 @end menu
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
136
39267
a8c0a02f6129 Spelling corrections.
Richard M. Stallman <rms@gnu.org>
parents: 38865
diff changeset
137 @node Basic Key Bindings, Basic Visuals, Basic Navigation, Basic Navigation
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
138 @comment node-name, next, previous, up
39267
a8c0a02f6129 Spelling corrections.
Richard M. Stallman <rms@gnu.org>
parents: 38865
diff changeset
139 @section Basic Key Bindings
a8c0a02f6129 Spelling corrections.
Richard M. Stallman <rms@gnu.org>
parents: 38865
diff changeset
140 @cindex key bindings
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
141
39267
a8c0a02f6129 Spelling corrections.
Richard M. Stallman <rms@gnu.org>
parents: 38865
diff changeset
142 These key bindings are common across all modes:
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
143
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
144 @table @kbd
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
145 @item Q
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
146 @cindex quitting speedbar
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
147 Quit speedbar, and kill the frame.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
148 @item q
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
149 Quit speedbar, and hide the frame. This makes it faster to restore the
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
150 speedbar frame, than if you press @kbd{Q}.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
151 @item g
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
152 @cindex refresh speedbar display
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
153 Refresh whatever contents are in speedbar.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
154 @item t
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
155 @cindex slowbar mode
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
156 Toggle speedbar to and from slowbar mode. In slowbar mode, frame
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
157 tracking is not done.
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
158 @item n
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
159 @itemx p
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
160 @cindex navigation
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
161 Move, respectively, to the next or previous item. A summary of that
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
162 item will be displayed in the attached frame's minibuffer.
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
163 @item M-n
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
164 @itemx M-p
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
165 Move to the next or previous item in a restricted fashion. If a list is
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
166 open, the cursor will skip over it. If the cursor is in an open list,
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
167 it will not leave it.
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
168 @item C-M-n
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
169 @itemx C-M-n
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
170 Move forwards and backwards across extended groups. This lets you
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
171 quickly skip over all files, directories, or other common sub-items at
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
172 the same current depth.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
173 @item C-x b
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
174 Switch buffers in the attached frame.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
175 @end table
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
176
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
177 Speedbar can handle multiple modes. Two are provided by default.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
178 These modes are File mode, and Buffers mode. There are accelerators to
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
179 switch into these different modes.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
180
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
181 @cindex mode switching hotkeys
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
182 @table @kbd
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
183 @item b
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
184 Switch into Quick Buffers mode (@pxref{Buffer Mode}). After one use, the
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
185 previous display mode is restored.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
186 @item f
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
187 Switch into File mode.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
188 @item r
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
189 Switch back to the previous mode.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
190 @end table
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
191
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
192 Some modes provide groups, lists and tags. @xref{Basic Visuals}. When
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
193 these are available, some additional common bindings are available.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
194
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
195 @cindex common keys
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
196 @table @kbd
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
197 @item RET
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
198 @itemx e
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
199 Edit/Open the current group or tag. This behavior is dependent on the
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
200 mode. In general, files or buffers are opened in the attached frame,
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
201 and directories or group nodes are expanded locally.
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
202 @item +
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
203 @itemx =
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
204 Expand the current group, displaying sub items.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
205 When used with a prefix argument, any data that may have been cached is
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
206 flushed. This is similar to a power click. @xref{Mouse Bindings}.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
207 @item -
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
208 Contract the current group, hiding sub items.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
209 @end table
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
210
39267
a8c0a02f6129 Spelling corrections.
Richard M. Stallman <rms@gnu.org>
parents: 38865
diff changeset
211 @node Basic Visuals, Mouse Bindings, Basic Key Bindings, Basic Navigation
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
212 @comment node-name, next, previous, up
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
213 @section Basic Visuals
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
214 @cindex visuals
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
215
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
216 Speedbar has visual cues for indicating different types of data. These
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
217 cues are used consistently across the different speedbar modes to make
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
218 them easier to interpret.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
219
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
220 At a high level, in File mode, there are directory buttons, sub
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
221 directory buttons, file buttons, tag buttons, and expansion buttons.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
222 This makes it easy to use the mouse to navigate a directory tree, and
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
223 quickly view files, or a summary of those files.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
224
33079
678eca93205c Speling &c.
Dave Love <fx@gnu.org>
parents: 32702
diff changeset
225 The most basic visual effect used to distinguish between these button
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
226 types is color and mouse highlighting. Anything the mouse highlights
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
227 can be clicked on and is called a button (@pxref{Mouse Bindings}).
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
228 Anything not highlighted by the mouse will not be clickable.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
229
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
230 Text in speedbar consists of four different types of data. Knowing how
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
231 to read these textual elements will make it easier to navigate by
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
232 identifying the types of data available.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
233
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
234 @subsubsection Groups
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
235 @cindex groups
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
236
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
237 Groups summarize information in a single line, and provide a high level
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
238 view of more complex systems, like a directory tree, or manual chapters.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
239
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
240 Groups appear at different indentation levels, and are prefixed with a
34238
17ee7879735a Fix double quotes.
Dave Love <fx@gnu.org>
parents: 34235
diff changeset
241 @samp{+} in some sort of `box'. The group name will summarize the
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
242 information within it, and the expansion box will display that
34238
17ee7879735a Fix double quotes.
Dave Love <fx@gnu.org>
parents: 34235
diff changeset
243 information inline. In File mode, directories and files are `groups'
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
244 where the @samp{+} is surrounded by brackets like this:
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
245
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
246 @example
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
247 <+> include
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
248 <-> src
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
249 [+] foo.c
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
250 @end example
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
251
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
252 In this example, we see both open and closed directories, in addition to
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
253 a file. The directories have a box consisting of angle brackets, and a
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
254 file uses square brackets.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
255
34238
17ee7879735a Fix double quotes.
Dave Love <fx@gnu.org>
parents: 34235
diff changeset
256 In all modes, a group can be `edited' by pressing @kbd{RET}, meaning a
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
257 file will be opened, or a directory explicitly opened in speedbar. A
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
258 group can be expanded or contracted using @kbd{+} or
39267
a8c0a02f6129 Spelling corrections.
Richard M. Stallman <rms@gnu.org>
parents: 38865
diff changeset
259 @kbd{-}. @xref{Basic Key Bindings}.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
260
33079
678eca93205c Speling &c.
Dave Love <fx@gnu.org>
parents: 32702
diff changeset
261 Sometimes groups may have a @samp{?} in its indicator box. This means
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
262 that it is a group type, but there are no contents, or no known way of
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
263 extracting contents of that group.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
264
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
265 When a group has been expanded, the indicator button changes from
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
266 @samp{+} to @samp{-}. This indicates that the contents are being shown.
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
267 Click the @samp{-} button to contract the group, or hide the contents
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
268 currently displayed.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
269
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
270 @subsubsection Tags
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
271 @cindex tags
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
272
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
273 Tags are the leaf nodes of the tree system. Tags are generally prefixed
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
274 with a simple character, such as @samp{>}. Tags can only be jumped to using
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
275 @kbd{RET} or @kbd{e}.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
276
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
277 @subsubsection Boolean Flags
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
278
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
279 Sometimes a group or tag is given a boolean flag. These flags appear as
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
280 extra text characters at the end of the line. File mode uses boolean
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
281 flags, such as a @samp{*} to indicate that a file has been checked out
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
282 of a versioning system.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
283
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
284 For additional flags, see
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
285 @c Note to self, update these to sub-nodes which are more relevant.
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
286 @ref{File Mode}, and @ref{Version Control}.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
287
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
288 @subsubsection Unadorned Text
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
289
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
290 Unadorned text generally starts in column 0, without any special symbols
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
291 prefixing them. In Buffers mode different buffer groups are prefixed
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
292 with a description of what the following buffers are (Files, scratch
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
293 buffers, and invisible buffers.)
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
294
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
295 Unadorned text will generally be colorless, and not clickable.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
296
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
297 @subsubsection Color Cues
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
298
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
299 Each type of Group, item indicator, and label is given a different
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
300 color. The colors chosen are dependent on whether the background color
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
301 is light or dark.
34238
17ee7879735a Fix double quotes.
Dave Love <fx@gnu.org>
parents: 34235
diff changeset
302 Of important note is that the `current item', which may be a buffer or
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
303 file name, is highlighted red, and underlined.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
304
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
305 Colors can be customized from the group @code{speedbar-faces}. Some
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
306 modes, such as for Info, will use the Info colors instead of default
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
307 speedbar colors as an indication of what is currently being displayed.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
308
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
309 The face naming convention mirrors the File display mode. Modes which
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
310 do not use files will attempt to use the same colors on analogous
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
311 entries.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
312
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
313 @node Mouse Bindings, Displays Submenu, Basic Visuals, Basic Navigation
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
314 @comment node-name, next, previous, up
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
315 @section Mouse Bindings
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
316 @cindex mouse bindings
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
317
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
318 The mouse has become a common information navigation tool. Speedbar
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
319 will use the mouse to navigate file systems, buffer lists, and other
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
320 data. The different textual cues provide buttons which can be clicked
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
321 on (@pxref{Basic Visuals}). Anything that highlights can be clicked on
33079
678eca93205c Speling &c.
Dave Love <fx@gnu.org>
parents: 32702
diff changeset
322 with the mouse, or affected by the menu.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
323
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
324 The mouse bindings are:
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
325
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
326 @table @kbd
36154
b0a0856aa1c1 Minor cleanup.
Richard M. Stallman <rms@gnu.org>
parents: 34238
diff changeset
327 @item Mouse-1
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
328 Move cursor to that location.
36154
b0a0856aa1c1 Minor cleanup.
Richard M. Stallman <rms@gnu.org>
parents: 34238
diff changeset
329 @item Mouse-2
b0a0856aa1c1 Minor cleanup.
Richard M. Stallman <rms@gnu.org>
parents: 34238
diff changeset
330 @itemx Double-Mouse-1
b0a0856aa1c1 Minor cleanup.
Richard M. Stallman <rms@gnu.org>
parents: 34238
diff changeset
331 Activate the current button. @kbd{Double-Mouse-1} is called a @dfn{double
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
332 click} on other platforms, and is useful for windows users with two
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
333 button mice.
36154
b0a0856aa1c1 Minor cleanup.
Richard M. Stallman <rms@gnu.org>
parents: 34238
diff changeset
334 @c Isn't it true that with two-button mice, the right button is Mouse-2?
b0a0856aa1c1 Minor cleanup.
Richard M. Stallman <rms@gnu.org>
parents: 34238
diff changeset
335 @c On GNU/Linux, the right button is Mouse-3.
b0a0856aa1c1 Minor cleanup.
Richard M. Stallman <rms@gnu.org>
parents: 34238
diff changeset
336 @item S-Mouse-2
b0a0856aa1c1 Minor cleanup.
Richard M. Stallman <rms@gnu.org>
parents: 34238
diff changeset
337 @itemx S-Double-Mouse-1
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
338 @cindex power click
36154
b0a0856aa1c1 Minor cleanup.
Richard M. Stallman <rms@gnu.org>
parents: 34238
diff changeset
339 This has the same effect as @kbd{Mouse-2}, except it is called a power
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
340 click. This means that if a group with an expansion button @samp{+} is
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
341 clicked, any caches are flushed, and subitems re-read. If it is a name,
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
342 it will be opened in a new frame.
36154
b0a0856aa1c1 Minor cleanup.
Richard M. Stallman <rms@gnu.org>
parents: 34238
diff changeset
343 @item Mouse-3
33079
678eca93205c Speling &c.
Dave Love <fx@gnu.org>
parents: 32702
diff changeset
344 Activate the speedbar menu. The item selected affects the line clicked,
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
345 not the line where the cursor was.
36154
b0a0856aa1c1 Minor cleanup.
Richard M. Stallman <rms@gnu.org>
parents: 34238
diff changeset
346 @item Mouse-1 @r{(mode line)}
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
347 Activate the menu. This affects the item the cursor is on before the
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
348 click, since the mouse was not clicked on anything.
36154
b0a0856aa1c1 Minor cleanup.
Richard M. Stallman <rms@gnu.org>
parents: 34238
diff changeset
349 @item C-Mouse-1
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
350 Buffers sub-menu. The buffer in the attached frame is switched.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
351 @end table
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
352
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
353 When the mouse moves over buttons in speedbar, details of that item
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
354 should be displayed in the minibuffer of the attached frame. Sometimes
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
355 this can contain extra information such as file permissions, or tag
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
356 location.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
357
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
358 @node Displays Submenu, , Mouse Bindings, Basic Navigation
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
359 @comment node-name, next, previous, up
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
360 @section Displays Submenu
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
361 @cindex displays submenu
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
362
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
363 You can display different data by using different display modes. These
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
364 specialized modes make it easier to navigate the relevant pieces of
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
365 information, such as files and directories, or buffers.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
366
36154
b0a0856aa1c1 Minor cleanup.
Richard M. Stallman <rms@gnu.org>
parents: 34238
diff changeset
367 In the main menu, found by clicking @kbd{Mouse-3}, there is a submenu
b0a0856aa1c1 Minor cleanup.
Richard M. Stallman <rms@gnu.org>
parents: 34238
diff changeset
368 labeled @samp{Displays}. This submenu lets you easily choose between
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
369 different display modes.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
370
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
371 The contents are modes currently loaded into emacs. By default, this
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
372 would include Files, Quick Buffers, and Buffers. Other major display
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
373 modes such as Info are loaded separately.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
374
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
375 @node File Mode, Buffer Mode, Basic Navigation, Top
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
376 @comment node-name, next, previous, up
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
377 @chapter File Mode
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
378 @cindex file mode
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
379
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
380 File mode displays a summary of your current directory. You can display
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
381 files in the attached frame, or summarize the tags found in files. You
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
382 can even see if a file is checked out of a version control system, or
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
383 has some associated object file.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
384
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
385 Advanced behavior, like copying and renaming files, is also provided.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
386
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
387 @menu
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
388 * Directory Display:: What the display means.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
389 * Hidden Files:: How to display hidden files.
39267
a8c0a02f6129 Spelling corrections.
Richard M. Stallman <rms@gnu.org>
parents: 38865
diff changeset
390 * File Key Bindings:: Performing file operations.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
391 @end menu
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
392
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
393 @node Directory Display, Hidden Files, File Mode, File Mode
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
394 @comment node-name, next, previous, up
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
395 @section Directory Display
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
396 @cindex directory display
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
397
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
398 There are three major sections in the display. The first line or two is
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
399 the root directory speedbar is currently viewing. You can jump to one
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
400 of the parent directories by clicking on the name of the directory you
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
401 wish to jump to.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
402
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
403 Next, directories are listed. A directory starts with the group
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
404 indicator button @samp{<+>}. Clicking the directory name makes speedbar
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
405 load that directory as the root directory for its display. Clicking the
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
406 @samp{<+>} button will list all directories and files beneath.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
407
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
408 Next, files are listed. Files start with the group indicator @samp{[+]}
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
409 or @samp{[?]}. You can jump to a file in the attached frame by clicking
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
410 on the file name. You can expand a file and look at its tags by
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
411 clicking on the @samp{[+]} symbol near the file name.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
412
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
413 A typical session might look like this:
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
414
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
415 @example
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
416 ~/lisp/
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
417 <+> checkdoc
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
418 <+> eieio
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
419 <-> speedbar
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
420 [+] Makefile
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
421 [+] rpm.el #
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
422 [+] sb-gud.el #
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
423 [+] sb-info.el #
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
424 [+] sb-rmail.el #
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
425 [+] sb-w3.el
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
426 [-] speedbar.el *!
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
427 @{+@} Types
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
428 @{+@} Variables
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
429 @{+@} def (group)
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
430 @{+@} speedbar-
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
431 [+] speedbar.texi *
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
432 <+> testme
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
433 [+] align.el
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
434 [+] autoconf.el
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
435 @end example
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
436
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
437 In this example, you can see several directories. The directory
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
438 @file{speedbar} has been opened inline. Inside the directory
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
439 @file{speedbar}, the file @file{speedbar.el} has its tags exposed.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
440 These tags are extensive, and they are summarized into tag groups.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
441
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
442 Files get additional boolean flags associated with them. Valid flags are:
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
443
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
444 @cindex file flags
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
445 @table @code
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
446 @item *
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
447 This file has been checked out of a version control
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
448 system. @xref{Version Control}.
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
449 @cindex @code{speedbar-obj-alist}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
450 @item #
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
451 This file has an up to date object file associated with it. The
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
452 variable @code{speedbar-obj-alist} defines how speedbar determines this
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
453 value.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
454 @item !
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
455 This file has an out of date object file associated with it.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
456 @end table
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
457
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
458 A Tag group is prefixed with the symbol @samp{@{+@}}. Clicking this
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
459 symbol will show all symbols that have been organized into that group.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
460 Different types of files have unique tagging methods as defined by their
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
461 major mode. Tags are generated with either the @code{imenu} package, or
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
462 through the @code{etags} interface.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
463
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
464 Tag groups are defined in multiple ways which make it easier to find the
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
465 tag you are looking for. Imenu keywords explicitly create groups, and
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
466 speedbar will automatically create groups if tag lists are too long.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
467
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
468 In our example, Imenu created the groups @samp{Types} and
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
469 @samp{Variables}. All remaining top-level symbols are then regrouped
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
470 based on the variable @code{speedbar-tag-hierarchy-method}. The
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
471 subgroups @samp{def} and @samp{speedbar-} are groupings where the first
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
472 few characters of the given symbols are specified in the group name.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
473 Some group names may say something like @samp{speedbar-t to speedbar-v},
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
474 indicating that all symbols which alphabetically fall between those
33079
678eca93205c Speling &c.
Dave Love <fx@gnu.org>
parents: 32702
diff changeset
475 categories are included in that sub-group. @xref{Tag Hierarchy Methods}.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
476
39267
a8c0a02f6129 Spelling corrections.
Richard M. Stallman <rms@gnu.org>
parents: 38865
diff changeset
477 @node Hidden Files, File Key Bindings, Directory Display, File Mode
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
478 @comment node-name, next, previous, up
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
479 @section Hidden Files
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
480 @cindex hidden files
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
481
38865
62e02f5ae533 Avoid saying "Unix" in a way that includes GNU.
Richard M. Stallman <rms@gnu.org>
parents: 36154
diff changeset
482 On GNU and Unix systems, a hidden file is a file whose name starts
62e02f5ae533 Avoid saying "Unix" in a way that includes GNU.
Richard M. Stallman <rms@gnu.org>
parents: 36154
diff changeset
483 with a period. They are hidden from a regular directory listing
62e02f5ae533 Avoid saying "Unix" in a way that includes GNU.
Richard M. Stallman <rms@gnu.org>
parents: 36154
diff changeset
484 because the user is not generally interested in them.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
485
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
486 In speedbar, a hidden file is a file which isn't very interesting and
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
487 might prove distracting to the user. Any uninteresting files are
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
488 removed from the File display. There are two levels of uninterest in
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
489 speedbar. The first level of uninterest are files which have no
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
490 expansion method, or way of extracting tags. The second level is any
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
491 file that matches the same pattern used for completion in
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
492 @code{find-file}. This is derived from the variable
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
493 @code{completion-ignored-extensions}.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
494
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
495 You can toggle the display of uninteresting files from the toggle menu
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
496 item @samp{Show All Files}. This will display all level one hidden files.
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
497 These files will be shown with a @samp{?} indicator. Level 2 hidden
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
498 files will still not be shown.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
499
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
500 Object files fall into the category of level 2 hidden files. You can
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
501 determine their presence by the @samp{#} and @samp{!} file indicators.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
502 @xref{Directory Display}.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
503
39267
a8c0a02f6129 Spelling corrections.
Richard M. Stallman <rms@gnu.org>
parents: 38865
diff changeset
504 @node File Key Bindings, , Hidden Files, File Mode
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
505 @comment node-name, next, previous, up
39267
a8c0a02f6129 Spelling corrections.
Richard M. Stallman <rms@gnu.org>
parents: 38865
diff changeset
506 @section File Key Bindings
a8c0a02f6129 Spelling corrections.
Richard M. Stallman <rms@gnu.org>
parents: 38865
diff changeset
507 @cindex file key bindings
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
508
39267
a8c0a02f6129 Spelling corrections.
Richard M. Stallman <rms@gnu.org>
parents: 38865
diff changeset
509 File mode has key bindings permitting different file system operations
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
510 such as copy or rename. These commands all operate on the @dfn{current
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
511 file}. In this case, the current file is the file at point, or clicked
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
512 on when pulling up the menu.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
513
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
514 @table @kbd
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
515 @item U
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
516 Move the entire speedbar display up one directory.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
517 @item I
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
518 Display information in the minibuffer about this line. This is the same
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
519 information shown when navigating with @kbd{n} and @kbd{p}, or moving
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
520 the mouse over an item.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
521 @item B
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
522 Byte compile the Emacs Lisp file on this line.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
523 @item L
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
524 Load the Emacs Lisp file on this line. If a @file{.elc} file exists,
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
525 optionally load that.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
526 @item C
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
527 Copy the current file to some other location.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
528 @item R
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
529 Rename the current file, possibly moving it to some other location.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
530 @item D
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
531 Delete the current file.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
532 @item O
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
533 Delete the current file's object file. Use the symbols @samp{#} and
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
534 @samp{!} to determine if there is an object file available.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
535 @end table
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
536
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
537 One menu item toggles the display of all available files. By default,
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
538 only files which Emacs understands, and knows how to convert into a tag
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
539 list, are shown. By showing all files, additional files such as text files are
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
540 also displayed, but they are prefixed with the @samp{[?]} symbol. This
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
541 means that it is a file, but Emacs doesn't know how to expand it.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
542
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
543 @node Buffer Mode, Minor Modes, File Mode, Top
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
544 @comment node-name, next, previous, up
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
545 @chapter Buffer Mode
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
546 @cindex buffer mode
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
547
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
548 Buffer mode is very similar to File mode, except that instead of
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
549 tracking the current directory and all files available there, the
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
550 current list of Emacs buffers is shown.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
551
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
552 These buffers can have their tags expanded in the same way as files,
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
553 and uses the same unknown file indicator (@pxref{File Mode}).
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
554
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
555 Buffer mode does not have file operation bindings, but the following
39267
a8c0a02f6129 Spelling corrections.
Richard M. Stallman <rms@gnu.org>
parents: 38865
diff changeset
556 buffer specific key bindings are available:
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
557
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
558 @table @kbd
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
559 @item k
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
560 Kill this buffer. Do not touch its file.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
561 @item r
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
562 Revert this buffer, reloading from disk.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
563 @end table
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
564
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
565 In addition to Buffer mode, there is also Quick Buffer mode. In fact,
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
566 Quick Buffers is bound to the @kbd{b} key. The only difference between
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
567 Buffers and Quick Buffers is that after one operation is performed
33079
678eca93205c Speling &c.
Dave Love <fx@gnu.org>
parents: 32702
diff changeset
568 which affects the attached frame, the display is immediately reverted to
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
569 the last displayed mode.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
570
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
571 Thus, if you are in File mode, and you need quick access to a buffer,
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
572 press @kbd{b}, click on the buffer you want, and speedbar will revert
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
573 back to File mode.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
574
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
575 @node Minor Modes, Customizing, Buffer Mode, Top
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
576 @comment node-name, next, previous, up
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
577 @chapter Minor Display Modes
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
578 @cindex minor display modes
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
579
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
580 For some buffers, a list of files and tags makes no sense. This could
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
581 be because files are not currently in reference (such as web pages), or
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
582 that the files you might be interested have special properties (such as
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
583 email folders.)
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
584
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
585 In these cases, a minor display mode is needed. A minor display mode
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
586 will override any major display mode currently being displayed for the
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
587 duration of the specialized buffer's use. Minor display modes
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
588 will follow the general rules of their major counterparts in terms of
39267
a8c0a02f6129 Spelling corrections.
Richard M. Stallman <rms@gnu.org>
parents: 38865
diff changeset
589 key bindings and visuals, but will have specialized behaviors.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
590
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
591 @menu
65848
5bc62ce4d2f7 (GDB): Describe use of watch expressions.
Nick Roberts <nickrob@snap.net.nz>
parents: 65555
diff changeset
592 * RMAIL:: Managing folders.
5bc62ce4d2f7 (GDB): Describe use of watch expressions.
Nick Roberts <nickrob@snap.net.nz>
parents: 65555
diff changeset
593 * Info:: Browsing topics.
5bc62ce4d2f7 (GDB): Describe use of watch expressions.
Nick Roberts <nickrob@snap.net.nz>
parents: 65555
diff changeset
594 * GDB:: Watching expressions or managing the current
5bc62ce4d2f7 (GDB): Describe use of watch expressions.
Nick Roberts <nickrob@snap.net.nz>
parents: 65555
diff changeset
595 stack trace.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
596 @end menu
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
597
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
598 @node RMAIL, Info, Minor Modes, Minor Modes
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
599 @comment node-name, next, previous, up
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
600 @section RMAIL
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
601 @cindex RMAIL
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
602
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
603 When using RMAIL, speedbar will display two sections. The first is a
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
604 layer one reply button. Clicking here will initialize a reply buffer
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
605 showing only this email address in the @samp{To:} field.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
606
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
607 The second section lists all RMAIL folders in the same directory as your
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
608 main RMAIL folder. The general rule is that RMAIL folders always appear
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
609 in all caps, or numbers. It is possible to save mail in folders with
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
610 lower case letters, but there is no clean way of detecting such RMAIL folders
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
611 without opening them all.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
612
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
613 Each folder can be visited by clicking the name. You can move mail from
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
614 the current RMAIL folder into a different folder by clicking the
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
615 @samp{<M>} button. The @samp{M} stands for Move.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
616
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
617 In this way you can manage your existing RMAIL folders fairly easily
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
618 using the mouse.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
619
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
620 @node Info, GDB, RMAIL, Minor Modes
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
621 @comment node-name, next, previous, up
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
622 @section Info
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
623 @cindex Info
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
624
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
625 When browsing Info files, all local relevant information is displayed in
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
626 the info buffer and a topical high-level view is provided in speedbar.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
627 All top-level info nodes are shown in the speedbar frame, and can be
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
628 jumped to by clicking the name.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
629
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
630 You can open these nodes with the @samp{[+]} button to see what sub-topics
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
631 are available. Since these sub-topics are not examined until you click
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
632 the @samp{[+]} button, sometimes a @samp{[?]} will appear when you click on
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
633 a @samp{[+]}, indicating that there are no sub-topics.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
634
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
635 @node GDB, , Info, Minor Modes
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
636 @comment node-name, next, previous, up
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
637 @section GDB
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
638 @cindex gdb
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
639 @cindex gud
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
640
65848
5bc62ce4d2f7 (GDB): Describe use of watch expressions.
Nick Roberts <nickrob@snap.net.nz>
parents: 65555
diff changeset
641 You can debug an application with GDB in Emacs using graphical mode or
5bc62ce4d2f7 (GDB): Describe use of watch expressions.
Nick Roberts <nickrob@snap.net.nz>
parents: 65555
diff changeset
642 text command mode (@pxref{GDB Graphical Interface,,, emacs, The
5bc62ce4d2f7 (GDB): Describe use of watch expressions.
Nick Roberts <nickrob@snap.net.nz>
parents: 65555
diff changeset
643 extensible self-documenting text editor}).
5bc62ce4d2f7 (GDB): Describe use of watch expressions.
Nick Roberts <nickrob@snap.net.nz>
parents: 65555
diff changeset
644
5bc62ce4d2f7 (GDB): Describe use of watch expressions.
Nick Roberts <nickrob@snap.net.nz>
parents: 65555
diff changeset
645 If you are using graphical mode you can see how selected variables
5bc62ce4d2f7 (GDB): Describe use of watch expressions.
Nick Roberts <nickrob@snap.net.nz>
parents: 65555
diff changeset
646 change each time your program stops (@pxref{Watch Expressions,,,
5bc62ce4d2f7 (GDB): Describe use of watch expressions.
Nick Roberts <nickrob@snap.net.nz>
parents: 65555
diff changeset
647 emacs, The extensible self-documenting text editor}).
5bc62ce4d2f7 (GDB): Describe use of watch expressions.
Nick Roberts <nickrob@snap.net.nz>
parents: 65555
diff changeset
648
5bc62ce4d2f7 (GDB): Describe use of watch expressions.
Nick Roberts <nickrob@snap.net.nz>
parents: 65555
diff changeset
649 If you are using text command mode, speedbar can show
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
650 you the current stack when the current buffer is the @file{*gdb*}
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
651 buffer. Usually, it will just report that there is no stack, but when
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
652 the application is stopped, the current stack will be shown.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
653
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
654 You can click on any stack element and gdb will move to that stack
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
655 level. You can then check variables local to that level at the GDB
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
656 prompt.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
657
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
658 @node Customizing, Extending, Minor Modes, Top
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
659 @comment node-name, next, previous, up
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
660 @chapter Customizing
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
661 @cindex customizing
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
662
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
663 Speedbar is highly customizable, with a plethora of control elements.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
664 Since speedbar is so visual and reduces so much information, this is an
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
665 important aspect of its behavior.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
666
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
667 In general, there are three custom groups you can use to quickly modify
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
668 speedbar's behavior.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
669
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
670 @table @code
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
671 @item speedbar
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
672 Basic speedbar behaviors.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
673 @item speedbar-vc
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
674 Customizations regarding version control handling.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
675 @item speedbar-faces
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
676 Customize speedbar's many colors and fonts.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
677 @end table
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
678
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
679 @menu
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
680 * Frames and Faces:: Visible behaviors.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
681 * Tag Hierarchy Methods:: Customizing how tags are displayed.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
682 * Version Control:: Adding new VC detection modes.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
683 * Hooks:: The many hooks you can use.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
684 @end menu
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
685
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
686 @node Frames and Faces, Tag Hierarchy Methods, Customizing, Customizing
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
687 @comment node-name, next, previous, up
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
688 @section Frames and Faces
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
689 @cindex faces
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
690 @cindex frame parameters
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
691
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
692 There are several faces speedbar generates to provide a consistent
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
693 color scheme across display types. You can customize these faces using
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
694 your favorite method. They are:
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
695
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
696 @table @asis
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
697 @cindex @code{speedbar-button-face}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
698 @item speedbar-button-face
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
699 Face used on expand/contract buttons.
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
700 @cindex @code{speedbar-file-face}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
701 @item speedbar-file-face
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
702 Face used on Files. Should also be used on non-directory like nodes.
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
703 @cindex @code{speedbar-directory-face}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
704 @item speedbar-directory-face
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
705 Face used for directories, or nodes which consist of groups of other nodes.
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
706 @cindex @code{speedbar-tag-face}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
707 @item speedbar-tag-face
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
708 Face used for tags in a file, or for leaf items.
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
709 @cindex @code{speedbar-selected-face}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
710 @item speedbar-selected-face
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
711 Face used to highlight the selected item. This would be the current
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
712 file being edited.
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
713 @cindex @code{speedbar-highlight-face}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
714 @item speedbar-highlight-face
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
715 Face used when the mouse passes over a button.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
716 @end table
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
717
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
718 You can also customize speedbar's initial frame parameters. How this is
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
719 accomplished is dependent on your platform being Emacs or XEmacs.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
720
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
721 @cindex @code{speedbar-frame-parameters}, Emacs
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
722 In Emacs, change the alist @code{speedbar-frame-parameters}. This
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
723 variable is used to set up initial details. Height is also
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
724 automatically added when speedbar is created, though you can override
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
725 it.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
726
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
727 @cindex @code{speedbar-frame-plist}, XEmacs
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
728 In XEmacs, change the plist @code{speedbar-frame-plist}. This is the
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
729 XEmacs way of doing the same thing.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
730
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
731 @node Tag Hierarchy Methods, Version Control, Frames and Faces, Customizing
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
732 @comment node-name, next, previous, up
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
733 @section Tag Hierarchy Methods
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
734 @cindex tag hierarchy
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
735 @cindex tag groups
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
736 @cindex tag sorting
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
737
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
738 When listing tags within a file, it is possible to get an annoyingly
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
739 long list of entries. Imenu (which generates the tag list in Emacs)
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
740 will group some classes of items automatically. Even here, however,
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
741 some tag groups can be quite large.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
742
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
743 @cindex @code{speedbar-tag-hierarchy-method}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
744 To solve this problem, tags can be grouped into logical units through a
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
745 hierarchy processor. The specific variable to use is
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
746 @code{speedbar-tag-hierarchy-method}. There are several methods that
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
747 can be applied in any order. They are:
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
748
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
749 @table @code
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
750 @cindex @code{speedbar-trim-words-tag-hierarchy}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
751 @item speedbar-trim-words-tag-hierarchy
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
752 Find a common prefix for all elements of a group, and trim it off.
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
753 @cindex @code{speedbar-prefix-group-tag-hierarchy}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
754 @item speedbar-prefix-group-tag-hierarchy
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
755 If a group is too large, place sets of tags into bins based on common
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
756 prefixes.
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
757 @cindex @code{speedbar-simple-group-tag-hierarchy}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
758 @item speedbar-simple-group-tag-hierarchy
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
759 Take all items in the top level list not in a group, and stick them into
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
760 a @samp{Tags} group.
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
761 @cindex @code{speedbar-sort-tag-hierarchy}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
762 @item speedbar-sort-tag-hierarchy
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
763 Sort all items, leaving groups on top.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
764 @end table
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
765
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
766 You can also add your own functions to reorganize tags as you see fit.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
767
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
768 Some other control variables are:
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
769
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
770 @table @code
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
771 @cindex @code{speedbar-tag-group-name-minimum-length}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
772 @item speedbar-tag-group-name-minimum-length
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
773 Default value: 4.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
774
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
775 The minimum length of a prefix group name before expanding. Thus, if
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
776 the @code{speedbar-tag-hierarchy-method} includes
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
777 @code{speedbar-prefix-group-tag-hierarchy} and one such group's common
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
778 characters is less than this number of characters, then the group name
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
779 will be changed to the form of:
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
780
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
781 @example
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
782 worda to wordb
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
783 @end example
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
784
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
785 instead of just
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
786
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
787 @example
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
788 word
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
789 @end example
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
790
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
791 This way we won't get silly looking listings.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
792
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
793 @cindex @code{speedbar-tag-split-minimum-length}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
794 @item speedbar-tag-split-minimum-length
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
795 Default value: 20.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
796
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
797 Minimum length before we stop trying to create sub-lists in tags.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
798 This is used by all tag-hierarchy methods that break large lists into
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
799 sub-lists.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
800
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
801 @cindex @code{speedbar-tag-regroup-maximum-length}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
802 @item speedbar-tag-regroup-maximum-length
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
803 Default value: 10.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
804
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
805 Maximum length of submenus that are regrouped.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
806 If the regrouping option is used, then if two or more short subgroups
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
807 are next to each other, then they are combined until this number of
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
808 items is reached.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
809 @end table
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
810
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
811 @node Version Control, Hooks, Tag Hierarchy Methods, Customizing
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
812 @comment node-name, next, previous, up
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
813 @section Version Control
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
814 @cindex version control
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
815 @cindex vc extensions
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
816
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
817 When using the file mode in speedbar, information regarding a version
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
818 control system adds small details to the display. If a file is in a
36154
b0a0856aa1c1 Minor cleanup.
Richard M. Stallman <rms@gnu.org>
parents: 34238
diff changeset
819 version control system, and is ``checked out'' or ``locked'' locally, an
b0a0856aa1c1 Minor cleanup.
Richard M. Stallman <rms@gnu.org>
parents: 34238
diff changeset
820 asterisk @samp{*} appears at the end of the file name. In addition,
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
821 the directory name for Version Control systems are left out of the
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
822 speedbar display.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
823
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
824 @cindex @code{speedbar-directory-unshown-regexp}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
825 You can easily add new version control systems into speedbar's detection
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
826 scheme. To make a directory ``disappear'' from the list, use the variable
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
827 @code{speedbar-directory-unshown-regexp}.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
828
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
829 @cindex @code{speedbar-vc-path-enable-hook}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
830 Next, you need to write entries for two hooks. The first is
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
831 @code{speedbar-vc-path-enable-hook} which will enable a VC check in the
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
832 current directory for the group of files being checked. Your hook
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
833 function should take one parameter (the directory to check) and return
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
834 @code{t} if your VC method is in control here.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
835
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
836 @cindex @code{speedbar-vc-in-control-hook}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
837 The second function is @code{speedbar-vc-in-control-hook}. This hook
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
838 takes two parameters, the @var{path} of the file to check, and the
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
839 @var{file} name. Return @code{t} if you want to have the asterisk
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
840 placed near this file.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
841
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
842 @cindex @code{speedbar-vc-indicator}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
843 Lastly, you can change the VC indicator using the variable
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
844 @code{speedbar-vc-indicator}, and specify a single character string.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
845
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
846 @node Hooks, , Version Control, Customizing
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
847 @comment node-name, next, previous, up
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
848 @section Hooks
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
849 @cindex hooks
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
850
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
851 There are several hooks in speedbar allowing custom behaviors to be
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
852 added. Available hooks are:
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
853
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
854 @table @code
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
855 @cindex @code{speedbar-visiting-file-hook}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
856 @item speedbar-visiting-file-hook
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
857 Hooks run when speedbar visits a file in the selected frame.
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
858 @cindex @code{speedbar-visiting-tag-hook}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
859 @item speedbar-visiting-tag-hook
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
860 Hooks run when speedbar visits a tag in the selected frame.
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
861 @cindex @code{speedbar-load-hook}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
862 @item speedbar-load-hook
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
863 Hooks run when speedbar is loaded.
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
864 @cindex @code{speedbar-reconfigure-keymaps-hook}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
865 @item speedbar-reconfigure-keymaps-hook
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
866 Hooks run when the keymaps are regenerated. Keymaps are reconfigured
39267
a8c0a02f6129 Spelling corrections.
Richard M. Stallman <rms@gnu.org>
parents: 38865
diff changeset
867 whenever modes change. This will let you add custom key bindings.
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
868 @cindex @code{speedbar-before-popup-hook}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
869 @item speedbar-before-popup-hook
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
870 Hooks called before popping up the speedbar frame.
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
871 New frames are often popped up when ``power clicking'' on an item to view
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
872 it.
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
873 @cindex @code{speedbar-before-delete-hook}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
874 @item speedbar-before-delete-hook
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
875 Hooks called before deleting or hiding the speedbar frame.
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
876 @cindex @code{speedbar-mode-hook}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
877 @item speedbar-mode-hook
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
878 Hooks called after creating a speedbar buffer.
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
879 @cindex @code{speedbar-timer-hook}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
880 @item speedbar-timer-hook
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
881 Hooks called after running the speedbar timer function.
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
882 @cindex @code{speedbar-scanner-reset-hook}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
883 @item speedbar-scanner-reset-hook
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
884 Hook called whenever generic scanners are reset.
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
885 Set this to implement your own scanning or rescan safe functions with
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
886 state data.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
887 @end table
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
888
77235
88224dc74061 Include GFDL.
Chong Yidong <cyd@stupidchicken.com>
parents: 75249
diff changeset
889 @node Extending, GNU Free Documentation License, Customizing, Top
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
890 @comment node-name, next, previous, up
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
891 @chapter Extending
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
892 @cindex extending
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
893
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
894 Speedbar can run different types of Major display modes such as Files
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
895 (@pxref{File Mode}), and Buffers (@pxref{Buffer Mode}). It can also manage
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
896 different minor display modes for use with buffers handling specialized
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
897 data.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
898
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
899 These major and minor display modes are handled through an extension
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
900 system which permits specialized keymaps and menu extensions, in
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
901 addition to a unique rendering function. You can also specify a wide
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
902 range of tagging functions. The default uses @code{imenu}, but new
33079
678eca93205c Speling &c.
Dave Love <fx@gnu.org>
parents: 32702
diff changeset
903 tagging methods can be easily added. In this chapter, you will
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
904 learn how to write your own major or minor display modes, and how to
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
905 create specialized tagging functions.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
906
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
907 @menu
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
908 * Minor Display Modes:: How to create a minor display mode.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
909 * Major Display Modes:: How to create a major display mode.
33079
678eca93205c Speling &c.
Dave Love <fx@gnu.org>
parents: 32702
diff changeset
910 * Tagging Extensions:: How to create your own tagging methods.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
911 * Creating a display:: How to insert buttons and hierarchies.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
912 @end menu
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
913
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
914 @node Minor Display Modes, Major Display Modes, Extending, Extending
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
915 @section Minor Display Modes
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
916 @cindex create minor display mode
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
917
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
918 A @dfn{minor display mode} is a mode useful when using a specific type of
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
919 buffer. This mode might not be useful for any other kind of data or
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
920 mode, or may just be more useful that a files or buffers based mode when
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
921 working with a specialized mode.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
922
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
923 Examples that already exist for speedbar include RMAIL, Info, and gdb.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
924 These modes display information specific to the major mode shown in the
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
925 attached frame.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
926
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
927 To enable a minor display mode in your favorite Major mode, follow these
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
928 steps. The string @samp{@var{name}} is the name of the major mode being
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
929 augmented with speedbar.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
930
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
931 @enumerate
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
932 @item
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
933 Create the keymap variable @code{@var{name}-speedbar-key-map}.
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
934
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
935 @item
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
936 Create a function, named whatever you like, which assigns values into your
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
937 keymap. Use this command to create the keymap before assigning
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
938 bindings:
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
939
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
940 @smallexample
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
941 (setq @var{name}-speedbar-key-map (speedbar-make-specialized-keymap))
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
942 @end smallexample
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
943
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
944 This function creates a special keymap for use in speedbar.
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
945
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
946 @item
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
947 Call your install function, or assign it to a hook like this:
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
948
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
949 @smallexample
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
950 (if (featurep 'speedbar)
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
951 (@var{name}-install-speedbar-variables)
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
952 (add-hook 'speedbar-load-hook '@var{name}-install-speedbar-variables))
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
953 @end smallexample
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
954
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
955 @item
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
956 Create an easymenu compatible vector named
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
957 @code{@var{name}-speedbar-menu-items}. This will be spliced into
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
958 speedbar's control menu.
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
959
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
960 @item
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
961 Create a function called @code{@var{name}-speedbar-buttons}. This function
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
962 should take one variable, which is the buffer for which it will create
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
963 buttons. At this time @code{(current-buffer)} will point to the
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
964 uncleared speedbar buffer.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
965 @end enumerate
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
966
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
967 When writing @code{@var{name}-speedbar-buttons}, the first thing you will
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
968 want to do is execute a check to see if you need to re-create your
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
969 display. If it needs to be cleared, you need to erase the speedbar
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
970 buffer yourself, and start drawing buttons. @xref{Creating a display}.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
971
33079
678eca93205c Speling &c.
Dave Love <fx@gnu.org>
parents: 32702
diff changeset
972 @node Major Display Modes, Tagging Extensions, Minor Display Modes, Extending
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
973 @section Major Display Modes
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
974 @cindex create major display mode
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
975
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
976 Creating a @dfn{Major Display Mode} for speedbar requires authoring a keymap,
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
977 an easy-menu segment, and writing several functions. These items can be
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
978 given any name, and are made the same way as in a minor display mode
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
979 (@pxref{Minor Display Modes}). Once this is done, these items need to be
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
980 registered.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
981
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
982 Because this setup activity may or may not have speedbar available when
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
983 it is being loaded, it is necessary to create an install function. This
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
984 function should create and initialize the keymap, and add your
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
985 expansions into the customization tables.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
986
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
987 @cindex @code{speedbar-make-specialized-keymap}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
988 When creating the keymap, use the function
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
989 @code{speedbar-make-specialized-keymap} instead of other keymap making
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
990 functions. This will provide you with the initial bindings needed.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
991 Some common speedbar functions you might want to bind are:
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
992
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
993 @table @code
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
994 @cindex @code{speedbar-edit-line}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
995 @item speedbar-edit-line
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
996 Edit the item on the current line.
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
997 @cindex @code{speedbar-expand-line}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
998 @item speedbar-expand-line
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
999 Expand the item under the cursor.
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
1000 With a numeric argument (@kbd{C-u}), flush cached data before expanding.
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
1001 @cindex @code{speedbar-contract-line}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1002 @item speedbar-contract-line
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1003 Contract the item under the cursor.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1004 @end table
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1005
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
1006 @cindex @code{speedbar-line-path}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1007 These function require that function @code{speedbar-line-path} be
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1008 correctly overloaded to work.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1009
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1010 Next, register your extension like this;
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1011
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1012 @example
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1013 (speedbar-add-expansion-list '("MyExtension"
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1014 MyExtension-speedbar-menu-items
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1015 MyExtension-speedbar-key-map
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1016 MyExtension-speedbar-buttons))
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1017 @end example
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1018
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1019 There are no limitations to the names you use.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1020
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1021 The first parameter is the string representing your display mode.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1022 The second parameter is a variable name containing an easymenu compatible
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1023 menu definition. This will be stuck in the middle of speedbar's menu.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1024 The third parameter is the variable name containing the keymap we
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1025 discussed earlier.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1026 The last parameter is a function which draws buttons for your mode.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1027 This function must take two parameters. The directory currently being
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1028 displayed, and the depth at which you should start rendering buttons.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1029 The function will then draw (starting at the current cursor position)
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1030 any buttons deemed necessary based on the input parameters.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1031 @xref{Creating a display}.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1032
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1033 Next, you need to register function overrides. This may look something
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1034 like this:
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1035
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1036 @example
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1037 (speedbar-add-mode-functions-list
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1038 '("MYEXTENSION"
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1039 (speedbar-item-info . MyExtension-speedbar-item-info)
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1040 (speedbar-line-path . MyExtension-speedbar-line-path)))
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1041 @end example
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1042
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1043 The first element in the list is the name of you extension. The second
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1044 is an alist of functions to overload. The function to overload is
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1045 first, followed by what you want called instead.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1046
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1047 For @code{speedbar-line-path} your function should take an optional DEPTH
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1048 parameter. This is the starting depth for heavily indented lines. If
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1049 it is not provided, you can derive it like this:
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1050
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1051 @example
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1052 (save-match-data
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1053 (if (not depth)
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1054 (progn
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1055 (beginning-of-line)
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1056 (looking-at "^\\([0-9]+\\):")
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1057 (setq depth (string-to-int (match-string 1)))))
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1058 @end example
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1059
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
1060 @noindent
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1061 where the depth is stored as invisible text at the beginning of each
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1062 line.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1063
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1064 The path returned should be the full path name of the file associated
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1065 with that line. If the cursor is on a tag, then the file containing
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1066 that tag should be returned. This is critical for built in file based
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1067 functions to work (meaning less code for you to write). If your display
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1068 does not deal in files, you do not need to overload this function.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1069
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
1070 @cindex @code{speedbar-item-info}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1071 The function @code{speedbar-item-info}, however, is very likely to need
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1072 overloading. This function takes no parameters and must derive a text
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1073 summary to display in the minibuffer.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1074
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1075 There are several helper functions you can use if you are going to use
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1076 built in tagging. These functions can be @code{or}ed since each one
57912
4ac46dccac25 Replace non-nil with non-@code{nil}.
Jan Djärv <jan.h.d@swipnet.se>
parents: 54836
diff changeset
1077 returns non-@code{nil} if it displays a message. They are:
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1078
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1079 @table @code
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
1080 @cindex @code{speedbar-item-info-file-helper}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1081 @item speedbar-item-info-file-helper
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
1082 This takes an optional @var{filename} parameter. You can derive your own
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1083 filename, or it will derive it using a (possibly overloaded) function
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1084 @code{speedbar-line-file}. It shows details about a file.
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
1085 @cindex @code{speedbar-item-info-tag-helper}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1086 @item speedbar-item-info-tag-helper
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1087 If the current line is a tag, then display information about that tag,
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
1088 such as its parent file, and location.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1089 @end table
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1090
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1091 Your custom function might look like this:
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1092
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
1093 @example
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1094 (defun MyExtension-item-info ()
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1095 "Display information about the current line."
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1096 (or (speedbar-item-info-tag-helper)
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1097 (message "Interesting detail.")))
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
1098 @end example
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1099
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1100 Once you have done all this, speedbar will show an entry in the
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
1101 @samp{Displays} menu declaring that your extension is available.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1102
33079
678eca93205c Speling &c.
Dave Love <fx@gnu.org>
parents: 32702
diff changeset
1103 @node Tagging Extensions, Creating a display, Major Display Modes, Extending
678eca93205c Speling &c.
Dave Love <fx@gnu.org>
parents: 32702
diff changeset
1104 @section Tagging Extensions
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1105
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1106 It is possible to create new methods for tagging files in speedbar.
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
1107 To do this, you need two basic functions, one function to fetch the
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
1108 tags from a buffer, the other to insert them below the filename.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1109
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1110 @defun my-fetch-dynamic-tags file
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
1111 Parse @var{file} for a list of tags. Return the list, or @code{t} if there was
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1112 an error.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1113 @end defun
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1114
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1115 The non-error return value can be anything, as long as it can be
33079
678eca93205c Speling &c.
Dave Love <fx@gnu.org>
parents: 32702
diff changeset
1116 inserted by its paired function:
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1117
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1118 @defun my-insert-tag-list level lst
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1119 Insert a list of tags @var{lst} started at indentation level
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1120 @var{level}. Creates buttons for each tag, and provides any other
33079
678eca93205c Speling &c.
Dave Love <fx@gnu.org>
parents: 32702
diff changeset
1121 display information required.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1122 @end defun
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1123
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
1124 @cindex @code{speedbar-create-tag-hierarchy}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1125 It is often useful to use @code{speedbar-create-tag-hierarchy} on your
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
1126 token list. See that function's documentation for details on what it
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1127 requires.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1128
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
1129 @cindex @code{speedbar-dynamic-tags-function-list}
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1130 Once these two functions are written, modify the variable
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1131 @code{speedbar-dynamic-tags-function-list} to include your parser at the
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1132 beginning, like this:
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1133
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1134 @example
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1135 (add-to-list 'speedbar-dynamic-tags-function-list
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1136 '(my-fetch-dynamic-tags . my-insert-tag-list))
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1137 @end example
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1138
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1139 If your parser is only good for a few types of files, make sure that it
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1140 is either a buffer local modification, or that the tag generator returns
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
1141 @code{t} for non valid buffers.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1142
33079
678eca93205c Speling &c.
Dave Love <fx@gnu.org>
parents: 32702
diff changeset
1143 @node Creating a display, , Tagging Extensions, Extending
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1144 @section Creating a display
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1145 @cindex creating a display
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1146
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1147 Rendering a display in speedbar is completely flexible. When your
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
1148 button function is called, see @ref{Minor Display Modes}, and @ref{Major
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1149 Display Modes}, you have control to @code{insert} anything you want.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1150
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1151 The conventions allow almost anything to be inserted, but several helper
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1152 functions are provided to make it easy to create the standardized
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1153 buttons.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1154
34238
17ee7879735a Fix double quotes.
Dave Love <fx@gnu.org>
parents: 34235
diff changeset
1155 To understand the built in functions, each `button' in speedbar consists
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1156 of four important pieces of data. The text to be displayed, token
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1157 data to be associated with the text, a function to call, and some face to
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1158 display it in.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1159
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1160 When a function is provided, then that text becomes mouse activated,
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1161 meaning the mouse will highlight the text.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1162
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1163 Additionally, for data which can form deep trees, each line is given a
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1164 depth which indicates how far down the tree it is. This information is
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1165 stored in invisible text at the beginning of each line, and is used by
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1166 the navigation commands.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1167
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
1168 @defun speedbar-insert-button text face mouse function &optional token prevline
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1169 This function inserts one button into the current location.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1170 @var{text} is the text to insert. @var{face} is the face in which it
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1171 will be displayed. @var{mouse} is the face to display over the text
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1172 when the mouse passes over it. @var{function} is called whenever the
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1173 user clicks on the text.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1174
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1175 The optional argument @var{token} is extra data to associated with the
57912
4ac46dccac25 Replace non-nil with non-@code{nil}.
Jan Djärv <jan.h.d@swipnet.se>
parents: 54836
diff changeset
1176 text. Lastly @var{prevline} should be non-@code{nil} if you want this line to
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1177 appear directly after the last button which was created instead of on
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1178 the next line.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1179 @end defun
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1180
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1181 @defun speedbar-make-tag-line exp-button-type exp-button-char exp-button-function exp-button-data tag-button tag-button-function tag-button-data tag-button-face depth
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1182
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1183 Create a tag line with @var{exp-button-type} for the small expansion
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1184 button. This is the button that expands or contracts a node (if
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
1185 applicable), and @var{exp-button-char} the character in it (@samp{+},
63670
9121d09d272a (Creating a display): Texinfo usage fix.
Juanma Barranquero <lekktu@gmail.com>
parents: 57912
diff changeset
1186 @samp{-}, @samp{?}, etc). @var{exp-button-function} is the function
63712
2189c56fe586 (Creating a display): Texinfo usage fixes.
Richard M. Stallman <rms@gnu.org>
parents: 63670
diff changeset
1187 to call if it's clicked on. Button types are @code{bracket},
2189c56fe586 (Creating a display): Texinfo usage fixes.
Richard M. Stallman <rms@gnu.org>
parents: 63670
diff changeset
1188 @code{angle}, @code{curly}, @code{expandtag}, @code{statictag}, and
63670
9121d09d272a (Creating a display): Texinfo usage fix.
Juanma Barranquero <lekktu@gmail.com>
parents: 57912
diff changeset
1189 @code{nil}. @var{exp-button-data} is extra data attached to the text
9121d09d272a (Creating a display): Texinfo usage fix.
Juanma Barranquero <lekktu@gmail.com>
parents: 57912
diff changeset
1190 forming the expansion button.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1191
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1192 Next, @var{tag-button} is the text of the tag.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1193 @var{tag-button-function} is the function to call if clicked on, and
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1194 @var{tag-button-data} is the data to attach to the text field (such a
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1195 tag positioning, etc). @var{tag-button-face} is a face used for this
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1196 type of tag.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1197
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1198 Lastly, @var{depth} shows the depth of expansion.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1199
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1200 This function assumes that the cursor is in the speedbar window at the
33079
678eca93205c Speling &c.
Dave Love <fx@gnu.org>
parents: 32702
diff changeset
1201 position to insert a new item, and that the new item will end with a CR.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1202 @end defun
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1203
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1204 @defun speedbar-insert-generic-list level list expand-fun find-fun
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1205
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
1206 At @var{level}, (the current indentation level desired) insert a generic
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1207 multi-level alist @var{list}. Associations with lists get @samp{@{+@}}
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1208 tags (to expand into more nodes) and those with positions or other data
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
1209 just get a @samp{>} as the indicator. @samp{@{+@}} buttons will have the
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1210 function @var{expand-fun} and the token is the @code{cdr} list. The
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1211 token name will have the function @var{find-fun} and not token.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1212
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1213 Each element of the list can have one of these forms:
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
1214
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1215 @table @code
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
1216 @item (@var{name} . marker-or-number)
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
1217 One tag at this level.
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
1218 @item (@var{name} (@var{name} . marker-or-number) (@var{name} . marker-or-number) ... )
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
1219 One group of tags.
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
1220 @item (@var{name} marker-or-number (@var{name} . marker-or-number) ... )
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
1221 One Group of tags where the group has a starting position.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1222 @end table
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1223
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1224 When you use @code{speedbar-insert-generic-list}, there are some
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1225 variables you can set buffer-locally to change the behavior. The most
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1226 obvious is @code{speedbar-tag-hierarchy-method}.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1227 @xref{Tag Hierarchy Methods}.
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1228
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1229 @defvar speedbar-generic-list-group-expand-button-type
32702
788c194fbcd1 Correct typos, fix markup, add index entries.
Eli Zaretskii <eliz@gnu.org>
parents: 32674
diff changeset
1230 This is the button type used for groups of tags, whether expanded
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1231 or added in via a hierarchy method. Two good values are
63712
2189c56fe586 (Creating a display): Texinfo usage fixes.
Richard M. Stallman <rms@gnu.org>
parents: 63670
diff changeset
1232 @code{curly} and @code{expandtag}. Curly is the default button, and
2189c56fe586 (Creating a display): Texinfo usage fixes.
Richard M. Stallman <rms@gnu.org>
parents: 63670
diff changeset
1233 @code{expandtag} is useful if the groups also has a position.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1234 @end defvar
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1235
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1236 @defvar speedbar-generic-list-tag-button-type
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1237 This is the button type used for a single tag.
63712
2189c56fe586 (Creating a display): Texinfo usage fixes.
Richard M. Stallman <rms@gnu.org>
parents: 63670
diff changeset
1238 Two good values are @code{nil} and @code{statictag}.
2189c56fe586 (Creating a display): Texinfo usage fixes.
Richard M. Stallman <rms@gnu.org>
parents: 63670
diff changeset
1239 @code{nil} is the default, and @code{statictag} has the same width as
2189c56fe586 (Creating a display): Texinfo usage fixes.
Richard M. Stallman <rms@gnu.org>
parents: 63670
diff changeset
1240 @code{expandtag}.
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1241 @end defvar
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1242
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1243 @end defun
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1244
77235
88224dc74061 Include GFDL.
Chong Yidong <cyd@stupidchicken.com>
parents: 75249
diff changeset
1245 @node GNU Free Documentation License, Index, Extending, Top
88224dc74061 Include GFDL.
Chong Yidong <cyd@stupidchicken.com>
parents: 75249
diff changeset
1246 @appendix GNU Free Documentation License
88224dc74061 Include GFDL.
Chong Yidong <cyd@stupidchicken.com>
parents: 75249
diff changeset
1247 @include doclicense.texi
88224dc74061 Include GFDL.
Chong Yidong <cyd@stupidchicken.com>
parents: 75249
diff changeset
1248
88224dc74061 Include GFDL.
Chong Yidong <cyd@stupidchicken.com>
parents: 75249
diff changeset
1249
88224dc74061 Include GFDL.
Chong Yidong <cyd@stupidchicken.com>
parents: 75249
diff changeset
1250 @node Index, , GNU Free Documentation License, Top
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1251 @comment node-name, next, previous, up
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1252 @unnumbered Concept Index
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1253 @printindex cp
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1254
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1255 @bye
39267
a8c0a02f6129 Spelling corrections.
Richard M. Stallman <rms@gnu.org>
parents: 38865
diff changeset
1256 @c LocalWords: speedbar's xref slowbar kbd subsubsection
32674
4cbd3d907ee5 First Edition.
Eric M. Ludlam <zappo@gnu.org>
parents:
diff changeset
1257 @c LocalWords: keybindings
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 47737
diff changeset
1258
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 47737
diff changeset
1259 @ignore
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 47737
diff changeset
1260 arch-tag: e1fc85f0-1eeb-489f-a8d4-a2bfe711fa02
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 47737
diff changeset
1261 @end ignore