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.
This commit is contained in:
Po Lu 2022-01-12 11:25:15 +08:00
parent 9376f456af
commit 8555a3e1ed

View file

@ -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)))