1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-23 06:00:41 -08:00
Commit graph

9107 commits

Author SHA1 Message Date
Richard M. Stallman
e51f616fee Many doc fixes.
(view-mode-enable): New function, split from view-mode-enter.
(view-mode-enter): Use view-mode-enable.
(view-mode-disable): New function, split from view-mode-exit.
(view-mode-exit): Use view-mode-disable.
(view-mode): Use view-mode-enable and view-mode-disable;
don't do all of what view-mode-enter and view-mode-exit do.
(change-major-mode-hook): Use view-mode-disable, not view-mode-exit.
1997-06-14 21:41:42 +00:00
Richard M. Stallman
ab7782fc24 Make view mode more similar to `less'.
Changed documentation for most commands.
(view-scroll-auto-exit): New variable, replaces view-mode-auto-exit.
(view-mode-auto-exit): Variable deleted.
(view-mode): Doesn't only toggle `view-mode', it also calls
view-mode-enter or view-mode-exit.
(view-buffer, view-buffer-other-window): New argument exit-action.
(view-file, view-file-other-window, view-buffer-other-window)
(view-buffer, view-mode-enter): Changed method used to restore
windows when leaving view mode.
(view-mode-exit): New function.
(view-return-to-alist): New variable.
(view-return-here, view-exit-position): Variables deleted.
(view-remove-frame-by-deleting, view-exit-all-windows-at-exit):
New option variables.
(view-page-size, view-half-page-size): New variables.
(view-scroll-size): Var deleted; replaced by the previous two.
(view-mode-map): Make the bindings inside defvar.
Added new commands and new key bindings.
Added view-mode-exit to `change-major-mode-hook' to always leave
view mode when changing major mode.
(view-file-other-frame,	view-buffer-other-frame): New commands.
(View-leave, View-kill-and-leave, View-exit, View-exit-and-edit)
(View-quit, View-quit-all): new commands for leaving view mode.
(view-exit): Function deleted.
(View-goto-percent, View-scroll-to-buffer-end): New commands.
(view-try-extend-at-buffer-end): New option variable.

(View-scroll-page-forward, View-scroll-page-backward)
(View-scroll-page-forward-set-page-size)
(View-scroll-page-backward-set-page-size, View-scroll-line-forward)
(View-scroll-line-backward, View-scroll-half-page-forward)
(View-scroll-half-page-backward)
(View-revert-buffer-scroll-page-forward): New commands.

(View-scroll-lines-forward, View-scroll-lines-backward)
(View-scroll-lines-forward-set-scroll-size)
(View-scroll-one-more-line): Commands deleted.

(view-scroll-lines, view-end-message, view-page-size-default)
(view-set-half-page-size-default, view-really-at-end)
(view-recenter): New functions.
(view-scroll-size): Variable deleted.

(View-search-regexp-forward, View-search-regexp-backward)
(View-search-last-regexp-forward, View-search-last-regexp-backward)
(view-search): ! and @ are special at beginning of regexp.
(view-search-no-match-lines): New function.
1997-06-14 21:06:09 +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
f80f7bc21f (vc-annotate-mode-variables): Init vc-annotate-mode-menu
and put it into vc-annotate-mode-map.
(vc-annotate-add-menu): Don't init vc-annotate-mode-menu,
just add the bindings to it.  Display progress messages.
(vc-annotate-mode-menu): New defvar.
(vc-annotate-ratio): Move defvar, add initial value.
(vc-annotate-display-default): Display progress messages.
(vc-annotate-display): Use vc-annotate-color-map.
1997-06-14 17:29:10 +00:00
Per Abrahamsen
6aaedd1230 Synched with 1.9914. 1997-06-14 10:21:01 +00:00
Richard M. Stallman
996169356b (Latin-2): List Croatian as alternative name for Serbo-Croatian. 1997-06-14 06:33:29 +00:00
Richard M. Stallman
12e36cdba6 (hideshow): Added a :prefix.
(hs-isearch-open): New variable.
(hs-flag-region): Use that variable.
Changed the semantics of the FLAG parameter and updated the docs.
(hs-isearch-open-invisible): New function to be set as a
`isearch-pent-invisible' property for hidden overlays, so that
isearch can use it.
(hs-hide-block-at-point): Tell if we are hiding a comment or a block.
1997-06-13 21:31:25 +00:00
Richard M. Stallman
0352b20571 (isearch-hide-immediately): New variable.
(isearch-close-unecessary-overlays): New function.
(isearch-range-invisible): Use them.

