emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master a67fed2: Make nxml-newline-and-indent argument optional


From: Stefan Kangas
Subject: master a67fed2: Make nxml-newline-and-indent argument optional
Date: Sat, 17 Oct 2020 21:19:25 -0400 (EDT)

branch: master
commit a67fed2e0c836658ac6bf9658bb8769c5c216b9b
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>

    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)
---
 lisp/nxml/nxml-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/nxml/nxml-mode.el b/lisp/nxml/nxml-mode.el
index 644de03..5bb904e 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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]