aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Whitton2025-04-03 16:44:10 +0800
committerSean Whitton2025-04-03 16:44:10 +0800
commit91a75c0d460efb7490c7901ff8572adb14cd50db (patch)
tree0a7943ed590a775f9046cf76ab2372cbc957cdec
parent4ace02755bc5cd5add8d88be5abf2de60a92e635 (diff)
downloademacs-91a75c0d460efb7490c7901ff8572adb14cd50db.tar.gz
emacs-91a75c0d460efb7490c7901ff8572adb14cd50db.zip
; Add a check for liveness to last change
-rw-r--r--lisp/vc/vc-dispatcher.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/vc/vc-dispatcher.el b/lisp/vc/vc-dispatcher.el
index 5416dac5313..9e238560710 100644
--- a/lisp/vc/vc-dispatcher.el
+++ b/lisp/vc/vc-dispatcher.el
@@ -205,8 +205,9 @@ Another is that undo information is not kept."
205 ;; See bug#53626 and bug#77306. 205 ;; See bug#53626 and bug#77306.
206 (setq default-directory olddir) 206 (setq default-directory olddir)
207 (run-with-timer 0 nil (lambda () 207 (run-with-timer 0 nil (lambda ()
208 (with-current-buffer buf 208 (when (buffer-live-p buf)
209 (setq default-directory olddir)))) 209 (with-current-buffer buf
210 (setq default-directory olddir)))))
210 211
211 (let ((buffer-undo-list t) 212 (let ((buffer-undo-list t)
212 (inhibit-read-only t)) 213 (inhibit-read-only t))