(search-invisible): Changed the semantics,
the default value and updated the doc string.
(isearch-opened-overlays): New variable.
(isearch-mode): Initialize it.
(isearch-switch-frame-handler): Call isearch-clean-overlays.
(isearch-exit, isearch-cancel, isearch-abort): Likewise.
(isearch-other-meta-char, isearch-search):
Support the new meaning for search-invisible.
(isearch-open-necessary-overlays, isearch-open-overlay-temporary)
(isearch-clean-overlays): New functions.
(isearch-range-invisible): If we are inside overlays that can be
opened, open them, add them to isearch-opened-overlays and say
that the range is visible.
1997-06-13 21:30:38 +00:00
Richard M. Stallman
f9045d14d3 Latin-5 is ISO-8859-9, not ISO-8859-5. 1997-06-13 00:51:01 +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
48cd9fe9ec Require `format'.
(iso-translate-conventions): Take bounds as args.
(iso-spanish, iso-german): Take bounds as args.
(iso-iso2tex, iso-tex2iso, iso-gtex2iso, iso-iso2gtex): Likewise.
(iso-iso2duden-trans-tab): New variable.
(iso-iso2duden): New command.
(iso-cvt-read-only, iso-cvt-write-only): New commands.
(is-german-tex-p): Function deleted.
(iso-fix-iso2tex, iso-fix-tex2iso): Functions deleted.
(iso-cvt-ffh, iso-cvt-wfh, iso-cvt-ash): Functions deleted.
(iso-cvt-define-menu): New function.
1997-06-12 05:22:15 +00:00
Richard M. Stallman
a984234637 (mail-mode): Change paragraph-start and
paragraph-separate not to match leading spaces.
1997-06-12 04:32:29 +00:00
Richard M. Stallman
5acc847d85 (finder-mode): Don't switch buffers or change text here.
(finder-by-keyword): Don't call finder-mode here.
(finder-list-matches): Call finder-mode here.
Switch to a buffer called *Finder Category*.
(finder-list-keywords): Call finder-mode here.
Switch to the buffer *Finder*.
If the buffer already exists, don't reinitialize it or move point.
1997-06-12 03:51:53 +00:00
Richard M. Stallman
04bed6f76c (esc-map): Delete spurious wrong binding for M-TAB. 1997-06-12 02:52:57 +00:00
Richard M. Stallman
b70a6198cf Comment change. 1997-06-12 00:50:08 +00:00
Richard M. Stallman
a92f7abb62 (forms-mode, forms--process-format-list)
(forms--make-parser-elt, forms-search-forward, forms-search-backward):
Fix error messages.

(forms-save-buffer):
Do not run the `write-file-filter' hooks
explicitly since they are run via `local-write-file-hooks'.
(forms-search-forward, forms-search-backward):
Wrap the search.  Use `error' to signal failure.
1997-06-11 21:07:22 +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
Kenichi Handa
95fa03b4fb (view-hello-file): Adjusted for the changes of
coding system names.
1997-06-11 00:38:09 +00:00
Karl Heuer
b50c87ee6e (pc-select-selection-keys-only): New variable.
(pc-select-meta-moves-sexps): New variable.
(exchange-point-and-mark-nomark): New function.
(forward-sexp-mark, forward-sexp-nomark): New functions.
(backward-sexp-mark, backward-sexp-nomark): New functions.
(pc-selection-mode): Doc fix.
Bind exchange-point-and-mark-nomark, C-escape.
Honor pc-select-meta-moves-sexps, pc-select-selection-keys-only.
Unset highlight-nonselected-windows.
1997-06-10 19:44:44 +00:00
Karl Heuer
38bd9da2df Use `error' where possible to signal errors.
Remove (beep)s for warnings.
Change comment about the iif hook to reflect the actual reason.
Correct error in field numbering.

(forms-mode): Make `forms--elements' local before calling
`forms--process-format-list'.

(forms-save-buffer): `forms-write-file-filter' and
`forms-read-file-filter' were not called correctly.
1997-06-10 18:32:33 +00:00
Richard M. Stallman
1a2b7f51aa Add some keywords. 1997-06-10 18:18:07 +00:00
Karl Heuer
24c868149e (f90-looking-at-where-or-forall): Recognize where/forall
only if it's a block, not a one-line statement.
1997-06-10 18:04:01 +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
Karl Heuer
a09aa65951 Comment fix. 1997-06-10 17:55:36 +00:00
Richard M. Stallman
fac9f1df1a Load latin-5.el. 1997-06-10 06:44:01 +00:00
Richard M. Stallman
0333a1cc1c Added the string "emacs-lock" to all function
and variable names, to make them unique to emacs-lock.

(check-was-buffer-locked): New function,
on shell-mode-hook and telnet-mode-hook.
(save-buffer-lock-setting): New permanent local variable.

(check-buffer-lock): New function, on kill-buffer-hook.
(set-shell-sentinel): New function, on shell-mode-hook
and telnet-mode-hook.
1997-06-10 03:54:58 +00:00
Richard M. Stallman
49adf44396 Delete syntax stuff for Latin-1 and Latin-2. 1997-06-10 02:12:27 +00:00
Richard M. Stallman
698f40ca01 (mail-parse-comma-list): Use buffer-substring-no-properties. 1997-06-10 01:26:11 +00:00
Kenichi Handa
4b9121fc86 Adjusted for coding system name change. 1997-06-10 01:08:21 +00:00
Kenichi Handa
c47cd165b0 Coding system name changed from
iso-2022-7 to iso-2022-7bit.
1997-06-10 00:57:19 +00:00
Kenichi Handa
255310e037 (quail-prefix-arg): New variable.
(quail-start-translation): Make it handle a prefix argument.
(quail-terminate-translation): Like wise.
1997-06-10 00:56:22 +00:00
Kenichi Handa
88d9cc1e14 (set-coding-system-alist): Deleted.
(string-to-sequence): Doc string modified.
(coding-system-list): Add optional arg BASE-ONLY.
(coding-system-base): New function.
(coding-system-plist): New function.
(coding-system-equal): New function.
(coding-system-unification-table): New function.
1997-06-10 00:56:20 +00:00
Kenichi Handa
795a5f848e (describe-coding-system): Change format of output.
(describe-current-coding-system-briefly): Likewise.
(describe-current-coding-system): Likewise.
(print-coding-system-briefly): Likewise.
(print-coding-system): Likewise.
(list-coding-systems): Likewise.  Make it interactive.
1997-06-10 00:56:19 +00:00
Kenichi Handa
0ae6d4825d (kkc-save-init-file): Coding system name changed from
iso-2022-7 to iso-2022-7bit.
1997-06-10 00:56:18 +00:00
Kenichi Handa
4b16fa0c6e Comment changed (iso-2022-7 -> iso-2022-7bit). 1997-06-10 00:56:17 +00:00
Kenichi Handa
4951a271e0 Coding system names changed. 1997-06-10 00:56:16 +00:00
Kenichi Handa
8057896bd0 Delete declaration for buffer-file-coding-system. It
is done in buffer.c now.  In the comment, change coding-system to
coding system.  The name coding-vector is changed to coding-spec.
(coding-vector-type, coding-vector-mnemonic,
coding-vector-docstring, coding-vector-flags): Deleted.
(coding-system-spec-ref): New function.
(coding-system-type, coding-system-mnemonic, coding-system-flags):
Use coding-system-spec-ref.
(coding-system-doc-string): Renamed from coding-system-docstring.
(coding-system-eol-type): Renamed from coding-system-eoltype.
(coding-system-eol-type-mnemonic): Moved to mule-util.el.
(coding-system-post-read-conversion): Likewise.
(coding-system-pre-write-conversion): Likewise.
(default-process-coding-system): Deleted.  Now declared in
buffer.c.
(make-subsidiary-coding-system): New function.
(make-coding-system): Check arguments more strictly.  Do not make
-unix, -dos, -mac variants for TYPE 4.
(define-coding-system-alias): Call make-subsidiary-coding-system.
(set-buffer-file-coding-system): Adjusted for the function name
changes.
(find-new-buffer-file-coding-system): Likewise.
(default-process-coding-system): Deleted.  Now defined in coding.c.
1997-06-10 00:56:15 +00:00
Richard M. Stallman
9d07cf38e7 (debug): Set overriding-terminal-local-map to nil,
don't bind it, so it won't be restored on `q'.
1997-06-09 16:42:34 +00:00
Kenichi Handa
c5ee9ef188 (do-auto-fill): Type in the previous change fixed. 1997-06-09 13:07:45 +00:00
Kenichi Handa
53dcf39300 (do-auto-fill): Bug fix for kinsoku processing. 1997-06-09 12:51:42 +00:00
Kenichi Handa
a904b20bf2 Define mouse-set-font in mule-menu-keymap.
Disable menu set-buffer-process-coding-system if there is no
process for the current buffer.
(command-execute-with-coding-system): New function.
(universal-coding-system-argument): Make it handle
universal-arguement correctly.
(describe-language-support): Call coding-system-doc-string instead
of coding-system-docstring.
1997-06-09 12:51:37 +00:00
Erik Naggum
9125efc29c Normalized character names. 1997-06-09 10:39:19 +00:00
Richard M. Stallman
7d2d948212 (diff-switches): defvar deleted.
(vc-annotate-*): New functions and variables.
1997-06-09 06:01:12 +00:00
Michael Kifer
726e270f85 new version 1997-06-09 04:00:50 +00:00
Richard M. Stallman
fdac7fbaa2 (time-stamp-string-preprocess, time-stamp-do-number):
Avoid compiler warnings: pass all arguments to time-stamp-do-number
explicitly, not dynamically.
1997-06-08 21:45:16 +00:00
Richard M. Stallman
fd72ddf609 (time-stamp-format): Doc fix. Use %;y.
(time-stamp-string-preprocess): Don't just call format-time-string;
handle compatibility for some old constructs.  Handle padding
the historical way, while giving a warning if people actually depend on it.
(time-stamp-conv-warn, time-stamp-conversion-warn)
(time-stamp-do-number): New functions.
1997-06-08 21:43:08 +00:00