I'm learning about emacs (using version 2.3 on Ubuntu 10.10), and I'm having some trouble with the frames. When I run gdb, for example, I have to get my mouse and click "File->Close" to close the gdb frame. What's the easiest way to close a frame from keyboard? By the way, is there a summary for this keyboard shortcuts?
I think you refer to killing the gdb buffer rather than closing a frame (which in Emacs refers to a window). To kill the buffer you are in type
To get a descriptions of a certain command you can use
You can also go the other way (from a function to a command). Say that you find out that some key has to do with killing buffers and you want to know what other things you can kill and the commands this. Then you could type
In Emacs, “close” is often called “kill” or “delete”. The command to close a frame is
Note that a frame, in Emacs terminology, is what most of the world calls a window; a window, in Emacs terminology, is what part of the world calls a pane. (Frames contain one or more windows, windows contain one or more pane.) The notion that corresponds to a file or an application running inside Emacs is a buffer. At any time, each window is showing a buffer, and a buffer can be shown in one or more frames or none at all. Unlike most other multi-document applications, Emacs does not tie edited objects (files and such) to user interface elements (windows). To close a file or application, kill the buffer:
If you know the name of a command, you can find out what key(s) it's bound to by running
To figure out what the command is called, you can run