Date: Mon, 10 Jan 2000 12:27:29 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Vladimir Zotikos cc: djgpp AT delorie DOT com Subject: Re: Help with DJGPP, Emacs, RHIDE for a beginner. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: dj-admin AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sun, 9 Jan 2000, Vladimir Zotikos wrote: > Therefore, I would like to write , compile and run programs using DJGPP and > Emacs while avoiding the command line if possible. To compile a program from withing Emacs, either type "M-x compile RET" (M-x means hold the Alt key and press x), or click "Tools" on the menu bar and choose "Compile" from the drop-down menu. Emacs will prompt for a "Compile command" in the bottom line (called "the minibuffer"), the default being "make -k". For a project where you have a Makefile, this is a good default, but for a compilation of a single file, simply delete "make -k" and type the compilation command as if you were typing it at the DOS prompt. Then press RET (that's Emacs-speak for the Enter key), and Emacs will launch the compiler. If there are errors, they will be displayed in a separate window in the lower part of the screen, and you can step through all the lines which caused error messages by pressing "C-x `" or clicking the right mouse button on the error message. Once you typed the compilation command, Emacs remembers it, and will suggest it as the default next time you invoke "M-x compile". I suggest to read the section in the on-line manual that describes the `compile' command. To this end, type "C-h C-f compile RET", and read there. (C-h means hold the Ctrl key and press h.)