aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2022-03-02 15:42:53 -0800
committerGravatar Tom Willemse2022-03-02 15:42:53 -0800
commit62dec3975644db19f24d4889a738c02d34fd4837 (patch)
tree0db53bc30fab6e99d84bbaa1b950d100801d2b10
parenta0f9cbf6951af8362d158285e53e71aeaadde69c (diff)
downloademacs-config-62dec3975644db19f24d4889a738c02d34fd4837.tar.gz
emacs-config-62dec3975644db19f24d4889a738c02d34fd4837.zip
[oni-vc] Fix function reference
-rw-r--r--oni-vc.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/oni-vc.el b/oni-vc.el
index f2e7379..56e5c0e 100644
--- a/oni-vc.el
+++ b/oni-vc.el
@@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
-;; Version: 2022.0224.145953
+;; Version: 2022.0302.154243
;; Package-Requires: (vc-p4)
;; This program is free software; you can redistribute it and/or modify
@@ -41,7 +41,7 @@
(defun oni-vc-enable-auto-checkout-for-perforce ()
"Set up a ‘pre-command-hook’ to automatically check out a file if necessary."
(when (equal (vc-backend (buffer-file-name)) 'P4)
- (add-hook 'pre-command-hook 'oni-vc-pre-edit-function nil t)))
+ (add-hook 'pre-command-hook #'oni-vc-maybe-checkout nil t)))
;;;###autoload
(add-hook 'find-file-hook 'oni-vc-enable-auto-checkout-for-perforce)