emacs 本地版本控制
我想知道 emacs 是否有独立于 VC 的本地版本控制/快照? 让我澄清一下: 每次保存缓冲区时,我希望能够跟踪会话中每次保存的更改。我知道我可以对备份文件做类似的事情,但它们不像 VC 那样自动化,而且有点麻烦。
我已经搜索过谷歌,但没有找到解决方案。 也许我的查询字符串不好。
我在 eclipse 中找到了这个,正在寻找 emacs 等效项: http ://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.user/gettingStarted/qs-55.htm
谢谢
I am wondering if there is local version control/snapshots for emacs independent of VC?
let me clarify:
every time I save buffer, I would like to be able to keep track of changes of each save in session. I know I can do something similar with backup files, but they are not automated like VC and a somewhat cumbersome.
I have searched Google, but did not find the solution.
Perhaps my query string was not good.
I found this for eclipse, am looking for emacs equivalent:
http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.user/gettingStarted/qs-55.htm
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
据我所知,没有这样的解决方案,但您可以制作一些临时解决方案 - 例如创建本地 VCS 存储库并建议 save-buffer 命令提交存储库中的更改。
我还遇到了手册的部分< /a> 您可能对此感兴趣。
AFAIK there is no such solution, but you can make some ad hoc one - like creating a local VCS repository and advice the save-buffer command to commit the changes in the repository.
I also came across a section of the manual that might be of interest to you.
我不知道如何让 Emacs 保存缓冲区快照,但请记住它具有无限撤消功能。如果您只是想要一种返回到早期版本的方法,这可能会对您有所帮助。如果您想要真正的版本控制,那么我会采用 Bozhidar Batsov 的解决方案并建议 save-buffer 命令。
I don't know of a way to get Emacs to save buffer snapshots, but keep in mind that it has an infinite undo facility. If you just want a way to get back to earlier versions, that might help you. If you want real version control, then I'd go with Bozhidar Batsov's solution and advice the save-buffer command.
http://www.emacswiki.org/emacs/BackupEachSave
http://www.emacswiki.org/emacs/BackupEachSave