Commit graph

473 commits

Author SHA1 Message Date
Richard M. Stallman
6da9bbd6b2 (tex-face-alist, tex-latex-face-alist): New variables.
(tex-common-initialization): Set facemenu-add-face-function,
facemenu-end-add-face, facemenu-remove-face-function.

(slitex-mode): Fix misspelling in value.
1996-01-26 19:57:45 +00:00
Richard M. Stallman
88c2fc2c6e (forward-paragraph): Comment change. 1996-01-26 19:47:15 +00:00
Richard M. Stallman
b1e7bb4867 Whitespace fix. 1996-01-26 19:39:42 +00:00
Simon Marshall
dd7366bf5d Tweaked command regexp. 1996-01-25 10:40:02 +00:00
Karl Heuer
32bf4c34c7 (start-ispell, ispell-next): Pass proper format string to message.
(ispell-point): Delete format call inside message.
1996-01-25 01:15:58 +00:00
Karl Heuer
f68f40e039 (sgml-tag-help): Pass proper format string to message. 1996-01-25 00:57:01 +00:00
Karl Heuer
d55235bbdc (picture-mode): Pass proper format string to message. 1996-01-25 00:56:19 +00:00
Richard M. Stallman
fcc3195eee (sgml-quick-keys): New variable.
(sgml-mode-map): Use it, defined additional long keys to compensate.
(sgml-tag-alist): Added <![ ]>
(sgml-tag): Special treatment for previous construct.
(sgml-auto-attributes): Deleted variable covered by sgml-quick-keys,
changed function of same name.
(sgml-delete-tag): Newline also counts as whitespace before tag.
(html-quick-keys): Use sgml-quick-keys as default, thus changed to nil.
(html-mode-map): Added C-c C-c char combinations for when
html-quick-keys is nil.
(html-tag-alist): Added /cgi-bin/ to href completions, submit (spelling
fixed) button to form.
(html-checkboxes): New skeleton.
1996-01-24 17:12:21 +00:00
Richard M. Stallman
27abea5aa8 (bibtex-font-lock-keywords, bibtex-mode):
Use word-syntax in patterns.

(bibtex-font-lock-keywords): Allow a more relaxed format
of the buffer and use more appropriate faces.
1996-01-16 16:37:54 +00:00
Erik Naggum
b578f267af Update FSF's address. 1996-01-14 07:34:30 +00:00
Erik Naggum
8f65287798 Removed auto-mode-alist hacking for html-mode to files.el. 1996-01-13 00:38:41 +00:00
Erik Naggum
68e0771bdd Remove redundant auto-mode-alist hacking. 1996-01-13 00:30:34 +00:00
Richard M. Stallman
b69863f29d (forward-page): Simplify how we avoid getting stuck when moving backwards. 1996-01-12 21:23:05 +00:00
Richard M. Stallman
1caf38ebbc Also load for .sgm and .dtd files.
(sgml-specials, sgml-name-8bit-mode, sgml-char-names)
(sgml-font-lock-keywords, sgml-face-tag-alist, sgml-tag-face-alist)
(sgml-display-text, sgml-tag-alist, sgml-tag-help)
(sgml-auto-attributes): New variables.
(sgml-mode-common): New function.
(sgml-mode): Most code moved to it.
(sgml-name-char, sgml-name-self, sgml-maybe-name-self)
(sgml-name-8bit-mode, sgml-tag, sgml-attributes, sgml-auto-attributes)
(sgml-tag-help, sgml-maybe-end-tag, sgml-skip-tag-backward)
(sgml-skip-tag-forward, sgml-tags-invisible): New commands.
(sgml-beginning-of-tag, sgml-value): New functions.
1996-01-12 21:14:51 +00:00
Karl Heuer
dcfe5c0511 (fill-region-as-paragraph): Check again for reaching
the end of the paragraph, after we adjust for places we can't break
and make sure to keep at least one word.
1996-01-09 23:18:07 +00:00
Karl Heuer
a7acbbe4d4 Comment fixes. 1996-01-05 22:21:28 +00:00
Karl Heuer
9687a0514b (texinfo-master-menu): Doc fix. 1996-01-04 23:50:14 +00:00
Karl Heuer
7c3632ce4c (r2b-additional-stop-words, capitalize-title-stop-words):
Doc fix.
1996-01-04 23:47:17 +00:00
Karl Heuer
41ec9d2fb9 (ispell-gnu-look-still-broken-p, ispell-message-text-end):
Doc fix.
1996-01-04 23:43:09 +00:00
Karl Heuer
5512735ef6 (fill-context-prefix, unjustify-current-line,
unjustify-region): Doc fix.
1996-01-04 23:35:23 +00:00
Karl Heuer
2e282f9210 (bibtex-generate-autokey, bibtex-find-entry-location):
Doc fix.
1996-01-04 23:27:50 +00:00
Karl Heuer
e675070f0a (capitalize-title-stop-words): Doc fix. 1996-01-04 23:27:40 +00:00
Richard M. Stallman
3103b038de (fill-paragraph-function): Doc fix. 1995-12-24 23:30:18 +00:00
Karl Heuer
0640d7bff7 (bibtex-auto-fill-function): Adapted for use with
changed autofill policy of emacs-19.30 (uses now fill-prefix
instead of indent-line-function).
(bibtex-indent-line-function): Removed (not used any more).

