From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#52864: sgml-tag inserts newlines Date: Wed, 29 Dec 2021 10:53:18 +0200 Organization: LINKOV.NET Message-ID: <86bl0z3i81.fsf@mail.linkov.net> References: <875yr8412e.5.fsf@jidanni.org> <86k0fn3if8.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32780"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 52864@debbugs.gnu.org To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 29 09:54:12 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n2Uiq-0008MT-4t for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Dec 2021 09:54:12 +0100 Original-Received: from localhost ([::1]:34090 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2Uio-0000oA-9F for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Dec 2021 03:54:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57518) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2Uig-0000o2-2I for bug-gnu-emacs@gnu.org; Wed, 29 Dec 2021 03:54:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36491) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2Uif-0000Q8-Q3 for bug-gnu-emacs@gnu.org; Wed, 29 Dec 2021 03:54:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n2Uif-0001UF-QR for bug-gnu-emacs@gnu.org; Wed, 29 Dec 2021 03:54:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Dec 2021 08:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52864 X-GNU-PR-Package: emacs Original-Received: via spool by 52864-submit@debbugs.gnu.org id=B52864.16407680365703 (code B ref 52864); Wed, 29 Dec 2021 08:54:01 +0000 Original-Received: (at 52864) by debbugs.gnu.org; 29 Dec 2021 08:53:56 +0000 Original-Received: from localhost ([127.0.0.1]:48037 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2Uia-0001Tv-2t for submit@debbugs.gnu.org; Wed, 29 Dec 2021 03:53:56 -0500 Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200]:39137) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2UiZ-0001Tf-19 for 52864@debbugs.gnu.org; Wed, 29 Dec 2021 03:53:55 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id D0C3420002; Wed, 29 Dec 2021 08:53:45 +0000 (UTC) In-Reply-To: <86k0fn3if8.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 29 Dec 2021 10:38:59 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:223312 Archived-At: > (add-hook 'sgml-mode-hook > (lambda () > ;; Don't insert newlines after > (setq-local skeleton-end-newline nil))) > > Then maybe 'skeleton-end-newline' should be mentioned > in the docstring of 'sgml-tag', or maybe even 'sgml-mode'. Or better to add a new customizable variable that defaults to skeleton-end-newline, e.g. (defcustom sgml-tag-end-newline skeleton-end-newline ...