1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-26 10:49:33 +00:00
Commit Graph

1306 Commits

Author SHA1 Message Date
Stefan Monnier
bf4ec22239 (tex-compile-commands): Handle tex-start-commands like tex-start-tex does. 2003-06-14 19:56:50 +00:00
Juanma Barranquero
4a15fdc6c8 (texinfo-format-scan): Silence `whitespace-cleanup'. 2003-06-12 22:09:06 +00:00
Stefan Monnier
5e56fb5380 (tex-search-noncomment): New macro.
(tex-last-unended-begin, tex-next-unmatched-end): Use it
so we don't get confused by \begin and \end in comments.
(tex-compile): Change dir before calling tex-compile-default.
2003-06-09 17:42:22 +00:00
Stefan Monnier
ffa5b3a3ff (texinfo-enable-quote-macros): Fix thinko.
(texinfo-insert-@table): Remove unused arg.
(texinfo-show-structure): Remove unused var `source-buffer'.
2003-06-08 01:17:04 +00:00
Stefan Monnier
8a591d5242 (tex-mode-syntax-table, tex-latex-indent-syntax-table):
Don't use easy-mmode-defsyntax.
2003-06-08 00:49:38 +00:00
Juanma Barranquero
e99add213b (table-cell-horizontal-chars): Renamed from table-cell-horizontal-char. Now a
string value instead of a character.  ?= is allowed for horizontal boundary as
well as ?-.
(table-command-remap-alist, table-command-list): Changed defconst to defvar
because the value is modified.
(table-insert, table-insert-row, table-insert-column, table-recognize)
(table-recognize-region, table-widen-cell, table-span-cell)
table-split-cell-vertically): Change due to table-cell-horizontal-chars.
(table--cell-horizontal-char-p): New function.
(table--generate-source-scan-lines, table-delete-row, table-delete-column)
(table--spacify-frame, table--find-row-column, table--probe-cell-left-up)
(table--probe-cell-right-bottom, table--probe-cell): Change due to
table-cell-horizontal-chars.
From David Abrahams <dave@boost-consulting.com>
2003-06-05 20:07:16 +00:00
Stefan Monnier
59444a9ccc (sgml-parse-tag-backward): Try and detect
when we're starting from within a tag.
(sgml-get-context): When called from inside a tag, do something useful.
Rename the arg now that it's never used for `full' context anymore.
(sgml-calculate-indent): Make `lcon' an argument.
Return nil when we don't know what to do.
If the initial lcon turns out to be wrong, try again.
(sgml-indent-line): If sgml-calculate-indent returns nil, don't indent.
2003-06-05 01:14:23 +00:00
Stefan Monnier
dd310c45a0 (bibtex-member-of-regexp, bibtex-assoc-of-regexp, bibtex-format-entry)
(bibtex-find-entry, bibtex-autokey-demangle-name, bibtex-string-files-init)
(bibtex-mode): Fix up regexp usage and use match-string.
2003-06-02 22:41:50 +00:00
Stefan Monnier
7fbf4804e6 Long overdue merge.
Don't require `compile' since it seems unnecessary.
For all internal variables and functions the docstring comments have
been converted into proper docstrings
(bibtex-maintainer-address, bibtex-maintainer-salutation)
(bibtex-version): Remove support for bug reporting.
(bibtex-field-delimiters, bibtex-entry-delimiters)
(bibtex-sort-ignore-string-entries, bibtex-maintain-sorted-entries)
Replace make-variable-buffer-local by make-local-variable for
(bibtex-entry-format): New tag `required-fields'.
(bibtex-maintain-sorted-entries): New var.
(bibtex-sort-entry-class, bibtex-sort-entry-class-alist): New vars.
(bibtex-predefined-month-strings, bibtex-predefined-strings):
Make into alists with pairs (abbreviation expansion).
(bibtex-autokey-titleword-change-strings)
(bibtex-autokey-transcriptions): Make into alists.
Add new replacement pairs.
(bibtex-autokey-use-crossref): New var.
Replace bibtex-autokey-year-use-crossref-entry because updated code
for autokey generation handles crossrefs independently of
particular fields.
(bibtex-reference-key, bibtex-mode-syntax-table):
Remove = because it can't be part of a string's key.
(bibtex-complete-key-cleanup): New var.
(bibtex-complete): Merge bibtex-complete-string and bibtex-complete-key
into it (and bind to M-tab).
(bibtex-valid-entry-re, bibtex-any-valid-entry-re)
(bibtex-valid-entry-whitespace-re, bibtex-empty-field-re)
(bibtex-quoted-string-re): New vars.
(bibtex-field-name-for-parsing): Don't make-variable-buffer-local.
(zmacs-regions): Declare to quieten the byte-compiler.
(bibtex-comment-start): Don't include the space.
(bibtex-font-lock-syntactic-keywords): New var.
(bibtex-font-lock-keywords): Remove the entry for @Comment.
(bibtex-parse-field-string): Merge the functionality of
bibtex-parse-field-string-braced, bibtex-parse-quoted-string and
bibtex-parse-field-string-quoted.
(bibtex-search-forward-field-string): Remove.
(bibtex-parse-association): Use when.
(bibtex-parse-field-name): Use when.
(bibtex-parse-field-text): Use when and cond.
(bibtex-parse-field): Use let.
(bibtex-search-forward-field, bibtex-search-backward-field):
Make bound optional, use let, setq, and cddr.
(bibtex-start-of-field, bibtex-start-of-name-in-field)
(bibtex-end-of-name-in-field): Use nth.
(bibtex-name-in-field, bibtex-text-in-field-bounds)
(bibtex-text-in-field, bibtex-type-in-head, bibtex-key-in-head)
(bibtex-text-in-string): New functions.
(bibtex-reference-key-in-string): New fun.  Merge of
bibtex-start-of-reference-key-in-string and
bibtex-end-of-reference-key-in-string.
(bibtex-parse-string-prefix): Use let and when.
(bibtex-parse-string-postfix): Use when.
(bibtex-search-forward-string, bibtex-search-backward-string):
Use save-excursion and setq.
(bibtex-member-of-regexp): Use let.
(bibtex-assoc-of-regexp): Use caar und let.
(bibtex-skip-to-valid-entry): Return buffer position.
(bibtex-map-entries): Use save-excursion.
(bibtex-progress-message): Simplify.
(bibtex-search-entry): Use skip-chars-forward, when, save-match-data.
(bibtex-move-outside-of-entry): Handle the case that point is before
first entry.
(bibtex-enclosing-field): Use save-excursion, when.
(bibtex-format-field-delimiters): Merge into bibtex-format-entry.
(bibtex-enclosing-entry-maybe-empty-head): Simplify.
(bibtex-format-entry): Simplify.  Handle new tag required-fields of
bibtex-entry-format.
(bibtex-autokey-abbrev): Accept negative values of len.
(bibtex-autokey-get-field, bibtex-autokey-demangle-title): New funs.
(bibtex-autokey-get-namefield, bibtex-autokey-get-namelist)
(bibtex-autokey-get-yearfield-digits, bibtex-autokey-get-yearfield)
(bibtex-autokey-get-titlestring): Remove.
(bibtex-autokey-get-names): Simplify.
(bibtex-autokey-get-titles): Rename to bibtex-autokey-get-title.
(bibtex-autokey-demangle-name): Simplify, avoid error messages.
(bibtex-generate-autokey): Simplify.
(bibtex-parse-keys): Simplify, use push.
(bibtex-parse-strings): New fun similar to bibtex-parse-keys.
(bibtex-string-files-init): New fun.
(bibtex-parse-buffers-stealthily): Use bibtex-parse-keys,
bibtex-string-files-init and bibtex-parse-strings.
(bibtex-complete): Rename to bibtex-complete-internal, use push,
bibtex-reference-key-in-string, no sorting.
(bibtex-complete-string-cleanup): New fun, displays expansion of
completed strings.
(bibtex-choose-completion-string): New fun.  Required for
choose-completion-string-functions.
(bibtex-do-auto-fill): Remove.  Set fill-prefix in bibtex-mode.
(bibtex-pop): Simplify.
(bibtex-mode): Move setting of bibtex-string to bibtex-parse-strings.
Set choose-completion-string-functions.
(bibtex-print-help-message,bibtex-make-field, bibtex-end-of-entry)
(bibtex-count-entries): Simplify.
(bibtex-entry-index, bibtex-lessp): New funs for generalized sorting
scheme of indices, see bibtex-maintain-sorted-entries.
(bibtex-sort-buffer): Use bibtex-lessp for sorting.
(bibtex-find-crossref, bibtex-find-entry): New funs.
(bibtex-find-entry-location): Rename to bibtex-prepare-new-entry, use
bibtex-lessp, Simplify.
(bibtex-validate): Simplify.  Fixe bug of internal variable
questionable-month.
(bibtex-remove-OPT-or-ALT): Use when.
(bibtex-remove-delimiters, bibtex-kill-field, bibtex-kill-entry)
(bibtex-clean-entry, bibtex-fill-entry, bibtex-reformat): Simplify.
(bibtex-convert-alien): Use deactivate-mark rather than the
non-existent bibtex-mark-active variable.
(bibtex-complete-string, bibtex-complete-key): Merge into new
`smart' defun bibtex-complete.
(bibtex-String): Update for new sorting scheme, distinguish empty and
non-empty key strings.
2003-06-02 22:30:09 +00:00
Juanma Barranquero
5e046f6d57 Moved from lisp/. 2003-05-30 23:31:15 +00:00
Juanma Barranquero
3af3f5fa99 Moved to lisp/. 2003-05-30 23:29:42 +00:00
Juanma Barranquero
db47d2ab7a Moved to obsolete/. 2003-05-30 23:24:41 +00:00
Stefan Monnier
8084f5d87c (latex-block-args-alist, latex-block-body-alist): New vars.
(latex-insert-block): Use them.
(tex-string-prefix-p): New fun.
(tex-guess-main-file): Use it to detect when the main file
is in a parent directory.
(tex-main-file): Try to find a main-file in parent directories.
(tex-compile-default): Don't use `gv' on pdf files just because
`gv' was used recently on a ps file.  Remove unused arg `dir'.
Reuse a previous command as-is if it applied to the same file.
(tex-compile): Use the right file name when file is not in dir.
2003-05-30 18:52:46 +00:00
Stefan Monnier
ad2feb0890 (refill-adjust-ignorable-overlay): Don't hardcode pint-min == 1.
(refill-fill-paragraph-at): Use a more robust method to detect
when the paragraph is after point.  Remove unused var `fill-pfx'.
2003-05-30 18:28:16 +00:00
Richard M. Stallman
8b4703c468 (refill-fill-paragraph-at): Avoid refilling the following paragraph.
(refill-doit): Doc fix.
2003-05-28 11:30:48 +00:00
Richard M. Stallman
d320a41dbf (repunctuate-sentences): New function. 2003-05-23 12:46:38 +00:00
Stefan Monnier
4d170362e6 Summary: MIME support added for e-mail processing that
skips encoded regions.  Allow user to skip saving Fcc messages with
large attachments.  Fixed region skipping bug with multi-line
comments - e.g.  tex $ regions spanning multiple lines.
Added support for postscript and uuencoded regions.
Redundant dictionary file names purged.
Dictionary definition field name changed from "Character Set"
to "Coding System".  Fixed bug in reloading dictionaries.
Modified headers to reflect new version.  XEmacs menu now adds
customize item.
(ispell-check-version): No longer an aliased function.
Returns library path if not called interactively.
Variable `temporary-file-directory' protected if not loaded.
(check-ispell-version): Now the alias for `ispell-check-version'.
(ispell-message-fcc-skip): New variable that determines if and when
to query about saving Fcc copy of message if an attachment is large.
(ispell-skip-html): Declared buffer-local.
(ispell-local-dictionary-alist): Docstring expanded.
Tag name changed from "Character Set" to "Coding System".
(ispell-dictionary-alist-1): Removed redundant command-line option to
load brasileiro, british, and castellano dictionary files.
(ispell-dictionary-alist-2): Removed redundant command-line option to
load czech dictionary file.
(ispell-dictionary-alist-3): Moved francais-tex here.
(ispell-dictionary-alist-4): Removed german and german8 dictionaries.
The deutsch ones are the correct definitions.  `nederlands'
and `nederlands8' dictionaries moved here.
(ispell-dictionary-alist-5): `polish' and `portugues' dictionaries
moved here.  Removed redundant command-line option to `norsk'
and `portugues'.
(ispell-dictionary-alist-6): Removed redundant command-line option to
load `russian' and `slovak' dictionary files.
(ispell-dictionary-alist): Tag name changed from "Character Set" to
"Coding System".
(ispell-version): Updated to 3.6.
(ispell-library-directory): Calls non-deprecated function.
(ispell-valid-dictionary-list): New function returning all valid
dictionaries on machine.
(ispell-checking-message): Documentation string improved.
(ispell-skip-region-alist): Added uuencoded and postscript region
skipping.  Improved http/e-mail/file regexp to not match `/.\w'.
(ispell-html-skip-alists): New variable for html region support.
(ispell-send-string): Removed redundant xemacs check.
(ispell-word): Fix spelling error in documentation string, added
extent information to support highlighting in ispell-minor-mode.
(ispell-command-loop): Disable horizontal scrollbar in XEmacs
choices buffer.
(ispell-show-choices): Directly select `choices-window'.
(ispell-help): Use default buffer size for electric help.
(ispell-adjusted-window-height): Correct for xemacs detection.
(ispell-start-process): Don't double specify dictionary file name.
(ispell-init-process): Set `ispell-library-path' each call.
(ispell-change-dictionary): Now only completes valid dictionaries.
(ispell-region): Add support for MIME region skipping and Fcc
message query for large attachments.
(ispell-begin-skip-region-regexp): Add documentation string.
Added message support and cleaned up code for generic and html regions.
(ispell-begin-skip-region): Function is now requires alist argument.
(ispell-begin-tex-skip-regexp): Added comments and support
improved html and message regions.
(ispell-skip-region-list): New function for MIME and region skipping.
(ispell-tex-arg-end): Add documentation string.
(ispell-ignore-fcc): New function to query saving Fcc message.
(ispell-skip-region): Calculate alist for key match dynamically,
html skipping pushed to alists.
(ispell-get-line): Add support for multi-line comment regions.
(ispell): Check that variables to continue spelling are bound.
(ispell-message-text-end): Postscript and uuencoded regions now
supported as MIME regions, rather than as end-of-message region.
(ispell-mime-multipartp): New function supporting MIME.
(ispell-mime-skip-part): New function supporting MIME.
(ispell-message): Add MIME support.
(ispell-buffer-local-parsing): Variable `ispell-skip-html' now local.
(ispell-buffer-local-dict): Fixed bug for detecting and reloading
new dictionary.
2003-05-22 21:34:00 +00:00
Stefan Monnier
75035a8056 (tex-compile-history, tex-input-files-re)
(tex-use-reftex, tex-compile-commands): New vars.
(tex-summarize-command, tex-uptodate-p, tex-executable-exists-p)
(tex-command-executable, tex-command-active-p, tex-compile-default)
New functions.
(tex-compile): New command.
(tex-mode-map): Bind it to C-c C-c.
2003-05-15 01:29:53 +00:00
Stefan Monnier
877d353af8 (xemacsp): Remove. Replace with (featurep 'xemacs).
(ispell-graphic-p): Inline and then remove.
(toplevel): Get rid of unnecessary loop.
(ispell-parse-output, ispell-complete-word): Replace (substring s 0 1)
with a call to aref.
(ispell-get-line): Remove unused arg `reg-end'.
(ispell-region): Update corresponding call.
2003-05-14 01:54:28 +00:00
Stefan Monnier
ea6a015d2e (reftex-select-with-char): Don't assume that point-min == 1. 2003-05-13 20:42:19 +00:00
Stefan Monnier
4a9699d8c8 (reftex-toc-visit-location):
Don't switch the current window if the new buffer is in another.
(reftex-toc): Don't assume that point-min == 1.
2003-05-13 20:41:45 +00:00
Stefan Monnier
6df92b6f79 Typo. 2003-05-13 20:40:31 +00:00
Stefan Monnier
bd31028ffc (reftex-what-macro): Don't assume that point-min == 1. 2003-05-13 20:40:11 +00:00
Stefan Monnier
cc311d2bbb (reftex-extract-bib-entries, reftex-extract-bib-entries-from-thebibliography):
New arg re-list.
(reftex-extract-bib-entries): Use ^ rather than \(\`\|[\n\r]\).
Use member-ignore-case.  Don't add unnecessary trailing \n.
(reftex-offer-bib-menu): Consolidate duplicated code from
reftex-extract-bib-entries and reftex-extract-bib-entries-from-thebibliography.
2003-05-13 20:39:27 +00:00
Stefan Monnier
b00453052c (sgml-namespace-re): New const.
(sgml-namespace-face): New face.
(sgml-font-lock-keywords-1): Use them.
2003-05-12 15:46:02 +00:00
Stefan Monnier
bca7a08bf6 (tex-mode-syntax-table): ~ is not whitespace.
(tex-guess-mode): Add `renewcommand'.
(tex-mode): Move the autoload so we get the correct docstring and usage.
2003-05-10 18:54:13 +00:00
Stefan Monnier
e3d2084cb1 (text-property-default-nonsticky): Add fill-space.
(fill-delete-newlines): Respect the new property.
(fill-newline): Use the property instead of leaving "spurious" spaces.
2003-04-30 21:01:05 +00:00
Stefan Monnier
9bcdf9a8fd (fill-region-as-paragraph): Fix "last line goes to fill-column+1" problem. 2003-04-21 16:22:08 +00:00
Stefan Monnier
a3d80d4a08 (latex-mode-map): Bind latex-split-block to C-c C-s.
(tex-font-lock-keywords-2): Comment out unused var `type'.
(tex-guess-mode): New name for old `tex-mode'.
(tex-mode): Make it a derived mode of text-mode.
(plain-tex-mode, latex-mode): Change parent from text-mode to tex-mode.
(tex-common-initialization): Don't setup syntax-table any more.
(tex-validate-buffer): Remove unused var `oend'.
Use with-current-buffer and line-beginning-position.
(tex-recenter-output-buffer): Remove unused var `old-buffer'.
(latex-indent): Return `noindent' if no indentation can happen.
(doctex-font-lock-^^A, doctex-font-lock-syntactic-face-function)
(doctex-font-lock-syntactic-keywords, doctex-font-lock-keywords)
(doctex-mode): New funs for DocTeX mode, derived from LaTeX mode.
2003-04-14 19:58:05 +00:00
Stefan Monnier
05670fa88b (fill-delete-newlines): Don't delete past TO. 2003-04-04 21:43:12 +00:00
Stefan Monnier
7d025c5562 (refill-fill-paragraph-at): Don't skip prefix since markers work right. 2003-04-04 21:02:36 +00:00
Stefan Monnier
79c117c0cd (refill-fill-paragraph-at): Undo last fix. 2003-04-04 21:01:44 +00:00
Stefan Monnier
ae3264647e (fill-paragraph): Don't skip prefix now that markers work right. 2003-04-04 20:57:54 +00:00
Stefan Monnier
51153542a5 (fill-delete-newlines): Remove trailing whitespace. 2003-04-04 20:56:10 +00:00
Stefan Monnier
29c1653c7a (fill-newline): Don't leave markers before the prefix. 2003-04-03 00:53:49 +00:00
Stefan Monnier
657059d02f (refill-fill-paragraph-at): Don't preserve the trailing space since
fill.el doesn't remove it anymore.
(refill-mode): Reset fill-paragraph-function even if it was nil.
2003-04-02 23:57:17 +00:00
Stefan Monnier
dbe3ba524d (fill-delete-newlines): Don't add a trailing space. 2003-04-02 23:40:36 +00:00
Stefan Monnier
1eb29f50cb (fill-region-as-paragraph): Remove obsolete `save-restriction'.
Don't remove space at end of paragraph: it makes refill.el unusable.
(fill-paragraph, fill-comment-paragraph): Don't add newline at EOP.
2003-04-02 23:04:09 +00:00
Stefan Monnier
f412245b47 (texinfo-outline-level): Remove.
(texinfo-mode): Set outline-heading-alist instead.
(texinfo-section-list): Reorder for the needs of outline-heading-alist.
(texinfo-insert-block): Don't cons needlessly.
(texinfo-enable-quote-macros, texinfo-enable-quote-envs): New vars.
(texinfo-insert-quote): Use them.
2003-03-14 22:29:13 +00:00
Stefan Monnier
5748357975 (outline-level): Demote it to defvar.
(outline-heading-alist): Document extended semantics.
(outline-head-from-level): New fun.
(outline-promote, outline-demote): Use it.
(outline-show-heading): New fun.
(hide-sublevels, show-children): Use it together with outline-map-region.
(outline-get-next-sibling): Don't call outline-level at eob.
2003-03-14 21:43:53 +00:00
Stefan Monnier
21a3d3e7c9 (outline-mode-menu-bar-map): Add entries.
(outline-mode-prefix-map): Match new bindings to those of allout.
(outline-map-region): New fun.
(outline-map-tree): Remove.
(outline-promote, outline-demote): Apply to region if active.
Change the default to apply to the subtree.
(outline-move-subtree-up, outline-move-subtree-down): New funs.
(outline-invisible-p): Add optional `pos' argument.
(outline-next-visible-heading, outline-toggle-children): Use it.
(outline-get-next-sibling): Don't call outline-level at eob.
2003-03-13 18:15:07 +00:00
Kenichi Handa
cc4fe8d2d2 (sentence-end): Add Chinese and Japanese characters. 2003-02-24 04:50:59 +00:00
Juanma Barranquero
4fb8125073 (table-generate-source): Use ?\\ instead of space in "work in progress" message. 2003-02-18 11:17:11 +00:00
Juanma Barranquero
64bc2e83e5 (reftex-reference): Fix character constant. 2003-02-18 11:08:42 +00:00
Stefan Monnier
764e500228 (pages-directory-mode-map): New.
(pages-directory-map): Redefine as an varalias.
(pages-directory-mode): Use new map var and run mode hook.
(pages-directory-address-mode): Use define-derived-mode.
2003-02-11 00:44:08 +00:00
Stefan Monnier
6147e72553 (texinfo-format-iftex, texinfo-format-ifhtml)
(texinfo-format-ifplaintext, texinfo-format-tex, texinfo-format-html)
(texinfo-format-ifnotinfo, texinfo-format-titlepage)
(texinfo-format-titlespec, texinfo-format-ignore, texinfo-if-set)
(texinfo-if-clear): Use re-search-forward's return value.
(texinfo-sort-startkeyfun, texinfo-format-buffer-1)
(texinfo-format-region): Use line-{end,beginning}-position.
(texinfo-append-refill, texinfo-alias): Use match-string-no-properties.
2003-02-11 00:37:28 +00:00
Juanma Barranquero
c3c5cfdb93 (outline-visible): Add obsolescence declaration and remove redundant info from
docstring.
2003-02-05 23:15:41 +00:00
Juanma Barranquero
db95369be0 Trailing whitespace deleted. 2003-02-04 13:30:45 +00:00
Dave Love
78f886f224 (lookup-words): Fix last change. 2003-01-30 22:59:07 +00:00
Juanma Barranquero
12a382d45e (reftex-TeX-master-file): Use really the buffer file name if no other master
file is located.
2003-01-29 11:54:35 +00:00