From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#52864: sgml-tag inserts newlines Date: Wed, 29 Dec 2021 19:06:45 +0100 Message-ID: <87ilv78eve.fsf@gnus.org> References: <875yr8412e.5.fsf@jidanni.org> <86k0fn3if8.fsf@mail.linkov.net> <86bl0z3i81.fsf@mail.linkov.net> <87wnjn5suv.fsf@gnus.org> <865yr7z411.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10888"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 52864@debbugs.gnu.org, =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 29 19:08:05 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 1n2dMr-0002hx-Ra for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Dec 2021 19:08:05 +0100 Original-Received: from localhost ([::1]:43160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2dMq-0001hU-8C for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Dec 2021 13:08:04 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57210) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2dLt-0000tb-7i for bug-gnu-emacs@gnu.org; Wed, 29 Dec 2021 13:07:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38754) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2dLs-0007aJ-UY for bug-gnu-emacs@gnu.org; Wed, 29 Dec 2021 13:07:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n2dLq-0003YD-FS for bug-gnu-emacs@gnu.org; Wed, 29 Dec 2021 13:07:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Dec 2021 18:07:02 +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.164080122013638 (code B ref 52864); Wed, 29 Dec 2021 18:07:02 +0000 Original-Received: (at 52864) by debbugs.gnu.org; 29 Dec 2021 18:07:00 +0000 Original-Received: from localhost ([127.0.0.1]:50300 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2dLn-0003Xu-Nn for submit@debbugs.gnu.org; Wed, 29 Dec 2021 13:06:59 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:44308) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2dLm-0003Xh-KP for 52864@debbugs.gnu.org; Wed, 29 Dec 2021 13:06:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=AZZhepPtM6EhGs/QoTo/iKHI2f6/ve5xYv5WpAZKMVM=; b=V80Q9f9nVVihyzN0UkEehi+OSj kVHghSO+uDT1X9p159yUc1gbB4zkKV87LVO23vknDwmT2h6nATY+yNtCBZhejgL2az55bh8Gm0wQK QMU+ZTA3F4RseM/UZOGjU6feYW9E3JnPwKThoR6Edvbd97bKlLHz//mNeUGYDm1LjpLk=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n2dLd-0008Cs-6Y; Wed, 29 Dec 2021 19:06:51 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAM1BMVEX+3Bj+4RqTeBOz nTz/4w3orZ3+3An86Gj99a3+4SX44o7+/fb9+dD9/Ob+3iPv0Nr////LMsAQAAAAAWJLR0QQlbIN LAAAAAd0SU1FB+UMHRErHwtCewkAAAF1SURBVEjH1ZXrksIgDIWJLSSEgO//tnvobWuLjMz6Z8/U W82X5ARE5/63iIaBMYRGANriPwd2fW73Q4DO7QxVGAHorC8CW/eX+G4FahS4Aec7tCHf9fCYqBd+ A+jxuNyivgeapoatoQpX5M/ANAy41qTfA/M0zWOAbwH0zQrTcAW/AKFqid3jXbdCYIHiUcB1W6rJ NZklDtv39P6YASAGJWG2LOVw4d4DiBMx9t5yjiWWi+0G8PSQAuCUctLQHWtQZa1ir5lV1CSsg3Lt wxhuM5SSeDXOCd2F39VwNyAiqSBtlvxUw4vBTdzPgvv/Q+A9P+fMkgQ9ZUz3vOJXQBmBddngw+Oq n8LbrRFq13UNsGx+nZUk6wBABKOECTZjGAAgx1jbU6rdJDVNSeFmAUr3IMM+KhnhggdbbQkzOOu+ +V2sKwbvyhnPti7koRbwklHDqxoA8Vnx6L4UXKUBuDCH+qOYl+tlo4Jy8ZJ+zVW1vtmBspX4Ab0j EHG3l1m6AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTEyLTI5VDE3OjQzOjMxKzAwOjAwkEqCZAAA ACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0xMi0yOVQxNzo0MzozMSswMDowMOEXOtgAAAAASUVORK5C YII= X-Now-Playing: James Figurine's _Mistake Mistake Mistake Mistake_: "All The Way To China" In-Reply-To: <865yr7z411.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 29 Dec 2021 19:58:50 +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:223370 Archived-At: Juri Linkov writes: > All necessary newlines are explicitly defined in skeletons, > e.g. a block-like div: > > (define-skeleton html-div > "HTML div tag." > nil > "
" > \n _ \n "
" >) > > where =E2=80=98>=E2=80=99 at the end inserts a newline too and indents. Oh, I see. > Given the examples above, I don't know what the default value should it h= ave, > maybe nil? For example, 'texinfo-mode' does this: > > ;; 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. > (setq-local skeleton-end-newline nil) It sounds like we should just do the same in sgml-mode without adding the new defcustom? I.e., just set skeleton-end-newline to nil in the mode function. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no