From: Stefan Kangas Date: Sun, 18 Oct 2020 01:17:58 +0000 (+0200) Subject: Make nxml-newline-and-indent argument optional X-Git-Tag: emacs-28.0.90~5562 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a67fed2e0c836658ac6bf9658bb8769c5c216b9b;p=emacs.git Make nxml-newline-and-indent argument optional * lisp/nxml/nxml-mode.el (nxml-newline-and-indent): Make argument optional to conform to 'comment-line-break-function'. (Bug#40193) --- diff --git a/lisp/nxml/nxml-mode.el b/lisp/nxml/nxml-mode.el index 644de03cf4c..5bb904e6915 100644 --- a/lisp/nxml/nxml-mode.el +++ b/lisp/nxml/nxml-mode.el @@ -2230,7 +2230,7 @@ ENDP is t in the former case, nil in the latter." (skip-line-prefix fill-prefix) fill-prefix)) -(defun nxml-newline-and-indent (soft) +(defun nxml-newline-and-indent (&optional soft) (delete-horizontal-space) (if soft (insert-and-inherit ?\n) (newline 1)) (nxml-indent-line))