Commit graph

259 commits

Author SHA1 Message Date
Karl Berry
6380e5a709 quote file name arg passed shell (from olive lin) 2005-03-29 14:56:14 +00:00
Eli Zaretskii
3356ce3b56 (tex-view): If tex-shell process is not running, restart it. 2005-03-19 14:45:20 +00:00
Stefan Monnier
6ecedb401f (tex-font-lock-keywords-3): #n is atomic. 2005-02-24 15:34:34 +00:00
Kim F. Storm
bf247b6ed0 Change release version from 21.4 to 22.1 throughout.
Change development version from 21.3.50 to 22.0.50.
2005-02-09 15:50:47 +00:00
Richard M. Stallman
053be11a88 Comment change. 2005-01-17 23:49:20 +00:00
Steven Tamm
4042dc2593 * textmodes/tex-mode.el (tex-start-shell): Adding -i to the
tex-shell cause to force interactivity when using pipes.
2005-01-17 17:32:30 +00:00
Stefan Monnier
e67064e2c6 (latex-backward-sexp-1): Handle the special case of \end{verbatim}. 2004-12-11 22:00:38 +00:00
Stefan Monnier
35dccc6287 (tex-validate-region): Obey syntax-table text properties. 2004-12-03 22:22:24 +00:00
Markus Rost
034a48f4d3 (tex-main-file): Add a compatibility with AUCTeX. 2004-12-01 04:08:34 +00:00
Stefan Monnier
b119fdd59d (tex-font-lock-keywords-1): Fix up the spurious
verbatim face on the \ of \end{verbatim}.
2004-10-25 20:35:24 +00:00
Stefan Monnier
13376c7830 (tex-compilation-parse-errors): Don't output messages. 2004-10-21 22:26:06 +00:00
Stefan Monnier
1f4cc03432 (tex-font-lock-append-prop): New fun.
(tex-font-lock-keywords-2): Use it.
(tex-font-lock-syntactic-keywords): Fix the `verbatim' treatment.
2004-10-10 01:51:34 +00:00
Stefan Monnier
dd166d5fa1 (tex-dvi-view-command): Use `yap' on w32.
(tex-font-lock-keywords-1): Add url and nolinkurl for args with `_'.
(latex-block-args-alist): Add minipage and picture.
(latex-block-body-alist): Use reftex-label if enabled.
(latex-insert-block): Don't insert a \n if not necessary.
(tex-compile-commands): Make sure dvips doesn't send to printer.
(tex-compile-default): Handle the case where no executable is found.
(latex-noindent-environments): New var.
(latex-find-indent): Use it.  Take an empty line as an arg-breaker.
If tex-indent-allhanging is non-nil, make sure we only align for macros
at beginning of line.
2004-10-03 19:53:23 +00:00
John Paul Wallington
f04232c3c2 (tex-validate-buffer): Use distinct strings rather than
programatically constructing message.
2004-08-30 19:05:10 +00:00
John Paul Wallington
003274a057 (tex-validate-buffer): Distinguish between 0, 1, and many mismatches.
(tex-start-shell): Use `set-process-query-on-exit-flag'.
2004-08-25 19:05:24 +00:00
Stefan Monnier
cc9f53769f (tex-compilation-parse-errors): Save excursion in source buffer. 2004-05-19 00:24:15 +00:00
Stefan Monnier
3f2c97ea21 (tex-shell): Set error parsing function here.
(tex-send-tex-command): Rather than here.
(tex-compilation-parse-errors): Simplify.
2004-03-18 20:26:01 +00:00
Richard M. Stallman
21749f14c7 (latex-find-indent): Avoid error at end of buf. 2004-01-03 21:15:28 +00:00
Stefan Monnier
d9cbee570f (latex-mode): `tex-trailer' is not a regexp. 2003-11-27 23:05:42 +00:00
Stefan Monnier
e70ff1af70 (tex-compile-commands): Add yap' and ps2pdf'.
(tex-main-file): Don't add .tex if the extension is already present.
(tex-uptodate-p): Don't recurse indefinitely in the presence of symlinks.
2003-10-30 22:29:47 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Dave Love
4372483c63 (tex-dvi-view-command): Fix quoted quotes. 2003-08-05 15:07:38 +00:00
Richard M. Stallman
96c0d9e953 (tex-main-file): Use with-no-warnings. 2003-07-07 20:52:27 +00:00
Stefan Monnier
bf4ec22239 (tex-compile-commands): Handle tex-start-commands like tex-start-tex does. 2003-06-14 19:56:50 +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
8a591d5242 (tex-mode-syntax-table, tex-latex-indent-syntax-table):
Don't use easy-mmode-defsyntax.
2003-06-08 00:49:38 +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
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
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
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
Richard M. Stallman
602503c5e2 (tex-print): Call shell-quote-argument on the file name. 2002-12-22 22:03:22 +00:00
Stefan Monnier
7afecb99cb (latex-standard-block-names): Rename from standard-latex-block-names.
(tex-font-lock-keywords-1): Add providecommand, renewenvironment, and
renewtheorem.  Highlight \it and \bf separately since they may overlap.
(tex-font-lock-suscript, tex-font-lock-unfontify-region): New funs.
(tex-font-lock-keywords-3, tex-verbatim-environments)
(tex-font-lock-syntactic-keywords): New vars.
(superscript, subscript, tex-verbatim-face): New faces.
(tex-font-lock-syntactic-face-function): Handle \verb construct.
(tex-common-initialization): Update font-lock-defaults setting.
(tex-insert-braces): Make it into a skeleton.
(latex-fill-nobreak-predicate): Don't break after \.
(latex-insert-block): Rename from tex-latex-block.
(latex-down-list): Use tex-mode-syntax-table when skipping parens
rather than the indentation syntax-table.
(latex-close-block): Rename from tex-close-latex-block.
(latex-split-block): New fun.
(latex-indent): Don't indent inside a verbatim block.
(latex-find-indent): Stick \begin{verbatim} to the margin.
2002-11-08 16:56:57 +00:00
Richard M. Stallman
746c30e216 (tex-dvi-view-command): Value can be sexp.
Initialize to a suitable sexp.
(tex-view): Evaluate tex-dvi-view-command and use the value.
2002-11-06 05:05:47 +00:00
Stefan Monnier
5ae0d69704 (tex-common-initialization): comment-start-skip shouldn't match on next line. 2002-11-02 02:16:36 +00:00
Stefan Monnier
95a045bd7f Set encoding to utf-8.
(tex-start-options): Make it into always-a-string.
Remove silly custom options that are covered by the other var.
(tex-start-commands): Fix docstring.
(tex-open-quote, tex-close-quote): Add options.
(tex-command): Provide default.
(tex-font-lock-keywords-1): Highlight $$...$$.
(tex-font-lock-keywords-2): Fix latin-1 chars.
(tex-mode-map): Remove redundant \t binding.
(tex-mode): Add `subsection' and `newcommand' to known latex cmds.
(latex-mode): Use add-hook for fill-nobreak-predicate.
(tex-common-initialization): Set indent-tabs-mode to nil.
(tex-insert-quote): Undo magic if invoked twice in a row.
(latex-fill-nobreak-predicate): Don't use narrowing.
(tex-latex-block): Don't cons uselessly.
(tex-last-unended-begin): Signal user-friendlier error.
(tex-goto-last-unclosed-latex-block): Don't catch signal.
(tex-start-tex): Switch order of tex-start-options and
tex-start-commands to make it obey docstrings.
2002-07-14 20:39:18 +00:00
Sam Steingold
7abc9addc7 (tex-file): call save-some-buffers' before tex-main-file' 2002-07-01 19:55:45 +00:00
Colin Walters
52ab062c96 (tex-validate-buffer): Use `occur-revert-arguments' instead of setting
`occur-nlines' and `occur-buffer'.  Don't test for `input-pending-p'
in loop.  Set text property `occur-target' instead of `occur'.
2002-05-01 05:22:08 +00:00
Richard M. Stallman
9e0ad27acd (tex-start-options): New variable.
(tex-start-commands): New variable.
(tex-start-options-string): Variable deleted.
(tex-start-tex): Use tex-start-options and tex-start-commands,
not tex-start-options-string.
(tex-command): Doc fix.
2002-04-26 21:19:24 +00:00
Stefan Monnier
cb30255a83 (tex-guess-main-file): Handle the case where one of the buffers is narrowed. 2002-03-04 01:39:29 +00:00
Andreas Schwab
1b741d9e27 (tex-font-lock-keywords-2): Require non-letter after specials. 2002-02-15 17:06:58 +00:00
Pavel Janík
5553563924 Some fixes to follow coding conventions in files maintained by FSF. 2001-07-15 16:15:35 +00:00
Eli Zaretskii
a865de85da (tex-validate-buffer): Add help-echo to mouse-highlighted text. 2001-06-17 11:25:12 +00:00
Stefan Monnier
8908cf40d5 (latex-find-indent): Handle the BOBP case. 2001-05-31 02:26:43 +00:00
Sam Steingold
b781e739bf fix live process/dead buffer bub on w32 2001-05-29 15:47:01 +00:00
Stefan Monnier
15ca8de7fd (tex-mode-syntax-table): Add ^.
(tex-font-lock-keywords-1, tex-font-lock-keywords-2):
Allow spaces around macro arguments.
(tex-mode-map): Inherit from text-mode-map, but rebind \t to
indent-for-tab-command.
(latex-mode-map, plain-tex-mode-map): New keymaps.
Inherit from tex-mode-map.
(tex-common-initialization): Don't setup the keymap any more
since it's now done right by define-derived-mode.
(latex-mode): Set skeleton-end-hook to nil.
(latex-skeleton-end-hook): Remove.
(tex-latex-block, latex-insert-item): Simplify.
(latex-syntax-after): Use following-char rather than char-after.
(tex-discount-args-cmds, tex-count-words): New functions.
2001-05-25 22:08:58 +00:00
Sam Steingold
713f7b15b0 tex-shell-running: Check the process buffer too 2001-02-15 21:08:24 +00:00
Stefan Monnier
07c16ec439 (tex-start-shell): Obey shell-file-name.
(tex-main-file, tex-file): Simplify.
(tex-generate-zap-file-name): Use subst-char-in-string.
(tex-strip-dots): Remove.
2000-12-02 21:57:41 +00:00
Stefan Monnier
1598a9616b (tex-font-lock-keywords-1): Fix ARG regexp to skip quoted braces.
(tex-font-lock-keywords-2): Fix ARG regexp to skip quoted braces.
Remove `bf' and `it' from `bold' and `italic' (they were wrong and
are (correctly) handled separately).
Remove `caption' and `footnote' from `citations': they contain text.
Don't highlight `textmd', `texttt' and `textrm' with bold-italic.
(latex-skeleton-end-hook): New function.
(latex-mode): Use it.
(tex-start-tex-marker): Remove.
(tex-send-tex-command): Don't set tex-start-tex-marker.
(tex-error-parse-syntax-table): New var.
(tex-compilation-parse-errors): Use it.
Ignore tex-start-tex-marker.  Don't bother with marker-position.
(tex-validate-buffer): Don't bother with marker-position.
2000-11-22 21:38:04 +00:00
Stefan Monnier
ae523e577e (tex-mode-map): Remove `tex-compile', not ready for prime-time. 2000-11-14 11:50:40 +00:00
Stefan Monnier
bdbd960600 (tex-font-lock-keywords-1): Use `keep'
rather than `prepend' and add an interesting comment.
(tex-math-face, tex-font-lock-syntactic-face-function):
New face and function to use it.
(tex-define-common-keys, tex-mode-map): Use menu-item rather
than `menu-enable' symbol property.
(tex-mode-map): Bind {, (, [ and $ to skeleton-pair-insert-maybe.
(tex-mode): Add some latex-mode commands for auto-selection.
Use tex-font-lock-syntactic-face-function.
(tex-insert-quote): Simplify.
(tex-shell): New mode.
(tex-start-shell): Use it.
(tex-shell-proc, tex-shell-buf): New functions.
(tex-send-command): Use it.
(tex-main-file): Fix the meaning of the new arg REALFILE.
(tex-send-tex-command): New function split from `tex-start-tex'.
Set compilation-last-buffer and compilation-parsing-end.
2000-11-14 11:41:51 +00:00