From 3fc8032a1aac535e8f6ba03547bd9fa2b0880193 Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Wed, 29 Dec 2021 20:52:11 +0200 Subject: [PATCH] * lisp/textmodes/sgml-mode.el (sgml-mode): Set skeleton-end-newline to nil. Prevent skeleton.el from adding a newline to each inserted skeleton. Those which do want a newline do that explicitly in their define-skeleton form. This is what texinfo-mode does (bug#52864). --- lisp/textmodes/sgml-mode.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el index cae1fecebcc..3acf0e8965c 100644 --- a/lisp/textmodes/sgml-mode.el +++ b/lisp/textmodes/sgml-mode.el @@ -624,6 +624,7 @@ Do \\[describe-key] on the following bindings to discover what they do. (setq-local comment-indent-function 'sgml-comment-indent) (setq-local comment-line-break-function 'sgml-comment-indent-new-line) (setq-local skeleton-further-elements '((completion-ignore-case t))) + (setq-local skeleton-end-newline nil) (setq-local skeleton-end-hook (lambda () (or (eolp) -- 2.39.2