GNU bug report logs -
#94
vc and vc-mtn interaction breaks files opening
Previous Next
Full log
Message #10 received at 94 <at> emacsbugs.donarmstrong.com (full text, mbox):
> When I try to C-x C-f a file the file opens but the buffer isn't brought
> to front. Instead, the frame is split. Apparently, it is because of
> the following error message:
> vc-find-file-hook: Wrong type argument: stringp, nil
I suspect the problem is fixed by the patch below.
Stefan
--- vc.el.~1.424.2.12.~ 2008-02-04 10:26:11.000000000 -0500
+++ vc.el 2008-03-29 15:30:57.000000000 -0400
@@ -1047,9 +1047,14 @@
(when (and (not (eq t okstatus))
(or (not (integerp status))
(and okstatus (< okstatus status))))
+ ;; Don't show internal temp buffers. Especially since, together
+ ;; with with-temp-buffer and pop-up-frames, this can result in
+ ;; bugs where with-temp-buffer ends up not preserving
+ ;; current-buffer (because kill-buffer doesn't preserve it).
+ (unless (eq ?\s (aref (buffer-name (current-buffer)) 0))
(pop-to-buffer (current-buffer))
(goto-char (point-min))
- (shrink-window-if-larger-than-buffer)
+ (shrink-window-if-larger-than-buffer))
(error "Running %s...FAILED (%s)" command
(if (integerp status) (format "status %d" status) status))))
(if vc-command-messages
This bug report was last modified 17 years and 113 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.