Commit graph

376 commits

Author SHA1 Message Date
Boris Goldowsky
886f165697 (texinfo-format-refill): Remove ^ from paragraph-start & paragraph-separate. 1995-03-02 15:46:52 +00:00
Boris Goldowsky
690bc320aa (scribe-mode): Remove ^ from paragraph-start & paragraph-separate. 1995-03-02 15:41:16 +00:00
Boris Goldowsky
dad432c6ab (outline-mode): Remove ^ from paragraph-start & paragraph-separate. 1995-03-02 15:36:11 +00:00
Boris Goldowsky
0608d57e5c (nroff-mode): Remove ^ from paragraph-start & paragraph-separate. 1995-03-02 15:32:57 +00:00
Boris Goldowsky
ac0e96eb6e (bibtex-mode): Remove ^ from paragraph-start. 1995-03-01 15:43:27 +00:00
Boris Goldowsky
55cc56775b (paragraph-start, paragraph-separate): Default values no longer start
with ^. Doc fix.
(use-hard-newlines): Moved here from cmds.c.  Made buffer-local.  Doc fix.
(looking-at-hard): Deleted, not needed.
(forward-paragraph): Removes ^ from beginning of regexps, if
required.  Look for paragraph-start and paragraph-separate at
left-margin, not BOL.  Lines with just left-margin indentation are
treated like blank lines.
1995-03-01 15:21:11 +00:00
Boris Goldowsky
1095bc3caa (set-fill-prefix): start from left-margin.
(fill-region-as-paragraph): don't delete hard newlines.  ignore whitespace
at beginning of region.  Remove justification indentation.
(fill-region): Don't use paragraph-movement commands when use-hard-newlines
is true, just search for hard newlines.
(current-justification): take care at EOB.
(set-justification): new argWHOLE-PAR.  Callers changed.
(justify-current-line): Error if JUSTIFY arg is not reasonable.
Better interaction if there is a fill-prefix.
"Line too long" warning removed.
(unjustify-current-line, unjustify-region): New functions.
1995-02-23 18:22:04 +00:00
Richard M. Stallman
7d0ca249c8 (tex-append): Try splitting on last period, then
try splitting on first period.
1995-02-17 23:25:17 +00:00
Richard M. Stallman
1335d07805 Personal dictionary save forced when called from menu,
Epoch compile support.
(ispell-skip-sgml): Added variable for skipping SGML tags & references.
(ispell-buffer-local-parsing): Hard wire set of ispell-skip-sgml-tags
to sgml-mode.
(ispell-pdict-save): Message improvement.
(ispell-command-loop): Properly adjust screen with different settings
of ispell-choices-win-default-height.
(check-ispell-version): Use fundamental-mode as default-major-mode.
(ispell-change-dictionary): Remove unnecessary process kills
(ispell-region): Fold sgml support in with tib checking.
(ispell-message): Skips checking of forwarded messages.
1995-02-08 06:09:08 +00:00
Richard M. Stallman
c066ae5ca0 (texinfo-environment-regexp): Match @menu and
@titlepage --- they require @ends.  Don't match @defunx commands; they don't.
(texinfo-insert-@end): Don't put a command name after the @end
if we ran off the top of the buffer looking for its mate.
1995-02-06 03:26:35 +00:00
Richard M. Stallman
e86fe0d789 (fill-paragraph): Bind fill-paragraph-function to nil before calling it. 1995-02-02 19:28:31 +00:00
Richard M. Stallman
86dfb30a1b (fill-paragraph-function): New variable.
(fill-paragraph): Use it.
1995-02-02 09:50:23 +00:00
Richard M. Stallman
51b2c84172 (tex-display-shell): Pass nil as arg to
tex-recenter-output-buffer.
(tex-region, tex-file, tex-show-print-queue, tex-bibtex-file):
Put the call to tex-display-shell essentially last.
1995-01-27 23:08:49 +00:00
Richard M. Stallman
5f63637658 (justify-current-line): Avoid error comparing fill-prefix
near end of buffer.  Do nothing fast if justification not wanted.
1995-01-25 00:05:59 +00:00
Richard M. Stallman
7112bf0f2a (fill-region-as-paragraph): At end, advance over any newlines
that were in the region but excluded from filling.
1995-01-20 23:06:06 +00:00
Karl Heuer
be6f02af4f (center-line): fill-column is a var, not a function. 1995-01-20 19:12:20 +00:00
Richard M. Stallman
9a04e20535 (fill-region-as-paragraph): left-margin renamed to current-left-margin. 1995-01-19 04:29:17 +00:00
Richard M. Stallman
f43726fd67 (current-justification): Renamed from current-justification. Callers changed. 1995-01-19 04:27:15 +00:00
Richard M. Stallman
0cb08f9838 (set-justification): New function.
(set-justification-{none,left,right,full,center}): New functions.
(fill-region-as-paragraph, fill-region, justify-current-line): New
arg NOSQUEEZE defeats normal removal of extra whitespace.
(fill-region-as-paragraph, fill-region)
(fill-nonuniform-paragraphs, fill-individual-paragraphs):
Arg JUSTIFY-FLAG (JUSTIFYP) renamed to JUSTIFY.
(fill-region-as-paragraph): Obey left-margin; fill-prefix starts
after left-margin.  Disable filling if JUSTIFY == none, but indent to
margin anyway.
Adaptive-fill removes text-props from fill-prefixes it finds.
Adaptive-fill no longer has to notice left-margin: std fill does that.
Use fill-column and canonically-space-region functions.
(canonically-space-region): New fn split from fill-region-as-paragraph.
(fill-region): New args NOSQUEEZE (as above) and TO-EOP.
(default-justification): New variable.
(current-left-margin, fill-column, justification): New functions.
(fill-paragraph): Use fill-region-as-paragraph when possible.
(justify-current-line): New arguments; different kinds of
justification handled.  Uses left-margin and fill-column functions.
1995-01-19 04:20:52 +00:00
Richard M. Stallman
11fbdf1f6c (center-line): Use current-left-margin function, not variable. 1995-01-19 04:04:28 +00:00
Richard M. Stallman
650f194c5a (forward-paragraph): Fix end-of-buffer bug. 1995-01-19 04:02:06 +00:00
Richard M. Stallman
f5cb196278 (check-ispell-version): Use Fundamental mode in the temporary buffer. 1995-01-18 23:07:22 +00:00
Richard M. Stallman
346169bfdc (scribe-mode): Treat @: as a sentence end. 1995-01-18 22:12:32 +00:00
Karl Heuer
21dd857809 (check-ispell-version): Force standard syntax table. 1995-01-18 20:00:08 +00:00
Richard M. Stallman
a37669ece7 (forward-paragraph): Notice use-hard-newlines value.
(looking-at-hard): New function.
(paragraph-start, paragraph-separate): Doc fix.
1995-01-13 08:44:43 +00:00
Richard M. Stallman
a098333dae (fill-region-as-paragraph): Don't modify newline
at end of paragraph, to make sure text-properties are preserved.
(fill-paragraph): Call fill-region, not fill-region-as-paragraph,
to avoid clobbering paragraph-internal hard-newlines.
(fill-region): If use-hard-newlines is on, divide into
"paragraphs" by breaking at every hard newline, temporarily
ignoring paragraph-start.
1995-01-13 08:44:26 +00:00
Richard M. Stallman
fa59ceb3f1 (bibtex-clean-entry): Killing text while editing
the autogenerated label in the minibuffer caused the killed text
to appear in front of the bibtex entry.
1995-01-06 21:48:36 +00:00
Richard M. Stallman
45c3304d43 (tex-print): Better check for when to print current
buffer's file over last processed file.
1995-01-05 00:23:50 +00:00
Richard M. Stallman
c0bcb2393b (tex-mode): Recognize \NeedsTeXFormat{LaTeX2e}. 1995-01-03 22:28:50 +00:00
Richard M. Stallman
9e9c0abe49 (spell-filter): Make it a risky-local-variable. 1995-01-03 06:40:13 +00:00
Richard M. Stallman
e4d02e0473 (tex-mode): \begin at start of file implies Latex. 1995-01-02 23:07:36 +00:00
Richard M. Stallman
002b0d0012 (tex-mode-map): Add BibTeX File menu item. 1994-12-30 23:02:43 +00:00
Richard M. Stallman
cb4ad359c3 (bibtex-string, bibtex-preamble): Use forward-line.
(sort-subr): Don't call autload for this--that's done in loaddefs.el.
(bibtex-mode): Add autoload cookie.

