From: Po Lu Date: Wed, 12 Jan 2022 03:25:15 +0000 (+0800) Subject: Fix arity error when trying to add a file to an automake project X-Git-Tag: emacs-29.0.90~3121 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8555a3e1ed1d34cbaa172bde86eb3b11a1cd7940;p=emacs.git 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. --- 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)))