1
0
Fork 0

[oni-vc] Fix function reference

This commit is contained in:
Tom Willemse 2022-03-02 15:42:53 -08:00
parent a0f9cbf695
commit 62dec39756

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; Keywords: local
;; Version: 2022.0224.145953 ;; Version: 2022.0302.154243
;; Package-Requires: (vc-p4) ;; Package-Requires: (vc-p4)
;; This program is free software; you can redistribute it and/or modify ;; This program is free software; you can redistribute it and/or modify
@ -41,7 +41,7 @@
(defun oni-vc-enable-auto-checkout-for-perforce () (defun oni-vc-enable-auto-checkout-for-perforce ()
"Set up a pre-command-hook to automatically check out a file if necessary." "Set up a pre-command-hook to automatically check out a file if necessary."
(when (equal (vc-backend (buffer-file-name)) 'P4) (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 ;;;###autoload
(add-hook 'find-file-hook 'oni-vc-enable-auto-checkout-for-perforce) (add-hook 'find-file-hook 'oni-vc-enable-auto-checkout-for-perforce)