[Top][All Lists]

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

master 3fc8032a1a: * lisp/textmodes/sgml-mode.el (sgml-mode): Set skelet

From: Juri Linkov
Subject: master 3fc8032a1a: * lisp/textmodes/sgml-mode.el (sgml-mode): Set skeleton-end-newline to nil.
Date: Wed, 29 Dec 2021 13:52:31 -0500 (EST)

branch: master
commit 3fc8032a1aac535e8f6ba03547bd9fa2b0880193
Author: Juri Linkov <juri@linkov.net>
Commit: Juri Linkov <juri@linkov.net>

    * 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 cae1fecebc..3acf0e8965 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)

reply via email to

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