From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 28 22:18:53 2021 Received: (at submit) by debbugs.gnu.org; 29 Dec 2021 03:18:53 +0000 Received: from localhost ([127.0.0.1]:47870 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2PUL-0001fS-H2 for submit@debbugs.gnu.org; Tue, 28 Dec 2021 22:18:53 -0500 Received: from lists.gnu.org ([209.51.188.17]:50590) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2PUK-0001fJ-0X for submit@debbugs.gnu.org; Tue, 28 Dec 2021 22:18:52 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35640) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2PUJ-0004gq-Np for bug-gnu-emacs@gnu.org; Tue, 28 Dec 2021 22:18:51 -0500 Received: from anteater.aspen.relay.mailchannels.net ([23.83.221.3]:25548) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2PUH-0002dz-M5 for bug-gnu-emacs@gnu.org; Tue, 28 Dec 2021 22:18:51 -0500 Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 7DBB18620F4 for ; Wed, 29 Dec 2021 03:18:43 +0000 (UTC) Received: from pdx1-sub0-mail-a250.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 3AE9F861EDB for ; Wed, 29 Dec 2021 03:18:28 +0000 (UTC) Received: from pdx1-sub0-mail-a250.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.105.57.97 (trex/6.4.3); Wed, 29 Dec 2021 03:18:43 +0000 Received: from jidanni.org (114-41-12-3.dynamic-ip.hinet.net [114.41.12.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a250.dreamhost.com (Postfix) with ESMTPSA id 4JNxSH6rk7z1p for ; Tue, 28 Dec 2021 19:18:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=jidanni.org; s=jidanni.org; t=1640747904; bh=4stTzx6WW8Epv0cy4W7bKCujd18=; h=From:To:Subject:Date:Content-Type; b=OulVDYDPWv7H87H3mpPCMuIB86drMeDmso3JEpl0LxBYmd4PLrYQEHLPUzvjhHNVq LsS+Ckyhh4CzfkW6VYOMwefyaDVdXyuLsjemYE9BMdIGefBUoueeG2EtgFCVa8qDV4 3PYuwlV41NDyB7MNzBEOeTom90noTL7RaZpXk0M8= From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: bug-gnu-emacs@gnu.org Subject: sgml-tag inserts newlines Date: Wed, 29 Dec 2021 10:06:17 +0800 Message-ID: <875yr8412e.5.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=23.83.221.3; envelope-from=jidanni@jidanni.org; helo=anteater.aspen.relay.mailchannels.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) C-c C-t runs the command sgml-tag (found in mhtml-mode-map) Problem is that it inserts newlines. abc with marked region b becomes ab c instead of abc emacs -Q, version "27.1" From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 29 03:50:26 2021 Received: (at 52864) by debbugs.gnu.org; 29 Dec 2021 08:50:26 +0000 Received: from localhost ([127.0.0.1]:48033 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2UfC-0001P9-Ky for submit@debbugs.gnu.org; Wed, 29 Dec 2021 03:50:26 -0500 Received: from relay12.mail.gandi.net ([217.70.178.232]:33163) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2UfA-0001Ow-HE for 52864@debbugs.gnu.org; Wed, 29 Dec 2021 03:50:25 -0500 Received: (Authenticated sender: juri@linkov.net) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 03249200003; Wed, 29 Dec 2021 08:50:16 +0000 (UTC) From: Juri Linkov To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson Subject: Re: bug#52864: sgml-tag inserts newlines Organization: LINKOV.NET References: <875yr8412e.5.fsf@jidanni.org> Date: Wed, 29 Dec 2021 10:38:59 +0200 In-Reply-To: <875yr8412e.5.fsf@jidanni.org> (=?utf-8?B?IuepjeS4ueWwvA==?= Dan Jacobson"'s message of "Wed, 29 Dec 2021 10:06:17 +0800") Message-ID: <86k0fn3if8.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 52864 Cc: 52864@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > C-c C-t runs the command sgml-tag (found in mhtml-mode-map) > > Problem is that it inserts newlines. Indeed, it's a problem, so I have such customization: (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'. From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 29 03:53:56 2021 Received: (at 52864) by debbugs.gnu.org; 29 Dec 2021 08:53:56 +0000 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 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 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) From: Juri Linkov To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson Subject: Re: bug#52864: sgml-tag inserts newlines Organization: LINKOV.NET References: <875yr8412e.5.fsf@jidanni.org> <86k0fn3if8.fsf@mail.linkov.net> Date: Wed, 29 Dec 2021 10:53:18 +0200 In-Reply-To: <86k0fn3if8.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 29 Dec 2021 10:38:59 +0200") Message-ID: <86bl0z3i81.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 52864 Cc: 52864@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > (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 ... From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 29 10:33:08 2021 Received: (at 52864) by debbugs.gnu.org; 29 Dec 2021 15:33:08 +0000 Received: from localhost ([127.0.0.1]:49964 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2awu-00006W-H6 for submit@debbugs.gnu.org; Wed, 29 Dec 2021 10:33:08 -0500 Received: from quimby.gnus.org ([95.216.78.240]:42752) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2aws-00005w-GD for 52864@debbugs.gnu.org; Wed, 29 Dec 2021 10:33:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: 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=hJJsZqbZK7PrweiK2RY0bxY+/mxYe3C7LZBIu1xmDWo=; b=m255ceGRyWM8o7GUlxIfc/57NJ pBD2b2m1YSPlZEEpP9EcG8SqKViuDfl0u+RRY/wLhF8gJfjFp65S9R758teE+DaZWS6ji6gaeo2Su qdT7nj/Dlk6H9CQj3xzfgBIx0eyPK+REg6ApveaaQ7YKnEFmeKG1+wgcNE+iHOLtC+Cs=; 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 1n2awj-0007Cc-02; Wed, 29 Dec 2021 16:32:59 +0100 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#52864: sgml-tag inserts newlines References: <875yr8412e.5.fsf@jidanni.org> <86k0fn3if8.fsf@mail.linkov.net> <86bl0z3i81.fsf@mail.linkov.net> X-Now-Playing: Four Tet's _Pole v Four Tet_: "Cload" Date: Wed, 29 Dec 2021 16:32:56 +0100 In-Reply-To: <86bl0z3i81.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 29 Dec 2021 10:53:18 +0200") Message-ID: <87wnjn5suv.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: >> (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 th [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52864 Cc: 52864@debbugs.gnu.org, =?utf-8?B?56mN5Li55bC8?= Dan Jacobson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Juri Linkov writes: >> (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 > ... Doesn't it depend on what tag you're inserting whether it's likely you want to have a newline at the end, though? The more "block"-like tags would normally be preferably have a newline at the end, while others don't. On the other hand, if you're inserting a tag in the middle of the line, you probably don't want to insert a newline, I think? So perhaps just adding that defcustom is the right option... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 29 13:00:30 2021 Received: (at 52864) by debbugs.gnu.org; 29 Dec 2021 18:00:30 +0000 Received: from localhost ([127.0.0.1]:50290 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2dFW-0003Lu-K2 for submit@debbugs.gnu.org; Wed, 29 Dec 2021 13:00:30 -0500 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:38351) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2dFU-0003Lh-Ey for 52864@debbugs.gnu.org; Wed, 29 Dec 2021 13:00:29 -0500 Received: (Authenticated sender: juri@linkov.net) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 48D99240003; Wed, 29 Dec 2021 18:00:19 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#52864: sgml-tag inserts newlines Organization: LINKOV.NET References: <875yr8412e.5.fsf@jidanni.org> <86k0fn3if8.fsf@mail.linkov.net> <86bl0z3i81.fsf@mail.linkov.net> <87wnjn5suv.fsf@gnus.org> Date: Wed, 29 Dec 2021 19:58:50 +0200 In-Reply-To: <87wnjn5suv.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 29 Dec 2021 16:32:56 +0100") Message-ID: <865yr7z411.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 52864 Cc: 52864@debbugs.gnu.org, =?utf-8?B?56mN5Li55bC8?= Dan Jacobson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> (defcustom sgml-tag-end-newline skeleton-end-newline > > Doesn't it depend on what tag you're inserting whether it's likely you > want to have a newline at the end, though? The more "block"-like tags > would normally be preferably have a newline at the end, while others > don't. 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 ‘>’ at the end inserts a newline too and indents. But non-block tags are defined without newlines, e.g.: (define-skeleton html-span "HTML span tag." nil "" > _ "") and skeleton-end-newline inserts an unrequested newline. > On the other hand, if you're inserting a tag in the middle of the line, > you probably don't want to insert a newline, I think? So perhaps just > adding that defcustom is the right option... Given the examples above, I don't know what the default value should it have, 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) From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 29 13:06:59 2021 Received: (at 52864) by debbugs.gnu.org; 29 Dec 2021 18:07:00 +0000 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 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=; 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 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#52864: sgml-tag inserts newlines 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> 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" Date: Wed, 29 Dec 2021 19:06:45 +0100 In-Reply-To: <865yr7z411.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 29 Dec 2021 19:58:50 +0200") Message-ID: <87ilv78eve.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: 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 ‘>’ at the en [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52864 Cc: 52864@debbugs.gnu.org, =?utf-8?B?56mN5Li55bC8?= Dan Jacobson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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 From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 29 13:53:19 2021 Received: (at 52864) by debbugs.gnu.org; 29 Dec 2021 18:53:20 +0000 Received: from localhost ([127.0.0.1]:50373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2e4d-0004xa-OG for submit@debbugs.gnu.org; Wed, 29 Dec 2021 13:53:19 -0500 Received: from relay12.mail.gandi.net ([217.70.178.232]:39877) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2e4c-0004xH-3M; Wed, 29 Dec 2021 13:53:18 -0500 Received: (Authenticated sender: juri@linkov.net) by relay12.mail.gandi.net (Postfix) with ESMTPSA id E1A6E200006; Wed, 29 Dec 2021 18:53:09 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#52864: sgml-tag inserts newlines Organization: LINKOV.NET 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> <87ilv78eve.fsf@gnus.org> Date: Wed, 29 Dec 2021 20:52:38 +0200 In-Reply-To: <87ilv78eve.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 29 Dec 2021 19:06:45 +0100") Message-ID: <86v8z7xmyx.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 52864 Cc: 52864@debbugs.gnu.org, =?utf-8?B?56mN5Li55bC8?= Dan Jacobson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) close 52864 29.0.50 quit >> 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. So now this is pushed to Emacs 29. From unknown Thu Aug 14 22:18:15 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 27 Jan 2022 12:24:11 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator