1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-15 09:47:20 +00:00
Commit Graph

642 Commits

Author SHA1 Message Date
Richard M. Stallman
822eddf41c (tex-common-initialization):
Set search-whitespace-regexp locally.
1997-07-04 04:41:46 +00:00
Richard M. Stallman
8b3106fa32 (bibtex-kill-field, bibtex-find-text): Killing a field moves to the next line. 1997-06-30 21:25:37 +00:00
Richard M. Stallman
24b96659f1 (outline-discard-overlays): Don't use let inside a cycle. 1997-06-24 02:26:42 +00:00
Richard M. Stallman
934b4e4f26 (nroff-electric-mode): New defvar. 1997-06-23 19:24:02 +00:00
Richard M. Stallman
d792910f8b (picture-draw-rectangle): New command.
(picture-mode-map): Add binding for picture-draw-rectangle.
(picture-mode): Doc fix.
(picture-rectangle-ctl): New variable.
(picture-rectangle-ctr): New variable.
(picture-rectangle-cbr): New variable.
(picture-rectangle-cbl): New variable.
(picture-rectangle-v): New variable.
(picture-rectangle-h): New variable.
(move-to-column-force): Function deleted;
calls changed to use move-to-column.
(picture-insert): New function.
(picture-self-insert): Use picture-insert.
(picture-current-line): New function.
1997-06-23 04:16:44 +00:00
Richard M. Stallman
a53c647b51 (latex-imenu-create-index): Make it much smarter.
(latex-imenu-indent-string): New variable.
1997-06-23 00:30:48 +00:00
Richard M. Stallman
896546cd9b Add provide call. 1997-06-22 18:57:55 +00:00
Richard M. Stallman
c52bdfca7c Changed all doc strings to comply with conventions.
(reftex-label-alist-builtin) New environment subfigure*.
(reftex-toc) Introduced key g for revert-buffer.
(reftex-extract-bib-entries) Allowed round parens as delimiter.
(reftex-plug-into-AUCTeX) New variable and function.
(reftex-make-master-buffer) Fixed bug with relative path names.
1997-06-19 01:18:23 +00:00
Richard M. Stallman
b03ddefc2c (fill-context-prefix): Fix previous change. 1997-06-18 20:26:21 +00:00
Richard M. Stallman
44a0dbd7cd Fix previous change. 1997-06-17 21:47:30 +00:00
Richard M. Stallman
b5263b80d3 (fill-context-prefix): Fix criteria for first line,
and for second line; always fetch prefixes from both lines.
1997-06-17 21:46:40 +00:00
Richard M. Stallman
06cc857db5 Many doc fixes.
(texinfo-all-menus-update): Check for @detailmenu.
(texinfo-master-menu): Likewise.
(texinfo-multiple-files-update): Likewise.
(texinfo-insert-master-menu-list): Put in @detailmenu if appropriate.
1997-06-15 17:39:13 +00:00
Richard M. Stallman
91fe8c378e (text-mode): Let all-white lines separate paragraphs. 1997-06-15 07:36:42 +00:00
Richard M. Stallman
12ef05f47b Update copyright year. 1997-06-14 18:45:38 +00:00
Richard M. Stallman
55fe21fc27 (bibtex-delete-whitespace, bibtex-current-line)
(bibtex-assoc-of-regexp, bibtex-skip-to-valid-entry)
(bibtex-map-entries):
Renamed from delete-whitespace, current-line, assoc-of-regexp,
skip-to-valid-bibtex-entry, and map-bibtex-entries, respectively.
1997-06-14 17:30:43 +00:00
Richard M. Stallman
536d3fc556 (fill-context-prefix): Don't crash if RESULT is nil when AT-SECOND is t. 1997-06-12 18:42:28 +00:00
Richard M. Stallman
946340aed2 (paragraph-indent-text-mode): Renamed from spaced-text-mode.
(text-mode-map): Bind TAB to indent-relative.
(indented-text-mode-map): Variable deleted.
(indented-text-mode): Now an alias for text-mode.
1997-06-11 19:02:06 +00:00
Richard M. Stallman
849f04e14d (fill-context-prefix): If we get a prefix from the
second line of the paragraph, verify the first line has it too.

(adaptive-fill-regexp): Allow - and |;
allow spaces within the prefix.  Allow numeric headings.
(adaptive-fill-first-line-regexp): New variable.
(fill-context-prefix): Use adaptive-fill-first-line-regexp.
If prefix from first line seems unreasonable, use whitespace instead.
Reject it entirely only if it is a paragraph-starter.
1997-06-11 06:51:29 +00:00
Richard M. Stallman
f52b232edd (tex-main-file, outline-minor-mode): Add defvars. 1997-06-11 04:51:57 +00:00
Richard M. Stallman
025bb6359e Updated documentation at several points in the file.
(reftex-label-alist-builtin): New default environment subfigure.
(reftex-find-duplicate-labels): Temporary buffer is now
"*Duplicate Labels*" instead of "*Help*".
(reftex-bibtex-selection-callback): Renamed variable found-list.
(reftex-found-list): Added defvar for this variable.
(TeX-master): Added defvar for this variable.
(reftex-reset-mode): Kill temporary buffers associated with RefTeX.
1997-06-11 04:45:34 +00:00
Richard M. Stallman
50e4b39ede (bibtex-mode-map): Changed the binding of the C-TAB
key, such that XEmacs will understand it, too.

(bibtex-format-entry, bibtex-end-of-entry): Give specific
error message if not on valid BibTeX entry.

(bibtex-field-string-quoted): Small bug fix.  Allow
backslash followed by newline.

(bibtex-reposition-window, bibtex-mark-entry): Two new
functions, bound to M-C-l and M-C-h, respectively.

(bibtex-reformat-previous-options, bibtex-reformat-previous-labels):
New internal variables used by bibtex-reformat.

(bibtex-clean-entry-hook): New hook to be called after
entry has been cleaned.
(bibtex-clean-entry): Run the hook bibtex-clean-entry-hook.

