all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yilkal Argaw <yilkalargawworkneh@gmail.com>
To: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: set sgml-xml-mode to true in some modes derived from sgml-mode
Date: Thu, 4 Aug 2022 13:49:25 +0300	[thread overview]
Message-ID: <CAJddU=pS3U9esoFqZPR89v3+WE_FUSPzYHUvK6Dy+sNPNmnZVA@mail.gmail.com> (raw)
In-Reply-To: <CAJddU=oM5LstmjS73jQKxzKJ1ZX_O2A=EE8GJyrBB9AtizUftw@mail.gmail.com>

> 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	other threads:[~2022-08-04 10:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-04 10:16 set sgml-xml-mode to true in some modes derived from sgml-mode Yilkal Argaw
2022-08-04 10:49 ` Yilkal Argaw [this message]
2022-08-04 11:59 ` Stefan Kangas
2022-08-04 12:55 ` Lars Ingebrigtsen
2022-08-04 16:56   ` Yuri Khan
2022-08-04 19:29     ` Yilkal Argaw
2022-08-05  4:28       ` tomas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJddU=pS3U9esoFqZPR89v3+WE_FUSPzYHUvK6Dy+sNPNmnZVA@mail.gmail.com' \
    --to=yilkalargawworkneh@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.