如何让ediff + hg在emacs中工作23.2 for mac? [英] How do you get ediff + hg working in emacs 23.2 for mac?
问题描述
我使用 http://emacsformacosx.com/ 的emacs二进制文件
当我编辑一个文件在mercurial源目录并运行ediff-revision我得到:
Im using the emacs binary from http://emacsformacosx.com/ When I'm editing a file in a mercurial source directory and run "ediff-revision" I get:
"File /the/file/im/editing.py is not under version control"
此命令适用于香草Windows分发版,也适用于aquamacs有没有什么我需要做的,为了使Mac的GNU Emacs正常工作?
This command works on the vanilla windows distribution and also with aquamacs, is there something I need to do for vanilla GNU Emacs for mac to work correctly?
我已经尝试过,只有这一点在我的.emacs
I've tried it with only this in my .emacs
(require 'ediff)
推荐答案
所以,OSX的Mercurial安装在/ usr / local / bin中似乎emacs知道在Aquamacs和命令行版本中看到。为了让它在GNU emacs上工作,我在/ usr / bin中创建了一个/ usr / local / bin / hg的象征性链接,之后,每件事情都开始工作。
So Mercurial for OSX installs itself in /usr/local/bin It seems emacs knows to look there in the Aquamacs and the command line versions. To get it working for GNU emacs I made a symbolic link of /usr/local/bin/hg in /usr/bin After that, every thing started working just fine.
# Open Terminal
cd /usr/bin
sudo ln -s /usr/local/bin/hg hg
另一种我跨越的方法是设置变量vc-path,但是我无法得到该解决方案。感谢那些为此而刺伤的人。
Another method I ran across was to set the variable vc-path, however I couldn't get that solution to work. Thanks for those that took a stab at this.
这篇关于如何让ediff + hg在emacs中工作23.2 for mac?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!