(bibtex-entry-field-alist): Small bug fix.
(bibtex-autokey-title-terminators): Made -- a terminator instead
of ---.
(bibtex-font-lock-keywords): Don't treat ALT prefixed entries as
comments.
(bibtex-entry): Fixed parameter list.  This function is not
intended to be called with required and optional fields as
optional arguments anymore.

(bibtex-generate-autokey): Now split into various
small functions.
(bibtex-autokey-names-stretch, bibtex-autokey-additional-names):
New variables used by bibtex-generate-autokey.
(bibtex-autokey-get-namefield, bibtex-autokey-get-names)
(bibtex-autokey-demangle-name, bibtex-autokey-get-namelist)
(bibtex-autokey-get-yearfield, bibtex-autokey-get-titlestring)
(bibtex-autokey-get-titles, bibtex-autokey-get-titlelist):
New helper functions for bibtex-generate-autokey.

(bibtex-submit-bug-report): Report all variables.

(bibtex-contline-indentation): New user option.
(bibtex-entry-offset): Renamed from bibtex-entry-indentation.

(bibtex-entry-field-alist): Used different order for
some fields (as documented in btxdoc.tex).  Changed one of the
comment strings.

(bibtex-mode-hook, bibtex-add-entry-hook): Add var doc.
(bibtex-autokey-before-presentation-hook): New variable to be
called before autokey presentation.
(bibtex-generate-autokey):
Call bibtex-autokey-before-presentation-hook.  Doc fix.

(bibtex-reference-key): Reincluded parentheses.
Parentheses should be disallowed only in field constants.

