branch: scratch/el-mock commit 9e4d0921791cd04917613d8e3d06342ead129777 Merge: 5fb2867d2e 5084045989 Author: Johan Andersson <johan.rej...@gmail.com> Commit: GitHub <nore...@github.com>
Merge pull request #19 from ardumont/master Fix missing incf function symbol to cl-incf --- el-mock.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/el-mock.el b/el-mock.el index 47de237d56..bb95d1e27b 100644 --- a/el-mock.el +++ b/el-mock.el @@ -94,7 +94,7 @@ (put funcsym 'mock-call-count 0) (fset funcsym `(lambda (&rest actual-args) - (incf (get ',funcsym 'mock-call-count)) + (cl-incf (get ',funcsym 'mock-call-count)) (add-to-list 'mock-verify-list (list ',funcsym ',(cdr func-spec) actual-args ,times)) ,value))))))