From 8555a3e1ed1d34cbaa172bde86eb3b11a1cd7940 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Wed, 12 Jan 2022 11:25:15 +0800 Subject: [PATCH] Fix arity error when trying to add a file to an automake project * lisp/cedet/ede/project-am.el (project-add-file): Add ignored _FILE parameter like the other `project-add-file' methods. --- lisp/cedet/ede/project-am.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/cedet/ede/project-am.el b/lisp/cedet/ede/project-am.el index 2803e1c3071..544e39b8729 100644 --- a/lisp/cedet/ede/project-am.el +++ b/lisp/cedet/ede/project-am.el @@ -191,8 +191,9 @@ other meta-variable based on this name.") "Encode one makefile.") ;;; Code: -(cl-defmethod project-add-file ((ot project-am-target)) +(cl-defmethod project-add-file ((ot project-am-target) &optional _file) "Add the current buffer into a project. +_FILE is ignored. OT is the object target. DIR is the directory to start in." (let* ((target (if ede-object (error "Already associated w/ a target") (let ((amf (project-am-load default-directory))) -- 2.39.2