(bibtex-autokey-transcriptions): Fixed bug (two
entries for `\o' while `\oe' entry was missing).

(bibtex-entry-indentation): New variable to determine
the indentation of all entries.
(bibtex-move-outside-of-entry): Use `skip-chars-forward' instead
of `re-search-forward'.
(bibtex-beginning-of-first-entry, bibtex-beginning-of-last-entry):
Renamed from beginning-of-first-bibtex-entry and
beginning-of-last-bibtex-entry.  Go to beginning of line, return point.
(bibtex-do-auto-fill, bibtex-make-field, bibtex-entry)
(bibtex-String, bibtex-Preamble): Respect `bibtex-entry-indentation'.
(bibtex-beginning-of-entry, bibtex-end-of-entry): Make it work
with indented entries.
(bibtex-count-entries, bibtex-sort-buffer, bibtex-validate,
bibtex-kill-entry, bibtex-reformat): Use return value from
bibtex-beginning-of-first-entry.
(bibtex-clean-entry): Use `bibtex-reference-maybe-empty-head'
instead of a fixed string.

(bibtex-beginning-of-entry, bibtex-end-of-entry): Now
return point if called from a program.
(bibtex-enclosing-field, bibtex-format-entry,
bibtex-generate-autokey, bibtex-parse-keys, bibtex-mode,
bibtex-ispell-entry, bibtex-narrow-to-entry, bibtex-sort-buffer,
bibtex-find-entry-location, bibtex-validate, bibtex-clean-entry,
bibtex-fill-entry): Use new return values of these functions.
(bibtex-ispell-abstract): Bug fix (inherently by the change to
bibtex-end-of-entry).

(bibtex-field-history): New variable for history
buffer of field name reading.
(bibtex-make-field): Use completion.  Object to completion are all
standard fields defined for the current entry.  Bound to `C-c C-f'.
(bibtex-mode): Set `comment-start' and `comment-start-skip' to
"@Comment ", `comment-column' to 0.

(bibtex-autokey-transcriptions): New variable.
(bibtex-autokey-name-change-strings)
(bibtex-autokey-titleword-change-strings):
Use bibtex-autokey-transcriptions as default value.

(bibtex-find-entry-location): Handle empty buffer.

(bibtex-entry-delimiters): New variable to determine
if entries shall be delimited by braces or parentheses.
(bibtex-entry-left-delimiter, bibtex-entry-right-delimiter): New
helper functions.
(bibtex-entry, bibtex-String, bibtex-Preamble): Respect
`bibtex-entry-delimiters'.
(bibtex-entry-format): Doc fix.
(bibtex-reference-key, bibtex-field-const): Removed parentheses
from allowed characters.
(bibtex-end-of-entry): Better handling of incorrect preambles.

(bibtex-validate): Small change to avoid reparsing of
errors, if you enter `compile-goto-error' in compilation buffer.

(bibtex-progress-message): New function to show
progress of some long-lasting functions in BibTeX mode by
indicating percentage of done work.
(bibtex-progress-lastperc, bibtex-progress-lastmes)
(bibtex-progress-interval):
New internal variables for `bibtex-progress-message'.
(bibtex-parse-keys, bibtex-reformat, bibtex-validate): Use new
function `bibtex-progress-message'.
(current-line): New helper function to calculate current
linenumber.  Something like this should really be defined somewhere
else in Emacs.
(bibtex-validate): Changed to show all errors in buffer in a
`compilation mode' buffer.  If there are syntax errors, it aborts
after the syntax check, since higher-level check functions rely on
the syntactical correctness of buffer.  If called from another lisp
function (as `bibtex-convert-alien') the return value shows
whether validating has been successful.  Fixed bug which made
checking for absent required fields work incorrectly.
(bibtex-parse-keys-timeout): Set to a value reasonable higher
(twice as high) than `lazy-lock-stealth-time'.
(bibtex-member-of-regexp, assoc-of-regexp): Small cosmetic changes.

(bibtex-buffer-last-parsed-tick): Renamed from
bibtex-buffer-last-parsed-for-keys-tick and made it really
buffer-local (bug fix).
(bibtex-parse-keys): Make it use bibtex-buffer-last-parsed-tick.
(bibtex-parse-buffers-stealthily): New function which parses all
BibTeX buffers if emacs has been idle an efficient amount of time.
(bibtex-parse-idle-timer): New variable which stores whether idle
timer for parsing already is installed.
(bibtex-parse-keys): Make it callable verbosely.  Returns now nil
if it has been aborted.
(bibtex-mode): Run the new function bibtex-parse-buffers-stealthily.

(bibtex-generate-autokey): Changed the name part
generation (bugfix).  This function handles now correctly all three
forms of BibTeX names, "First von Last", "von Last, First", "von
Last, Jr, First".  In every case the "Last" part is correctly
extracted.  If the "Last" part consists of more than one token only
the first is used.  Name fields spread over more than one line are
no problem anymore.

(bibtex-entry-format): Changed default value to
exclude 'page-dashes.  Modified documentation.
(bibtex-autokey-name-change-strings)
(bibtex-autokey-titleword-abbrevs)
(bibtex-autokey-titleword-change-strings, bibtex-entry)
(bibtex-validate): Doc fixes.
(bibtex-mode-map): Bound `C-c $' to bibtex-ispell-abstract.
(bibtex-generate-autokey): Changed documentation.  Small
modification in calculating title field.
(bibtex-mode): Included bibtex-ispell-entry into the list of
`interesting' functions.
(bibtex-kill-field): Bug fix (killing of first field in entry
yielded error).

(bibtex-string-file-path): New variable which defines
the path to search for bibtex-string-files.  It defaults to
contents of environment variable BIBINPUTS.
(bibtex-mode): Use this variable.

(bibtex-next-field, bibtex-find-text): Will now work
with string entries as well.

(bibtex-mode-map): bibtex-complete-key wasn't bound
correctly.
(bibtex-complete): Fixed bug (used string entries defined in
buffer as object to completion).

(Menu): Use easymenu.  More menu items for
`BibTeX-Edit' menu.  Use nested menus.

(bibtex-field-kill-ring-max)
(bibtex-entry-kill-ring-max): Two new variables substituting
bibtex-kill-ring-max.
(bibtex-field-kill-ring, bibtex-entry-kill-ring): Two new
variables substituting bibtex-kill-ring.
(bibtex-field-kill-ring-yank-pointer)
(bibtex-entry-kill-ring-yank-pointer): Two new variables
substituting bibtex-kill-ring-yank-pointer.
(bibtex-last-kill-command): New variable keeping the type of the
last kill command.
(bibtex-insert-current-kill): Clean distinction between the two
BibTeX kill rings.
(bibtex-kill-field): Use new variable bibtex-field-kill-ring.
(bibtex-kill-entry): Use new variable bibtex-entry-kill-ring.

(bibtex-kill-ring, bibtex-kill-ring-yank-pointer): New
internal variables like kill-ring and kill-ring-yank-pointer, but
bibtex-kill-ring holds fields or complete reference entries
instead of raw strings.
(bibtex-kill-ring-max): New user option similar to kill-ring-max.
(bibtex-kill-field): Renamed from bibtex-delete-field again.  It
now supports the new variable bibtex-kill-ring.
(bibtex-copy-field-as-kill, bibtex-kill-entry)
(bibtex-copy-entry-as-kill, bibtex-yank, bibtex-yank-pop): New
interactive functions, which work on the bibtex-kill-ring
variable.
(bibtex-insert-current-kill): New helper function to insert
contents of bibtex-kill-ring in an appropriate way.
(bibtex-make-field): New optional argument to tell the function if
it was called by bibtex-yank.  It operates slightly different then.
(bibtex-find-text): New optional argument to tell the function if
it was called by bibtex-make-field.  It moves in this case to the
end of the key if it was called on the reference head line.  If it
is called interactively on the head line, it works in an
appropriate manner, too.
(bibtex-enclosing-field): New optional argument to tell
bibtex-enclosing-field not to print an error message if enclosing
field isn't found, but to return nil in this case (t is returned
otherwise).  This is used by bibtex-find-text such that no error
message is given if bibtex-find-text is called interactively in
the key line of an entry.

(bibtex-autokey-year-use-crossref-entry): New variable
to determine if crossreferenced entry should be used for autokey
generation, if year field of current entry is absent.
(bibtex-generate-autokey): Use this new variable.

(bibtex-include-OPTannote): Deleted (is set in
bibtex-user-optional-fields).
(bibtex-entry, bibtex-print-help-message): Removed support for
bibtex-include-OPTannote.

(bibtex-entry-format): New constant
`inherit-booktitle' allowed.

(bibtex-mode): Set value for
font-lock-mark-block-function.

(bibtex-font-lock-keywords): Changed to distinguish
optional from ordinary fields.
(bibtex-format-entry, bibtex-print-help-message)
(bibtex-remove-OPT-or-ALT, bibtex-pop): Used simpler regexps.

(bibtex-delete-field): Changed from
bibtex-delete-optional-or-alternative-field.  Deletes now mandatory
fields as well.
(bibtex-mode): Changed documentation.

(bibtex-entry-type-history, bibtex-key-history): New
variables to use own histories in BibTeX buffers.
(bibtex-entry, bibtex-clean-entry, bibtex-String): Use these new
variables.

(bibtex-entry, bibtex-make-field): A function can now
be used to generate a fields init string.
(bibtex-include-OPTkey, bibtex-include-OPTannote)
(bibtex-entry-field-alist): Changed documentation accordingly.

(bibtex-mode): bibtex-parse-keys on start of mode is
now abortable, too.
(bibtex-entry, bibtex-complete-key, bibtex-String): If bibtex-keys
isn't set correctly due to abortion of bibtex-parse-keys, this
function is called now non-abortable.

(bibtex-entry-field-alist): Small change in comments.

(bibtex-find-entry-location): Bug fix: Insertion into
completely empty buffer didn't work.

(bibtex-user-optional-fields): Renamed from
bibtex-mode-user-optional-fields.
(bibtex-submit-bug-report, bibtex-entry, bibtex-print-help-message):
Use bibtex-user-optional-fields.

(bibtex-remove-delimiters): Bug fix: Only remove
delimiting braces and not those inside fields.

(skip-to-valid-bibtex-entry, bibtex-parse-keys)
(bibtex-end-of-entry, bibtex-validate, bibtex-reformat): Calculate
complex regexps outside of loops.
(bibtex-mode): Changed documentation on how to convert third party
buffers.

(bibtex-convert-alien): New function to convert a
buffer not created by BibTeX mode to a format, whichs enables all
features of BibTeX mode.
(bibtex-mode): Small bug fix for call to bibtex-parse-keys.

(bibtex-mode): Bug fix for using bibtex-parse-keys.

(bibtex-mode): Used other policy to initiate the first
call of bibtex-parse-keys.  This avoids unnecessary double call if
Font Lock mode is chosen for buffer at startup.

(bibtex-String, bibtex-Preamble): Renamed from
bibtex-string and bibtex-preamble.
(bibtex-String): If bibtex-maintain-sorted-entries and
bibtex-sort-ignore-string-entries are both non-nil, read string
key from minibuffer (with completion) and insert entry at correct
location (as for normal entries).

(bibtex-autokey-titleword-first-ignore)
(bibtex-autokey-titleword-abbrevs): Changed documentation: case of
regexps doesn't matter anymore.
(bibtex-field-const, bibtex-reference-key): Simplified to not
contain uppercase letters.
(member-of-regexp, assoc-of-regexp): Ignore case of regexp.
(map-bibtex-entries): Call function not for every syntactical correct
entry, but only for entries with known type.
(map-bibtex-entries, skip-to-valid-bibtex-entry)
(bibtex-flash-head, bibtex-enclosing-field)
(bibtex-enclosing-reference-maybe-empty-head, bibtex-format-entry)
(bibtex-autokey-change, bibtex-generate-autokey, bibtex-parse-keys)
(bibtex-ispell-abstract, bibtex-sort-buffer)
(bibtex-find-entry-location, bibtex-validate, bibtex-remove-delimiters)
(bibtex-delete-optional-or-alternative-field, bibtex-pop)
(bibtex-clean-entry, bibtex-print-help-message): Make them work
regardless of user's value of case-fold-search.
(bibtex-generate-autokey): Use bibtex-cfield for generating the
year field regexp.
(bibtex-parse-keys): Only gather keys of known (and not of
syntactical correct) entries.
(bibtex-end-of-entry): Only report an "unknown entry" message if
called interactively.

(bibtex-sort-ignore-string-entries): Renamed back from
bibtex-sort-ignore-string-and-preamble.  Of course, preambles are
always ignored, since they have no key at all.
(bibtex-string): Slightly less complex regexp.
(skip-to-valid-bibtex-entry): New helper function to skip forward
(or backward) to beginning of next syntactical correct known
BibTeX entry, if not already there.  Respects
bibtex-sort-ignore-string-entries.
(map-bibtex-entries): Bug fix: It wasn't called for string entries
even if bibtex-sort-ignore-string-entries was nil.
(beginning-of-last-bibtex-entry): New helper function to go to
last entry in buffer.
(bibtex-end-of-entry): Bug fix: Now works with string and preamble
entries as well.
(bibtex-sort-buffer): Renamed from bibtex-sort-entries.  Simplified
by using new function skip-to-valid-bibtex-entry.  Now only known
entries are checked.
(bibtex-find-entry-location): Simplified by using new functions
skip-to-valid-bibtex-entry and beginning-of-last-bibtex-entry.
Only known entries are used to determine location.
(bibtex-validate): Now checks string entries, too.
(bibtex-move-outside-of-entry): Don't use forward-paragraph, but
bibtex-end-of-entry.

(bibtex-end-of-entry): Don't use forward-sexp anymore,
since this fails on entries with non-escaped souble-quotes.  Use
search-bibtex-reference instead (though it is slower, it is more
reliable).
(bibtex-ispell-abstract): Use normal regexps created by
bibtex-cfield instead of special ones.

(beginning-of-first-bibtex-entry): No warning on
empty buffer.

(bibtex-validate): Bug fix.  Syntactical check didn't
work, since due to a bug all entries were simply skipped.

(bibtex-mode): Doc fix.
(bibtex-delete-optional-or-alternative-field): Renamed from
bibtex-kill-optional-or-alternative-field.
(bibtex-delete-optional-or-alternative-field, bibtex-empty-field):
Use delete-region, not kill-region.
(bibtex-clean-entry): New second argument called-by-reformat
indicates if bibtex-clean-entry was called by reformat.  Don't try
to find correct buffer position for newly generated key and don't
call bibtex-parse-keys in this case.

(map-bibtex-entries): Bugfix (missed first entry in
buffer, died on entries with `@' in other than first column).
(beginning-of-first-bibtex-entry, bibtex-format-entry)
(bibtex-beginning-of-entry, bibtex-validate, bibtex-clean-entry):
Changed to allow BibTeX entries to start in a column different
from 1 (but still for speed reasons only whitespace is allowed
prior to the `@' on the same line.

(map-bibtex-entries): Call it for known BibTeX entries
only.  This allows entries as @Comment{...} which follow no
specific structure without breaking the validation functions.
(bibtex-validate): Check syntactical structure for known entries
only.

(bibtex-autokey-abbrev): Sped up and changed to allow
a length of zero.

(bibtex-entry-format): Remove option `month-strings'.
(bibtex-validate): If given a prefix argument, check for
questionable month fields.

(bibtex-generate-autokey): Use normal regexps created
by bibtex-cfield instead of special ones.
(bibtex-hide-entry-bodies): Sped up by using subst-char-in-region
instead of using replace-regexp or replace-match.
(bibtex-find-entry-location): A bug had been introduced by using
search-bibtex-reference instead of re-search-forward (fixed).

(bibtex-field-delimiters): Renamed from
bibtex-field-delimiter.
(bibtex-entry-format): Constant empty-opts renamed to
empty-opts-or-alts.
(bibtex-remove-delimiters): Renamed from
bibtex-remove-double-quotes-or-braces.
(bibtex-reformat): New function.

(bibtex-fill-entry): New function to refill entry.
(bibtex-mode-map): Defined key for bibtex-fill-entry.

(bibtex-field-delimiter): Substitutes variables
bibtex-field-left-delimiter and bibtex-field-right-delimiter.
(bibtex-field-left-delimiter, bibtex-field-right-delimiter): New
helper functions.
(bibtex-make-field, bibtex-pop): Use new variable
bibtex-field-delimiter.
(bibtex-empty-field, bibtex-string): Use new functions
bibtex-field-left-delimiter and bibtex-field-right-delimiter.
(bibtex-predefined-month-strings): New variable.
(bibtex-predefined-strings): Use bibtex-predefined-month-strings.
(bibtex-submit-bug-report): Use new variables
bibtex-field-delimiter and bibtex-predefined-month-strings.

(bibtex-entry-format): Substitutes variable
bibtex-clean-entry-zap-empty-opts-or-alts.  Various types of
formatting options are available (see variable documentation).
(bibtex-format-entry): New function doing the formatting of entries.
Taken from bibtex-clean-entry and enhanced to support new variable
bibtex-entry-format.
(delete-whitespace): New helper function used by bibtex-format-entry.
(bibtex-clean-entry): Call new function bibtex-format-entry.
(bibtex-submit-bug-report): Use bibtex-entry-format instead of
bibtex-clean-entry-zap-empty-opts-or-alts.
(bibtex-do-auto-fill): New function to perform auto-filling in
BibTeX mode.  In fact, this is the old function
bibtex-auto-fill-function.
(bibtex-mode): Don't set fill-prefix anymore, but use new function
bibtex-do-auto-fill.

(bibtex-find-entry-location): Fixed bug (when
bibtex-maintain-sorted-entries was non-nil, an entry with a key
greater than all other keys wasn't inserted in the correct place).

(bibtex-mode): Don't use bibtex-auto-fill-function
anymore, but use directly variable fill-prefix.

(bibtex-find-entry-location): Fixed bug (on duplicate
keys, point must move to beginning of entry, so that bibtex-entry
works correctly).

(bibtex-complete): Fixed bug (parameter string-list
was mistakenly altered by the function itself).

(bibtex-mode-map): Bind bibtex-complete-key to C-TAB.

(bibtex-validate): Renamed from bibtex-validate-buffer
since it can acts on region if active.  Use search-bibtex-reference.
(search-bibtex-reference): New function to be used in places where
prior a re-search-{forward|backward} for bibtex-reference or
something alike was used.  This function is necessary due to the
new limit of failure stack size in 19.32 and above.
(bibtex-enclosing-reference-maybe-empty-head)
(bibtex-sort-entries, bibtex-find-entry-location, bibtex-validate):
Use new function search-bibtex-reference.
(bibtex-pop, bibtex-clean-entry): Small change due to change in
bibtex-enclosing-reference-maybe-empty-head.
(bibtex-reference-infix, bibtex-reference-postfix): New constants
necessary due to splitting bibtex-reference.
(bibtex-reference): Deleted.
(bibtex-type-in-reference, skip-whitespace-and-comments): Deleted.

(bibtex-mode): Don't turn auto-fill-mode on.  Use new
variable normal-auto-fill-function.

(bibtex-field-string): Simplified.

(bibtex-mode-syntax-table): Changed syntax of
double-quote back to quote syntax.

(bibtex-complete): New generic function for interface
functions bibtex-complete-string and bibtex-complete-key.
(bibtex-complete-key): New function.

(bibtex-sort-ignore-string-and-preamble): Renamed from
bibtex-sort-ignore-string-entries.
(map-bibtex-entries): Use bibtex-sort-ignore-string-and-preamble
and ignore preamble entries as well.
(bibtex-mode, bibtex-submit-bug-report, bibtex-sort-entries):
Use bibtex-sort-ignore-string-and-preamble.
(bibtex-count-entries): New function to count entries in buffer or
region.

(bibtex-comma-after-last-field): New variable to
decide if comma should be inserted at end of last field.
(bibtex-entry): Support new variable bibtex-comma-after-last-field.

(bibtex-field-indentation, bibtex-text-indentation):
Two new user options (replacing the former constants
bibtex-field-alignment and bibtex-text-alignment).
(bibtex-align-at-equal-sign): New user option.
(bibtex-auto-fill-function, bibtex-make-field)
(bibtex-remove-OPT-or-ALT, bibtex-clean-entry): Support new variables.

(bibtex-validate-buffer): Now only checks region if
mark is active.  With optional argument checks if required fields
are missing, too.

(bibtex-mode): Added support for imenu.

(bibtex-entry-field-alist)
(bibtex-mode-user-optional-fields): Modified syntax to allow
preinitialization of fields.
(bibtex-make-field, bibtex-make-optional-field):
Support preinitialization of fields.

(bibtex-autokey-prefix-string)
(bibtex-autokey-preserve-case): New variables to support
bibtex-generate-autokey.
(bibtex-generate-autokey): Use new variables.

(bibtex-field-const, bibtex-reference-type)
(bibtex-reference-key): Changed to match the (according to Oren
Patashnik) allowed characters.

(bibtex-clean-entry-zap-empty-opts-or-alts): Renamed
from bibtex-clean-entry-zap-empty-opts.
(bibtex-entry-field-alist): Slightly modified syntax to support
alternative fields needed for Book and InBook references.
(bibtex-font-lock-keywords, bibtex-print-help-message)
(bibtex-make-field, bibtex-pop, bibtex-clean-entry):
Support ALT prefixed entries.
(bibtex-mode): Documented new ALT prefixed fields.
(bibtex-make-optional-field): Modified to give only field name as
arg to bibtex-make-field.
(bibtex-remove-OPT-or-ALT, bibtex-kill-optional-or-alternative-field):
Renamed from bibtex-remove-OPT and bibtex-kill-optional-field,
respectively.  Modified to support ALT prefixes.

(bibtex-enclosing-field, bibtex-print-help-message):
Speed up things by not using bibtex-enclosing-regexp anymore.
(bibtex-enclosing-regexp): Function deleted.
1997-06-10 17:58:43 +00:00
Richard M. Stallman
6824710a86 (spaced-text-mode): Renamed from text-mode.
But change the mode name and hooks.
(text-mode): Put the guts of indented-text-mode here.
But don't define text-mode-abbrev-table, just use it.
Don't set indent-line-function, and use text-mode-map.
(indented-text-mode): Call text-mode.
1997-06-03 04:27:53 +00:00
Richard M. Stallman
fba437e666 Many doc fixes.
(reftex-mode-menu): Change menu items.
1997-06-02 18:05:00 +00:00
Richard M. Stallman
a7ec177595 Initial revision 1997-05-31 00:34:13 +00:00
Richard M. Stallman
0acdb86326 Comment change. 1997-05-27 19:51:23 +00:00
Simon Marshall
eddd51c280 frame-override-unsplittable/inhibit-frame-unsplittable name change. 1997-05-26 08:17:39 +00:00
Richard M. Stallman
5ccb13ff32 (texinfo-version): New function and variable.
(texinfo-update-node): New autoload call.
(texinfo-every-node-update): Likewise.
(texinfo-sequential-node-update): Likewise.
(texinfo-mode-map): New binding for C-c ].
(texinfo-environment-regexp): Use concat, for clarity.
(texinfo-insert-@end): Fix paren error.
1997-05-24 21:18:25 +00:00
Richard M. Stallman
c988a68aad (texinfo-extra-inter-column-width):
Renamed from extra-inter-column-width.  Doc fix.
(texinfo-multitable-buffer-name):
Variable renamed from multitable-temp-buffer-name.
(texinfo-multitable-rectangle-name):
Variable renamed from multitable-temp-rectangle-name.
(texinfo-format-key): Don't insert angle-brackets.
1997-05-24 20:52:05 +00:00
Richard M. Stallman
5aa34729dd [This finishes the change log for the changes in the previous version.]
Add properties for new commands.
Move all the no-op commands to the end, and add some.

Add many commands for ligatures and for letters with diacritics
and other non-English special characters.

(texinfo-multitable): New Texinfo cmd.
(texinfo-end-multitable): New function.
(texinfo-multitable-widths): New function.
(texinfo-multitable-extract-row): New function.
(texinfo-multitable-item): New function.
(texinfo-format-timestamp): New Texinfo cmd.
(texinfo-format-kbd-regexp): New variable.
(texinfo-format-kbd-end-regexp): New variable.
(texinfo-format-kbd): New function for @kbd.
(texinfo-format-ifeq): New Texinfo cmd.
(texinfo-format-pounds): Likewise.
(texinfo-format-refill): Handle *'s specially at line start.
1997-05-24 20:50:37 +00:00
Richard M. Stallman
92f621996c (texinfmt-version): New function and variable.
(texi2info): New function.
(texinfo-accent-commands): New variable.
(texinfo-no-refill-regexp): Use concat to make it clearer.
Add some more elements.
(texinfo-part-of-para-regexp): Likewise.
(texinfo-append-refill): Extend criterion 3 for when not to refill.
(texinfo-raisesections-alist): Add @centerchap.
(texinfo-lowersections-alist): Add @centerchap.
(texinfo-format-scan): Handle many more @-char commands.
(detailmenu): Add texinfo-format and texinfo-end properties,
(centerchap): Add texinfo-format property,
(texinfo-format-buffer): Doc fix.
(texinfo-parse-line-arg): Add doc string.
(texinfo-parse-arg-discard): Likewise.
1997-05-24 20:00:10 +00:00
Richard M. Stallman
65c1b8a19e (outline-mode): Use `add-to-invisibility-spec' and
set the invisible property to `outline'.
(outline-minor-mode): Likewise.
Also, use `remove-from-invisibility-spec'.
(outline-flag-region): Set `outline' as the invisible property.
1997-05-17 03:12:03 +00:00
Kenichi Handa
c4cd8760a2 (enable-kinsoku): Name changed form do-kinsoku.
(fill-region-as-paragraph): Do `kinsoku' processing only if both
enable-kinsoku and enable-multibyte-characters are non-nil.
1997-05-17 02:01:42 +00:00
Richard M. Stallman
43a8874dac (assoc-ignore-case): Function deleted.
(bibtex-member-of-regexp): Renamed from member-of-regexp.
Call changed.
1997-05-08 06:02:42 +00:00
Richard M. Stallman
1438d2d528 Fix customization change. 1997-05-07 04:01:44 +00:00
Richard M. Stallman
eb2e4e70fa (outline-mode): Autoload cookie deleted.
(outline-minor-mode): Likewise.
1997-05-07 03:57:29 +00:00
Richard M. Stallman
322454d48d (outline-mode): Autoload cookie added.
(outline-minor-mode): Likewise.
1997-05-07 03:57:01 +00:00
Richard M. Stallman
c6a04157c1 Use defgroup and defcustom. 1997-05-07 03:54:03 +00:00
Richard M. Stallman
9d325ebf0d Use defgroup and defcustom. 1997-05-05 15:00:53 +00:00
Richard M. Stallman
a7b0df0db4 (ispell-dictionary-alist-2): Specify syntax of ' in Danish. 1997-05-02 07:26:39 +00:00
Richard M. Stallman
c4ac30da67 (forward-paragraph): Fix editing error
in the updating of paragraph-separate.
1997-04-26 19:20:00 +00:00
Richard M. Stallman
f788776c22 Many doc fixes. 1997-04-24 19:37:13 +00:00
Richard M. Stallman
d10447bad9 (sgml-value): Use 'identity as default value.
(sgml-mode): Doc fix.
(sgml-name-8bit-mode): Tell the user if set or reset.
(sgml-tag): Doc fix.
(sgml-tag): Protect "<" from skeleton-transformation.
(sgml-attributes): Doc fix.
(sgml-attributes): Square brackets removed from prompt.
(sgml-attributes): Arg ALIST renamed to TAG.
(sgml-attributes): Apply skeleton-transformation when necessary.
(sgml-value): Doc added.
(sgml-value): Square brackets removed from prompt.
(html-tag-alist): New variable 1-7, variable `list' changed.
(html-tag-alist)<dir>, <menu>: Use new value of `list'.
(html-tag-alist)<font>: Fixed (doc of sgml-tag-alist needs fixing).
(html-tag-alist)<ol>, <ul>: Fixed.
(html-tag-alist)<fn>: Commented out.
1997-04-23 18:58:33 +00:00
Richard M. Stallman
38c1d5e379 (ispell-overlay-window): Bind frame-override-unsplittable. 1997-04-22 23:25:24 +00:00
Richard M. Stallman
c60e7b0d7c (sgml-transformation): Fix previous change. 1997-04-22 04:32:00 +00:00
Richard M. Stallman
8af06c7cf9 (texinfo-master-menu-header): Delete newline at start.
(texinfo-insert-master-menu-list): Add @detailmenu and
@end detailmenu commands.
1997-04-20 21:02:06 +00:00
Richard M. Stallman
9b0ffdac4b (sgml-name-char): Ask user with a prompt. 1997-04-17 21:22:21 +00:00
Richard M. Stallman
a391b17964 (sgml-value): Don't perform the skeleton-transformation
on the value.

(sgml-transformation): New variable.
(sgml-mode-common): Use it.
(html-href-anchor): Ask for address, wrap around text.
(html-name-anchor): Same as above, without initial input.
(html-image): No initial input for address.
(html-ordered-list): Incorporate char into string.
(html-unordered-list): Same as above.
(html-checkboxes, html-radio-buttons): Rewritten.

(sgml-char-names): Change ensp to nbsp.

(sgml-tag): Use intangible here.
(sgml-tags-invisible): Don't add intangible property
separately here.  Just the category property is enough.
Eliminate local variable `point'.
Bind inhibit-point-motion-hooks.
1997-04-16 21:43:01 +00:00
Richard M. Stallman
00ed33e7ab Add defgroup; use defcustom for user vars. 1997-04-13 07:51:54 +00:00
Richard M. Stallman
d61140e89d Add defgroup's; use defcustom for user vars. 1997-04-13 07:28:48 +00:00
Richard M. Stallman
6811a757a5 (sgml-mode-facemenu-add-face-function): New function.
(sgml-mode-common): Use that function for the hook value.
1997-04-13 06:11:35 +00:00
Richard M. Stallman
64ae0c233e Add defgroup; use defcustom for user vars. 1997-04-13 05:07:27 +00:00
Richard M. Stallman
ded3e3d816 Add defgroup; use defcustom for user vars. 1997-04-13 03:09:23 +00:00
Richard M. Stallman
bbf5eb2805 Add defgroup's; use defcustom for user vars. 1997-04-12 03:18:33 +00:00
Richard M. Stallman
cd482e0573 Add defgroup's; change use defcustom for user vars. 1997-04-12 02:51:38 +00:00
Richard M. Stallman
f2b7eb2618 Use defcustom for user variables. 1997-04-11 01:37:50 +00:00
Richard M. Stallman
78897d3d9f (texinfo-make-menu): Accept args BEGINNING and END.
(texinfo-update-node): Accept args BEGINNING and END.
(texinfo-all-menus-update): Pass region explicitly.
(texinfo-master-menu, texinfo-every-node-update): Likewise.
1997-04-05 21:59:09 +00:00
Richard M. Stallman
0afdd8d041 (sgml-validate): Offer to save the buffer first. 1997-04-05 21:52:58 +00:00
Richard M. Stallman
7e60d5d365 (outline-discard-overlays): Fix the case
where an overlay extends on both sides of the region.
(outline-mark-subtree): New function.
(outline-mode-prefix-map): Put outline-mark-subtree on C-c @.
1997-03-26 07:30:26 +00:00
Richard M. Stallman
48cbe093bb (outline-discard-overlays): Fix the case
where an overlay extends on both sides of the region.
1997-03-26 06:05:58 +00:00
Karl Heuer
ab9d539cc9 (ispell-command-loop): Disable message logging.
(ispell-region): Ditto.
1997-03-11 22:27:36 +00:00
Karl Heuer
c9d611f447 (do-kinsoku): New variable.
(fill-region-as-paragraph): Handle `kinsoku' processing.
1997-02-20 05:33:51 +00:00
Richard M. Stallman
da84bdc4d5 (html-mode): Locally set sentence-end. 1997-01-21 09:27:59 +00:00
Richard M. Stallman
86b54f498e (texinfo-incorporate-descriptions): Call regexp-quote. 1997-01-13 01:10:49 +00:00
Richard M. Stallman
24e519d8c9 (texinfo-mode): Locally set tex-first-line-header-regexp.
Locally set tex-trailer.

(texinfo-mode): Use regexps for
tex-start-of-header and tex-end-of-header.
(texinfo-tex-region, texinfo-tex-buffer): Use tex-region and tex-buffer.
(texinfo-tex-print): Use tex-print.
(texinfo-tex-view): New command, on C-x C-t C-v.
1997-01-02 20:49:15 +00:00
Richard M. Stallman
6d34c59ffb (tex-region): Correctly handle possible
overlap between first line, header, and region.
New local var ALREADY-OUTPUT makes this general.
Write tex-trailer directly as a string; get rid of temp-buffer.
Make tex-out-file include the .tex suffix.
1997-01-02 01:30:36 +00:00
Richard M. Stallman
725b742881 (tex-first-line-header-regexp): New variable.
(tex-region): Sometimes include the file's first line.
1996-12-29 19:41:52 +00:00
Richard M. Stallman
441c2ae483 (ispell-message-text-end): Handle `- ' before
the "cut here" or "start of..." line.  Handle `Forward message'
without `Start of'.
1996-12-27 02:06:41 +00:00
Richard M. Stallman
94d63a2336 (forward-paragraph, backward-paragraph): Doc fixes. 1996-12-26 22:43:17 +00:00
Richard M. Stallman
d7fa5aa239 Change defconsts to defvars. 1996-12-16 01:33:02 +00:00
Richard M. Stallman
21cd2849ae (outline-discard-overlays):
Use overlays-in, to ensure we get rid of empty overlays.
1996-12-14 22:24:35 +00:00
Richard M. Stallman
9064ef036e (texinfo-font-lock-keywords): Add url', email'. 1996-12-08 08:22:59 +00:00
Richard M. Stallman
cb70d91574 (narrow-to-page): With negative arg, move back one extra
page unless we start right after a page delimiter.
1996-11-06 22:42:41 +00:00
Richard M. Stallman
23b6422580 (tex-file): Fix paren error in last change.
(tex-recenter-output-buffer): Switch windows in a more controlled
fashion, using save-selected-window.
1996-10-31 23:50:02 +00:00
Richard M. Stallman
b8a3aefac9 (refer-bib-directory): New variable, list of
directories where to look for bib files.  Special values `texinputs'
and `bibinputs' mean take directory list from corresponding
environment variable.

(refer-bib-files): New special value `auto', for looking up all
files in directories pointed to by refer-bib-directory.
I have the feeling that this isn't really my code but came from
the net (copylefted). However, I cannot trace this down any
more. If it isn't mine, it's probably Ashwin's.
(refer-get-bib-files): Support `auto' value of refer-bib-files.
Support `texinputs', `bibinputs' value of refer-bib-directory.

(refer-saved-state, refer-previous-keywords, refer-saved-pos,
refer-same-file): Properly declared (defvar) these variables.

(refer-yank-key): New function.

(refer-find-entry-internal): Find bibliography entries in other
window, with minimal reconfiguration of windows.

(refer-expand-files): New function.
1996-10-26 18:15:32 +00:00
Richard M. Stallman
7a8f27dbe6 Comment change. 1996-10-12 02:42:58 +00:00
Richard M. Stallman
17c3470ee8 (2C-two-columns): Doc fix. 1996-10-12 02:31:48 +00:00
Richard M. Stallman
7635fc7c22 (r2b-proceedings-list, r2b-help-message): Doc fixes. 1996-10-12 02:30:37 +00:00
Richard M. Stallman
21a6f23c30 (sgml-specials): Delete `-' from the list.
(sgml-font-lock-keywords): Add an element for comments.
1996-10-07 18:29:22 +00:00
Richard M. Stallman
ebe15e27ee (tex-main-file): Add missing initial value.
(tex-file): Set tex-print-file to source-file always.
1996-09-27 20:42:12 +00:00
Richard M. Stallman
b53ce41df6 (forward-paragraph): Don't ever move forward again across a line if we
stopped there because it doesn't start with the fill prefix.
1996-09-25 07:20:19 +00:00
Richard M. Stallman
7a953756b0 (bib-capitalize-title-stop-words): Renamed from capit...
(bib-capitalize-title-stop-regexp): Renamed from capit...
(bib-capitalize-title-region): Renamed from capitalize...
(bib-capitalize-title): Renamed from capitalize...
1996-09-22 21:48:30 +00:00
Richard M. Stallman
e9dac1e100 (r2b-capitalize-title-stop-words): Renamed from capit...
(r2b-capitalize-title-stop-regexp): Renamed from capit...
(r2b-capitalize-title-region): Renamed from capitalize...
(r2b-capitalize-title): Renamed from capitalize...
1996-09-22 21:45:39 +00:00
Richard M. Stallman
7c5a1541f3 (ispell-dictionary-alist-1): Add `american' to list. 1996-09-16 19:00:18 +00:00
Richard M. Stallman
2729bba00d (outline-font-lock-keywords):
Treat carriage return like newline.
1996-09-10 03:18:36 +00:00
Richard M. Stallman
312cac0ecc Add 1996 to copyright notice. 1996-09-01 03:30:37 +00:00
Richard M. Stallman
965eb84afd (use-hard-newlines): New minor mode function.
Existing variable gets doc fix.
1996-09-01 03:24:55 +00:00
Richard M. Stallman
b53e01dc02 (texinfo-format-printindex):
Treat windows-nt and ms-dos like vax-vms.
1996-08-30 03:47:47 +00:00
Richard M. Stallman
f73741fc23 (tex-main-file): New variable.
(tex-file): Use that.  Rename local var to source-file
so it is obviously local.
1996-08-25 01:25:07 +00:00
Richard M. Stallman
5e70d78de3 (html-tag-alist): Fix the entry for "font". 1996-08-14 21:32:10 +00:00
Richard M. Stallman
1b97fc6eb4 (bibtex-mode): Set normal-auto-fill-function locally;
don't set auto-fill-function.  Don't turn on Auto Fill mode.
1996-08-09 22:31:46 +00:00
Karl Heuer
29bd7a8f90 Use current FSF address/phone in sample file. 1996-07-20 17:33:58 +00:00
Karl Heuer
a1cfbf35a9 (texinfo-format-today): Avoid race condition by getting current time only once. 1996-07-15 20:26:39 +00:00
Karl Heuer
710a0f533a (tex-validate-region): Skip fwd over whitespace
and punctuation, to find point of mismatch.
(validate-tex-buffer): Don't include the blank lines
before a paragraph in the paragraph being checked.
1996-07-11 23:55:01 +00:00
Karl Heuer
af6fb89dbb (bibtex-reference-head): Allow spaces and tabs between
opening brace or paren and key.  Simplify regexp.
(bibtex-type-in-head, bibtex-key-in-head): Decrement.
(bibtex-mode): Use new function run-with-idle-timer instead of
auto-save-hook for periodically parsing keys.
(bibtex-mode-syntax-table, bibtex-autokey-name-change-strings,
bibtex-autokey-titleword-change-strings): Support non-escaped
double-quoted characters (as with german styles).
(bibtex-field-string-quoted): Disallow lines like
author = "Stefan Sch"of"
until BibTeX supports them.
1996-07-11 23:13:33 +00:00
Richard M. Stallman
8798879498 (bibtex-reference-head): Allow whitespace after the open paren. 1996-06-29 06:21:48 +00:00
Richard M. Stallman
6ec7837b2b (ispell-message): Support message-mode. 1996-06-28 08:55:00 +00:00
Richard M. Stallman
be166d1726 (outline-minor-mode): No longer permanent local. 1996-06-26 18:03:44 +00:00
Richard M. Stallman
cf149bdfae (tex-common-initialization): Set skeleton-further-elements.
(tex-latex-block): Define as a skeleton.
1996-06-25 22:44:10 +00:00
Richard M. Stallman
56ade26139 (outline-up-heading): Fix error message.
(outline-backward-same-level, outline-forward-same-level): Likewise.
1996-06-20 19:22:11 +00:00
Richard M. Stallman
7e49eef26e (html-list): Definition deleted.
(html-headline): Definition deleted.
(html-ordered-list, html-unordered-list): New definitions.
(html-headline-1 ... html-headline-6): New definitions.
(html-mode-map): Use new commands.
1996-06-15 23:19:40 +00:00