From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yilkal Argaw Newsgroups: gmane.emacs.devel Subject: Re: set sgml-xml-mode to true in some modes derived from sgml-mode Date: Thu, 4 Aug 2022 22:29:37 +0300 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="15031"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , Emacs Devel To: Yuri Khan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 04 21:36:23 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 1oJgdq-0003hn-J0 for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Aug 2022 21:36:22 +0200 Original-Received: from localhost ([::1]:35200 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJgdp-0004BN-Jy for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Aug 2022 15:36:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45348) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJgXZ-0008CE-B6 for emacs-devel@gnu.org; Thu, 04 Aug 2022 15:29:53 -0400 Original-Received: from mail-yw1-x1135.google.com ([2607:f8b0:4864:20::1135]:44012) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJgXW-0003gZ-Fu for emacs-devel@gnu.org; Thu, 04 Aug 2022 15:29:53 -0400 Original-Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-328303afa6eso5124707b3.10 for ; Thu, 04 Aug 2022 12:29:50 -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=gCGKk4ebX//4kMLC84nSO47lQMYkt1oeKbvSkgvYCPo=; b=C12YH2qtVeqEB+PakOF7hcr2vUthwEaxZRN+Xp0m2Ic6GI83R0YDYjKcmrdyRrqzJE OqeOxLifw9up4WNv1pCKODjPfxzVABh6ckUzEhPXQzAhvZAVim0/d1VPGnw/Mkv3b33f qsXeIM/0lYLrODcuMTHq6+91JnqDnsZnwIwZRdH+xK3TlRzWJxJ/HnmF5/T5UKq58rpQ tI/xxMl9s6WpCA7IfeCYOdl5pjiVn2yUFZR8JegsiO9IM+EcoWf8R3Uz2DAme8jdrV6l hA6ezuC06w3pE0i+cPNEK5nlVnKgY0vntx3V4NJBDBGREQKwFyVzYTNbi7GXHwsnvel2 n4/A== 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=gCGKk4ebX//4kMLC84nSO47lQMYkt1oeKbvSkgvYCPo=; b=YTjHvuPxhib0rU/giwQwZtWbQ/xqNVUFCFWQCoRbdrcoY0VKwEe9Q4X2GaQhuqy4KC c/Czra3vejzCZ64Py6utt3uOYL7ND4pHt2bdQLVAd5Ktul6gSzz0WTfwvtPI+NW5tHK9 Ax96MLKHFR2FkFLybf9nvmzTKllUINSpXjFSdTsLxRPXxbSIDJNlTrOUOYrAcPprbcNL OTiI3OrW8agZ77AZmTBp7093tlqNitHGEDWkUe6ZQYdbk0WXOP1eV7RpsAow1+Otmbpn NBWZSNSjP2GfhY0336wSyDA5qkRm4Emdg3HVFIytx8bfUGqfR1IF2Owx6EF/g52SkAQq xlIg== X-Gm-Message-State: ACgBeo2Nr4CHEP2aqnBXytpNeqhIHvPftzikQe5MSeu7z4o49fmznsay TQ2EzVnOl3TKInIRWCZfhdToM7GjPO0SgPDK9U8= X-Google-Smtp-Source: AA6agR72BbfrWY8013ywtr5jKj66Ubt1jp/MbWd69EWTogTdWaqu6eW2DdD3oBy90B5EEJplIl2Z1SEubbrCt4TFQTA= X-Received: by 2002:a81:588b:0:b0:31f:64fb:5729 with SMTP id m133-20020a81588b000000b0031f64fb5729mr3018218ywb.403.1659641389246; Thu, 04 Aug 2022 12:29:49 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::1135; envelope-from=yilkalargawworkneh@gmail.com; helo=mail-yw1-x1135.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:293087 Archived-At: > 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.) May be having a variable that contains an list of tags you want to close in html (i.e. those that are permitted by the HTML syntax and are enforced by some standards > (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.) I used yasnippet and emmet but I'm currently experimenting with vanilla emacs features and I was able to setup my own work flow by using tempo and expand snippeting features. I'm now trying to understand skeletons which really are not that bad (not-really optimal either). I'm trying to understand and work on improving these features in the future and the best place to really use them and get annoyed with them. On Thu, Aug 4, 2022 at 7:56 PM Yuri Khan wrote: > > 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= it > 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.)