Wishlist
********

   This is a list of projects for AUC TeX.  Bug reports and requests we
can not fix or honor right away will be added to this list.  If you have
some time for emacs lisp hacking, you are encouraged to try to provide a
solution to one of the following problems.  It might be a good idea to
mail me first, though.

   *  Filling messes up comments, but only at the end of the file.
     Reported by uergen Reiss <psy3022@rzbox.uni-wuerzburg.de>.

   * `C-c C-q C-e' doesn't work properly on nested itemize environments.
     Reported by  "Robert B. Love"  <rlove@raptor.rmNUG.ORG>.

   * One suggestion for AUC-TeX: I think that the font command C-c C-f
     C-r, which produces \textrm{} in a LaTeX file, should instead
     produce either \textrm{} or \mathrm{}, depending on whether one is
     in math mode or not. -- John Palmieri <palmieri@math.mit.edu>

   * A way to add and overwrite math mode entries in style files, and to
     decide where they should be.  Suggested by Remo Badii
     <Remo.Badii@psi.ch>.

   * Create template for (first) line of tabular environment.

   * I think prompting for the master is the intended behaviour.  It
     corresponds to a `shared' value for TeX-master.

     There should probably be a `none' value which wouldn't query for
     the master, but instead disable all features that relies on
     TeX-master.

     This default value for TeX-master could then be controled with
     mapping based on the extension.

   * `C-c '' should alway stay in the current window, also when it find
     a new file.

   * `LaTeX-fill-environment' does not indent the closing `\end'.

   * Rewrite `ltx-help.el' and put it in `latex.el'.  Fix also:
          From: Denby Wong <DnB@slip224.qlink.QueensU.CA>
          
           1) change documentation regarding where to get the
              latest version (at CTAN at pip.shsu.edu for me)
              under info/latex2e-help-texinfo/
          
           2) change or provide choice over which version to
              use.  There are three references to the info
              node "(latex)" in the file which should be
              "(latex2e)"  for the new file.
          
          From: Piet van Oostrum <piet@cs.ruu.nl>
          
          One of the annoying things of latex-help is that if you ask for \LARGE, you
          get \large if you have case-fold-search=t. This is really info's problem as
          it doesn't reset it for a search of the node, but it would be easy to stick
          a (let (case-fold-search) in latex-help.

   * It should be possible to insert a default preamble containing e.g.
     `usepackage' declarations, perhaps depending on the document class.

   * Multiple argument completion for `\bibliography'.  In general, I
     ought to make `,' special for these kind of completions.

   * Do not overwrite emacs warnings about existing auto-save files when
     loading a new file.

   * Suggest `makindex' when appropriate.

   * Maybe the regexp for matching a TeX symbol during parsing should be
     `"\\\\\\([a-zA-Z]+\\|.\\)"' --
     `<thiemann@informatik.uni-tuebingen.de>' Peter Thiemann.

   * AUC TeX should be able to parse LaTeX2e `.cls' files.  Here are
     the regexps by `<thiemann@informatik.uni-tuebingen.de>' Peter
     Thiemann.

               ("\\\\DeclareRobustCommand{?\\\\\\([a-zA-Z]+\\)}?\\[\\([0-9]+\\)\\]\
          \\[\\([^\]\\\\\n\r]+\\)\\]"
                (1 2 3) LaTeX-auto-optional)
               ("\\\\DeclareRobustCommand{?\\\\\\([a-zA-Z]+\\)}?\\[\\([0-9]+\\)\\]"
                (1 2) LaTeX-auto-arguments)
               ("\\\\DeclareRobustCommand{?\\\\\\([a-zA-Z]+\\)}?" 1 TeX-auto-symbol)
               ("\\\\DeclareFixedFont{?\\\\\\([a-zA-Z]+\\)}?"
                1 TeX-auto-symbol)
               ("\\\\Declare\\(Text\\|Old\\)FontCommand{?\\\\\\([a-zA-Z]+\\)}?"
                2 TeX-auto-symbol)
               ("\\\\DeclareMath\\(Symbol\\|Delimiter\\|Accent\\|Radical\\){?\\\\\\([a-zA-Z]+\\)}?"
                2 TeX-auto-symbol)
               ;;; it is also valid to declare just a single symbol, e.g. <,
               ;;; with \DeclareMathSymbol but it is not necessary to register that here
               ("\\\\DeclareText\\(Command\\|Symbol\\|Accent\\|Composite\\){?\\\\\\([a-zA-Z]+\\)}?"
                2 TeX-auto-symbol)

   * Use index files (when available) to speed up `C-c C-m include
     <RET>'.

   * Option not to calculate very slow completions like for `C-c C-m
     include <RET>'.

   * AUC TeX should not parse verbatim environments.

   * Font menu should be created from `TeX-font-list'.

   * Installation procedure written purely in emacs lisp.

   * Format LaTeX comment blocks.

   * Included PostScript files should also be counted as part of the
     document.

   * The argument to `\verb' may be broken when filling if it contains a
     space.  This should be fixed or documented.  Suggested by several
     people.

   * The parser should catch warnings about undefined crossreferences.
     Suggested by Richard Hirsch `i3080501@ws.rz.tu-bs.de'.

   * A nice hierarchical by-topic organization of all officially
     documented LaTeX macros, available from the menu bar.

   * Make ``' check for math context in `LaTeX-math-mode'. and simply
     self insert if not in a math context.

   * Make `TeX-insert-dollar' more robust.  Currently it can be fooled
     by `\mbox''es and escaped double dollar for example.

   * LaTeX formatting should skip `verbatim' environments.

   * `TeX-command-default' should be set from the master file, if not
     set locally.  Suggested by Peter Whaite `<peta@cim.mcgill.ca>'.

   * Make AUC TeX work with `crypt++'.  Suggested by Chris Moore
     `<Chris.Moore@src.bae.co.uk>'.

   * Fix bug with `TeX-show-environment' from hidden document
     environment.

   * Function to check if you are in math mode (between two dollar
     signs).  Suggested by Jan Erik Odegard `<odegard@dsp.rice.edu>'

   * The `Spell' command should apply to all files in a document.  Maybe
     it could try to restrict to files that have been modified since
     last spell check?  Suggested by Ravinder Bhumbla
     `<rbhumbla@ucsd.edu>'.

   * Make <.> check for abbreviations and sentences ending with capital
     letters.

   * Use Emacs 19 minibuffer history to choose between previewers, and
     other stuff.  Suggested by John Interrante
     `<interran@uluru.Stanford.EDU>'.

   * Make features.

     A new command `TeX-update' (`C-c C-u') could be used to create an
     up-to-date dvi file by repeatedly running BibTeX, MakeIndex and
     (La)TeX, until an error occurs or we are done.

     An alternative is to have an `Update' command that ensures the
     `dvi' file is up to date.  This could be called before printing and
     previewing.

   * Documentation of variables that can be set in a style hook.

     We need a list of what can safely be done in an ordinary style
     hook.  You can not set a variable that AUC TeX depends on, unless
     AUC TeX knows that it has to run the style hooks first.

     Here is the start of such a list.
    `LaTeX-add-environments'

    `TeX-add-symbols'

    `LaTeX-add-labels'

    `LaTeX-add-bibliographies'

    `LaTeX-largest-level'
   * Correct indentation for tabular, tabbing, table, math, and array
     environments.

   * Optional special indentation after an `\item'.

          \begin{itemize}
          \item blabalaskdfjlas lajf adf
                lkfjl  af jasl lkf jlsdf jlf
          \item f lk jldjf lajflkas flf af
          \end{itemize}

   * Completion for counters and sboxes.

   * Outline should be (better) supported in TeX mode.

     At least, support headers, trailers, as well as TeX-outline-extra.

   * `TeX-header-start' and `TeX-trailer-end'.

     We might want these, just for fun (and outlines)

   * Plain TeX and LaTeX specific header and trailer expressions.

     We should have a way to globally specify the default value of the
     header and trailer regexps.

   * Add support for original `TeX-mode' keybindings.

     A third initialization file (`tex-mode.el') containing an emulator
     of the standard `TeX-mode' would help convince some people to
     change to AUC TeX.

   * Make `TeX-next-error' parse ahead and store the results in a list,
     using markers to remember buffer positions in order to be more
     robust with regard to line numbers and changed files.  This is what
     `next-error' does. (Or did, until Emacs 19).

   * When `LaTeX-environment' is given an argument, change the current
     environment.  Be smart about `\item[]' versus `\item ' and labels
     like `fig:' versus `tab:'.

   * Check out if lightning completion from Ultra TeX is anything for
     us.

   * Finish the TeXinfo mode.  For one thing, many TeXinfo mode
     commands do not accept braces around their arguments.

   * BibTeX mode.

   * Support for AMSLaTeX style files.

   * Hook up the letter environment with `bbdb.el'.

   * Make the letter environment hook produce `documentstyle' too.