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 13:49:25 +0300 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="15101"; mail-complaints-to="usenet@ciao.gmane.io" To: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 04 12:54:39 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 1oJYUx-0003q1-4R for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Aug 2022 12:54:39 +0200 Original-Received: from localhost ([::1]:52632 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJYUw-0001iE-0O for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Aug 2022 06:54:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48854) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJYQ8-0008Bi-Mc for emacs-devel@gnu.org; Thu, 04 Aug 2022 06:49:41 -0400 Original-Received: from mail-yw1-x1129.google.com ([2607:f8b0:4864:20::1129]:41846) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJYQ7-0001Vg-5c for emacs-devel@gnu.org; Thu, 04 Aug 2022 06:49:40 -0400 Original-Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-32868f43dd6so20122647b3.8 for ; Thu, 04 Aug 2022 03:49:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=V+NhmW5HoL5FugM1QP3kIFzm4undzd8/FuNWg9n4fIY=; b=QNGuFKkxemdETcyLr8uN2Kuk0Xi7ejwlFOC9aL3+tdjjXKZApFYed5SWW9gpfx/EhY ayNfNz3c2xCbKAofipXPTKUcHmAA6ZxOgfEUjVB/if4VHCNFix03j1H0mYIf0rwGEhx2 ao+IFI3OvVI1+qnCOr42XcvJsxbUiFyOUhVQjfHonLBCFJXaD2u88bcX+7d3JlRVG1DB HmorKJJ+Wk4MD5xps/co/PvdpCjmTKulF5mTOHq/y5sTtvwdoVFPJyJoVMj5py49vKo5 GguZ+FfbNRQlVPA+dkIxbBeVv87y65cVxfjbTdvmjBaH7bHxOpUurZ34FiGYVBmSoKGF /ISg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=V+NhmW5HoL5FugM1QP3kIFzm4undzd8/FuNWg9n4fIY=; b=s/pml8uR2hkc8jNqw5fKMGJuzpQQ3fnoOxMIQsvo5pi9Plz77SDxfaKTWhoTLpHc9E WMZEOGlRx8stl/y7HSGkEH8bRxnYaFf3DNJ1uOXwVWgnjXABm0DUPTEaW9ZUwEgReV3e ITU2KCxk0SrKk3LSd5C/ynKKMbrwlbvOhTLTk1vBgrjou7WdM9VjtQ243jYBvWvfSGZB kM79KaO0SBwU/6iCku6Jr/s4RYGV6Wapjo5FZFCAVf0yC/WQLSd+pjwa9nTzhK2esWzn KMwTZ7qgUPjZlXIcGOlKtTkAo6Oxog7uW/p6Cnv2t8Gvx6CmGPbow56cG9ym5rkG2SAb Sx+g== X-Gm-Message-State: ACgBeo2e4MTIqYsvfy1oVxboomtEdipd2gZE6VxZWu8JzOBaf2ZfePz1 3mmV0oM82YB0ddY5dzww3plFg9e7NjRK39sBTCIaboM6 X-Google-Smtp-Source: AA6agR4MY5uc9IJLraycPc06XmdgpruZMDAlFcbULsupoPzutCXy4LOEndCgrbds2DPLV6A5oE3NF2+0/vpVe4NcaZA= X-Received: by 2002:a81:588b:0:b0:31f:64fb:5729 with SMTP id m133-20020a81588b000000b0031f64fb5729mr1122340ywb.403.1659610177126; Thu, 04 Aug 2022 03:49:37 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::1129; envelope-from=yilkalargawworkneh@gmail.com; helo=mail-yw1-x1129.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:293054 Archived-At: > Hi All > > 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. > > With Regards > Yilkal Ammendment I know the differences between html and xml but I thought when looking at the documentation of sgml-xml-mode It deals closing tags but looking at the code it might be better to have explicit variable to define explicit variable that deals with the closing this skeleton tags On Thu, Aug 4, 2022 at 1:16 PM Yilkal Argaw wrote: > > Hi All > > 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. > > With Regards > Yilkal