summaryrefslogtreecommitdiff
path: root/lisp/nxml/nxml-mode.el
diff options
context:
space:
mode:
authorStefan Kangas <stefan@marxist.se>2020-10-18 03:17:58 +0200
committerStefan Kangas <stefan@marxist.se>2020-10-18 03:17:58 +0200
commita67fed2e0c836658ac6bf9658bb8769c5c216b9b (patch)
tree6d72a10344b889352733ae273969e2dfed98bc0e /lisp/nxml/nxml-mode.el
parent8299126521e4c166fe43aa7ac8eadf0ff1e41457 (diff)
downloademacs-a67fed2e0c836658ac6bf9658bb8769c5c216b9b.tar.gz
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)
Diffstat (limited to 'lisp/nxml/nxml-mode.el')
-rw-r--r--lisp/nxml/nxml-mode.el2
1 files changed, 1 insertions, 1 deletions
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))