(bibtex-make-field): Was broken when called
non-interactively.

(bibtex-make-field): Point is now placed on closing
brace or quote (suggested by Karl Eichwalder <ke@ke.Central.DE>).

(bibtex-clean-entry): Comma after last field isn't
deleted anymore (new standard in BibTeX 0.99 and 1.xx).
(bibtex-enclosing-reference-maybe-empty-head): Works with entries
with comma after last field.
(bibtex-reference): Permits entries with comma after last field.
(bibtex-font-lock-keywords): Enhanced to support new field-name
characters (suggested by Martin Maechler
<maechler@stat.math.ethz.ch>).

(bibtex-field-name): Now numbers (not as the first sign), dashes,
and underscores are allowed (suggested by Martin Maechler
<maechler@stat.math.ethz.ch> and Oren Patashnik
<opbibtex@labrea.Stanford.EDU>).

(bibtex-make-field): Was broken on lines containing
non-parenthesized entries (reported by Karl Eichwalder
<ke@ke.Central.DE>).

(bibtex-validate-buffer): Changed so that preamble
references are ignored (same as string entries) (reported by
Martin Maechler <maechler@stat.math.ethz.ch>).

(bibtex-enclosing-reference-maybe-empty-head):
New function to be used in case reference head may be empty.
(bibtex-clean-entry, bibtex-pop-previous, bibtex-pop-next): Uses
now bibtex-enclosing-reference-maybe-empty-head.
(bibtex-mode): Added support for font-lock mode.
(bibtex-font-lock-keywords): New variable with font-lock keywords
for BibTeX mode.

(bibtex-make-optional-field): Not longer interactive
(suggested by Karl Eichwalder <karl@pertron.central.de>).

(bibtex-maintain-sorted-entries): Set to nil, since it
requires more user attention and more restricted files to have
this set to t.
(bibtex-maintain-sorted-entries,
bibtex-sort-ignore-string-entries): Made buffer local, since it
may depend on the buffer which preferences to use.
(bibtex-validate-buffer): Looking for correct sort order only when
bibtex-maintain-sorted-entries is non-nil.
Put a comment in the `KNOWN BUGS' section about the
quote-inside-quotes problem.
(whole file): Changed string `true' in some documentation strings
to `non-nil' (e.g. `if variable has a true/non-nil value').
(bibtex-mode-map): Changed `move/edit' to `bibtex-edit'.

