Commits

oub  committed 7c2b399

Sync with 11.55

  • Participants
  • Parent commits fbe317b

Comments (0)

Files changed (20)

+Changes and New Features in AUCTeX
+**********************************
+
+News in 11.55
+=============
+
+   * A bug was fixed which lead to the insertion of trailing whitespace
+     during filling.  In particular extra spaces were added to sentence
+     endings at the end of lines.  You can make this whitespace visible
+     by setting the variable `show-trailing-whitespace' to `t'.  If you
+     want to delete all trailing whitespace in a buffer, type `M-x
+     delete-trailing-whitespace RET'.
+
+   * A bug was fixed which lead to a `*Compile-Log*' buffer popping up
+     when the first LaTeX file was loaded in an Emacs session.
+
+   * On some systems the presence of an outdated Emacspeak package lead
+     to the error message `File mode specification error: (error
+     "Variable binding depth exceeds max-specpdl-size")'.  Precautions
+     were added which prevent this error from happening.  But
+     nevertheless, it is advised to upgrade or uninstall the outdated
+     Emacspeak package.
+
+   * The value of `TeX-macro-global' is not determined during
+     configuration anymore but at load time of AUCTeX.  Consequently the
+     associated configuration option `--with-tex-input-dirs' was
+     removed.
+
+   * Support for the LaTeX Japanese classes `jsarticle' and `jsbook'
+     was added.
+
 News in 11.54
 =============
 
 
    * Sectioning commands are now shown in a larger font on display
      devices which support such fontification.  The variable
-     `font-latex-title-fontity' can be customized to restore the old
+     `font-latex-title-fontify' can be customized to restore the old
      appearance, i.e. the usage of a different color instead of a
      change in size.
 
