Chinaunix首页 | 论坛 | 博客
  • 博客访问: 12489
  • 博文数量: 14
  • 博客积分: 560
  • 博客等级: 中士
  • 技术积分: 150
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-17 16:40
文章分类
文章存档

2010年(14)

我的朋友
最近访客

分类: LINUX

2010-09-13 17:09:00

1.2. Understanding Files and Buffers
1.2. 理解文件和缓冲区

You don't really edit files with Emacs. Instead, Emacs copies the contents of a file into a temporary buffer and you edit that. The file on disk doesn't change until you save the buffer. Like files, Emacs buffers have names. The name of a buffer is usually the same as the name of the file that you're editing. There are a few exceptions. Some buffers don't have associated files—for example, *scratch* is just a temporary practice buffer, like a scratchpad; the help facility displays help messages in a buffer named *Help*, which also isn't connected to a file.
    使用Emacs时,你不是在编辑实际文件,而是Emacs把文件内容拷贝到临时缓冲区内,你实际是在编辑这个缓存区。在你保存缓冲区之前,硬盘上的文件不会改变。和文件一样,Emacs的缓冲区也有名称。缓冲区的名字通常和你编辑的文件名是相同的。不过也有些例外。一些缓冲区没有相对应的文件,例如:*scratch*只是一个临时输入缓冲区,像便笺一样。帮助功能在一个名为“*Help*”的缓冲区内显示帮助信息,而它也不和任何文件相关连。

阅读(322) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~