From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Yuri Khan
Newsgroups: gmane.emacs.devel
Subject: Re: set sgml-xml-mode to true in some modes derived from sgml-mode
Date: Thu, 4 Aug 2022 23:56:26 +0700
Message-ID:
References:
<874jysi2xd.fsf@gnus.org>
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="26584"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: Yilkal Argaw ,
Emacs Devel
To: Lars Ingebrigtsen
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 04 18:57:46 2022
Return-path:
Envelope-to: ged-emacs-devel@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 1oJeAM-0006n3-Hr
for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Aug 2022 18:57:46 +0200
Original-Received: from localhost ([::1]:56026 helo=lists1p.gnu.org)
by lists.gnu.org with esmtp (Exim 4.90_1)
(envelope-from )
id 1oJeAL-0003LH-Co
for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Aug 2022 12:57:45 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44250)
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1oJe9J-0001p0-EW
for emacs-devel@gnu.org; Thu, 04 Aug 2022 12:56:41 -0400
Original-Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:42525)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.90_1) (envelope-from )
id 1oJe9H-00053M-U5
for emacs-devel@gnu.org; Thu, 04 Aug 2022 12:56:41 -0400
Original-Received: by mail-wr1-x429.google.com with SMTP id z12so404394wrs.9
for ; Thu, 04 Aug 2022 09:56:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=content-transfer-encoding:cc:to:subject:message-id:date:from
:in-reply-to:references:mime-version:from:to:cc;
bh=ECIias5TfFlZ/7ge0X+vPyiaaoEIjDmR5yjzWYB8vFo=;
b=h5e2zw8pp0eNeKA7DOuhJV8RIKyxVEC7zDKXEQH+sEoztx6McTBkCrg45iklVQnc+/
fsmuBb+U+jKFuilgrjWoMK69zaFABJ4vlAOUaV0AwCDmS75P+H8Gvzyvv7pjR8Rwplbv
F//iCVyrLhW6viniiXr6pLTtpGPJ4EXwHS7ukh+2JvLtPCP0TdECJplB/CPCbDTo6dyN
JNywqo2xbZn7OBcn8Fnr9dzIB5F8gaheuUWCtGCpAN5DKy+FrRP5HvCmNJ3c1p7odqTv
VUXtlmLMdRuVdVvUqTWdopl4+C8SzC+ePb1LWut63PDp2w6YFoXXSSRtj4JQ3e/GMZ/+
qP5A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=content-transfer-encoding:cc:to:subject:message-id:date:from
:in-reply-to:references:mime-version:x-gm-message-state:from:to:cc;
bh=ECIias5TfFlZ/7ge0X+vPyiaaoEIjDmR5yjzWYB8vFo=;
b=sYGvS2n4e2JeUJcyNY5bFTnz2QXHttPCt1hYpFPIrrPmWo9xI9veYov+VBwE2N7PHX
LDMn95otu+LXOSV0wzAoJVR57uFj69ORE1kyTFncxh3YScFd+Cd4+VLX/aeQjS0DGgHd
C1zbXRwqsHKJxrkwux6bhBa33mmiQ646BhMGuL74574f4VowqzYAfdrpcBZawOEziCGx
9oJ7d1Pap6cLAhEz9YcLhC6hYyZ2fmDmr+hPf3Bj0m/e2hsVAXhK4DoZ1ltrdOSQ3fZh
pbwak+43eZXlkDU72xeFZ8B7TB3xqktnrBJiFoq8+mdZrmEecA/67tmdy0Bd8tol3y0X
5r/Q==
X-Gm-Message-State: ACgBeo1fFaEYbC9Ej2Cs4HET2k5KXX+h7iY+j4cK6xbn6D8BB+uhgG+E
BlkbSrgdoibl2YNAs9dOWjfHLNo9MI65WsXI16o=
X-Google-Smtp-Source: AA6agR7Z+8SyfRmbyaseNmEtA0nwWjKJS86c3gF5Gyb8KrLvd8SuK90G2xwzO22f2TAJdi3DL9d4XfR11aR12idTEo4=
X-Received: by 2002:adf:d1e2:0:b0:21d:d40b:d816 with SMTP id
g2-20020adfd1e2000000b0021dd40bd816mr1953247wrd.682.1659632198099; Thu, 04
Aug 2022 09:56:38 -0700 (PDT)
In-Reply-To: <874jysi2xd.fsf@gnus.org>
Received-SPF: pass client-ip=2a00:1450:4864:20::429;
envelope-from=yurivkhan@gmail.com; helo=mail-wr1-x429.google.com
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, FREEMAIL_FROM=0.001,
RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Emacs development discussions."
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org
Original-Sender: "Emacs-devel"
Xref: news.gmane.io gmane.emacs.devel:293080
Archived-At:
On Thu, 4 Aug 2022 at 19:57, Lars Ingebrigtsen wrote:
>
> Yilkal Argaw writes:
>
> > While trying to use emacs to edit html files I noticed how the
> > sgml-tag functions which uses skeletons to insert tags does not
> > insert a closing tag for some tags like "" this behaviour changes
> > by changing the variable "sgml-xml-mode" to a non nil value. Would it
> > not be better to turn this variable to true some of the derived modes
> > like html-mode and xml-mode.
>
> You don't want the skeleton to insert in html-mode --
For some values of =E2=80=9Cyou=E2=80=9D, you certainly do.
Specifically, you[^*] want in your[^**] HTML all closing tags that are
permitted by the HTML syntax.
, , , but not or
. (You[^*] also want quotes around all your[^**] attribute
values.)
[^*]: I.
[^**]: my.
> pretending that HTML is XML isn't recommended.
Not arguing with that, although XHTML was a good idea and I=E2=80=99m sad i=
t
didn=E2=80=99t play out.
(To OP: You might like a different method of automation. E.g. my
primary way of writing HTML is: I enter a tag name such as =E2=80=9Cli=E2=
=80=9D, press
Tab, and Yasnippet expands it into |. Or I mark a region,
overwrite it with a tag name like =E2=80=9Ccode=E2=80=9D, press Tab, and it=
gets
yanked back, surrounded with =E2=80=A6
.)