Difference between revisions of "Emacs Terminology"

From WikEmacs
Jump to: navigation, search
(Joined all terminology pages into this one)
 
m (fixed internal links)
Line 1: Line 1:
 
= Buffer =
 
= Buffer =
  
When you use {{Keys|C-x C-f}} to invoke command
+
When you use {{Keys|C-x C-f}} to invoke command find-file, Emacs opens the file you request, and puts its contents into
find-file, Emacs opens the file you request, and puts
+
a buffer with the same name as the file. Instead of thinking that you are editing a file, think that you are editing
its contents into a buffer with the same name as the file. Instead of thinking that you are editing a file, think that you are editing text in a buffer. When you save the buffer, the file is updated to reflect your edits.  
+
text in a buffer. When you save the buffer, the file is updated to reflect your edits.
  
Buffers can also contain text that doesn't come from a file.  When you
+
Buffers can also contain text that doesn't come from a file.  When you use {{Keys|C-x C-b}} to get a list of buffers,
use {{Keys|C-x C-b}} to get a list of buffers, that
+
that list is itself in a buffer, called <tt>*Buffer List*</tt>, and that buffer is not associated with any file.
list is itself in a buffer, called
+
<tt>*Buffer List*</tt>, and that buffer is not associated with any file.
+
  
By convention, buffers whose names start with an asterisk ('''`*'''')
+
By convention, buffers whose names start with an asterisk ('''`*'''') are not associated with files (but that doesn't
are not associated with files (but that doesn't mean you can't save them in files).  If they have unsaved changes when you exit Emacs, these buffers are killed without your being asking for confirmation.
+
mean you can't save them in files).  If they have unsaved changes when you exit Emacs, these buffers are killed without
 +
your being asking for confirmation.
  
Buffers whose names start with a space are [[InvisibleBuffers|invisible]] to many operations. These are generally internal buffers that you don't want to see. Their names normally don't appear in the buffer list or as
+
Buffers whose names start with a space are [[InvisibleBuffers|invisible]] to many operations. These are generally
[[Completion|completion]] candidates when you switch buffers using {{Keys|C-x b}}.
+
internal buffers that you don't want to see. Their names normally don't appear in the buffer list or as
 +
[[Completion|completion]] candidates when you switch buffers using {{Keys|C-x b}}.
  
Buffers are shown in [[#window|windows]].  You can have more than one
+
Buffers are shown in [[#Window|windows]].  You can have more than one window showing the same buffer.  {{Keys|C-x 2}}
window showing the same buffer.  {{Keys|C-x 2}} splits the
+
splits the current window, creating two windows, both showing the same buffer.
current window, creating two windows, both showing the same buffer.
+
  
 
You can find more info on buffers in the Emacs manual:
 
You can find more info on buffers in the Emacs manual:
Line 28: Line 27:
 
= Window =
 
= Window =
  
In Emacs terminology, a "window" is a container in which a [[buffer]] is displayed.
+
In Emacs terminology, a "window" is a container in which a [[#Buffer|buffer]] is displayed.
  
When starting an Emacs [[#frame]], there is ordinarily only one window in it, which can be split into multiple windows using {{Keys|C-x 2}} or {{Keys|C-x 3}}. This allows viewing different [[#buffer|buffers]] (or multiple times the same [[#buffer]]) at once.
+
When starting an Emacs [[#Frame|frame]], there is ordinarily only one window in it, which can be split into multiple
 +
windows using {{Keys|C-x 2}} or {{Keys|C-x 3}}. This allows viewing different [[#Buffer|buffers]] (or multiple times the
 +
same [[#Buffer|buffer]]) at once.
  
 
You can read more about windows in the Emacs manual:
 
You can read more about windows in the Emacs manual:
Line 42: Line 43:
 
In Emacs terminology, a "frame" is what most window managers (Windows, OSX, GNOME, KDE, etc.) would call a "window".
 
In Emacs terminology, a "frame" is what most window managers (Windows, OSX, GNOME, KDE, etc.) would call a "window".
  
It will typically have a title bar and some buttons to iconify (minimize), maximize / restore, and close the frame. To see an example, open up a second frame from your running Emacs instance with {{Keys|C-x 5 2}} (<code>make-frame-command</code>). You can close frames with {{Keys|C-x 5 0}} (<code>delete-frame</code>), though this will not close the last frame that is open.
+
It will typically have a title bar and some buttons to iconify (minimize), maximize / restore, and close the frame. To
 +
see an example, open up a second frame from your running Emacs instance with {{Keys|C-x 5 2}}
 +
(<code>make-frame-command</code>). You can close frames with {{Keys|C-x 5 0}} (<code>delete-frame</code>), though this
 +
will not close the last frame that is open.
  
 
You can read more about frames in the Emacs manual:
 
You can read more about frames in the Emacs manual:

Revision as of 14:34, 26 March 2012

Buffer

When you use [C-x C-f] to invoke command find-file, Emacs opens the file you request, and puts its contents into a buffer with the same name as the file. Instead of thinking that you are editing a file, think that you are editing text in a buffer. When you save the buffer, the file is updated to reflect your edits.

Buffers can also contain text that doesn't come from a file. When you use [C-x C-b] to get a list of buffers, that list is itself in a buffer, called *Buffer List*, and that buffer is not associated with any file.

By convention, buffers whose names start with an asterisk (`*') are not associated with files (but that doesn't mean you can't save them in files). If they have unsaved changes when you exit Emacs, these buffers are killed without your being asking for confirmation.

Buffers whose names start with a space are invisible to many operations. These are generally internal buffers that you don't want to see. Their names normally don't appear in the buffer list or as completion candidates when you switch buffers using [C-x b].

Buffers are shown in windows. You can have more than one window showing the same buffer. [C-x 2] splits the current window, creating two windows, both showing the same buffer.

You can find more info on buffers in the Emacs manual:

  • Buffers (`(info "(emacs) Buffers")')
  • Windows (`(info "(emacs) Windows")')


Window

In Emacs terminology, a "window" is a container in which a buffer is displayed.

When starting an Emacs frame, there is ordinarily only one window in it, which can be split into multiple windows using [C-x 2] or [C-x 3]. This allows viewing different buffers (or multiple times the same buffer) at once.

You can read more about windows in the Emacs manual:

  • Screen (`(info "(emacs) Screen")')
  • Windows (`(info "(emacs) Windows")')


Frame

In Emacs terminology, a "frame" is what most window managers (Windows, OSX, GNOME, KDE, etc.) would call a "window".

It will typically have a title bar and some buttons to iconify (minimize), maximize / restore, and close the frame. To see an example, open up a second frame from your running Emacs instance with [C-x 5 2] (make-frame-command). You can close frames with [C-x 5 0] (delete-frame), though this will not close the last frame that is open.

You can read more about frames in the Emacs manual:

  • Screen (`(info "(emacs) Screen")')
  • Frames (`(info "(emacs) Frames")')


Point and mark

Killing and yanking

Region

Fill

Case-fold

(compared with case sensitivity)


Narrow and widen

(compared with collapse and expand)