Commit graph

192 commits

Author SHA1 Message Date
Juanma Barranquero
a9d4efa239 (sgml-close-tag, html-imenu-index): Fix typo. 2002-10-18 08:30:49 +00:00
Mike Williams
1c8438abac (sgml-guess-indent): Handle tabs correctly. 2002-09-29 06:00:18 +00:00
Stefan Monnier
7492ed8e8d (sgml-quote): Use narrowing. Improve the regexp used when unquoting.
(sgml-pretty-print): New function.
(sgml-get-context): Better handling of improperly nested tags.
(sgml-show-context): Don't use the FULL arg of sgml-get-context.
2002-07-13 19:23:05 +00:00
Colin Walters
9d118494d5 (xml-mode): New alias for `sgml-mode'. 2002-05-28 16:51:06 +00:00
Mike Williams
232dbe4f66 (sgml-guess-indent): Look further into the buffer. 2002-05-22 09:40:48 +00:00
Mike Williams
51df53f840 (sgml-tag): Default skeleton-transformation to `identity'. 2002-05-14 09:51:03 +00:00
Eli Zaretskii
89e7ad5946 Change all post-21.1 :version attributes to 21.4. 2002-05-12 17:30:42 +00:00
Mike Williams
662deeab31 (sgml-at-indentation-p): Move to fix compilation error. 2002-04-16 10:38:30 +00:00
Mike Williams
ca05be61ac (sgml-parse-tag-backward): Fix to work at beginning of buffer. 2002-04-14 12:50:10 +00:00
Mike Williams
2871b07a89 (sgml-guess-indent): New function. 2002-04-11 21:59:45 +00:00
Mike Williams
41bfcbee0d (sgml-lexical-context): Use sgml-parse-tag-backward to find start point.
(sgml-looking-back-at): Doc fix.
2002-04-09 12:27:17 +00:00
Mike Williams
9d4ce4285d (sgml-tag-alist): Doc fix. 2002-04-09 12:02:20 +00:00
Stefan Monnier
601280966a (sgml-comment-indent-new-line): New fun.
(sgml-mode): Use it for comment-line-break-function.
2002-04-08 21:32:05 +00:00
Mike Williams
a06283b144 Remember to (require 'cl). 2002-04-03 21:36:58 +00:00
Mike Williams
14614b6d3a (sgml-lexical-context): Fix up CDATA detection for boundary cases. 2002-04-03 21:17:38 +00:00
Mike Williams
2cfd19d446 (sgml-lexical-context)
(sgml-parse-tag-backward): Extend support for CDATA to include
conditional sections.
2002-04-03 12:13:29 +00:00
Mike Williams
80fc318ee8 (sgml-looking-back-at): Short-circuit at beg of buffer.
(sgml-lexical-context,sgml-calculate-indent): Add support for
CDATA sections.
2002-04-02 12:07:27 +00:00
Mike Williams
f6ab0573f9 (sgml-close-tag): Rename from
sgml-insert-end-tag. Simplify by using sgml-lexical-context.
(sgml-get-context): Remove use of sgml-inside-tag-p.
(sgml-inside-tag-p): Remove.
2002-04-02 11:26:12 +00:00
Stefan Monnier
2394187c2c (sgml-at-indentation-p, sgml-tag)
(sgml-parse-tag-name, sgml-looking-back-at, sgml-parse-tag-backward)
(sgml-inside-tag-p, sgml-get-context, sgml-show-context)
(sgml-insert-end-tag): New funs taken from xml-lite.el.
(sgml-calculate-indent): Use them.
(sgml-slash-matching): Rename from sgml-slash.
(sgml-slash): Copied from xml-lite and changed to use
sgml-slash-matching and sgml-quick-keys.
2002-04-01 23:32:15 +00:00
Mike Williams
9c59951810 (sgml-mode): Set indent-line-function to sgml-indent-line. 2002-04-01 12:43:47 +00:00
Mike Williams
347ea5576b Add an explicit check for 'text syntax, to protect against future
enhancements to sgml-lexical-context.
Add sgml-empty-tag-p and sgml-unclosed-tag-p.
2002-04-01 12:08:13 +00:00
Stefan Monnier
3fb819e538 (sgml-lexical-context): Return (text . START)
instead of nil when point is outside of any tag.
(sgml-beginning-of-tag): Adjust to the change.
(sgml-calculate-indent): Use the new info returned by
sgml-lexical-context.  Try to handle unclosed tags.
2002-03-29 22:20:15 +00:00
Stefan Monnier
5f3d924def (sgml-basic-offset): New var.
(sgml-name-re, sgml-attrs-re): New consts.
(sgml-tag-name-re, sgml-start-tag-regex, sgml-font-lock-keywords-1)
(sgml-mode): Use them.
(sgml-lexical-context): Default to (point-min) if nothing else works.
(sgml-calculate-indent): Indent slightly differently.
(sgml-indent-line): Use back-to-indentation.
(sgml-parse-dtd): New function.
(sgml-unclosed-tags): New var.
(html-mode): Set it.
2002-03-29 19:38:22 +00:00
Stefan Monnier
1c1d2eb667 (sgml-make-syntax-table): New fun.
(sgml-mode-syntax-table): Use it.
(sgml-tag-syntax-table, sgml-tag-name-re): New const.
(sgml-tags-invisible): Use it.
(sgml-lexical-context): New fun.
(sgml-maybe-end-tag, sgml-beginning-of-tag): Use it.
(sgml-quote): Accept \n as entity reference terminator.
(sgml-calculate-indent, sgml-indent-line): New funs.
2002-03-28 16:06:38 +00:00
Stefan Monnier
a3ec4ba0ff (sgml-xml-mode): Renamed from sgml-xml.
(sgml-xml-guess): Simplify.
(sgml-mode-common): Remove (move into sgml-mode).
(sgml-mode): Add code from sgml-mode-common.
Remove redundant setting of indent-line-function.
Don't set skeleton-transformation when in XML mode.
2002-03-17 23:55:15 +00:00
Stefan Monnier
0fda8eff1e Change maintainer to FSF.
(sgml-start-tag-regex, sgml-font-lock-keywords-1, sgml-mode-common)
(sgml-tags-invisible, sgml-beginning-of-tag):
Allow _ : and non-ASCII in tag names, as required for XML.
(sgml-name-char): Don't assume anything about charsets handled by encode-char.
2002-03-04 02:14:31 +00:00
Kenichi Handa
f5027deb92 (sgml-mode-map): Use encode-char instead
of make-char.
(sgml-char-names-table): Iteration limit fixed.
2002-03-01 02:29:13 +00:00
Pavel Janík
140d71ba78 (sgml-specials, sgml-quick-keys): Doc fixes. 2002-02-28 16:14:50 +00:00
Richard M. Stallman
bca8616b09 (sgml-xml-guess): Fix regexp to avoid ambiguous nested loops. 2001-11-01 19:35:05 +00:00
Stefan Monnier
b2e8c203e4 (sgml-tags-invisible): Typo. 2001-10-28 04:12:46 +00:00
Stefan Monnier
73d25e5276 (sgml-empty-tags): New var.
(sgml-tag): Use it.  Cleanup with `cond'.
(sgml-tags-invisible): Make sgml-tags-invisible buffer-local.
Mark the overlays and only delete those that are marked.
(sgml-skip-close-p): Remove.
(sgml-value): Replace sgml-skip-close-p with its definition.
(html-tag-alist): Use sgml-xml a bit more.
(html-mode): Set sgml-empty-tags.
2001-10-28 04:10:40 +00:00
Sam Steingold
c77c3a7302 renamed html-xhtml' to sgml-xml' and generalized accordingly 2001-10-27 16:07:35 +00:00
Sam Steingold
e5d1dee911 (html-mode); set mode-name' based on html-xhtml' 2001-10-26 20:55:36 +00:00
Sam Steingold
58203d918e (html-mode): Set `html-xhtml' from the DOCTYPE.
(html-tag-alist): Use `html-xhtml' for "li", "dt" and "dd".
(sgml-tag): Close empty tags in XHTML.
2001-10-26 20:29:10 +00:00
Sam Steingold
5950e02941 some code simplifications: when instead of if+progn;
line-beginning-position instead of progn+bol+point
2001-10-26 17:40:59 +00:00
Stefan Monnier
6436765542 (sgml-font-lock-keywords-1): Ignore comments.
(sgml-font-lock-keywords-2): Use `eval'.  Moved from sgml-mode-common.
(sgml-font-lock-syntactic-keywords): New var.
(sgml-mode-common): Drop the two args.
Don't make buffer-local variables that aren't used.
Don't set sgml-font-lock-keywords-2 now that it uses `eval instead.
Don't set `before-string' props from sgml-display-text.
(sgml-mode): Use define-derived-mode.
(sgml-tags-invisible): Use sgml-display-text.
(sgml-quote): New command.
(html-tag-alist): Add args for `span'.
(html-mode): Use define-derived-mode.
Set sgml-display-text and sgml-tag-face-alist.
2001-10-25 22:25:30 +00:00
Eli Zaretskii
2840d65358 (sgml-mode-map): Bind 8-bit codes above 127 to sgml-maybe-name-self.
(sgml-name-8bit-mode): Doc fix.
(sgml-char-names-table): New variable.
(sgml-name-char): Support non-ASCII and mule-unicode-* characters.  Doc fix.
(sgml-maybe-name-self): Convert unibyte characters to multibyte.
2001-10-22 09:45:39 +00:00
Sam Steingold
b4f05c3831 added `html-xhtml' for XHTML input 2001-10-05 16:21:14 +00:00
Pavel Janík
6a05d05faf Fixes to follow coding conventions. 2001-07-16 11:39:42 +00:00
Stefan Monnier
f7ac3e2885 (sgml-mode-map): Fix thinko. 2001-06-18 19:04:09 +00:00
Stefan Monnier
e1940c83b4 Move `provide' to the end. Update copyright.
(sgml-mode-map): Use `make-keymap' rather than make the keymap by hand.
Bind the latin-1 charset-char to sgml-maybe-name-self rather than
incorrectly binding chars between 128 and 256 to it.
(sgml-maybe-name-self): Handle latin-1 chars properly.
(sgml-tags-invisible): Bind buffer-file-name to nil.
Use unwind-protect and restore-buffer-modified-p.
(sgml-point-entered): Use buffer-substring-no-properties.
(html-tag-alist): Add `div' and `span' and fix backquote/unquote typos.
(html-mode): Don't force `imenu-sort-function'.
2001-06-17 09:01:23 +00:00
Stefan Monnier
5f5c9e7924 Add unknown maintainer.
(sgml-tag): Pass `str' explicitly through skeleton-transformation.
(html-mode-map): Use set-keymap-parent.
2001-04-06 16:24:42 +00:00
Stefan Monnier
4afa094d3a (sgml-mode-common): Correct value of
comment-start-skip and set comment-end-skip as well.
(sgml-comment-indent): Fix for new value of comment-start-skip.
(html-autoview-mode): Don't bother using make-local-hook.
2001-03-07 00:03:50 +00:00
Gerd Moellmann
fba5d1de83 (sgml-mode-common): Remove `$' from regexp for paragraph-start. 2000-02-12 19:45:53 +00:00
Gerd Moellmann
e79ad8a15d * textmodes/sgml-mode.el (sgml-char-names): Change "half" to
"frac12".
1999-10-30 21:06:34 +00:00
Dave Love
d4c89075d6 Require outline when compiling.
(sgml-mode-hook, html-mode-hook): Customize.
(sgml-validate-command): Fix :version.
(html-autoview-mode): Doc fix.
1999-08-04 19:18:55 +00:00
Dave Love
5121371d70 (sgml-validate-command): Use nsgmls. 1999-07-23 23:05:21 +00:00
Dave Love
b8b149715f (html-mode): Use sentence-end-double-space when setting sentence-end. 1999-03-09 19:24:33 +00:00
Richard M. Stallman
5e532c5c1f (html-tag-alist): Add /head and /body to the "html" template. 1999-02-26 16:40:13 +00:00
Richard M. Stallman
b7cd1746e2 (sgml-validate): Ask whether to save only
if buffer is modified; ask about all modified buffers.
1998-12-31 14:40:03 +00:00