Commit graph

1164 commits

Author SHA1 Message Date
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
Eli Zaretskii
f6e2875153 New file. 2002-03-15 13:23:01 +00:00
Richard M. Stallman
5ed5b2c2da (picture-insert, picture-clear-column, picture-draw-rectangle):
Use move-to-column, not move-to-column-force.
2002-03-14 08:57:36 +00:00
Andreas Schwab
64a1ba1846 Revert last change. 2002-03-09 20:11:46 +00:00
Andreas Schwab
6b997f0825 Change Maintainer to FSF. 2002-03-08 19:31:38 +00:00
Richard M. Stallman
bac8c2e70a (picture-forward-column): New arg `interactive'
is non-nil for an interactive call.  Use instead of interactive-p.
(picture-backward-column): Likewise.
2002-03-08 09:58:51 +00:00
ShengHuo ZHU
3e549b18cf * textmodes/bibtex.el (bibtex-make-field): Call bibtex-find-text
with SILENT so that a new field can be added.
2002-03-06 21:57:10 +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
Stefan Monnier
cb30255a83 (tex-guess-main-file): Handle the case where one of the buffers is narrowed. 2002-03-04 01:39:29 +00:00
Stefan Monnier
f101558c3d New file. 2002-03-04 01:08:34 +00:00