diff options
| author | Stefan Kangas | 2020-10-18 03:17:58 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2020-10-18 03:17:58 +0200 |
| commit | a67fed2e0c836658ac6bf9658bb8769c5c216b9b (patch) | |
| tree | 6d72a10344b889352733ae273969e2dfed98bc0e /lisp/nxml | |
| parent | 8299126521e4c166fe43aa7ac8eadf0ff1e41457 (diff) | |
| download | emacs-a67fed2e0c836658ac6bf9658bb8769c5c216b9b.tar.gz emacs-a67fed2e0c836658ac6bf9658bb8769c5c216b9b.zip | |
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')
| -rw-r--r-- | lisp/nxml/nxml-mode.el | 2 |
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." | |||
| 2230 | (skip-line-prefix fill-prefix) | 2230 | (skip-line-prefix fill-prefix) |
| 2231 | fill-prefix)) | 2231 | fill-prefix)) |
| 2232 | 2232 | ||
| 2233 | (defun nxml-newline-and-indent (soft) | 2233 | (defun nxml-newline-and-indent (&optional soft) |
| 2234 | (delete-horizontal-space) | 2234 | (delete-horizontal-space) |
| 2235 | (if soft (insert-and-inherit ?\n) (newline 1)) | 2235 | (if soft (insert-and-inherit ?\n) (newline 1)) |
| 2236 | (nxml-indent-line)) | 2236 | (nxml-indent-line)) |