Changed keybinding for bibtex-print-help-message
(from \C-ch to \C-c?). Therefore, describe-mode is not longer on
\C-c?. Also, changed prefix \C-cn for bibtex-narrow functions to
\C-c\C-r.
(bibtex-string-files): Changed documentation.
(bibtex-mode-map): Inscriptions of menu bar changed from "Entry
Types" to "Entry-Types" and "Bibtex Edit" to "BibTeX-Edit".
(bibtex-string-files): Changed documentation.
(bibtex-mode): If environment variable BIBINPUTS isn't defined,
string files are searched in the current directory.
(bibtex-completion-candidates): Now buffer-local to allow
evaluation of different bibtex-string-files in different buffers.
(bibtex-autokey-edit-before-use, bibtex-clean-entry): New variable
that determines, if the user is allowed to edit auto-generated
reference keys before they are used.
(bibtex-generate-autokey, bibtex-clean-entry): New function to
generate an autokey if necessary.
(bibtex-autokey-names, bibtex-autokey-name-change-strings,
bibtex-autokey-name-length, bibtex-autokey-name-separator,
bibtex-autokey-year-length, bibtex-autokey-titlewords,
bibtex-autokey-title-terminators,
bibtex-autokey-titlewords-stretch,
bibtex-autokey-titleword-first-ignore,
bibtex-autokey-titleword-abbrevs,
bibtex-autokey-titleword-change-strings,
bibtex-autokey-titleword-length,
bibtex-autokey-titleword-separator,
bibtex-autokey-name-year-separator,
bibtex-autokey-year-title-separator): New variables related to
bibtex-generate-autokey.
(bibtex-find-entry-location): Optional second parameter maybedup
to tell it that entering a duplicate entry isn't to report by an
error but by the return value of the function (necessary for
bibtex-clean-entry to find the correct position of an entry with
an autogenerated key without disturbing the user with unwanted
messages).
(bibtex-help-message): New variable to avoid printing of help
messages in the echo area.
(assoc-of-regexp): New function to match an alist of regexps.
(bibtex-string-files, bibtex-completion-candidates, bibtex-mode):
New variables to allow bibtex-complete-string to work on strings
initialized from a variable and from @String definitions in a list
of files, too.
(bibtex-predefined-strings, bibtex-entry-field-alist): Changed to
user options.
(bibtex-mode): Changed doc string.
(many functions and variables): Changed documentation strings of
variables and functions to hold a complete sentence in the first
line.
(bibtex-print-help-message): Now line dependent and reports if it
is called outside a BibTeX field.
(validate-bibtex-buffer): Completely rewritten to validate, if
buffer is syntactically correct.
(find-bibtex-duplicates): Moved into validate-bibtex-buffer.
(ispell-abstract, bibtex-ispell-abstract, ispell-bibtex-entry,
bibtex-ispell-entry, beginning-of-bibtex-entry,
bibtex-beginning-of-entry, end-of-bibtex-entry,
bibtex-end-of-entry, hide-bibtex-entry-bodies,
bibtex-hide-entry-bodies, narrow-to-bibtex-entry,
bibtex-narrow-to-entry, sort-bibtex-entries, bibtex-sort-entries,
validate-bibtex-buffer, bibtex-validate-buffer,
find-bibtex-entry-location, bibtex-find-entry-location): All
interactive functions are renamed, so that any interface function
begins with "bibtex-". Mapping:
ispell-abstract            --> bibtex-ispell-abstract
ispell-bibtex-entry        --> bibtex-ispell-entry
beginning-of-bibtex-entry  --> bibtex-beginning-of-entry
end-of-bibtex-entry        --> bibtex-end-of-entry
hide-bibtex-entry-bodies   --> bibtex-hide-entry-bodies
narrow-to-bibtex-entry     --> bibtex-narrow-to-entry
sort-bibtex-entries        --> bibtex-sort-entries
validate-bibtex-buffer     --> bibtex-validate-buffer
find-bibtex-entry-location --> bibtex-find-entry-location
(bibtex-maintain-sorted-entries,
bibtex-sort-ignore-string-entries): Default is now t.
(bibtex-complete-string): String list is built from additional
string list bibtex-predefined-string and current strings in file.
(string-equalp): Deleted and substituted by string-equal.
(assoc-string-equalp): Renamed to assoc-ignore-case.
(bibtex-entry): Reference key can be entered with completion. All
reference keys that are defined in buffer and all labels that
appear in crossreference entries are object to completion.
(Entry types): Changed order of entries in menu "entry types".
(bibtex-entry-field-alist): Changed order of entries slightly to
be more conform with standard BibTeX style layouts.
(bibtex-mode-map): Uniform keybindings for \C-c\C-e prefix (often
used types on control keys, sometimes used types on normal keys,
rarely used types on shift keys, almost never used types on meta
keys).
(bibtex-mode-map): Function narrow-to-bibtex-entry and counterpart
widen and function hide-bibtex-entry-bodies and counterpart
show-all bounded to appropriate local keys.
(bibtex-abbrev-table): Deleted
(bibtex-current-entry-label, put-string-on-kill-ring): Deleted
(AUCTeX provides all the functionality needed for citation
completion).
(bibtex-enclosing-reference, bibtex-pop-previous, bibtex-pop-next,
bibtex-clean-entry): Hacked for speed (bibtex-pop-previous and
bibtex-pop-next were to slow for larger BibTeX files).
(bibtex-pop-previous, bibtex-pop-next): Delimiters from previous
or next entry are changed to actual delimters if necessary.
(bibtex-entry): Fixed bug (False entry wasn't reported in error
message if bibtex-entry was called with undefined reference name).
(bibtex-entry-field-alist, bibtex-entry, bibtex-make-field,
bibtex-next-field, bibtex-clean-entry): Every reference entry now
contains a comment in addition to the name of the reference. This
comment appears in the echo area if you start editing that field
(after calling bibtex-next-field).
(bibtex-include-OPTcrossref, bibtex-entry): Changed
bibtex-include-OPTcrossref from single boolean variable to hold a
list of reference names which should have a crossref field.
(bibtex-complete-word): New function, which completes word
fragment before point to the longest prefix of predefined strings
in the buffer in the same way that ispell-complete-word operates
for words found in the dictionary.
(bibtex-reference-head): Start of bibtex-reference-head changed
from "^[ \t]*\\(" to "^\\( \\|\t\\)*\\(" (bibtex-pop-previous and
bibtex-pop-next didn't work, probably due to a bug in
re-search-forward).
(several functions): Added support for {} as field delimiters
(better than '"' for accented characters.
(bibtex-clean-entry): If optional field crossref is empty or
missing, former optional fields (if bibtex-include-OPTcrossref was
t) are necessary again. bibtex-clean-entry complains if they are
empty but not if they are missing, so you can intenionally omit
them, e. g. for a pseudo @Journal entry (needed for
crossreferences) made out of an @article with missing non-optional
fields.
Menu bar entries aren't centered anymore.
1994-12-23 04:18:29 +00:00
Richard M. Stallman
70f2097350 Comment change. 1994-12-22 22:05:52 +00:00
Richard M. Stallman
191cda94a8 (tex-start-shell): Use inheritance. 1994-12-21 20:08:17 +00:00
Edward M. Reingold
dca5ea48d9 Make keymap for tex-shell the shell-mode-map. 1994-12-21 15:54:30 +00:00
Edward M. Reingold
e8c04c88ef Be consistent in use of comint (instead of shell) mode. 1994-12-19 19:09:39 +00:00
Karl Heuer
e29702dd6f Added ispell-offset for version consistency.
(ispell-dictionary-alist): updated dictionaries & better match defaults
(ispell-alternate-dictionary): added /usr/shar path
(ispell-menu-map-needed): redo changes that made this incompatible
with earlier versions of emacs19.
(ispell-required-version): changed to assure version 3.1.12 accessed.
(ispell-word): Correctly accept buffer-local information.
Does not try to modify read-only buffer on 'm' command.
(ispell-command-loop): fixed bug that corrupted buffers.
removed scrolling when *Choices* buffer shrinks.
(check-ispell-version): Correctly identifies new version requirements.
(ispell-region): Interaction updated for version 3.1.12+
Buffer read-only modification improvement.  Dictionary messages added.
(ispell-message-text-end): skips additional shell files.
(ispell-buffer-local-parsing): extended-char mode now matches text mode
1994-12-10 02:01:31 +00:00
Richard M. Stallman
c4b55ff15c (fill-region-as-paragraph): If region starts in mid-line,
don't fill the text before that, but count it for indentation.
(fill-region): If region starts in mid-line, keep whole line
in the region, but pass the region start to fill-region-as-paragraph.
1994-12-04 19:49:21 +00:00
Richard M. Stallman
e230790596 (bibtex-mode-map): Delete binding for ".
Don't load in tex-insert-quote.
1994-12-04 14:37:24 +00:00
Richard M. Stallman
0ad0f28fce (picture-self-insert): Use last-command-event,
not last-input-char.
(picture-mode-map): Make the keymap vector 256 chars long.
Fix typo `newline-andindent'.
1994-11-18 20:37:28 +00:00
Richard M. Stallman
2545066897 (texinfo-format-node): Insert the node delimiter
that info is looking for unconditionally.
1994-11-11 13:34:04 +00:00
Karl Heuer
6d94c1b4cb (r2b-help): Set help-mode in *Help* buffer. 1994-11-09 05:48:21 +00:00
Richard M. Stallman
dc7deb17a4 (texinfo-alias-list): New variable.
(texinfo-format-region, texinfo-format-buffer-1): Clear texinfo-alias-list.
(texinfo-format-scan): Implement @alias expansion.
1994-10-31 08:00:37 +00:00
Richard M. Stallman
5ec5330e64 (texinfo-format-scan): Make @- vanish; don't insert -.
(texinfo-format-soft-hyphen): New function.
1994-10-30 20:05:58 +00:00
Richard M. Stallman
c3054b518e (ispell-message-text-end): Match Postcript 3 like 2. 1994-10-26 22:51:08 +00:00
Richard M. Stallman
a461b8e01e (fill-individual-paragraphs): Avoid infinite loop
if mailp is set and no message was yanked.
1994-10-26 09:32:04 +00:00
Richard M. Stallman
e8649704b1 (ispell-grep-command, ispell-look-command): Don't specify directory. 1994-10-25 06:10:26 +00:00
Richard M. Stallman
22378c0edb (latex-mode): Recognize \item etc. that have no arg
because only a comment follows.
1994-10-23 20:39:25 +00:00
Richard M. Stallman
c5928db298 (texinfo-no-refill-regexp): Recognize @ifhtml, @html.
(texinfo-format-ifhtml, texinfo-format-html): New functions.
(texinfo-format-enddots): New function.
1994-10-16 01:34:57 +00:00