emacs recover file
来源:互联网 发布:新用户福利软件 编辑:程序博客网 时间:2024/05/21 09:08
If Emacs crashes, how can I recover the file I was editing?
By default, Emacs frequently saves the current buffer automatically into a temporary file called: #myfile#
myfile
is the name of the file in the buffer. If you lose your connection or if Emacs itself crashes, you will probably be able to get back most of your work. To do so:
- Use Emacs to open the file you were working on when Emacscrashed. At the bottom of the screen, the following message willprobably appear: Auto save file is newer; consider M-x recover-file
- This indicates that Emacs has an autosaved file that you canrecover. To recover the file, enter: M-x recover-file
- At the bottom of the screen, something like the following willappear: Recover file: ~/myfile
myfile
is the name of the file you are working on. - Press the
Enter
key. Then Emacs will split thescreen. In the bottom screen you will see something like thefollowing: -rw------- 1 jdoe iago 939 Apr 24 19:44 /home/u1/jdoe/#myfile# -rw------- 1 jdoe iago 551 Apr 24 19:33 /home/u1/jdoe/myfileAt the bottom of the screen will be the following message: Recover auto save file /home/u1/jdoe/#myfile#? (yes or no) - Enter
yes
, and Emacs will read in the autosavedfile.
Note: If you start Emacs without giving it afilename, you will be working in the temporary "scratch" buffer. Inthis case, to recover your work, try entering: M-x recover-session
Note: If you aren't sure how to enter these commands in Emacs, see In Emacs, how are keystrokes denoted?
At Indiana University, to get support for personal ordepartmental Linux or Unix systems, see At IU, how do I get support for Linux or Unix?
Also see:
- GNU Emacs Quick Reference Guide
- In Emacs, how do I use an already running session from another window?
- In Emacs, how are keystrokes denoted?
- emacs recover file
- SCU 4320: File Recover
- recover deleted file on ext3
- recover deleted file on ext4
- Harvis' Emacs config file
- Emacs Shell, File Management
- 电脑crash 之后, emacs recover 未保存文件
- PC Tools File Recover ver. 6.0.0.32
- recover database using backup control file
- 关于recover database using backup control file
- emacs:操作buffer,window,file
- emacs cannot open termcap database file
- [emacs]load-file , load , require , autoload
- HOWTO recover deleted files on an ext3 file system
- The standard way to recover the lost file.
- HOWTO recover deleted files on an ext3 file system
- emacs cannot open termcap database file 的解决办法
- emacs...
- 谁都喜欢超人
- kmalloc vmalloc
- BAPI_PO_CHANGE
- 把汉字编码为4位字符,用于解决乱码问题(已减少到3位字符)
- 【原创】添加nand的mtd驱动原理图
- emacs recover file
- PD建立数据库经验
- winform模式对话框和非模式对话框
- 编译器工作原理
- 失去第一份工作
- ASP.NET备份恢复SQL Server数据库
- C/S架构和B/S架构的概念和区别
- 关于写入数据库的操作
- Struts2拦截器的原理