From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: set sgml-xml-mode to true in some modes derived from sgml-mode Date: Thu, 4 Aug 2022 11:59:09 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4814"; mail-complaints-to="usenet@ciao.gmane.io" To: Yilkal Argaw , Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 04 14:31:35 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 1oJa0k-00014e-RF for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Aug 2022 14:31:34 +0200 Original-Received: from localhost ([::1]:33068 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJa0j-0006Qs-FA for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Aug 2022 08:31:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60758) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJZVQ-0007Ev-E7 for emacs-devel@gnu.org; Thu, 04 Aug 2022 07:59:12 -0400 Original-Received: from mail-ua1-x92b.google.com ([2607:f8b0:4864:20::92b]:41561) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJZVO-0004wE-R9 for emacs-devel@gnu.org; Thu, 04 Aug 2022 07:59:12 -0400 Original-Received: by mail-ua1-x92b.google.com with SMTP id h19so7137906ual.8 for ; Thu, 04 Aug 2022 04:59:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:in-reply-to:references:mime-version:date:message-id:subject:to; bh=m9XyDGwY+JFTnowBOcJ5YoPwNKQYBPjfPgf1N3u27cA=; b=S6A6ddfuZxXjn+ETx5yY7l3HOrDagGJVE4YSIJnRRBwOEAzGE9mytXtWNF0Rk9DUcC NjZgMRN1NbRFBTtWbFj730aOL3HISIdY1CwGnQCZEgNt8uIJZGwsZBMS30ZXS1sfTe3e u8QJiXDjFy0cDn0uZoNLWfdPXm+1zgeCtjV8Cc5vt8iVdFqgWiyWt3WgD9/EYWVX9bRG DHL6Sx+2S23vpl0Gpd+gnKJMbMtNnmqXVMdGQR51F5xM6iZODQcax1K6weYIXAv1vj/R sOoFONdjtiogT1s8aqavPmldaF9AMy8DK8SKbBpSzXIC2PBX0nWOvJPyDwpbArJfXxgw zUNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to; bh=m9XyDGwY+JFTnowBOcJ5YoPwNKQYBPjfPgf1N3u27cA=; b=ev+l/PKvhBlZ26Qo3Au4bFewLxYaF+pI5U7x479EerA8ksechjuhX0GF07YUGi6Y6Y 1mGOZDrpXw2oMmWlcroTcCpLMpppLVjXBS/AGuPggy2XGJ7Z6rlXGBeiLBp/fqD5BLDj wHtWWynV1C0jwGR6w2FJXGxmirLUFB5bOmpisSorsL7ezYdw+bh/u3FWKg4t2c0hq+gL EIXL/36hFYEmnjL5fV8IrGLJMOeR3eGlo1129Ldg7PFK7Q2r4XpWN8iJuPrsIMdd2Cp3 YG8OOjO0mb7LkWD5/qxwA5e629a4TJZq5T/gEE4ie542VQrBFXDCsKxpGhAe15Q4PGyt I4Xg== X-Gm-Message-State: ACgBeo1OE6c4DCIh4NGfdFmoPEwuzGQvuyP5quKLJAe+AQID2Paegy5D pEoeqGNa9eSsv9ja2K1h5zps1kr9PvnH+EDI5oo= X-Google-Smtp-Source: AA6agR7bSeAme5ydERw5GW7nQ+HhpaZTWhTE4P5xC7TD4z1Atnl3/h/PM8AsvcgIhJso4dkAh9oubc4kZC2uU1e+7r4= X-Received: by 2002:ab0:3cc:0:b0:384:defe:ff2 with SMTP id 70-20020ab003cc000000b00384defe0ff2mr527231uau.71.1659614349805; Thu, 04 Aug 2022 04:59:09 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 4 Aug 2022 11:59:09 +0000 In-Reply-To: X-Hashcash: 1:21:220804:yilkalargawworkneh@gmail.com::NNzZZlD3HnU/8/WR:Bbsi Received-SPF: pass client-ip=2607:f8b0:4864:20::92b; envelope-from=stefankangas@gmail.com; helo=mail-ua1-x92b.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:293056 Archived-At: Hi Yilkal, 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. This can be done by setting the variable > in the autoload section for the derived modes. This makes the default > behaviour of those modes more usable without using hooks. For now I am > using hooks set the variable true for html, mhtml and xml modes but I > think that it should be set by default for it to be more user > friendly. Thanks for bringing this issue to our attention. However, this looks like a bug report/feature request and should probably better go to bug-gnu-emacs@gnu.org so that we don't lose track of it. It would also be helpful if you could include a recipe to reproduce exactly what you see on your screen, starting from "emacs -Q", to make it easier for those of us not intimately familiar with `sgml-xml-mode'. Thanks.