Highlights of GNU EmacsBasic ConceptsImportant special-purpose commandsBasic EditingSimple text.Navigation within a buffer.Context searches.Deletion, insertion, and text movementUsing the mouseReplacementModesFiles, buffers, and windowsOn-line documentationThe info browserThe shellCompiling, debugging, and tagsCompilationUsing GDB and GJDB under EmacsTagsBut wait; there's more!Basic Compilation: javac and gmakeCompilation and InterpretationWhere `java' and `javac' find classesThe interpreter's classesThe compiler's classesMultiple classes in one source fileCompiling multiple filesArchive filesThe make utilityBasic Operation and SyntaxVariablesPhony targetsDetails of actionsIncluding makefilesThe GJDB DebuggerBasic functions of a debuggerPreparationStarting GJDBThreads and FramesGJDB CommandsCommon ProblemsGJDB use in EmacsSimple Revision Control with PRCSIntroductionCreating a repositoryStarting a new projectAdding files to a projectAdding version commentaryChecking in a versionChecking out a versionComparing versionsCreating a new major versionMiscellaneous commandsSummary of simple useUCB classesGNU Emacs Quick Reference GuideCS61B Tools Doc umentationFall 2004Paul N. HilfingerUniversity of California, BerkeleyCopyrightc 2001, 2002, 2004 by Paul N. Hilfinger. All rights reserved.Contents1 Highlights of GNU Emacs 51.1 Basic Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51.2 Important sp ecial-purpose commands . . . . . . . . . . . . . . . . . 71.3 Basic Editing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81.3.1 Simple text. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81.3.2 Navigation within a buffer. . . . . . . . . . . . . . . . . . . . 81.3.3 Context searches. . . . . . . . . . . . . . . . . . . . . . . . . . 91.3.4 Deletion, insertion, and text movement . . . . . . . . . . . . 121.3.5 Using the mouse . . . . . . . . . . . . . . . . . . . . . . . . . 141.3.6 Replacement . . . . . . . . . . . . . . . . . . . . . . . . . . . 151.3.7 Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161.4 Files, buffers, and windows . . . . . . . . . . . . . . . . . . . . . . . 171.5 On-line documentation . . . . . . . . . . . . . . . . . . . . . . . . . . 181.5.1 The info browser . . . . . . . . . . . . . . . . . . . . . . . . . 191.6 The shell . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201.7 Compiling, debugging, and tags . . . . . . . . . . . . . . . . . . . . . 201.7.1 Compilation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201.7.2 Using GDB and GJDB under Emacs . . . . . . . . . . . . . . 211.7.3 Tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221.8 But wait; there’s more! . . . . . . . . . . . . . . . . . . . . . . . . . . 232 Basic Compilation: javac and gmake 252.1 Compilation and Interpretation . . . . . . . . . . . . . . . . . . . . . 252.2 Where ‘java’ and ‘javac’ find classes . . . . . . . . . . . . . . . . . . 262.2.1 The interpreter’s classes . . . . . . . . . . . . . . . . . . . . . 262.2.2 The compiler’s classes . . . . . . . . . . . . . . . . . . . . . . 272.3 Multiple classes in one source file . . . . . . . . . . . . . . . . . . . . 272.4 Compiling multiple files . . . . . . . . . . . . . . . . . . . . . . . . . 272.5 Archive files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282.6 The make utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282.6.1 Basic Operation and Syntax . . . . . . . . . . . . . . . . . . . 292.6.2 Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322.6.3 Phony targets . . . . . . . . . . . . . . . . . . . . . . . . . . . 332.6.4 Details of actions . . . . . . . . . . . . . . . . . . . . . . . . . 3434 CONTENTS2.6.5 Including makefiles . . . . . . . . . . . . . . . . . . . . . . . . 343 The GJDB Debugger 373.1 Basic functions of a debugger . . . . . . . . . . . . . . . . . . . . . . 373.2 Preparation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 383.3 Starting GJDB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 383.4 Threads and Frames . . . . . . . . . . . . . . . . . . . . . . . . . . . 393.5 GJDB Commands . . . . . . . . …
View Full Document