+2005-02-11  Uwe Brauer  <oub@mat.ucm.es>
+
+	* tex-site.el: comment for the moment (defcustom TeX-macro-global 
+
+	* tex.el: merge tex.el from 11.55 into version from Xemacs pkg.
+
+	* merge tex-jp.el from 11.55 into version from Xemacs pkg.
+
+	* add jsarticle.el and jsbook.el
+
 2005-02-10  Norbert Koch  <viteno@xemacs.org>
 
 	* Makefile (VERSION): XEmacs package 1.45 released.

File ChangeLog.auctex

+2005-02-04  David Kastrup  <dak@gnu.org>
+
+	* Version 11.55 released.
+
+	* Makefile.in (tar-ball): 
+
+	* doc/Makefile.in (clean, html/auctex_toc.html, dist): Move HTML
+	stuff into html directory.
+
+2005-02-04  David Kastrup  <dak@gnu.org>
+
+	* RELEASE: Some more Emacspeak blurb.
+
+2005-02-04  Ralf Angeli  <angeli@iwi.uni-sb.de>
+
+	* RELEASE: Make description of changes clearer.
+
+2005-02-04  David Kastrup  <dak@gnu.org>
+
+	* RELEASE (Warning): warn about XEmacs 21.4.16.
+
+2005-02-01  Ralf Angeli  <angeli@iwi.uni-sb.de>
+
+	* tex.el (TeX-search-syntax-table): Give ?\" character punctuation
+	syntax.  Prevents parenthetical characters from being hidden from
+	`TeX-find-opening-brace' if they happen to be enclosed between two
+	quotation marks.
+	Better use whitespace syntax for ?\" as this is the equivalent of
+	a nil entry in the syntax table.
+	(TeX-search-syntax-table): Remove superfluous possibility to
+	specify comment and escape characters as arguments.
+
+2005-02-01  Masayuki Ataka  <ataka@milk.freemail.ne.jp>
+
+	* doc/changes.texi: Mention support for the jsarticle and jsbook
+	classes.
+
+	* tex-jp.el (japanese-LaTeX-style-list): Added
+	jsclasses (jsarticle and jsbook).
+
+2005-01-31  Ralf Angeli  <angeli@iwi.uni-sb.de>
+
+	* configure.ac: Bump version info to 11.55.
+
+	* auctex.spec (Version): Bump to 11.55.
+	(Release): Reset to 1.
+
+	* doc/tex-ref.tex: Bump version info to 11.55.
+	(Source Display): Adapt information about key bindings to current
+	implementation.
+
+	* doc/auctex.texi: Bump version info to 11.55.
+
+	* doc/changes.texi: Add information about changes in AUCTeX 11.55.
+
+	* RELEASE: Add information about fixed bugs in AUCTeX 11.55.
+
+	* latex.el (LaTeX-fill-region-as-para-do): Limit the search for
+	sentence ends.  Fixes erroneous addition of spaces at places
+	following a paragraph to be filled.
+
+2005-01-31  Masayuki Ataka  <ataka@milk.freemail.ne.jp>
+
+	* style/jsarticle.el: New file.
+
+	* style/jsbook.el: New file.
+
+	* Makefile.in (STYLESRC): Add them.
+
+2005-01-29  Masayuki Ataka  <ataka@milk.freemail.ne.jp>
+
+	* tex-jp.el (LaTeX-fill-region-as-para-do): Removed.
+
+2005-01-28  Reiner Steib  <Reiner.Steib@gmx.de>
+
+	* tex.el (AUCTeX-date): Use ISO 8601 format.
+	(TeX-submit-bug-report): Include AUCTeX-date when using a
+	non-released version.
+
+2005-01-26  Ralf Angeli  <angeli@iwi.uni-sb.de>
+
+	* tex.el: Do not use whitespace syntax for ?~.  Prevents these
+	characters from being deleted during filling.
+
+2005-01-25  Ralf Angeli  <angeli@iwi.uni-sb.de>
+
+	* tex-buf.el: Update header.
+	(TeX-view-output-file): Let `TeX-active-master' return file name
+	without directory.  Fixes viewer not finding output file when
+	being called in a subdirectory.
+	(TeX-active-master): Add new parameter `nondirectory'.  Doc fix.
+
+2005-01-21  David Kastrup  <dak@gnu.org>
+
+	* auctex.spec (Conflicts): Mention the outdated emacspeak from
+	FC3.
+
+2005-01-20  Ralf Angeli  <angeli@iwi.uni-sb.de>
+
+	* font-latex.el (font-latex-set-syntactic-keywords): Do not call
+	`regexp-opt' on empty lists.  Prevents `regexp-opt-group' from
+	entering a loop on installations with an outdated regexp-opt.el.
+
+	* tex-buf.el (TeX-command-region): Pass name of region file
+	without directory to `TeX-command-query' because a test in the
+	latter expects it like that.
+	(TeX-command-query): Doc fix.
+
+2005-01-19  Jan-Ake Larsson  <jalar@mai.liu.se>
+
+	* aclocal.m4, configure.ac: A few small changes to allow sync with
+	preview-latex' aclocal.m4
+
+2005-01-19  Ralf Angeli  <angeli@iwi.uni-sb.de>
+
+	* tex.el (hack-one-local-variable): Make sure the byte compiler
+	does not barf on `minor-mode-list' by eliminating the reference to
+	this variable.
+
+2005-01-15  Ralf Angeli  <angeli@iwi.uni-sb.de>
+
+	* doc/auctex.texi (top): Restrict to one content listing in HTML
+	output.
+
+	* doc/todo.texi (Wishlist): Remove bug regarding parsing of LaTeX
+	class files.
+
+	* tex.el (TeX-macro-global): New function.
+	(TeX-macro-global): (the variable) Moved here from tex-site.el.in.
+	Use new `TeX-macro-global' function.
+
+	* aclocal.m4 (library): Remove TEX_INPUT_DIRS function.
+
+	* configure.ac (auctexdir): Remove call to TEX_INPUT_DIRS.
+
+	* lpath.el: Setting `TeX-macro-global' is not necessary anymore as
+	it now is in tex.el.
+
+	* tex-site.el.in (TeX-macro-global): Move defcustom to tex.el.
+
+	* doc/install.texi (Configure): Remove documentation of
+	--with-tex-input-dirs.
+
+	* doc/wininstall.texi: Remove documentation of
+	--with-tex-input-dirs.
+
+	* latex.el (LaTeX-insert-environment): Insert a simple newline
+	character instead of using `newline'.  Fixes insertion of
+	environment end at wrong place in XEmacs.
+	(LaTeX-fill-region): Remove superfluous `save-restriction'.
+	(LaTeX-auto-class-regexp-list): Add patterns for commands
+	described in "LaTeX2e font selection" (fntguide).
+
+2005-01-14  Reiner Steib  <Reiner.Steib@gmx.de>
+
+	* doc/auctex.texi (European): Document all TeX-language-*-hook
+	variables.  Don't document obsolete `dk.sty'.
+
+2005-01-14  David Kastrup  <dak@gnu.org>
+
+	* auctex.spec: Add and remove auctex.info instead of auctex in
+	info dir.  Bump release to 2 to match upload.
+
+2005-01-13  David Kastrup  <dak@gnu.org>
+
+	* font-latex.el (font-latex-set-title-face)
+	(font-latex-title-fontify): font-latex-title-fontify, not
+	fontity.  fontify, fontify, fontify.
+	* doc/changes.texi: Ditto.
+	* doc/auctex.texi (Font Locking): Ditto.
+
 2005-01-12  David Kastrup  <dak@gnu.org>
 
 	* Version 11.54 released.
 
 
 VERSION = 1.45
-AUTHOR_VERSION = 11.54
+AUTHOR_VERSION = 11.55
 MAINTAINER = Uwe Brauer <oub@mat.ucm.es>
 PACKAGE = auctex
 PKG_TYPE = regular
 ETC_ELCS = etc/units.elc etc/nicefrac.elc etc/alltt.elc \
 	   etc/slides.elc    etc/foils.elc	   etc/subfigure.elc etc/amstex.elc \
 	   etc/jurabib.elc etc/listings.elc etc/url.elc etc/csquotes.elc\
-	   etc/ltx-base.elc etc/ltxdoc.elc etc/captcont.elc \
-	   etc/emp.elc  etc/paralist.elc etc/scrpage2.elc \
+	   etc/ltx-base.elc etc/jsbook.elc etc/ltxdoc.elc etc/captcont.elc \
+	   etc/emp.elc  etc/jsarticle.elc etc/paralist.elc etc/scrpage2.elc \
 	   etc/alphanum.elc   etc/doc.elc etc/jura.elc etc/beamer.elc \
 	   etc/italian.elc 	 etc/prosper.elc etc/booktabs.elc \
 	   etc/article.elc   etc/book.elc     etc/letter.elc \
 	   etc/verbatim.elc  etc/scrbase.elc  etc/scrartcl.elc \
 	   etc/scrbook.elc   etc/scrreprt.elc	etc/scrlttr2.elc
 
-EXTRA_DEPENDENCIES = $(ETC_ELCS) texi/math-ref.dvi texi/tex-ref.dvi \
-	texi/math-ref.log texi/tex-ref.log INSTALLATION README CHANGES
+EXTRA_DEPENDENCIES = $(ETC_ELCS)  texi/tex-ref.dvi \
+	 texi/tex-ref.log INSTALLATION README CHANGES
 
 DATA_FILES = $(ETC_ELCS) $(ETC_ELCS:%.elc=%.el)
 DATA_DEST = $(PACKAGE)/style

File etc/jsarticle.el

+;;; jsarticle.el - Special code for jsarticle style.
+
+;; $Id$
+
+;;; Code:
+
+(TeX-add-style-hook "jsarticle"
+ (function (lambda ()
+  (setq LaTeX-largest-level (LaTeX-section-level "section")))))
+
+;;; jsarticle.el ends here

File etc/jsbook.el

+;;; jsbook.el - Special code for jsbook style.
+
+;; $Id$
+
+;;; Code:
+
+(TeX-add-style-hook "jsbook"
+ (function (lambda () 
+  (setq LaTeX-largest-level (LaTeX-section-level "chapter")))))
+
+;;; jsbook.el ends here

File font-latex.el

 (defun font-latex-set-title-face (level)
   "Set fontification of LaTeX titles at LEVEL."
   (cond
-   ((equal font-latex-title-fontity 'height)
+   ((equal font-latex-title-fontify 'height)
     (set (intern (format "font-latex-title-%d-face" level))
 	 (intern (format "font-latex-title-%d-face" level))))
-   ((equal font-latex-title-fontity 'color)
+   ((equal font-latex-title-fontify 'color)
     (set (intern (format "font-latex-title-%d-face" level))
 	 'font-lock-type-face))))
 
-(defcustom font-latex-title-fontity 'height
-  "Whether to fontity LaTeX titles with varying height faces or a color face."
+(defcustom font-latex-title-fontify 'height
+  "Whether to fontify LaTeX titles with varying height faces or a color face."
   :type '(choice (const height)
                  (const color))
   :set (lambda (symbol value)
 This function can be used to refresh the variable in case other
 variables influencing its value, like `font-latex-verbatim-environments',
 have changed."
-  (let ((verb-envs (regexp-opt
-		    (append font-latex-verbatim-environments
-			    font-latex-verbatim-environments-local)))
-	(verb-like-commands (regexp-opt
-			     (append font-latex-verb-like-commands
-				     font-latex-verb-like-commands-local)))
-	(verb-macros (regexp-opt
-		      (append font-latex-verbatim-macros
-			      font-latex-verbatim-macros-local))))
-    (setq font-latex-syntactic-keywords nil)
+  ;; Checks for non-emptiness of lists added in order to cater for
+  ;; installations where `(regexp-opt-group nil)' would enter a loop.
+  (let ((verb-envs (append font-latex-verbatim-environments
+			   font-latex-verbatim-environments-local))
+	(verb-like-commands (append font-latex-verb-like-commands
+				    font-latex-verb-like-commands-local))
+	(verb-macros (append font-latex-verbatim-macros
+			     font-latex-verbatim-macros-local)))
+    (setq verb-envs (and verb-envs (regexp-opt verb-envs))
+	  verb-like-commands (and verb-like-commands
+				  (regexp-opt verb-like-commands))
+	  verb-macros (and verb-macros (regexp-opt verb-macros))
+	  font-latex-syntactic-keywords nil)
     (unless (= (length verb-envs) 0)
       (add-to-list 'font-latex-syntactic-keywords
 		   `(,(concat "^\\\\begin *{\\(?:" verb-envs "\\)}.*\\(\n\\)")
 (defun font-latex-find-matching-close (openchar closechar)
   "Skip over matching pairs of { } or [ ], ignoring comments.
 OPENCHAR is the opening character and CLOSECHAR is the closing character."
-  (let ((parse-sexp-ignore-comments t) ; scan-sexps ignores comments
+  (let ((parse-sexp-ignore-comments
+	 (not (eq major-mode 'doctex-mode))) ; scan-sexps ignores comments
         (init-point (point))
 	(mycount 1)
 	(esc-char (or (and (boundp 'TeX-esc) TeX-esc) "\\")))
       (save-excursion
 	(goto-char (mark))
 	(unless (progn (skip-chars-forward " \t") (eolp))
-	  (if (bolp) (newline) (LaTeX-newline))
+	  ;; Use `(insert "\n")' instead of `(newline)' because in contrast
+	  ;; to Emacs, XEmacs moves the mark if `newline' is used.
+	  (if (bolp) (insert "\n") (LaTeX-newline))
 	  (indent-according-to-mode))))
     (when (and LaTeX-insert-into-comments
 	       (looking-at
      (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))
+    ("\\\\DeclareRobustCommand\\*?{?\\\\\\([A-Za-z]+\\)}?"
+     1 TeX-auto-symbol)
+    ;; Patterns for commands described in "LaTeX2e font selection" (fntguide)
+    ("\\\\DeclareMath\\(?:Symbol\\|Delimiter\\|Accent\\|Radical\\)\
+{?\\\\\\([A-Za-z]+\\)}?"
+     1 TeX-auto-symbol)
+    ("\\\\\\(Declare\\|Provide\\)Text\
+\\(?:Command\\|Symbol\\|Accent\\|Composite\\){?\\\\\\([A-Za-z]+\\)}?"
+     1 TeX-auto-symbol)
+    ("\\\\Declare\\(?:Text\\|Old\\)FontCommand{?\\\\\\([A-Za-z]+\\)}?"
+     1 TeX-auto-symbol))
   "List of regular expressions matching macros in LaTeX classes and packages.")
 
 (defvar LaTeX-auto-regexp-list
 		  sentence-end-double-space)
 	      (progn
 		(goto-char from)
-		(while (re-search-forward "[.?!][]})\"']*$" nil t)
+		(while (re-search-forward "[.?!][]})\"']*$" to t)
 		  (insert ? ))))
 	  ;; Then change all newlines to spaces.
 	  (let ((point-max (progn
 means justify as well.  Fourth arg WHAT is a word to be displayed when
 formatting."
   (interactive "*r\nP")
-  (save-restriction
-    (save-excursion
-      (let ((to (set-marker (make-marker) to))
-	    (next-par (make-marker)))
-	(goto-char from)
-	(beginning-of-line)
-	(setq from (point))
-	(catch 'end-of-buffer
-	  (while (and (< (point) to))
-	    (message "Formatting%s ... %d%%"
-		     (or what "")
-		     (/ (* 100 (- (point) from)) (- to from)))
-	    (save-excursion (LaTeX-fill-paragraph justify))
-	    (if (marker-position next-par)
-		(goto-char (marker-position next-par))
-	      (LaTeX-forward-paragraph))
-	    (when (eobp) (throw 'end-of-buffer t))
-	    (LaTeX-forward-paragraph)
-	    (set-marker next-par (point))
-	    (LaTeX-backward-paragraph)
-	    (while (and (not (eobp))
-			(looking-at
-			 (concat "^\\($\\|[ \t]+$\\|[ \t]*"
-				 TeX-comment-start-regexp "+[ \t]*$\\)")))
-	      (forward-line 1))))
-	(set-marker to nil)))
-    (message "Finished")))
+  (save-excursion
+    (let ((to (set-marker (make-marker) to))
+	  (next-par (make-marker)))
+      (goto-char from)
+      (beginning-of-line)
+      (setq from (point))
+      (catch 'end-of-buffer
+	(while (and (< (point) to))
+	  (message "Formatting%s ... %d%%"
+		   (or what "")
+		   (/ (* 100 (- (point) from)) (- to from)))
+	  (save-excursion (LaTeX-fill-paragraph justify))
+	  (if (marker-position next-par)
+	      (goto-char (marker-position next-par))
+	    (LaTeX-forward-paragraph))
+	  (when (eobp) (throw 'end-of-buffer t))
+	  (LaTeX-forward-paragraph)
+	  (set-marker next-par (point))
+	  (LaTeX-backward-paragraph)
+	  (while (and (not (eobp))
+		      (looking-at
+		       (concat "^\\($\\|[ \t]+$\\|[ \t]*"
+			       TeX-comment-start-regexp "+[ \t]*$\\)")))
+	    (forward-line 1))))
+      (set-marker to nil)))
+  (message "Finished"))
 
 (defun LaTeX-find-matching-end ()
   "Move point to the \\end of the current environment.
 (setq load-path (cons "." load-path)
       byte-compile-warnings nil
       TeX-lisp-directory "<none>"
-      TeX-auto-global "<none>"
-      TeX-macro-global nil)
+      TeX-auto-global "<none>")
 ;;; tex-buf.el --- External commands for AUCTeX.
 
-;; Copyright (C) 1993, 1996, 2001, 2003, 2004 Free Software Foundation, Inc.
+;; Copyright (C) 1993, 1996, 2001, 2003, 2004,
+;;   2005 Free Software Foundation, Inc.
 ;; Copyright (C) 1991 Kresten Krab Thorup
 
 ;; Maintainer: auc-tex@sunsite.dk
-;; Keywords: tex
+;; Keywords: tex, wp
 
 ;; This file is part of AUCTeX.
 
 
 ;;; Commentary:
 
-;; This file provides support external commands.
+;; This file provides support for external commands.
 
 ;;; Code:
 
 		       (buffer-substring begin end)
 		       (file-name-nondirectory (buffer-file-name))
 		       (TeX-current-offset begin)))
-  (TeX-command (TeX-command-query (TeX-region-file)) 'TeX-region-file
+  (TeX-command (TeX-command-query (TeX-region-file nil t)) 'TeX-region-file
 	       override-confirm))
 
 (defun TeX-command-buffer (&optional override-confirm)
 (defvar TeX-command-history nil)
 
 (defun TeX-command-query (name)
-  "Query the user for a what TeX command to use."
+  "Query the user for what TeX command to use."
   (let* ((default (cond ((if (string-equal name TeX-region)
 			     (TeX-check-files (concat name "." (TeX-output-extension))
 					      (list name)
 
 (defun TeX-view-output-file ()
   "Get the name of the current TeX output file"
-  (TeX-active-master (TeX-output-extension)))
+  (TeX-active-master (TeX-output-extension) t))
 
 (defun TeX-view-mouse (event)
   "Start `TeX-view' at mouse position."
       (TeX-process-buffer (TeX-region-file))
     (TeX-process-buffer (TeX-master-file))))
 
-(defun TeX-active-master (&optional extension)
-  "The master file currently being compiled."
+(defun TeX-active-master (&optional extension nondirectory)
+  "The master file currently being compiled.
+
+If optional argument EXTENSION is non-nil, add that file extension to
+the name.  Special value t means use `TeX-default-extension'.
+
+If optional second argument NONDIRECTORY is non-nil, do not include
+the directory."
   (if TeX-current-process-region-p
-      (TeX-region-file extension)
-    (TeX-master-file extension)))
+      (TeX-region-file extension nondirectory)
+    (TeX-master-file extension nondirectory)))
 
 (defvar TeX-command-buffer nil
   "The buffer from where the last TeX command was issued.")
 ;;; tex-jp.el --- Support for Japanese TeX.
 
 ;; Copyright (C) 1999, 2001 Hidenobu Nabetani <nabe@debian.or.jp>
-;; Copyright (C) 2002, 2003, 2004 Free Software Foundation
+;; Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation
 
 ;; Author:     KOBAYASHI Shinji <koba@flab.fujitsu.co.jp>
 ;; Maintainer: Masayuki Ataka <ataka@milk.freemail.ne.jp>
   '(("j-article")
     ("j-report")
     ("j-book")
+    ("jslides")
     ("jarticle")
+    ("jreport")
     ("jbook")
-    ("jreport")
-    ("jslides")
     ("tarticle")
     ("treport")
-    ("tbook"))
+    ("tbook")
+    ("jsarticle")
+    ("jsbook"))
   "*List of Japanese document styles."
   :group 'AUCTeX-jp
   :type '(repeat (group (string :format "%v"))))
 (add-hook 'plain-TeX-mode-hook 'japanese-plain-tex-mode-initialization)
 ;;SY
 ;;;###autoload(autoload 'japanese-plain-tex-mode "tex-jp" nil t)
+
 (TeX-defun japanese-plain-tex-mode ()
   "Major mode in %s for editing Japanese plain TeX files.
 Set japanese-TeX-mode to t, and enters plain-tex-mode."
 
 (add-hook 'LaTeX-mode-hook 'japanese-latex-mode-initialization)
 
+
 ;; SY
 ;;;###autoload(autoload 'japanese-latex-mode "tex-jp" nil t)
 (TeX-defun japanese-latex-mode ()
 	(setq japanese-TeX-mode nil))))
 
 
-;;; MULE paragraph filling.
-
-;; This function is copied from
-;; fill-region-as-paragraph in fill.el --- fill commands for Emacs
-;; Copyright (C) 1985, 86, 92, 94, 95, 96, 1997 Free Software Foundation, Inc.
-(defun LaTeX-fill-region-as-para-do (from to justify)
-  "Fill region as one paragraph: break lines to fit `fill-column'."
-  (setq x justify)
-  (unless (memq justify '(t nil none full center left right))
-    (setq justify 'full))
-  (setq y justify)
-  ;; Arrange for undoing the fill to restore point.
-  (if (and buffer-undo-list (not (eq buffer-undo-list t)))
-      (setq buffer-undo-list (cons (point) buffer-undo-list)))
-
-  ;; Make sure "to" is the endpoint.
-  (goto-char (min from to))
-  (setq to   (max from to))
-  ;; Ignore blank lines at beginning of region.
-  (skip-chars-forward " \t\n")
-
-  (let ((from-plus-indent (point))
-	(oneleft nil))
-
-    (beginning-of-line)
-    (setq from (point))
-
-    ;; Delete all but one soft newline at end of region.
-    ;; And leave TO before that one.
-    (goto-char to)
-    (while (and (> (point) from) (eq ?\n (char-after (1- (point)))))
-      (if (and oneleft
-	       (not (and use-hard-newlines
-			 (get-text-property (1- (point)) 'hard))))
-	  (delete-backward-char 1)
-	(backward-char 1)
-	(setq oneleft t)))
-    (setq to (point))
-;;;     ;; If there was no newline, and there is text in the paragraph, then
-;;;     ;; create a newline.
-;;;     (if (and (not oneleft) (> to from-plus-indent))
-;;;	(newline))
-    (goto-char from-plus-indent))
-
-  (if (not (> to (point)))
-      nil ; There is no paragraph, only whitespace: exit now.
-
-    (or justify (setq justify (current-justification)))
-
-    ;; Don't let Adaptive Fill mode alter the fill prefix permanently.
-    (let ((fill-prefix fill-prefix))
-      ;; Figure out how this paragraph is indented, if desired.
-      (if (and adaptive-fill-mode
-	       (or (null fill-prefix) (string= fill-prefix "")))
-	  (setq fill-prefix (fill-context-prefix from to)))
-
-      (save-restriction
-	(goto-char from)
-	(beginning-of-line)
-	(narrow-to-region (point) to)
-
-	(if (not justify)	    ; filling disabled: just check indentation
-	    (progn
-	      (goto-char from)
-	      (while (not (eobp))
-		(if (and (not (eolp))
-			 (< (current-indentation) (current-left-margin)))
-		    (LaTeX-indent-line))
-		(forward-line 1)))
-
-	  (if use-hard-newlines
-	      (remove-text-properties from (point-max) '(hard nil)))
-	  ;; Make sure first line is indented (at least) to left margin...
-	  (if (or (memq justify '(right center))
-		  (< (current-indentation) (current-left-margin)))
-	      (LaTeX-indent-line))
-	  ;; Delete the fill prefix from every line except the first.
-	  ;; The first line may not even have a fill prefix.
-	  (goto-char from)
-	  (let ((fpre (and fill-prefix (not (equal fill-prefix ""))
-			   (concat "[ \t]*"
-				   (regexp-quote fill-prefix)
-				   "[ \t]*"))))
-	    (and fpre
-		 (progn
-		   (if (>= (+ (current-left-margin) (length fill-prefix))
-			   (current-fill-column))
-		       (error "fill-prefix too long for specified width"))
-		   (goto-char from)
-		   (forward-line 1)
-		   (while (not (eobp))
-		     (if (looking-at fpre)
-			 (delete-region (point) (match-end 0)))
-		     (forward-line 1))
-		   (goto-char from)
-		   (if (looking-at fpre)
-		       (goto-char (match-end 0)))
-		   (setq from (point)))))
-	  ;; Remove indentation from lines other than the first.
-	  (beginning-of-line 2)
-	  (indent-region (point) (point-max) 0)
-	  (goto-char from)
-
-	  ;; FROM, and point, are now before the text to fill,
-	  ;; but after any fill prefix on the first line.
-
-	  ;; Make sure sentences ending at end of line get an extra space.
-	  ;; loses on split abbrevs ("Mr.\nSmith")
-	  (while (re-search-forward "[.?!][])}\"']*$" nil t)
-	    (or (eobp) (insert-and-inherit ?\ )))
-	  (goto-char from)
-	  ;; The character category `|' means that we can break a line
-	  ;; at the character.  Since we don't need a space between
-	  ;; them, delete all newlines between them ...
-	  (while (re-search-forward "\\c|\n\\|\n\\c|" nil t)
-	    (if (bolp)
-		(delete-char -1)
-	      (if (= (char-before (match-beginning 0)) ?\ )
-		  ;; ... except when there is end of sentence.  The
-		  ;; variable `sentence-end-double-space' is handled
-		  ;; properly later.
-		  nil
-		(delete-region (match-beginning 0) (1+ (match-beginning 0))))))
-	  (goto-char from)
-	  (skip-chars-forward " \t")
-	  ;; Then change all newlines to spaces.
-	  (subst-char-in-region from (point-max) ?\n ?\ )
-	  (if (not (eq justify 'full))
-	      nil
-	    (canonically-space-region (point) (point-max))
-	    (goto-char (point-max))
-	    (delete-horizontal-space)
-	    (insert-and-inherit " "))
-	  (goto-char (point-min))
-
-	  ;; This is the actual filling loop.
-	  (let ((prefixcol 0) linebeg)
-	    (while (not (eobp))
-	      (setq linebeg (point))
-	      (move-to-column (1+ (current-fill-column)))
-	      (if (eobp)
-		  (delete-horizontal-space)
-		;; Move back to the point where we can break the line
-		;; at.  We break the line between word or after/before
-		;; the character which has character category `|'.  We
-		;; search space, \c| followed by a character, or \c|
-		;; following a character.  If not found, place
-		;; the point at linebeg.
-		(if (re-search-backward " \\|\\c|.\\|.\\c|" linebeg 0)
-		    ;; In case of space, we place the point at next to
-		    ;; the point where the break occurs acutually,
-		    ;; because we don't want to change the following
-		    ;; logic of original Emacs.  In case of \c|, the
-		    ;; point is at the place where the break occurs.
-		    (forward-char 1))
-		;; Don't break after a period followed by just one space.
-		;; Move back to the previous place to break.
-		;; The reason is that if a period ends up at the end of a line,
-		;; further fills will assume it ends a sentence.
-		;; If we now know it does not end a sentence,
-		;; avoid putting it at the end of the line.
-		(while (or (and sentence-end-double-space
-				(> (point) (+ linebeg 2))
-				(eq (preceding-char) ?\ )
-				(not (eq (following-char) ?\ ))
-				(eq (char-after (- (point) 2)) ?\.)
-				(progn (forward-char -2) t))
-			   (and fill-nobreak-predicate
-				(funcall fill-nobreak-predicate)
-				(goto-char (match-beginning 0))))
-		  (if (re-search-backward " \\|\\c|.\\|.\\c|" linebeg 0)
-		      (forward-char 1)))
-		;; If the left margin and fill prefix by themselves
-		;; pass the fill-column. or if they are zero
-		;; but we have no room for even one word,
-		;; keep at least one word or a character which has
-		;; category `|'anyway .
-		;; This handles ALL BUT the first line of the paragraph.
-		(if (if (zerop prefixcol)
-			(save-excursion
-			  (skip-chars-backward " \t" linebeg)
-			  (bolp))
-		      (>= prefixcol (current-column)))
-		    ;; Ok, skip at least one word or one \c| character.
-		    ;; Meanwhile, don't stop at a period followed by one space.
-		    (let ((first t))
-		      (move-to-column prefixcol)
-		      (while (and (not (eobp))
-				  (or first
-				      (and (not (bobp))
-					   sentence-end-double-space
-					   (save-excursion (forward-char -1)
-							   (and (looking-at "\\. ")
-								(not (looking-at "\\.  ")))))
-				      (and fill-nobreak-predicate
-					   (funcall fill-nobreak-predicate))))
-			;; Find a breakable point while ignoring the
-			;; following spaces.
-			(skip-chars-forward " \t")
-			(if (looking-at "\\c|")
-			    (forward-char 1)
-			  (let ((pos (save-excursion
-				       (skip-chars-forward "^ \n\t")
-				       (point))))
-			    (if (re-search-forward "\\c|" pos t)
-				(forward-char -1)
-			      (goto-char pos))))
-			(setq first nil)))
-		  ;; Normally, move back over the single space between the words.
-		  (if (= (preceding-char) ?\ ) (forward-char -1))
-		  ;; Do KINSOKU processing.
-		  (if (and enable-multibyte-characters enable-kinsoku
-			   (save-excursion
-			     (goto-char (point-min))
-			     (skip-chars-forward "\0-\177")
-			     (/= (point) (point-max))))
-		      (kinsoku linebeg)))
-
-		;; If the left margin and fill prefix by themselves
-		;; pass the fill-column, keep at least one word.
-		;; This handles the first line of the paragraph.
-		(if (and (zerop prefixcol)
-			 (let ((fill-point (point)) nchars)
-			   (save-excursion
-			     (move-to-left-margin)
-			     (setq nchars (- fill-point (point)))
-			     (or (< nchars 0)
-				 (and fill-prefix
-				      (< nchars (length fill-prefix))
-				      (string= (buffer-substring (point) fill-point)
-					       (substring fill-prefix 0 nchars)))))))
-		    ;; Ok, skip at least one word.  But
-		    ;; don't stop at a period followed by just one space.
-		    (let ((first t))
-		      (while (and (not (eobp))
-				  (or first
-				      (and (not (bobp))
-					   sentence-end-double-space
-					   (save-excursion (forward-char -1)
-							   (and (looking-at "\\. ")
-								(not (looking-at "\\.  ")))))
-				      (and fill-nobreak-predicate
-					   (funcall fill-nobreak-predicate))))
-			;; Find a breakable point while ignoring the
-			;; following spaces.
-			(skip-chars-forward " \t")
-			(if (looking-at "\\c|")
-			    (forward-char 1)
-			  (let ((pos (save-excursion
-				       (skip-chars-forward "^ \n\t")
-				       (point))))
-			    (if (re-search-forward "\\c|" pos t)
-				(forward-char -1)
-			      (goto-char pos))))
-			(setq first nil))))
-		;; Check again to see if we got to the end of the paragraph.
-		(if (save-excursion (skip-chars-forward " \t") (eobp))
-		    (delete-horizontal-space)
-		  ;; Replace whitespace here with one newline, then indent to left
-		  ;; margin.
-		  (skip-chars-backward " \t")
-		  (if (and (= (following-char) ?\ )
-			   (or (aref (char-category-set (preceding-char)) ?|)
-			       (looking-at "[ \t]+\\c|")))
-		      ;; We need one space at end of line so that
-		      ;; further filling won't delete it.  NOTE: We
-		      ;; intentionally leave this one space to
-		      ;; distingush the case that user wants to put
-		      ;; space between \c| characters.
-		      (forward-char 1))
-		  (insert ?\n)
-		  ;; Give newline the properties of the space(s) it replaces
-		  (set-text-properties (1- (point)) (point)
-				       (text-properties-at (point)))
-		  (LaTeX-indent-line)
-		  ;; Set prefixcol so whitespace in the prefix won't get lost.
-		  (and fill-prefix (not (equal fill-prefix ""))
-		       (setq prefixcol (current-column)))))
-	      ;; Justify the line just ended, if desired.
-	      (if justify
-		(if (save-excursion (skip-chars-forward " \t") (eobp))
-		    (progn
-		      (delete-horizontal-space)
-		      (justify-current-line justify t t))
-		    (forward-line -1)
-		    (justify-current-line justify nil t)
-		    (forward-line 1))))))
-	;; Leave point after final newline.
-	(goto-char (point-max)))
-      (unless (eobp)
-	(forward-char 1)))))
-
 ;;; Support for various self-insert-command
 
 (cond ((fboundp 'can-n-egg-self-insert-command)
   :group 'TeX-file
   :type 'directory)
 
-
+;;; let us see whether the new function TeX-macro-global works.
+;;; <--- [HERE BEGINS A CHANGE] Feb 11, 2005 19:49 Uwe Brauer Feb 11, 2005
 ;; SY
-(defcustom TeX-macro-global nil 
-  "*The path to your global system wide TeX macro files.
-
-The directory names *must* end with a slash.  If have system
-administration rights, you open tex-site.el via the find-library
-command in order to set the variable.  Otherwise set it in the
-normal way via the custom interface.
-
-A typical value could be:
-
-  '\(\"/usr/share/texmf/tex/\"
-    \"/usr/share/texmf/bibtex/bst/\"\)
-
-You can possibly find these TeX directories on a GNU/Linux system
-with the command:
-
-  kpsewhich --progname latex --expand-braces $TEXMFLOCAL
-
-Or:
-
-  kpsewhich --progname latex --expand-braces $TEXMFCNF
-
-Note that you may not need to set `TeX-macro-global' to anything and
-the default value of nil may be the correct setting for you.
-
-If you don't have administration rights contact your system
-administrator.  If you are on MS Windows, look for the documentation
-of your tex system, such as MikTex."
-  :group 'TeX-file
-  :type '(repeat (directory :format "%v")))
+;; (defcustom TeX-macro-global nil 
+;;   "*The path to your global system wide TeX macro files.
+;; 
+;; The directory names *must* end with a slash.  If have system
+;; administration rights, you open tex-site.el via the find-library
+;; command in order to set the variable.  Otherwise set it in the
+;; normal way via the custom interface.
+;; 
+;; A typical value could be:
+;; 
+;;   '\(\"/usr/share/texmf/tex/\"
+;;     \"/usr/share/texmf/bibtex/bst/\"\)
+;; 
+;; You can possibly find these TeX directories on a GNU/Linux system
+;; with the command:
+;; 
+;;   kpsewhich --progname latex --expand-braces $TEXMFLOCAL
+;; 
+;; Or:
+;; 
+;;   kpsewhich --progname latex --expand-braces $TEXMFCNF
+;; 
+;; Note that you may not need to set `TeX-macro-global' to anything and
+;; the default value of nil may be the correct setting for you.
+;; 
+;; If you don't have administration rights contact your system
+;; administrator.  If you are on MS Windows, look for the documentation
+;; of your tex system, such as MikTex."
+;;   :group 'TeX-file
+;;   :type '(repeat (directory :format "%v")))
 
 ;; Inform the user if `TeX-macro-global' isn't set and it is likely
 ;; that it needs to be.
-(eval-after-load "tex"
-  '(if (and (not TeX-macro-global)
-	    (or (getenv "TEXMFCNF")
-		(getenv "TEXMFLOCAL")))
-       (progn
-	 (message "`TeX-macro-global' may not be set correctly.")
-	 (sit-for 3)
-	 (message "See `C-h v TeX-macro-global' for further information.")
-	 (sit-for 3))))
-
+;; (eval-after-load "tex"
+;;   '(if (and (not TeX-macro-global)
+;; 	    (or (getenv "TEXMFCNF")
+;; 		(getenv "TEXMFLOCAL")))
+;;        (progn
+;; 	 (message "`TeX-macro-global' may not be set correctly.")
+;; 	 (sit-for 3)
+;; 	 (message "See `C-h v TeX-macro-global' for further information.")
+;; 	 (sit-for 3))))
+;;<--- [HERE END A CHANGE] Feb 11, 2005 19:49 Uwe Brauer Feb 11, 2005
 
 ;;; Autoloads:
 
       (string-match
        "\\`[$]Date: *\\([0-9]+\\)/\\([0-9]+\\)/\\([0-9]+\\)"
        date)
-      (format "%s.%s%s" (match-string 1 date) (match-string 2 date)
+      (format "%s-%s-%s" (match-string 1 date) (match-string 2 date)
 	      (match-string 3 date))))
-  "AUCTeX release date.
-In the form of yyyy.mmdd")
+  "AUCTeX release date using the ISO 8601 format, yyyy-mm-dd.")
+
 
 (defconst AUC-TeX-version AUCTeX-version
   "Obsolete.  Replaced by `AUCTeX-version'.")
 			  (add-to-list 'Info-file-list-for-emacs
 				       (cons elt "AUCTeX"))))
 
+
 (defadvice hack-one-local-variable (after TeX-hack-one-local-variable-after
 					  activate)
   "Call minor mode function if minor mode variable is found."
   (let ((var (ad-get-arg 0))
 	(val (ad-get-arg 1)))
-    (when (if (boundp 'minor-mode-list)
-	      ;; Test which does not require maintenance but `minor-mode-list'.
-	      (and (memq var minor-mode-list)
-		   (string-match "^\\(La\\)*TeX-.+-mode$" (symbol-name var)))
-	    ;; "Manual" test requiring adaption when minor modes change.
-	    (memq var '(TeX-PDF-mode TeX-source-specials-mode
-				     TeX-interactive-mode TeX-Omega-mode
-				     TeX-fold-mode LaTeX-math-mode)))
+    ;; Instead of checking for each mode explicitely `minor-mode-list'
+    ;; could be used.  But this may make the byte compiler pop up.
+    (when (memq var '(TeX-PDF-mode
+		      TeX-source-specials-mode TeX-interactive-mode
+		      TeX-Omega-mode TeX-fold-mode LaTeX-math-mode))
       (if (symbol-value val) (funcall var 1) (funcall var 0)))))
 
 
 	  (setq answers (cons entry answers))))
     answers))
 
+(defun TeX-macro-global ()
+  "Return directories containing the site's TeX macro and style files."
+  (let ((tree-list '("$SYSTEXMF" "$TEXMFLOCAL" "$TEXMFMAIN" "$TEXMFDIST"))
+	path-list path exit-status input-dir-list)
+    (condition-case nil
+	(catch 'success
+	  (dotimes (i (safe-length tree-list))
+	    (setq path (with-output-to-string
+			 (setq exit-status
+			       (call-process
+				"kpsewhich"  nil
+				(list standard-output nil) nil
+				"--progname" "latex"
+				"--expand-braces" (nth i tree-list)))))
+	    (if (zerop exit-status)
+		(progn (add-to-list 'path-list path)
+		       (when (zerop i) (throw 'success nil)))
+	      (setq path (with-output-to-string
+			   (setq exit-status
+				 (call-process
+				  "kpsewhich"  nil
+				  (list standard-output nil) nil
+				  "--progname" "latex"
+				  "--expand-path" (nth i tree-list)))))
+	      (when (zerop exit-status) (add-to-list 'path-list path)))))
+      (error nil))
+    (dolist (elt path-list)
+      (let ((separators (if (string-match "^[A-Za-z]:" elt)
+			    "[\n\r;]"
+			  "[\n\r:]")))
+	(dolist (item (condition-case nil
+			  (split-string elt separators t)
+			;; COMPATIBILITY for XEmacs <= 21.4.15
+			(error (delete "" (split-string elt separators)))))
+	  (when (string-match "^!+" item)
+	    (setq item (substring item (match-end 0) (length item))))
+	  (when (string-match "/+$" item)
+	    (setq item (substring item 0 (match-beginning 0))))
+	  (dolist (subdir '("/tex/" "/bibtex/bst/"))
+	    (when (file-exists-p (file-name-as-directory (concat item subdir)))
+	      (add-to-list 'input-dir-list (concat item subdir)))))))
+    (or input-dir-list
+	'("/usr/share/texmf/tex/" "/usr/share/texmf/bibtex/bst/"))))
+
+(defcustom TeX-macro-global (TeX-macro-global)
+  "Directories containing the site's TeX macro and style files.
+The directory names *must* end with a directory separator."
+  :group 'TeX-file
+  :type '(repeat (directory :format "%v")))
+
+
 (defcustom TeX-macro-private (append (TeX-parse-path "TEXINPUTS")
 				     (TeX-parse-path "BIBINPUTS"))
   "Directories where you store your personal TeX macros.
   (let ((table (make-syntax-table (make-char-table (if (featurep 'xemacs)
 						       'syntax
 						     'syntax-table)))))
-    (modify-syntax-entry ?\f ">" table)
-    (modify-syntax-entry ?\n ">" table)
+    ;; Preset mode-independent syntax entries.  (Mode-dependent
+    ;; entries are set in the function `TeX-search-syntax-table'.)
+    ;; ?\" explicitely gets whitespace syntax because Emacs 21.3 and
+    ;; XEmacs don't generate a completely empty syntax table.
+    (dolist (elt '((?\f . ">") (?\n . ">") (?\" . " ")))
+      (modify-syntax-entry (car elt) (cdr elt) table))
     table)
   "Syntax table used for searching purposes.
 It should be accessed through the function `TeX-search-syntax-table'.")
 ARGS may be a list of characters.  For each of them the
 respective predefined syntax is set.  Currently the parenthetical
 characters ?{, ?}, ?[, and ?] are supported.  The syntax of each
-of these characters not specified will be reset to \" \".
-Besides the escape characters ?\\\\ and ?@ as well as the comment
-character ?% may be specified.  This should not be necessary as
-they are set automatically if they are omitted."
-  (let ((char-syntax-alist '((?\\ . "\\")
-			     (?\@ . "\\")
-			     (?\% . "<")
-			     (?\{ . "(}")
+of these characters not specified will be reset to \" \"."
+  (let ((char-syntax-alist '((?\{ . "(}")
 			     (?\} . "){")
 			     (?\[ . "(]")
 			     (?\] . ")["))))
-    ;; First clean up.
-    (dolist (item char-syntax-alist)
-      (modify-syntax-entry (car item) " " TeX-search-syntax-table))
-    ;; Set the escape character automatically if it is not specified
-    ;; explicitely.  (This could be done as well once when the mode is
-    ;; being initialized.)
-    (unless (or (memq ?\\ args) (memq ?\@ args))
-      (modify-syntax-entry (string-to-char TeX-esc) "\\"
-			   TeX-search-syntax-table))
-    ;; Same for comment character.
-    (unless (and (memq ?\% args) (eq major-mode 'texinfo-mode))
+    ;; Preset mode-dependent syntax entries.  (Mode-independent entries
+    ;; are set when the variable `TeX-search-syntax-table' is created.)
+    (modify-syntax-entry (string-to-char TeX-esc) "\\" TeX-search-syntax-table)
+    (unless (eq major-mode 'texinfo-mode)
       (modify-syntax-entry ?\% "<" TeX-search-syntax-table))
+    ;; Clean up the entries which can be specified as arguments.
+    (dolist (elt char-syntax-alist)
+      (modify-syntax-entry (car elt) " " TeX-search-syntax-table))
     ;; Now set what we got.
-    (dolist (item args)
-      (modify-syntax-entry item (cdr (assoc item char-syntax-alist))
+    (dolist (elt args)
+      (modify-syntax-entry elt (cdr (assoc elt char-syntax-alist))
 			   TeX-search-syntax-table))
     ;; Return the syntax table.
     TeX-search-syntax-table))
   (require 'reporter)
   (reporter-submit-bug-report
    "auc-tex@sunsite.dk"
-   (concat "AUCTeX " AUCTeX-version)
+   (concat "AUCTeX " AUCTeX-version
+	   (if (string-match "^CVS-" AUCTeX-version)
+	       (format " (%s)" AUCTeX-date)
+	     ""))
    (list 'window-system
 	 'LaTeX-version
 	 'TeX-style-path

File texi/auctex.texi

 @titlepage
 @title @AUCTeX{}
 @subtitle A much enhanced @TeX{}/@LaTeX{} mode for Emacs.
-@subtitle Version 11.54
+@subtitle Version 11.55
 
 @author by Kresten Krab Thorup
 @author updates from 6.1 to 11.13 by Per Abrahamsen
 @AUCTeX{} is an integrated environment for editing @LaTeX{} and
 @TeX{} files.
 
-This file documents @AUCTeX{} version 11.54.
+This file documents @AUCTeX{} version 11.55.
 
 Although @AUCTeX{} contains a large number of features, there are no
 reasons to despair.  You can continue to write @TeX{} and @LaTeX{}
 
 @end ifnottex
 
+@ifnothtml
 @shortcontents
 @contents
+@end ifnothtml
 
 @menu
 * Copying::                     Copying
 
 Sectioning commands are macros like @samp{\chapter} or @samp{\section}.
 For these commands there are two fontification schemes which may be
-selected by customizing the variable @code{font-latex-title-fontity}.
-
-@defopt font-latex-title-fontity
+selected by customizing the variable @code{font-latex-title-fontify}.
+
+@defopt font-latex-title-fontify
 Per default sectioning commands will be shown in a larger, proportional
 font, which corresponds to the value @samp{height} for this variable.
 The font size varies with the sectioning level, e.g. @samp{\part} will
 @cindex ISO 8859 Latin 2
 @cindex Latin 2
 @cindex ANSI
+
+First you will need a way to write non-ASCII characters.  You can either
+use macros, or teach @TeX{} about the ISO character sets.  I prefer the
+latter, it has the advantage that the usual standard emacs word
+movement and case change commands will work.
+
+With @LaTeX{}2e, just add @samp{\usepackage[latin1]@{inputenc@}}.  Other
+languages than Western European ones will probably have other encoding
+needs.
+
+To be able to display non-ASCII characters you will need an appropriate
+font and a version of GNU Emacs capable of displaying 8-bit characters
+(e.g. Emacs 21).  The manner in which this is supported differs between
+Emacsen, so you need to take a look at your respective documentation.
+
+A compromise is to use an European character set when editing the file,
+and convert to @TeX{} macros when reading and writing the files.
+
+@table @file
+@item iso-cvt.el
+@cindex @file{iso-cvt.el}
+Much like @file{iso-tex.el} but is bundled with Emacs 19.23 and later.
+
+@item x-compose.el
+@cindex @file{x-compose.el}
+Similar package bundled with new versions of XEmacs.
+
+@item X-Symbol
+@cindex X-Symbol
+a much more complete package for both Emacs and XEmacs that can also
+handle a lot of mathematical characters and input methods.
+
+@end table
+
+@cindex ispell
+@AUCTeX{} supports style files for several languages.  Each style file
+may modify @AUCTeX{} to better support the language, and will run
+a language specific hook that will allow you to for example change
+ispell dictionary, or run code to change the keyboard remapping.  The
+following will for example choose a Danish dictionary for documents
+including @samp{\usepackage[danish]@{babel@}}.
+This requires parsing to be enabled, @pxref{Parsing Files}.
+
+@lisp
+(add-hook 'TeX-language-dk-hook
+	  (function (lambda () (ispell-change-dictionary "danish"))))
+@end lisp
+
+The following style files are recognized.
+@c In alphabetic order of the hooks:
+@vindex TeX-language-cz-hook
+@vindex TeX-language-dk-hook
+@vindex TeX-language-nl-hook
+@vindex TeX-language-de-hook
+@vindex TeX-language-it-hook
+@vindex TeX-language-pl-hook
+@vindex TeX-language-sk-hook
+@vindex TeX-language-sv-hook
+@cindex Czech
+@cindex Italy
 @cindex Denmark
 @cindex Danish
 @cindex Holland
 @cindex Dutch
 @cindex Germany
 @cindex Poland
-
-First you will need a way to write non-ASCII characters.  You can either
-use macros, or teach @TeX{} about the ISO character sets.  I prefer the
-latter, it has the advantage that the usual standard emacs word
-movement and case change commands will work.
-
-With @LaTeX{}2e, just add @samp{\usepackage[latin1]@{inputenc@}}.  Other
-languages than Western European ones will probably have other encoding
-needs.
-
-To be able to display non-ASCII characters you will need an appropriate
-font and a version of GNU Emacs capable of displaying 8-bit characters
-(e.g. Emacs 21).  The manner in which this is supported differs between
-Emacsen, so you need to take a look at your respective documentation.
-
-A compromise is to use an European character set when editing the file,
-and convert to @TeX{} macros when reading and writing the files.
-
+@cindex Slovakia
+@cindex Sweden
 @table @file
-@item iso-cvt.el
-@cindex @file{iso-cvt.el}
-Much like @file{iso-tex.el} but is bundled with Emacs 19.23 and later.
-
-@item x-compose.el
-@cindex @file{x-compose.el}
-Similar package bundled with new versions of XEmacs.
-
-@item X-Symbol
-@cindex X-Symbol
-a much more complete package for both Emacs and XEmacs that can also
-handle a lot of mathematical characters and input methods.
-
-@end table
-
-@AUCTeX{} supports style files for several languages.  Each style file
-may modify some @AUCTeX{} to better support the language, and will run
-a language specific hook that will allow you to for example change
-ispell dictionary, or run code to change the keyboard remapping.  The
-following will for example choose a Danish dictionary for documents
-including the @file{dk.sty} file.  This requires parsing to be enabled,
-@pxref{Parsing Files}.
-
-@lisp
-(add-hook 'TeX-language-dk-hook
-	  (function (lambda () (ispell-change-dictionary "danish"))))
-@end lisp
-
-The following style files are recognized.
-@table @file
-@item dk
-Runs style hook @code{TeX-language-dk-hook}.
+@item czech
+Runs style hook @code{TeX-language-cz-hook}.  Pressing @key{"} will
+insert @samp{\uv@{} and @samp{@}} depending on context.
+
+@c Is the difference between dk and danish really intented?
+@item danish
+Runs style hook @code{TeX-language-dk-hook}.  Pressing @key{"} will
+insert @samp{"`} and @samp{"'} depending on context.
+@c dk.sty seems to be obsolete, so we don't want to encourage using it.
+@c @item dk
+@c Runs style hook @code{TeX-language-dk-hook}.
 
 @item dutch
 Runs style hook @code{TeX-language-nl-hook}.
 
 @item german
+@itemx ngerman
 Runs style hook @code{TeX-language-de-hook}.  Gives @samp{"} word
 syntax, makes the @key{"} key insert a literal @samp{"}, and pressing it
 twice will give you opening or closing german quotes (@samp{"`} or
 
 @item italian
 Runs style hook @code{TeX-language-it-hook}.  Pressing @key{"} will
-insert @samp{"<} and @samp{">} depending on context.
+insert @samp{"<} (@code{LaTeX-italian-open-quote}) and @samp{">}
+(@code{LaTeX-italian-close-quote}) depending on context.
 
 @item plfonts
 @itemx plhb
 Gives  @samp{"} word syntax and makes the @key{"} key insert a literal
 @samp{"}.  Pressing @key{"} twice will insert @samp{"<} or @samp{">}
 depending on context.
+
+@item slovak
+Runs style hook @code{TeX-language-sk-hook}.  Pressing @key{"} will
+insert @samp{\uv@{} and @samp{@}} depending on context.
+
+@item swedish
+Runs style hook @code{TeX-language-sv-hook}.  Pressing @key{"} will
+insert @samp{''}.
 @end table
 
 @node Japanese

File texi/changes.texi

 
 @end ifset
 
+@heading News in 11.55
+
+@itemize @bullet
+@item
+A bug was fixed which lead to the insertion of trailing whitespace
+during filling.  In particular extra spaces were added to sentence
+endings at the end of lines.  You can make this whitespace visible by
+setting the variable @code{show-trailing-whitespace} to @code{t}.  If
+you want to delete all trailing whitespace in a buffer, type @kbd{M-x
+delete-trailing-whitespace RET}.
+
+@item
+A bug was fixed which lead to a @samp{*Compile-Log*} buffer popping up
+when the first @LaTeX{} file was loaded in an Emacs session.
+
+@item
+On some systems the presence of an outdated Emacspeak package lead to
+the error message @samp{File mode specification error: (error "Variable
+binding depth exceeds max-specpdl-size")}.  Precautions were added which
+prevent this error from happening.  But nevertheless, it is advised to
+upgrade or uninstall the outdated Emacspeak package.
+
+@item
+The value of @code{TeX-macro-global} is not determined during
+configuration anymore but at load time of @AUCTeX{}.  Consequently the
+associated configuration option @samp{--with-tex-input-dirs} was
+removed.
+
+@item
+Support for the @LaTeX{} Japanese classes @samp{jsarticle} and
+@samp{jsbook} was added.
+@end itemize
+
 @heading News in 11.54
 
 @itemize @bullet
 @item
 Sectioning commands are now shown in a larger font on display devices
 which support such fontification.  The variable
-@code{font-latex-title-fontity} can be customized to restore the old
+@code{font-latex-title-fontify} can be customized to restore the old
 appearance, i.e. the usage of a different color instead of a change in
 size.
 

File texi/install.texi

 path if necessary.
 
 @item --with-lispdir=@var{/dir}
-This tells where to install Emacs Lisp files.  Normally, this option is
+This tells where to install the lisp files, note that most of @AUCTeX{}
+will be installed in a subdirectory. Normally, this option is
 unnecessary, but may be used if you don't like the directory that
 configure is suggesting.
 
 a good value for this option is @file{~/.xemacs/xemacs-packages}, as
 XEmacs looks there for per-user packages by default.
 
-@item --with-tex-input-dirs=@var{"/dir-1/;/dir-2/;...;/dir-N/"}
-This option allows to specify the directories to be used for file
-searches, e.g. for completion of @LaTeX{} or Bib@TeX{} style file names.
-They will be used in the variable @code{TeX-macro-global}.
-
-Normally only the subdirectories @file{tex/} and @file{bibtex/bst/}
-below the used texmf trees should be relevant.  Putting the roots of
-texmf trees here is possible but may slow down file searching.
-
-The directories should be separated by semicolons and each has to end
-with a directory separator, i.e. a slash or a backslash respectively.
-If more than one directory is specified or spaces are used in the name
-of a directory the whole string has to be quoted.
-
 @item --with-auto-dir=@var{/dir}
 You can use this option to specify the directory containing
 automatically generated information.  It is not necessary for most

File texi/math-ref.tex

-% -*- plain-tex -*- 
-% $Id$
-% Reference Card for LaTeX Math Minor Mode
-%**start of header
-\newcount\columnsperpage
-
-% This file can be printed with 1, 2, or 3 columns per page (see below).
-% Specify how many you want here.  Nothing else needs to be changed.
-
-\columnsperpage=2
-
-% This file is intended to be processed by plain TeX (TeX82).
-% compile-command: "tex auc-tex-ref.tex"
-
-% Original author of Auc-TeX Reference Card:
-%                                  
-%       Terrence Brannon, PO Box 5027, Bethlehem, PA 18015 , USA
-%  internet: tb06@pl118f.cc.lehigh.edu  (215) 758-1720 (215) 758-2104
-%
-% Kresten Krab Thorup updated the reference card to 6.*
-% Per Abrahamsen updated the reference card to 7.*
-%
-% Thanks to Stephen Gildea
-% Paul Rubin, Bob Chassell, Len Tower, and Richard Mlynarik
-% for creating the GNU Emacs Reference Card from which this was mutated
-
-\def\versionnumber{5.2}
-\def\year{1993}
-\def\version{February \year\ v\versionnumber}
-
-\def\shortcopyrightnotice{\vskip 1ex plus 2 fill
-  \centerline{\small \copyright\ \year\ Free Software Foundation, Inc.
-  Permissions on back.  v\versionnumber}}
-
-\def\copyrightnotice{
-\vskip 1ex plus 2 fill\begingroup\small
-\centerline{Copyright \copyright\ 1987 Free Software Foundation, Inc.}
-\centerline{Copyright \copyright\ 1992 Kresten Krab Thorup}
-\centerline{Copyright \copyright\ \year\ Per Abrahamsen}
-
-Permission is granted to make and distribute copies of
-this card provided the copyright notice and this permission notice
-are preserved on all copies.
-
-\endgroup}
-
-% make \bye not \outer so that the \def\bye in the \else clause below
-% can be scanned without complaint.
-\def\bye{\par\vfill\supereject\end}
-
-\newdimen\intercolumnskip
-\newbox\columna
-\newbox\columnb
-
-\def\ncolumns{\the\columnsperpage}
-
-\message{[\ncolumns\space 
-  column\if 1\ncolumns\else s\fi\space per page]}
-
-\def\scaledmag#1{ scaled \magstep #1}
-
-% This multi-way format was designed by Stephen Gildea
-% October 1986.
-\if 1\ncolumns
-  \hsize 4in
-  \vsize 10in
-  \voffset -.7in
-  \font\titlefont=\fontname\tenbf \scaledmag3
-  \font\headingfont=\fontname\tenbf \scaledmag2
-  \font\smallfont=\fontname\sevenrm
-  \font\smallsy=\fontname\sevensy
-
-  \footline{\hss\folio}
-  \def\makefootline{\baselineskip10pt\hsize6.5in\line{\the\footline}}
-\else
-  \hsize 3.2in
-  \vsize 7.95in
-%  \hoffset -.75in
-%  \voffset -.745in
-  \font\titlefont=cmbx10 \scaledmag2
-  \font\headingfont=cmbx10 \scaledmag1
-  \font\smallfont=cmr6
-  \font\smallsy=cmsy6
-  \font\eightrm=cmr8
-  \font\eightbf=cmbx8
-  \font\eightit=cmti8
-  \font\eighttt=cmtt8
-  \font\eightsy=cmsy8
-  \textfont0=\eightrm
-  \textfont2=\eightsy
-  \def\rm{\eightrm}
-  \def\bf{\eightbf}
-  \def\it{\eightit}
-  \def\tt{\eighttt}
-  \normalbaselineskip=.8\normalbaselineskip
-  \normallineskip=.8\normallineskip
-  \normallineskiplimit=.8\normallineskiplimit
-  \normalbaselines\rm           %make definitions take effect
-
-  \if 2\ncolumns
-    \let\maxcolumn=b
-    \footline{\hss\rm\folio\hss}
-    \def\makefootline{\vskip 2in \hsize=6.86in\line{\the\footline}}
-  \else \if 3\ncolumns
-    \let\maxcolumn=c
-    \nopagenumbers
-  \else
-    \errhelp{You must set \columnsperpage equal to 1, 2, or 3.}
-    \errmessage{Illegal number of columns per page}
-  \fi\fi
-
-  \intercolumnskip=.46in
-  \def\abc{a}
-  \output={%
-      % This next line is useful when designing the layout.
-      %\immediate\write16{Column \folio\abc\space starts with \firstmark}
-      \if \maxcolumn\abc \multicolumnformat \global\def\abc{a}
-      \else\if a\abc
-        \global\setbox\columna\columnbox \global\def\abc{b}
-        %% in case we never use \columnb (two-column mode)
-        \global\setbox\columnb\hbox to -\intercolumnskip{}
-      \else
-        \global\setbox\columnb\columnbox \global\def\abc{c}\fi\fi}
-  \def\multicolumnformat{\shipout\vbox{\makeheadline
-      \hbox{\box\columna\hskip\intercolumnskip
-        \box\columnb\hskip\intercolumnskip\columnbox}
-      \makefootline}\advancepageno}
-  \def\columnbox{\leftline{\pagebody}}
-
-  \def\bye{\par\vfill\supereject
-    \if a\abc \else\null\vfill\eject\fi
-    \if a\abc \else\null\vfill\eject\fi
-    \end}  
-\fi
-
-% we won't be using math mode much, so redefine some of the characters
-% we might want to talk about
-\catcode`\^=12
-\catcode`\_=12
-
-\chardef\\=`\\
-\chardef\{=`\{
-\chardef\}=`\}
-
-\hyphenation{mini-buf-fer}
-
-\parindent 0pt
-\parskip 1ex plus .5ex minus .5ex
-
-\def\small{\smallfont\textfont2=\smallsy\baselineskip=.8\baselineskip}
-
-\outer\def\newcolumn{\vfill\eject}
-
-\outer\def\title#1{{\titlefont\centerline{#1}}\vskip 1ex plus .5ex}
-
-\outer\def\section#1{\par\filbreak
-  \vskip 3ex plus 2ex minus 2ex {\headingfont #1}\mark{#1}%
-  \vskip 2ex plus 1ex minus 1.5ex}
-
-\newdimen\keyindent
-
-\def\beginindentedkeys{\keyindent=1em}
-\def\endindentedkeys{\keyindent=0em}
-\endindentedkeys
-
-\def\paralign{\vskip\parskip\halign}
-
-\def\<#1>{$\langle${\rm #1}$\rangle$}
-
-\def\kbd#1{{\tt#1}\null}        %\null so not an abbrev even if period follows
-
-\def\beginexample{\par\leavevmode\begingroup
-  \obeylines\obeyspaces\parskip0pt\tt}
-{\obeyspaces\global\let =\ }
-\def\endexample{\endgroup}
-
-\def\key#1#2{\leavevmode\hbox to \hsize{\vtop
-  {\hsize=.75\hsize\rightskip=1em
-  \hskip\keyindent\relax#1}\kbd{#2}\hfil}}
-
-\newbox\metaxbox
-\setbox\metaxbox\hbox{\kbd{M-x }}
-\newdimen\metaxwidth
-\metaxwidth=\wd\metaxbox
-
-\def\metax#1#2{\leavevmode\hbox to \hsize{\hbox to .75\hsize
-  {\hskip\keyindent\relax#1\hfil}%
-  \hskip -\metaxwidth minus 1fil
-  \kbd{#2}\hfil}}
-
-\def\threecol#1#2#3{\hskip\keyindent\relax#1\hfil&\kbd{#2}\quad
-  &\kbd{#3}\quad\cr}
-
-%**end of header
-
-
-\title{Math Mode Reference Card}
-
-\section{Variables}
-
-All math mode commands are under the prefix key specified by
-LaTeX-math-abbrev-prefix, default is "`".
-
-You can define your own math mode commands by setting the variable
-LaTeX-math-list before loading LaTeX-math-mode.
-
-\section{Greek Letters}
-
-\def\disp#1{\hbox to 6ex{$#1$\hfill}}
-\key{\disp{\alpha} (alpha)}{a}
-\key{\disp{\beta} (beta)}{b}
-\key{\disp{\delta} (delta)}{d}
-\key{\disp{\epsilon} (epsilon)}{e}
-\key{\disp{\phi} (phi)}{f}
-\key{\disp{\gamma} (gamma)}{g}
-\key{\disp{\eta} (eta)}{h}
-\key{\disp{\kappa} (kappa)}{k}
-\key{\disp{\lambda} (lambda)}{l}
-\key{\disp{\mu} (mu)}{m}
-\key{\disp{\nabla} (nabla)}{N}
-\key{\disp{\nu} (nu)}{n}
-\key{\disp{\omega} (omega)}{o}
-\key{\disp{\pi} (pi)}{p}
-\key{\disp{\theta} (theta)}{q}
-\key{\disp{\rho} (rho)}{r}
-\key{\disp{\sigma} (sigma)}{s}
-\key{\disp{\tau} (tau)}{t}
-\key{\disp{\upsilon} (upsilon)}{u}
-\key{\disp{\chi} (chi)}{x}
-\key{\disp{\psi} (psi)}{y}
-\key{\disp{\zeta} (zeta)}{z}
-\key{\disp{\Delta} (Delta)}{D}
-\key{\disp{\Phi} (Phi)}{F}
-\key{\disp{\Gamma} (Gamma)}{G}
-\key{\disp{\Theta} (Theta)}{Q}
-\key{\disp{\Lambda} (Lambda)}{L}
-\key{\disp{\Psi} (Psi)}{Y}
-\key{\disp{\Pi} (Pi)}{P}
-\key{\disp{\Sigma} (Sigma)}{S}
-\key{\disp{\Upsilon} (Upsilon)}{U}
-\key{\disp{\Omega} (Omega)}{O}
-
-\section{Symbols}
-
-\key{\disp{\rightarrow} (rightarrow)}{C-f}
-\key{\disp{\leftarrow} (leftarrow)}{C-b}
-\key{\disp{\uparrow} (uparrow)}{C-p}
-\key{\disp{\downarrow} (downarrow)}{C-n}
-\key{\disp{\leq} (leq)}{<}
-\key{\disp{\geq} (geq)}{>}
-\key{\disp{\tilde{ }} (tilde)}{$\tilde{ }$}
-\key{\disp{\infty} (infty)}{I}
-\key{\disp{\forall} (forall)}{A}
-\key{\disp{\exists} (exists)}{E}
-\key{\disp{\not } (not)}{/}
-\key{\disp{\in} (in)}{i}
-\key{\disp{\times} (times)}{*}
-\key{\disp{\cdot} (cdot)}{.}
-\key{\disp{\subset} (subset)}{\{}
-\key{\disp{\supset} (supset)}{\}}
-\key{\disp{\subseteq} (subseteq)}{[}
-\key{\disp{\supseteq} (supseteq)}{]}
-\key{\disp{\emptyset} (emptyset)}{0}
-\key{\disp{\setminus} (setminus)}{\\}
-\key{\disp{\cup} (cup)}{+}
-\key{\disp{\cap} (cap)}{-}
-\key{\disp{\langle} (langle)}{(}
-\key{\disp{\rangle} (rangle)}{)}
-\key{\disp{\exp} (exp)}{C-e}
-\key{\disp{\sin} (sin)}{C-s}
-\key{\disp{\cos} (cos)}{C-c}
-\key{\disp{\sup} (sup)}{C-^}
-\key{\disp{\inf} (inf)}{C-_}
-\key{\disp{\det} (det)}{C-d}
-\key{\disp{\lim} (lim)}{C-l}
-\key{\disp{\tan} (tan)}{C-t}
-\key{\disp{\hat{ }} (hat)}{^}
-\key{\disp{\vee} (vee)}{|}
-\key{\disp{\wedge} (wedge)}{\&}
-
-\section{Miscellaneous}
-
-\key{cal letters}{c {\rm LETTER}}
-
-\copyrightnotice
-
-\bye
-
-% End:
-

File texi/tex-ref.tex

 % -*- plain-tex -*- 
-% Reference Card for AUCTeX version 11.54
+% Reference Card for AUCTeX version 11.55
 %**start of header
 \newcount\columnsperpage
 
 % Paul Rubin, Bob Chassell, Len Tower, and Richard Mlynarik
 % for creating the GNU Emacs Reference Card from which this was mutated
 
-\def\versionnumber{11.54}
+\def\versionnumber{11.55}
 \def\year{2004}
 \def\version{August \year\ v\versionnumber}
 
 
 \key{Toggle folding mode}{C-c C-o C-f}
 \key{Hide all items in buffer}{C-c C-o C-b}
+\key{Hide all items in region}{C-c C-o C-r}
+\key{Hide all items in paragraph}{C-c C-o C-p}
 \key{Hide current macro}{C-c C-o C-m}
 \key{Hide current environment}{C-c C-o C-e}
-\key{Show all items in buffer permanently}{C-c C-o C-x}
-\key{Show current item permanently}{C-c C-o C-c}
+\key{Show all items in buffer}{C-c C-o b}
+\key{Show all items in region}{C-c C-o r}
+\key{Show all items in paragraph}{C-c C-o p}
+\key{Show current item}{C-c C-o i}
+\key{Hide or show current item}{C-c C-o C-o}
 
 \copyrightnotice
 \penalty-9000

File texi/todo.texi

 Suggest @samp{makindex} when appropriate.
 
 @item
-@AUCTeX{} should be able to parse @LaTeX{}2e @file{.cls} files.  Here
-are the regexps by @samp{<thiemann@@informatik.uni-tuebingen.de>} Peter
-Thiemann.
-
-@example
-     ("\\\\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)
-@end example
-
-@item
 Use index files (when available) to speed up @kbd{C-c C-m include
 @key{RET}}.
 

File texi/wininstall.texi

 which gives the location of the package directory for XEmacs where stuff
 should be installed. Again, hopefully this is not necessary to specify.
 
-@item --with-tex-input-dirs=@var{"/dir-1/;/dir-2/;...;/dir-N/"}
-This option allows to specify the directories to be used for file
-searches, e.g. for completion of LaTeX or BibTeX style file names.  They
-will be used in the variable @code{TeX-macro-global}.
-
-@command{configure} will usually figure out the right value for this option
-but will only succeed if it finds the necessary programs of the @TeX{}
-system in the system path.  Which should be there for running @AUCTeX{},
-anyway.
-
 @item --with-auto-dir=@var{/dir}
 Directory containing automatically generated information.  You should
 not normally need to set this, as @samp{--prefix} should take care of