(bibtex-sort-entries): Now works correctly with
`@String' entries inside BibTeX files (i.e. after the occurence of
other references).
(bibtex-validate-buffer): Inserted code which looks if entries are
balanced (a single non-escaped quote inside braces was not
detected till now, but bibtex-sort-entries stumbles about it).

(bibtex-entry): bibtex-move-outside-of-entry is only
called when bibtex-maintain-sorted-entries is nil (otherwise
bibtex-find-entry-location determines the correct location).
(bibtex-find-entry-location): Now uses binary search. As before,
it assumes that the buffer is sorted without duplicates (but as
before it is only called when bibtex-maintain-sorted-entries is
t). Ignores `@String' entries if told so via variable
bibtex-sort-ignore-string-entries.

(bibtex-clean-entry): Respect
bibtex-maintain-sorted-entries when inserting autokey.
(bibtex-validate-buffer): Searching whole buffer for duplicates
and correct order is now done directly instead of calling
bibtex-find-entry-location (since this is to be reprogrammed to
use a binary search instead a sequential one).

(bibtex-parse-keys): May now be called with an
optional parameter which (if t) tells bibtex-parse-keys that it
should abort if input is pending.
(bibtex-mode): The instance of bibtex-parse-keys called in
auto-save-mode-hook is now called with this new parameter set to
t, so an auto-save caused by exceeding auto-save-interval is now
aborted immediately if user is still typing.

(bibtex-print-help-message, bibtex-clean-entry): Use
now constant strings instead of custom ones.

(bibtex-clean-entry): Changed the call of
bibtex-enclosing-reference to a more specific call so entries
without a key (here allowed) can be handled.
(bibtex-reference-key): Cleared off parentheses (caused string
entries enclosed by parentheses instead of braces to be not added
to bibtex-completion-candidates).
(bibtex-complete-string): Made it use bibtex-string.

(bibtex-keys,
bibtex-buffer-last-parsed-for-keys-tick): New buffer-local
variables to make parsing of BibTeX buffer for reference keys
(needed by TAB completion in minibuffer when entering key) more
occasional.
(bibtex-parse-keys): New function to parse for keys (functionality
was partially included in bibtex-entry).
(bibtex-entry): Changed to use bibtex-parse-keys.
(bibtex-mode): Installs bibtex-parse-keys as an
auto-save-mode-hook, so whole buffer is parsed at most when it is
autosaved.
(bibtex-clean-entry): Calls bibtex-parse-keys on the new entry, so
bibtex-keys remains consistent for new entries that are finished
by calling this function (most should).

(bibtex-inside-field): Be independent on current
setting of bibtex-field-right-delimiter (allows more intermixing
between quotes and braces).
(bibtex-make-field): Last change didn't make it work correctly
when called non-interactively by bibtex-entry (fixed).
1995-12-13 20:26:13 +00:00
Karl Heuer
dea10df4d4 (fill-context-prefix): Doc fix. 1995-12-13 02:09:24 +00:00
Richard M. Stallman
0bcfa3ac91 (fill-context-prefix): New arg first-line-regexp. 1995-11-18 16:42:57 +00:00
Richard M. Stallman
2b6eb8c6ce (fill-region-as-paragraph): Remove redundant "setq from".
Don't add extra newline at end if there is no text in paragraph --
doing so can make fill-region loop.
When testing for indentation exceeding fill-column, skip back over tabs too.

(fill-context-prefix): Use adaptive-fill-regexp only if non-nil.

(fill-context-prefix): Check adaptive-fill-function non-nil.
1995-11-17 23:32:15 +00:00
Richard M. Stallman
86ddc17c9c (fill-region-as-paragraph): Handle left margin extending to or past
fill-column.
1995-11-15 01:30:28 +00:00
Richard M. Stallman
c62861749e (fill-individual-paragraphs): Advance 1 line in inner loop. 1995-11-14 23:28:24 +00:00
Richard M. Stallman
16cf6ab20b (fill-region-as-paragraph): Since adaptive-fill-regexp
is supposed to match text STARTING at the left margin, use
`looking-at' rather than `re-search-forward'.
(fill-individual-paragraphs): Match fill-prefixes starting at left-margin.
1995-11-11 05:30:49 +00:00
Richard M. Stallman
d09d7ba961 (fill-region-as-paragraph): Use fill-context-prefix.
(fill-context-prefix): New function.

