unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* nxml-mode: Derive from prog-mode instead of text-mode
@ 2017-05-10 10:35 Jostein Kjønigsen
  2017-05-10 10:40 ` Yuri Khan
                   ` (3 more replies)
  0 siblings, 4 replies; 42+ messages in thread
From: Jostein Kjønigsen @ 2017-05-10 10:35 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1191 bytes --]

Hey everyone.

One thing I find unintuitive about nxml-mode is how it derives from
text-mode.
The reason this surprises me is that when I edit XML-files, I almost
exclusively (to the point of not being able to remember an exception) am
working with programming-related tasks.
Therefore I expect my prog-mode-hook to have fired, and my prog-mode
settings and key-bindings to be in effect (compile, projectile-
navigation, commenting/uncommenting, etc etc).
But no. I have my text-mode settings instead (spell-checking, etc),
which often conflict with what I want to get done.
Could we consider changing nxml-mode to derive from prog-mode instead?

While it can be considered a "breaking"-change, I think this would make
much more sense. And such a change is not entirely unprecedented either:
css-mode made the same transistion back in 2015. [1]
I can provide the patch for it, but first I thought I'd first check what
people's opinion on such a change would be.
[1] https://github.com/emacs-mirror/emacs/commit/f21d9b6e4461719cece6ad4adc85ea84ddc5a4e0
--
 Yours truly
Jostein Kjønigsen

jostein@kjonigsen.net 🍵 jostein@gmail.com
https://jostein.kjonigsen.net


[-- Attachment #2: Type: text/html, Size: 1960 bytes --]

^ permalink raw reply	[flat|nested] 42+ messages in thread

end of thread, other threads:[~2017-06-06 14:45 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-10 10:35 nxml-mode: Derive from prog-mode instead of text-mode Jostein Kjønigsen
2017-05-10 10:40 ` Yuri Khan
2017-05-10 10:52   ` Jostein Kjønigsen
2017-05-10 11:42     ` Yuri Khan
2017-05-10 12:00 ` Stefan Monnier
2017-05-10 16:38 ` Eli Zaretskii
2017-05-10 17:59   ` Jostein Kjønigsen
2017-05-10 18:59     ` Eli Zaretskii
2017-05-10 19:28       ` Eli Zaretskii
2017-05-11  7:29       ` Jostein Kjønigsen
2017-05-11 15:15         ` raman
2017-05-11 15:29           ` Eli Zaretskii
2017-05-11 15:26         ` Eli Zaretskii
2017-05-14 19:28         ` Philipp Stephani
2017-05-14 19:58           ` Dmitry Gutov
2017-05-15  3:05           ` Tom Tromey
2017-05-16 10:34             ` Jostein Kjønigsen
2017-05-16 11:17               ` Yuri Khan
2017-05-16 12:12                 ` Stefan Monnier
2017-05-16 14:04                   ` Drew Adams
2017-05-16 14:08                     ` Eric Abrahamsen
2017-05-16 18:19                       ` Drew Adams
2017-05-16 21:48                         ` Stefan Monnier
2017-05-17  5:13                         ` Yuri Khan
2017-05-17 12:53                           ` Stefan Monnier
2017-05-17 16:02                           ` Drew Adams
2017-05-17 16:20                             ` Yuri Khan
2017-05-17 16:37                             ` Stefan Monnier
2017-05-17 17:28                               ` Drew Adams
2017-05-17 18:42                                 ` Stefan Monnier
2017-05-17 18:52                                   ` Johan Bockgård
2017-05-16 14:11                     ` Stefan Monnier
2017-05-16 12:11               ` Stefan Monnier
2017-05-16 18:54               ` Eli Zaretskii
2017-05-16 19:02                 ` Jostein Kjønigsen
2017-05-24  8:50                   ` Jostein Kjønigsen
2017-05-30  8:05                     ` Jostein Kjønigsen
2017-05-31 11:52                       ` Stefan Monnier
2017-06-02 12:34                       ` Jostein Kjønigsen
2017-06-06 14:45                         ` Stefan Monnier
2017-05-16 21:50                 ` Stefan Monnier
2017-05-11  1:32 ` Rolf Ade

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).