Commit graph

80 commits

Author SHA1 Message Date
Gerd Moellmann
48bb9196de (texinfo-mode): Use backward-paragraph
as font-lock-beginning-of-syntax-function in font-lock-defaults.
2001-01-19 16:49:04 +00:00
Gerd Moellmann
14ec09d77e (texinfo-mode): Set fill-column to 70. 2000-12-27 16:12:51 +00:00
Stefan Monnier
a11609d8c3 Move the (require 'cl) to the front of the
file where it's more visible.
(texinfo-filter, texinfo-chapter-level-regexp): New variables
moved from texnfo-upd.el (for AUCTeX's compatibility, originally).
(texinfo-mode): Use texinfo-chapter-level-regexp for page-delimiter.
(texinfo-inside-macro-p): Only catch `scan-error's.
(texinfo-inside-env-p): Make better use of the match info.
(texinfo-insert-quote): Collapse calls to `texinfo-inside-macro-p'.
(texinfo-insert-@end): Slight re-organization.
Also remove useless `looking-at' call.
2000-12-08 16:31:50 +00:00
Dave Love
08f9e2545c Require tex-mode when compiling.
(texinfo-update-node): Doc fix.
(texinfo-imenu-generic-expression): Add @anchor.
(texinfo-font-lock-keywords): Add @uref.
(texinfo-inside-macro-p): Don't use ignore-errors.
(texinfo-insert-quote): Match more contexts.
2000-12-06 19:34:15 +00:00
Eli Zaretskii
9768eaa75d (texinfo-open-quote, texinfo-close-quote):
New defcustoms.
(texinfo-insert-quote): Don't call tex-insert-quote, to avoid
autoloading tex-mode; instead, do the same manually.  Use
texinfo-open-quote and texinfo-close-quote.  Insert literal quote
with numeric argument.  Docstring fix.
(toplevel): Require cl when compiling.
2000-12-02 15:33:30 +00:00
Eli Zaretskii
4fb0a34c57 (texinfo-insert-@uref): Renamed from
texinfo-insert-@url.
(texinfo-insert-@url): A defalias for texinfo-insert-@uref.
(texinfo-mode-map): Bind "C-c C-c u" to texinfo-insert-@uref.
2000-11-15 13:57:50 +00:00
Stefan Monnier
d7fa3319f5 (texinfo-block-default): New var.
(texinfo-insert-block): Use it.  Insert a newline if needed.
2000-11-10 11:55:06 +00:00
Stefan Monnier
17ff7a277a (texinfo-chapter-level-regexp): Remove.
(texinfo-mode): Hard code texinfo-chapter-level-regexp.
2000-11-06 15:49:33 +00:00
Stefan Monnier
92819e90bb (texinfo-section-list): Change majorheading to 2.
(texinfo-font-lock-syntactic-keywords): Use syntax-strings.
2000-11-06 14:44:17 +00:00
Stefan Monnier
07e77e3628 Update copyright and fix typo. 2000-10-10 19:35:00 +00:00
Stefan Monnier
003dd63517 (texinfo-mode-menu): Add an explicit shortcut for update all. 2000-10-03 18:33:10 +00:00
Stefan Monnier
28c7697169 (texinfo-heading-face): Forgot the var def. 2000-10-03 18:29:54 +00:00
Stefan Monnier
eedd281265 (texinfo-font-lock-syntactic-keywords):
Add regexp for @ignore ... @end ignore.
(texinfo-heading-face): New face.
(texinfo-font-lock-keywords): Use it.
(texinfo-mode-menu): New menu.
(texinfo-inside-macro-p, texinfo-inside-env-p, texinfo-insert-quote):
New functions.
(texinfo-mode-map): Bind " to insert-quote and M-RET to insert-@item.
(texinfo-section-types-regexp, texinfo-section-level-regexp)
(texinfo-subsection-level-regexp, texinfo-subsubsection-level-regexp):
Remove declaration.
(texinfo-show-structure): Use outline-regexp and texinfo-section-list.
2000-10-01 00:30:52 +00:00
Gerd Moellmann
8bd88d5452 (texinfo-mode): Prevent filling lines
starting with `@def' or `@multitable', in addition to ones
specified by the user in auto-fill-inhibit-regexp.
2000-09-25 11:16:43 +00:00
Gerd Moellmann
af9eaa5eb3 (texinfo-insert-@email)
(texinfo-insert-@emph, texinfo-insert-@quotation)
(texinfo-insert-@strong, texinfo-insert-@url): New functions.
(texinfo-mode-map): Add key bindings for them.
2000-04-17 15:23:08 +00:00
Stefan Monnier
e3721db120 (texinfo-mode-syntax-table): Add \n as comment-end.
(texinfo-font-lock-syntactic-keywords): New var.
(texinfo-font-lock-keywords): Remove comment regexp.
(texinfo-insert-block): New function.
(texinfo-mode-map): Add C-c C-o -> texinfo-insert-block.
(texinfo-mode): Use define-derived-mode.
Tweak comment-start-skip and font-lock-defaults.
Use regexp-opt for outline-regexp.
(texinfo-environments): New var.
(texinfo-environment-regexp): Use regexp-opt and texinfo-environments.
2000-04-17 11:45:39 +00:00
Gerd Moellmann
d407456c9e (texinfo-version): Variable and function
removed.
2000-03-10 20:07:01 +00:00
Eli Zaretskii
0cf452f333 (texinfo-font-lock-keywords): Add uref, command, option, env and sc. 1999-09-14 10:15:51 +00:00
Karl Heuer
5762abecd3 Fix maintainer address. 1999-08-16 04:04:27 +00:00
Richard M. Stallman
e2918bbf0f (texinfo-environment-regexp): Add the def... constructs. 1999-02-09 00:34:17 +00:00
Dave Love
c16273442a (texinfo-font-lock-keywords): Match @ref. 1999-01-22 14:03:06 +00:00
Andreas Schwab
3654a3512a (texinfo-tex-buffer): Bind
tex-start-options-string to empty string.
(texinfo-tex-region): Use texinfo-tex-trailer as documented.
1998-12-14 10:17:50 +00:00
Karl Heuer
405dadec66 (texinfo-show-structure): Bind inhibit-read-only. 1998-09-25 17:01:52 +00:00
Richard M. Stallman
7408bff1a5 (texinfo-environment-regexp): Add smalldisplay and smallformat. 1998-07-06 00:07:54 +00:00
Simon Marshall
b6908641f2 *** empty log message *** 1998-02-20 14:55:48 +00:00
Dave Love
c0b08eb017 Use imenu-case-fold-search. 1997-12-12 17:10:08 +00:00
Richard M. Stallman
80216a47a4 (defgroup, defcustom): Add Emacs 19 compatibility definitions. 1997-08-30 19:48:14 +00:00
Richard M. Stallman
5ed1493302 (texinfo-mode): Turn off adaptive-fill-mode. 1997-08-24 03:15:05 +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
cd482e0573 Add defgroup's; change use defcustom for user vars. 1997-04-12 02:51:38 +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
9064ef036e (texinfo-font-lock-keywords): Add url', email'. 1996-12-08 08:22:59 +00:00
Richard M. Stallman
491f6f0f3d (texinfo-section-types-regexp)
(texinfo-section-level-regexp, texinfo-subsection-level-regexp)
(texinfo-subsubsection-level-regexp): Add defvars.

(texinfo-section-list): New variable.
(texinfo-outline-level): New function.
(texinfo-mode): Use them.
1996-03-05 21:42:17 +00:00
Richard M. Stallman
b14f720b0c (texinfo-font-lock-keywords): Fixed regexp for @end' and @item'. 1996-03-03 19:42:09 +00:00
Simon Marshall
dd7366bf5d Tweaked command regexp. 1996-01-25 10:40:02 +00:00
Erik Naggum
b578f267af Update FSF's address. 1996-01-14 07:34:30 +00:00
Karl Heuer
9687a0514b (texinfo-master-menu): Doc fix. 1996-01-04 23:50:14 +00:00
Richard M. Stallman
be01074898 Comment change. 1995-10-30 17:35:01 +00:00
Simon Marshall
32fad95674 Rewrite texinfo-font-lock-keywords; don't fontify syntactically. 1995-08-10 15:13:43 +00:00
Karl Heuer
e4cfb70d5c (texinfo-imenu-generic-expression): Var defined.
(texinfo-mode): Set imenu-generic-expression.
1995-07-28 00:24:14 +00:00
Richard M. Stallman
68621a8f13 (texinfo-environment-regexp): Allow whitespace at BOL. 1995-07-27 07:40:22 +00:00
Richard M. Stallman
133d010c2d (texinfo-environment-regexp): Add @ifhtml, @html. 1995-06-18 16:45:20 +00:00
Simon Marshall
7ac268120e Put comments first in texinfo-font-lock-keywords. 1995-06-08 14:29:13 +00:00
Richard M. Stallman
f4f1c130d9 (texinfo-mode-map): Delete C-c ] binding. 1995-05-02 01:44:22 +00:00
Boris Goldowsky
6e9f6940cc (texinfo-mode): Remove ^ from paragraph-start & paragraph-separate. 1995-03-02 15:48:20 +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
Simon Marshall
2ab3bf87ff * texinfo.el: (texinfo-mode): Set font-lock-defaults. 1994-10-12 09:21:47 +00:00
Richard M. Stallman
0ece5f43e3 (texinfo-font-lock-keywords): New variable.
(texinfo-mode): Set font-lock-keywords locally.
1994-10-07 10:05:49 +00:00
Richard M. Stallman
0fe44016cd (texinfo-show-structure): Fix subsubsection indent amount. 1994-05-12 18:04:36 +00:00
Richard M. Stallman
a1017d3916 (texinfo-environment-regexp): Split lines.
Add def..., ifset, ifclear.
(texinfo-show-structure): Fix typo.
1994-05-10 06:39:04 +00:00