emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: set sgml-xml-mode to true in some modes derived from sgml-mode


From: Yilkal Argaw
Subject: Re: set sgml-xml-mode to true in some modes derived from sgml-mode
Date: Thu, 4 Aug 2022 13:49:25 +0300

> 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 "<li>" 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
<yilkalargawworkneh@gmail.com> 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 "<li>" 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]