(fill-region-as-paragraph): Don't insert extra space
at end of filled region.

(fill-individual-paragraphs): Insist on nonempty header name,
in the special mailp case.
1995-11-10 17:13:56 +00:00
Karl Heuer
c93931c390 (tex-send-command): Give meaningful error message. 1995-11-04 00:39:25 +00:00
Karl Heuer
30a7d33c2b (minor-mode-map-alist): Use substitute-key-definition
to find the appropriate bindings for window enlarge/shrink.
(2C-shrink-window-horizontally, 2C-enlarge-window-horizontally):
Renamed from shrink-window-horizontally, enlarge-window-horizontally
to avoid redefining the standard functions.
1995-11-03 03:11:24 +00:00
Erik Naggum
1337cb4268 Comment change 1995-10-30 22:13:36 +00:00
Richard M. Stallman
be01074898 Comment change. 1995-10-30 17:35:01 +00:00
Richard M. Stallman
203108d8e6 (outline-view-change-hook): New hook variable.
(outline-flag-region): Run the hook.
1995-10-20 23:15:02 +00:00
Richard M. Stallman
898b9ac102 (tex-start-of-header): Now a regexp.
(tex-end-of-header): Likewise.
(plain-tex-mode, latex-mode, slitex-mode, tex-region): Changed accordingly.
1995-10-19 00:48:12 +00:00
Richard M. Stallman
c2dd39b26f (adaptive-fill-function): Change defun to defvar. 1995-10-11 04:59:48 +00:00
Richard M. Stallman
f1f9f8d5aa (ispell-message-text-end): Match reporter.el bug reports. 1995-09-29 00:48:05 +00:00
Richard M. Stallman
aaf6c7ef84 (center-line): New arg NLINES.
Do nothing for lines that are too wide.
1995-09-10 17:44:25 +00:00
Richard M. Stallman
f1f20cec38 (refer-every): Renamed from every.
(refer-convert-string-to-list-of-strings): Renamed from
convert-string-to-list-of-strings.
1995-08-27 07:20:19 +00:00
Richard M. Stallman
5181be3a88 (2C-mode): Use make-local-hook and add-hook. 1995-08-22 20:55:36 +00:00
Simon Marshall
32fad95674 Rewrite texinfo-font-lock-keywords; don't fontify syntactically. 1995-08-10 15:13:43 +00:00
Richard M. Stallman
4669fb3c76 (forward-paragraph): Don't overlook a paragraph-start
line just because it ends at eob.
1995-08-08 08:12:07 +00:00
Richard M. Stallman
d5fbc7c77e (bibtex-maintain-sorted-entries): Make nil the default. 1995-08-05 00:50:26 +00:00
Richard M. Stallman
68152e8f81 (fill-region-as-paragraph): Don't find adaptive-fill-regexp
on first line of paragraph if it's a paragraph-separate line.
Don't look past the intended line.
(adaptive-fill-function): New variable.
(fill-region-as-paragraph): Use it.
(colon-double-space): New variable.
(canonically-space-region): Put two spaces after colon if necessary.
1995-08-02 18:36:20 +00:00
Karl Heuer
8fe9ecef74 (2C-toggle-autoscroll, 2C-autoscroll):
Only (sit-for 0) once for smoother scrolling.
(2C-associated-buffer): go to same line and column.
(2C-newline): new function.
(2C-other): optional arg to signal missing other buffer.
1995-08-01 22:42:28 +00:00
Richard M. Stallman
2be0173802 (forward-paragraph): Don't move back over a line
before the paragraph which doesn't start with fill-prefix unless
that is the only line we've moved over.
1995-07-29 23:56:17 +00:00
Karl Heuer
0fb4f2457b (latex-imenu-generic-expression): Var defined.
(latex-mode): Set imenu-generic-expression.
1995-07-28 00:26:37 +00:00
Karl Heuer
e4cfb70d5c (texinfo-imenu-generic-expression): Var defined.
(texinfo-mode): Set imenu-generic-expression.
1995-07-28 00:24:14 +00:00