summaryrefslogtreecommitdiffstats
path: root/slackbook/html/emacs-buffers.html
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2009-08-26 10:00:38 -0500
committer Eric Hameleers <alien@slackware.com>2018-05-31 22:41:17 +0200
commit5a12e7c134274dba706667107d10d231517d3e05 (patch)
tree55718d5acb710fde798d9f38d0bbaf594ed4b296 /slackbook/html/emacs-buffers.html
downloadcurrent-5a12e7c134274dba706667107d10d231517d3e05.tar.gz
current-5a12e7c134274dba706667107d10d231517d3e05.tar.xz
Slackware 13.0slackware-13.0
Wed Aug 26 10:00:38 CDT 2009 Slackware 13.0 x86_64 is released as stable! Thanks to everyone who helped make this release possible -- see the RELEASE_NOTES for the credits. The ISOs are off to the replicator. This time it will be a 6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD. We're taking pre-orders now at store.slackware.com. Please consider picking up a copy to help support the project. Once again, thanks to the entire Slackware community for all the help testing and fixing things and offering suggestions during this development cycle. As always, have fun and enjoy! -P.
Diffstat (limited to 'slackbook/html/emacs-buffers.html')
-rw-r--r--slackbook/html/emacs-buffers.html112
1 files changed, 112 insertions, 0 deletions
diff --git a/slackbook/html/emacs-buffers.html b/slackbook/html/emacs-buffers.html
new file mode 100644
index 000000000..53516de81
--- /dev/null
+++ b/slackbook/html/emacs-buffers.html
@@ -0,0 +1,112 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta name="generator" content="HTML Tidy, see www.w3.org" />
+<title>Buffers</title>
+<meta name="GENERATOR" content="Modular DocBook HTML Stylesheet Version 1.7" />
+<link rel="HOME" title="Slackware Linux Essentials" href="index.html" />
+<link rel="UP" title="Emacs" href="emacs.html" />
+<link rel="PREVIOUS" title="Emacs" href="emacs.html" />
+<link rel="NEXT" title="Modes" href="emacs-modes.html" />
+<link rel="STYLESHEET" type="text/css" href="docbook.css" />
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+</head>
+<body class="SECT1" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#840084"
+alink="#0000FF">
+<div class="NAVHEADER">
+<table summary="Header navigation table" width="100%" border="0" cellpadding="0"
+cellspacing="0">
+<tr>
+<th colspan="3" align="center">Slackware Linux Essentials</th>
+</tr>
+
+<tr>
+<td width="10%" align="left" valign="bottom"><a href="emacs.html"
+accesskey="P">Prev</a></td>
+<td width="80%" align="center" valign="bottom">Chapter 17 Emacs</td>
+<td width="10%" align="right" valign="bottom"><a href="emacs-modes.html"
+accesskey="N">Next</a></td>
+</tr>
+</table>
+
+<hr align="LEFT" width="100%" />
+</div>
+
+<div class="SECT1">
+<h1 class="SECT1"><a id="EMACS-BUFFERS" name="EMACS-BUFFERS">17.2 Buffers</a></h1>
+
+<p>In Emacs, the concept of &#8220;buffers&#8221; is essential. Every file that you open
+is loaded into its own buffer. Furthermore, Emacs has several special buffers, which do
+not contain a file but are used for other things. Such special buffers usually have a
+name that starts and ends with an asterisk. For example, the buffer that Emacs shows when
+it is first started, is the so-called *scratch* buffer. In the *scratch* buffer, you can
+type text in the normal way, but text that is typed there is not saved when Emacs is
+closed.</p>
+
+<p>There is one other special buffer you need to know about, and that is the minibuffer.
+This buffer consists of only one line, and is always on the screen: it is the very last
+line of the Emacs window, below the status bar for the current buffer. The minibuffer is
+where Emacs shows messages for the user, and it is also the place where commands that
+require some user input are executed. For example, when you open a file, Emacs will ask
+for its name in the minibuffer.</p>
+
+<p>Switching from one buffer to another can be done with the command <b
+class="KEYCAP">C</b>-<b class="KEYCAP">x</b> <b class="KEYCAP">b</b>. This will prompt
+you for the name of a buffer (a buffer's name is usually the name of the file you are
+editing in it), and it gives a default choice, which is normally the buffer that you were
+in before you switched to or created the current buffer. Just hitting <span
+class="emphasis"><i class="EMPHASIS">Enter</i></span> will switch to that default
+buffer.</p>
+
+<p>If you want to switch to another buffer than the default offered by Emacs, just type
+its name. Note that you can use so-called <b class="KEYCAP">Tab</b>-completion here: type
+the first few letters of the buffer's name and hit <b class="KEYCAP">Tab</b>; Emacs will
+then complete the name of the buffer. <b class="KEYCAP">Tab</b> completion works
+everywhere in Emacs where it makes sense.</p>
+
+<p>You can get a list of open buffers by hitting <b class="KEYCAP">C</b>-<b
+class="KEYCAP">x</b> <b class="KEYCAP">C</b>-<b class="KEYCAP">b</b>. This command will
+usually split the screen in two, displaying the buffer you were working in in the top
+half, and a new buffer called *Buffer List* in the bottom half. This buffer contains a
+list of all the buffers, their sizes and modes, and the files, if any, that those buffers
+are visiting (as it is called in Emacs). You can get rid of this split screen by typing
+<b class="KEYCAP">C</b>-<b class="KEYCAP">x</b> <b class="KEYCAP">1</b>.</p>
+
+<div class="NOTE">
+<table class="NOTE" width="100%" border="0">
+<tr>
+<td width="25" align="CENTER" valign="TOP"><img src="./imagelib/admon/note.png"
+hspace="5" alt="Note" /></td>
+<td align="LEFT" valign="TOP">
+<p>Under X, the list of buffers is also available in the Buffer menu in the menu bar.</p>
+</td>
+</tr>
+</table>
+</div>
+</div>
+
+<div class="NAVFOOTER">
+<hr align="LEFT" width="100%" />
+<table summary="Footer navigation table" width="100%" border="0" cellpadding="0"
+cellspacing="0">
+<tr>
+<td width="33%" align="left" valign="top"><a href="emacs.html"
+accesskey="P">Prev</a></td>
+<td width="34%" align="center" valign="top"><a href="index.html"
+accesskey="H">Home</a></td>
+<td width="33%" align="right" valign="top"><a href="emacs-modes.html"
+accesskey="N">Next</a></td>
+</tr>
+
+<tr>
+<td width="33%" align="left" valign="top">Emacs</td>
+<td width="34%" align="center" valign="top"><a href="emacs.html"
+accesskey="U">Up</a></td>
+<td width="33%" align="right" valign="top">Modes</td>
+</tr>
+</table>
+</div>
+</body>
+</html>
+