emacs-devel
[Top][All Lists]
Advanced

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

Re: vc-revision-other-window problem


From: martin rudalics
Subject: Re: vc-revision-other-window problem
Date: Mon, 17 Dec 2007 11:23:16 +0100
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

Does it work with the attached patch?


Which patch? :)

Sorry.
*** vc.el.~1.491.~      Sat Dec  8 10:07:04 2007
--- vc.el       Mon Dec 17 08:53:54 2007
***************
*** 1297,1303 ****
    "Make sure that the current buffer visits a version-controlled file."
    (if vc-dired-mode
        (set-buffer (find-file-noselect (dired-get-filename)))
!     (while vc-parent-buffer
        (set-buffer vc-parent-buffer))
      (if (not buffer-file-name)
        (error "Buffer %s is not associated with a file" (buffer-name))
--- 1297,1304 ----
    "Make sure that the current buffer visits a version-controlled file."
    (if vc-dired-mode
        (set-buffer (find-file-noselect (dired-get-filename)))
!     (while (and vc-parent-buffer
!               (not (eq vc-parent-buffer (current-buffer))))
        (set-buffer vc-parent-buffer))
      (if (not buffer-file-name)
        (error "Buffer %s is not associated with a file" (buffer-name))

reply via email to

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