Difference between revisions of "Buffer"

From WikEmacs
Jump to navigation Jump to search
(setup redirect)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
When you use {{Keys|C-x C-f}} to invoke command
+
#REDIRECT [[Emacs Terminology#Buffer]]
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 {{Keys|C-x C-b}}to get a list of buffers, that
 
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 ('''`*'''')
 
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 [[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
 
[[Completion|completion]] candidates when you switch buffers using {{Keys|C-x b}}. 
 
 
 
Buffers are shown in [[window|windows]].  You can have more than one
 
window showing the same buffer.  {{Keys|C-x 2}} splits the
 
current window, creating two windows, both showing the same buffer.
 
 
 
[[Category:Level:Beginner]]
 

Latest revision as of 19:36, 26 March 2012