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

2010年(14)

我的朋友
最近访客

分类: LINUX

2010-09-21 15:08:54

1.9. Leaving Emacs
1.9. 关闭Emacs

To quit Emacs, type C-x C-c or close it like you would any other application. If you have made changes to a buffer, Emacs asks you if you want to save them.[5] If you type y, Emacs writes the file, then exits. If you type n, Emacs asks you to confirm that you want to abandon the changes you made by typing yes or no in full. If you type no, your normal Emacs session continues just as if you never attempted to exit. If you type yes, you exit Emacs and the changes you made during this session do not become permanent. Leaving without saving changes can be useful if you make changes you didn't intend to make.
    要离开Emacs,按C-x C-c或者像关闭其他程序一样关闭Emacs。如果你修改了一个缓冲区,Emacs会提示你是否保存修改内容。【5】如果你按 y,Emacs保存文件并退出。如果你按 n,Emacs会通过让你输入yes 或 no的全拼来确认是否放弃修改内容。如果你输入no,Emacs会话会返回到按离开键之前的状态。如果你输入yes,Emacs会关闭并且你所做的修改会直接被丢弃。当你不想保存文件内容修改的话,退出而不保存会是个有用的功能。

[5] One exception to this rule is the *scratch* buffer. It's a scratchpad and Emacs assumes you were doodling, not doing serious artwork, so to speak. If you do any serious work in the *scratch* buffer, you must save it explicitly.
【5】这个规则对*scratch*缓冲区无效。譬如说,它就像个便笺簿,并且Emacs认为你是在涂鸦,不是在做重要的工作。如果在*scratch*缓冲区中编辑重要文件,必须明确的保存它。

By the way, Emacs is picky about whether you type y or yes. Sometimes it wants one, sometimes the other. If it asks for a y, you can sometimes get away with typing yes but not vice versa. If it beeps and displays, Please answer yes or no, you didn't enter the whole word and it wants you to.
    顺便说一下,Emacs对你输入y 或者 yes是敏感的。有时需要输入y,有时需要输入yes.如果Emacs要求输入y,你有时可以通过输入yes来离开程序,反之则不然。如果它鸣叫并且显示“Please answer yes or no”,说明你之前并没有输入完整的单词,而Emacs需要你这么做。

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