在 emacs 中提交文件时获取本地 cvs 评论历史记录

发布于 2024-08-10 08:38:06 字数 127 浏览 2 评论 0原文

我经常提交具有类似 cvs 注释的文件,但不是在单个操作中提交。当我在 emacs 中编写评论时,我希望能够调出我在之前的提交中使用过的评论。意思是,来自 VC-log 缓冲区。

有办法做到这一点吗? 谢谢

I often commit files with similar cvs comment but not in a single operation. I would like to able to bring up previous comments I've used in a previous commit when I am in the process of writing a comment in emacs. Meaning, from within the VC-log buffer.

Is there a way to do this?
Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风月客 2024-08-17 08:38:06

尝试 Mp,又名

M-x log-edit-previous-comment

虽然这要求您的 Emacs 仍然是相同的进程,所以如果您为每次提交启动一个新的 Emacs,这将不起作用。要启用此功能,请尝试

Try M-p, aka

M-x log-edit-previous-comment

Though this requires that your Emacs is still the same process, so if you're starting a new Emacs for each commit, this won't work. To enable that, try either

  • committing from Emacs (see Version Control info pages, C-x v v to start)
  • using EmacsClient (set the EDITOR (or CVSEDITOR) environment variables)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文