From a78a2cae11ebc676c55006e4fa13ec060cad86db Mon Sep 17 00:00:00 2001 From: Lei Wang Date: Thu, 20 Sep 2018 12:34:43 +0800 Subject: [PATCH] Remove duplicate &optional keyword to avoid "invalid function" error --- jsfmt.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsfmt.el b/jsfmt.el index b9e5762..95231ce 100644 --- a/jsfmt.el +++ b/jsfmt.el @@ -88,7 +88,7 @@ buffer." (t (error "invalid rcs patch or internal error in jsfmt--apply-rcs-patch"))))))))) -(defun run-jsfmt (&optional save &optional ast) +(defun run-jsfmt (&optional save ast) "Formats the current buffer according to the jsfmt tool." (interactive) (let ((tmpfile (make-temp-file "jsfmt" nil (if ast