annotate doc/misc/idlwave.texi @ 87961:868797e785eb

(Fclrhash): Return TABLE.
author Thien-Thi Nguyen <ttn@gnuvola.org>
date Fri, 25 Jan 2008 10:00:47 +0000
parents 5d58981e6690
children eafbd7a5c9be
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
84302
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1 \input texinfo @c -*-texinfo-*-
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2 @c %**start of header
84329
3d431f1997d8 (setfilename): Go up one more level to ../../info.
Glenn Morris <rgm@gnu.org>
parents: 84302
diff changeset
3 @setfilename ../../info/idlwave
84302
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4 @settitle IDLWAVE User Manual
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
5 @dircategory Emacs
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
6 @direntry
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
7 * IDLWAVE: (idlwave). Major mode and shell for IDL files.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
8 @end direntry
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
9 @synindex ky cp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
10 @syncodeindex vr cp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
11 @syncodeindex fn cp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
12 @set VERSION 6.1
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
13 @set EDITION 6.1
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
14 @set IDLVERSION 6.3
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
15 @set NSYSROUTINES 4346
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
16 @set DATE April, 2007
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
17 @set AUTHOR J.D. Smith & Carsten Dominik
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
18 @set MAINTAINER J.D. Smith
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
19 @c %**end of header
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
20 @finalout
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
21
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
22 @ifinfo
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
23 This file documents IDLWAVE, a major mode for editing IDL files with
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
24 Emacs, and interacting with an IDL shell run as a subprocess.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
25
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
26 This is edition @value{EDITION} of the IDLWAVE User Manual for IDLWAVE
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
27 @value{VERSION}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
28
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
29 Copyright @copyright{} 1999, 2000, 2001, 2002, 2003, 2004, 2005,
87903
5d58981e6690 Merge from emacs--rel--22
Miles Bader <miles@gnu.org>
parents: 84329
diff changeset
30 2006, 2007, 2008 Free Software Foundation, Inc.
84302
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
31
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
32 Permission is granted to copy, distribute and/or modify this document
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
33 under the terms of the GNU Free Documentation License, Version 1.2 or
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
34 any later version published by the Free Software Foundation; with no
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
35 Invariant Sections, with the Front-Cover texts being ``A GNU
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
36 Manual'', and with the Back-Cover Texts as in (a) below. A copy of the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
37 license is included in the section entitled ``GNU Free Documentation
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
38 License'' in the Emacs manual.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
39
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
40 (a) The FSF's Back-Cover Text is: ``You have freedom to copy and modify
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
41 this GNU Manual, like GNU software. Copies published by the Free
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
42 Software Foundation raise funds for GNU development.''
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
43
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
44 This document is part of a collection distributed under the GNU Free
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
45 Documentation License. If you want to distribute this document
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
46 separately from the collection, you can do so by adding a copy of the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
47 license to the document, as described in section 6 of the license.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
48 @end ifinfo
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
49
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
50 @titlepage
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
51 @title IDLWAVE User Manual
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
52 @subtitle Emacs major mode and shell for IDL
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
53 @subtitle Edition @value{EDITION}, @value{DATE}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
54
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
55 @author by J.D. Smith & Carsten Dominik
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
56 @page
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
57 This is edition @value{EDITION} of the @cite{IDLWAVE User Manual} for
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
58 IDLWAVE version @value{VERSION}, @value{DATE}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
59 @sp 2
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
60 Copyright @copyright{} 1999, 2000, 2001, 2002, 2003, 2004, 2005,
87903
5d58981e6690 Merge from emacs--rel--22
Miles Bader <miles@gnu.org>
parents: 84329
diff changeset
61 2006, 2007, 2008 Free Software Foundation, Inc.
84302
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
62 @sp 2
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
63 @cindex Copyright, of IDLWAVE
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
64 Permission is granted to copy, distribute and/or modify this document
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
65 under the terms of the GNU Free Documentation License, Version 1.2 or
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
66 any later version published by the Free Software Foundation; with no
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
67 Invariant Sections, with the Front-Cover texts being ``A GNU
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
68 Manual'', and with the Back-Cover Texts as in (a) below. A copy of the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
69 license is included in the section entitled ``GNU Free Documentation
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
70 License'' in the Emacs manual.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
71
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
72 (a) The FSF's Back-Cover Text is: ``You have freedom to copy and modify
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
73 this GNU Manual, like GNU software. Copies published by the Free
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
74 Software Foundation raise funds for GNU development.''
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
75
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
76 This document is part of a collection distributed under the GNU Free
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
77 Documentation License. If you want to distribute this document
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
78 separately from the collection, you can do so by adding a copy of the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
79 license to the document, as described in section 6 of the license.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
80 @end titlepage
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
81 @contents
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
82
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
83 @page
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
84
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
85 @ifnottex
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
86
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
87 @node Top, Introduction, (dir), (dir)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
88
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
89 IDLWAVE is a package which supports editing source code written in the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
90 Interactive Data Language (IDL), and running IDL as an inferior shell.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
91
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
92 @end ifnottex
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
93
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
94 @menu
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
95 * Introduction:: What IDLWAVE is, and what it is not
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
96 * IDLWAVE in a Nutshell:: One page quick-start guide
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
97 * Getting Started:: Tutorial
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
98 * The IDLWAVE Major Mode:: The mode for editing IDL programs
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
99 * The IDLWAVE Shell:: The mode for running IDL as an inferior program
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
100 * Acknowledgements:: Who did what
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
101 * Sources of Routine Info:: How does IDLWAVE know about routine XYZ
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
102 * HTML Help Browser Tips::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
103 * Configuration Examples:: The user is king
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
104 * Windows and MacOS:: What still works, and how
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
105 * Troubleshooting:: When good computers turn bad
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
106 * GNU Free Documentation License:: The license for this documentation.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
107 * Index:: Fast access
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
108
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
109 @detailmenu
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
110 --- The Detailed Node Listing ---
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
111
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
112 Getting Started (Tutorial)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
113
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
114 * Lesson I -- Development Cycle::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
115 * Lesson II -- Customization::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
116 * Lesson III -- User Catalog::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
117
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
118 The IDLWAVE Major Mode
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
119
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
120 * Code Formatting:: Making code look nice
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
121 * Routine Info:: Calling Sequence and Keyword List
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
122 * Online Help:: One key press from source to help
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
123 * Completion:: Completing routine names and Keywords
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
124 * Routine Source:: Finding routines, the easy way
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
125 * Resolving Routines:: Force the Shell to compile a routine
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
126 * Code Templates:: Frequent code constructs
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
127 * Abbreviations:: Abbreviations for common commands
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
128 * Actions:: Changing case, Padding, End checking
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
129 * Doc Header:: Inserting a standard header
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
130 * Motion Commands:: Moving through the structure of a program
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
131 * Misc Options:: Things that fit nowhere else
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
132
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
133 Code Formatting
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
134
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
135 * Code Indentation:: Reflecting the logical structure
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
136 * Continued Statement Indentation::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
137 * Comment Indentation:: Special indentation for comment lines
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
138 * Continuation Lines:: Splitting statements over lines
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
139 * Syntax Highlighting:: Font-lock support
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
140 * Octals and Highlighting:: Why "123 causes problems
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
141
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
142 Online Help
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
143
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
144 * Help with HTML Documentation::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
145 * Help with Source::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
146
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
147 Completion
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
148
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
149 * Case of Completed Words:: CaseOFcomPletedWords
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
150 * Object Method Completion and Class Ambiguity:: obj->Method, what?
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
151 * Object Method Completion in the Shell::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
152 * Class and Keyword Inheritance:: obj->Method, _EXTRA=e
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
153 * Structure Tag Completion:: Completing state.Tag
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
154
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
155 Actions
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
156
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
157 * Block Boundary Check:: Is the END statement correct?
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
158 * Padding Operators:: Enforcing space around `=' etc
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
159 * Case Changes:: Enforcing upper case keywords
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
160
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
161 The IDLWAVE Shell
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
162
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
163 * Starting the Shell:: How to launch IDL as a subprocess
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
164 * Using the Shell:: Interactively working with the Shell
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
165 * Commands Sent to the Shell::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
166 * Debugging IDL Programs::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
167 * Examining Variables::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
168 * Custom Expression Examination::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
169
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
170 Debugging IDL Programs
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
171
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
172 * A Tale of Two Modes::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
173 * Debug Key Bindings::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
174 * Breakpoints and Stepping::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
175 * Compiling Programs::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
176 * Walking the Calling Stack::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
177 * Electric Debug Mode::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
178
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
179 Sources of Routine Info
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
180
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
181 * Routine Definitions:: Where IDL Routines are defined.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
182 * Routine Information Sources:: So how does IDLWAVE know about...
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
183 * Catalogs::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
184 * Load-Path Shadows:: Routines defined in several places
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
185 * Documentation Scan:: Scanning the IDL Manuals
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
186
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
187 Catalogs
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
188
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
189 * Library Catalogs::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
190 * User Catalog::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
191
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
192 @end detailmenu
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
193 @end menu
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
194
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
195 @node Introduction, IDLWAVE in a Nutshell, Top, Top
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
196 @chapter Introduction
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
197 @cindex Introduction
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
198 @cindex CORBA (Common Object Request Broker Architecture)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
199 @cindex Interface Definition Language
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
200 @cindex Interactive Data Language
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
201 @cindex cc-mode.el
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
202 @cindex @file{idl.el}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
203 @cindex @file{idl-shell.el}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
204 @cindex Feature overview
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
205
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
206 IDLWAVE is a package which supports editing source files written in
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
207 the Interactive Data Language (IDL), and running IDL as an inferior shell@footnote{IDLWAVE can also be used
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
208 for editing source files for the related WAVE/CL language, but with only
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
209 limited support.}. It is a feature-rich replacement for the IDLDE
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
210 development environment included with IDL, and uses the full power of
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
211 Emacs to make editing and running IDL programs easier, quicker, and more
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
212 structured.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
213
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
214 IDLWAVE consists of two main parts: a major mode for editing IDL
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
215 source files (@code{idlwave-mode}) and a mode for running the IDL
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
216 program as an inferior shell (@code{idlwave-shell-mode}). Although
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
217 one mode can be used without the other, both work together closely to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
218 form a complete development environment. Here is a brief summary of
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
219 what IDLWAVE does:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
220
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
221 @itemize @bullet
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
222 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
223 Smart code indentation and automatic-formatting.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
224 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
225 Three level syntax highlighting support.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
226 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
227 Context-sensitive display of calling sequences and keywords for more
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
228 than 1000 native IDL routines, extendible to any additional number of
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
229 local routines, and already available with many pre-scanned libraries.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
230 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
231 Fast, context-sensitive online HTML help, or source-header help for
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
232 undocumented routines.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
233 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
234 Context sensitive completion of routine names, keywords, system
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
235 variables, class names and much more.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
236 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
237 Easy insertion of code templates and abbreviations of common constructs.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
238 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
239 Automatic corrections to enforce a variety of customizable coding
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
240 standards.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
241 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
242 Integrity checks and auto-termination of logical blocks.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
243 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
244 Routine name space conflict search with likelihood-of-use ranking.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
245 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
246 Support for @file{imenu} (Emacs) and @file{func-menu} (XEmacs).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
247 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
248 Documentation support.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
249 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
250 Running IDL as an inferior Shell with history search, command line
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
251 editing and all the completion and routine info capabilities present in
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
252 IDL source buffers.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
253 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
254 Full handling of debugging with breakpoints, with interactive setting
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
255 of break conditions, and easy stepping through code.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
256 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
257 Compilation, execution and interactive single-keystroke debugging of
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
258 programs directly from the source buffer.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
259 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
260 Quick, source-guided navigation of the calling stack, with variable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
261 inspection, etc.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
262 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
263 Examining variables and expressions with a mouse click.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
264 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
265 And much, much more...
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
266 @end itemize
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
267
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
268 @ifnottex
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
269 @cindex Screenshots
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
270 Here are a number of screenshots showing IDLWAVE in action:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
271
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
272 @itemize @bullet
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
273 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
274 @uref{http://idlwave.org/screenshots/emacs_21_nav.gif,An IDLWAVE buffer}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
275 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
276 @uref{http://idlwave.org/screenshots/emacs_21_keys.gif,A keyword being completed}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
277 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
278 @uref{http://idlwave.org/screenshots/emacs_21_help.gif,Online help text.}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
279 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
280 @uref{http://idlwave.org/screenshots/emacs_21_ri.gif,Routine information displayed}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
281 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
282 @uref{http://idlwave.org/screenshots/emacs_21_bp.gif,Debugging code
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
283 stopped at a breakpoint}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
284 @end itemize
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
285 @end ifnottex
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
286
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
287 IDLWAVE is the distant successor to the @file{idl.el} and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
288 @file{idl-shell.el} files written by Chris Chase. The modes and files
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
289 had to be renamed because of a name space conflict with CORBA's
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
290 @code{idl-mode}, defined in Emacs in the file @file{cc-mode.el}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
291
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
292 In this manual, each section ends with a list of related user options.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
293 Don't be confused by the sheer number of options available --- in most
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
294 cases the default settings are just fine. The variables are listed here
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
295 to make sure you know where to look if you want to change anything. For
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
296 a full description of what a particular variable does and how to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
297 configure it, see the documentation string of that variable (available
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
298 with @kbd{C-h v}). Some configuration examples are also given in the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
299 appendix.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
300
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
301 @node IDLWAVE in a Nutshell, Getting Started, Introduction, Top
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
302 @chapter IDLWAVE in a Nutshell
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
303 @cindex Summary of important commands
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
304 @cindex IDLWAVE in a Nutshell
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
305 @cindex Nutshell, IDLWAVE in a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
306
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
307 @subheading Editing IDL Programs
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
308
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
309 @multitable @columnfractions .15 .85
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
310 @item @key{TAB}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
311 @tab Indent the current line relative to context.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
312 @item @kbd{C-M-\}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
313 @tab Re-indent all lines in the current region.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
314 @item @kbd{C-M-q}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
315 @tab Re-indent all lines in the current routine.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
316 @item @kbd{C-u @key{TAB}}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
317 @tab Re-indent all lines in the current statement.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
318 @item @kbd{M-@key{RET}}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
319 @tab Start a continuation line, splitting the current line at point.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
320 @item @kbd{M-;}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
321 @tab Start new comment at line beginning or after code, or (un)comment
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
322 highlighted region.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
323 @item @kbd{M-q}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
324 @tab Fill the current comment paragraph.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
325 @item @kbd{C-c ?}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
326 @tab Display calling sequence and keywords for the procedure or function call
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
327 at point.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
328 @item @kbd{M-?}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
329 @tab Load context sensitive online help for nearby routine, keyword, etc.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
330 @item @kbd{M-@key{TAB}}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
331 @tab Complete a procedure name, function name or keyword in the buffer.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
332 @item @kbd{C-c C-i}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
333 @tab Update IDLWAVE's knowledge about functions and procedures.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
334 @item @kbd{C-c C-v}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
335 @tab Visit the source code of a procedure/function.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
336 @item @kbd{C-u C-c C-v}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
337 @tab Visit the source code of a procedure/function in this buffer.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
338 @item @kbd{C-c C-h}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
339 @tab Insert a standard documentation header.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
340 @item @kbd{C-c @key{RET}}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
341 @tab Insert a new timestamp and history item in the documentation header.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
342 @end multitable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
343
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
344 @subheading Running the IDLWAVE Shell, Debugging Programs
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
345
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
346 @multitable @columnfractions .15 .85
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
347 @item @kbd{C-c C-s}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
348 @tab Start IDL as a subprocess and/or switch to the shell buffer.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
349 @item @key{Up}, @kbd{M-p}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
350 @tab Cycle back through IDL command history.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
351 @item @key{Down},@kbd{M-n}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
352 @tab Cycle forward.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
353 @item @kbd{@key{TAB}}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
354 @tab Complete a procedure name, function name or keyword in the shell buffer.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
355 @item @kbd{C-c C-d C-c}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
356 @tab Save and compile the source file in the current buffer.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
357 @item @kbd{C-c C-d C-e}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
358 @tab Compile and run the current region.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
359 @item @kbd{C-c C-d C-x}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
360 @tab Go to next syntax error.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
361 @item @kbd{C-c C-d C-v}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
362 @tab Switch to electric debug mode.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
363 @item @kbd{C-c C-d C-b}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
364 @tab Set a breakpoint at the nearest viable source line.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
365 @item @kbd{C-c C-d C-d}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
366 @tab Clear the nearest breakpoint.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
367 @item @kbd{C-c C-d [}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
368 @tab Go to the previous breakpoint.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
369 @item @kbd{C-c C-d ]}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
370 @tab Go to the next breakpoint.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
371 @item @kbd{C-c C-d C-p}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
372 @tab Print the value of the expression near point in IDL.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
373 @end multitable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
374
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
375 @subheading Commonly used Settings in @file{.emacs}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
376 @lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
377 ;; Change the indentation preferences
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
378 ;; Start autoloading routine info after 2 idle seconds
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
379 (setq idlwave-init-rinfo-when-idle-after 2)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
380 ;; Pad operators with spaces
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
381 (setq idlwave-do-actions t
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
382 idlwave-surround-by-blank t)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
383 ;; Syntax Highlighting
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
384 (add-hook 'idlwave-mode-hook 'turn-on-font-lock)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
385 ;; Automatically start the shell when needed
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
386 (setq idlwave-shell-automatic-start t)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
387 ;; Bind debugging commands with CONTROL and SHIFT modifiers
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
388 (setq idlwave-shell-debug-modifiers '(control shift))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
389 @end lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
390
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
391 @html
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
392 <A NAME="TUTORIAL"></A>
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
393 @end html
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
394
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
395 @node Getting Started, The IDLWAVE Major Mode, IDLWAVE in a Nutshell, Top
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
396 @chapter Getting Started (Tutorial)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
397 @cindex Quick-Start
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
398 @cindex Tutorial
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
399 @cindex Getting Started
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
400
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
401 @menu
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
402 * Lesson I -- Development Cycle::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
403 * Lesson II -- Customization::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
404 * Lesson III -- User Catalog::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
405 @end menu
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
406
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
407 @node Lesson I -- Development Cycle, Lesson II -- Customization, Getting Started, Getting Started
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
408 @section Lesson I: Development Cycle
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
409
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
410 The purpose of this tutorial is to guide you through a very basic
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
411 development cycle using IDLWAVE. We will paste a simple program into
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
412 a buffer and use the shell to compile, debug and run it. On the way
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
413 we will use many of the important IDLWAVE commands. Note, however,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
414 that IDLWAVE has many more capabilities than covered here, which can
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
415 be discovered by reading the entire manual, or hovering over the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
416 shoulder of your nearest IDLWAVE guru for a few days.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
417
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
418 It is assumed that you have access to Emacs or XEmacs with the full
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
419 IDLWAVE package including online help. We also assume that you are
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
420 familiar with Emacs and can read the nomenclature of key presses in
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
421 Emacs (in particular, @kbd{C} stands for @key{CONTROL} and @kbd{M} for
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
422 @key{META} (often the @key{ALT} key carries this functionality)).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
423
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
424 Open a new source file by typing:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
425
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
426 @example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
427 @kbd{C-x C-f tutorial.pro @key{RET}}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
428 @end example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
429
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
430 A buffer for this file will pop up, and it should be in IDLWAVE mode,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
431 indicated in the mode line just below the editing window. Also, the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
432 menu bar should contain @samp{IDLWAVE}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
433
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
434 Now cut-and-paste the following code, also available as
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
435 @file{tutorial.pro} in the IDLWAVE distribution.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
436
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
437 @example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
438 function daynr,d,m,y
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
439 ;; compute a sequence number for a date
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
440 ;; works 1901-2099.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
441 if y lt 100 then y = y+1900
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
442 if m le 2 then delta = 1 else delta = 0
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
443 m1 = m + delta*12 + 1
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
444 y1 = y * delta
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
445 return, d + floor(m1*30.6)+floor(y1*365.25)+5
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
446 end
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
447
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
448 function weekday,day,month,year
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
449 ;; compute weekday number for date
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
450 nr = daynr(day,month,year)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
451 return, nr mod 7
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
452 end
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
453
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
454 pro plot_wday,day,month
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
455 ;; Plot the weekday of a date in the first 10 years of this century.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
456 years = 2000,+indgen(10)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
457 wdays = intarr(10)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
458 for i=0,n_elements(wdays)-1 do begin
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
459 wdays[i] = weekday(day,month,years[i])
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
460 end
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
461 plot,years,wdays,YS=2,YT="Wday (0=Sunday)"
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
462 end
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
463 @end example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
464
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
465 The indentation probably looks funny, since it's different from the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
466 settings you use, so use the @key{TAB} key in each line to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
467 automatically line it up (or, more quickly, @emph{select} the entire
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
468 buffer with @kbd{C-x h}, and indent the whole region with
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
469 @kbd{C-M-\}). Notice how different syntactical elements are
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
470 highlighted in different colors, if you have set up support for
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
471 font-lock.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
472
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
473 Let's check out two particular editing features of IDLWAVE. Place the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
474 cursor after the @code{end} statement of the @code{for} loop and press
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
475 @key{SPC}. IDLWAVE blinks back to the beginning of the block and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
476 changes the generic @code{end} to the specific @code{endfor}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
477 automatically (as long as the variable @code{idlwave-expand-generic-end}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
478 is turned on --- @pxref{Lesson II -- Customization}). Now place the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
479 cursor in any line you would like to split and press @kbd{M-@key{RET}}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
480 The line is split at the cursor position, with the continuation @samp{$}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
481 and indentation all taken care of. Use @kbd{C-/} to undo the last
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
482 change.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
483
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
484 The procedure @code{plot_wday} is supposed to plot the day of the week
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
485 of a given date for the first 10 years of the 21st century. As in
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
486 most code, there are a few bugs, which we are going to use IDLWAVE to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
487 help us fix.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
488
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
489 First, let's launch the IDLWAVE shell. You do this with the command
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
490 @kbd{C-c C-s}. The Emacs window will split or another window will popup
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
491 to display IDL running in a shell interaction buffer. Type a few
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
492 commands like @code{print,!PI} to convince yourself that you can work
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
493 there just as well as in a terminal, or the IDLDE. Use the arrow keys
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
494 to cycle through your command history. Are we having fun now?
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
495
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
496 Now go back to the source window and type @kbd{C-c C-d C-c} to compile
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
497 the program. If you watch the shell buffer, you see that IDLWAVE types
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
498 @samp{.run "tutorial.pro"} for you. But the compilation fails because
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
499 there is a comma in the line @samp{years=...}. The line with the error
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
500 is highlighted and the cursor positioned at the error, so remove the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
501 comma (you should only need to hit @kbd{Delete}!). Compile again, using
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
502 the same keystrokes as before. Notice that the file is automatically
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
503 saved for you. This time everything should work fine, and you should
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
504 see the three routines compile.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
505
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
506 Now we want to use the command to plot the day of the week on January
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
507 1st. We could type the full command ourselves, but why do that? Go
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
508 back to the shell window, type @samp{plot_} and hit @key{TAB}. After
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
509 a bit of a delay (while IDLWAVE initializes its routine info database,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
510 if necessary), the window will split to show all procedures it knows
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
511 starting with that string, and @w{@code{plot_wday}} should be one of
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
512 them. Saving the buffer alerted IDLWAVE about this new routine.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
513 Click with the middle mouse button on @code{plot_wday} and it will be
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
514 copied to the shell buffer, or if you prefer, add @samp{w} to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
515 @samp{plot_} to make it unambiguous (depending on what other routines
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
516 starting with @samp{plot_} you have installed on your system), hit
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
517 @key{TAB} again, and the full routine name will be completed. Now
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
518 provide the two arguments:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
519
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
520 @example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
521 plot_wday,1,1
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
522 @end example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
523
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
524 @noindent and press @key{RET}. This fails with an error message telling
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
525 you the @code{YT} keyword to plot is ambiguous. What are the allowed
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
526 keywords again? Go back to the source window and put the cursor into
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
527 the `plot' line and press @kbd{C-c ?}. This shows the routine info
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
528 window for the plot routine, which contains a list of keywords, along
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
529 with the argument list. Oh, we wanted @code{YTITLE}. Fix that up.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
530 Recompile with @kbd{C-c C-d C-c}. Jump back into the shell with
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
531 @kbd{C-c C-s}, press the @key{UP} arrow to recall the previous command
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
532 and execute again.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
533
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
534 This time we get a plot, but it is pretty ugly --- the points are all
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
535 connected with a line. Hmm, isn't there a way for @code{plot} to use
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
536 symbols instead? What was that keyword? Position the cursor on the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
537 plot line after a comma (where you'd normally type a keyword), and hit
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
538 @kbd{M-@key{Tab}}. A long list of plot's keywords appears. Aha,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
539 there it is, @code{PSYM}. Middle click to insert it. An @samp{=}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
540 sign is included for you too. Now what were the values of @code{PSYM}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
541 supposed to be? With the cursor on or after the keyword, press
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
542 @kbd{M-?} for online help (alternatively, you could have right clicked
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
543 on the colored keyword itself in the completion list). A browser will
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
544 pop up showing the HTML documentation for the @code{PYSM} keyword.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
545 OK, let's use diamonds=4. Fix this, recompile (you know the command
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
546 by now: @kbd{C-c C-d C-c}), go back to the shell (if it's vanished,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
547 you know what to do: @kbd{C-c C-s}) and execute again. Now things
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
548 look pretty good.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
549
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
550 Let's try a different day --- how about April fool's day?
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
551
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
552 @example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
553 plot_wday,1,4
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
554 @end example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
555
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
556 Oops, this looks very wrong. All April Fool's days cannot be Fridays!
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
557 We've got a bug in the program, perhaps in the @code{daynr} function.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
558 Let's put a breakpoint on the last line there. Position the cursor on
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
559 the @samp{return, d+...} line and press @kbd{C-c C-d C-b}. IDL sets a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
560 breakpoint (as you see in the shell window), and the break line is
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
561 indicated. Back to the shell buffer, re-execute the previous command.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
562 IDL stops at the line with the breakpoint. Now hold down the SHIFT
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
563 key and click with the middle mouse button on a few variables there:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
564 @samp{d}, @samp{y}, @samp{m}, @samp{y1}, etc. Maybe @code{d} isn't
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
565 the correct type. CONTROL-SHIFT middle-click on it for help. Well,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
566 it's an integer, so that's not the problem. Aha, @samp{y1} is zero,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
567 but it should be the year, depending on delta. Shift click
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
568 @samp{delta} to see that it's 0. Below, we see the offending line:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
569 @samp{y1=y*delta...} the multiplication should have been a minus sign!
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
570 Hit @kbd{q} to exit the debugging mode, and fix the line to read:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
571
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
572 @example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
573 y1 = y - delta
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
574 @end example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
575
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
576 Now remove all breakpoints: @kbd{C-c C-d C-a}. Recompile and rerun the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
577 command. Everything should now work fine. How about those leap years?
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
578 Change the code to plot 100 years and see that every 28 years, the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
579 sequence of weekdays repeats.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
580
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
581 @node Lesson II -- Customization, Lesson III -- User Catalog, Lesson I -- Development Cycle, Getting Started
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
582 @section Lesson II: Customization
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
583
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
584 Emacs is probably the most customizable piece of software ever written,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
585 and it would be a shame if you did not make use of this to adapt IDLWAVE
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
586 to your own preferences. Customizing Emacs or IDLWAVE is accomplished
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
587 by setting Lisp variables in the @file{.emacs} file in your home
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
588 directory --- but do not be dismayed; for the most part, you can just
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
589 copy and work from the examples given here.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
590
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
591 Let's first use a boolean variable. These are variables which you turn
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
592 on or off, much like a checkbox. A value of @samp{t} means on, a value
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
593 of @samp{nil} means off. Copy the following line into your
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
594 @file{.emacs} file, exit and restart Emacs.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
595
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
596 @lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
597 (setq idlwave-reserved-word-upcase t)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
598 @end lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
599
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
600 When this option is turned on, each reserved word you type into an IDL
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
601 source buffer will be converted to upper case when you press @key{SPC}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
602 or @key{RET} right after the word. Try it out! @samp{if} changes to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
603 @samp{IF}, @samp{begin} to @samp{BEGIN}. If you don't like this
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
604 behavior, remove the option again from your @file{.emacs} file and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
605 restart Emacs.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
606
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
607 You likely have your own indentation preferences for IDL code. For
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
608 example, some may prefer to indent the main block of an IDL program
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
609 slightly from the margin and use only 3 spaces as indentation between
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
610 @code{BEGIN} and @code{END}. Try the following lines in @file{.emacs}:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
611
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
612 @lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
613 (setq idlwave-main-block-indent 1)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
614 (setq idlwave-block-indent 3)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
615 (setq idlwave-end-offset -3)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
616 @end lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
617
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
618 Restart Emacs, and re-indent the program we developed in the first part
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
619 of this tutorial with @kbd{C-c h} and @kbd{C-M-\}. You may want to keep
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
620 these lines in @file{.emacs}, with values adjusted to your likings. If
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
621 you want to get more information about any of these variables, type,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
622 e.g., @kbd{C-h v idlwave-main-block-indent @key{RET}}. To find which
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
623 variables can be customized, look for items marked @samp{User Option:}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
624 throughout this manual.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
625
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
626 If you cannot seem to master this Lisp customization in @file{.emacs},
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
627 there is another, more user-friendly way to customize all the IDLWAVE
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
628 variables. You can access it through the IDLWAVE menu in one of the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
629 @file{.pro} buffers, menu item @code{Customize->Browse IDLWAVE
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
630 Group}. Here you'll be presented with all the various variables grouped
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
631 into categories. You can navigate the hierarchy (e.g. @samp{IDLWAVE
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
632 Code Formatting->Idlwave Abbrev And Indent Action->Idlwave Expand
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
633 Generic End} to turn on @code{END} expansion), read about the variables,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
634 change them, and `Save for Future Sessions'. Few of these variables
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
635 need customization, but you can exercise considerable control over
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
636 IDLWAVE's functionality with them.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
637
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
638 You may also find the key bindings used for the debugging commands too
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
639 long and complicated. Often we have heard complaints along the lines
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
640 of, ``Do I really have to go through the finger gymnastics of @kbd{C-c
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
641 C-d C-c} to run a simple command?'' Due to Emacs rules and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
642 conventions, shorter bindings cannot be set by default, but you can
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
643 easily enable them. First, there is a way to assign all debugging
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
644 commands in a single sweep to another simpler combination. The only
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
645 problem is that we have to use something which Emacs does not need for
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
646 other important commands. One good option is to execute debugging
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
647 commands by holding down @key{CONTROL} and @key{SHIFT} while pressing
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
648 a single character: @kbd{C-S-b} for setting a breakpoint, @kbd{C-S-c}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
649 for compiling the current source file, @kbd{C-S-a} for deleting all
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
650 breakpoints (try it, it's easier). You can enable this with:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
651
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
652 @lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
653 (setq idlwave-shell-debug-modifiers '(shift control))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
654 @end lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
655
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
656 @noindent If you have a special keyboard with, for example, a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
657 @key{SUPER} key, you could even shorten that:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
658
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
659 @lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
660 (setq idlwave-shell-debug-modifiers '(super))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
661 @end lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
662
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
663 @noindent to get compilation on @kbd{S-c}. Often, a modifier key like
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
664 @key{SUPER} or @key{HYPER} is bound or can be bound to an otherwise
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
665 unused key on your keyboard --- consult your system documentation.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
666
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
667 You can also assign specific commands to keys. This you must do in the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
668 @emph{mode-hook}, a special function which is run when a new IDLWAVE
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
669 buffer gets set up. The possibilities for key customization are
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
670 endless. Here we set function keys f4-f8 to common debugging commands.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
671
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
672 @lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
673 ;; First for the source buffer
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
674 (add-hook 'idlwave-mode-hook
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
675 (lambda ()
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
676 (local-set-key [f4] 'idlwave-shell-retall)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
677 (local-set-key [f5] 'idlwave-shell-break-here)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
678 (local-set-key [f6] 'idlwave-shell-clear-current-bp)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
679 (local-set-key [f7] 'idlwave-shell-cont)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
680 (local-set-key [f8] 'idlwave-shell-clear-all-bp)))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
681 ;; Then for the shell buffer
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
682 (add-hook 'idlwave-shell-mode-hook
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
683 (lambda ()
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
684 (local-set-key [f4] 'idlwave-shell-retall)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
685 (local-set-key [f5] 'idlwave-shell-break-here)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
686 (local-set-key [f6] 'idlwave-shell-clear-current-bp)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
687 (local-set-key [f7] 'idlwave-shell-cont)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
688 (local-set-key [f8] 'idlwave-shell-clear-all-bp)))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
689 @end lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
690
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
691 @node Lesson III -- User Catalog, , Lesson II -- Customization, Getting Started
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
692 @section Lesson III: User and Library Catalogs
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
693
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
694 We have already used the routine info display in the first part of this
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
695 tutorial. This was the invoked using @kbd{C-c ?}, and displays
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
696 information about the IDL routine near the cursor position. Wouldn't it
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
697 be nice to have the same kind of information available for your own
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
698 routines and for the huge amount of code in major libraries like JHUPL
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
699 or the IDL-Astro library? In many cases, you may already have this
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
700 information. Files named @file{.idlwave_catalog} in library directories
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
701 contain scanned information on the routines in that directory; many
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
702 popular libraries ship with these ``library catalogs'' pre-scanned.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
703 Users can scan their own routines in one of two ways: either using the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
704 supplied tool to scan directories and build their own
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
705 @file{.idlwave_catalog} files, or using the built-in method to create a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
706 single ``user catalog'', which we'll show here. @xref{Catalogs}, for
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
707 more information on choosing which method to use.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
708
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
709 To build a user catalog, select @code{Routine Info/Select Catalog
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
710 Directories} from the IDLWAVE entry in the menu bar. If necessary,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
711 start the shell first with @kbd{C-c C-s} (@pxref{Starting the Shell}).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
712 IDLWAVE will find out about the IDL @code{!PATH} variable and offer a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
713 list of directories on the path. Simply select them all (or whichever
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
714 you want --- directories with existing library catalogs will not be
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
715 selected by default) and click on the @samp{Scan&Save} button. Then
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
716 go for a cup of coffee while IDLWAVE collects information for each and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
717 every IDL routine on your search path. All this information is
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
718 written to the file @file{.idlwave/idlusercat.el} in your home
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
719 directory and will from now on automatically load whenever you use
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
720 IDLWAVE. You may find it necessary to rebuild the catalog on occasion
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
721 as your local libraries change, or build a library catalog for those
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
722 directories instead. Invoke routine info (@kbd{C-c ?}) or completion
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
723 (@kbd{M-@key{TAB}}) on any routine or partial routine name you know to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
724 be located in the library. E.g., if you have scanned the IDL-Astro
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
725 library:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
726
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
727 @example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
728 a=readf@key{M-@key{TAB}}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
729 @end example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
730
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
731 expands to `readfits('. Then try
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
732
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
733 @example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
734 a=readfits(@key{C-c ?}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
735 @end example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
736
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
737 and you get:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
738
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
739 @example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
740 Usage: Result = READFITS(filename, header, heap)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
741 ...
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
742 @end example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
743
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
744 I hope you made it until here. Now you are set to work with IDLWAVE.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
745 On the way you will want to change other things, and to learn more
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
746 about the possibilities not discussed in this short tutorial. Read
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
747 the manual, look at the documentation strings of interesting variables
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
748 (with @kbd{C-h v idlwave<-variable-name> @key{RET}}) and ask the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
749 remaining questions on the newsgroup @code{comp.lang.idl-pvwave}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
750
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
751 @node The IDLWAVE Major Mode, The IDLWAVE Shell, Getting Started, Top
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
752 @chapter The IDLWAVE Major Mode
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
753 @cindex IDLWAVE major mode
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
754 @cindex Major mode, @code{idlwave-mode}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
755
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
756 The IDLWAVE major mode supports editing IDL source files. In this
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
757 chapter we describe the main features of the mode and how to customize
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
758 them.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
759
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
760 @menu
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
761 * Code Formatting:: Making code look nice
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
762 * Routine Info:: Calling Sequence and Keyword List
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
763 * Online Help:: One key press from source to help
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
764 * Completion:: Completing routine names and Keywords
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
765 * Routine Source:: Finding routines, the easy way
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
766 * Resolving Routines:: Force the Shell to compile a routine
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
767 * Code Templates:: Frequent code constructs
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
768 * Abbreviations:: Abbreviations for common commands
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
769 * Actions:: Changing case, Padding, End checking
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
770 * Doc Header:: Inserting a standard header
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
771 * Motion Commands:: Moving through the structure of a program
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
772 * Misc Options:: Things that fit nowhere else
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
773 @end menu
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
774
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
775 @node Code Formatting, Routine Info, The IDLWAVE Major Mode, The IDLWAVE Major Mode
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
776 @section Code Formatting
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
777 @cindex Code formatting
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
778 @cindex Formatting, of code
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
779
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
780 @menu
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
781 * Code Indentation:: Reflecting the logical structure
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
782 * Continued Statement Indentation::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
783 * Comment Indentation:: Special indentation for comment lines
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
784 * Continuation Lines:: Splitting statements over lines
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
785 * Syntax Highlighting:: Font-lock support
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
786 * Octals and Highlighting:: Why "123 causes problems
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
787 @end menu
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
788
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
789 The IDL language, with its early roots in FORTRAN, modern
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
790 implementation in C, and liberal borrowing of features of many vector
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
791 and other languages along its 25+ year history, has inherited an
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
792 unusual mix of syntax elements. Left to his or her own devices, a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
793 novice IDL programmer will often conjure code which is very difficult
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
794 to read and impossible to adapt. Much can be gleaned from studying
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
795 available IDL code libraries for coding style pointers, but, due to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
796 the variety of IDL syntax elements, replicating this style can be
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
797 challenging at best. Luckily, IDLWAVE understands the structure of
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
798 IDL code very well, and takes care of almost all formatting issues for
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
799 you. After configuring it to match your coding standards, you can
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
800 rely on it to help keep your code neat and organized.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
801
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
802
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
803 @node Code Indentation, Continued Statement Indentation, Code Formatting, Code Formatting
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
804 @subsection Code Indentation
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
805 @cindex Code indentation
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
806 @cindex Indentation
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
807
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
808 Like all Emacs programming modes, IDLWAVE performs code indentation.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
809 The @key{TAB} key indents the current line relative to context.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
810 @key{LFD} insert a newline and indents the new line. The indentation is
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
811 governed by a number of variables. IDLWAVE indents blocks (between
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
812 @code{PRO}/@code{FUNCTION}/@code{BEGIN} and @code{END}), and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
813 continuation lines.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
814
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
815 @cindex Foreign code, adapting
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
816 @cindex Indentation, of foreign code
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
817 @kindex C-M-\
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
818 To re-indent a larger portion of code (e.g. when working with foreign
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
819 code written with different conventions), use @kbd{C-M-\}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
820 (@code{indent-region}) after marking the relevant code. Useful marking
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
821 commands are @kbd{C-x h} (the entire file) or @kbd{C-M-h} (the current
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
822 subprogram). The command @kbd{C-M-q} reindents the entire current
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
823 routine. @xref{Actions}, for information how to impose additional
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
824 formatting conventions on foreign code.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
825
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
826 @defopt idlwave-main-block-indent (@code{2})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
827 Extra indentation for the main block of code. That is the block between
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
828 the FUNCTION/PRO statement and the END statement for that program
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
829 unit.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
830 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
831
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
832 @defopt idlwave-block-indent (@code{3})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
833 Extra indentation applied to block lines. If you change this, you
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
834 probably also want to change @code{idlwave-end-offset}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
835 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
836
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
837 @defopt idlwave-end-offset (@code{-3})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
838 Extra indentation applied to block END lines. A value equal to negative
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
839 @code{idlwave-block-indent} will make END lines line up with the block
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
840 BEGIN lines.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
841 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
842
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
843 @node Continued Statement Indentation, Comment Indentation, Code Indentation, Code Formatting
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
844 @subsection Continued Statement Indentation
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
845 @cindex Indentation, continued statement
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
846 @cindex Continued statement indentation
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
847 Continuation lines (following a line ending with @code{$}) can receive a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
848 fixed indentation offset from the main level, but in several situations
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
849 IDLWAVE can use a special form of indentation which aligns continued
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
850 statements more naturally. Special indentation is calculated for
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
851 continued routine definition statements and calls, enclosing parentheses
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
852 (like function calls, structure/class definitions, explicit structures
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
853 or lists, etc.), and continued assignments. An attempt is made to line
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
854 up with the first non-whitespace character after the relevant opening
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
855 punctuation mark (@code{,},@code{(},@code{@{},@code{[},@code{=}). For
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
856 lines without any non-comment characters on the line with the opening
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
857 punctuation, the continued line(s) are aligned just past the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
858 punctuation. An example:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
859
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
860 @example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
861 function foo, a, b, $
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
862 c, d
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
863 bar = sin( a + b + $
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
864 c + d)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
865 end
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
866 @end example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
867 @noindent
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
868
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
869 The only drawback to this special continued statement indentation is
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
870 that it consumes more space, e.g., for long function names or left hand
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
871 sides of an assignment:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
872
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
873 @example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
874 function thisfunctionnameisverylongsoitwillleavelittleroom, a, b, $
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
875 c, d
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
876 @end example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
877
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
878 You can instruct IDLWAVE when to avoid using this special continuation
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
879 indentation by setting the variable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
880 @code{idlwave-max-extra-continuation-indent}, which specifies the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
881 maximum additional indentation beyond the basic indent to be
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
882 tolerated, otherwise defaulting to a fixed-offset from the enclosing
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
883 indent (the size of which offset is set in
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
884 @code{idlwave-continuation-indent}). As a special case, continuations
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
885 of routine calls without any arguments or keywords will @emph{not}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
886 align the continued line, under the assumption that you continued
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
887 because you needed the space.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
888
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
889 Also, since the indentation level can be somewhat dynamic in continued
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
890 statements with special continuation indentation, especially if
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
891 @code{idlwave-max-extra-continuation-indent} is small, the key
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
892 @kbd{C-u @key{TAB}} will re-indent all lines in the current statement.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
893 Note that @code{idlwave-indent-to-open-paren}, if non-@code{nil},
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
894 overrides the @code{idlwave-max-extra-continuation-indent} limit, for
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
895 parentheses only, forcing them always to line up.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
896
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
897
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
898 @defopt idlwave-continuation-indent (@code{2})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
899 Extra indentation applied to normal continuation lines.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
900 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
901
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
902 @defopt idlwave-max-extra-continuation-indent (@code{20})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
903 The maximum additional indentation (over the basic continuation-indent)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
904 that will be permitted for special continues. To effectively disable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
905 special continuation indentation, set to @code{0}. To enable it
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
906 constantly, set to a large number (like @code{100}). Note that the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
907 indentation in a long continued statement never decreases from line to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
908 line, outside of nested parentheses statements.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
909 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
910
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
911 @defopt idlwave-indent-to-open-paren (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
912 Non-@code{nil} means indent continuation lines to innermost open
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
913 parenthesis, regardless of whether the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
914 @code{idlwave-max-extra-continuation-indent} limit is satisfied.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
915 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
916
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
917 @node Comment Indentation, Continuation Lines, Continued Statement Indentation, Code Formatting
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
918 @subsection Comment Indentation
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
919 @cindex Comment indentation
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
920 @cindex Hanging paragraphs
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
921 @cindex Paragraphs, filling
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
922 @cindex Paragraphs, hanging
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
923
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
924 In IDL, lines starting with a @samp{;} are called @emph{comment lines}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
925 Comment lines are indented as follows:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
926
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
927 @multitable @columnfractions .1 .90
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
928 @item @code{;;;}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
929 @tab The indentation of lines starting with three semicolons remains
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
930 unchanged.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
931 @item @code{;;}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
932 @tab Lines starting with two semicolons are indented like the surrounding code.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
933 @item @code{;}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
934 @tab Lines starting with a single semicolon are indented to a minimum column.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
935 @end multitable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
936
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
937 @noindent
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
938 The indentation of comments starting in column 0 is never changed.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
939
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
940 @defopt idlwave-no-change-comment
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
941 The indentation of a comment starting with this regexp will not be
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
942 changed.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
943 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
944
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
945 @defopt idlwave-begin-line-comment
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
946 A comment anchored at the beginning of line.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
947 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
948
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
949 @defopt idlwave-code-comment
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
950 A comment that starts with this regexp is indented as if it is a part of
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
951 IDL code.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
952 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
953
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
954 @node Continuation Lines, Syntax Highlighting, Comment Indentation, Code Formatting
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
955 @subsection Continuation Lines and Filling
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
956 @cindex Continuation lines
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
957 @cindex Line splitting
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
958 @cindex String splitting
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
959 @cindex Splitting, of lines
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
960
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
961 @kindex M-@key{RET}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
962 In IDL, a newline character terminates a statement unless preceded by a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
963 @samp{$}. If you would like to start a continuation line, use
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
964 @kbd{M-@key{RET}}, which calls the command @code{idlwave-split-line}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
965 It inserts the continuation character @samp{$}, terminates the line and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
966 indents the new line. The command @kbd{M-@key{RET}} can also be invoked
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
967 inside a string to split it at that point, in which case the @samp{+}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
968 concatenation operator is used.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
969
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
970 @cindex Filling
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
971 @cindex @code{auto-fill-mode}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
972 @cindex Hanging paragraphs
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
973 When filling comment paragraphs, IDLWAVE overloads the normal filling
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
974 functions and uses a function which creates the hanging paragraphs
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
975 customary in IDL routine headers. When @code{auto-fill-mode} is turned
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
976 on (toggle with @kbd{C-c C-a}), comments will be auto-filled. If the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
977 first line of a paragraph contains a match for
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
978 @code{idlwave-hang-indent-regexp} (a dash-space by default), subsequent
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
979 lines are positioned to line up after it, as in the following example.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
980
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
981 @example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
982 @group
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
983 ;=================================
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
984 ; x - an array containing
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
985 ; lots of interesting numbers.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
986 ;
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
987 ; y - another variable where
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
988 ; a hanging paragraph is used
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
989 ; to describe it.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
990 ;=================================
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
991 @end group
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
992 @end example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
993
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
994 @kindex M-q
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
995 You can also refill a comment at any time paragraph with @kbd{M-q}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
996 Comment delimiting lines as in the above example, consisting of one or
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
997 more @samp{;} followed by one or more of the characters @samp{+=-_*},
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
998 are kept in place, as is.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
999
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1000 @defopt idlwave-fill-comment-line-only (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1001 Non-@code{nil} means auto fill will only operate on comment lines.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1002 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1003
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1004 @defopt idlwave-auto-fill-split-string (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1005 Non-@code{nil} means auto fill will split strings with the IDL @samp{+}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1006 operator.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1007 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1008
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1009 @defopt idlwave-split-line-string (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1010 Non-@code{nil} means @code{idlwave-split-line} will split strings with
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1011 @samp{+}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1012 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1013
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1014 @defopt idlwave-hanging-indent (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1015 Non-@code{nil} means comment paragraphs are indented under the hanging
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1016 indent given by @code{idlwave-hang-indent-regexp} match in the first
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1017 line of the paragraph.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1018 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1019
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1020 @defopt idlwave-hang-indent-regexp (@code{"- "})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1021 Regular expression matching the position of the hanging indent
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1022 in the first line of a comment paragraph.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1023 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1024
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1025 @defopt idlwave-use-last-hang-indent (@code{nil})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1026 Non-@code{nil} means use last match on line for
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1027 @code{idlwave-indent-regexp}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1028 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1029
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1030 @node Syntax Highlighting, Octals and Highlighting, Continuation Lines, Code Formatting
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1031 @subsection Syntax Highlighting
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1032 @cindex Syntax highlighting
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1033 @cindex Highlighting of syntax
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1034 @cindex Font lock
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1035
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1036 Highlighting of keywords, comments, strings etc. can be accomplished
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1037 with @code{font-lock}. If you are using @code{global-font-lock-mode}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1038 (in Emacs), or have @code{font-lock} turned on in any other buffer in
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1039 XEmacs, it should also automatically work in IDLWAVE buffers. If you'd
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1040 prefer invoking font-lock individually by mode, you can enforce it in
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1041 @code{idlwave-mode} with the following line in your @file{.emacs}:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1042
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1043 @lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1044 (add-hook 'idlwave-mode-hook 'turn-on-font-lock)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1045 @end lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1046
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1047 @noindent IDLWAVE supports 3 increasing levels of syntax highlighting.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1048 The variable @code{font-lock-maximum-decoration} determines which level
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1049 is selected. Individual categories of special tokens can be selected
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1050 for highlighting using the variable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1051 @code{idlwave-default-font-lock-items}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1052
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1053 @defopt idlwave-default-font-lock-items
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1054 Items which should be fontified on the default fontification level
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1055 2.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1056 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1057
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1058 @node Octals and Highlighting, , Syntax Highlighting, Code Formatting
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1059 @subsection Octals and Highlighting
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1060 @cindex Syntax highlighting, Octals
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1061 @cindex Highlighting of syntax, Octals
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1062
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1063 A rare syntax highlighting problem results from an extremely unfortunate
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1064 notation for octal numbers in IDL: @code{"123}. This unpaired quotation
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1065 mark is very difficult to parse, given that it can be mixed on a single
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1066 line with any number of strings. Emacs will incorrectly identify this
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1067 as a string, and the highlighting of following lines of code can be
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1068 distorted, since the string is never terminated.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1069
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1070 One solution to this involves terminating the mistakenly identified
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1071 string yourself by providing a closing quotation mark in a comment:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1072
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1073 @example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1074 string("305B) + $ ;" <--- for font-lock
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1075 ' is an Angstrom.'
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1076 @end example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1077
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1078 @noindent A far better solution is to abandon this notation for octals
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1079 altogether, and use the more sensible alternative IDL provides:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1080
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1081 @example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1082 string('305'OB) + ' is an Angstrom.'
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1083 @end example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1084
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1085 @noindent This simultaneously solves the font-lock problem and is more
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1086 consistent with the notation for hexadecimal numbers, e.g. @code{'C5'XB}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1087
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1088 @node Routine Info, Online Help, Code Formatting, The IDLWAVE Major Mode
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1089 @section Routine Info
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1090 @cindex Routine info
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1091 @cindex Updating routine info
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1092 @cindex Scanning buffers for routine info
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1093 @cindex Buffers, scanning for routine info
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1094 @cindex Shell, querying for routine info
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1095
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1096 @kindex C-c C-i
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1097 IDL comes bundled with more than one thousand procedures, functions
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1098 and object methods, and large libraries typically contain hundreds or
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1099 even thousands more (each with a few to tens of keywords and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1100 arguments). This large command set can make it difficult to remember
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1101 the calling sequence and keywords for the routines you use, but
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1102 IDLWAVE can help. It builds up routine information from a wide
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1103 variety of sources; IDLWAVE in fact knows far more about the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1104 @samp{.pro} routines on your system than IDL itself! It maintains a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1105 list of all built-in routines, with calling sequences and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1106 keywords@footnote{This list is created by scanning the IDL manuals and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1107 might contain (very few) errors. Please report any errors to the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1108 maintainer, so that they can be fixed.}. It also scans Emacs buffers
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1109 for routine definitions, queries the IDLWAVE-Shell for information
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1110 about routines currently compiled there, and automatically locates
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1111 library and user-created catalogs. This information is updated
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1112 automatically, and so should usually be current. To force a global
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1113 update and refresh the routine information, use @kbd{C-c C-i}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1114 (@code{idlwave-update-routine-info}).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1115
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1116 @kindex C-c ?
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1117 To display the information about a routine, press @kbd{C-c ?}, which
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1118 calls the command @code{idlwave-routine-info}. When the current cursor
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1119 position is on the name or in the argument list of a procedure or
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1120 function, information will be displayed about the routine. For example,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1121 consider the indicated cursor positions in the following line:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1122
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1123 @example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1124 plot,x,alog(x+5*sin(x) + 2),
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1125 | | | | | | | |
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1126 1 2 3 4 5 6 7 8
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1127 @end example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1128
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1129 @cindex Default routine, for info and help
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1130 On positions 1,2 and 8, information about the @samp{plot} procedure will
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1131 be shown. On positions 3,4, and 7, the @samp{alog} function will be
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1132 described, while positions 5 and 6 will investigate the @samp{sin}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1133 function.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1134
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1135 When you ask for routine information about an object method, and the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1136 method exists in several classes, IDLWAVE queries for the class of the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1137 object, unless the class is already known through a text property on the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1138 @samp{->} operator (@pxref{Object Method Completion and Class
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1139 Ambiguity}), or by having been explicitly included in the call
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1140 (e.g. @code{a->myclass::Foo}).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1141
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1142 @cindex Calling sequences
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1143 @cindex Keywords of a routine
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1144 @cindex Routine source information
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1145 The description displayed contains the calling sequence, the list of
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1146 keywords and the source location of this routine. It looks like this:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1147
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1148 @example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1149 Usage: XMANAGER, NAME, ID
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1150 Keywords: BACKGROUND CATCH CLEANUP EVENT_HANDLER GROUP_LEADER
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1151 JUST_REG MODAL NO_BLOCK
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1152 Source: SystemLib [LCSB] /soft1/idl53/lib/xmanager.pro
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1153 @end example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1154
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1155 @cindex Categories, of routines
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1156 @cindex Load-path shadows
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1157 @cindex Shadows, load-path
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1158 @cindex IDL variable @code{!PATH}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1159 @cindex @code{!PATH}, IDL variable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1160 @cindex IDL variable @code{!DIR}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1161 @cindex @code{!DIR}, IDL variable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1162
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1163 If a definition of this routine exists in several files accessible to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1164 IDLWAVE, several @samp{Source} lines will point to the different
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1165 files. This may indicate that your routine is shadowing a system
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1166 library routine, which may or may not be what you want
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1167 (@pxref{Load-Path Shadows}). The information about the calling
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1168 sequence and keywords is derived from the first source listed.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1169 Library routines are available only if you have scanned your local IDL
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1170 directories or are using pre-scanned libraries (@pxref{Catalogs}).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1171 The source entry consists of a @emph{source category}, a set of
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1172 @emph{flags} and the path to the @emph{source file}. The following
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1173 default categories exist:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1174
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1175 @multitable @columnfractions .15 .85
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1176 @item @i{System}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1177 @tab A system routine of unknown origin. When the system library has
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1178 been scanned as part of a catalog (@pxref{Catalogs}), this category
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1179 will automatically split into the next two.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1180 @item @i{Builtin}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1181 @tab A builtin system routine with no source code available.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1182 @item @i{SystemLib}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1183 @tab A library system routine in the official lib directory @file{!DIR/lib}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1184 @item @i{Obsolete}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1185 @tab A library routine in the official lib directory @file{!DIR/lib/obsolete}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1186 @item @i{Library}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1187 @tab A routine in a file on IDL's search path @code{!PATH}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1188 @item @i{Other}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1189 @tab Any other routine with a file not known to be on the search path.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1190 @item @i{Unresolved}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1191 @tab An otherwise unknown routine the shell lists as unresolved
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1192 (referenced, but not compiled).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1193 @end multitable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1194
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1195 Any routines discovered in library catalogs (@pxref{Library
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1196 Catalogs}), will display the category assigned during creation,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1197 e.g. @samp{NasaLib}. For routines not discovered in this way, you can
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1198 create additional categories based on the routine's filename using the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1199 variable @code{idlwave-special-lib-alist}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1200
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1201 @cindex Flags, in routine info
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1202 @cindex Duplicate routines
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1203 @cindex Multiply defined routines
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1204 @cindex Routine definitions, multiple
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1205 The flags @code{[LCSB]} indicate the source of the information IDLWAVE
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1206 has regarding the file: from a library catalog (@w{@code{[L---]}}),
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1207 from a user catalog (@w{@code{[-C--]}}, from the IDL Shell
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1208 (@w{@code{[--S-]}}) or from an Emacs buffer (@w{@code{[---B]}}).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1209 Combinations are possible (a compiled library routine visited in a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1210 buffer might read @w{@code{[L-SB]}}). If a file contains multiple
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1211 definitions of the same routine, the file name will be prefixed with
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1212 @samp{(Nx)} where @samp{N} is the number of definitions.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1213
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1214 @cindex Online Help from the routine info buffer
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1215 @cindex Active text, in routine info
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1216 @cindex Inserting keywords, from routine info
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1217 @cindex Source file, access from routine info
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1218 Some of the text in the @file{*Help*} routine info buffer will be active
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1219 (it is highlighted when the mouse moves over it). Typically, clicking
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1220 with the right mouse button invokes online help lookup, and clicking
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1221 with the middle mouse button inserts keywords or visits files:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1222
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1223 @multitable @columnfractions 0.15 0.85
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1224 @item @i{Usage}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1225 @tab If online help is installed, a click with the @emph{right} mouse
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1226 button on the @i{Usage:} line will access the help for the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1227 routine (@pxref{Online Help}).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1228 @item @i{Keyword}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1229 @tab Online help about keywords is also available with the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1230 @emph{right} mouse button. Clicking on a keyword with the @emph{middle}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1231 mouse button will insert this keyword in the buffer from where
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1232 @code{idlwave-routine-info} was called. Holding down @key{SHIFT} while
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1233 clicking also adds the initial @samp{/}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1234 @item @i{Source}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1235 @tab Clicking with the @emph{middle} mouse button on a @samp{Source} line
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1236 finds the source file of the routine and visits it in another window.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1237 Another click on the same line switches back to the buffer from which
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1238 @kbd{C-c ?} was called. If you use the @emph{right} mouse button, the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1239 source will not be visited by a buffer, but displayed in the online help
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1240 window.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1241 @item @i{Classes}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1242 @tab The @i{Classes} line is only included in the routine info window if
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1243 the current class inherits from other classes. You can click with the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1244 @emph{middle} mouse button to display routine info about the current
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1245 method in other classes on the inheritance chain, if such a method
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1246 exists there.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1247 @end multitable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1248
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1249 @defopt idlwave-resize-routine-help-window (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1250 Non-@code{nil} means resize the Routine-info @file{*Help*} window to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1251 fit the content.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1252 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1253
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1254 @defopt idlwave-special-lib-alist
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1255 Alist of regular expressions matching special library directories.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1256 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1257
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1258 @defopt idlwave-rinfo-max-source-lines (@code{5})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1259 Maximum number of source files displayed in the Routine Info window.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1260 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1261
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1262
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1263 @html
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1264 <A NAME="ONLINE_HELP"></A>
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1265 @end html
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1266 @node Online Help, Completion, Routine Info, The IDLWAVE Major Mode
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1267 @section Online Help
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1268
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1269 @cindex Online Help
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1270 @cindex @file{idlw-help.txt}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1271 @cindex @file{idlw-help.el}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1272 @cindex Installing online help
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1273 @cindex Online Help, Installation
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1274 @cindex Speed, of online help
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1275 @cindex XML Help Catalog
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1276
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1277 For IDL system routines, extensive documentation is supplied with IDL.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1278 IDLWAVE can access the HTML version of this documentation very quickly
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1279 and accurately, based on the local context. This can be @emph{much}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1280 faster than using the IDL online help application, because IDLWAVE
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1281 usually gets you to the right place in the documentation directly ---
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1282 e.g. a specific keyword of a routine --- without any additional browsing
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1283 and scrolling.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1284
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1285 For this online help to work, an HTML version of the IDL documentation
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1286 is required. Beginning with IDL 6.2, HTML documentation is distributed
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1287 directly with IDL, along with an XML-based catalog of routine
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1288 information. By default, IDLWAVE automatically attempts to convert this
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1289 XML catalog into a format Emacs can more easily understand, and caches
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1290 this information in your @code{idlwave_config_directory}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1291 (@file{~/.idlwave/}, by default). It also re-scans the XML catalog if
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1292 it is newer than the current cached version. You can force rescan with
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1293 the menu entry @code{IDLWAVE->Routine Info->Rescan XML Help Catalog}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1294
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1295 Before IDL 6.2, the HTML help was not distributed with IDL, and was not
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1296 part of the standalone IDLWAVE distribution, but had to be downloaded
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1297 separately. This is no longer necessary: all help and routine
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1298 information is supplied with IDL versions 6.2 and later.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1299
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1300 There are a variety of options for displaying the HTML help: see below.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1301 Help for routines without HTML documentation is also available, by using
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1302 the routine documentation header and/or routine source.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1303
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1304 @kindex M-?
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1305 In any IDL program (or, as with most IDLWAVE commands, in the IDL
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1306 Shell), press @kbd{M-?} (@code{idlwave-context-help}), or click with
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1307 @kbd{S-Mouse-3} to access context sensitive online help. The following
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1308 locations are recognized context for help:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1309
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1310 @cindex Context, for online help
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1311 @multitable @columnfractions .25 .75
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1312 @item @i{Routine names}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1313 @tab The name of a routine (function, procedure, method).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1314 @item @i{Keyword Parameters}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1315 @tab A keyword parameter of a routine.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1316 @item @i{System Variables}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1317 @tab System variables like @code{!DPI}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1318 @item @i{System Variable Tags}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1319 @tab System variables tags like @code{!D.X_SIZE}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1320 @item @i{IDL Statements}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1321 @tab Statements like @code{PRO}, @code{REPEAT}, @code{COMPILE_OPT}, etc.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1322 @item @i{IDL Controls}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1323 @tab Control structures like @code{FOR}, @code{SWITCH}, etc.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1324 @item @i{Class names}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1325 @tab A class name in an @code{OBJ_NEW} call.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1326 @item @i{Class Init Keywords}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1327 @tab Beyond the class name in an @code{OBJ_NEW} call.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1328 @item @i{Executive Command}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1329 @tab An executive command like @code{.RUN}. Mostly useful in the shell.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1330 @item @i{Structure Tags}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1331 @tab Structure tags like @code{state.xsize}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1332 @item @i{Class Tags}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1333 @tab Class tags like @code{self.value}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1334 @item @i{Default}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1335 @tab The routine that would be selected for routine info display.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1336 @end multitable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1337
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1338 @cindex @code{OBJ_NEW}, special online help
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1339 Note that the @code{OBJ_NEW} function is special in that the help
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1340 displayed depends on the cursor position. If the cursor is on the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1341 @samp{OBJ_NEW}, this function is described. If it is on the class
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1342 name inside the quotes, the documentation for the class is pulled up.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1343 If the cursor is @emph{after} the class name, anywhere in the argument
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1344 list, the documentation for the corresponding @code{Init} method and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1345 its keywords is targeted.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1346
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1347 Apart from an IDLWAVE buffer or shell, there are two more places from
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1348 which online help can be accessed.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1349
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1350 @itemize @bullet
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1351 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1352 Online help for routines and keywords can be accessed through the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1353 Routine Info display. Click with @kbd{Mouse-3} on an item to see the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1354 corresponding help (@pxref{Routine Info}).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1355 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1356 When using completion and Emacs pops up a @file{*Completions*} buffer
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1357 with possible completions, clicking with @kbd{Mouse-3} on a completion
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1358 item invokes help on that item (@pxref{Completion}). Items for which
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1359 help is available in the online system documentation (vs. just the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1360 program source itself) will be emphasized (e.g. colored blue).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1361 @end itemize
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1362 @noindent
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1363 In both cases, a blue face indicates that the item is documented in
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1364 the IDL manual, but an attempt will be made to visit non-blue items
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1365 directly in the originating source file.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1366
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1367
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1368 @menu
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1369 * Help with HTML Documentation::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1370 * Help with Source::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1371 @end menu
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1372
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1373 @node Help with HTML Documentation, Help with Source, Online Help, Online Help
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1374 @subsection Help with HTML Documentation
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1375 @cindex HTML Help
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1376 @cindex Help using HTML manuals
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1377 @cindex IDL manual, HTML version
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1378 @cindex IDL Assistant
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1379
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1380 Help using the HTML documentation is invoked with the built-in Emacs
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1381 command @code{browse-url}, which displays the relevant help topic in a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1382 browser of your choosing. Beginning with version 6.2, IDL comes with
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1383 the help browser @emph{IDL Assistant}, which it uses by default for
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1384 displaying online help on all supported platforms. This browser
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1385 offers topical searches, an index, and is also now the default and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1386 recommended IDLWAVE help browser. The variable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1387 @code{idlwave-help-use-assistant} controls whether this browser is
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1388 used. Note that, due to limitations in the Assistant, invoking help
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1389 within IDLWAVE and @code{? topic} within IDL will result in two
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1390 running copies of Assistant.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1391
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1392 Aside from the IDL Assistant, there are many possible browsers to choose
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1393 among, with differing advantages and disadvantages. The variable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1394 @code{idlwave-help-browser-function} controls which browser help is sent
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1395 to (as long as @code{idlwave-help-use-assistant} is not set). This
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1396 function is used to set the variable @code{browse-url-browser-function}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1397 locally for IDLWAVE help only. Customize the latter variable to see
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1398 what choices of browsers your system offers. Certain browsers like
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1399 @code{w3} (bundled with many versions of Emacs) and @code{w3m}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1400 (@uref{http://emacs-w3m.namazu.org/}) are run within Emacs, and use
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1401 Emacs buffers to display the HTML help. This can be convenient,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1402 especially on small displays, and images can even be displayed in-line
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1403 on newer Emacs versions. However, better formatting results are often
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1404 achieved with external browsers, like Mozilla. IDLWAVE assumes any
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1405 browser function containing "w3" is displayed in a local buffer. If you
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1406 are using another Emacs-local browser for which this is not true, set
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1407 the variable @code{idlwave-help-browser-is-local}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1408
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1409 With IDL 6.2 or later, it is important to ensure that the variable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1410 @code{idlwave-system-directory} is set (@pxref{Catalogs}). One easy way
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1411 to ensure this is to run the IDL Shell (@kbd{C-c C-s}). It will be
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1412 queried for this directory, and the results will be cached to file for
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1413 subsequent use.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1414
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1415 @xref{HTML Help Browser Tips}, for more information on selecting and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1416 configuring a browser for use with IDL's HTML help system.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1417
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1418 @defopt idlwave-html-system-help-location @file{help/online_help}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1419 Relative directory of the system-supplied HTML help directory,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1420 considered with respect to @code{idlwave-system-directory}. Relevant
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1421 for IDL 6.2 and greater. Should not change.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1422 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1423
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1424 @defopt idlwave-html-help-location @file{/usr/local/etc/}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1425 The directory where the @file{idl_html_help} HTML directory live.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1426 Obsolete and ignored for IDL 6.2 and greater
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1427 (@code{idlwave-html-system-help-location} is used instead).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1428 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1429
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1430 @defopt idlwave-help-use-assistant @code{t}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1431 If set, use the IDL Assistant if possible for online HTML help,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1432 otherwise use the browser function specified in
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1433 @code{idlwave-help-browser-function}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1434 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1435
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1436 @defopt idlwave-help-browser-function
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1437 The browser function to use to display IDLWAVE HTML help. Should be
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1438 one of the functions available for setting
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1439 @code{browse-url-browser-function}, which see.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1440 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1441
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1442 @defopt idlwave-help-browser-is-local
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1443 Is the browser selected in @code{idlwave-help-browser-function} run in a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1444 local Emacs buffer or window? Defaults to @code{t} if the function
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1445 contains "-w3".
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1446 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1447
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1448 @defopt idlwave-help-link-face
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1449 The face for links to IDLWAVE online help.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1450 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1451
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1452 @node Help with Source, , Help with HTML Documentation, Online Help
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1453 @subsection Help with Source
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1454 @cindex Help using routine source
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1455
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1456 @cindex Source code, as online help
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1457 @cindex DocLib header, as online help
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1458 For routines which are not documented in an HTML manual (for example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1459 personal or library routines), the source code itself is used as help
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1460 text. If the requested information can be found in a (more or less)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1461 standard DocLib file header, IDLWAVE shows the header (scrolling down to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1462 a keyword, if appropriate). Otherwise the routine definition statement
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1463 (@code{pro}/@code{function}) is shown. The doclib header sections which
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1464 are searched for include @samp{NAME} and @samp{KEYWORDS}. Localization
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1465 support can be added by customizing the @code{idlwave-help-doclib-name}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1466 and @code{idlwave-help-doclib-keyword} variables.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1467
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1468 @cindex Structure tags, in online help
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1469 @cindex Class tags, in online help
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1470 Help is also available for class structure tags (@code{self.TAG}), and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1471 generic structure tags, if structure tag completion is enabled
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1472 (@pxref{Structure Tag Completion}). This is implemented by visiting the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1473 tag within the class or structure definition source itself. Help is not
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1474 available on built-in system class tags.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1475
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1476 The help window is normally displayed in the same frame, but can be
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1477 popped-up in a separate frame. The following commands can be used to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1478 navigate inside the help system for source files:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1479
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1480 @multitable @columnfractions .15 .85
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1481 @item @kbd{@key{SPACE}}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1482 @tab Scroll forward one page.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1483 @item @kbd{@key{RET}}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1484 @tab Scroll forward one line.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1485 @item @kbd{@key{DEL}}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1486 @tab Scroll back one page.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1487 @item @kbd{h}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1488 @tab Jump to DocLib Header of the routine whose source is displayed
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1489 as help.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1490 @item @kbd{H}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1491 @tab Jump to the first DocLib Header in the file.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1492 @item @kbd{.} @r{(Dot)}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1493 @tab Jump back and forth between the routine definition (the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1494 @code{pro}/@code{function} statement) and the description of the help
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1495 item in the DocLib header.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1496 @item @kbd{F}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1497 @tab Fontify the buffer like source code. See the variable @code{idlwave-help-fontify-source-code}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1498 @item @kbd{q}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1499 @tab Kill the help window.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1500 @end multitable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1501
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1502
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1503 @defopt idlwave-help-use-dedicated-frame (@code{nil})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1504 Non-@code{nil} means use a separate frame for Online Help if possible.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1505 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1506
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1507 @defopt idlwave-help-frame-parameters
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1508 The frame parameters for the special Online Help frame.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1509 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1510
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1511 @defopt idlwave-max-popup-menu-items (@code{20})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1512 Maximum number of items per pane in pop-up menus.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1513 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1514
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1515 @defopt idlwave-extra-help-function
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1516 Function to call for help if the normal help fails.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1517 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1518
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1519 @defopt idlwave-help-fontify-source-code (@code{nil})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1520 Non-@code{nil} means fontify source code displayed as help.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1521 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1522
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1523 @defopt idlwave-help-source-try-header (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1524 Non-@code{nil} means try to find help in routine header when
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1525 displaying source file.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1526 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1527
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1528 @defopt idlwave-help-doclib-name (@code{"name"})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1529 The case-insensitive heading word in doclib headers to locate the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1530 @emph{name} section. Can be a regexp, e.g. @code{"\\(name\\|nom\\)"}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1531 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1532
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1533 @defopt idlwave-help-doclib-keyword (@code{"KEYWORD"})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1534 The case-insensitive heading word in doclib headers to locate the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1535 @emph{keywords} section. Can be a regexp.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1536 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1537
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1538
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1539 @node Completion, Routine Source, Online Help, The IDLWAVE Major Mode
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1540 @section Completion
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1541 @cindex Completion
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1542 @cindex Keyword completion
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1543 @cindex Method completion
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1544 @cindex Object method completion
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1545 @cindex Class name completion
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1546 @cindex Function name completion
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1547 @cindex Procedure name completion
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1548
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1549 @kindex M-@key{TAB}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1550 @kindex C-c C-i
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1551 IDLWAVE offers completion for class names, routine names, keywords,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1552 system variables, system variable tags, class structure tags, regular
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1553 structure tags and file names. As in many programming modes, completion
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1554 is bound to @kbd{M-@key{TAB}} (or simply @kbd{@key{TAB}} in the IDLWAVE
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1555 Shell --- @pxref{Using the Shell}). Completion uses exactly the same
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1556 internal information as routine info, so when necessary (rarely) it can
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1557 be updated with @kbd{C-c C-i} (@code{idlwave-update-routine-info}).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1558
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1559 The completion function is context sensitive and figures out what to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1560 complete based on the location of the point. Here are example lines and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1561 what @kbd{M-@key{TAB}} would try to complete when the cursor is on the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1562 position marked with a @samp{_}:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1563
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1564 @example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1565 plo_ @r{Procedure}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1566 x = a_ @r{Function}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1567 plot,xra_ @r{Keyword of @code{plot} procedure}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1568 plot,x,y,/x_ @r{Keyword of @code{plot} procedure}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1569 plot,min(_ @r{Keyword of @code{min} function}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1570 obj -> a_ @r{Object method (procedure)}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1571 a[2,3] = obj -> a_ @r{Object method (function)}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1572 x = obj_new('IDL_ @r{Class name}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1573 x = obj_new('MyCl',a_ @r{Keyword to @code{Init} method in class @code{MyCl}}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1574 pro A_ @r{Class name}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1575 pro _ @r{Fill in @code{Class::} of first method in this file}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1576 !v_ @r{System variable}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1577 !version.t_ @r{Structure tag of system variable}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1578 self.g_ @r{Class structure tag in methods}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1579 state.w_ @r{Structure tag, if tag completion enabled}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1580 name = 'a_ @r{File name (default inside quotes)}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1581 @end example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1582
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1583 @cindex Completion, ambiguity
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1584 @cindex Completion, forcing function name
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1585 The only place where completion is ambiguous is procedure/function
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1586 @emph{keywords} versus @emph{functions}. After @samp{plot,x,_}, IDLWAVE
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1587 will always assume a keyword to @samp{plot}. However, a function is
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1588 also a possible completion here. You can force completion of a function
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1589 name at such a location by using a prefix arg: @kbd{C-u M-@key{TAB}}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1590
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1591 Giving two prefix arguments (@kbd{C-u C-u M-@key{TAB}}) prompts for a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1592 regular expression to search among the commands to be completed. As
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1593 an example, completing a blank line in this way will allow you to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1594 search for a procedure matching a regexp.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1595
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1596 @cindex Scrolling the @file{*Completions*} window
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1597 @cindex Completion, scrolling
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1598 @cindex Completion, Online Help
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1599 @cindex Online Help in @file{*Completions*} buffer
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1600 If the list of completions is too long to fit in the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1601 @file{*Completions*} window, the window can be scrolled by pressing
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1602 @kbd{M-@key{TAB}} repeatedly. Online help (if installed) for each
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1603 possible completion is available by clicking with @kbd{Mouse-3} on the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1604 item. Items for which system online help (from the IDL manual) is
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1605 available will be emphasized (e.g. colored blue). For other items, the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1606 corresponding source code or DocLib header will be used as the help
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1607 text.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1608
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1609 @cindex Completion, cancelling
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1610 @cindex Cancelling completion
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1611 Completion is not a blocking operation --- you are free to continue
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1612 editing, enter commands, or simply ignore the @file{*Completions*}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1613 buffer during a completion operation. If, however, the most recent
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1614 command was a completion, @kbd{C-g} will remove the buffer and restore
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1615 the window configuration. You can also remove the buffer at any time
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1616 with no negative consequences.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1617
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1618 @defopt idlwave-keyword-completion-adds-equal (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1619 Non-@code{nil} means completion automatically adds @samp{=} after
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1620 completed keywords.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1621 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1622
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1623 @defopt idlwave-function-completion-adds-paren (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1624 Non-@code{nil} means completion automatically adds @samp{(} after
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1625 completed function. A value of `2' means also add the closing
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1626 parenthesis and position the cursor between the two.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1627 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1628
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1629 @defopt idlwave-completion-restore-window-configuration (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1630 Non-@code{nil} means restore window configuration after successful
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1631 completion.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1632 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1633
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1634 @defopt idlwave-highlight-help-links-in-completion (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1635 Non-@code{nil} means highlight completions for which system help is
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1636 available.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1637 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1638
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1639 @menu
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1640 * Case of Completed Words:: CaseOFcomPletedWords
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1641 * Object Method Completion and Class Ambiguity:: obj->Method, what?
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1642 * Object Method Completion in the Shell::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1643 * Class and Keyword Inheritance:: obj->Method, _EXTRA=e
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1644 * Structure Tag Completion:: Completing state.Tag
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1645 @end menu
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1646
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1647 @node Case of Completed Words, Object Method Completion and Class Ambiguity, Completion, Completion
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1648 @subsection Case of Completed Words
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1649 @cindex Case of completed words
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1650 @cindex Mixed case completion
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1651 IDL is a case-insensitive language, so casing is a matter of style
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1652 only. IDLWAVE helps maintain a consistent casing style for completed
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1653 items. The case of the completed words is determined by what is
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1654 already in the buffer. As an exception, when the partial word being
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1655 completed is all lower case, the completion will be lower case as
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1656 well. If at least one character is upper case, the string will be
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1657 completed in upper case or mixed case, depending on the value of the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1658 variable @code{idlwave-completion-case}. The default is to use upper
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1659 case for procedures, functions and keywords, and mixed case for object
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1660 class names and methods, similar to the conventions in the IDL
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1661 manuals. For instance, to enable mixed-case completion for routines
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1662 in addition to classes and methods, you need an entry such as
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1663 @code{(routine . preserve)} in that variable. To enable total control
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1664 over the case of completed items, independent of buffer context, set
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1665 @code{idlwave-completion-force-default-case} to non-@code{nil}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1666
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1667 @defopt idlwave-completion-case
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1668 Association list setting the case (UPPER/lower/Capitalized/MixedCase...)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1669 of completed words.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1670 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1671
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1672 @defopt idlwave-completion-force-default-case (@code{nil})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1673 Non-@code{nil} means completion will always honor the settings in
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1674 @code{idlwave-completion-case}. When nil (the default), entirely lower
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1675 case strings will always be completed to lower case, no matter what the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1676 settings in @code{idlwave-completion-case}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1677 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1678
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1679 @defopt idlwave-complete-empty-string-as-lower-case (@code{nil})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1680 Non-@code{nil} means the empty string is considered lower case for
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1681 completion.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1682 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1683
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1684 @node Object Method Completion and Class Ambiguity, Object Method Completion in the Shell, Case of Completed Words, Completion
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1685 @subsection Object Method Completion and Class Ambiguity
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1686 @cindex Object methods
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1687 @cindex Class ambiguity
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1688 @cindex @code{self} object, default class
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1689 An object method is not uniquely determined without the object's class.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1690 Since the class is almost always omitted in the calling source (as
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1691 required to obtain the true benefits of object-based programming),
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1692 IDLWAVE considers all available methods in all classes as possible
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1693 method name completions. The combined list of keywords of the current
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1694 method in @emph{all} known classes which contain that method will be
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1695 considered for keyword completion. In the @file{*Completions*} buffer,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1696 the matching classes will be shown next to each item (see option
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1697 @code{idlwave-completion-show-classes}). As a special case, the class
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1698 of an object called @samp{self} is always taken to be the class of the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1699 current routine, when in an IDLWAVE buffer. All inherits classes are
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1700 considered as well.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1701
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1702 @cindex Forcing class query.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1703 @cindex Class query, forcing
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1704 You can also call @code{idlwave-complete} with a prefix arg: @kbd{C-u
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1705 M-@key{TAB}}. IDLWAVE will then prompt you for the class in order to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1706 narrow down the number of possible completions. The variable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1707 @code{idlwave-query-class} can be configured to make such prompting the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1708 default for all methods (not recommended), or selectively for very
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1709 common methods for which the number of completing keywords would be too
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1710 large (e.g. @code{Init,SetProperty,GetProperty}).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1711
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1712 @cindex Saving object class on @code{->}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1713 @cindex @code{->}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1714 After you have specified the class for a particular statement (e.g. when
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1715 completing the method), IDLWAVE can remember it for the rest of the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1716 editing session. Subsequent completions in the same statement
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1717 (e.g. keywords) can then reuse this class information. This works by
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1718 placing a text property on the method invocation operator @samp{->},
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1719 after which the operator will be shown in a different face (bold by
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1720 default). The variable @code{idlwave-store-inquired-class} can be used
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1721 to turn it off or on.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1722
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1723 @defopt idlwave-completion-show-classes (@code{1})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1724 Non-@code{nil} means show up to that many classes in
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1725 @file{*Completions*} buffer when completing object methods and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1726 keywords.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1727 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1728
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1729 @defopt idlwave-completion-fontify-classes (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1730 Non-@code{nil} means fontify the classes in completions buffer.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1731 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1732
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1733 @defopt idlwave-query-class (@code{nil})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1734 Association list governing query for object classes during completion.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1735 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1736
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1737 @defopt idlwave-store-inquired-class (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1738 Non-@code{nil} means store class of a method call as text property on
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1739 @samp{->}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1740 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1741
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1742 @defopt idlwave-class-arrow-face
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1743 Face to highlight object operator arrows @samp{->} which carry a saved
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1744 class text property.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1745 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1746
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1747 @node Object Method Completion in the Shell, Class and Keyword Inheritance, Object Method Completion and Class Ambiguity, Completion
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1748 @subsection Object Method Completion in the Shell
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1749 @cindex Method Completion in Shell
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1750 In the IDLWAVE Shell (@pxref{The IDLWAVE Shell}), objects on which
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1751 methods are being invoked have a special property: they must exist as
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1752 variables, and so their class can be determined (for instance, using the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1753 @code{obj_class()} function). In the Shell, when attempting completion,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1754 routine info, or online help within a method routine, a query is sent to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1755 determine the class of the object. If this query is successful, the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1756 class found will be used to select appropriate completions, routine
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1757 info, or help. If unsuccessful, information from all known classes will
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1758 be used (as in the buffer).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1759
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1760 @node Class and Keyword Inheritance, Structure Tag Completion, Object Method Completion in the Shell, Completion
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1761 @subsection Class and Keyword Inheritance
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1762 @cindex Inheritance, class
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1763 @cindex Keyword inheritance
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1764 @cindex Inheritance, keyword
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1765
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1766 Class inheritance affects which methods are called in IDL. An object of
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1767 a class which inherits methods from one or more superclasses can
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1768 override that method by defining its own method of the same name, extend
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1769 the method by calling the method(s) of its superclass(es) in its
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1770 version, or inherit the method directly by making no modifications.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1771 IDLWAVE examines class definitions during completion and routine
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1772 information display, and records all inheritance information it finds.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1773 This information is displayed if appropriate with the calling sequence
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1774 for methods (@pxref{Routine Info}), as long as variable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1775 @code{idlwave-support-inheritance} is non-@code{nil}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1776
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1777 In many class methods, @emph{keyword} inheritance (@code{_EXTRA} and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1778 @code{_REF_EXTRA}) is used hand-in-hand with class inheritance and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1779 method overriding. E.g., in a @code{SetProperty} method, this technique
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1780 allows a single call @code{obj->SetProperty} to set properties up the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1781 entire class inheritance chain. This is often referred to as
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1782 @emph{chaining}, and is characterized by chained method calls like
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1783 @w{@code{self->MySuperClass::SetProperty,_EXTRA=e}}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1784
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1785 IDLWAVE can accommodate this special synergy between class and keyword
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1786 inheritance: if @code{_EXTRA} or @code{_REF_EXTRA} is detected among a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1787 method's keyword parameters, all keywords of superclass versions of
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1788 the method being considered can be included in completion. There is
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1789 of course no guarantee that this type of keyword chaining actually
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1790 occurs, but for some methods it's a very convenient assumption. The
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1791 variable @code{idlwave-keyword-class-inheritance} can be used to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1792 configure which methods have keyword inheritance treated in this
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1793 simple, class-driven way. By default, only @code{Init} and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1794 @code{(Get|Set)Property} are. The completion buffer will label
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1795 keywords based on their originating class.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1796
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1797 @defopt idlwave-support-inheritance (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1798 Non-@code{nil} means consider inheritance during completion, online help etc.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1799 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1800
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1801 @defopt idlwave-keyword-class-inheritance
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1802 A list of regular expressions to match methods for which simple
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1803 class-driven keyword inheritance will be used for Completion.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1804 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1805
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1806 @node Structure Tag Completion, , Class and Keyword Inheritance, Completion
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1807 @subsection Structure Tag Completion
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1808 @cindex Completion, structure tag
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1809 @cindex Structure tag completion
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1810
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1811 In many programs, especially those involving widgets, large structures
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1812 (e.g. the @samp{state} structure) are used to communicate among
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1813 routines. It is very convenient to be able to complete structure tags,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1814 in the same way as for instance variables (tags) of the @samp{self}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1815 object (@pxref{Object Method Completion and Class Ambiguity}). Add-in
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1816 code for structure tag completion is available in the form of a loadable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1817 completion module: @file{idlw-complete-structtag.el}. Tag completion in
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1818 structures is highly ambiguous (much more so than @samp{self}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1819 completion), so @code{idlw-complete-structtag} makes an unusual and very
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1820 specific assumption: the exact same variable name is used to refer to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1821 the structure in all parts of the program. This is entirely unenforced
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1822 by the IDL language, but is a typical convention. If you consistently
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1823 refer to the same structure with the same variable name
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1824 (e.g. @samp{state}), structure tags which are read from its definition
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1825 in the same file can be used for completion.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1826
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1827 Structure tag completion is not enabled by default. To enable it,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1828 simply add the following to your @file{.emacs}:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1829
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1830 @lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1831 (add-hook 'idlwave-load-hook
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1832 (lambda () (require 'idlw-complete-structtag)))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1833 @end lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1834
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1835 Once enabled, you'll also be able to access online help on the structure
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1836 tags, using the usual methods (@pxref{Online Help}). In addition,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1837 structure variables in the shell will be queried for tag names, similar
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1838 to the way object variables in the shell are queried for method names.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1839 So, e.g.:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1840
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1841 @example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1842 IDL> st.[Tab]
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1843 @end example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1844
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1845 @noindent will complete with all structure fields of the structure
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1846 @code{st}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1847
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1848 @node Routine Source, Resolving Routines, Completion, The IDLWAVE Major Mode
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1849 @section Routine Source
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1850 @cindex Routine source file
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1851 @cindex Module source file
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1852 @cindex Source file, of a routine
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1853 @kindex C-c C-v
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1854 In addition to clicking on a @i{Source:} line in the routine info
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1855 window, there is another way to quickly visit the source file of a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1856 routine. The command @kbd{C-c C-v} (@code{idlwave-find-module}) asks
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1857 for a module name, offering the same default as
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1858 @code{idlwave-routine-info} would have used, taken from nearby buffer
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1859 contents. In the minibuffer, specify a complete routine name (including
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1860 any class part). IDLWAVE will display the source file in another
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1861 window, positioned at the routine in question. You can also limit this
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1862 to a routine in the current buffer only, with completion, and a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1863 context-sensitive default, by using a single prefix (@kbd{C-u C-c C-v})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1864 or the convenience binding @kbd{C-c C-t}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1865
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1866 @cindex Buffers, killing
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1867 @cindex Killing autoloaded buffers
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1868 Since getting the source of a routine into a buffer is so easy with
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1869 IDLWAVE, too many buffers visiting different IDL source files are
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1870 sometimes created. The special command @kbd{C-c C-k}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1871 (@code{idlwave-kill-autoloaded-buffers}) can be used to easily remove
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1872 these buffers.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1873
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1874 @node Resolving Routines, Code Templates, Routine Source, The IDLWAVE Major Mode
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1875 @section Resolving Routines
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1876 @cindex @code{RESOLVE_ROUTINE}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1877 @cindex Compiling library modules
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1878 @cindex Routines, resolving
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1879
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1880 The key sequence @kbd{C-c =} calls the command @code{idlwave-resolve}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1881 and sends the line @samp{RESOLVE_ROUTINE, '@var{routine_name}'} to IDL
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1882 in order to resolve (compile) it. The default routine to be resolved is
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1883 taken from context, but you get a chance to edit it. Usually this is
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1884 not necessary, since IDL automatically discovers routines on its path.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1885
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1886 @code{idlwave-resolve} is one way to get a library module within reach
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1887 of IDLWAVE's routine info collecting functions. A better way is to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1888 keep routine information available in catalogs (@pxref{Catalogs}).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1889 Routine info on modules will then be available without the need to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1890 compile the modules first, and even without a running shell.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1891
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1892 @xref{Sources of Routine Info}, for more information on the ways IDLWAVE
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1893 collects data about routines, and how to update this information.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1894
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1895 @node Code Templates, Abbreviations, Resolving Routines, The IDLWAVE Major Mode
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1896 @section Code Templates
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1897 @cindex Code templates
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1898 @cindex Templates
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1899
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1900 IDLWAVE can insert IDL code templates into the buffer. For a few
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1901 templates, this is done with direct key bindings:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1902
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1903 @multitable @columnfractions .15 .85
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1904 @item @kbd{C-c C-c}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1905 @tab @code{CASE} statement template
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1906 @item @kbd{C-c C-f}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1907 @tab @code{FOR} loop template
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1908 @item @kbd{C-c C-r}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1909 @tab @code{REPEAT} loop template
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1910 @item @kbd{C-c C-w}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1911 @tab @code{WHILE} loop template
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1912 @end multitable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1913
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1914 All code templates are also available as abbreviations
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1915 (@pxref{Abbreviations}).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1916
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1917 @node Abbreviations, Actions, Code Templates, The IDLWAVE Major Mode
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1918 @section Abbreviations
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1919 @cindex Abbreviations
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1920
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1921 Special abbreviations exist to enable rapid entry of commonly used
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1922 commands. Emacs abbreviations are expanded by typing text into the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1923 buffer and pressing @key{SPC} or @key{RET}. The special abbreviations
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1924 used to insert code templates all start with a @samp{\} (the backslash),
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1925 or, optionally, any other character set in
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1926 @code{idlwave-abbrev-start-char}. IDLWAVE ensures that abbreviations are
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1927 only expanded where they should be (i.e., not in a string or comment),
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1928 and permits the point to be moved after an abbreviation expansion ---
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1929 very useful for positioning the mark inside of parentheses, etc.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1930
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1931 Special abbreviations are pre-defined for code templates and other
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1932 useful items. To visit the full list of abbreviations, use @kbd{M-x
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1933 idlwave-list-abbrevs}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1934
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1935 Template abbreviations:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1936
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1937 @multitable @columnfractions .15 .85
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1938 @item @code{\pr}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1939 @tab @code{PROCEDURE} template
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1940 @item @code{\fu}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1941 @tab @code{FUNCTION} template
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1942 @item @code{\c}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1943 @tab @code{CASE} statement template
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1944 @item @code{\f}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1945 @tab @code{FOR} loop template
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1946 @item @code{\r}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1947 @tab @code{REPEAT} loop template
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1948 @item @code{\w}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1949 @tab @code{WHILE} loop template
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1950 @item @code{\i}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1951 @tab @code{IF} statement template
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1952 @item @code{\elif}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1953 @tab @code{IF-ELSE} statement template
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1954 @end multitable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1955
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1956 String abbreviations:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1957
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1958 @multitable @columnfractions .15 .85
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1959 @item @code{\ap}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1960 @tab @code{arg_present()}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1961 @item @code{\b}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1962 @tab @code{begin}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1963 @item @code{\cb}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1964 @tab @code{byte()}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1965 @item @code{\cc}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1966 @tab @code{complex()}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1967 @item @code{\cd}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1968 @tab @code{double()}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1969 @item @code{\cf}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1970 @tab @code{float()}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1971 @item @code{\cl}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1972 @tab @code{long()}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1973 @item @code{\co}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1974 @tab @code{common}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1975 @item @code{\cs}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1976 @tab @code{string()}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1977 @item @code{\cx}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1978 @tab @code{fix()}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1979 @item @code{\e}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1980 @tab @code{else}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1981 @item @code{\ec}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1982 @tab @code{endcase}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1983 @item @code{\ee}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1984 @tab @code{endelse}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1985 @item @code{\ef}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1986 @tab @code{endfor}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1987 @item @code{\ei}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1988 @tab @code{endif else if}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1989 @item @code{\el}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1990 @tab @code{endif else}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1991 @item @code{\en}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1992 @tab @code{endif}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1993 @item @code{\er}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1994 @tab @code{endrep}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1995 @item @code{\es}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1996 @tab @code{endswitch}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1997 @item @code{\ew}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1998 @tab @code{endwhile}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1999 @item @code{\g}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2000 @tab @code{goto,}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2001 @item @code{\h}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2002 @tab @code{help,}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2003 @item @code{\ik}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2004 @tab @code{if keyword_set() then}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2005 @item @code{\iap}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2006 @tab @code{if arg_present() then}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2007 @item @code{\ine}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2008 @tab @code{if n_elements() eq 0 then}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2009 @item @code{\inn}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2010 @tab @code{if n_elements() ne 0 then}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2011 @item @code{\k}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2012 @tab @code{keyword_set()}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2013 @item @code{\n}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2014 @tab @code{n_elements()}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2015 @item @code{\np}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2016 @tab @code{n_params()}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2017 @item @code{\oi}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2018 @tab @code{on_ioerror,}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2019 @item @code{\or}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2020 @tab @code{openr,}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2021 @item @code{\ou}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2022 @tab @code{openu,}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2023 @item @code{\ow}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2024 @tab @code{openw,}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2025 @item @code{\p}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2026 @tab @code{print,}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2027 @item @code{\pt}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2028 @tab @code{plot,}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2029 @item @code{\pv}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2030 @tab @code{ptr_valid()}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2031 @item @code{\re}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2032 @tab @code{read,}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2033 @item @code{\rf}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2034 @tab @code{readf,}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2035 @item @code{\rt}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2036 @tab @code{return}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2037 @item @code{\ru}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2038 @tab @code{readu,}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2039 @item @code{\s}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2040 @tab @code{size()}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2041 @item @code{\sc}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2042 @tab @code{strcompress()}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2043 @item @code{\sl}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2044 @tab @code{strlowcase()}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2045 @item @code{\sm}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2046 @tab @code{strmid()}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2047 @item @code{\sn}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2048 @tab @code{strlen()}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2049 @item @code{\sp}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2050 @tab @code{strpos()}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2051 @item @code{\sr}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2052 @tab @code{strtrim()}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2053 @item @code{\st}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2054 @tab @code{strput()}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2055 @item @code{\su}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2056 @tab @code{strupcase()}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2057 @item @code{\t}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2058 @tab @code{then}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2059 @item @code{\u}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2060 @tab @code{until}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2061 @item @code{\wc}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2062 @tab @code{widget_control,}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2063 @item @code{\wi}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2064 @tab @code{widget_info()}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2065 @item @code{\wu}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2066 @tab @code{writeu,}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2067 @end multitable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2068
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2069 @noindent You can easily add your own abbreviations or override existing
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2070 abbrevs with @code{define-abbrev} in your mode hook, using the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2071 convenience function @code{idlwave-define-abbrev}:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2072
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2073 @lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2074 (add-hook 'idlwave-mode-hook
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2075 (lambda ()
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2076 (idlwave-define-abbrev "wb" "widget_base()"
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2077 (idlwave-keyword-abbrev 1))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2078 (idlwave-define-abbrev "ine" "IF N_Elements() EQ 0 THEN"
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2079 (idlwave-keyword-abbrev 11))))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2080 @end lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2081
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2082 Notice how the abbreviation (here @emph{wb}) and its expansion
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2083 (@emph{widget_base()}) are given as arguments, and the single argument to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2084 @code{idlwave-keyword-abbrev} (here @emph{1}) specifies how far back to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2085 move the point upon expansion (in this example, to put it between the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2086 parentheses).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2087
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2088 The abbreviations are expanded in upper or lower case, depending upon
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2089 the variables @code{idlwave-abbrev-change-case} and, for reserved word
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2090 templates, @code{idlwave-reserved-word-upcase} (@pxref{Case Changes}).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2091
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2092 @defopt idlwave-abbrev-start-char (@code{"\"})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2093 A single character string used to start abbreviations in abbrev mode.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2094 Beware of common characters which might naturally occur in sequence with
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2095 abbreviation strings.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2096 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2097
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2098 @defopt idlwave-abbrev-move (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2099 Non-@code{nil} means the abbrev hook can move point, e.g. to end up
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2100 between the parentheses of a function call.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2101 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2102
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2103 @node Actions, Doc Header, Abbreviations, The IDLWAVE Major Mode
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2104 @section Actions
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2105 @cindex Actions
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2106 @cindex Coding standards, enforcing
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2107
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2108 @emph{Actions} are special formatting commands which are executed
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2109 automatically while you write code in order to check the structure of
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2110 the program or to enforce coding standards. Most actions which have
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2111 been implemented in IDLWAVE are turned off by default, assuming that the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2112 average user wants her code the way she writes it. But if you are a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2113 lazy typist and want your code to adhere to certain standards, actions
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2114 can be helpful.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2115
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2116 Actions can be applied in three ways:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2117
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2118 @itemize @bullet
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2119 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2120 Some actions are applied directly while typing. For example, pressing
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2121 @samp{=} can run a check to make sure that this operator is surrounded
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2122 by spaces and insert these spaces if necessary. Pressing @key{SPC}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2123 after a reserved word can call a command to change the word to upper
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2124 case.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2125 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2126 When a line is re-indented with @key{TAB}, actions can be applied to the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2127 entire line. To enable this, the variable @code{idlwave-do-actions}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2128 must be non-@code{nil}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2129 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2130 @cindex Foreign code, adapting
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2131 @cindex Actions, applied to foreign code
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2132 Actions can also be applied to a larger piece of code, e.g. to convert
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2133 foreign code to your own style. To do this, mark the relevant part of
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2134 the code and execute @kbd{M-x expand-region-abbrevs}. Useful marking
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2135 commands are @kbd{C-x h} (the entire file) or @kbd{C-M-h} (the current
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2136 subprogram). @xref{Code Indentation}, for information how to adjust the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2137 indentation of the code.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2138 @end itemize
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2139
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2140 @defopt idlwave-do-actions (@code{nil})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2141 Non-@code{nil} means performs actions when indenting. Individual action
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2142 settings are described below and set separately.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2143 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2144
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2145 @menu
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2146 * Block Boundary Check:: Is the END statement correct?
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2147 * Padding Operators:: Enforcing space around `=' etc
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2148 * Case Changes:: Enforcing upper case keywords
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2149 @end menu
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2150
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2151 @node Block Boundary Check, Padding Operators, Actions, Actions
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2152 @subsection Block Boundary Check
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2153 @cindex Block boundary check
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2154 @cindex @code{END} type checking
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2155 @cindex @code{END}, automatic insertion
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2156 @cindex @code{END}, expanding
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2157 @cindex Block, closing
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2158 @cindex Closing a block
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2159
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2160 Whenever you type an @code{END} statement, IDLWAVE finds the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2161 corresponding start of the block and the cursor blinks back to that
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2162 location for a second. If you have typed a specific @code{END}, like
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2163 @code{ENDIF} or @code{ENDCASE}, you get a warning if that terminator
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2164 does not match the type of block it terminates.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2165
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2166 Set the variable @code{idlwave-expand-generic-end} in order to have all
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2167 generic @code{END} statements automatically expanded to the appropriate
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2168 type. You can also type @kbd{C-c ]} to close the current block by
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2169 inserting the appropriate @code{END} statement.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2170
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2171 @defopt idlwave-show-block (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2172 Non-@code{nil} means point blinks to block beginning for
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2173 @code{idlwave-show-begin}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2174 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2175
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2176 @defopt idlwave-expand-generic-end (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2177 Non-@code{nil} means expand generic END to ENDIF/ENDELSE/ENDWHILE etc.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2178 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2179
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2180 @defopt idlwave-reindent-end (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2181 Non-@code{nil} means re-indent line after END was typed.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2182 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2183
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2184 @node Padding Operators, Case Changes, Block Boundary Check, Actions
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2185 @subsection Padding Operators
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2186 @cindex Padding operators with spaces
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2187 @cindex Operators, padding with spaces
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2188 @cindex Space, around operators
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2189
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2190 Some operators can be automatically surrounded by spaces. This can
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2191 happen when the operator is typed, or later when the line is indented.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2192 IDLWAVE can pad the operators @samp{<}, @samp{>}, @samp{,}, @samp{=},
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2193 and @samp{->}, as well as the modified assignment operators
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2194 (@samp{AND=}, @samp{OR=}, etc.). This feature is turned off by default.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2195 If you want to turn it on, customize the variables
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2196 @code{idlwave-surround-by-blank} and @code{idlwave-do-actions} and turn
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2197 both on. You can also define similar actions for other operators by
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2198 using the function @code{idlwave-action-and-binding} in the mode hook.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2199 For example, to enforce space padding of the @samp{+} and @samp{*}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2200 operators (outside of strings and comments, of course), try this in
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2201 @file{.emacs}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2202
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2203 @lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2204 (add-hook 'idlwave-mode-hook
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2205 (lambda ()
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2206 (setq idlwave-surround-by-blank t) ; Turn this type of actions on
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2207 (idlwave-action-and-binding "*" '(idlwave-surround 1 1))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2208 (idlwave-action-and-binding "+" '(idlwave-surround 1 1))))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2209 @end lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2210
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2211 Note that the modified assignment operators which begin with a word
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2212 (@samp{AND=}, @samp{OR=}, @samp{NOT=}, etc.) require a leading space to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2213 be recognized (e.g @code{vAND=4} would be interpreted as a variable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2214 @code{vAND}). Also note that, since e.g., @code{>} and @code{>=} are
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2215 both valid operators, it is impossible to surround both by blanks while
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2216 they are being typed. Similarly with @code{&} and @code{&&}. For
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2217 these, a compromise is made: the padding is placed on the left, and if
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2218 the longer operator is keyed in, on the right as well (otherwise you
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2219 must insert spaces to pad right yourself, or press simply press Tab to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2220 repad everything if @code{idlwave-do-actions} is on).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2221
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2222 @defopt idlwave-surround-by-blank (@code{nil})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2223 Non-@code{nil} means enable @code{idlwave-surround}. If non-@code{nil},
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2224 @samp{=}, @samp{<}, @samp{>}, @samp{&}, @samp{,}, @samp{->}, and the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2225 modified assignment operators (@samp{AND=}, @samp{OR=}, etc.) are
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2226 surrounded with spaces by @code{idlwave-surround}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2227 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2228
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2229 @defopt idlwave-pad-keyword (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2230 Non-@code{nil} means space-pad the @samp{=} in keyword assignments.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2231 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2232
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2233 @node Case Changes, , Padding Operators, Actions
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2234 @subsection Case Changes
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2235 @cindex Case changes
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2236 @cindex Upcase, enforcing for reserved words
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2237 @cindex Downcase, enforcing for reserved words
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2238
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2239 Actions can be used to change the case of reserved words or expanded
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2240 abbreviations by customizing the variables
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2241 @code{idlwave-abbrev-change-case} and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2242 @code{idlwave-reserved-word-upcase}. If you want to change the case of
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2243 additional words automatically, put something like the following into
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2244 your @file{.emacs} file:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2245
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2246 @lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2247 (add-hook 'idlwave-mode-hook
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2248 (lambda ()
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2249 ;; Capitalize system vars
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2250 (idlwave-action-and-binding idlwave-sysvar '(capitalize-word 1) t)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2251 ;; Capitalize procedure name
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2252 (idlwave-action-and-binding "\\<\\(pro\\|function\\)\\>[ \t]*\\<"
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2253 '(capitalize-word 1) t)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2254 ;; Capitalize common block name
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2255 (idlwave-action-and-binding "\\<common\\>[ \t]+\\<"
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2256 '(capitalize-word 1) t)))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2257 @end lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2258
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2259 For more information, see the documentation string for the function
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2260 @code{idlwave-action-and-binding}. For information on controlling the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2261 case of routines, keywords, classes, and methods as they are completed, see
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2262 @ref{Completion}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2263
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2264 @defopt idlwave-abbrev-change-case (@code{nil})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2265 Non-@code{nil} means all abbrevs will be forced to either upper or lower
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2266 case. Valid values are @code{nil}, @code{t}, and @code{down}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2267 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2268
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2269 @defopt idlwave-reserved-word-upcase (@code{nil})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2270 Non-@code{nil} means reserved words will be made upper case via abbrev
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2271 expansion.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2272 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2273
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2274
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2275 @node Doc Header, Motion Commands, Actions, The IDLWAVE Major Mode
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2276 @section Documentation Header
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2277 @cindex Documentation header
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2278 @cindex DocLib header
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2279 @cindex Modification timestamp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2280 @cindex Header, for file documentation
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2281 @cindex Timestamp, in doc header.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2282 @cindex Changelog, in doc header.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2283
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2284 @kindex C-c C-h
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2285 @kindex C-c C-m
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2286 The command @kbd{C-c C-h} inserts a standard routine header into the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2287 buffer, with the usual fields for documentation (a different header can
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2288 be specified with @code{idlwave-file-header}). One of the keywords is
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2289 @samp{MODIFICATION HISTORY} under which the changes to a routine can be
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2290 recorded. The command @kbd{C-c C-m} jumps to the @samp{MODIFICATION
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2291 HISTORY} of the current routine or file and inserts the user name with a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2292 timestamp.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2293
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2294 @defopt idlwave-file-header
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2295 The doc-header template or a path to a file containing it.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2296 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2297
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2298 @defopt idlwave-header-to-beginning-of-file (@code{nil})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2299 Non-@code{nil} means the documentation header will always be at start
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2300 of file.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2301 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2302
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2303 @defopt idlwave-timestamp-hook
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2304 The hook function used to update the timestamp of a function.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2305 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2306
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2307 @defopt idlwave-doc-modifications-keyword
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2308 The modifications keyword to use with the log documentation commands.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2309 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2310
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2311 @defopt idlwave-doclib-start
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2312 Regexp matching the start of a document library header.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2313 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2314
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2315 @defopt idlwave-doclib-end
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2316 Regexp matching the start of a document library header.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2317 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2318
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2319 @node Motion Commands, Misc Options, Doc Header, The IDLWAVE Major Mode
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2320 @section Motion Commands
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2321 @cindex Motion commands
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2322 @cindex Program structure, moving through
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2323 @cindex Code structure, moving through
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2324 @cindex @file{Func-menu}, XEmacs package
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2325 @cindex @file{Imenu}, Emacs package
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2326 @cindex Function definitions, jumping to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2327 @cindex Procedure definitions, jumping to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2328
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2329 IDLWAVE supports both @file{Imenu} and @file{Func-menu}, two packages
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2330 which make it easy to jump to the definitions of functions and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2331 procedures in the current file with a pop-up selection. To bind
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2332 @file{Imenu} to a mouse-press, use in your @file{.emacs}:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2333
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2334 @lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2335 (define-key global-map [S-down-mouse-3] 'imenu)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2336 @end lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2337
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2338 @cindex @file{Speedbar}, Emacs package
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2339
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2340 In addition, @file{Speedbar} support allows convenient navigation of a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2341 source tree of IDL routine files, quickly stepping to routine
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2342 definitions. See @code{Tools->Display Speedbar}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2343
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2344 Several commands allow you to move quickly through the structure of an
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2345 IDL program:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2346
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2347 @multitable @columnfractions .15 .85
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2348 @item @kbd{C-M-a}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2349 @tab Beginning of subprogram
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2350 @item @kbd{C-M-e}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2351 @tab End of subprogram
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2352 @item @kbd{C-c @{}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2353 @tab Beginning of block (stay inside the block)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2354 @item @kbd{C-c @}}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2355 @tab End of block (stay inside the block)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2356 @item @kbd{C-M-n}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2357 @tab Forward block (on same level)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2358 @item @kbd{C-M-p}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2359 @tab Backward block (on same level)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2360 @item @kbd{C-M-d}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2361 @tab Down block (enters a block)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2362 @item @kbd{C-M-u}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2363 @tab Backward up block (leaves a block)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2364 @item @kbd{C-c C-n}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2365 @tab Next Statement
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2366 @end multitable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2367
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2368
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2369 @node Misc Options, , Motion Commands, The IDLWAVE Major Mode
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2370 @section Miscellaneous Options
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2371 @cindex Hooks
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2372
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2373 @defopt idlwave-help-application
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2374 The external application providing reference help for programming.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2375 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2376
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2377 @defopt idlwave-startup-message (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2378 Non-@code{nil} means display a startup message when @code{idlwave-mode}'
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2379 is first called.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2380 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2381
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2382 @defopt idlwave-mode-hook
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2383 Normal hook. Executed when a buffer is put into @code{idlwave-mode}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2384 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2385
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2386 @defopt idlwave-load-hook
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2387 Normal hook. Executed when @file{idlwave.el} is loaded.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2388 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2389
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2390 @node The IDLWAVE Shell, Acknowledgements, The IDLWAVE Major Mode, Top
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2391 @chapter The IDLWAVE Shell
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2392 @cindex IDLWAVE shell
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2393 @cindex Major mode, @code{idlwave-shell-mode}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2394 @cindex IDL, as Emacs subprocess
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2395 @cindex Subprocess of Emacs, IDL
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2396 @cindex Comint, Emacs package
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2397 @cindex Windows
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2398 @cindex MacOS
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2399
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2400 The IDLWAVE shell is an Emacs major mode which permits running the IDL
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2401 program as an inferior process of Emacs, and works closely with the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2402 IDLWAVE major mode in buffers. It can be used to work with IDL
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2403 interactively, to compile and run IDL programs in Emacs buffers and to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2404 debug these programs. The IDLWAVE shell is built on @file{comint}, an
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2405 Emacs packages which handles the communication with the IDL program.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2406 Unfortunately, IDL for Windows does not have command-prompt versions and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2407 thus do not allow the interaction with Emacs --- so the IDLWAVE shell
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2408 currently only works under Unix and MacOSX.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2409
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2410 @menu
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2411 * Starting the Shell:: How to launch IDL as a subprocess
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2412 * Using the Shell:: Interactively working with the Shell
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2413 * Commands Sent to the Shell::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2414 * Debugging IDL Programs::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2415 * Examining Variables::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2416 * Custom Expression Examination::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2417 @end menu
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2418
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2419 @node Starting the Shell, Using the Shell, The IDLWAVE Shell, The IDLWAVE Shell
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2420 @section Starting the Shell
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2421 @cindex Starting the shell
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2422 @cindex Shell, starting
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2423 @cindex Dedicated frame, for shell buffer
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2424 @cindex Frame, for shell buffer
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2425 @cindex Subprocess of Emacs, IDL
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2426
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2427 @kindex C-c C-s
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2428 The IDLWAVE shell can be started with the command @kbd{M-x
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2429 idlwave-shell}. In @code{idlwave-mode} the function is bound to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2430 @kbd{C-c C-s}. It creates a buffer @file{*idl*} which is used to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2431 interact with the shell. If the shell is already running, @kbd{C-c
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2432 C-s} will simply switch to the shell buffer. The command @kbd{C-c
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2433 C-l} (@code{idlwave-shell-recenter-shell-window}) displays the shell
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2434 window without selecting it. The shell can also be started
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2435 automatically when another command tries to send a command to it. To
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2436 enable auto start, set the variable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2437 @code{idlwave-shell-automatic-start} to @code{t}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2438
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2439 In order to create a separate frame for the IDLWAVE shell buffer, call
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2440 @code{idlwave-shell} with a prefix argument: @kbd{C-u C-c C-s} or
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2441 @kbd{C-u C-c C-l}. If you always want a dedicated frame for the shell
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2442 window, configure the variable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2443 @code{idlwave-shell-use-dedicated-frame}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2444
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2445 To launch a quick IDLWAVE shell directly from a shell prompt without
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2446 an IDLWAVE buffer (e.g., as a replacement for running inside an
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2447 xterm), define a system alias with the following content:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2448
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2449 @example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2450 emacs -geometry 80x32 -eval "(idlwave-shell 'quick)"
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2451 @end example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2452
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2453 Replace the @samp{-geometry 80x32} option with @samp{-nw} if you prefer
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2454 the Emacs process to run directly inside the terminal window.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2455
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2456 @cindex ENVI
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2457 @cindex IDL> Prompt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2458
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2459 To use IDLWAVE with ENVI or other custom packages which change the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2460 @samp{IDL> } prompt, you must change the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2461 @code{idlwave-shell-prompt-pattern}, which defaults to @samp{"^ ?IDL>
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2462 "}. Normally, you can just replace the @samp{IDL} in this expression
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2463 with the prompt you see. A suitable pattern which matches the prompt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2464 for both ENVI and IDL simultaneously is @samp{"^ ?\\(ENVI\\|IDL\\)> "}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2465
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2466 @defopt idlwave-shell-explicit-file-name (@file{idl})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2467 This is the command to run IDL.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2468 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2469
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2470 @defopt idlwave-shell-command-line-options
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2471 A list of command line options for calling the IDL program.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2472 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2473
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2474 @defopt idlwave-shell-prompt-pattern
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2475 Regexp to match IDL prompt at beginning of a line.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2476 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2477
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2478 @defopt idlwave-shell-process-name
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2479 Name to be associated with the IDL process.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2480 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2481
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2482 @defopt idlwave-shell-automatic-start (@code{nil})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2483 Non-@code{nil} means attempt to invoke idlwave-shell if not already
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2484 running.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2485 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2486
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2487 @defopt idlwave-shell-initial-commands
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2488 Initial commands, separated by newlines, to send to IDL.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2489 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2490
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2491 @defopt idlwave-shell-save-command-history (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2492 Non-@code{nil} means preserve command history between sessions.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2493 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2494
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2495 @defopt idlwave-shell-command-history-file (@file{~/.idlwave/.idlwhist})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2496 The file in which the command history of the idlwave shell is saved.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2497 Unless it's an absolute path, it goes in
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2498 @code{idlwave-config-directory}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2499 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2500
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2501 @defopt idlwave-shell-use-dedicated-frame (@code{nil})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2502 Non-@code{nil} means IDLWAVE should use a special frame to display the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2503 shell buffer.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2504 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2505
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2506 @defopt idlwave-shell-use-dedicated-window (@code{nil})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2507 Non-@code{nil} means use a dedicated window for the shell, taking care
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2508 not it replace it with other buffers.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2509 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2510
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2511 @defopt idlwave-shell-frame-parameters
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2512 The frame parameters for a dedicated idlwave-shell frame.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2513 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2514
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2515 @defopt idlwave-shell-raise-frame (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2516 Non-@code{nil} means `idlwave-shell' raises the frame showing the shell
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2517 window.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2518 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2519
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2520 @defopt idlwave-shell-temp-pro-prefix
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2521 The prefix for temporary IDL files used when compiling regions.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2522 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2523
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2524 @cindex Hooks
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2525 @defopt idlwave-shell-mode-hook
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2526 Hook for customizing @code{idlwave-shell-mode}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2527 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2528
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2529 @node Using the Shell, Commands Sent to the Shell, Starting the Shell, The IDLWAVE Shell
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2530 @section Using the Shell
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2531 @cindex Comint
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2532 @cindex Shell, basic commands
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2533
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2534 The IDLWAVE shell works in the same fashion as other shell modes in
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2535 Emacs. It provides command history, command line editing and job
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2536 control. The @key{UP} and @key{DOWN} arrows cycle through the input
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2537 history just like in an X terminal@footnote{This is different from
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2538 normal Emacs/Comint behavior, but more like an xterm. If you prefer the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2539 default comint functionality, check the variable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2540 @code{idlwave-shell-arrows-do-history}.}. The history is preserved
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2541 between emacs and IDL sessions. Here is a list of commonly used
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2542 commands:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2543
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2544 @multitable @columnfractions .12 .88
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2545 @item @key{UP}, @key{M-p}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2546 @tab Cycle backwards in input history
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2547 @item @key{DOWN}, @key{M-n}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2548 @tab Cycle forwards in input history
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2549 @item @kbd{M-r}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2550 @tab Previous input matching a regexp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2551 @item @kbd{M-s}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2552 @tab Next input matching a regexp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2553 @item @kbd{return}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2554 @tab Send input or copy line to current prompt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2555 @item @kbd{C-c C-a}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2556 @tab Beginning of line; skip prompt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2557 @item @kbd{C-c C-u}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2558 @tab Kill input to beginning of line
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2559 @item @kbd{C-c C-w}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2560 @tab Kill word before cursor
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2561 @item @kbd{C-c C-c}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2562 @tab Send ^C
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2563 @item @kbd{C-c C-z}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2564 @tab Send ^Z
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2565 @item @kbd{C-c C-\}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2566 @tab Send ^\
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2567 @item @kbd{C-c C-o}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2568 @tab Delete last batch of process output
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2569 @item @kbd{C-c C-r}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2570 @tab Show last batch of process output
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2571 @item @kbd{C-c C-l}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2572 @tab List input history
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2573 @end multitable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2574
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2575 In addition to these standard @file{comint} commands,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2576 @code{idlwave-shell-mode} provides many of the same commands which
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2577 simplify writing IDL code available in IDLWAVE buffers. This includes
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2578 abbreviations, online help, and completion. See @ref{Routine Info} and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2579 @ref{Online Help} and @ref{Completion} for more information on these
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2580 commands.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2581
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2582 @cindex Completion, in the shell
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2583 @cindex Routine info, in the shell
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2584 @cindex Online Help, in the shell
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2585 @multitable @columnfractions .12 .88
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2586 @item @kbd{@key{TAB}}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2587 @tab Completion of file names (between quotes and after executive
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2588 commands @samp{.run} and @samp{.compile}), routine names, class names,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2589 keywords, system variables, system variable tags etc.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2590 (@code{idlwave-shell-complete}).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2591 @item @kbd{M-@key{TAB}}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2592 @tab Same as @key{TAB}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2593 @item @kbd{C-c ?}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2594 @tab Routine Info display (@code{idlwave-routine-info})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2595 @item @kbd{M-?}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2596 @tab IDL online help on routine (@code{idlwave-routine-info-from-idlhelp})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2597 @item @kbd{C-c C-i}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2598 @tab Update routine info from buffers and shell
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2599 (@code{idlwave-update-routine-info})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2600 @item @kbd{C-c C-v}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2601 @tab Find the source file of a routine (@code{idlwave-find-module})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2602 @item @kbd{C-c C-t}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2603 @tab Find the source file of a routine in the currently visited file
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2604 (@code{idlwave-find-module-this-file}).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2605 @item @kbd{C-c =}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2606 @tab Compile a library routine (@code{idlwave-resolve})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2607 @end multitable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2608
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2609 @defopt idlwave-shell-arrows-do-history (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2610 Non-@code{nil} means @key{UP} and @key{DOWN} arrows move through command
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2611 history like xterm.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2612 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2613
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2614 @defopt idlwave-shell-comint-settings
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2615 Alist of special settings for the comint variables in the IDLWAVE Shell.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2616 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2617
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2618 @defopt idlwave-shell-file-name-chars
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2619 The characters allowed in file names, as a string. Used for file name
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2620 completion.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2621 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2622
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2623 @defopt idlwave-shell-graphics-window-size
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2624 Size of IDL graphics windows popped up by special IDLWAVE command.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2625 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2626
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2627 @cindex Input mode
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2628 @cindex Character input mode (Shell)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2629 @cindex Line input mode (Shell)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2630 @cindex Magic spells, for input mode
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2631 @cindex Spells, magic
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2632 IDLWAVE works in line input mode: You compose a full command line, using
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2633 all the power Emacs gives you to do this. When you press @key{RET}, the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2634 whole line is sent to IDL. Sometimes it is necessary to send single
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2635 characters (without a newline), for example when an IDL program is
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2636 waiting for single character input with the @code{GET_KBRD} function.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2637 You can send a single character to IDL with the command @kbd{C-c C-x}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2638 (@code{idlwave-shell-send-char}). When you press @kbd{C-c C-y}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2639 (@code{idlwave-shell-char-mode-loop}), IDLWAVE runs a blocking loop
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2640 which accepts characters and immediately sends them to IDL. The loop
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2641 can be exited with @kbd{C-g}. It terminates also automatically when the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2642 current IDL command is finished. Check the documentation of the two
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2643 variables described below for a way to make IDL programs trigger
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2644 automatic switches of the input mode.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2645
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2646 @defopt idlwave-shell-use-input-mode-magic (@code{nil})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2647 Non-@code{nil} means IDLWAVE should check for input mode spells in
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2648 output.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2649 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2650
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2651 @defopt idlwave-shell-input-mode-spells
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2652 The three regular expressions which match the magic spells for input
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2653 modes.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2654 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2655
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2656 @node Commands Sent to the Shell, Debugging IDL Programs, Using the Shell, The IDLWAVE Shell
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2657 @section Commands Sent to the Shell
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2658 @cindex Commands in shell, showing
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2659 @cindex Showing commands in shell
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2660
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2661 The IDLWAVE buffers and shell interact very closely. In addition to the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2662 normal commands you enter at the @code{IDL>} prompt, many other special
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2663 commands are sent to the shell, sometimes as a direct result of invoking
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2664 a key command, menu item, or toolbar button, but also automatically, as
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2665 part of the normal flow of information updates between the buffer and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2666 shell.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2667
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2668 The commands sent include @code{breakpoint}, @code{.step} and other
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2669 debug commands (@pxref{Debugging IDL Programs}), @code{.run} and other
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2670 compilation statements (@pxref{Compiling Programs}), examination
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2671 commands like @code{print} and @code{help} (@pxref{Examining
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2672 Variables}), and other special purpose commands designed to keep
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2673 information on the running shell current.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2674
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2675 By default, much of this background shell input and output is hidden
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2676 from the user, but this is configurable. The custom variable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2677 @code{idlwave-abbrev-show-commands} allows you to configure which
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2678 commands sent to the shell are shown there. For a related customization
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2679 for separating the output of @emph{examine} commands, see @ref{Examining
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2680 Variables}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2681
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2682 @defopt idlwave-shell-show-commands (@code{'(run misc breakpoint)})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2683 A list of command types to echo in the shell when sent. Possible values
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2684 are @code{run} for @code{.run}, @code{.compile} and other run commands,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2685 @code{misc} for lesser used commands like @code{window},
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2686 @code{retall},@code{close}, etc., @code{breakpoint} for breakpoint
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2687 setting and clearing commands, and @code{debug} for other debug,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2688 stepping, and continue commands. In addition, if the variable is set to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2689 the single symbol @code{'everything}, all the copious shell input is
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2690 displayed (which is probably only useful for debugging purposes).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2691 N.B. For hidden commands which produce output by side-effect, that
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2692 output remains hidden (e.g., stepping through a @code{print} command).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2693 As a special case, any error message in the output will be displayed
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2694 (e.g., stepping to an error).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2695 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2696
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2697 @node Debugging IDL Programs, Examining Variables, Commands Sent to the Shell, The IDLWAVE Shell
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2698 @section Debugging IDL Programs
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2699 @cindex Debugging
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2700 @cindex Keybindings for debugging
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2701 @cindex Toolbar
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2702
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2703 Programs can be compiled, run, and debugged directly from the source
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2704 buffer in Emacs, walking through arbitrarily deeply nested code,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2705 printing expressions and skipping up and down the calling stack along
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2706 the way. IDLWAVE makes compiling and debugging IDL programs far less
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2707 cumbersome by providing a full-featured, key/menu/toolbar-driven
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2708 interface to commands like @code{breakpoint}, @code{.step},
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2709 @code{.run}, etc. It can even perform complex debug operations not
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2710 natively supported by IDL (like continuing to the line at the cursor).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2711
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2712 The IDLWAVE shell installs key bindings both in the shell buffer and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2713 in all IDL code buffers of the current Emacs session, so debug
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2714 commands work in both places (in the shell, commands operate on the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2715 last file compiled). On Emacs versions which support it, a debugging
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2716 toolbar is also installed. The toolbar display can be toggled with
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2717 @kbd{C-c C-d C-t} (@code{idlwave-shell-toggle-toolbar}).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2718
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2719
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2720 @defopt idlwave-shell-use-toolbar (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2721 Non-@code{nil} means use the debugging toolbar in all IDL related
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2722 buffers.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2723 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2724
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2725 @menu
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2726 * A Tale of Two Modes::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2727 * Debug Key Bindings::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2728 * Breakpoints and Stepping::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2729 * Compiling Programs::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2730 * Walking the Calling Stack::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2731 * Electric Debug Mode::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2732 @end menu
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2733
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2734
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2735 @node A Tale of Two Modes, Debug Key Bindings, Debugging IDL Programs, Debugging IDL Programs
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2736 @subsection A Tale of Two Modes
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2737 @cindex Electric Debug Mode
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2738 @cindex Debugging Interface
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2739
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2740 The many debugging, compiling, and examination commands provided in
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2741 IDLWAVE are available simultaneously through two different interfaces:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2742 the original, multi-key command interface, and the new Electric Debug
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2743 Mode. The functionality they offer is similar, but the way you interact
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2744 with them is quite different. The main difference is that, in Electric
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2745 Debug Mode, the source buffers are made read-only, and single
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2746 key-strokes are used to step through, examine expressions, set and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2747 remove breakpoints, etc. The same variables, prefix arguments, and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2748 settings apply to both versions, and both can be used interchangeably.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2749 By default, when breakpoints are hit, Electric Debug Mode is enabled.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2750 The traditional interface is described first. @xref{Electric Debug
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2751 Mode}, for more on that mode. Note that electric debug mode can be
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2752 prevented from activating automatically by customizing the variable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2753 @code{idlwave-shell-automatic-electric-debug}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2754
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2755 @node Debug Key Bindings, Breakpoints and Stepping, A Tale of Two Modes, Debugging IDL Programs
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2756 @subsection Debug Key Bindings
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2757 @kindex C-c C-d
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2758 @cindex Key bindings
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2759
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2760 The standard debugging key bindings are always available by default on
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2761 the prefix key @kbd{C-c C-d}, so, for example, setting a breakpoint is
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2762 done with @kbd{C-c C-d C-b}, and compiling a source file with @kbd{C-c
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2763 C-d C-c}. You can also easily configure IDLWAVE to use one or more
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2764 modifier keys not in use by other commands, in lieu of the prefix
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2765 @kbd{C-c C-d} (though these bindings will typically also be available
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2766 --- see @code{idlwave-shell-activate-prefix-keybindings}). For
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2767 example, if you include in @file{.emacs}:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2768
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2769 @lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2770 (setq idlwave-shell-debug-modifiers '(control shift))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2771 @end lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2772
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2773 @noindent a breakpoint can then be set by pressing @kbd{b} while holding down
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2774 @kbd{shift} and @kbd{control} keys, i.e. @kbd{C-S-b}. Compiling a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2775 source file will be on @kbd{C-S-c}, deleting a breakpoint @kbd{C-S-d},
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2776 etc. In the remainder of this chapter we will assume that the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2777 @kbd{C-c C-d} bindings are active, but each of these bindings will
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2778 have an equivalent shortcut if modifiers are given in the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2779 @code{idlwave-shell-debug-modifiers} variable (@pxref{Lesson II --
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2780 Customization}). A much simpler and faster form of debugging for
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2781 running code is also available by default --- see @ref{Electric Debug
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2782 Mode}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2783
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2784 @defopt idlwave-shell-prefix-key (@kbd{C-c C-d})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2785 The prefix key for the debugging map
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2786 @code{idlwave-shell-mode-prefix-map}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2787 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2788
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2789 @defopt idlwave-shell-activate-prefix-keybindings (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2790 Non-@code{nil} means debug commands will be bound to the prefix
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2791 key, like @kbd{C-c C-d C-b}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2792 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2793
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2794 @defopt idlwave-shell-debug-modifiers (@code{nil})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2795 List of modifier keys to use for additional, alternative binding of
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2796 debugging commands in the shell and source buffers. Can be one or
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2797 more of @code{control}, @code{meta}, @code{super}, @code{hyper},
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2798 @code{alt}, and @code{shift}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2799 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2800
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2801 @node Breakpoints and Stepping, Compiling Programs, Debug Key Bindings, Debugging IDL Programs
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2802 @subsection Breakpoints and Stepping
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2803 @cindex Breakpoints
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2804 @cindex Stepping
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2805 @cindex Execution, controlled
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2806
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2807 @kindex C-c C-d C-b
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2808 @kindex C-c C-d C-b
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2809 IDLWAVE helps you set breakpoints and step through code. Setting a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2810 breakpoint in the current line of the source buffer is accomplished
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2811 with @kbd{C-c C-d C-b} (@code{idlwave-shell-break-here}). With a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2812 prefix arg of 1 (i.e. @kbd{C-1 C-c C-d C-b}), the breakpoint gets a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2813 @code{/ONCE} keyword, meaning that it will be deleted after first use.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2814 With a numeric prefix greater than one (e.g. @kbd{C-4 C-c C-d C-b}),
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2815 the breakpoint will only be active the @code{nth} time it is hit.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2816 With a single non-numeric prefix (i.e. @kbd{C-u C-c C-d C-b}), prompt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2817 for a condition --- an IDL expression to be evaluated and trigger the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2818 breakpoint only if true. To clear the breakpoint in the current line,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2819 use @kbd{C-c C-d C-d} (@code{idlwave-clear-current-bp}). When
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2820 executed from the shell window, the breakpoint where IDL is currently
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2821 stopped will be deleted. To clear all breakpoints, use @kbd{C-c C-d
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2822 C-a} (@code{idlwave-clear-all-bp}). Breakpoints can also be disabled
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2823 and re-enabled: @kbd{C-c C-d C-\}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2824 (@code{idlwave-shell-toggle-enable-current-bp}).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2825
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2826 Breakpoint lines are highlighted or indicated with an icon in the source
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2827 code (different icons for conditional, after, and other break types).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2828 Disabled breakpoints are @emph{grayed out} by default. Note that IDL
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2829 places breakpoints as close as possible on or after the line you
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2830 specify. IDLWAVE queries the shell for the actual breakpoint location
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2831 which was set, so the exact line you specify may not be marked. You can
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2832 re-sync the breakpoint list and update the display at any time (e.g., if
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2833 you add or remove some on the command line) using @kbd{C-c C-d C-l}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2834
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2835 In recent IDLWAVE versions, the breakpoint line is highlighted when the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2836 mouse is moved over it, and a tooltip pops up describing the break
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2837 details. @kbd{Mouse-3} on the breakpoint line pops up a menu of
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2838 breakpoint actions, including clearing, disabling, and adding or
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2839 changing break conditions or ``after'' break count.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2840
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2841 Once the program has stopped somewhere, you can step through it. The
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2842 most important stepping commands are @kbd{C-c C-d C-s} to execute one
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2843 line of IDL code ("step into"); @kbd{C-c C-d C-n} to step a single line,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2844 treating procedure and function calls as a single step ("step over");
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2845 @kbd{C-c C-d C-h} to continue execution to the line at the cursor and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2846 @kbd{C-c C-d C-r} to continue execution. @xref{Commands Sent to the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2847 Shell}, for information on displaying or hiding the breakpoint and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2848 stepping commands the shell receives. Here is a summary of the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2849 breakpoint and stepping commands:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2850
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2851 @multitable @columnfractions .23 .77
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2852 @item @kbd{C-c C-d C-b}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2853 @tab Set breakpoint (@code{idlwave-shell-break-here})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2854 @item @kbd{C-c C-d C-i}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2855 @tab Set breakpoint in module named here (@code{idlwave-shell-break-in})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2856 @item @kbd{C-c C-d C-d}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2857 @tab Clear current breakpoint (@code{idlwave-shell-clear-current-bp})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2858 @item @kbd{C-c C-d C-a}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2859 @tab Clear all breakpoints (@code{idlwave-shell-clear-all-bp})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2860 @item @kbd{C-c C-d [}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2861 @tab Go to the previous breakpoint (@code{idlwave-shell-goto-previous-bp})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2862 @item @kbd{C-c C-d ]}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2863 @tab Go to the next breakpoint (@code{idlwave-shell-goto-next-bp})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2864 @item @kbd{C-c C-d C-\}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2865 @tab Disable/Enable current breakpoint (@code{idlwave-shell-toggle-enable-current-bp})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2866 @item @kbd{C-c C-d C-j}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2867 @tab Set a breakpoint at the beginning of the enclosing routine.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2868 @item @kbd{C-c C-d C-s}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2869 @tab Step, into function calls (@code{idlwave-shell-step})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2870 @item @kbd{C-c C-d C-n}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2871 @tab Step, over function calls (@code{idlwave-shell-stepover})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2872 @item @kbd{C-c C-d C-k}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2873 @tab Skip one statement (@code{idlwave-shell-skip})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2874 @item @kbd{C-c C-d C-u}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2875 @tab Continue to end of block (@code{idlwave-shell-up})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2876 @item @kbd{C-c C-d C-m}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2877 @tab Continue to end of function (@code{idlwave-shell-return})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2878 @item @kbd{C-c C-d C-o}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2879 @tab Continue past end of function (@code{idlwave-shell-out})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2880 @item @kbd{C-c C-d C-h}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2881 @tab Continue to line at cursor position (@code{idlwave-shell-to-here})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2882 @item @kbd{C-c C-d C-r}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2883 @tab Continue execution to next breakpoint, if any (@code{idlwave-shell-cont})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2884 @item @kbd{C-c C-d C-up}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2885 @tab Show higher level in calling stack (@code{idlwave-shell-stack-up})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2886 @item @kbd{C-c C-d C-down}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2887 @tab Show lower level in calling stack (@code{idlwave-shell-stack-down})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2888 @end multitable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2889
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2890 All of these commands have equivalents in Electric Debug Mode, which
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2891 provides faster single-key access (@pxref{Electric Debug Mode}).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2892
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2893 The line where IDL is currently stopped, at breakpoints, halts, and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2894 errors, etc., is marked with a color overlay or arrow, depending on the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2895 setting in @code{idlwave-shell-mark-stop-line}. If an overlay face is
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2896 used to mark the stop line (as it is by default), when stepping through
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2897 code, the face color is temporarily changed to gray, until IDL completes
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2898 the next command and moves to the new line.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2899
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2900 @defopt idlwave-shell-mark-breakpoints (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2901 Non-@code{nil} means mark breakpoints in the source file buffers. The
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2902 value indicates the preferred method. Valid values are @code{nil},
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2903 @code{t}, @code{face}, and @code{glyph}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2904 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2905
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2906 @defopt idlwave-shell-breakpoint-face
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2907 The face for breakpoint lines in the source code if
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2908 @code{idlwave-shell-mark-breakpoints} has the value @code{face}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2909 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2910
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2911 @defopt idlwave-shell-breakpoint-popup-menu (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2912 Whether to pop-up a menu and present a tooltip description on
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2913 breakpoint lines.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2914 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2915
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2916 @defopt idlwave-shell-mark-stop-line (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2917 Non-@code{nil} means mark the source code line where IDL is currently
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2918 stopped. The value specifies the preferred method. Valid values are
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2919 @code{nil}, @code{t}, @code{arrow}, and @code{face}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2920 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2921
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2922 @defopt idlwave-shell-overlay-arrow (@code{">"})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2923 The overlay arrow to display at source lines where execution halts, if
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2924 configured in @code{idlwave-shell-mark-stop-line}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2925 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2926
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2927 @defopt idlwave-shell-stop-line-face
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2928 The face which highlights the source line where IDL is stopped, if
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2929 configured in @code{idlwave-shell-mark-stop-line}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2930 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2931
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2932
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2933 @node Compiling Programs, Walking the Calling Stack, Breakpoints and Stepping, Debugging IDL Programs
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2934 @subsection Compiling Programs
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2935 @cindex Compiling programs
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2936 @cindex Programs, compiling
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2937 @cindex Default command line, executing
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2938 @cindex Executing a default command line
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2939
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2940 @kindex C-c C-d C-c
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2941 In order to compile the current buffer under the IDLWAVE shell, press
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2942 @kbd{C-c C-d C-c} (@code{idlwave-save-and-run}). This first saves the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2943 current buffer and then sends the command @samp{.run path/to/file} to the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2944 shell. You can also execute @kbd{C-c C-d C-c} from the shell buffer, in
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2945 which case the most recently compiled buffer will be saved and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2946 re-compiled.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2947
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2948 When developing or debugging a program, it is often necessary to execute
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2949 the same command line many times. A convenient way to do this is
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2950 @kbd{C-c C-d C-y} (@code{idlwave-shell-execute-default-command-line}).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2951 This command first resets IDL from a state of interrupted execution by
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2952 closing all files and returning to the main interpreter level. Then a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2953 default command line is send to the shell. To edit the default command
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2954 line, call @code{idlwave-shell-execute-default-command-line} with a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2955 prefix argument: @kbd{C-u C-c C-d C-y}. If no default command line has
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2956 been set (or you give two prefix arguments), the last command on the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2957 @code{comint} input history is sent.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2958
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2959 @kindex C-c C-d C-e
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2960 @cindex Compiling regions
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2961 For quickly compiling and running the currently marked region as a main
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2962 level program @kbd{C-c C-d C-e} (@code{idlwave-shell-run-region}) is
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2963 very useful. A temporary file is created holding the contents of the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2964 current region (with @code{END} appended), and run from the shell.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2965
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2966 @node Walking the Calling Stack, Electric Debug Mode, Compiling Programs, Debugging IDL Programs
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2967 @subsection Walking the Calling Stack
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2968 @cindex Calling stack, walking
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2969
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2970 While debugging a program, it can be very useful to check the context in
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2971 which the current routine was called, for instance to help understand
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2972 the value of the arguments passed. To do so conveniently you need to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2973 examine the calling stack. If execution is stopped somewhere deep in a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2974 program, you can use the commands @kbd{C-c C-d C-@key{UP}}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2975 (@code{idlwave-shell-stack-up}) and @kbd{C-c C-d C-@key{DOWN}}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2976 (@code{idlwave-shell-stack-down}), or the corresponding toolbar buttons,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2977 to move up or down through the calling stack. The mode line of the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2978 shell window will indicate the position within the stack with a label
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2979 like @samp{[-3:MYPRO]}. The line of IDL code at that stack position
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2980 will be highlighted. If you continue execution, IDLWAVE will
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2981 automatically return to the current level. @xref{Examining Variables},
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2982 for information how to examine the value of variables and expressions on
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2983 higher calling stack levels.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2984
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2985 @html
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2986 <A NAME="EDEBUG"></A>
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2987 @end html
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2988 @node Electric Debug Mode, , Walking the Calling Stack, Debugging IDL Programs
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2989 @subsection Electric Debug Mode
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2990 @cindex Electric Debug Mode
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2991 @cindex @samp{*Debugging*}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2992
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2993 Even with a convenient debug key prefix enabled, repetitive stepping,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2994 variable examination (@pxref{Examining Variables}), and other debugging
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2995 activities can be awkward and slow using commands which require multiple
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2996 keystrokes. Luckily, there's a better way, inspired by the lisp e-debug
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2997 mode, and available through the @emph{Electric Debug Mode}. By default,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2998 as soon as a breakpoint is hit, this minor mode is enabled. The buffer
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2999 showing the line where execution has halted is switched to Electric
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3000 Debug Mode. This mode is visible as @samp{*Debugging*} in the mode
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3001 line, and a different face (violet by default, if color is available)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3002 for the line stopped at point. The buffer is made read-only and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3003 single-character bindings for the most commonly used debugging commands
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3004 are enabled. These character commands (a list of which is available
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3005 with @kbd{C-?}) are:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3006
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3007 @multitable @columnfractions .2 .8
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3008 @item @kbd{a}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3009 @tab Clear all breakpoints (@code{idlwave-shell-clear-all-bp})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3010 @item @kbd{b}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3011 @tab Set breakpoint, @kbd{C-u b} for a conditional break, @kbd{C-n b} for nth hit (@code{idlwave-shell-break-here})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3012 @item @kbd{d}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3013 @tab Clear current breakpoint (@code{idlwave-shell-clear-current-bp})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3014 @item @kbd{e}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3015 @tab Prompt for expression to print (@code{idlwave-shell-clear-current-bp}).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3016 @item @kbd{h}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3017 @tab Continue to the line at cursor position (@code{idlwave-shell-to-here})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3018 @item @kbd{i}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3019 @tab Set breakpoint in module named here (@code{idlwave-shell-break-in})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3020 @item @kbd{[}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3021 @tab Go to the previous breakpoint in the file (@code{idlwave-shell-goto-previous-bp})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3022 @item @kbd{]}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3023 @tab Go to the next breakpoint in the file
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3024 (@code{idlwave-shell-goto-next-bp})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3025 @item @kbd{\}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3026 @tab Disable/Enable current breakpoint (@code{idlwave-shell-toggle-enable-current-bp})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3027 @item @kbd{j}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3028 @tab Set breakpoint at beginning of enclosing routine (@code{idlwave-shell-break-this-module})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3029 @item @kbd{k}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3030 @tab Skip one statement (@code{idlwave-shell-skip})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3031 @item @kbd{m}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3032 @tab Continue to end of function (@code{idlwave-shell-return})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3033 @item @kbd{n}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3034 @tab Step, over function calls (@code{idlwave-shell-stepover})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3035 @item @kbd{o}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3036 @tab Continue past end of function (@code{idlwave-shell-out})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3037 @item @kbd{p}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3038 @tab Print expression near point or in region with @kbd{C-u p} (@code{idlwave-shell-print})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3039 @item @kbd{q}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3040 @tab End the debugging session and return to the Shell's main level
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3041 (@code{idlwave-shell-retall})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3042 @item @kbd{r}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3043 @tab Continue execution to next breakpoint, if any (@code{idlwave-shell-cont})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3044 @item @kbd{s} or @kbd{@key{SPACE}}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3045 @tab Step, into function calls (@code{idlwave-shell-step})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3046 @item @kbd{t}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3047 @tab Print a calling-level traceback in the shell
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3048 @item @kbd{u}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3049 @tab Continue to end of block (@code{idlwave-shell-up})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3050 @item @kbd{v}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3051 @tab Turn Electric Debug Mode off
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3052 (@code{idlwave-shell-electric-debug-mode})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3053 @item @kbd{x}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3054 @tab Examine expression near point (or in region with @kbd{C-u x})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3055 with shortcut of examine type.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3056 @item @kbd{z}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3057 @tab Reset IDL (@code{idlwave-shell-reset})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3058 @item @kbd{+} or @kbd{=}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3059 @tab Show higher level in calling stack (@code{idlwave-shell-stack-up})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3060 @item @kbd{-} or @kbd{_}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3061 @tab Show lower level in calling stack (@code{idlwave-shell-stack-down})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3062 @item @kbd{?}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3063 @tab Help on expression near point or in region with @kbd{C-u ?}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3064 (@code{idlwave-shell-help-expression})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3065 @item @kbd{C-?}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3066 @tab Show help on the commands available.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3067 @end multitable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3068
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3069 Most single-character electric debug bindings use the final keystroke
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3070 of the equivalent multiple key commands (which are of course also
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3071 still available), but some differ (e.g. @kbd{e},@kbd{t},@kbd{q},@kbd{x}).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3072 Some have additional convenience bindings (like @kbd{@key{SPACE}} for
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3073 stepping). All prefix and other argument options described in this
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3074 section for the commands invoked by electric debug bindings are still
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3075 valid. For example, @kbd{C-u b} sets a conditional breakpoint, just
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3076 as it did with @kbd{C-u C-c C-d C-b}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3077
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3078 You can toggle the electric debug mode at any time in a buffer using
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3079 @kbd{C-c C-d C-v} (@kbd{v} to turn it off while in the mode), or from
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3080 the Debug menu. Normally the mode will be enabled and disabled at the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3081 appropriate times, but occasionally you might want to edit a file
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3082 while still debugging it, or switch to the mode for conveniently
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3083 setting lots of breakpoints.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3084
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3085 To quickly abandon a debugging session and return to normal editing at
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3086 the Shell's main level, use @kbd{q} (@code{idlwave-shell-retall}).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3087 This disables electric debug mode in all IDLWAVE buffers@footnote{Note
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3088 that this binding is not symmetric: @kbd{C-c C-d C-q} is bound to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3089 @code{idlwave-shell-quit}, which quits your IDL session.}. Help is
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3090 available for the command shortcuts with @kbd{C-?}. If you find this
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3091 mode gets in your way, you can keep it from automatically activating
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3092 by setting the variable @code{idlwave-shell-automatic-electric-debug}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3093 to @code{nil}, or @code{'breakpoint}. If you'd like the convenient
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3094 electric debug shortcuts available also when run-time errors are
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3095 encountered, set to @code{t}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3096
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3097 @defopt idlwave-shell-automatic-electric-debug (@code{'breakpoint})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3098 Whether to enter electric debug mode automatically when a breakpoint
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3099 or run-time error is encountered, and then disable it in all buffers
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3100 when the $MAIN$ level is reached (either through normal program
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3101 execution, or retall). In addition to @code{nil} for never, and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3102 @code{t} for both breakpoints and errors, this can be
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3103 @code{'breakpoint} (the default) to enable it only at breakpoint
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3104 halts.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3105 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3106
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3107 @defopt idlwave-shell-electric-stop-color (Violet)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3108 Default color of the stopped line overlay when in electric debug mode.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3109 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3110
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3111 @defopt idlwave-shell-electric-stop-line-face
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3112 The face to use for the stopped line. Defaults to a face similar to the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3113 modeline, with color @code{idlwave-shell-electric-stop-color}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3114 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3115
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3116 @defopt idlwave-shell-electric-zap-to-file (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3117 If set, when entering electric debug mode, select the window displaying
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3118 the file where point is stopped. This takes point away from the shell
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3119 window, but is useful for immediate stepping, etc.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3120 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3121
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3122 @html
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3123 <A NAME="EXAMINE"></A>
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3124 @end html
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3125 @node Examining Variables, Custom Expression Examination, Debugging IDL Programs, The IDLWAVE Shell
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3126 @section Examining Variables
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3127 @cindex @code{PRINT} expressions
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3128 @cindex @code{HELP}, on expressions
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3129 @cindex Expressions, printing & help
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3130 @cindex Examining expressions
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3131 @cindex Printing expressions
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3132 @cindex Mouse binding to print expressions
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3133
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3134 @kindex C-c C-d C-p
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3135 Do you find yourself repeatedly typing, e.g. @code{print,n_elements(x)},
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3136 and similar statements to remind yourself of the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3137 type/size/structure/value/etc. of variables and expressions in your code
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3138 or at the command line? IDLWAVE has a suite of special commands to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3139 automate these types of variable or expression examinations. They work
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3140 by sending statements to the shell formatted to include the indicated
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3141 expression, and can be accessed in several ways.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3142
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3143 These @emph{examine} commands can be used in the shell or buffer at any
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3144 time (as long as the shell is running), and are very useful when
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3145 execution is stopped in a buffer due to a triggered breakpoint or error,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3146 or while composing a long command in the IDLWAVE shell. In the latter
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3147 case, the command is sent to the shell and its output is visible, but
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3148 point remains unmoved in the command being composed --- you can inspect
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3149 the constituents of a command you're building without interrupting the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3150 process of building it! You can even print arbitrary expressions from
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3151 older input or output further up in the shell window --- any expression,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3152 variable, number, or function you see can be examined.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3153
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3154 If the variable @code{idlwave-shell-separate-examine-output} is
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3155 non-@code{nil} (the default), all examine output will be sent to a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3156 special @file{*Examine*} buffer, rather than the shell. The output of
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3157 prior examine commands is saved in this buffer. In this buffer @key{c}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3158 clears the contents, and @key{q} hides the buffer.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3159
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3160 The two most basic examine commands are bound to @kbd{C-c C-d C-p}, to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3161 print the expression at point, and @kbd{C-c C-d ?}, to invoke help on
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3162 this expression@footnote{Available as @kbd{p} and @kbd{?} in Electric
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3163 Debug Mode (@pxref{Electric Debug Mode})}. The expression at point is
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3164 either an array expression or a function call, or the contents of a pair
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3165 of parentheses. The chosen expression is highlighted, and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3166 simultaneously the resulting output is highlighted in the shell or
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3167 separate output buffer. Calling the above commands with a prefix
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3168 argument will use the current region as expression instead of using the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3169 one at point. which can be useful for examining complicated, multi-line
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3170 expressions. Two prefix arguments (@kbd{C-u C-u C-c C-d C-p}) will
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3171 prompt for an expression to print directly. By default, when invoking
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3172 print, only an initial portion of long arrays will be printed, up to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3173 @code{idlwave-shell-max-print-length}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3174
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3175 For added speed and convenience, there are mouse bindings which allow
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3176 you to click on expressions and examine their values. Use
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3177 @kbd{S-Mouse-2} to print an expression and @kbd{C-M-Mouse-2} to invoke
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3178 help (i.e. you need to hold down @key{META} and @key{CONTROL} while
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3179 clicking with the middle mouse button). If you simply click, the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3180 nearest expression will be selected in the same manner as described
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3181 above. You can also @emph{drag} the mouse in order to highlight
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3182 exactly the specific expression or sub-expression you want to examine.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3183 For custom expression examination, and the powerful customizable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3184 pop-up examine selection, @xref{Custom Expression Examination}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3185
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3186 @cindex Printing expressions, on calling stack
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3187 @cindex Restrictions for expression printing
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3188 The same variable inspection commands work both in the IDL Shell and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3189 IDLWAVE buffers, and even for variables at higher levels of the calling
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3190 stack. For instance, if you're stopped at a breakpoint in a routine,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3191 you can examine the values of variables and expressions inside its
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3192 calling routine, and so on, all the way up through the calling stack.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3193 Simply step up the stack, and print variables as you see them
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3194 (@pxref{Walking the Calling Stack}, for information on stepping back
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3195 through the calling stack). The following restrictions apply for all
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3196 levels except the current:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3197
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3198 @itemize @bullet
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3199 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3200 Array expressions must use the @samp{[ ]} index delimiters. Identifiers
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3201 with a @samp{( )} will be interpreted as function calls.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3202 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3203 @cindex ROUTINE_NAMES, IDL procedure
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3204 N.B.: printing values of expressions on higher levels of the calling
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3205 stack uses the @emph{unsupported} IDL routine @code{ROUTINE_NAMES},
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3206 which may or may not be available in future versions of IDL. Caveat
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3207 Examinor.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3208 @end itemize
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3209
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3210 @defopt idlwave-shell-expression-face
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3211 The face for @code{idlwave-shell-expression-overlay}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3212 Allows you to choose the font, color and other properties for
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3213 the expression printed by IDL.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3214 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3215
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3216 @defopt idlwave-shell-output-face
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3217 The face for @code{idlwave-shell-output-overlay}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3218 Allows to choose the font, color and other properties for the most
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3219 recent output of IDL when examining an expression."
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3220 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3221
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3222 @defopt idlwave-shell-separate-examine-output (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3223 If non-@code{nil}, re-direct the output of examine commands to a special
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3224 @file{*Examine*} buffer, instead of in the shell itself.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3225 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3226
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3227 @defopt idlwave-shell-max-print-length (200)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3228 The maximum number of leading array entries to print, when examining
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3229 array expressions.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3230 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3231
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3232 @node Custom Expression Examination, , Examining Variables, The IDLWAVE Shell
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3233 @section Custom Expression Examination
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3234 @cindex Expressions, custom examination
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3235 @cindex Custom expression examination
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3236
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3237 The variety of possible variable and expression examination commands is
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3238 endless (just look, for instance, at the keyword list to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3239 @code{widget_info()}). Rather than attempt to include them all, IDLWAVE
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3240 provides two easy methods to customize your own commands, with a special
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3241 mouse examine command, and two macros for generating your own examine
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3242 key and mouse bindings.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3243
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3244 The most powerful and flexible mouse examine command of all is
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3245 available on @kbd{C-S-Mouse-2}. Just as for all the other mouse
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3246 examine commands, it permits click or drag expression selection, but
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3247 instead of sending hard-coded commands to the shell, it pops-up a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3248 customizable selection list of examine functions to choose among,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3249 configured with the @code{idlwave-shell-examine-alist}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3250 variable@footnote{In Electric Debug Mode (@pxref{Electric Debug
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3251 Mode}), the key @kbd{x} provides a single-character shortcut interface
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3252 to the same examine functions for the expression at point or marked by
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3253 the region.}. This variable is a list of key-value pairs (an
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3254 @emph{alist} in Emacs parlance), where the key gives a name to be
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3255 shown for the examine command, and the value is the command strings
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3256 itself, in which the text @code{___} (three underscores) will be
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3257 replaced by the selected expression before being sent to the shell.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3258 An example might be key @code{Structure Help} with value
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3259 @code{help,___,/STRUCTURE}. In that case, you'd be prompted with
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3260 @emph{Structure Help}, which might send something like
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3261 @code{help,var,/STRUCTURE} to the shell for output.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3262 @code{idlwave-shell-examine-alist} comes configured by default with a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3263 large list of examine commands, but you can easily customize it to add
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3264 your own.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3265
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3266 In addition to configuring the functions available to the pop-up mouse
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3267 command, you can easily create your own customized bindings to inspect
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3268 expressions using the two convenience macros
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3269 @code{idlwave-shell-examine} and @code{idlwave-shell-mouse-examine}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3270 These create keyboard or mouse-based custom inspections of variables,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3271 sharing all the same properties of the built-in examine commands.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3272 Both functions take a single string argument sharing the syntax of the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3273 @code{idlwave-shell-examine-alist} values, e.g.:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3274
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3275 @lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3276 (add-hook 'idlwave-shell-mode-hook
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3277 (lambda ()
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3278 (idlwave-shell-define-key-both [s-down-mouse-2]
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3279 (idlwave-shell-mouse-examine
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3280 "print, size(___,/DIMENSIONS)"))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3281 (idlwave-shell-define-key-both [f9] (idlwave-shell-examine
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3282 "print, size(___,/DIMENSIONS)"))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3283 (idlwave-shell-define-key-both [f10] (idlwave-shell-examine
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3284 "print,size(___,/TNAME)"))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3285 (idlwave-shell-define-key-both [f11] (idlwave-shell-examine
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3286 "help,___,/STRUCTURE"))))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3287 @end lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3288
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3289 @noindent Now pressing @key{f9}, or middle-mouse dragging with the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3290 @key{SUPER} key depressed, will print the dimensions of the nearby or
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3291 highlighted expression. Pressing @key{f10} will give the type string,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3292 and @key{f11} will show the contents of a nearby structure. As you can
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3293 see, the possibilities are only marginally finite.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3294
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3295 @defopt idlwave-shell-examine-alist
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3296 An alist of examine commands in which the keys name the command and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3297 are displayed in the selection pop-up, and the values are custom IDL
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3298 examine command strings to send, after all instances of @code{___}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3299 (three underscores) are replaced by the indicated expression.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3300 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3301
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3302 @node Acknowledgements, Sources of Routine Info, The IDLWAVE Shell, Top
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3303 @chapter Acknowledgements
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3304 @cindex Acknowledgements
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3305 @cindex Maintainer, of IDLWAVE
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3306 @cindex Authors, of IDLWAVE
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3307 @cindex Contributors, to IDLWAVE
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3308 @cindex Email address, of Maintainer
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3309 @cindex Thanks
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3310
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3311 @noindent
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3312 The main contributors to the IDLWAVE package have been:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3313
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3314 @itemize @minus
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3315 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3316 @uref{mailto:chase@@att.com, @b{Chris Chase}}, the original author.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3317 Chris wrote @file{idl.el} and @file{idl-shell.el} and maintained them
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3318 for several years.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3319
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3320 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3321 @uref{mailto:dominik@@astro.uva.nl, @b{Carsten Dominik}} was in charge
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3322 of the package from version 3.0, during which time he overhauled almost
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3323 everything, modernized IDLWAVE with many new features, and developed the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3324 manual.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3325
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3326 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3327 @uref{mailto:jdsmith@@as.arizona.edu, @b{J.D. Smith}}, the current
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3328 maintainer, as of version 4.10, helped shape object method completion
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3329 and most new features introduced in versions 4.x, and introduced many
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3330 new features for IDLWAVE versions 5.x and 6.x.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3331 @end itemize
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3332
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3333 @noindent
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3334 The following people have also contributed to the development of IDLWAVE
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3335 with patches, ideas, bug reports and suggestions.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3336
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3337 @itemize @minus
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3338 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3339 Ulrik Dickow <dickow__at__nbi.dk>
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3340 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3341 Eric E. Dors <edors__at__lanl.gov>
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3342 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3343 Stein Vidar H. Haugan <s.v.h.haugan__at__astro.uio.no>
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3344 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3345 David Huenemoerder <dph__at__space.mit.edu>
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3346 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3347 Kevin Ivory <Kevin.Ivory__at__linmpi.mpg.de>
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3348 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3349 Dick Jackson <dick__at__d-jackson.com>
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3350 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3351 Xuyong Liu <liu__at__stsci.edu>
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3352 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3353 Simon Marshall <Simon.Marshall__at__esrin.esa.it>
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3354 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3355 Craig Markwardt <craigm__at__cow.physics.wisc.edu>
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3356 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3357 Laurent Mugnier <mugnier__at__onera.fr>
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3358 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3359 Lubos Pochman <lubos__at__rsinc.com>
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3360 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3361 Bob Portmann <portmann__at__al.noaa.gov>
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3362 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3363 Patrick M. Ryan <pat__at__jaameri.gsfc.nasa.gov>
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3364 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3365 Marty Ryba <ryba__at__ll.mit.edu>
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3366 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3367 Phil Williams <williams__at__irc.chmcc.org>
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3368 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3369 Phil Sterne <sterne__at__dublin.llnl.gov>
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3370 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3371 Paul Sorenson <aardvark62__at__msn.com>
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3372 @end itemize
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3373
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3374 Doug Dirks was instrumental in providing the crucial IDL XML catalog to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3375 support HTML help with IDL v6.2 and later, and Ali Bahrami provided
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3376 scripts and documentation to interface with the IDL Assistant.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3377
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3378 @noindent
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3379 Thanks to everyone!
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3380
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3381 @node Sources of Routine Info, HTML Help Browser Tips, Acknowledgements, Top
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3382 @appendix Sources of Routine Info
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3383
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3384 @cindex Sources of routine information
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3385 In @ref{Routine Info} and @ref{Completion} we showed how IDLWAVE
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3386 displays the calling sequence and keywords of routines, and completes
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3387 routine names and keywords. For these features to work, IDLWAVE must
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3388 know about the accessible routines.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3389
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3390 @menu
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3391 * Routine Definitions:: Where IDL Routines are defined.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3392 * Routine Information Sources:: So how does IDLWAVE know about...
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3393 * Catalogs::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3394 * Load-Path Shadows:: Routines defined in several places
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3395 * Documentation Scan:: Scanning the IDL Manuals
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3396 @end menu
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3397
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3398 @node Routine Definitions, Routine Information Sources, Sources of Routine Info, Sources of Routine Info
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3399 @appendixsec Routine Definitions
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3400 @cindex Routine definitions
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3401 @cindex IDL variable @code{!PATH}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3402 @cindex @code{!PATH}, IDL variable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3403 @cindex @code{CALL_EXTERNAL}, IDL routine
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3404 @cindex @code{LINKIMAGE}, IDL routine
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3405 @cindex External routines
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3406
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3407 @noindent Routines which can be used in an IDL program can be defined in
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3408 several places:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3409
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3410 @enumerate
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3411 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3412 @emph{Builtin routines} are defined inside IDL itself. The source code
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3413 of such routines is not available, but instead are learned about through
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3414 the IDL documentation.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3415 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3416 Routines which are @emph{part of the current program}, are defined in a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3417 file explicitly compiled by the user. This file may or may not be
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3418 located on the IDL search path.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3419 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3420 @emph{Library routines} are defined in files located on IDL's search
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3421 path. When a library routine is called for the first time, IDL will
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3422 find the source file and compile it dynamically. A special sub-category
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3423 of library routines are the @emph{system routines} distributed with IDL,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3424 and usually available in the @file{lib} subdirectory of the IDL
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3425 distribution.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3426 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3427 External routines written in other languages (like Fortran or C) can be
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3428 called with @code{CALL_EXTERNAL}, linked into IDL via @code{LINKIMAGE},
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3429 or included as dynamically loaded modules (DLMs). Currently IDLWAVE
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3430 cannot provide routine info and completion for such external routines,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3431 except by querying the Shell for calling information (DLMs only).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3432 @end enumerate
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3433
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3434 @node Routine Information Sources, Catalogs, Routine Definitions, Sources of Routine Info
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3435 @appendixsec Routine Information Sources
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3436 @cindex Routine info sources
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3437 @cindex Builtin list of routines
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3438 @cindex Updating routine info
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3439 @cindex Scanning buffers for routine info
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3440 @cindex Buffers, scanning for routine info
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3441 @cindex Shell, querying for routine info
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3442
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3443 @noindent To maintain the most comprehensive information about all IDL
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3444 routines on a system, IDLWAVE collects data from many sources:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3445
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3446 @enumerate
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3447
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3448 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3449 It has a @emph{builtin list} with information about the routines IDL
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3450 ships with. IDLWAVE @value{VERSION} is distributed with a list of
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3451 @value{NSYSROUTINES} routines and object methods, reflecting IDL version
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3452 @value{IDLVERSION}. As of IDL v6.2, the routine info is distributed
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3453 directly with IDL in the form of an XML catalog which IDLWAVE scans.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3454 Formerly, this list was created by scanning the IDL manuals to produce
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3455 the file @file{idlw-rinfo.el}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3456
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3457 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3458 IDLWAVE @emph{scans} all its @emph{buffers} in the current Emacs session
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3459 for routine definitions. This is done automatically when routine
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3460 information or completion is first requested by the user. Each new
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3461 buffer and each buffer saved after making changes is also scanned. The
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3462 command @kbd{C-c C-i} (@code{idlwave-update-routine-info}) can be used
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3463 at any time to rescan all buffers.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3464
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3465 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3466 If you have an IDLWAVE-Shell running in the Emacs session, IDLWAVE will
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3467 @emph{query the shell} for compiled routines and their arguments. This
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3468 happens automatically when routine information or completion is first
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3469 requested by the user. Each time an Emacs buffer is compiled with
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3470 @kbd{C-c C-d C-c}, the routine info for that file is queried. Though
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3471 rarely necessary, the command @kbd{C-c C-i}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3472 (@code{idlwave-update-routine-info}) can be used to explicitly update
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3473 the shell routine data.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3474
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3475 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3476 Many popular libraries are distributed with routine information already
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3477 scanned into @emph{library catalogs} (@pxref{Library Catalogs}). These
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3478 per-directory catalog files can also be built by the user with the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3479 supplied @file{idlwave_catalog} tool. They are automatically discovered
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3480 by IDLWAVE.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3481
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3482 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3483 IDLWAVE can scan selected directories of source files and store the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3484 result in a single @emph{user catalog} file which will be
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3485 automatically loaded just like @file{idlw-rinfo.el}. @xref{User
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3486 Catalog}, for information on how to scan files in this way.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3487 @end enumerate
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3488
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3489 Loading all the routine and catalog information can be a time consuming
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3490 process, especially over slow networks. Depending on the system and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3491 network configuration it could take up to 30 seconds (though locally on
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3492 fast systems is usually only a few seconds). In order to minimize the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3493 wait time upon your first completion or routine info command in a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3494 session, IDLWAVE uses Emacs idle time to do the initialization in six
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3495 steps, yielding to user input in between. If this gets into your way,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3496 set the variable @code{idlwave-init-rinfo-when-idle-after} to 0 (zero).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3497 The more routines documented in library and user catalogs, the slower
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3498 the loading will be, so reducing this number can help alleviate any long
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3499 load times.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3500
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3501 @defopt idlwave-init-rinfo-when-idle-after (@code{10})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3502 Seconds of idle time before routine info is automatically initialized.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3503 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3504
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3505 @defopt idlwave-scan-all-buffers-for-routine-info (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3506 Non-@code{nil} means scan all buffers for IDL programs when updating
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3507 info.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3508 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3509
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3510 @defopt idlwave-query-shell-for-routine-info (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3511 Non-@code{nil} means query the shell for info about compiled routines.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3512 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3513
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3514 @defopt idlwave-auto-routine-info-updates
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3515 Controls under what circumstances routine info is updated automatically.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3516 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3517
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3518 @html
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3519 <A NAME="CATALOGS"></A>
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3520 @end html
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3521 @node Catalogs, Load-Path Shadows, Routine Information Sources, Sources of Routine Info
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3522 @appendixsec Catalogs
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3523 @cindex Catalogs
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3524
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3525 @emph{Catalogs} are files containing scanned information on individual
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3526 routines, including arguments and keywords, calling sequence, file path,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3527 class and procedure vs. function type, etc. They represent a way of
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3528 extending the internal built-in information available for IDL system
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3529 routines (@pxref{Routine Info}) to other source collections.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3530
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3531 Starting with version 5.0, there are two types of catalogs available
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3532 with IDLWAVE. The traditional @emph{user catalog} and the newer
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3533 @emph{library catalogs}. Although they can be used interchangeably, the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3534 library catalogs are more flexible, and preferred. There are few
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3535 occasions when a user catalog might be preferred --- read below. Both
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3536 types of catalogs can coexist without causing problems.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3537
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3538 To facilitate the catalog systems, IDLWAVE stores information it gathers
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3539 from the shell about the IDL search paths, and can write this
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3540 information out automatically, or on-demand (menu @code{Debug->Save Path
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3541 Info}). On systems with no shell from which to discover the path
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3542 information (e.g. Windows), a library path must be specified in
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3543 @code{idlwave-library-path} to allow library catalogs to be located, and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3544 to setup directories for user catalog scan (@pxref{User Catalog} for
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3545 more on this variable). Note that, before the shell is running, IDLWAVE
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3546 can only know about the IDL search path by consulting the file pointed
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3547 to by @code{idlwave-path-file} (@file{~/.idlwave/idlpath.el}, by
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3548 default). If @code{idlwave-auto-write-path} is enabled (which is the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3549 default), the paths are written out whenever the IDLWAVE shell is
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3550 started.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3551
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3552 @defopt idlwave-auto-write-path (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3553 Write out information on the !PATH and !DIR paths from IDL automatically
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3554 when they change and when the Shell is closed. These paths are needed
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3555 to locate library catalogs.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3556 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3557
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3558 @defopt idlwave-library-path
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3559 IDL library path for Windows and MacOS. Under Unix/MacOSX, will be
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3560 obtained from the Shell when run.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3561 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3562
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3563 @defopt idlwave-system-directory
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3564 The IDL system directory for Windows and MacOS. Also needed for
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3565 locating HTML help and the IDL Assistant for IDL v6.2 and later. Under
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3566 Unix/MacOSX, will be obtained from the Shell and recorded, if run.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3567 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3568
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3569 @defopt idlwave-config-directory (@file{~/.idlwave})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3570 Default path where IDLWAVE saves configuration information, a user
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3571 catalog (if any), and a cached scan of the XML catalog (IDL v6.2 and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3572 later).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3573 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3574
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3575 @menu
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3576 * Library Catalogs::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3577 * User Catalog::
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3578 @end menu
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3579
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3580 @html
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3581 <A NAME="LIBRARY_CATALOGS"></A>
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3582 @end html
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3583 @node Library Catalogs, User Catalog, Catalogs, Catalogs
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3584 @appendixsubsec Library Catalogs
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3585 @cindex @file{.idlwave_catalog}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3586 @cindex Library catalogs
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3587 @cindex @code{idlwave_catalog}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3588
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3589 Library catalogs consist of files named @file{.idlwave_catalog} stored
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3590 in directories containing @code{.pro} routine files. They are
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3591 discovered on the IDL search path and loaded automatically when routine
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3592 information is read. Each catalog file documents the routines found in
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3593 that directory --- one catalog per directory. Every catalog has a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3594 library name associated with it (e.g. @emph{AstroLib}). This name will
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3595 be shown briefly when the catalog is found, and in the routine info of
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3596 routines it documents.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3597
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3598 Many popular libraries of routines are shipped with IDLWAVE catalog
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3599 files by default, and so will be automatically discovered. Library
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3600 catalogs are scanned externally to Emacs using a tool provided with
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3601 IDLWAVE. Each catalog can be re-scanned independently of any other.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3602 Catalogs can easily be made available system-wide with a common source
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3603 repository, providing uniform routine information, and lifting the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3604 burden of scanning from the user (who may not even know they're using a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3605 scanned catalog). Since all catalogs are independent, they can be
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3606 re-scanned automatically to gather updates, e.g. in a @file{cron} job.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3607 Scanning is much faster than with the built-in user catalog method. One
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3608 minor disadvantage: the entire IDL search path is scanned for catalog
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3609 files every time IDLWAVE starts up, which might be slow if accessing IDL
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3610 routines over a slow network.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3611
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3612 A Perl tool to create library catalogs is distributed with IDLWAVE:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3613 @code{idlwave_catalog}. It can be called quite simply:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3614 @example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3615 idlwave_catalog MyLib
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3616 @end example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3617
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3618 @noindent This will scan all directories recursively beneath the current and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3619 populate them with @file{.idlwave_catalog} files, tagging the routines
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3620 found there with the name library ``MyLib''. The full usage
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3621 information:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3622
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3623 @example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3624 Usage: idlwave_catalog [-l] [-v] [-d] [-s] [-f] [-h] libname
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3625 libname - Unique name of the catalog (4 or more alphanumeric
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3626 characters).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3627 -l - Scan local directory only, otherwise recursively
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3628 catalog all directories at or beneath this one.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3629 -v - Print verbose information.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3630 -d - Instead of scanning, delete all .idlwave_catalog files
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3631 here or below.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3632 -s - Be silent.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3633 -f - Force overwriting any catalogs found with a different
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3634 library name.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3635 -h - Print this usage.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3636 @end example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3637
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3638 To re-load the library catalogs on the IDL path, force a system routine
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3639 info update using a single prefix to @code{idlwave-update-routine-info}:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3640 @kbd{C-u C-c C-i}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3641
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3642 @defopt idlwave-use-library-catalogs (@code{t})
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3643 Whether to search for and load library catalogs. Disable if load
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3644 performance is a problem and/or the catalogs are not needed.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3645 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3646
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3647 @node User Catalog, , Library Catalogs, Catalogs
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3648 @appendixsubsec User Catalog
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3649 @cindex User catalog
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3650 @cindex IDL library routine info
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3651 @cindex Windows
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3652 @cindex MacOS
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3653 @cindex IDL variable @code{!DIR}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3654 @cindex @code{!DIR}, IDL variable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3655
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3656 The user catalog is the old routine catalog system. It is produced
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3657 within Emacs, and stored in a single file in the user's home directory
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3658 (@file{.idlwave/idlusercat.el} by default). Although library catalogs
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3659 are more flexible, there may be reasons to prefer a user catalog
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3660 instead, including:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3661
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3662 @itemize @bullet
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3663 @item The scan is internal to Emacs, so you don't need a working Perl
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3664 installation, as you do for library catalogs.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3665 @item Can be used to scan directories for which the user has no write
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3666 privileges.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3667 @item Easy widget-based path selection.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3668 @end itemize
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3669
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3670 However, no routine info is available in the user catalog by default;
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3671 the user must actively complete a scan. In addition, this type of
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3672 catalog is all or nothing: if a single routine changes, the entire
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3673 catalog must be rescanned to update it. Creating the user catalog is
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3674 also much slower than scanning library catalogs.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3675
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3676 You can scan any of the directories on the currently known path. Under
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3677 Windows and MacOS (not OSX), you need to specify the IDL search path in
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3678 the variable @code{idlwave-library-path}, and the location of the IDL
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3679 directory (the value of the @code{!DIR} system variable) in the variable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3680 @code{idlwave-system-directory}, like this@footnote{The initial @samp{+}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3681 leads to recursive expansion of the path, just like in IDL}:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3682
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3683 @lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3684 (setq idlwave-library-path
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3685 '("+c:/RSI/IDL56/lib/" "+c:/user/me/idllibs"))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3686 (setq idlwave-system-directory "c:/RSI/IDL56/")
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3687 @end lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3688
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3689 @noindent Under GNU/Linux and UNIX, these values will be automatically
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3690 gathered from the IDLWAVE shell, if run.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3691
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3692 The command @kbd{M-x idlwave-create-user-catalog-file} (or the menu item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3693 @samp{IDLWAVE->Routine Info->Select Catalog Directories}) can then be
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3694 used to create a user catalog. It brings up a widget in which you can
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3695 select some or all directories on the search path. Directories which
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3696 already contain a library catalog are marked with @samp{[LIB]}, and need
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3697 not be scanned (although there is no harm if you do so, other than the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3698 additional memory used for the duplication).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3699
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3700 After selecting directories, click on the @w{@samp{[Scan & Save]}}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3701 button in the widget to scan all files in the selected directories and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3702 write out the resulting routine information. In order to update the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3703 library information using the directory selection, call the command
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3704 @code{idlwave-update-routine-info} with a double prefix argument:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3705 @w{@kbd{C-u C-u C-c C-i}}. This will rescan files in the previously
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3706 selected directories, write an updated version of the user catalog file
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3707 and rebuild IDLWAVE's internal lists. If you give three prefix
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3708 arguments @w{@kbd{C-u C-u C-u C-c C-i}}, updating will be done with a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3709 background job@footnote{Unix systems only, I think.}. You can continue
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3710 to work, and the library catalog will be re-read when it is ready. If
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3711 you find you need to update the user catalog often, you should consider
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3712 building a library catalog for your routines instead (@pxref{Library
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3713 Catalogs}).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3714
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3715 @defopt idlwave-special-lib-alist
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3716 Alist of regular expressions matching special library directories for
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3717 labeling in routine-info display.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3718 @end defopt
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3719
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3720 @node Load-Path Shadows, Documentation Scan, Catalogs, Sources of Routine Info
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3721 @appendixsec Load-Path Shadows
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3722 @cindex Load-path shadows
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3723 @cindex Shadows, load-path
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3724 @cindex Duplicate routines
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3725 @cindex Multiply defined routines
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3726 @cindex Routine definitions, multiple
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3727 @cindex Application, testing for shadowing
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3728 @cindex Buffer, testing for shadowing
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3729
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3730 IDLWAVE can compile a list of routines which are (re-)defined in more
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3731 than one file. Since one definition will hide (shadow) the others
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3732 depending on which file is compiled first, such multiple definitions are
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3733 called "load-path shadows". IDLWAVE has several routines to scan for
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3734 load path shadows. The output is placed into the special buffer
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3735 @file{*Shadows*}. The format of the output is identical to the source
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3736 section of the routine info buffer (@pxref{Routine Info}). The
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3737 different definitions of a routine are ordered by @emph{likelihood of
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3738 use}. So the first entry will be most likely the one you'll get if an
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3739 unsuspecting command uses that routine. Before listing shadows, you
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3740 should make sure that routine info is up-to-date by pressing @kbd{C-c
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3741 C-i}. Here are the different routines (also available in the Menu
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3742 @samp{IDLWAVE->Routine Info}):
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3743
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3744 @table @asis
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3745 @item @kbd{M-x idlwave-list-buffer-load-path-shadows}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3746 This commands checks the names of all routines defined in the current
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3747 buffer for shadowing conflicts with other routines accessible to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3748 IDLWAVE. The command also has a key binding: @kbd{C-c C-b}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3749 @item @kbd{M-x idlwave-list-shell-load-path-shadows}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3750 Checks all routines compiled under the shell for shadowing. This is
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3751 very useful when you have written a complete application. Just compile
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3752 the application, use @code{RESOLVE_ALL} to compile any routines used by
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3753 your code, update the routine info inside IDLWAVE with @kbd{C-c C-i} and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3754 then check for shadowing.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3755 @item @kbd{M-x idlwave-list-all-load-path-shadows}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3756 This command checks all routines accessible to IDLWAVE for conflicts.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3757 @end table
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3758
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3759 For these commands to work fully you need to scan the entire load path
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3760 in either a user or library catalog. Also, IDLWAVE should be able to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3761 distinguish between the system library files (normally installed in
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3762 @file{/usr/local/rsi/idl/lib}) and any site specific or user specific
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3763 files. Therefore, such local files should not be installed inside the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3764 @file{lib} directory of the IDL directory. This is also advisable for
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3765 many other reasons.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3766
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3767 @cindex Windows
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3768 @cindex MacOS
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3769 @cindex IDL variable @code{!DIR}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3770 @cindex @code{!DIR}, IDL variable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3771 Users of Windows and MacOS (not X) also must set the variable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3772 @code{idlwave-system-directory} to the value of the @code{!DIR} system
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3773 variable in IDL. IDLWAVE appends @file{lib} to the value of this
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3774 variable and assumes that all files found on that path are system
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3775 routines.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3776
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3777 Another way to find out if a specific routine has multiple definitions
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3778 on the load path is routine info display (@pxref{Routine Info}).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3779
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3780 @node Documentation Scan, , Load-Path Shadows, Sources of Routine Info
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3781 @appendixsec Documentation Scan
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3782 @cindex @file{get_html_rinfo}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3783 @cindex @file{idlw-rinfo.el}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3784 @cindex Scanning the documentation
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3785 @cindex Perl program, to create @file{idlw-rinfo.el}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3786
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3787 @strong{Starting with version 6.2, IDL is distributed directly with HTML
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3788 online help, and an XML-based catalog of routine information}. This
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3789 makes scanning the manuals with the tool @file{get_html_rinfo}, and the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3790 @file{idlw-rinfo.el} file it produced, as described here, entirely
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3791 unnecessary. The information is left here for users wishing to produce
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3792 a catalog of older IDL versions' help.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3793
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3794
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3795 IDLWAVE derives its knowledge about system routines from the IDL
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3796 manuals. The file @file{idlw-rinfo.el} contains the routine information
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3797 for the IDL system routines, and links to relevant sections of the HTML
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3798 documentation. The Online Help feature of IDLWAVE requires HTML
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3799 versions of the IDL manuals to be available; the HTML documentation is
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3800 not distributed with IDLWAVE by default, but must be downloaded
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3801 separately.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3802
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3803 The HTML files and related images can be produced from the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3804 @file{idl.chm} HTMLHelp file distributed with IDL using the free
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3805 Microsoft HTML Help Workshop. If you are lucky, the maintainer of
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3806 IDLWAVE will always have access to the newest version of IDL and provide
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3807 updates. The IDLWAVE distribution also contains the Perl program
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3808 @file{get_html_rinfo} which constructs the @file{idlw-rinfo.el} file by
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3809 scanning the HTML documents produced from the IDL documentation.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3810 Instructions on how to use @file{get_html_rinfo} are in the program
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3811 itself.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3812
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3813 @node HTML Help Browser Tips, Configuration Examples, Sources of Routine Info, Top
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3814 @appendix HTML Help Browser Tips
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3815 @cindex Browser Tips
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3816
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3817 There are a wide variety of possible browsers to use for displaying
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3818 the online HTML help available with IDLWAVE (starting with version
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3819 5.0). Since IDL v6.2, a single cross-platform HTML help browser, the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3820 @emph{IDL Assistant} is distributed with IDL. If this help browser is
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3821 available, it is the preferred choice, and the default. The variable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3822 @code{idlwave-help-use-assistant}, enabled by default, controls
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3823 whether this help browser is used. If you use the IDL Assistant, the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3824 tips here are not relevant.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3825
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3826 Since IDLWAVE runs on a many different system types, a single browser
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3827 configuration is not possible, but choices abound. On many systems,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3828 the default browser configured in @code{browse-url-browser-function},
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3829 and hence inherited by default by
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3830 @code{idlwave-help-browser-function}, is Netscape. Unfortunately, the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3831 HTML manuals decompiled from the original source contain formatting
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3832 structures which Netscape 4.x does not handle well, though they are
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3833 still readable. A much better choice is Mozilla, or one of the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3834 Mozilla-derived browsers such as
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3835 @uref{http://galeon.sourceforge.net/,Galeon} (GNU/Linux),
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3836 @uref{http://www.mozilla.org/projects/camino/,Camino} (MacOSX), or
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3837 @uref{http://www.mozilla.org/projects/firebird/,Firebird} (all
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3838 platforms). Newer versions of Emacs provide a browser-function choice
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3839 @code{browse-url-gnome-moz} which uses the Gnome-configured browser.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3840
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3841 Note that the HTML files decompiled from the help sources contain
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3842 specific references to the @samp{Symbol} font, which by default is not
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3843 permitted in normal encodings (it's invalid, technically). Though it
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3844 only impacts a few symbols, you can trick Mozilla-based browsers into
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3845 recognizing @samp{Symbol} by following the directions
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3846 @uref{http://hutchinson.belmont.ma.us/tth/Xfonts.html, here}. With
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3847 this fix in place, HTML help pages look almost identical to their PDF
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3848 equivalents (yet can be bookmarked, browsed as history, searched,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3849 etc.).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3850
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3851 @noindent Individual platform recommendations:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3852
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3853 @itemize @bullet
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3854 @item Unix/MacOSX: The @uref{http://www.w3m.org,@code{w3m}} browser
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3855 and its associated
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3856 @uref{http://emacs-w3m.namazu.org/,@code{emacs-w3m}} emacs mode
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3857 provide in-buffer browsing with image display, and excellent speed and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3858 formatting. Both the Emacs mode and the browser itself must be
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3859 downloaded separately. To use this browser, include
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3860
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3861 @lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3862 (setq idlwave-help-browser-function 'w3m-browse-url)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3863 @end lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3864
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3865 in your @file{.emacs}. Setting a few other nice @code{w3m} options
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3866 cuts down on screen clutter:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3867
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3868 @lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3869 (setq w3m-use-tab nil
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3870 w3m-use-header-line nil
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3871 w3m-use-toolbar nil)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3872 @end lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3873
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3874 If you use a dedicated frame for help, you might want to add the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3875 following, to get consistent behavior with the @kbd{q} key:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3876
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3877 @lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3878 ;; Close my help window when w3m closes.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3879 (defadvice w3m-close-window (after idlwave-close activate)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3880 (if (boundp 'idlwave-help-frame)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3881 (idlwave-help-quit)))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3882 @end lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3883
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3884 Note that you can open the file in an external browser from within
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3885 @code{w3m} using @kbd{M}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3886 @end itemize
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3887
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3888 @node Configuration Examples, Windows and MacOS, HTML Help Browser Tips, Top
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3889 @appendix Configuration Examples
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3890 @cindex Configuration examples
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3891 @cindex Example configuration
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3892 @cindex @file{.emacs}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3893 @cindex Default settings, of options
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3894 @cindex Interview, with the maintainer
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3895
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3896 @noindent
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3897 @b{Question:} You have all these complicated configuration options in
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3898 your package, but which ones do @emph{you} as the maintainer actually
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3899 set in your own configuration?
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3900
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3901 @noindent
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3902 @b{Answer:} Not many, beyond custom key bindings. I set most defaults
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3903 the way that seems best. However, the default settings do not turn on
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3904 features which:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3905
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3906 @itemize @minus
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3907 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3908 are not self-evident (i.e. too magic) when used by an unsuspecting user.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3909 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3910 are too intrusive.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3911 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3912 will not work properly on all Emacs installations.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3913 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3914 break with widely used standards.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3915 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3916 use function or other non-standard keys.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3917 @item
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3918 are purely personal customizations, like additional key bindings, and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3919 library names.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3920 @end itemize
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3921
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3922 @noindent To see what I mean, here is the @emph{entire} configuration
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3923 the old maintainer had in his @file{.emacs}:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3924
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3925 @lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3926 (setq idlwave-shell-debug-modifiers '(control shift)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3927 idlwave-store-inquired-class t
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3928 idlwave-shell-automatic-start t
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3929 idlwave-main-block-indent 2
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3930 idlwave-init-rinfo-when-idle-after 2
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3931 idlwave-help-dir "~/lib/emacs/idlwave"
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3932 idlwave-special-lib-alist '(("/idl-astro/" . "AstroLib")
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3933 ("/jhuapl/" . "JHUAPL-Lib")
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3934 ("/dominik/lib/idl/" . "MyLib")))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3935 @end lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3936
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3937 However, if you are an Emacs power-user and want IDLWAVE to work
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3938 completely differently, you can change almost every aspect of it. Here
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3939 is an example of a much more extensive configuration of IDLWAVE. The
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3940 user is King!
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3941
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3942 @example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3943 ;;; Settings for IDLWAVE mode
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3944
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3945 (setq idlwave-block-indent 3) ; Indentation settings
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3946 (setq idlwave-main-block-indent 3)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3947 (setq idlwave-end-offset -3)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3948 (setq idlwave-continuation-indent 1)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3949 (setq idlwave-begin-line-comment "^;[^;]") ; Leave ";" but not ";;"
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3950 ; anchored at start of line.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3951 (setq idlwave-surround-by-blank t) ; Turn on padding ops =,<,>
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3952 (setq idlwave-pad-keyword nil) ; Remove spaces for keyword '='
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3953 (setq idlwave-expand-generic-end t) ; convert END to ENDIF etc...
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3954 (setq idlwave-reserved-word-upcase t) ; Make reserved words upper case
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3955 ; (with abbrevs only)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3956 (setq idlwave-abbrev-change-case nil) ; Don't force case of expansions
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3957 (setq idlwave-hang-indent-regexp ": ") ; Change from "- " for auto-fill
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3958 (setq idlwave-show-block nil) ; Turn off blinking to begin
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3959 (setq idlwave-abbrev-move t) ; Allow abbrevs to move point
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3960 (setq idlwave-query-class '((method-default . nil) ; No query for method
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3961 (keyword-default . nil); or keyword completion
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3962 ("INIT" . t) ; except for these
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3963 ("CLEANUP" . t)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3964 ("SETPROPERTY" .t)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3965 ("GETPROPERTY" .t)))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3966
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3967 ;; Using w3m for help (must install w3m and emacs-w3m)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3968 (autoload 'w3m-browse-url "w3m" "Interface for w3m on Emacs." t)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3969 (setq idlwave-help-browser-function 'w3m-browse-url
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3970 w3m-use-tab nil ; no tabs, location line, or toolbar
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3971 w3m-use-header-line nil
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3972 w3m-use-toolbar nil)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3973
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3974 ;; Close my help window or frame when w3m closes with `q'
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3975 (defadvice w3m-close-window (after idlwave-close activate)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3976 (if (boundp 'idlwave-help-frame)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3977 (idlwave-help-quit)))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3978
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3979 ;; Some setting can only be done from a mode hook. Here is an example:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3980 (add-hook 'idlwave-mode-hook
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3981 (lambda ()
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3982 (setq case-fold-search nil) ; Make searches case sensitive
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3983 ;; Run other functions here
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3984 (font-lock-mode 1) ; Turn on font-lock mode
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3985 (idlwave-auto-fill-mode 0) ; Turn off auto filling
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3986 (setq idlwave-help-browser-function 'browse-url-w3)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3987
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3988 ;; Pad with 1 space (if -n is used then make the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3989 ;; padding a minimum of n spaces.) The defaults use -1
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3990 ;; instead of 1.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3991 (idlwave-action-and-binding "=" '(idlwave-expand-equal 1 1))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3992 (idlwave-action-and-binding "<" '(idlwave-surround 1 1))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3993 (idlwave-action-and-binding ">" '(idlwave-surround 1 1 '(?-)))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3994 (idlwave-action-and-binding "&" '(idlwave-surround 1 1))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3995
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3996 ;; Only pad after comma and with exactly 1 space
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3997 (idlwave-action-and-binding "," '(idlwave-surround nil 1))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3998 (idlwave-action-and-binding "&" '(idlwave-surround 1 1))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3999
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4000 ;; Pad only after `->', remove any space before the arrow
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4001 (idlwave-action-and-binding "->" '(idlwave-surround 0 -1 nil 2))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4002
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4003 ;; Set some personal bindings
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4004 ;; (In this case, makes `,' have the normal self-insert behavior.)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4005 (local-set-key "," 'self-insert-command)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4006 (local-set-key [f5] 'idlwave-shell-break-here)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4007 (local-set-key [f6] 'idlwave-shell-clear-current-bp)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4008
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4009 ;; Create a newline, indenting the original and new line.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4010 ;; A similar function that does _not_ reindent the original
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4011 ;; line is on "\C-j" (The default for emacs programming modes).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4012 (local-set-key "\n" 'idlwave-newline)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4013 ;; (local-set-key "\C-j" 'idlwave-newline) ; My preference.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4014
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4015 ;; Some personal abbreviations
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4016 (define-abbrev idlwave-mode-abbrev-table
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4017 (concat idlwave-abbrev-start-char "wb") "widget_base()"
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4018 (idlwave-keyword-abbrev 1))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4019 (define-abbrev idlwave-mode-abbrev-table
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4020 (concat idlwave-abbrev-start-char "on") "obj_new()"
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4021 (idlwave-keyword-abbrev 1))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4022 ))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4023
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4024 ;;; Settings for IDLWAVE SHELL mode
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4025
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4026 (setq idlwave-shell-overlay-arrow "=>") ; default is ">"
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4027 (setq idlwave-shell-use-dedicated-frame t) ; Make a dedicated frame
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4028 (setq idlwave-shell-prompt-pattern "^WAVE> ") ; default is "^IDL> "
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4029 (setq idlwave-shell-explicit-file-name "wave")
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4030 (setq idlwave-shell-process-name "wave")
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4031 (setq idlwave-shell-use-toolbar nil) ; No toolbar
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4032
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4033 ;; Most shell interaction settings can be done from the shell-mode-hook.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4034 (add-hook 'idlwave-shell-mode-hook
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4035 (lambda ()
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4036 ;; Set up some custom key and mouse examine commands
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4037 (idlwave-shell-define-key-both [s-down-mouse-2]
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4038 (idlwave-shell-mouse-examine
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4039 "print, size(___,/DIMENSIONS)"))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4040 (idlwave-shell-define-key-both [f9] (idlwave-shell-examine
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4041 "print, size(___,/DIMENSIONS)"))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4042 (idlwave-shell-define-key-both [f10] (idlwave-shell-examine
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4043 "print,size(___,/TNAME)"))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4044 (idlwave-shell-define-key-both [f11] (idlwave-shell-examine
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4045 "help,___,/STRUCTURE"))))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4046 @end example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4047
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4048 @html
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4049 <A NAME="WIN_MAC"></A>
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4050 @end html
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4051 @node Windows and MacOS, Troubleshooting, Configuration Examples, Top
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4052 @appendix Windows and MacOS
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4053 @cindex Windows
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4054 @cindex MacOS
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4055 @cindex MacOSX
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4056
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4057 IDLWAVE was developed on a UNIX system. However, thanks to the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4058 portability of Emacs, much of IDLWAVE does also work under different
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4059 operating systems like Windows (with NTEmacs or NTXEmacs) or MacOS.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4060
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4061 The only real problem is that there is no command-line version of IDL
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4062 for Windows or MacOS(<=9) with which IDLWAVE can interact. As a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4063 result, the IDLWAVE Shell does not work and you have to rely on IDLDE
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4064 to run and debug your programs. However, editing IDL source files
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4065 with Emacs/IDLWAVE works with all bells and whistles, including
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4066 routine info, completion and fast online help. Only a small amount of
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4067 additional information must be specified in your @file{.emacs} file:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4068 the path names which, on a UNIX system, are automatically gathered by
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4069 talking to the IDL program.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4070
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4071 Here is an example of the additional configuration needed for a Windows
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4072 system. I am assuming that IDLWAVE has been installed in
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4073 @w{@samp{C:\Program Files\IDLWAVE}} and that IDL is installed in
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4074 @w{@samp{C:\RSI\IDL63}}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4075
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4076 @lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4077 ;; location of the lisp files (only needed if IDLWAVE is not part of
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4078 ;; your default X/Emacs installation)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4079 (setq load-path (cons "c:/program files/IDLWAVE" load-path))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4080
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4081 ;; The location of the IDL library directories, both standard, and your own.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4082 ;; note that the initial "+" expands the path recursively
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4083 (setq idlwave-library-path
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4084 '("+c:/RSI/IDL63/lib/" "+c:/path/to/my/idllibs" ))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4085
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4086 ;; location of the IDL system directory (try "print,!DIR")
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4087 (setq idlwave-system-directory "c:/RSI/IDL63/")
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4088
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4089 @end lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4090
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4091 @noindent Furthermore, Windows sometimes tries to outsmart you --- make
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4092 sure you check the following things:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4093
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4094 @itemize @bullet
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4095 @item When you download the IDLWAVE distribution, make sure you save the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4096 file under the names @file{idlwave.tar.gz}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4097 @item M-TAB switches among running programs --- use Esc-TAB
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4098 instead.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4099 @item Other issues as yet unnamed...
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4100 @end itemize
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4101
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4102 Windows users who'd like to make use of IDLWAVE's context-aware HTML
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4103 help can skip the browser and use the HTMLHelp functionality directly.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4104 @xref{Help with HTML Documentation}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4105
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4106 @html
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4107 <A NAME="TROUBLE"></A>
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4108 @end html
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4109 @node Troubleshooting, GNU Free Documentation License, Windows and MacOS, Top
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4110 @appendix Troubleshooting
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4111 @cindex Troubleshooting
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4112
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4113 Although IDLWAVE usually installs and works without difficulty, a few
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4114 common problems and their solutions are documented below.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4115
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4116 @enumerate
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4117
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4118 @item @strong{Whenever an IDL error occurs or a breakpoint is hit, I get
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4119 errors or strange behavior when I try to type anything into some of my
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4120 IDLWAVE buffers.}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4121
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4122 This is a @emph{feature}, not an error. You're in @emph{Electric
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4123 Debug Mode} (@pxref{Electric Debug Mode}). You should see
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4124 @code{*Debugging*} in the mode-line. The buffer is read-only and all
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4125 debugging and examination commands are available as single keystrokes;
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4126 @kbd{C-?} lists these shortcuts. Use @kbd{q} to quit the mode, and
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4127 customize the variable @code{idlwave-shell-automatic-electric-debug}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4128 if you prefer not to enter electric debug on breakpoints@dots{} but
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4129 you really should try it before you disable it! You can also
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4130 customize this variable to enter debug mode when errors are
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4131 encountered.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4132
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4133 @item @strong{I get errors like @samp{Searching for program: no such
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4134 file or directory, idl} when attempting to start the IDL shell.}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4135
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4136 IDLWAVE needs to know where IDL is in order to run it as a process.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4137 By default, it attempts to invoke it simply as @samp{idl}, which
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4138 presumes such an executable is on your search path. You need to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4139 ensure @samp{idl} is on your @samp{$PATH}, or specify the full
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4140 pathname to the idl program with the variable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4141 @code{idlwave-shell-explicit-file-name}. Note that you may need to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4142 set your shell search path in two places when running Emacs as an Aqua
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4143 application with MacOSX; see the next topic.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4144
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4145 @item @strong{IDLWAVE is disregarding my @samp{IDL_PATH} which I set
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4146 under MacOSX}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4147
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4148 If you run Emacs directly as an Aqua application, rather than from the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4149 console shell, the environment is set not from your usual shell
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4150 configuration files (e.g. @file{.cshrc}), but from the file
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4151 @file{~/.MacOSX/environment.plist}. Either include your path settings
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4152 there, or start Emacs and IDLWAVE from the shell.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4153
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4154 @item @strong{I get errors like @samp{Symbol's function is void:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4155 overlayp}}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4156
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4157 You don't have the @samp{fsf-compat} package installed, which IDLWAVE
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4158 needs to run under XEmacs. Install it, or find an XEmacs distribution
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4159 which includes it by default.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4160
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4161 @item @strong{I'm getting errors like @samp{Symbol's value as variable is void:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4162 cl-builtin-gethash} on completion or routine info.}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4163
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4164 This error arises if you upgraded Emacs from 20.x to 21.x without
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4165 re-installing IDLWAVE. Old Emacs and new Emacs are not byte-compatible
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4166 in compiled lisp files. Presumably, you kept the original .elc files in
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4167 place, and this is the source of the error. If you recompile (or just
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4168 "make; make install") from source, it should resolve this problem.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4169 Another option is to recompile the @file{idlw*.el} files by hand using
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4170 @kbd{M-x byte-compile-file}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4171
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4172 @item @strong{@kbd{M-@key{TAB}} doesn't complete words, it switches
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4173 windows on my desktop.}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4174
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4175 Your system is trapping @kbd{M-@key{TAB}} and using it for its own
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4176 nefarious purposes: Emacs never sees the keystrokes. On many Unix
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4177 systems, you can reconfigure your window manager to use another key
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4178 sequence for switching among windows. Another option is to use the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4179 equivalent sequence @kbd{@key{ESC}-@key{TAB}}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4180
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4181 @item @strong{When stopping at breakpoints or errors, IDLWAVE does not
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4182 seem to highlight the relevant line in the source.}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4183
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4184 IDLWAVE scans for error and halt messages and highlights the stop
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4185 location in the correct file. However, if you've changed the system
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4186 variable @samp{!ERROR_STATE.MSG_PREFIX}, it is unable to parse these
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4187 message correctly. Don't do that.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4188
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4189 @item @strong{IDLWAVE doesn't work correctly when using ENVI.}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4190
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4191 Though IDLWAVE was not written with ENVI in mind, it works just fine
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4192 with it, as long as you update the prompt it's looking for (@samp{IDL>
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4193 } by default). You can do this with the variable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4194 @code{idlwave-shell-prompt-pattern} (@pxref{Starting the Shell}), e.g.,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4195 in your @file{.emacs}:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4196
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4197 @lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4198 (setq idlwave-shell-prompt-pattern "^\r? ?\\(ENVI\\|IDL\\)> ")
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4199 @end lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4200
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4201 @item @strong{Attempts to set breakpoints fail: no breakpoint is
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4202 indicated in the IDLWAVE buffer.}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4203
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4204 IDL changed its breakpoint reporting format starting with IDLv5.5. The
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4205 first version of IDLWAVE to support the new format is IDLWAVE v4.10. If
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4206 you have an older version and are using IDL >v5.5, you need to upgrade,
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4207 and/or make sure your recent version of IDLWAVE is being found on the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4208 Emacs load-path (see the next entry). You can list the version being
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4209 used with @kbd{C-h v idlwave-mode-version @key{RET}}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4210
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4211 @item @strong{I installed a new version of IDLWAVE, but the old
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4212 version is still being used} or @strong{IDLWAVE works, but when I
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4213 tried to install the optional modules @file{idlw-roprompt.el} or
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4214 @file{idlw-complete-structtag}, I get errors like @samp{Cannot open
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4215 load file}}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4216
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4217 The problem is that your Emacs is not finding the version of IDLWAVE you
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4218 installed. Many Emacsen come with an older bundled copy of IDLWAVE
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4219 (e.g. v4.7 for Emacs 21.x), which is likely what's being used instead.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4220 You need to make sure your Emacs @emph{load-path} contains the directory
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4221 where IDLWAVE is installed (@file{/usr/local/share/emacs/site-lisp}, by
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4222 default), @emph{before} Emacs' default search directories. You can
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4223 accomplish this by putting the following in your @file{.emacs}:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4224
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4225 @lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4226 (setq load-path (cons "/usr/local/share/emacs/site-lisp" load-path))
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4227 @end lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4228
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4229 @noindent You can check on your load-path value using @kbd{C-h v
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4230 load-path @key{RET}}, and @kbd{C-h m} in an IDLWAVE buffer should show
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4231 you the version Emacs is using.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4232
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4233 @item @strong{IDLWAVE is screwing up the formatting of my @file{.idl} files.}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4234
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4235 Actually, this isn't IDLWAVE at all, but @samp{idl-mode}, an unrelated
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4236 programming mode for CORBA's Interface Definition Language (you should
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4237 see @samp{(IDL)}, not @samp{(IDLWAVE)} in the mode-line). One
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4238 solution: don't name your file @file{.idl}, but rather @file{.pro}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4239 Another solution: make sure @file{.idl} files load IDLWAVE instead of
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4240 @samp{idl-mode} by adding the following to your @file{.emacs}:
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4241
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4242 @lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4243 (setcdr (rassoc 'idl-mode auto-mode-alist) 'idlwave-mode)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4244 @end lisp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4245
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4246 @item @strong{The routine info for my local routines is out of date!}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4247
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4248 IDLWAVE collects routine info from various locations (@pxref{Routine
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4249 Information Sources}). Routines in files visited in a buffer or
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4250 compiled in the shell should be up to date. For other routines, the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4251 information is only as current as the most recent scan. If you have a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4252 rapidly changing set of routines, and you'd like the latest routine
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4253 information to be available for it, one powerful technique is to make
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4254 use of the library catalog tool, @samp{idlwave_catalog}. Simply add a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4255 line to your @samp{cron} file (@samp{crontab -e} will let you edit this
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4256 on some systems), like this
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4257
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4258 @example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4259 45 3 * * 1-5 (cd /path/to/myidllib; /path/to/idlwave_catalog MyLib)
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4260 @end example
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4261
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4262 @noindent where @samp{MyLib} is the name of your library. This will
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4263 rescan all @file{.pro} files at or below @file{/path/to/myidllib} every
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4264 week night at 3:45am. You can even scan site-wide libraries with this
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4265 method, and the most recent information will be available to all users.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4266 Since the scanning is very fast, there is very little impact.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4267
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4268 @item @strong{All the Greek-font characters in the HTML help are
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4269 displayed as Latin characters!}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4270
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4271 Unfortunately, the HTMLHelp files RSI provides attempt to switch to
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4272 @samp{Symbol} font to display Greek characters, which is not really an
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4273 permitted method for doing this in HTML. There is a "workaround" for
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4274 some browsers: @xref{HTML Help Browser Tips}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4275
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4276 @item @strong{In the shell, my long commands are truncated at 256 characters!}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4277
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4278 This actually happens when running IDL in an XTerm as well. There are
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4279 a couple of workarounds: @code{define_key,/control,'^d'} (e.g. in
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4280 your @file{$IDL_STARTUP} file) will disable the @samp{EOF} character
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4281 and give you a 512 character limit. You won't be able to use
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4282 @key{C-d} to quit the shell, however. Another possibility is
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4283 @code{!EDIT_INPUT=0}, which gives you an @emph{infinite} limit (OK, a
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4284 memory-bounded limit), but disables the processing of background
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4285 widget events (those with @code{/NO_BLOCK} passed to @code{XManager}).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4286
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4287 @item @strong{When I invoke IDL HTML help on a routine, the page which
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4288 is loaded is one page off, e.g. for @code{CONVERT_COORD}, I get
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4289 @code{CONTOUR}.}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4290
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4291 You have a mismatch between your help index and the HTML help package
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4292 you downloaded. You need to ensure you download a ``downgrade kit'' if
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4293 you are using anything older than the latest HTML help package. A new
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4294 help package appears with each IDL release (assuming the documentation
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4295 is updated).
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4296 Starting with IDL 6.2, the HTML help and its catalog are
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4297 distributed with IDL, and so should never be inconsistent.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4298
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4299 @item @strong{I get errors such as @samp{void-variable
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4300 browse-url-browser-function} or similar when attempting to load IDLWAVE
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4301 under XEmacs.}
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4302
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4303 You don't have the @samp{browse-url} (or other required) XEmacs package.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4304 Unlike GNU Emacs, XEmacs distributes many packages separately from the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4305 main program. IDLWAVE is actually among these, but is not always the
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4306 most up to date. When installing IDLWAVE as an XEmacs package, it
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4307 should prompt you for required additional packages. When installing it
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4308 from source, it won't and you'll get this error. The easiest solution
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4309 is to install all the packages when you install XEmacs (the so-called
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4310 @samp{sumo} bundle). The minimum set of XEmacs packages required by
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4311 IDLWAVE is @samp{fsf-compat, xemacs-base, mail-lib}.
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4312
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4313 @end enumerate
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4314
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4315 @node GNU Free Documentation License, Index, Troubleshooting, Top
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4316 @appendix GNU Free Documentation License
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4317 @include doclicense.texi
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4318
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4319 @node Index, , GNU Free Documentation License, Top
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4320 @unnumbered Index
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4321 @printindex cp
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4322
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4323 @bye
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4324
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4325 @ignore
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4326 arch-tag: f1d73958-1423-4127-b8aa-f7b953d64492
b1be51c0fa80 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4327 @end ignore