On 2009-05-21 00:21 +0200, Zed Pobre wrote:

> On Wed, May 20, 2009 at 05:42:34PM +0200, Sven Joachim wrote:
>> Here (file-modes buffer-file-name) returns nil, which means Emacs could
>> not stat(2) the file, e.g. because it does not exist.  This would
>> explain the error (and also that you only get it as root and for new
>> files), except that vc-mode-line should not even be run for unregistered
>> files.  And it isn't for me.
>
> Hm. What might control that?  I do have both subversion and mercurial
> installed, if it's possible that one is mucking with the other.

Hardly.  I have subversion, mercurial, git, cvs and rcs installed, and
they don't interfere with each other.

>> What VC information do you get in the modeline when you visit a new file
>> as an ordinary user?
>
> If it's in a Mercurial-controlled directory, it shows up with "Hg-0"
> (i.e. revision 0 for that file).

So Emacs thinks the not-yet-existent file is registered.  Do you use the
mercurial.el file that comes with mercurial-common?  When I load it, I
get "Hg:2813" (or whatever the most recent revision is) in the modeline
for new files.

Sven



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to