Commit graph

1173 commits

Author SHA1 Message Date
Mike Williams
232dbe4f66 (sgml-guess-indent): Look further into the buffer. 2002-05-22 09:40:48 +00:00
Stefan Monnier
f67376256a (outline-reveal-toggle-invisible): Reverse the meaning of the second arg. 2002-05-20 18:32:07 +00:00
Juanma Barranquero
aa87aafcde Fix typo. 2002-05-16 12:00:33 +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
Pavel Janík
58c6812940 (make-flyspell-overlay): Add help text to flyspell overlays. 2002-05-08 15:27:26 +00:00
Colin Walters
52ab062c96 (tex-validate-buffer): Use `occur-revert-arguments' instead of setting
`occur-nlines' and `occur-buffer'.  Don't test for `input-pending-p'
in loop.  Set text property `occur-target' instead of `occur'.
2002-05-01 05:22:08 +00:00
Robert J. Chassell
481b0db7f7 Cause `texinfo-insert-@node' to insert a carriage return after the
comment line.  This change does not affect normal use.  On the one
hand, it causes the command to insert a blank line when invoked on the
line preceeding the @section line.  This is a fault.  On the other
hand, it causes the command to format the output properly when you
invoke the command on the same line as the @chapter or similar line.
This is beneficial.
2002-04-29 12:59:26 +00:00
Stefan Monnier
dc864d6e59 (fill-context-prefix): Fix last change with yet-another-approach. 2002-04-29 04:02:22 +00:00
Richard M. Stallman
9e0ad27acd (tex-start-options): New variable.
(tex-start-commands): New variable.
(tex-start-options-string): Variable deleted.
(tex-start-tex): Use tex-start-options and tex-start-commands,
not tex-start-options-string.
(tex-command): Doc fix.
2002-04-26 21:19:24 +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
Stefan Monnier
79424eea3d (fill-region-as-paragraph): Use save-excursion instead of relying on
forward-line to bring us where we started.
2002-04-12 02:56:29 +00:00
Stefan Monnier
4599773d96 (fill-context-prefix): Fix up last change. 2002-04-12 00:01:53 +00:00
Stefan Monnier
bb424945f3 (canonically-space-region): Obey sentence-end.
Don't add spaces at end of sentences at end of line.
(fill-move-to-break-point): Make sure the result is always greater
than linebeg, so we ensure forward progress.
(fill-region-as-paragraph): Compare to `to' rather than eobp.
(fill-paragraph): Don't rebind fill-paragraph-function.
2002-04-11 22:00:07 +00:00
Mike Williams
2871b07a89 (sgml-guess-indent): New function. 2002-04-11 21:59:45 +00:00
Stefan Monnier
d47e9c0658 (adaptive-fill-regexp): Add ! and %.
(fill-delete-prefix): Remove indentation while removing prefix.
(fill-delete-newlines): Obey sentence-end.
(fill-move-to-break-point, fill-newline): New functions extracted
from fill-region-as-paragraph.
(fill-region-as-paragraph): Use them.
Don't fiddle with fill-indent-according-to-mode.
2002-04-10 21:21:12 +00:00
Stefan Monnier
419275721f (fill-context-prefix): Match the two prefixes
differently to avoid pathological exponential-time case.
2002-04-10 18:19:44 +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
5b4b6625bb Remove xml-lite.el 2002-04-06 04:03:23 +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
2407f4e124 (xml-lite-parse-tag-backward): Fix for implicitly empty tags. 2002-04-01 12:44:34 +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
08116853cf Add deprecation notice. 2002-04-01 12:14:55 +00:00
Mike Williams
a978da5677 Remove redundant name-end attribute.
Simplify parsing by assuming we always start within text.
Make use of sgml-unclosed-tag-p.
2002-04-01 12:10:53 +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
Mike Williams
63fedde009 Remove redundant remains of xml-lite-mode. 2002-04-01 11:00:33 +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
4c0414fef4 (xml-lite-get-context): Don't stop parsing
at unclosed tags unless it is at indentation.
Kill nested unclosed tags.
(xml-lite-calculate-indent, xml-lite-indent-line): Remove.
(xml-lite-mode): Use sgml-indent-line instead.
2002-03-29 22:16:38 +00:00
Stefan Monnier
83f1651d4f (xml-lite-get-context): Allow stopping even with an empty context.
Don't save excursion any more.  Ignore end-tags in sgml-empty-tags.
Don't complain about unmatched start-tags in sgml-unclosed-tags.
(xml-lite-get-context, xml-lite-calculate-indent)
(xml-lite-insert-end-tag): Save excursion around xml-lite-get-context.
(xml-lite-indent-line): Use back-to-indentation.
2002-03-29 20:10:46 +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
0e58b4c23a (xml-lite-in-string-p): Use sgml-lexical-context.
(xml-lite-parse-tag-backward): Use sgml-tag-syntax-table.
(xml-lite-get-context): Check that open/close tags match.
Don't stop scanning while we're ignoring matching tags.
2002-03-28 16:13:01 +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
843e95014b (xml-lite-in-string-p): Simplify. 2002-03-27 22:27:44 +00:00
Stefan Monnier
3c85628430 Fix copyright notice.
(xml-lite-basic-offset): Rename from xml-lite-indent-offset.
(xml-lite-indent-comment-offset): Remove.
(xml-lite-calculate-indent): Use new name.  Use natural alignment
for comments.
2002-03-27 22:25:45 +00:00
Stefan Monnier
3521e4b3ff Don't require `custom'.
(xml-lite-parse-tag-name): Properly treat non-ASCII chars.
(xml-lite-parse-tag-backward): Obey sgml-empty-tags.
(xml-lite-get-context): Drop nested tags not just for comments.
(xml-lite-indent-line): Be more careful about moving point.
(xml-lite-insert-end-tag, xml-lite-slash):
Use indent-according-to-mode instead of xml-lite-indent-line.
(xml-lite-mode): Make xml-lite-orig-indent-line-function buffer-local.
Set sgml-xml-mode.  Don't call force-mode-line-update.
(xml-lite-mode-map): Don't bind TAB.
2002-03-27 18:07:04 +00:00
Stefan Monnier
63080afce8 (xml-lite-at-indentation-p): Move.
(xml-lite-in-string-p, xml-lite-looking-back-at, xml-lite-looking-at):
New functions.
(forward-xml-tag, backward-xml-tag, beginning-of-xml-tag)
(end-of-xml-tag): Remove.
(xml-lite-get-context): Better handling of comments.
(xml-lite-calculate-indent): Use xml-lite-in-string-p.
(xml-lite-parse-tag-backward): Rewrite.
2002-03-27 00:06:42 +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
Eli Zaretskii
efe7ebe3d5 (po-content-type-charset-alist): Convert the
car of each association to a string.
(po-find-file-coding-system-guts): If the charset matches a name
of a codepage, set up that codepage and return it as a coding
system to decode the file.
2002-03-16 17:29:48 +00:00
Eli Zaretskii
55859ca7d8 <top-level>: Remove the setup for all known codepages: it seems
to cause crashes in the CCL driver.
2002-03-16 16:28:01 +00:00
Eli Zaretskii
0cd9a1a919 (po-find-charset): Search for Charset= header even if we've read less than
4KB.
2002-03-16 16:14:38 +00:00
Pavel Janík
73cc75b559 (bibtex-sort-ignore-string-entries)
(bibtex-entry-field-alist): Doc fix.
2002-03-16 12:08:49 +00:00
Eli Zaretskii
2ca514455e (po-find-file-coding-system-guts): Use
with-temp-buffer instead of po-with-temp-buffer.
2002-03-15 19:30:36 +00:00