- 3-step easy installation (from single tar.gzip file)
- tabs vs. spaces issue resolved: User can configure.
- auto-completion now generally happens when you hit
</ instead of >, but does slightly more than it used to
- Tabs vs. Spaces: I reverted my code to the original
defaults: 2-space indent using spaces (not tabs). I also
tried to encourage customization. Made indent-tabs-
mode a defcustom instead of a defvar to encourage
users to customize it. Greatly expanded the
documentation for xsl-element-indent-step to make sure
users set up their tabs mode properly.
- Changed defcustom booleans so that the choice menu
gives 0 for nil and 1 for t instead of the other way around.
- Tweaked auto-tag-completion in xsl-electric-greater-
than and xsl-electric-slash. I really liked the auto
completion and set out to fix some minor bugs. After
reworking several times, I realized that while my design
goals were in line with the original ones, my priorities
Primary goal: Reduce typing by auto-completing as
much as possible
Secondary goal: Don't auto-complete when the user
might not want it.
Primary goal: Don't auto-complete when the user might
not want it.
Secondary goal: Reduce typing by auto-completing as
much as possible.
My reasoning: Even though it's probably no more
keystrokes overall between deleting auto-completes that
you don't want vs. typing the </ to start an end tag in
order to get an auto completion, it's annoying when an
editor inserts stuff you don't want.
I added additional auto-completion for <xsl:choose> and
for <table> tags in xsl-electric-greater-than. Other tags
do not auto-complete when you hit >. They wait until
you hit </, and then only outside of comments. Maybe
this could be improved with an xsl-electric-space that
auto-inserts required attributes when you finish writing
the tag name.
I modified xsl-electric-slash to fill in the close tag even if
it is looking at whitespace or the beginning of another
tag. I think this is fine because the only time you
wouldn't want that is if you are looking at a valid tag
name (because it might the name of the end-tag you are
about to auto-complete).
- Fixed bug where xsl-electric-less-than was inserting
spaces after the cursor instead of before.
- Improved xsl-electric-return to put you right under the
start of the previous line in comments.
- Added some constants for some regular expressions
that were used more than once.
- No functional changes. Removed a stupid comment I
had copied from somewhere else. Added a commented-
out option for CDATA highlighting that might be cool. I
was thinking that since CDATA sections might not be
XML, and in fact, might be another language entirely
whole thing one color. On the other hand, it is pretty
common to find xml-type languages in these sections,
so highlighting might be useful. Thoughts anyone?
Packaged as a tar/gzip for easier installation. Included
pre-built .elc files.
- Unzip into your xslide directory using tar/gzip or
- open emacs and enjoy