summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-01-12 11:25:15 +0800
committerPo Lu <luangruo@yahoo.com>2022-01-12 11:25:15 +0800
commit8555a3e1ed1d34cbaa172bde86eb3b11a1cd7940 (patch)
treeca989317f11d62a8373288708910b79d06f4fadc
parent9376f456af5824b0bda5b5dff62fc6f6cb1231bf (diff)
downloademacs-8555a3e1ed1d34cbaa172bde86eb3b11a1cd7940.tar.gz
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.
-rw-r--r--lisp/cedet/ede/project-am.el3
1 files changed, 2 insertions, 1 deletions
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)))