emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: VC Dired Mode doesn't support recursive directory?


From: Dan Nicolaescu
Subject: Re: VC Dired Mode doesn't support recursive directory?
Date: Thu, 31 Jan 2008 07:55:39 -0800

William Xu <address@hidden> writes:

  > Dan Nicolaescu <address@hidden> writes:
  > 
  > > Were some of the files that you selected unregistered? If yes, then the
  > > error you get is expected (although the wording could be improved to
  > > make it more clear).
  > 
  > No, they are all already registered. 
  > 
  > I found the cause, it is because i have sort directory first in dired
  > buffer. Namely, I have the following in my .emacs: 
  > 
  > ,----
  > | ;; Sort directories first
  > | (defun sof/dired-sort ()
  > |   "Dired sort hook to list directories first."
  > |   (save-excursion
  > |     (let (buffer-read-only)
  > |       (forward-line 2) ;; beyond dir. header
  > |       (sort-regexp-fields t "^.*$" "[ ]*." (point)
  > |                           (point-max))))
  > |   (set-buffer-modified-p nil))
  > | 
  > | (add-hook 'dired-after-readin-hook 'sof/dired-sort)
  >
  > Can VC Dired Mode handle this case?

This seems to directly modify the dired buffer, so probably something
goes wrong there.

If you can reproduce the problem starting from emacs -Q without the code
above, the please report back.

Also vc-dired is very likely to get replaced soon...




reply via email to

[Prev in Thread] Current Thread [Next in Thread]