diff -Nru auctex-11.88/aclocal.m4 auctex-11.90/aclocal.m4 --- auctex-11.88/aclocal.m4 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/aclocal.m4 2017-01-10 21:35:28.000000000 +0000 @@ -93,21 +93,39 @@ ]) AC_DEFUN(AC_DATE_VERSION_FROM_CHANGELOG, [ -AC_MSG_CHECKING([for date in ChangeLog]) -$1=[`sed -n '1s/^\([-0-9][-0-9]*\).*/\1/p' "$3"`] +AC_MSG_CHECKING([for date with git]) +$1=[`git log -1 --date=short --format=%cd 2> /dev/null`] if test "X${$1}" = X then - AC_MSG_ERROR([[not found]]) + AC_MSG_RESULT([git not found, checking for date in ChangeLog:]) + $1=[`sed -n '1s/^\([-0-9][-0-9]*\).*/\1/p' "$3"`] + if test "X${$1}" = X + then + AC_MSG_ERROR([[not found]]) + fi fi AC_MSG_RESULT(${$1}) -AC_MSG_CHECKING([for release in ChangeLog]) -$2=[`sed -n '2,/^[0-9]/s/.*Version \(.*\) released\..*/\1/p' "$3"`] -if test "X${$2}" = X + +AC_MSG_CHECKING([for release with git]) +if git describe --tags > /dev/null 2> /dev/null then - $2=${$1} - AC_MSG_RESULT([not found, using ${$2} instead]) + if test "X`git describe --tags | sed 's/release_.._..//'`" = X + then + $2=[`git describe --tags`] + else + $2=${$1} + AC_MSG_RESULT([not found, using ${$2} instead]) + fi else - AC_MSG_RESULT([${$2}]) + AC_MSG_RESULT([git not found, checking for release in ChangeLog:]) + $2=[`sed -n '2,/^[0-9]/s/.*Version \(.*\) released\..*/\1/p' "$3"`] + if test "X${$2}" = X + then + $2=${$1} + AC_MSG_RESULT([not found, using ${$2} instead]) + else + AC_MSG_RESULT([${$2}]) + fi fi ]) diff -Nru auctex-11.88/bib-cite.el auctex-11.90/bib-cite.el --- auctex-11.88/bib-cite.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/bib-cite.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,8 +1,8 @@ ;;; bib-cite.el --- test ;; bib-cite.el - Display \cite, \ref or \label / Extract refs from BiBTeX file. -;; Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2003, 2004, 2005 -;; Free Software Foundation +;; Copyright (C) 1994-1999, 2001, 2003-2005, 2014 +;; Free Software Foundation, Inc. ;; Author: Peter S. Galbraith ;; Created: 06 July 1994 @@ -724,9 +724,6 @@ "*Regular expression for \\ref LaTeX commands that have a matching \\label. A opening curly bracket is appended to the regexp.") -(defvar bib-cite-is-XEmacs - (not (null (save-match-data (string-match "XEmacs\\|Lucid" emacs-version))))) - (defvar bib-cite-minor-mode nil) (defvar bib-highlight-mouse-keymap (make-sparse-keymap) @@ -762,11 +759,11 @@ (progn (bib-cite-setup-highlight-mouse-keymap) (bib-highlight-mouse) - (when bib-cite-is-XEmacs + (when (featurep 'xemacs) (make-local-hook 'after-change-functions)) (add-hook 'after-change-functions 'bib-cite-setup-mouse-function nil t))) - (if bib-cite-is-XEmacs + (if (featurep 'xemacs) (progn (or (local-variable-p 'current-menubar (current-buffer)) (set-buffer-menubar current-menubar)) @@ -775,7 +772,7 @@ ;;;Undo the minor-mode ;; mouse overlay (cond - (bib-cite-is-XEmacs + ((featurep 'xemacs) (while bib-ext-list (delete-extent (car bib-ext-list)) (setq bib-ext-list (cdr bib-ext-list)))) @@ -786,7 +783,7 @@ ;; FIXME Hope no other package is using them in this buffer! (remove-text-properties (point-min) (point-max) '(mouse-face t local-map t))))) - (if bib-cite-is-XEmacs + (if (featurep 'xemacs) (delete-menu-item '("BCite")))))) ;;This must be eval'ed when the LaTeX mode is in use. @@ -803,7 +800,7 @@ ;;; display the bib-cite stuff (or a subset of it). (let ((m (copy-keymap (current-local-map)))) (cond - (bib-cite-is-XEmacs + ((featurep 'xemacs) (set-keymap-name m 'bib-highlight-mouse-keymap) (cond ;;action-key stuff from Vladimir Alexiev @@ -849,7 +846,7 @@ "Unconditionally turn on Bib Cite mode." (bib-cite-minor-mode 1)) -(defun bib-cite-setup-mouse-function (beg end old-len) +(defun bib-cite-setup-mouse-function (beg end _old-len) (save-excursion (save-match-data (save-restriction @@ -893,7 +890,7 @@ ;;; Add a menu entry to bibtex.el (Perhaps I should not do this). (cond - ((and (string-match "XEmacs\\|Lucid" emacs-version) + ((and (featurep 'xemacs) (or window-system (fboundp 'smart-menu))) ;text menus by Bob Weiner ;; @@ -927,7 +924,7 @@ (add-hook 'bibtex-mode-hook 'bib-cite-bibtex-mode-hook)) ) - ((and (not (string-match "XEmacs\\|Lucid" emacs-version)) + ((and (not (featurep 'xemacs)) (string-equal "19" (substring emacs-version 0 2)) (or window-system (fboundp 'tmm-menubar))) ; 19.30 - Will autoload if necessary @@ -1005,6 +1002,16 @@ "^[, \t]*[a-zA-Z]+[ \t]*=[ \t]*\\([a-zA-Z][^#%'(),={}\" \t\n]*\\)" "Regular expression for field containing a @string.") +(defun bib-cite--kind () + (save-excursion + (if (not (looking-at "\\\\")) + (search-backward "\\" nil t)) + (if (looking-at bib-ref-regexpc) + 'ref + (if (looking-at "\\\\label{") + 'label + 'cite)))) + (defun bib-display () "Display BibTeX citation or matching \\ref or \\label command under point. @@ -1026,23 +1033,15 @@ A TAGS file is created and used for multi-file documents under auctex." (interactive) - (let ((cite)(ref)(label)) - (save-excursion - (if (not (looking-at "\\\\")) - (search-backward "\\" nil t)) - (if (looking-at bib-ref-regexpc) - (setq ref t) - (if (looking-at "\\\\label{") - (setq label t) - (setq cite t)))) + (let ((kind (bib-cite--kind))) (cond ;; reftex doesn't handle label->ref ((and bib-cite-use-reftex-view-crossref - (or ref cite)) + (memq kind '(ref cite))) ;;;FIXME: reftex doesn't want point on \ref or \cite part, but on keyword (require 'reftex) (reftex-view-crossref nil)) - (cite + ((eq kind 'cite) (bib-display-citation)) (t (bib-display-label))))) @@ -1067,22 +1066,14 @@ A TAGS file is created and used for multi-file documents under auctex." (interactive) - (let ((cite)(ref)(label)) - (save-excursion - (if (not (looking-at "\\\\")) - (search-backward "\\" nil t)) - (if (looking-at bib-ref-regexpc) - (setq ref t) - (if (looking-at "\\\\label{") - (setq label t) - (setq cite t)))) + (let ((kind (bib-cite--kind))) (cond ;; reftex doesn't handle label->ref ((and bib-cite-use-reftex-view-crossref - (or ref cite)) + (memq kind '(ref cite))) (require 'reftex) (reftex-view-crossref t)) - (cite + ((eq kind 'cite) (bib-edit-citation)) (t (bib-find-label))))) @@ -1160,7 +1151,7 @@ (if (not the-text) (message "Sorry, no matches found.") (with-output-to-temp-buffer "*Help*" - (mapcar 'princ (nreverse the-text))) + (mapc #'princ (nreverse the-text))) (bib-cite-fontify-help-as-bibtex) (if bib-novice (message @@ -1236,53 +1227,57 @@ (put-text-property (point-min)(or limit (point-max)) 'face 'red-bold)))) -(defun bib-cite-fontify-help-xemacs (defaults) - (if (fboundp 'font-lock-set-defaults-1) ; >= XEmcas 19.14 - (progn - (set-buffer "*Help*") - (setq font-lock-defaults-computed nil - font-lock-keywords nil) - (font-lock-set-defaults-1 - (and defaults (font-lock-find-font-lock-defaults defaults))) - (font-lock-fontify-buffer) - (setq font-lock-defaults-computed nil - font-lock-keywords nil) - (font-lock-set-defaults-1)))) +(when (featurep 'xemacs) + (defun bib-cite-fontify-help-xemacs (defaults) + (if (fboundp 'font-lock-set-defaults-1) ; >= XEmacs 19.14 + (with-current-buffer "*Help*" + (setq font-lock-defaults-computed nil + font-lock-keywords nil) + (font-lock-set-defaults-1 + (and defaults (font-lock-find-font-lock-defaults defaults))) + (font-lock-fontify-buffer) + (setq font-lock-defaults-computed nil + font-lock-keywords nil) + (font-lock-set-defaults-1))))) + +(defun bib-cite--fontify-help () + ;; FIXME: This looks ugly and incorrect. + (if font-lock-mode + (font-lock-mode -1) + (if (fboundp 'font-lock-unset-defaults) (font-lock-unset-defaults)) + (font-lock-unfontify-buffer)) + (if (fboundp 'font-lock-ensure) + (font-lock-ensure) + (with-no-warnings (font-lock-fontify-buffer)))) (defun bib-cite-fontify-help-as-bibtex () - (save-excursion - (cond - ((not (featurep 'font-lock)) - nil) ;No font-lock! Stop here. - ;; font-lock under Emacs and XEmacs - ((string-match "XEmacs\\|Lucid" emacs-version) - ;; XEmacs - (bib-cite-fontify-help-xemacs 'bibtex-mode)) - (t - ;; Emacs - (set-buffer "*Help*") + (cond + ((not (featurep 'font-lock)) + nil) ;No font-lock! Stop here. + ;; font-lock under Emacs and XEmacs + ((featurep 'xemacs) + ;; XEmacs + (bib-cite-fontify-help-xemacs 'bibtex-mode)) + (t + ;; Emacs + (with-current-buffer "*Help*" (let ((font-lock-defaults - '(bib-cite-bibtex-font-lock-keywords - nil t ((?$ . "\"")(?\" . "."))))) - (if font-lock-mode - (font-lock-mode) - (if (fboundp 'font-lock-unset-defaults) (font-lock-unset-defaults)) - (font-lock-unfontify-buffer)) - (font-lock-fontify-buffer)))))) + '(bib-cite-bibtex-font-lock-keywords + nil t ((?$ . "\"")(?\" . "."))))) + (bib-cite--fontify-help)))))) (defun bib-cite-fontify-help-as-latex () - (save-excursion - (cond - ((not (featurep 'font-lock)) - nil) ;No font-lock! Stop here. - ;; font-lock under Emacs and XEmacs - ((string-match "XEmacs\\|Lucid" emacs-version) - ;; XEmacs, not necessary to do s.th. special for font-latex, we do *not* - ;; want the buffer-local faces! - (bib-cite-fontify-help-xemacs 'latex-mode)) - (t - ;; Emacs - (set-buffer "*Help*") + (cond + ((not (featurep 'font-lock)) + nil) ;No font-lock! Stop here. + ;; font-lock under Emacs and XEmacs + ((featurep 'xemacs) + ;; XEmacs, not necessary to do s.th. special for font-latex, we do *not* + ;; want the buffer-local faces! + (bib-cite-fontify-help-xemacs 'latex-mode)) + (t + ;; Emacs + (with-current-buffer "*Help*" ;; Actually, don't want to `permanently' affect *Help* buffer... ;;(if (featurep 'font-latex) ;; (font-latex-setup) @@ -1298,11 +1293,7 @@ (font-lock-comment-start-regexp . "%") (font-lock-mark-block-function . mark-paragraph)) '(tex-font-lock-keywords nil nil ((?$ . "\"")))))) - (if font-lock-mode - (font-lock-mode) - (if (fboundp 'font-lock-unset-defaults) (font-lock-unset-defaults)) - (font-lock-unfontify-buffer)) - (font-lock-fontify-buffer)))))) + (bib-cite--fontify-help)))))) (defvar bib-document-TeX-files-warnings nil "Bib-cite internal variable.") @@ -1347,7 +1338,7 @@ ;; tags-file-name set. ;; To get around this. I'm setting this variable in the TAGS buffer. ;; Skip this in XEmacs (Changed by Anders Stenman) - (if (and (not (string-match "XEmacs\\|Lucid" emacs-version)) + (if (and (not (featurep 'xemacs)) (get-file-buffer the-tags-file)) (with-current-buffer (get-file-buffer the-tags-file) (set (make-local-variable 'tags-file-name) the-tags-file)))) @@ -1374,15 +1365,15 @@ (defun bib-highlight-mouse () "Make that nice green highlight when the mouse is over LaTeX commands." (interactive) -;;;Comment this out. User should be able to use bib-highlight-mouse -;;;to try it out regardless of bib-highlight-mouse-t. -;;;Check bib-highlight-mouse-t only in automated cases. -;;; -;;; (if (and bib-highlight-mouse-t -;;; ;;window-system) ;Do nothing unless under X -;;; ) -;;; *all of code was here* -;;; ) + ;;Comment this out. User should be able to use bib-highlight-mouse + ;;to try it out regardless of bib-highlight-mouse-t. + ;;Check bib-highlight-mouse-t only in automated cases. + ;; + ;; (if (and bib-highlight-mouse-t + ;; ;;window-system) ;Do nothing unless under X + ;; ) + ;; *all of code was here* + ;; ) (save-excursion (let ((s)(e)(extent)(local-extent-list bib-ext-list) (inhibit-read-only t) @@ -1390,7 +1381,7 @@ ;; * peta Wed Nov 8 16:27:29 1995 -- better remove the mouse face ;; properties first. (setq bib-ext-list nil) ;Reconstructed below... - (if (string-match "XEmacs\\|Lucid" emacs-version) + (if (featurep 'xemacs) (while local-extent-list (setq extent (car local-extent-list)) (if (or (extent-detached-p extent) @@ -1415,7 +1406,7 @@ (setq s (match-beginning 0)) (setq e (match-end 0)) (cond - ((string-match "XEmacs\\|Lucid" emacs-version) + ((featurep 'xemacs) (setq extent (make-extent s e)) (setq bib-ext-list (cons extent bib-ext-list)) (set-extent-property extent 'highlight t) @@ -1427,11 +1418,11 @@ (let ((before-change-functions) (after-change-functions) ;;(this-overlay (make-overlay s e)) ) -;;; Even using overlays doens't help here. If bib-highlight-mouse-keymap -;;; does not include the AucTeX menus, then these disappear when we click -;;; onto a \cite command. Perhaps using bib-cite as a minor mode will fix -;;; this? For now, bib-cite must be loaded after these menus are built. -;;; It must therefore be loaded in a mode-hook. +;;; Even using overlays doesn't help here. If bib-highlight-mouse-keymap +;;; does not include the AucTeX menus, then these disappear when we click +;;; onto a \cite command. Perhaps using bib-cite as a minor mode will fix +;;; this? For now, bib-cite must be loaded after these menus are built. +;;; It must therefore be loaded in a mode-hook. (put-text-property s e 'local-map bib-highlight-mouse-keymap) (put-text-property s e 'mouse-face 'highlight) ;;(overlay-put this-overlay 'local-map bib-highlight-mouse-keymap) @@ -1448,7 +1439,7 @@ (let ((modified (buffer-modified-p)) (inhibit-read-only t)) (cond - ((string-match "XEmacs\\|Lucid" emacs-version) + ((featurep 'xemacs) (while bib-ext-list (delete-extent (car bib-ext-list)) (setq bib-ext-list (cdr bib-ext-list)))) @@ -1462,8 +1453,8 @@ (if bib-label-help-echo-format (bib-label-help object bib-label-help-echo-format))) -;;; Balloon-help callback. Anders Stenman -;;; Patched by Bruce Ravel +;; Balloon-help callback. Anders Stenman +;; Patched by Bruce Ravel (defun bib-label-help (object &optional format) (or format (setq format "Use mouse button 2 to find the %s. Use mouse button 3 to display the %s.")) @@ -1655,11 +1646,11 @@ (beginning-of-line) (show-entry))))) -(defvar bib-label-prompt-map nil) -(if bib-label-prompt-map - () - (setq bib-label-prompt-map (copy-keymap minibuffer-local-completion-map)) - (define-key bib-label-prompt-map " " 'self-insert-command)) +(defvar bib-label-prompt-map + (let ((map (make-sparse-keymap))) + (set-keymap-parent map minibuffer-local-completion-map) + (define-key map " " 'self-insert-command) + map)) (defun bib-guess-or-prompt-for-label () "Guess from context, or prompt the user for a label command." @@ -1726,7 +1717,7 @@ (if (looking-at "\n") ;Remove first empty line... (delete-char 1)) (with-output-to-temp-buffer "*Help*" - (princ (buffer-substring 1 (point-max)))) + (princ (buffer-substring (point-min) (point-max)))) (bib-cite-fontify-help-as-latex) (kill-buffer "*BiBTemp*")) (t @@ -1788,7 +1779,7 @@ (goto-char the-point) (if (re-search-backward ;;; "\\(^\\|\^M\\)[ \t]*\\\\\\(sub\\)*section{\\([^}]*\\)}" nil t) -;;; Michael Steiner patch +;;; Michael Steiner patch "\\(^\\|\^M\\)[ \t]*\\\\\\(\\(sub\\)*section\\|chapter\\|part\\)\\*?\ {\\([^}]*\\)}" nil t) @@ -1808,10 +1799,10 @@ '((\"label3\") (\"label4\") (\"label1\") (\"label2\") (\"label\"))" (mapcar 'list (bib-cite-mh-list-to-string the-list))) -;;; -;;; Following two functions from mh-utils.el (part of GNU emacs) -;;; I have changed the names in case these functions change what they do. -;;; +;; +;; Following two functions from mh-utils.el (part of GNU emacs) +;; I have changed the names in case these functions change what they do. +;; (defun bib-cite-mh-list-to-string (l) "Flattens the list L and make every element of the new list into a string." @@ -2004,7 +1995,7 @@ ;; Return the warnings... the-warnings)) -;;; Following contributed by Michael Steiner The +;; Following contributed by Michael Steiner The ;; @string abbreviation are not case-sensitive, so we replaced the `member' ;; test above with `member-cis' defined here: (defun member-cis (ELT LIST) @@ -2175,8 +2166,7 @@ (let* ((masterfile (bib-master-file)) (dir (and masterfile (file-name-directory masterfile))) (tex-buffer (get-buffer-create "*tex-document*")) - (the-list (list masterfile)) - (the-file)) + (the-list (list masterfile))) (if (not masterfile) (progn (kill-buffer tex-buffer) @@ -2259,7 +2249,7 @@ (insert-file-contents auxfile)))) (goto-char 1) -;;; Patched by calvanes@dis.uniroma1.it (Diego Calvanese) +;;; Patched by calvanes@dis.uniroma1.it (Diego Calvanese) ;;; ;; look for \citation{gertsenshtein59} ;;; (while (re-search-forward "^\\\\citation{\\(.*\\)}$" nil t) ;;; (intern (buffer-substring (match-beginning 1)(match-end 1)) @@ -2307,7 +2297,7 @@ ;; find-tag-noselect should set the TAGS file for the new buffer ;; that's what C-h f visit-tags-table says... (cond - ((string-match "XEmacs\\|Lucid" emacs-version) + ((featurep 'xemacs) (find-tag tag) (setq new-buffer (current-buffer)) (set-buffer the-buffer)) @@ -2420,6 +2410,10 @@ (setq doNext nil))) (mapcar 'list the-list))))) +(defvar TeX-auto-save) +(defvar TeX-auto-update) +(defvar TeX-auto-regexp-list) + ;; BibTeX-mode key def to create AUCTeX's parsing file. (defun bib-create-auto-file () "Force the creation of the AUCTeX auto file for a bibtex buffer." @@ -2427,8 +2421,8 @@ (if (not (require 'latex)) (error "Sorry, This is only useful if you have AUCTeX")) (let ((TeX-auto-save t) - (TeX-auto-update t) - (TeX-auto-regexp-list BibTeX-auto-regexp-list)) + (TeX-auto-update t) + (TeX-auto-regexp-list BibTeX-auto-regexp-list)) ;; TeX-auto-write ;; -> calls TeX-auto-store ;; -> calls TeX-auto-parse @@ -2524,19 +2518,19 @@ match)) -;;; (defun psg-checkfor-file-list (filename list) -;;; (let ((the-list list) -;;; (filespec)) -;;; (while the-list -;;; (if (not (car the-list)) ; it is nil -;;; (setq filespec (concat "~/" filename)) -;;; (setq filespec -;;; (concat (file-name-as-directory (car the-list)) filename))) -;;; (if (file-exists-p filespec) -;;; (setq the-list nil) -;;; (setq filespec nil) -;;; (setq the-list (cdr the-list)))) -;;; filespec)) +;; (defun psg-checkfor-file-list (filename list) +;; (let ((the-list list) +;; (filespec)) +;; (while the-list +;; (if (not (car the-list)) ; it is nil +;; (setq filespec (concat "~/" filename)) +;; (setq filespec +;; (concat (file-name-as-directory (car the-list)) filename))) +;; (if (file-exists-p filespec) +;; (setq the-list nil) +;; (setq filespec nil) +;; (setq the-list (cdr the-list)))) +;; filespec)) (or (fboundp 'dired-replace-in-string) ;; This code is part of GNU emacs diff -Nru auctex-11.88/ChangeLog auctex-11.90/ChangeLog --- auctex-11.88/ChangeLog 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/ChangeLog 1970-01-01 00:00:00.000000000 +0000 @@ -1,16487 +0,0 @@ -2014-10-29 Mosè Giordano - - * Version 11.88 released. - -2014-10-29 Matthew Leach - - * latex.el (LaTeX-indent-environment-list): Remove setter - lambda. - (LaTeX--tabular-like-end): Remove variable. - (LaTeX-indent-tabular): Move setter function from - LaTeX-indent-environment-list to generate tabular-end regex when - called. - -2014-10-29 Mosè Giordano - - * latex.el (LaTeX-largest-level-set): Set `outline-heading-alist' - only if it is bound. - - * .gitignore: Ignore preview/preview.el. - - * Makefile.in (DISTCLEANFILES): Add preview/preview.el. - (release-commit): Write new version announcement also into - preview/ChangeLog. - - * aclocal.m4: Add a third argument to - `AC_DATE_VERSION_FROM_CHANGELOG' specifying the ChangeLog file. - - * configure.ac: Use new third argument of - `AC_DATE_VERSION_FROM_CHANGELOG'. Retrieve preview date and - version from its ChangeLog. Add preview/preview.el to output - files. - -2014-10-22 Mosè Giordano - - * RELEASE: Update AUCTeX version, the new features section, and - the list of contributors. - - * configure.ac: Update AUCTeX version. - - * doc/changes.texi: Mention generic bug fixes for 11.88 release. - - * doc/tex-ref.tex: Update AUCTeX version and copyright years - across the file. - Add now working `TeX-previous-error' key-binding. - - * tex.el: Update copyright year. - - * doc/Makefile.in: Make it possible to build the HTML doc with - `makeinfo' if `texi2html' is not available. Add new - `TEXI2HTML_TOC' variable. - (extradist): Use `TEXI2HTML_TOC'. - (html/$(TEXI2HTML_TOC)): Use `TEXI2HTML_TOC'. Fix splitting - option to HTML engine. Suggested by Norbert Preining. - - * latex.el (LaTeX-newline): Fix for when - `comment-auto-fill-only-comments' is non-nil. Suggested by Piet - van Oostrum. - -2014-10-13 Matthew Leach - - * style/cleveref.el: New file. - -2014-10-02 Ikumi Keita - - * tex.el (featurep): Activate mark in the GNU Emacs version of - TeX-activate-mark instead of being a no-op. - (TeX-insert-dollar): Use set-mark instead of push-mark in order to - avoid duplicate marks. - -2014-10-02 Ikumi Keita - - * texmathp.el (texmathp-tex-commands-default): Move equation* - environment to AMS-LaTeX section. - (texmathp-why): Fix docstring. - -2014-10-02 Ikumi Keita - - * style/amstext.el (LaTeX-amstext-package-options): Rename from - `LaTeX-amstext-package-option'. - -2014-10-02 Ikumi Keita - - * tex-info.el (Texinfo-mark-environment, Texinfo-mark-section) - (Texinfo-mark-node): Use `push-mark' instead of `set-mark'. - - * latex.el (LaTeX-mark-environment): Ditto. - - * context.el (ConTeXt-mark-environment): Ditto. - -2014-09-25 Tassilo Horn - - * latex.el (LaTeX-insert-environment): Pass correct \end buffer - position to hooks in LaTeX-after-insert-env-hooks. - -2014-09-13 Vincent Belaïche - - * latex.el (LaTeX-dialect): Correct doctstring for consistency - with definition of function TeX-add-style-hook. - - * doc/auctex.texi (Simple Style): modify example with - 'TeX-add-style-hook', so that 3rd argument is added. Modify @defun - of 'TeX-add-style-hook' also to document addition of 3rd argument. - -2014-09-11 Vincent Belaïche - - * doc/changes.texi: Add information about style hook labelling by dialect. - - * doc/todo.texi (Bugs): Update Bug #1 about style hook clash. - - * style/xspace.el ("xspace"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/xparse.el ("xparse"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/virtex.el ("virtex"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/verbatim.el ("verbatim"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/varioref.el ("varioref"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/url.el ("url"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/units.el ("units"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/unicode-math.el ("unicode-math"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/ulem.el ("ulem"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/tabulary.el ("tabulary"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/tabularx.el ("tabularx"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/swedish.el ("swedish"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/subfigure.el ("subfigure"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/slovak.el ("slovak"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/slides.el ("slides"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/siunitx.el ("siunitx"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/shortvrb.el ("shortvrb"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/setspace.el ("setspace"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/scrreprt.el ("scrreprt"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/scrpage2.el ("scrpage2"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/scrlttr2.el ("scrlttr2"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/scrbook.el ("scrbook"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/scrbase.el ("scrbase"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/scrartcl.el ("scrartcl"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/ruby.el ("ruby"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/report.el ("report"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/ragged2e.el ("ragged2e"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/pstricks.el ("pstricks"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/pst-slpe.el ("pst-slpe"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/pst-plot.el ("pst-plot"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/pst-node.el ("pst-node"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/pst-grad.el ("pst-grad"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/psfig.el ("psfig"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/prosper.el ("prosper"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/polski.el ("polski"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/polish.el ("polish"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/plhb.el ("plhb"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/plfonts.el ("plfonts"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/plext.el ("plext"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/placeins.el ("placeins"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/pdfsync.el ("pdfsync"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/paralist.el ("paralist"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/nomencl.el ("nomencl"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/nicefrac.el ("nicefrac"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/ngerman.el ("ngerman"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/naustrian.el ("naustrian"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/natbib.el ("natbib"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/nameref.el ("nameref"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/multirow.el ("multirow"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/multind.el ("multind"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/multido.el ("multido"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/multicol.el ("multicol"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/mflogo.el ("mflogo"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/metalogo.el ("metalogo"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/memoir.el ("memoir"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/mdwlist.el ("mdwlist"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/mathtools.el ("mathtools"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/makeidx.el ("makeidx"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/luacode.el ("luacode"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/ltxdoc.el ("ltxdoc"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/ltx-base.el ("ltx-base"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/lscape.el ("lscape"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/longtable.el ("longtable"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/listings.el ("listings"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/lipsum.el ("lipsum"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/lettrine.el ("lettrine"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/letter.el ("letter"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/latexinfo.el ("latexinfo"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/kpfonts.el ("kpfonts"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/kantlipsum.el ("kantlipsum"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/jurabib.el ("jurabib"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/jura.el ("jura"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/jsbook.el ("jsbook"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/jsarticle.el ("jsarticle"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/jreport.el ("jreport"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/jbook.el ("jbook"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/jarticle.el ("jarticle"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/j-report.el ("j-report"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/j-book.el ("j-book"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/j-article.el ("j-article"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/italian.el ("italian"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/inputenc.el ("inputenc"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/index.el ("index"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/imakeidx.el ("imakeidx"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/icelandic.el ("icelandic"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/hyperref.el ("hyperref"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/harvard.el ("harvard"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/graphicx.el ("graphicx"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/graphics.el ("graphics"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/german.el ("german"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/frenchb.el ("frenchb"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/french.el ("french"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/francais.el ("francais"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/footmisc.el ("footmisc"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/fontspec.el ("fontspec"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/foils.el ("foils"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/flashcards.el ("flashcards"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/filecontents.el ("filecontents"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/fancyvrb.el ("fancyvrb"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/fancyref.el ("fancyref"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/fancynum.el ("fancynum"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/fancyhdr.el ("fancyhdr"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/exercise.el ("exercise"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/everysel.el ("everysel"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/epsf.el ("epsf"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/epigraph.el ("epigraph"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/english.el ("english"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/emp.el ("emp"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/dutch.el ("dutch"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/doc.el ("doc"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/dk.el ("dk"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/dinbrief.el ("dinbrief"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/danish.el ("danish"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/czech.el ("czech"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/csquotes.el ("csquotes"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/comment.el ("comment"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/captcont.el ("captcont"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/bulgarian.el ("bulgarian"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/booktabs.el ("booktabs"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/book.el ("book"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/bm.el ("bm"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/bigstrut.el ("bigstrut"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/bigdelim.el ("bigdelim"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/biblatex.el ("biblatex"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/beamer.el ("beamer"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/babel.el ("babel"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/austrian.el ("austrian"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/article.el ("article"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/array.el ("array"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/amsthm.el ("amsthm"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/amstext.el ("amstext"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/amstex.el ("amstex"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/amssymb.el ("amssymb"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/amsopn.el ("amsopn"): Add LaTeX-dialect to - TeX-add-style-hook call. Update header with correct filename. - - * style/amsmath.el ("amsmath"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/amsbsy.el ("amsbsy"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/amsbook.el ("amsbook"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/amsart.el ("amsart"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/alphanum.el ("alphanum"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/alltt.el ("alltt"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/afterpage.el ("afterpage"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/acronym.el ("acronym"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/acro.el ("acro"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/MinionPro.el ("MinionPro"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/CJKutf8.el ("CJKutf8"): Add LaTeX-dialect to TeX-add-style-hook call. - - * style/CJK.el ("CJK"): Add LaTeX-dialect to TeX-add-style-hook call. - - * bib-cite.el (eval-after-load "bibtex"): Add hook - TeX-bibtex-set-BibTeX-dialect to BibTex mode, this will set - 'TeX-style-hook-dialect' to :bibtex for BibTeX files so that - Mosè's problem should be solved. - - * latex.el (LaTeX-common-initialization): set - 'TeX-style-hook-dialect' to :latex for LaTeX files, and those in - LaTeX derived modes. Add LaTeX-dialect as DIALECT argument to all - calls of TeX-add-style-hook. - - * tex.el (TeX-style-hook-list): Update docstring to make clear - that style hooks can also be in the form '[TeX-style-hook HOOK-FUN - DIALECT-SET]'. - (TeX-bibtex-set-BibTeX-dialect): New defun. - (TeX-style-hook-dialect-weight-alist): New defconst. - (TeX-shdex-eval): New defun. - (TeX-shdex-or TeX-shdex-and TeX-shdex-nor TeX-shdex-not) - (TeX-shdex-in-p TeX-shdex-listify): New defsubst. - (TeX-style-hook-dialect): New defvar, used to have style hooks - called only in corresponding context. - (TeX-add-style-hook): Add optional argument context for marking - hooks that must run only in non default (aka nil) dialect. - (TeX-keep-hooks-in-dialect): New defun, used for unloading only - those hooks in a dialect list. - (TeX-unload-style): Add optional argument context-list for - unloading only those hooks marked for contexts in that - context-list. - (TeX-run-style-hooks): Run style hook only when current style hook - context matches context for which hook is marked. - - * tex-info.el (Texinfo-environment-list): Add 'html' and 'float' - environments. - (TeX-texinfo-mode): set 'TeX-style-hook-dialect' to :texinfo for - Texinfo files. Add macro '@caption'. - -2014-09-08 Tassilo Horn - - * tex.el (TeX-assoc-string): Remove docstring from defalias since - that's not supported with XEmacs. - -2014-08-25 Florent Rougon (tiny change) - - * tex-buf.el (TeX-command-expand): Fix possible endless loop in - file name expansion. - -2014-08-24 Mosè Giordano - - * tests/tex/command-expansion.el: New test file. - -2014-08-24 Florent Rougon (tiny change) - - * tex.el (TeX-expand-list): Add the previous position to the - lenght of the expanded string to get the current position in the - %' expander. - -2014-08-18 Vincent Belaïche - - * font-latex.el (font-latex-add-quotes): Code optimization: use - '(add-to-list (make-local-variable (quote foo)) some-value)' - instead of '(make-local-variable (quote foo)) (add-to-list 'foo - some-value)' wherever possible. - - * bib-cite.el (bib-cite-minor-mode) - (bib-cite-setup-highlight-mouse-keymap): Code optimization: use - '(set (make-local-variable (quote foo)) some-value)' instead of - '(make-local-variable (quote foo)) (setq foo some-value)' wherever - possible. - - * latex.el (BibTeX-auto-store) - (LaTeX-common-initialization): Ditto. - - * tex-info.el (TeX-texinfo-mode): Code optimization: use '(set - (make-local-variable (quote foo)) some-value)' instead of - '(make-local-variable (quote foo)) (setq foo some-value)' wherever - possible. Add in style Texinfo standard macros '@acronym' and - '@tie'. - - * tex.el (TeX-assoc-string) new defalias to work-around missing - assoc-string in XEmacs. - (TeX-unload-style): Code optimization: use 'TeX-assoc-string' - instead of 'assoc' to search style in 'TeX-style-hook-list', and - use delq on returned value of assoc-string for removing the style - --- on the one hand delq will go through the whole list rather - than stop after the first match like in original code, but on the - other hand comparison are faster because eq instead of equal is - used and we are working on assoc cell rather than on key, so less - indirection, furthermore delq is C code. Anyway that make the code - much smaller and easier to understand. - (TeX-file-extensions): Add txi amongst extension of texinfo files, - for consistency with info node '(texinfo) Minimum' - (TeX-run-style-hooks): Code optimization: use 'TeX-assoc-string' - instead of 'assoc' to search style in 'TeX-style-hook-list'. - (VirTeX-common-initialization): Code optimization: use '(set - (make-local-variable (quote foo)) some-value)' instead of - '(make-local-variable (quote foo)) (setq foo some-value)' wherever - possible. - -2014-08-18 Tassilo Horn - - * font-latex.el (font-latex-set-syntactic-keywords): Allow for a - mandatory argument for a verbatim environment. - -2014-08-15 Vladimir Lomov - - * style/mathtools.el ("mathtools"): Don't use the removed - `LaTeX-amsmath-env-aligned' function. - -2014-08-14 Mosè Giordano - - * latex.el (LaTeX-insert-label): Remove. - (LaTeX-label): Add a new mandatory argument. Do not use - `LaTeX-insert-label'. Determine the prefix at the beginning of - the function and insert the label only if the prefix is non nil. - (LaTeX-section-label, LaTeX-env-figure, LaTeX-env-label): Use the - second mandatory argument of `LaTeX-label'. - - * style/amsmath.el: Update copyright years. - ("amsmath"): Append the environments to `LaTeX-label-alist' - instead of prepeding them. Use the second mandatory argument of - the `LaTeX-label' function. - - * style/longtable.el: Update copyright years. - ("longtable"): Move addition of "longtable" environment to - `LaTeX-label-alist' inside the style hook. Append the environment - to the alist instead of prepending it. Use the second mandatory - argument of the `LaTeX-label' function. - - * doc/auctex.texi (Sectioning, Environments): Remove references to - `LaTeX-insert-label'. - (Environments): Document `LaTeX-label-alist'. - - * doc/changes.texi: Remove references to `LaTeX-insert-label'. - -2014-08-12 Mosè Giordano - - * latex.el (LaTeX-insert-label): Rename from - `LaTeX-auto-insert-label' and mention sections in the doc-string. - (LaTeX-label): Update accordingly. - - * doc/auctex.texi (Sectioning): Mention `LaTeX-insert-label'. - (Environments): Update `LaTeX-insert-label' name and document use - for sectioning commands. - (Environments, Completion): Prettify - `TeX-complete-expert-commands' documentation by using a table - environment. - - * doc/changes.texi: Rename `LaTeX-auto-insert-label' to - `LaTeX-insert-label' and mention sections too. - -2014-08-11 Mosè Giordano - - * tex-buf.el (TeX-command): Keep the frame and the buffer - associate to the error overview if the command to be run is View. - - * latex.el (LaTeX-auto-insert-label): New customizable variable. - (LaTeX-label): Use it. - - * doc/auctex.texi (Environments): Document - `LaTeX-auto-insert-label'. - - * doc/changes.texi: Mention `LaTeX-auto-insert-label'. Fix a - couple of bad-boxes in the PDF output of the manual. - -2014-07-25 Tassilo Horn - - * latex.el (LaTeX-largest-level-set): Adapt - `outline-heading-alist' according to largest level in order to - make `outline-promote' (and others) work correctly. - -2014-07-25 Mosè Giordano - - * doc/auctex.texi (Adding Macros): Document `TeX-date-format'. - - * doc/changes.texi: Mention `TeX-date-format'. - - * latex.el (TeX-date-format): New customizable option. - Suggested by Uwe Brauer. - (TeX-arg-date): Use it. - -2014-07-17 Mosè Giordano - - * Makefile.in: Update copyright years. - (EXCLUDEDFILES): Rename from GITFILES. Remove also .cvsignore and - tests from the release tarball. - (release-commit): More precise suggestion to push tag and release - commit. - (tar-ball): Use EXCLUDEDFILES in place of GITFILES. - -2014-07-15 Ikumi Keita - - * latex.el: Enhance array and tabular(*) environments support. - (LaTeX-env-array): Add call to `LaTeX-item-array'. - (LaTeX-env-tabular*): Add call to `LaTeX-item-tabular*'. - (LaTeX-array-skipping-regexp): New variable. - (LaTeX-tabular*-skipping-regexp): Ditto. - (LaTeX-item-array): New function. Put line break macro on the - last line and insert suitable number of ampersands. - (LaTeX-item-tabular*): Ditto. - (LaTeX-insert-ampersands): New function. Insert suitable number - of ampersands. - (LaTeX-array-column-letters): New variable. Column letters for - array-like environments. - (LaTeX-array-count-columns): New function. Count number of - ampersands to be inserted. - (LaTeX-common-initialization): Add entries to LaTeX-item-list to - use `LaTeX-item-array' and `LaTeX-item-tabular*'. - - * style/amsmath.el: Enhance alignat-like environments support - as well as some cleanups. - (LaTeX-item-equation-alignat): New function. Insert contents to - terminate a line in multi-line equations environment. - (LaTeX-amsmath-env-alignat): Use it. Add doc string. - (LaTeX-amsmath-env-alignedat): Ditto. - (LaTeX-amsmath-env-aligned): Removed. Just specifying a prompt - string for an optional argument is enough. - (LaTeX-item-equation): Take over the job of - `LaTeX-item-equations'. Add an optional `suppress' argument: - when it is non-nil skip putting line break macro. Add doc string. - (LaTeX-item-equations): Removed. Its task is now covered by - `LaTeX-item-equation'. - (LaTeX-item-equation-alignat): New function. Insert ampersands - according to the columns number, as well as calling - `LaTeX-item-equation'. - (LaTeX-amsmath-alignat-number-of-ampersands): New function. - ("amsmath"): Arrange setups of variables to adopt the above - changes. - - * style/array.el ("array"): Change `LaTeX-array-column-letters' - locally to include addtional letters extended in array.sty. - - * style/plext.el: New style file. Add support for extended - format for array-like environments. - - * Makefile.in (STYLESRC): Include style/plext.el. - - * doc/auctex.texi: Add documentation for the above enhancements. - - * doc/changes.texi: Ditto. - -2014-07-14 Mosè Giordano - - * tex-buf.el (TeX-next-error): Do not pass `reparse' argument to - `next-error' in XEmacs as it is not supported. - (TeX-error-overview-frame, TeX-error-overview-buffer-name): Move - before their first use in order to prevent a runtime error in - XEmacs and GNU Emacs 21. Reported by Ikumi Keita. - (TeX-parse-TeX): Manually set `item' to nil when - `TeX-error-last-visited' is negative. - (TeX-error-description-error, TeX-error-description-warning) - (TeX-error-description-tex-said): Set to nil in XEmacs and GNU - Emacs 21. Reported by Ikumi Keita. - -2014-07-13 Mosè Giordano - - * latex.el (TeX-latex-mode): Add second argument to - `local-variable-p', mandatory in XEmacs. Suggested by Ikumi - Keita. - - * preview/preview.el (preview-dump-state): Ditto. - - * style/biblatex.el ("biblatex"): Ditto. - - * tex.el (TeX-how-many): Make the function return a number also in - XEmacs and Emacs 21. Suggested by Ikumi Keita. - -2014-07-12 Mosè Giordano - - * tex-buf.el (TeX-error-description-error): Do not use the - `default' display, not supported by GNU Emacs 21 and XEmacs 21.4. - (TeX-error-description-warning): Ditto. - -2014-07-11 Mosè Giordano - - * tex-buf.el (TeX-error-description-error): Make face definition - XEmacs compatible. - (TeX-error-description-tex-said): Ditto. - (TeX-error-description-help): Ditto. - - * tex.el (nil): Handle the case of a non-available crm.el with a - `condition-case', instead of using the third argument of - `require', not recognized by XEmacs 21.4. - (and): Check whether dbus support is available before requiring - dbus.el. - -2014-07-02 Mosè Giordano - - * tex.el (TeX-expand-list): Set - `TeX-source-correlate-output-page-function' when necessary, in the - "%(outpage)" expander. - (TeX-source-correlate-method): Add an alist as a possible value - and change the default. - (TeX-source-correlate-method-active): Convert to a function. - (TeX-source-correlate-expand-options): Use the - `TeX-source-correlate-method-active' function. - (TeX-source-correlate-mode): Remove setting of the - `TeX-source-correlate-output-page-function' variable and of the - now deleted `TeX-source-correlate-method-active' variable. - (TeX-source-specials-view-expand-options): Use the - `TeX-source-correlate-method-active' function. - (TeX-mode-specific-command-menu-entries): Hide "Previous Error" - and "Error Overview" entries when not available. - - * context.el: Update copyright years. - (ConTeXt-expand-options): Use the - `TeX-source-correlate-method-active' function. - - * doc/auctex.texi (I/O Correlation): Update documentation of - `TeX-source-correlate-method'. - - * doc/changes.texi: Mention change to the default value of - `TeX-source-correlate-method'. - -2014-06-29 Mosè Giordano - - * doc/todo.texi (Mid-term Goals): Remove "More flexible option and - command handling" item: we now have `TeX-command-extra-options'. - (Wishlist): Remove "Poor man's Source Specials": AUCTeX supports - source specials and SyncTeX. - (Wishlist): Remove "multiple completion for \bibliography" item: - "\bibliography" does complete multiple arguments. - -2014-06-28 Mosè Giordano - - * tex-buf.el (TeX-command): Kill the frame and buffer associated - to the error overview before running commands. - (TeX-TeX-sentinel): Open error overview if - `TeX-error-overview-open-after-TeX-run' is non-nil and there are - errors or warnings to show. - (TeX-LaTeX-sentinel): Ditto. - (TeX-find-display-help): Set `runbuf' to `TeX-active-buffer' since - this function may be called also from the error overview buffer. - (TeX-error-description-faces): Change group to more appropriate - `TeX-output'. - (TeX-error-overview-active-buffer): New variable. - (TeX-error-overview-orig-frame): Ditto. - (TeX-error-overview-orig-window): Ditto. - (TeX-error-overview-frame): Ditto. - (TeX-error-overview-setup): New customizable variable. - (TeX-error-overview-setup): New function. - (TeX-error-overview-goto-source): Ditto. - (TeX-error-overview-make-entries): Ditto. - (TeX-error-overview-next-error): Ditto. - (TeX-error-overview-previous-error): Ditto. - (TeX-error-overview-quit): Ditto. - (TeX-error-overview-mode-map): New variable. - (TeX-error-overview-list-entries): Ditto. - (TeX-error-overview-mode): New major mode. - (TeX-error-overview-buffer-name): New constant. - (TeX-error-overview-frame-parameters): New customizable variable. - (TeX-error-overview-open-after-TeX-run): Ditto. - (TeX-error-overview): New function. - (TeX-find-display-help): Expand the name of the file to be visited - starting from the directory of the master file. - (TeX-error-overview-make-entries): Add optional `master-dir' - argument, to shorten file names when they are relative. - (TeX-error-overview): Pass `TeX-master-directory' as argument to - `TeX-error-overview-make-entries'. - - * tex.el (TeX-error-overview): Autoload `TeX-error-overview'. - (TeX-mode-specific-command-menu-entries): Add an entry for the - error overview. - - * doc/auctex.texi (Debugging): Document error overview. - - * doc/changes.texi: Mention error overview. Add local variables - to the end of the file. - - * doc/todo.texi: Add local variables to the end of the file. - (Wishlist): Update entry about error reporting. - -2014-06-21 Mosè Giordano - - * tex-buf.el (TeX-parse-TeX): Use `TeX-find-display-help' in place - of `TeX-error-list-find-display-help'. - (TeX-error-list-find-display-help): Removed, replaced by more - general `TeX-find-display-help'. - (TeX-find-display-help): New function. - (TeX-error): Append nils to the `TeX-error-list' entry to make - each entry of the same lenght for both errors and warnings. - Append also `TeX-error-point'. This fixes a bug occurring when - `TeX-display-help' is set to `expert'. Use - `TeX-find-display-help' to display the help. - (TeX-warning): Append `TeX-error-point' to the `TeX-error-list' - entry to fix the above mentioned bug. Use `TeX-find-display-help' - to display the help. - -2014-06-04 Mosè Giordano - - * tex-buf.el (TeX-parse-TeX): Use - `TeX-error-list-find-display-help'. - (TeX-error-list-find-display-help): New function. - (TeX-warning): Use `bad-box' when there is a bad box. - (TeX-warning--find-display-help): Cater for bad boxes. - (TeX-help-error): Ditto. - -2014-06-02 Mosè Giordano - - * tex-buf.el (TeX-error--find-display-help): Use new fourth - argument of `TeX-help-error'. - (TeX-warning): Rename mandatory argument to `warning'. Do not add - leading "** " to warning string. - (TeX-warning--find-display-help): Use new fourth argument of - `TeX-help-error'. - (TeX-error-description-faces): New group. - (TeX-error-description-error): New face. - (TeX-error-description-warning): Ditto. - (TeX-error-description-tex-said): Ditto. - (TeX-error-description-help): Ditto. - (TeX-help-error): Add new `type' argument. Color help messages - using the new faces. - (TeX-warning): Preserve point when searching backward. In some - cases this prevents infinite loops in `TeX-parse-all-errors' and - fixes wrong detection of context string. - -2014-05-27 Mosè Giordano - - * tex.el (TeX-mode-specific-command-menu-entries): Add - `TeX-previous-error'. - - * tex-buf.el (TeX-error-list): Fix typo. - (TeX-parse-all-errors): Ditto. - -2014-05-23 Stefan Monnier - - Backport from ELPA repository. - * tex-site.el (TeX-modes-set): Use advice-add if available. - * font-latex.el (font-latex-make-sectioning-faces): Don't rely on - dynamic scoping for `num'. - (font-latex-make-built-in-keywords): Don't use `eval' needlessly. - (font-latex-doctex-syntactic-keywords): Declare before first use. - (font-latex-match-command-with-arguments): - Stay away from `add-to-list' on let-bound variables. - (font-latex-match-command-in-braces): Remove unused var `end'. - -2014-05-20 Mosè Giordano - - * tex-buf.el: Update copyright years. - (TeX-error-last-visited): New buffer-local variable. - (TeX-get-parse-function): New function. - (TeX-next-error): Add `apt' argument and make all arguments - optional. Use `TeX-get-parse-function'. - (TeX-previous-error): Use `TeX-get-parse-function'. Use - `TeX-parse-TeX' to move between errors when possible. - (TeX-TeX-sentinel): Parse the output log when - `TeX-parse-all-errors' is non-nil. - (TeX-LaTeX-sentinel): Ditto. - (TeX-parse-reset): Add an optional `reparse' argument and reparse - the output log when it is non-nil. Reset also `TeX-error-list' - and `TeX-error-last-visited'. - (TeX-parse-command): Add `arg' argument. - (TeX-parse-TeX): Add `arg' argument. When `TeX-parse-all-errors' - is non-nil, use `TeX-error-list' to move to the error point. - (TeX-error-list): New buffer-local variable. - (TeX-parse-all-errors): New customizable variable. - (TeX-parse-all-errors): New function. - (TeX-parse-error): Add an optional `store' argument. Make the - function return non-nil when an error or a warning is found. - (TeX-error): Add an optional `store' argument: when it is non-nil - store the relevant information about the error in - `TeX-error-list'. Use `TeX-error--find-display-help'. - (TeX-error--find-display-help): New function. - (TeX-warning): Add an optional `store' argument: when it is - non-nil store the relevant information about the warning in - `TeX-error-list'. Use `TeX-warning--find-display-help'. - (TeX-warning--find-display-help): New function. - (TeX-output-mode-map): Bind `p' to the now working - `TeX-previous-error'. - - * doc/auctex.texi (Debugging): Document `TeX-previous-error' and - `TeX-parse-all-errors'. Update `TeX-next-error'. - - * doc/changes.texi: Update copyright years. Mention - `TeX-next-error' and `TeX-previous-error' changes and the new - `TeX-parse-all-errors'. - - * doc/todo.texi: Update copyright years. - (Wishlist): Update a couple of items related to error parsing. - -2014-05-17 Mosè Giordano - - * font-latex.el: Update copyright years. - (font-latex-update-sectioning-faces): Make sure - `height-scale' is a floating point number. - (font-latex-make-sectioning-faces): Ditto. - -2014-05-10 Mosè Giordano - - * style/siunitx.el: Update copyright years and specify last - `siunitx' version supported. Hard wrap lines longer than 80 - columns. - (LaTeX-siunitx-regexp): Move the escape character out of the group - matching the unit name. - (LaTeX-arg-siunitx-unit): Add `prefix' argument. Replace the - space with `TeX-esc' as the completion separator. - (LaTeX-arg-define-siunitx-unit): Define a default prompt; set - `initial-input' to nil; use `TeX-esc' as prefix to the given - input. - ("siunitx"): Remove the escape character from the unit names. - -2014-05-02 Jobst Hoffmann (tiny change) - - * style/listings.el ("listings"): Fix typo. - -2014-05-01 Mosè Giordano - - * font-latex.el (font-latex-set-syntactic-keywords): Fix - fontification of the optional argument to a verbatim-like - environment. - -2014-04-16 Tassilo Horn - - * tex-buf.el (TeX-parse-error): Add another exception. - -2014-04-06 Tassilo Horn - - * tex-info.el (TeX-texinfo-mode): Use `texinfo-current-defun-name' - in `C-x 4 a'. - -2014-04-04 Mosè Giordano - - * latex.el (LaTeX-add-environments): Move advising of - `LaTeX-add-environments' after definition of - `LaTeX-environment-menu' and `LaTeX-environment-modify-menu' - variables to fix assignment to free variable warnings. - - * tex-style.el: Update coyright years. - (LaTeX-biblatex-use-Biber): New variable. Mark as - safe-local-variable. - - * latex.el (TeX-latex-mode): Add setting of `LaTeX-using-Biber' to - `TeX-update-style-hook'. - - * style/biblatex.el ("biblatex"): Use `LaTeX-biblatex-use-Biber' - value to set `LaTeX-using-Biber' when it is set locally. - - * tex-bar.el: Update copyright years. - (LaTeX-install-toolbar): Append toolbar refresh to - `TeX-update-style-hook' instead of prepending it. - - * doc/auctex.texi: Update copyright years. - (Selecting a Command): Document `LaTeX-biblatex-use-Biber'. - - * doc/changes.texi: Mention `LaTeX-biblatex-use-Biber' change. - -2014-04-02 Mosè Giordano - - * style/biblatex.el: Update copyright years and specify last - `biblatex' version supported. - (LaTeX-biblatex-executebibliographyoptions-options): Update. - (LaTeX-biblatex-language-list): Ditto. - (LaTeX-arg-biblatex-cites): Fix condition on `items' variable to - adapt to the `TeX-completing-read-multiple' return value change. - -2014-03-17 Nicolas Richard - - * style/exercise.el: New file. - -2014-03-18 Tassilo Horn - - * doc/auctex.texi: Mention that `TeX-PDF-mode' is enabled by - default. - - * tex.el (TeX-PDF-mode): Enable TeX PDF mode by default. - - * tex-buf.el (TeX-command-master): Ask for TeX-master if it cannot - be determined otherwise. - -2014-03-15 Mosè Giordano - - * tex.el (TeX-view-command-raw): Throw an error when `spec' is - nil, otherwise when the function returns nil `TeX-command-expand' - enters an infinite loop. - - * style/paralist.el: Update copyright years. - ("paralist"): Use `LaTeX-provided-package-options-member' to - conditionally define environments. - -2014-03-12 Tassilo Horn - - * multi-prompt.el (multi-prompt): Return nil on empty input. - - * tex.el (TeX-completing-read-multiple): Define it so that empty - input results in nil across different emacs versions (<= 24.3 - vs. later versions). - - * style/biblatex.el ("biblatex"): Use - `TeX-completing-read-multiple' instead of - `completing-read-multiple'. - (LaTeX-arg-biblatex-cites): Use `TeX-completing-read-multiple' and - adapt handling of return value. - - * style/pstricks.el (LaTeX-package-parameters): Adapt to - `TeX-completing-read-multiple' change. - -2014-03-11 Tassilo Horn - - * latex.el (LaTeX-arg-usepackage-read-packages-with-options): Fix - bug that caused AUCTeX to query for packages infinitely. - - * context.el (ConTeXt-add-environments): Advice instead of - renaming and redefining generated function. - - * latex.el (LaTeX-close-environment): Remove non-interactive - `next-line' usage compile warning. - (LaTeX-add-bibliographies): Advice instead of renaming and - redefining generated function. - (LaTeX-add-environments): Ditto. - -2014-03-10 Tassilo Horn - - * latex.el (LaTeX-fill-break-at-separators): Default to opening - and closing math switches. - -2014-03-06 Mosè Giordano - - * doc/auctex.texi (Processor Options): Add missing pair of braces. - -2014-02-22 Mosè Giordano - - * latex.el (LaTeX-environment): Do not set - `LaTeX-default-environment' to `environment' if the latter is - equal to the current default environment. - -2014-02-21 Mosè Giordano - - * latex.el (LaTeX-arg-usepackage-read-packages-with-options): New - function. Now options are requested only if at least one package - has been provided. - (LaTeX-arg-usepackage-insert): New function. - (LaTeX-arg-usepackage): Use - `LaTeX-arg-usepackage-read-packages-with-options' and - `LaTeX-arg-usepackage-insert'. - (LaTeX-insert-usepackages): New function. - (LaTeX-env-document): Use it. - - * doc/auctex.texi (Environments): Document new behavior of - `LaTeX-env-document'. - - * doc/changes.texi: Mention it. - -2014-02-20 Mosè Giordano - - * tex.el (TeX-command-extra-options): New customizable variable. - (TeX-expand-list): New `%(extraopts)' expander. - (TeX-command-list): Use `%(extraopts)'. - - * doc/auctex.texi (Processor Options): Document - `TeX-command-extra-options'. - - * doc/changes.texi: Document it. - -2014-02-10 Tassilo Horn - - * style/english.el: New style for english documents so that - `TeX-language-en-hook' gets run. - - * Makefile.in (STYLESRC): Activate it. - - * doc/auctex.texi (languages): Document it. - -2014-02-04 Tassilo Horn - - * tex.el (TeX-auto-add-type): Convert to macro. - - * lpath.el: Don't silence byte-compiler. - - * latex.el (LaTeX-auto-style, LaTeX-auto-arguments) - (LaTeX-auto-optional, LaTeX-auto-env-args): Defvar explicitly - before use. - -2014-01-29 Tassilo Horn - - * tex-buf.el (TeX-command-query): Use default parameter of - `completing-read'. - - * tex.el (TeX-insert-macro): Use default parameter of - `completing-read'. - - * latex.el (LaTeX-environment, TeX-arg-document): Use default - parameter of `completing-read'. - -2014-01-22 Tassilo Horn - - * style/shortvrb.el (LaTeX-shortvrb-chars): Move from - tex-style.el. Set default value to nil because just loading - shortvrb does not make | a shortvrb char. One needs to define it - using \MakeShortVrb{\|}. Extend the docstring so that it tells - that one should usually set this variable only buffer-locally. - (LaTeX-shortvrb-chars): Declare it as safe local variable. - - * font-latex.el (font-latex-add-to-syntax-alist): Call - `font-latex-setup' to make syntactic font-lock changes effective. - -2014-01-21 Berend de Boer - - * context.el: distinguish between numbered and unnumbered sections. - -2014-01-15 Mosè Giordano - - * style/babel.el: Update copyright years and specify last `babel' - version supported. - (LaTeX-babel-language-list): Expand language list to all languages - mentioned in the last version of the manual. - (LaTeX-babel-active-languages): Update in order to parse the - `main' option and ignore the modifiers. - (LaTeX-babel-package-options): Turn the variable into a function - because now requires `TeX-read-key-val'. - -2014-01-11 Mosè Giordano - - * latex.el (LaTeX-current-environment): Make search for `\begin' - and `\end' case sensitive. - (docTeX-in-macrocode-p): Ditto. - (LaTeX-indent-calculate): Ditto. - (LaTeX-find-matching-end): Ditto. - (LaTeX-find-matching-begin): Ditto. - -2014-01-06 Vincent Belaïche - - * tex-info.el (Texinfo-reftex-hook): Replace use of - reftex-tables-dirty by that of reftex-default-label-alist-entries - to trigger call to reftex-compile-variables in a standard way. - The problem was that generating a TOC for a Texinfo file and then - for a LaTeX file was not working for the LaTeX file because the - Texinfo file was using LaTeX label style and as such - reftex-ensure-compiled-variables was not calling - reftex-compile-variables, which caused wrong - reftex-everything-regexp for sections. - -2014-01-06 Mosè Giordano - - * latex.el (LaTeX-math-insert): Use `TeX-electric-math' for - consistency with `TeX-insert-dollar'. - (LaTeX-math-cal): Ditto. - -2013-12-24 Mosè Giordano - - * tex-style.el (LaTeX-fontspec-arg-font-search): New customizable - variable. - (LaTeX-fontspec-font-list-default): Ditto. - - * style/fontspec.el (LaTeX-fontspec-arg-font): New function. - ("fontspec"): Use it. - - * doc/changes.texi: Mention `LaTeX-fontspec-arg-font-search' and - `LaTeX-fontspec-font-list-default'. - -2013-12-20 Mosè Giordano - - * style/imakeidx.el ("imakeidx"): Move addition of options to - `LaTeX-imakeidx-indexsetup-options' inside the hook. - - * Makefile.in (STYLESRC): Activate new styles. - - * style/fontspec.el: New style. - - * style/luacode.el: Ditto. - - * style/metalogo.el: Ditto. - - * style/unicode-math.el: Ditto. - -2013-12-18 Tassilo Horn - - * tex-buf.el (TeX-parse-error): Don't confuse ) in package - messages with EOF. - -2013-12-01 Tassilo Horn - - * latex.el (LaTeX-common-initialization): Move disabling of - `electric-pair-mode' from `VirTeX-common-initialization'. Disable - it only if `LaTeX-electric-left-right-brace' is non-nil. - - * tex.el (VirTeX-common-initialization): See above. - -2013-11-29 Tassilo Horn - - * tex.el (VirTeX-common-initialization): Disable - `electric-pair-mode' (a global minor mode) in auctex buffers - because it interferes with auctex's pairing feature. - -2013-11-23 Mosè Giordano - - * latex.el (LaTeX-common-initialization): - - * tex.el (VirTeX-common-initialization): Move - `LaTeX-narrow-to-environment' and `TeX-narrow-to-group' bindings - to the AUCTeX maps because `narrow-map' is not defined in GNU - Emacs < 22.2 and XEmacs. Reported by Giacomo Boffi. - -2013-11-13 Mosè Giordano - - * style/biblatex.el ("biblatex"): Declare expert macros and - environments. - -2013-11-11 Tassilo Horn - - * tex-buf.el (TeX-next-error, TeX-previous-error): Call - `next-error' also if last TeX command was a compile command (e.g., - Check, ChkTeX). - (TeX-run-compile): Save compilation buffer in - `TeX-command-buffer'. - -2013-11-10 Ralf Angeli - - * bib-cite.el (bib-highlight-mouse): Change regexp to cope with - multiple optional arguments of a macro. - -2013-11-09 Tassilo Horn - - * tex.el (TeX-complete-make-expert-command-functions): Change - signature of declare-expert functions. - - * doc/auctex.texi: Document it. - -2013-11-08 Tassilo Horn - - * tex.el (TeX-complete-expert-commands): New defcustom. - (TeX-complete-make-expert-command-functions): New macro. - (TeX-insert-macro): Restrict completion depending on - `TeX-complete-expert-commands'. - (VirTeX-common-initialization): Ditto. - - * latex.el (LaTeX-environment, LaTeX-common-initialization): - Restrict completion depending on `TeX-complete-expert-commands'. - - * tex-info.el (TeX-texinfo-mode): Restrict completion depending on - `TeX-complete-expert-commands'. - - * doc/auctex.texi: Document normal vs. expert commands for users - and style file authors. - - * doc/changes.texi: Mention normal vs. expert commands. - - * latex.el (LaTeX-common-initialization): Fix void-function - LaTeX-symbol-list error. - -2013-11-05 Mosè Giordano - - * doc/auctex.texi (Folding): Document `TeX-fold-auto' and - `TeX-fold-unfold-around-mark'. - - * latex.el (TeX-arg-bibliography): Run style files associated to - the bibliography database files. - - * style/biblatex.el ("biblatex"): Do not quote at all - `TeX-arg-key-val' arguments. - (LaTeX-arg-addbibresource): Run style file associated to the - bibliography database file. - -2013-11-03 Mosè Giordano - - * style/biblatex.el ("biblatex"): Quote `TeX-arg-key-val' - arguments with `quote' special form istead of apostrophe. - -2013-11-02 Mosè Giordano - - * latex.el (LaTeX-narrow-to-environment): New function, disabled - by default. - (LaTeX-common-initialization): Add key binding for - `LaTeX-narrow-to-environment'. - - * tex.el (VirTeX-common-initialization): Add key binding for - `TeX-narrow-to-group'. - (TeX-narrow-to-group): New function, disabled by default. - - * doc/auctex.texi (Narrowing): Document narrowing commands. - - * doc/changes.texi: Mention narrowing commands. - -2013-10-19 Mosè Giordano - - * latex.el (TeX-arg-file-name): New function. - (TeX-arg-file-name-sans-extension): Ditto. - (TeX-arg-version): Ditto. - (LaTeX-common-initialization): Add completion for - `ProvidesPackage', `ProvidesClass', and `ProvidesFile'. - - * doc/auctex.texi (Adding Macros): Document `TeX-arg-version', - `TeX-arg-file-name', and `TeX-arg-file-name-sans-extension'. - -2013-10-14 Tassilo Horn - - * doc/changes.texi: Mention the enhanced tabular indentation. - - * style/longtable.el ("longtable"): Use `LaTeX-indent-tabular' - also for longtable environment. - - * style/tabularx.el ("tabularx"): Use `LaTeX-indent-tabular' also - for tabularx environment. - - * style/tabulary.el ("tabulary"): Use `LaTeX-indent-tabular' also - for tabulary environment. - - * latex.el (LaTeX-indent-environment-list): Use - `LaTeX-indent-tabular' also for array and eqnarray environments. - -2013-10-14 Oleh Krehel - - * latex.el: `LaTeX-indent-tabular' now indents tabular-like - environments. - (LaTeX--tabular-like-end): new variable. - (LaTeX-indent-environment-list): added `LaTeX-indent-tabular' as - indenter for "tabular" and "align", added a setter that recomputes - `LaTeX--tabular-like-end' - (LaTeX-env-beginning-pos-col): new function. - (LaTeX-hanging-ampersand-position): new function. - (LaTeX-indent-tabular): new function. - - * tests/latex/latex-test.el : added an ERT test for - `LaTeX-indent-tabular' - (LaTeX-indent-tabular-test/in): input filename variable - (LaTeX-indent-tabular-test/out): output filename variable - - * tests/latex/tabular-in.tex: input to latex-test.el - - * tests/latex/tabular-out.tex: input to latex-test.el - - * tex.el (TeX-how-many): added for compatibility with XEmacs. - -2013-10-11 Mosè Giordano - - * doc/auctex.texi (Quotes): Fix typo. - - * doc/changes.texi: Ditto. - -2013-10-10 Ikumi Keita - - * doc/changes.texi: Document enhanced paired braces feature. - - * doc/auctex.texi: Ditto. - -2013-10-06 Mosè Giordano - - * tex.el (TeX-insert-macro-default-style): Add new possible value - `show-all-optional-args' and update doc-string accordingly. - (TeX-parse-arguments): Use it. - - * doc/auctex.texi (Completion): Document `show-all-optional-args'. - - * doc/changes.texi: Mention `show-all-optional-args'. - - * tex.el (TeX-insert-braces-alist): New customizable variable. - (TeX-insert-braces): Mention it in doc-string. - (TeX-parse-macro): Use `TeX-insert-braces-alist'. - - * style/booktabs.el: Update copyright years. - (LaTeX-booktabs-arg-paren): Let-bind `TeX-arg-opening-brace' and - `TeX-arg-closing-brace' instead of `<' and `>'. - ("booktabs"): Add `toprule', `midrule', and `bottomrule' macros to - `TeX-insert-braces-alist'. - ("booktabs"): Add a dummy `ignore' in `cmidrule' macro in order to - reset `last-optional-rejected' to nil. - - * doc/auctex.texi (Completion): Document - `TeX-insert-braces-alist'. - - * doc/changes.texi: Mention `TeX-insert-braces-alist'. - -2013-09-27 Mosè Giordano - - * latex.el (TeX-arg-insert-braces): : Move - `indent-according-to-mode' after `save-excursion' because - `LaTeX-newline' (used in `save-excursion') deletes trailing - whitespaces. - - * tex-buf.el (TeX-LaTeX-sentinel): Add support for hyperref "Rerun - to get outlines right" messages. - -2013-09-26 Ikumi Keita - - * latex.el: Enhance brace pairing feature. - (TeX-arg-insert-braces): Extend to be used with \bigl and its - friends. - (TeX-arg-insert-right-brace-maybe): New function. - (LaTeX-insert-left-brace): New function. - (LaTeX-insert-corresponding-right-macro-and-brace): New function. - (LaTeX-find-preceeding-left-macro-name): New function. - (LaTeX-electric-left-right-brace): New customization option. - (LaTeX-left-right-macros-association): New variable. - - * style/amsmath.el ("amsmath"): Make use of the above change. - \lvert and \lVert are paired with \rvert and \rVert, respectively. - -2013-09-19 Mosè Giordano - - * style/siunitx.el ("siunitx"): Fix `radian' unit name. - -2013-09-17 Fabrice Ben Hamouda (tiny change) - - * tex-buf.el (TeX-next-error, TeX-active-buffer): Fix a problem - with `TeX-next-error' in multi-file documents. - -2013-09-16 Tassilo Horn - - * tex-info.el (TeX-texinfo-mode): Set - `TeX-sentinel-default-function' to `TeX-TeX-sentinel'. - -2013-09-09 Tassilo Horn - - * tex-buf.el (TeX-check-files): Handle buffers that haven't been - saved yet. - -2013-09-02 Tassilo Horn - - * tex.el (TeX-electric-math): Fix defcustom choices. - - * bib-cite.el (bib-cite-minor-mode): Call `make-local-hook' only - on XEmacs. - -2013-08-03 Mosè Giordano - - * latex.el (TeX-arg-ref): New function. - - * doc/auctex.texi: Replace occurrences of `TeX-arg-label' with - `TeX-arg-ref'. - (Adding Macros): Document `TeX-arg-ref'. - - * style/fancyref.el ("fancyref"): Use `TeX-arg-ref' instead of - `TeX-arg-label'. - - * style/latexinfo.el ("latexinfo"): Ditto. - - * style/nameref.el ("nameref"): Ditto. - - * style/varioref.el ("varioref"): Ditto. - - * style/subfigure.el ("subfigure"): Use `TeX-arg-ref' instead of - `TeX-arg-label' and fix parentheses. - -2013-07-31 Tassilo Horn - - * latex.el (LaTeX-math-initialize): Refactor top-level code into - function. - (LaTeX-math-list): Call `LaTeX-math-initialize' when setting the - value in order to update the key bindings. - Also shuffle around several definitions in order to get a - declaration-before-use order. - -2013-07-29 Mosè Giordano - - * doc/changes.texi: Add other changes. - - * doc/auctex.texi (Environments): Fix typo. - -2013-07-27 Mosè Giordano - - * latex.el (BibTeX-auto-regexp-list): Remove `TeX-token-char' from - the regexp since cite keys can start with non-letter characters, - e.g., bibcodes start with year of publication. - -2013-07-24 Tassilo Horn - - * latex.el (LaTeX-math-menu-unicode): Enable also on windows - systems as it seems to work there, too. - -2013-07-23 Mosè Giordano - - * tex.el (TeX-clean-default-intermediate-suffixes): Add `.fls', - files created by TeX processors with `-recorder' option, and - `-blx.bib', files created by `bibtex' when using the `biblatex' - package. - - * doc/changes.texi: Document some changes for next release. - -2013-07-22 Mosè Giordano - - * Makefile.in: Update copyright years. - (GITFILES): Rename from `CVSFILES', adapt to Git. - (COMMITTER): Get user name and email from Git configuration; - escape `<', `>' and spaces. - (install-el): Update reference to Git in comment. - (release-commit): Adapt to Git; make sure committer name and email - are encoded with ISO-8859-1 using the `iconv' program. - (tar-ball): Adapt to Git. - (preview-ball): Ditto. - - * auctex.spec (Provides): Update reference to Git in comment. - - * bib-cite.el: Update AUCTeX repository link in comment. - - * font-latex.el (font-latex-built-in-keyword-classes): Fix - fontification of some biblatex macros. Reported by Christian - Knüpfer. - (font-latex-built-in-keyword-classes): Revert changes made with - commit 7531cca, they were useless. - -2013-07-15 Mads Jensen - - * style/tabulary.el: New style. - - * Makefile.in (STYLESRC): Activate new style tabulary. - -2013-07-12 Mosè Giordano - - * doc/auctex.texi (Processor Options): Move - `TeX-source-correlate-method' to `I/O Correlation' section. - -2013-07-11 Mosè Giordano - - * doc/auctex.texi (Processor Options): Document - `TeX-source-correlate-method'. - -2013-07-09 Tassilo Horn - - * latex.el (LaTeX-default-tabular-environment): New variable. - (LaTeX-env-figure): Use it instead of hard-coding "tabular". - - * style/tabularx.el ("tabularx"): Set - `LaTeX-default-tabular-environment' to "tabularx". - -2013-06-29 Mosè Giordano - - * bib-cite.el: Replace `save-excursion'+`set-buffer' with - `with-current-buffer'. - - * tex-bar.el: Ditto. - - * tex-buf.el: Ditto. - - * tex.el: Replace `save-excursion'+`set-buffer' with - `with-current-buffer'. Delete trailing whitespaces. - - * tex-buf.el (TeX-error-file): Fix spelling error. - (TeX-error): Ditto. - - * doc/install.texi (Configure): Update for Git. - - * doc/preview-readme.texi (Availability): Ditto. - - * doc/wininstall.texi: Ditto. - -2013-06-26 Tassilo Horn - - * doc/preview-problems.texi: Rename "Known problems" section to - "Known problems with preview-latex" in rawfile export. Delete - sections "Problems with Ghostscript" and "Emacs problems" because - those are basically ruled out when using the prerequisites - documented in the manual. - - * doc/install.texi: Don't link to ghostscript specific - preview-latex problems section because that has been removed. - - * doc/Makefile.in (DISTTEXTS, ../PROBLEMS.preview): Rename - PROBLEMS to PROBLEMS.preview since it only deals with - preview-latex problems. - - * Makefile.in (DISTTEXTS): Use PROBLEMS.preview instead of - PROBLEMS. - -2013-06-24 Tassilo Horn - - * doc/Makefile.in (DISTTEXTS): Add ../PROBLEMS. - - * Makefile.in (DISTTEXTS): Add PROBLEMS. - - * tex.el (TeX-evince-dbus-p): Require dbus at compile-time. - -2013-06-21 Tassilo Horn - - * tex.el (TeX-evince-dbus-p): Improved DBUS availability check. - -2013-06-21 Rüdiger Sonderfeld - - * tex.el (TeX-doc-backend-alist): Remove unnecessary `info' check. - -2013-06-14 Tassilo Horn - - * tex-jp.el: Change to `coding: iso-2022-jp-unix'. - -2013-06-12 Tassilo Horn - - * tex-jp.el: Add `coding: iso-2022-7bit-unix' file local variable. - -2013-06-11 Tassilo Horn - - * tex-buf.el (TeX-help-error): Let-bind `inhibit-read-only' when - updating the *TeX Help* buffer. - -2013-06-11 Mosè Giordano - - * latex.el (TeX-after-document-hook): New hook. - (TeX-arg-document): Use it. - (LaTeX-after-usepackage-hook): New hook. - (LaTeX-arg-usepackage): Use it, remove babel specific code. - - * style/babel.el: Update copyright years. - (LaTeX-env-babel-lang): New function. - ("babel"): Add `LaTeX-env-babel-lang' to - `LaTeX-after-usepackage-hook'. - -2013-06-08 Mosè Giordano - - * tex.el (TeX-math-close-double-dollar): Remove. - (TeX-math-close-single-dollar): Ditto. - (TeX-electric-dollar): Ditto. - (TeX-electric-math): New customizable variable, supersedes - variables above. - (TeX-insert-dollar): Adapt to `TeX-electric-math'. See - http://thread.gmane.org/gmane.emacs.auctex.devel/3070 - - * doc/auctex.texi (Quotes): Document `TeX-electric-math'. - (Environments): Document `LaTeX-find-matching-begin' and - `LaTeX-find-matching-end'. - -2013-06-02 Mosè Giordano - - * tex-buf.el: Shorten copyright year ranges and update with - missing years. Delete trailing whitespaces. - (TeX-run-compile): Let-bind `default-directory' to - `TeX-master-directory'. - -2013-05-31 Tassilo Horn - - * autogen.sh: Set LC_ALL=C when looking into ChangeLog for - AUCTEXDATE. - -2013-05-31 Mosè Giordano - - * latex.el (LaTeX-env-figure): Simplify using `save-excursion' - instead of regexp searches. Fill the caption when - `auto-fill-mode' is on. - -2013-05-30 Mosè Giordano - - * tex.el (TeX-expand-list): Add new expander "%a", it returns the - quoted absolute path of the file visiting current buffer. - (TeX-view-program-list-builtin): Use "%a" expander for forward PDF - search. - -2013-05-28 Tassilo Horn - - * tex.el (TeX-source-correlate-sync-source): Fix docstring. - -2013-05-23 Mosè Giordano - - * font-latex.el: Update copyright years, there have been - non-trivial changes in 2010, and 2011. - (font-latex-built-in-keyword-classes): Fontify Biblatex multicites - macros up to three mandatory arguments. - - * style/biblatex.el (LaTeX-biblatex-entrytype): New variable. - (LaTeX-biblatex-executebibliographyoptions-options): New variable. - (LaTeX-biblatex-language-list): New variable. - (LaTeX-arg-biblatex-cites): New function. - ("biblatex"): Always set `LaTeX-using-Biber'. Add citation - macros. - (LaTeX-biblatex-package-options-list): Move preamble options to - `LaTeX-biblatex-executebibliographyoptions-options'. - -2013-05-22 Mosè Giordano - - * latex.el: Replace `delete-backward-char' with `delete-char'. - - * tex.el: Ditto. - - * tex-buf.el: Replace `goto-line' with `goto-char' and - `forward-line'. - -2013-05-19 Mosè Giordano - - * doc/.gitignore: Rename from .cvsignore. - - * preview/.gitignore: Ditto. - - * preview/latex/.gitignore: Ditto. - -2013-05-18 Mosè Giordano - - * latex.el: Update copyright years, there have been non-trivial - changes in 1998, 2001, 2002. - (TeX-arg-index-tag): Use `TeX-argument-prompt'. - (TeX-arg-cite): Ditto. - - * tex.el: Update copyright years, there have been non-trivial - changes in 1995, 1998. - (TeX-parse-arguments): Move skipping of optional - arguments inside loop over all arguments, because optional - arguments may not be the first ones. Remove unused let-bound - variable `skip-opt'. - (TeX-arg-literal): Remove FIXME comment, `optional' is the first - argument passed to all functions by `TeX-parse-argument'. - -2013-05-13 Mosè Giordano - - * style/fancyvrb.el: New style. - - * style/xparse.el: Ditto. - - * Makefile.in (STYLESRC): Add style/fancyvrb.el and - style/xparse.el. - -2013-05-12 Mosè Giordano - - * tex.el (TeX-insert-dollar): Insert just a single dollar when the - point is in a verbatim-like construct. - - * font-latex.el (font-latex-jit-lock-force-redisplay): Don't rely - on existing `jit-lock-force-redisplay' because recent bzr Emacs - broke compatibility changing the number of arguments. Reported by - Robert Goldman. - -2013-05-08 Mosè Giordano - - * doc/auctex.texi (Environments): Document - `LaTeX-default-document-environment'. - -2013-05-07 Mosè Giordano - - * tex.el (TeX-electric-dollar): New variable. - (TeX-insert-dollar): Use it. - - * doc/auctex.texi (Quotes): Document `TeX-electric-dollar'. - -2013-04-28 Mosè Giordano - - * tex-bar.el: Update copyright range. - (TeX-bar-LaTeX-button-alist): Change BibTeX button to Biber when - `LaTeX-using-biber' is non-nil. - (LaTeX-install-toolbar): Refresh toolbar after styles update. - -2013-04-25 Mosè Giordano - - * latex.el (LaTeX-default-document-environment): New buffer-local - variable. - (LaTeX-default-environment): Mention - `LaTeX-default-document-environment' in doc-string. - (LaTeX-environment): Use `LaTeX-default-document-environment'. - - * style/beamer.el ("beamer"): Use - `LaTeX-default-document-environment' instead of - `LaTeX-default-environment'. - - * style/letter.el ("letter"): Ditto. - - * style/slides.el ("slides"): Ditto. - -2013-04-24 Mosè Giordano - - * style/acro.el (LaTeX-acro-acronym-history): New variable. - (LaTeX-arg-acro-acronym): Use it. - - * style/acronym.el (LaTeX-acronym-acronym-history): New variable. - (LaTeX-arg-acronym-acronym): Use it. - - * style/beamer.el (LaTeX-beamer-frametitle-history): New variable. - ("beamer"): Use it. - (TeX-arg-beamer-frametitle): Ditto. - - * style/siunitx.el (LaTeX-siunitx-unit-history): New variable. - (LaTeX-arg-siunitx-unit): Use it. - -2013-04-21 Mosè Giordano - - * style/beamer.el ("beamer"): Set `frame' as default environment. - Set `section' as largest sectioning level. Add fontification for - `title', `author', and `date'. - - * style/letter.el ("letter"): Set `letter' as default environment. - Add some macros and fontification. - - * style/slides.el ("slides"): Set `slide' as default environment. - - * latex.el (TeX-arg-insert-braces): Move - `indent-according-to-mode' after `save-excursion' because - `LaTeX-newline' (used in `save-excursion') deletes trailing - whitespaces. - -2013-04-19 Mosè Giordano - - * style/amsthm.el (LaTeX-amsthm-package-options): New variable. - ("amsthm"): Remove `newtheorem' macro, already defined in - `latex.el'. Use `TeX-arg-define-environment' in `newtheorem*' - macro. Add `qedhere', `swapnumbers', and `newtheoremstyle' - macros. Add `newtheorem*' regexp to match new environments. Add - fontification. - - * style/article.el ("article"): Add counters and pagestyles. - - * style/beamer.el ("beamer"): Ditto. - - * style/book.el ("book"): Ditto. - - * style/letter.el (LaTeX-letter-class-options): New variable. - ("letter"): Add pagestyles. - - * style/report.el ("report"): Add counters and pagestyles. - - * style/slides.el (LaTeX-slides-class-options): New variable. - ("slides"): Add counters and pagestyles. - -2013-04-18 Mosè Giordano - - * style/beamer.el: Update copyright years and remove trailing - whitespaces. - ("beamer"): Run style hooks for loaded packages. - (LaTeX-beamer-class-options): New function. - - * style/hyperref.el (LaTeX-hyperref-package-options-list): Rename - from `LaTeX-hyperref-package-options' to avoid clash with the - function with the same name. - ("hyperref"): Use it. - (LaTeX-hyperref-package-options): Ditto. - -2013-04-17 Mosè Giordano - - * plain-tex.el (plain-TeX-common-initialization): Fix typo in - abbrev table name. - -2013-04-16 Mosè Giordano - - * latex.el (LaTeX-default-author): New customizable variable. - (LaTeX-arg-author): New function. - (LaTeX-common-initialization): Use `LaTeX-arg-author' for the - \author macro. - (LaTeX-default-author): Change default to 'user-full-name (quoted) - and add a new possible value. - (LaTeX-arg-author): Change accordingly. - - * doc/auctex.texi (Itemize-like): Document `TeX-arg-item-label-p' - option. - (Tabular-like): Document `LaTeX-default-width' option. - (Modes and Hooks): Add modes and hooks to indices. - (Adding Macros): Document `TeX-arg-index-tag', `TeX-arg-index', - `TeX-arg-document', `LaTeX-arg-usepackage', `TeX-arg-bibstyle', - `TeX-arg-bibliography', `LaTeX-arg-author', `TeX-read-key-val', - and `TeX-arg-key-val' functions. Mention `TeX-arg-cite-note-p' - and `LaTeX-default-author' options. - (Adding Environments): Use in example code actually present in - `listings.el' file. - -2013-04-16 Tassilo Horn - - * tex.el (TeX-source-correlate-sync-source): Use `raise-frame' - instead of the external wmctrl command to raise the emacs frame. - -2013-04-15 Mosè Giordano - - * latex.el (TeX-read-key-val): Add `prompt' optional argument. - (TeX-arg-key-val): Ditto. - - * tex.el (fboundp): Use `crm-separator' as separator in XEmacs - `TeX-completing-read-multiple' implementation. - - * style/acro.el (LaTeX-arg-acro-key-val): Let-bind keymap with SPC - key binding removed, instead of defining a new key binding for - SPC. Use `TeX-arg-key-val' instead of `multi-prompt-key-value' - and `TeX-argument-insert'. - - * style/pst-node.el (LaTeX-pstnode-env-psmatrix): Replace - `completing-read-multiple' with `TeX-completing-read-multiple'. - - * style/pstricks.el (LaTeX-package-parameters): Ditto. - - * style/siunitx.el (LaTeX-arg-siunitx-unit): Let-bind keymap with - SPC key binding removed, instead of defining a new key binding for - SPC. Replace `completing-read-multiple' with - `TeX-completing-read-multiple'. - -2013-04-15 Tassilo Horn - - * tex.el (TeX-source-correlate-sync-source): Raise frame when - placing point on the source location. - -2013-04-12 Mosè Giordano - - * Makefile.in (STYLESRC): Add style/acro.el and style/acronym.el. - - * style/acro.el: New style. - - * style/acronym.el: Ditto. - -2013-04-10 Tassilo Horn - - * tex.el (TeX-evince-sync-view): URL-escape pdf file path when - calling evince via DBUS. - (TeX-evince-sync-view): Use 0 as timestamp. - (TeX-source-correlate-sync-source): URL-decode tex file name. - -2013-04-10 Nicolas Richard (tiny change) - - * style/mathtools.el (LaTeX-mathtools-key-val-options): Fix defvar - syntax. - -2013-04-10 Jobst Hoffmann (tiny change) - - * style/lscape.el ("lscape"): Fix typo and parentheses. - -2013-04-09 Tassilo Horn - - * README.GIT: Rename from README.CVS; update contents to Git. - -2013-04-09 Leo Liu - - * latex.el (LaTeX-outline-level): Make it work for customized - `outline-regexp'. See bug report - http://permalink.gmane.org/gmane.emacs.auctex.bugs/1648. - - * tex.el (TeX-view-program-list-builtin) - (TeX-view-program-selection): Enable commented code to support - darwin system. - - * tex.el (TeX-math-input-method-off-regexp): Improve and fix typo. - See bug http://permalink.gmane.org/gmane.emacs.auctex.devel/2468. - - * font-latex.el (font-latex-add-to-syntax-alist): Fix a bug in - `font-latex-add-to-syntax-alist' where it modified both the buffer - local and global value of `font-latex-syntax-alist'. - -2013-04-08 Tassilo Horn - - * latex.el (LaTeX-style-list): Correct docstring. - -2013-04-06 Mosè Giordano - - * latex.el (LaTeX-provided-class-options-member): Fix typo. - (LaTeX-arg-usepackage): Provide completion for more than one - package in mandatory argument. - -2013-04-05 Mosè Giordano - - * latex.el (LaTeX-global-class-files): New variable. - (TeX-arg-document): Provide completion for class options, based on - `LaTeX-arg-usepackage'. Use `LaTeX-global-class-files'. - (LaTeX-style-list): Mention that if `TeX-arg-input-file-search' is - set to `t' this variable will be ignored. - - * tex.el (TeX-normal-mode): Reset `LaTeX-global-class-files' when - ARG is non-nil. - - * style/article.el (LaTeX-article-class-options): New variable. - - * style/book.el (LaTeX-book-class-options): New variable. - - * style/report.el (LaTeX-report-class-options): New variable. - -2013-04-03 Mosè Giordano - - * latex.el (LaTeX-provided-class-options): New buffer-local - variable. - (LaTeX-provided-class-options-member): New function. - (LaTeX-provided-package-options): New buffer-local variable. - (LaTeX-provided-package-options-member): New function - (LaTeX-auto-cleanup): Rewrite to support - `LaTeX-provided-{class,package}-options' variables. - (LaTeX-arg-usepackage): Ditto. - - * tex.el (TeX-auto-store): Write to parsed file values of - `LaTeX-provided-{class,package}-options' variables. - (TeX-auto-insert): Fix indentation of inserted lines. - (TeX-search-files-by-type): Fix typo in doc-string. - (TeX-add-to-alist): New function. - (TeX-quote-language-alist): Fix typo in doc-string. - - * style/babel.el (LaTeX-babel-package-options): Add missing - languages. - (LaTeX-babel-package-options): Add options other than - languages. - (LaTeX-babel-active-languages): Use - `LaTeX-provided-{class,package}-options'. Loop over actually - used options instead of all babel languages. - ("babel"): Run styles of active languages. - - * style/biblatex.el ("biblatex"): Use - `LaTeX-provided-package-options-member'. - (LaTeX-biblatex-package-options): Consider the `ask' value for - 'TeX-arg-input-file-search'. - - * style/kpfonts.el ("kpfonts"): Use - `LaTeX-provided-package-options-member'. - - * style/siunitx.el: Rename `TeX-siunitx-*' functions to - `LaTeX-siunitx-*' for consistency. - ("siunitx"): Use `LaTeX-provided-package-options-member'. - -2013-03-29 Mosè Giordano - - * latex.el (TeX-arg-document): Search for LaTeX classes. - -2013-03-28 Mosè Giordano - - * style/biblatex.el (LaTeX-biblatex-package-options): Correct name - of `TeX-read-key-val' argument. - - * latex.el (LaTeX-common-initialization): Remove `addbibresource' - macro. - - * style/biblatex.el (LaTeX-biblatex-addbibresource-options): New - variable. - (LaTeX-arg-addbibresource): New function, based on current - `TeX-arg-bibliography'. - ("biblatex"): Add `addbibresource' macro. - (LaTeX-biblatex-package-options): Use `TeX-read-key-val'. - - * latex.el (TeX-arg-bibliography): Remove `addbibresource' - support. - -2013-03-27 Mosè Giordano - - * tex.el (TeX-add-local-master): Remove trailing spaces from - inserted lines. - -2013-03-07 Tassilo Horn - - * latex.el (TeX-read-key-val): New function. - (TeX-arg-key-val): Use `TeX-read-key-val'. - - * style/hyperref.el (LaTeX-hyperref-package-options): Use - `TeX-read-key-val' instead of `TeX-arg-key-val' which caused args - to be inserted twice. - - * style/siunitx.el (LaTeX-siunitx-package-options): Ditto. - -2013-03-06 Mads Jensen - - * style/amsopn.el: Add GPL copyright notice. - ("amsopn"): Add regex for \DeclareMathOperator to - `LaTeX-auto-regexp-list'. Use `TeX-arg-define-macro' for - \DeclareMathOperator. - -2013-03-06 Mads Jensen - - * tex.el (TeX-command-list): Add support for xindy. - -2013-03-06 Mads Jensen - - * latex.el (LaTeX-common-initialization): Add regular expression - for thispagestyle and pagestyle to `TeX-complete-list'. - -2013-03-04 Tassilo Horn - - * latex.el (TeX-arg-date): New function. - (LaTeX-common-initialization): Use `TeX-arg-date' for \date macro. - - * doc/auctex.texi: Document `TeX-arg-date'. - - * style/doc.el ("doc"): Use `TeX-arg-date' for the \changes macro. - -2013-02-26 Tassilo Horn - - * tex.el (TeX-run-style-hooks): Guard running style hooks in a - `condition-case' in order not to error in cases the auto file - contains calls to functions that are defined by a style that has - been deactivated in the meantime. - -2013-02-25 Werner Fink - - * style/dinbrief.el ("dinbrief"): Update dinbrief style. - (LaTeX-dinbrief-insert): New macro. - (LaTeX-dinbrief-style): New function. - (LaTeX-dinbrief-env-recipient): Rename from - `LaTeX-recipient-hook'. - (LaTeX-dinbrief-sender): New function. - (LaTeX-dinbrief-recipient): New function. - (LaTeX-dinbrief-today): Rename from `LaTeX-today'. - -2013-02-25 Tassilo Horn - - * tex.el (TeX-parse-macro): Add TeX group characters also in math - environments if there is an active region that should probably - used as argument. - - * latex.el (LaTeX-paragraph-commands-internal): Add \clearpage and - \newpage. - - * style/scrbase.el ("scrbase"): Add \minisec macro to - `LaTeX-paragraph-commands' locally. - -2013-02-23 Mosè Giordano - - * style/kpfonts.el: New style file. - - * Makefile.in (STYLESRC): Add style/kpfonts.el. - -2013-02-20 Mosè Giordano - - * latex.el (LaTeX-math-default): Move `digamma' and `varkappa' to - `AMS > Greek Lowercase' menu. - -2013-02-18 Mads Jensen - - * Makefile.in (STYLESRC): Activate new style array.el. - - * style/array.el: New style. - - * style/tabularx.el: Expand copyright range. - ("tabularx"): The package relies on the array package, so run its - style hook. - -2013-02-18 Tassilo Horn - - * tex.el (require): Require crm. - - * multi-prompt.el (multi-prompt-key-value): Don't require crm here - because it has already been required in tex.el. - -2013-02-16 Mosè Giordano - - * style/biblatex.el ("biblatex"): Add hooks for loaded packages. - (LaTeX-biblatex-package-options): New function. - (LaTeX-biblatex-package-options-list): Renamed from - `LaTeX-biblatex-package-options' to avoid clash with the function - with the same name. - - * latex.el (LaTeX-search-files-type-alist): Add `bbxinputs'. - (BibLaTeX-global-style-files): New variable. - - * tex.el (BibLaTeX-style-extensions): New variable. - (TeX-normal-mode): Make ARG argument optional. - (TeX-normal-mode): Reset `BibLaTeX-global-style-files' when ARG is - non-nil. - -2013-02-14 Mosè Giordano - - * style/siunitx.el (LaTeX-siunitx-package-options): New function. - - * style/hyperref.el (LaTeX-hyperref-package-options): New - function. - -2013-02-13 Mads Jensen - - * style/subfigure.el: Expanded copyright range. - ("subfigure"): Collapsed the two regular expressions for - completion. Added lengths, and commands for fonts. - -2013-02-14 Tassilo Horn - - * style/fancyhdr.el (TeX-arg-fancyhdr-position): Document the - OPTIONAL argument. - -2013-02-14 Mads Jensen - - * Makefile.in (STYLESRC): Activate new style fancyhdr.el. - - * style/fancyhdr.el: New style. - -2013-02-13 Mosè Giordano - - * doc/auctex.texi (Quotes): Document - `TeX-math-close-single-dollar'. - (Selecting a Command): Remove reference to - `LaTeX-biblatex-use-Biber'. - (Parsing Files): Document `LaTeX-auto-index-regexp-list', - `LaTeX-auto-class-regexp-list', - `LaTeX-auto-pagestyle-regexp-list', - `LaTeX-auto-counter-regexp-list', `LaTeX-auto-length-regexp-list', - `LaTeX-auto-savebox-regexp-list'. - - * tex.el (TeX-math-close-single-dollar): New variable. - (TeX-insert-dollar): Use it. - -2013-02-13 Tassilo Horn - - * Makefile.in (STYLESRC): Activate new style filecontents.el. - -2013-01-23 Mads Jensen - - * style/filecontents.el: New style. - -2013-02-13 Tassilo Horn - - * Makefile.in (STYLESRC): Activate new style fancynum.el. - -2013-02-08 Mads Jensen - - * style/fancynum.el: New style. - -2013-02-13 Tassilo Horn - - * Makefile.in (STYLESRC): Activate new style nameref.el. - -2013-02-13 Mads Jensen - - * doc/auctex.texi (Adding Macros): Mention that `TeX-arg-savebox' - now supports completion. - - * style/nameref.el: New style. - - * style/hyperref.el ("hyperref"): Run nameref style hook because - hyperref activates nameref. - -2013-02-10 Mosè Giordano - - * style/siunitx.el ("siunitx-unit"): New type for the parser. - (LaTeX-siunitx-regexp): New variable. - (LaTeX-auto-siunitx-unit): New variable. - (LaTeX-siunitx-prepare): New function. - (LaTeX-siunitx-cleanup): New function. - (TeX-auto-prepare-hook): Add `LaTeX-siunitx-prepare' function. - (TeX-auto-cleanup-hook): Add `LaTeX-siunitx-cleanup' function. - (TeX-arg-siunitx-unit): New function. - (TeX-arg-define-siunitx-unit): New function. - ("siunitx"): Add `LaTeX-siunitx-regexp' to list of regexps used - for parsing. - ("siunitx"): Use `TeX-arg-siunitx-unit' and - `TeX-arg-define-siunitx-unit' functions. - ("siunitx"): Use `LaTeX-add-siunitx-units' for adding siunitx unit - macros to the list of known units. - -2013-02-08 Mosè Giordano - - * style/biblatex.el: Update copyright range. - ("biblatex"): Check `backend' option value in - `TeX-active-styles'. - - * tex-style.el: Update copyright years. - (LaTeX-biblatex-use-Biber) Remove unused variable. - - * tex.el: Update copyright range. - (TeX-auto-add-type): Append new type to `TeX-auto-parser' instead - of prepending it. - (TeX-auto-store): Fix indentation of first lines of parsed file. - - * latex.el (LaTeX-auto-cleanup): Append options and styles to - `TeX-auto-file' instead of prepending them. - -2013-01-28 Mads Jensen - - * doc/todo.texi (Wishlist): Remove "Completion for sboxes". - -2013-01-27 Mads Jensen - - * latex.el (LaTeX-env-contents): Replaced regular expression with - `LaTeX-header-end', i.e., filecontents environments must go - somewhere in the preamble but not necessarily before the - \documentclass. - -2013-01-26 Mads Jensen - - * latex.el (LaTeX-auto-savebox-regexp-list): New variable. - (LaTeX-auto-regexp-list): Use `LaTeX-auto-savebox-regexp-list'. - ("savebox"): New type for the parser. - (TeX-arg-savebox): Use `LaTeX-savebox-list' for completion and - `definition' argument. - (LaTeX-common-initialization): Added makeatletter, makeatother, - and jobname macros. - (LaTeX-default-options): Changed documentstyle to documentclass in - docstring. - -2013-01-25 Mosè Giordano - - * style/siunitx.el ("siunitx"): Add `\gram' and - `\SendSettingsToPgf'. - -2013-01-25 Tassilo Horn - - * tex-buf.el (TeX-output-mode): Make revert-buffer-function buffer - local before setting it to TeX-output-revert-buffer. - -2013-01-24 Ivan Andrus - - * auctex.texi: Updated documetation about ChkTeX and lacheck. - Fixed typos. - -2013-01-24 Ivan Andrus - - * tex-buf.el (TeX-output-revert-buffer): New function. - (TeX-special-mode, TeX-output-mode): New major modes. - (TeX-special-mode-map, TeX-output-mode-map): New variables. - -2013-01-21 Tassilo Horn - - * Makefile.in (STYLESRC): Activate new style placeins.el. - -2013-01-21 Ivan Andrus - - * texmathp.el (texmathp-tex-commands-default): Add \shortintertext. - -2013-01-19 Mads Jensen - - * style/placeins.el: New style. - -2013-01-17 Tassilo Horn - - * doc/todo.texi: Remove the todo concerning completion for - counters that was implemented by Mosè Giordano on 2013-01-15. - - * doc/auctex.texi: Document `TeX-arg-length' and - `TeX-arg-define-length'. - -2013-01-16 Mosè Giordano - - * latex.el (LaTeX-auto-length-regexp-list): New variable. - (LaTeX-auto-regexp-list): Use `LaTeX-auto-length-regexp-list'. - ("length"): New type for the parser. - (TeX-arg-length): New function. - (TeX-arg-define-length): New function. - (LaTeX-common-initialization): Initialize some standard LaTeX - lengths and use `TeX-arg-length' and `TeX-arg-define-length' for - completion of some macros. - -2013-01-15 Tassilo Horn - - * doc/auctex.texi: Document that `TeX-arg-counter' does completion - now. - -2013-01-15 Mosè Giordano - - * latex.el (LaTeX-auto-pagestyle-regexp-list): Fix typo. - (LaTeX-auto-counter-regexp-list): New variable. - (LaTeX-auto-regexp-list): Use `LaTeX-auto-counter-regexp-list'. - ("counter"): New type for the parser. - (TeX-arg-counter): Use `LaTeX-counter-list' function for - completion and `definition' argument. - (TeX-arg-pagestyle): Use `definition' argument. - (LaTeX-common-initialization): Initialize counters. - -2013-01-14 Tassilo Horn - - * style/ulem.el (LaTeX-arg-fontdecl, LaTeX-arg-fontcmd): Fix - declarations. - -2013-01-13 Mads Jensen - - * style/pstricks.el (LaTeX-pstricks-package-options): New - variable. - - * style/varioref.el: Update copyright range. - ("varioref"): Add more definitions. - (LaTeX-varioref-package-options): Reformat. - - * style/listings.el: Update copyright range. - (LaTeX-listings-key-val-options, "listings") - (LaTeX-listings-package-options): Update to recent listings - version. - -2013-01-14 Tassilo Horn - - * Makefile.in (STYLESRC): Enable memoir.el style. - -2013-01-14 Mads Jensen - - * style/memoir.el: New style. - -2013-01-14 Mosè Giordano - - * latex.el (TeX-arg-environment): Fix typo. - -2013-01-10 Mosè Giordano - - * latex.el: Update copyright range. - (LaTeX-auto-pagestyle-regexp-list): New variable. - (LaTeX-auto-regexp-list): Use `LaTeX-auto-pagestyle-regexp-list'. - ("pagestyle"): New type for the parser. - (LaTeX-pagestyle-list): Remove. - (TeX-arg-pagestyle): Use `LaTeX-pagestyle-list' function for - completing. - (LaTeX-common-initialization): Initialize pagestyles. - - * style/imakeidx.el: Use `LaTeX-pagestyle-list' function to set - `firstpagestyle' option values. - -2013-01-11 Ivan Andrus - - * tex.el (TeX-command-list): Add command to run ChkTeX. - -2013-01-11 Tassilo Horn - - * Makefile.in (STYLESRC): Add new style files kantlipsum.el, - lipsum.el, and longtable.el. - -2013-01-10 Mosè Giordano - - * style/kantlipsum.el: New style. - - * style/lipsum.el: Ditto. - - * style/longtable.el: Ditto - -2013-01-10 Mads Jensen - - * latex.el (LaTeX-env-document): Only insert \documentclass in - case the document does not already contain one. - -2013-01-09 Ralf Angeli - - * style/epigraph.el ("epigraph"): Do not quote list entries for - `font-latex-add-keywords'. - -2013-01-07 Ralf Angeli - - * style/mathtools.el ("mathtools"): Prevent amsmath options from - being added multiple times. - - * style/footmisc.el ("footmisc"): Remove fontification settings - for length macros. - -2013-01-06 Ralf Angeli - - * style/mathtools.el ("mathtools"): Append amsmath options to - mathtools option after the amsmath style file has been loaded. - Remove `function' wrapper. - -2013-01-05 Ralf Angeli - - * Makefile.in (STYLESRC): Activate new style files. - - * ChangeLog: Move name of style file contributors to head of - ChangLog entries. - -2013-01-02 Tassilo Horn - - * style/everysel.el: Fix typos. - -2013-01-02 Mads Jensen - - * style/afterpage.el: New style. - -2012-12-30 Mosè Giordano - - * latex.el (LaTeX-pagestyle-list): New variable. - (TeX-arg-pagestyle): Use it. - - * style/imakeidx.el: New style. - -2012-12-29 Ikumi Keita - - * doc/tex-ref.tex: Fix apparent errors and add keybind entries for - C-c ? and `:' (in math mode). - -2012-12-28 Mads Jensen - - * style/multirow.el: New style. - -2012-12-27 Mosè Giordano - - * style/siunitx.el (LaTeX-siunitx-package-options): New variable. - ("siunitx"): Use it. - - * style/hyperref.el (LaTeX-hyperref-href-options): New variable. - (LaTeX-hyperref-package-options, "hyperref"): Use it. - -2012-12-27 Mads Jensen - - * style/mflogo.el: New style. - - * style/epigraph.el: Ditto. - -2012-12-27 Ikumi Keita - - * amsmath.el ("amsmath"): Add support for the alignedat - and subarray environments. Also, add support for the shoveright - and shoveleft macros. - * font-latex.el (font-latex-math-environments): Add "xxalignat" - and "flalign". - -2012-12-26 Mads Jensen - - * style/lscape.el: New style. - - * style/amssymb.el: Ditto. - - * style/ragged2e.el: Ditto. - - * style/mathtools.el: Ditto. - - * style/everysel.el: Ditto. - - * style/bigstrut.el: Ditto. - - * style/bigdelim.el: Ditto. - -2012-12-25 Mads Jensen - - * style/ulem.el: New style. - -2012-12-25 Ikumi Keita - - * latex.el (LaTeX-math-default): Added unicode character position - to some entries and "mathring" entry. - (LaTeX-common-initialization): Added support for accent macros - \hat, \dot etc and \textasteriskcentered. - -2012-12-24 Mads Jensen - - * style/footmisc.el: New style. - -2012-12-21 Mosè Giordano - - * style/bm.el: New style. - - * style/siunitx.el: Ditto. - -2012-12-20 Tassilo Horn - - * tex-bar.el (TeX-bar-LaTeX-buttons, TeX-bar-LaTeX-button-alist): - Also add spell button. - - * images/spell.xpm: New image, copied from Emacs. - - * tex-bar.el (TeX-bar-TeX-button-alist): Use it for the spell - button. - -2012-12-20 Tassilo Horn - - * tex-bar.el (TeX-bar-TeX-button-alist, TeX-bar-TeX-buttons): Add - `spell' button to run spell-checker. - -2012-12-04 Tassilo Horn - - Merge revno 314 (Stefan Monnier) from emacs elpa branch: Shorten - copyright year ranges. - - * context.el: - - * doc/auctex.texi: - - * doc/changes.texi: - - * doc/install.texi: - - * font-latex.el: - - * latex.el: - - * style/letter.el: - - * tex-fold.el: - - * tex-jp.el: - - * tex.el: - -2012-11-30 Ralf Angeli - - * Version 11.87 released. - -2012-11-30 Ralf Angeli - - * tex.el (TeX-evince-dbus-p): Make last change a little more - conventional. - -2012-11-30 Tassilo Horn - - * tex.el (TeX-evince-dbus-p): Check for feature emacs in order not - to signal an error on XEmacs. - -2012-11-29 Ralf Angeli - - * RELEASE, configure.ac, doc/auctex.texi, doc/changes.texi, - doc/install.texi, doc/tex-ref.tex: Update for upcoming release. - -2012-11-26 Ralf Angeli - - * latex.el (LaTeX-split-bibs): Add doc string and use variable for - Biber file extensions. - (LaTeX-search-files-type-alist): Add entry for Biber. - (BibTeX-Biber-global-files): Remove. - (BibTeX-global-files): Reintroduce. - (TeX-Biber-global-files): New variable. - (TeX-arg-bibliography): Check if Biber or BibTeX is used and react - accordingly. - - * tex-buf.el (TeX-check-files): Do not check duplicate extensions. - (TeX-command-query, TeX-LaTeX-sentinel): Use separate variables - for BibTeX and Biber file extensions. - (TeX-synchronous-sentinel): Use `let' instead of `let*'. - - * tex.el (TeX-clean-default-intermediate-suffixes): Add suffixes - for biblatex. - (TeX-auto-generate, TeX-auto-generate-global): Use separate - variables for BibTeX and Biber file extensions. - (TeX-Biber-file-extensions): New variable. - (BibTeX-Biber-file-extensions): Remove. - (BibTeX-file-extensions): Reintroduce. - (TeX-search-files-type-alist): Use `BibTeX-file-extensions'. - (TeX-normal-mode): Use separate variables for BibTeX and Biber - global files. - -2012-07-17 Vincent Belaïche - - * tex-info.el (Texinfo-reftex-hook): Added function. - (TeX-texinfo-mode): Added RefTeX plugging. - -2012-11-23 Tassilo Horn - - * doc/quickstart.texi (Quick Start): Document that one mustn't - load auctex.el if AUCTeX is installed from ELPA. - - * doc/install.texi (Installation): Mention installation from ELPA. - -2012-11-20 Davide G. M. Salvetti - - * doc/tex-ref.tex (column{preview-latex}): Fix typo. Reported by - Sébastien Villemot. Update copyright information. - -2012-11-14 Ralf Angeli - - * latex.el (LaTeX-auto-regexp-list): Remove entries for Biber. - (LaTeX-biber): Remove. - (LaTeX-listify-package-options): Rewrite so that the function can - deal with key=value pairs. - (LaTeX-always-use-Biber): Remove. - (LaTeX-using-Biber): Add doc string and make buffer-local. - - * tex-style.el (LaTeX-biblatex-use-Biber): New variable. - - * doc/auctex.texi (top): Remove reference to - `LaTeX-always-use-Biber'. - (Selecting a Command): Mention Biber and - `LaTeX-biblatex-use-Biber'. - - * Makefile.in (STYLESRC): Add style/biblatex.el. - - * style/biblatex.el: New file. - -2012-11-05 Tassilo Horn - - * tex.el (TeX-doc-extensions): Fix typo. This variable was - formerly named TeX-doc-extenstions. - -2012-10-04 Masayuki Ataka - - * tex-jp.el: Repair coding from iso-2022-7bit to iso-2022-jp. - -2012-10-03 Ralf Angeli - - * tex-jp.el: Repair coding. - -2012-10-02 Ikumi Keita - - * tex-jp.el (japanese-TeX-engine-default) - (TeX-engine-alist-builtin, japanese-TeX-use-kanji-opt-flag): New - defcustoms. - (japanese-TeX-coding-ejsu, japanese-TeX-get-encoding-string): New - functions. - (japanese-TeX-command-list): Support %(kanjiopt). - (TeX-expand-list): Support new option kanjiopt, bibtex, makeindex, - mendexkopt, xdvi. - (TeX-view-predicate-list-builtin): Judge paper. - (TeX-view-program-list): Support dviout paper size, and other DVI - previewers in Mac and others. - (TeX-view-program-selection): Add Dviout, TeXworks and Preview. - (LaTeX-command-style): Support uplatex. - (japanese-plain-tex-mode-initialization): Use TeX-engine-set. - (japanese-latex-mode-initialization): Ditto. - - * tex-jp.el: Comment fix. - (TeX-error-description-list): Doc fix. - -2012-09-27 Joost Kremers (tiny change) - - * tex-buf.el (TeX-check-files): Use mapcar instead of cl's map. - -2012-09-16 Philip Kime (tiny change) - - * tex-buf.el (TeX-LaTeX-sentinel): Detect generic rerun message - from biblatex - -2012-09-14 Ken Brown (tiny change) - - * doc/auctex.texi (top): Mention LaTeX-always-use-Biber. - - * doc/tex-ref.tex: Add Biber. - -2012-09-13 Tassilo Horn - - Merge Biber support developed by Philip Kime - . - * doc/changes.texi: Mention Biber support. - - * tex.el (TeX-command-list, TeX-auto-generate) - (TeX-auto-generate-global, TeX-search-files-type-alist) - (TeX-normal-mode): Adapt. - (TeX-command-Biber): New defcustom. - (BibTeX-Biber-file-extensions): Renamed from - BibTeX-file-extensions. - - * tex-buf.el (TeX-save-document, TeX-check-files) - (TeX-command-query, TeX-LaTeX-sentinel): Adapt. - (TeX-Biber-sentinel, TeX-run-Biber): New functions. - - * latex.el (LaTeX-auto-regexp-list, LaTeX-auto-cleanup) - (TeX-arg-bibliography, LaTeX-common-initialization): Adapt. - (LaTeX-biber, LaTeX-split-bibs, LaTeX-using-Biber) - (LaTeX-always-use-Biber): New functions and vars. - (BibTeX-Biber-global-files): Renamed from BibTeX-global-files. - - * font-latex.el (font-latex-built-in-keyword-classes) - (font-latex-add-keywords): Adapt. - -2012-06-21 Patrice Dumas (tiny change) - - * doc/preview-latex.texi (The preview images): Place index command - `@pindex dvipng' on a line of its own. - - * doc/macros.texi: Replace user macro `@sans' by user macro - `@sansserif' and make definition conditional against flag - no-sansserif as `@sansserif' is a Texinfo macro and does not need - to be redefined. - - * doc/macros.texi: Suppress user macro `@LaTeX' as this macro is - already defined in Texinfo. - - * doc/quickstart.texi (Editing Facilities): Use texinfo - `@sansserif' macro rather than user macro `@sans'. - - * doc/auctex.texi (Font Specifiers): Use texinfo `@sansserif' - macro rather than user macro `@sans'. - -2012-08-14 Ralf Angeli - - * tex.el (TeX-source-correlate-determine-method): Match --synctex - as well as -synctex. - -2012-07-04 Tassilo Horn - - * doc/changes.texi: Mention Evince forward/backward search - changes. - -2012-07-03 Tassilo Horn - - * font-latex.el (byte-code-function-p): Reference the generated - functions with font-latex-match prefix. See Emacs bug 11837. - -2012-06-22 Tassilo Horn - - * tex.el (TeX-evince-dbus-p): Add check for - `dbus-register-signal', which might be unavailable if emacs was - configured with --without-dbus. - -2012-04-26 Tassilo Horn - - * tex.el (TeX-engine-set): Fix docstring leading to a misplaced - interactive spec warning. - -2012-04-25 Tassilo Horn - - * tex.el (TeX-evince-dbus-p): Improve check for emacs's dbus - support. - -2012-04-11 Tassilo Horn - - * tex.el (TeX-evince-sync-view): Work around emacs integer limits. - Also provide the current column to Evince. - (TeX-evince-dbus-p): Also check the signature of Evince's - FindDocument DBUS method, which is only stable since evince 3.0. - -2012-04-10 Tassilo Horn - - * tex.el (TeX-evince-sync-view): Fix arithmetic range error. - (TeX-evince-dbus-p): Add parameter to extend the check depending - on wanted features (e.g., forward search). - (TeX-view-program-list-builtin): Use it. - -2012-04-08 Tassilo Horn - - * tex.el (TeX-evince-dbus-p): New function. - (TeX-evince-sync-view): New function. - (TeX-view-program-list-builtin): Use Evince's DBUS interface for - forward search if available. - (TeX-source-correlate-mode): Use TeX-evince-dbus-p. - -2012-01-11 Ralf Angeli - - * style/setspace.el ("setspace"): Correct quoting. - -2011-09-18 Ralf Angeli - - * doc/auctex.texi (Marking): Make a few corrections throughout the - section. - (Adding Macros): Document special values for numbers used together - with `TeX-add-symbols'. - -2011-09-18 Vincent Belaïche - - * doc/auctex.texi: Add documentation for functions - LaTeX-mark-section, LaTeX-mark-environment, Texinfo-mark-section, - Texinfo-mark-environment and Texinfo-mark-node. - -2011-08-24 Tassilo Horn - - * tex.el (TeX-synctex-output-page): TeXLive 2011's synctex wants - absolute file names with dot indicating the master, like - /foo/bar/./baz/chap1.tex. So add this as another variant. - (TeX-view-program-list-builtin): Use evince's -i,--page-index - switch instead of -p,--page-label if that evince version supports - it (>=3.0.x). - -2011-08-07 Ralf Angeli - - * latex.el (LaTeX-fill-move-to-break-point): Take characters after - closing dollar sign into account when deciding to break before - inline math. - -2011-07-12 Ralf Angeli - - * tex.el (TeX-search-files-kpathsea): Check if directories are - accessible. - -2011-07-11 Vincent Belaïche - - * tex-info.el (Texinfo-mark-environment, Texinfo-mark-section) - (Texinfo-mark-node): New defun. - (Texinfo-mode-map): added key bindings for - Texinfo-mark-environment, Texinfo-mark-section, and - Texinfo-mark-node. - -2011-06-19 Ralf Angeli - - * tex.el (TeX-engine-alist-builtin): Add --jobname to luatex and - lualatex calls. - (TeX-engine-alist-builtin): Remove --jobname again for luatex but - not for lualatex. - -2011-06-05 Tassilo Horn - - * tex.el (TeX-source-correlate-sync-source): Restore Emacs 21 - compatibility. - -2011-05-26 Tassilo Horn - - * tex.el (TeX-source-correlate-sync-source): Adapt to handle - file:// URLs. - -2011-05-15 Ralf Angeli - - * Makefile.in (STYLESRC): Add style/setspace.el. - - * tex.el (TeX-expand-list): Add a safeguard to the %(outpage) - expander for when an output page function returns nil. - -2011-05-09 Tassilo Horn - - * tex.el (TeX-synctex-output-page-1): New function for calling - synctex. - (TeX-synctex-output-page): Use it, and try relative file names - with and without leading ./ when calling synctex before falling - back to page 1. - (TeX-source-correlate-sync-source): Add &rest parameter, because - Evince 3 sends an additional (ignored) parameter via dbus. - -2011-05-01 Ralf Angeli - - * tex.el (TeX-tree-expand): Use a different test to check for an - absolute path on Windows. - - * font-latex.el (font-latex-built-in-keyword-classes): Add - definition for \rule and remove the one for \sbox. - -2011-04-25 Ralf Angeli - - * style/setspace.el: Add support for changing \displayskipstretch. - -2011-04-25 Mads Jensen - - * style/setspace.el: New file. - -2011-04-25 Ralf Angeli - - * latex.el (LaTeX-style-list): Add memoir. - -2011-04-20 Ralf Angeli - - * tex-fold.el (TeX-fold-expand-spec): Make sure the expansion of a - placeholder is not processed again. - -2011-04-15 Ralf Angeli - - * font-latex.el (font-latex-built-in-keyword-classes): Make a few - additions and corrections. - - * latex.el (LaTeX-common-initialization): Prompt for file - extension instead of name when inserting \addcontentsline or - \addtocontents. - -2011-04-10 Ralf Angeli - - * tex.el (TeX-source-correlate-mode): Check for D-Bus session. - -2011-04-10 Antoine Levitt (tiny change) - - * tex.el (TeX-source-correlate-sync-source): Do not use - `goto-line'. - -2011-04-03 Ralf Angeli - - * Makefile.in (STYLESRC): Add style/xspace.el. - - * style/xspace.el: Add copyright notice and license blurb. - Correct a few things. - -2011-04-03 Mads Jensen - - * style/xspace.el: New file. - -2011-03-27 Tassilo Horn - - * tex.el (TeX-source-correlate-mode): Add support for I/O - correlation mode inverse search for the Evince document viewer. - -2011-03-23 Ralf Angeli - - * style/bulgarian.el, style/czech.el, style/danish.el, - style/frenchb.el, style/icelandic.el, style/polish.el, - style/polski.el, style/slovak.el, style/swedish.el: Do not set - `TeX-quote-language' if `override' is in effect. - -2011-03-20 Ralf Angeli - - * tex-buf.el (TeX-synchronous-sentinel): Strip directory part of - master file because we are already in the master directory. - -2011-03-13 Ralf Angeli - - * Makefile.in (STYLESRC): Add style/lettrine.el and - style/multicol.el. - - * style/lettrine.el: Add copyright notice and license blurb. - Correct a few things. - - * style/multicol.el: Add copyright notice and license blurb. - Simplify environment definitions. Provide completion for lengths - the package defines. Get rid of indentation and filling barrier. - Remove fontification definitions. - -2011-03-13 Mads Jensen - - * style/lettrine.el: New file. - - * style/multicol.el: New file. - -2011-02-27 Ralf Angeli - - * latex.el (LaTeX-common-initialization): Add support for - \ProvidesPackage. - -2011-02-06 Ralf Angeli - - * style/letter.el (LaTeX-env-recipient): Use \renewcommand instead - of \def to set date. - -2011-01-30 Ralf Angeli - - * tex.el (TeX-parse-macro): Do not insert braces if the argument - is 0 or less. - (TeX-parse-argument): Put both the macro and the marked region in - a TeX group if the argument is less than 0. - - * latex.el (LaTeX-common-initialization): Give macros that change - font size a -1 argument so that braces are added around them if - if there is an active region. - - * doc/auctex.texi (Adding Macros): Document special options 0 and - -1 for number-type specs. - -2011-01-29 Ralf Angeli - - * tex.el (TeX-complete-symbol): Get rid of the window with the - completions when possible. - -2011-01-23 Ralf Angeli - - * tex-fold.el (TeX-fold-post-command): Add `forward-char' and - `backward-char' to commands on which to open an overlay. - - * doc/auctex.texi (Adding Macros): Mention - `TeX-arg-input-file-search'. - -2011-01-22 Ralf Angeli - - * tex.el (TeX-tree-expand): Make `subdirs' parameter optional. Do - not try to call kpsewhich with --expand-braces anymore and adapt - code for handling of results accordingly. - (TeX-doc-extenstions): New variable. - (TeX-tree-roots): New function. - (TeX-tree-roots): New user option. - (TeX-kpathsea-format-alist): Remove. - (TeX-search-files-kpathsea): Add and use `extensions' and `scope' - parameters. - (TeX-search-files): Do not call `TeX-search-files-kpathsea' - anymore. - (TeX-search-files-type-alist): New variable. - (TeX-search-files-by-type): New function. - - * latex.el (LaTeX-arg-usepackage): Let-bind - `TeX-input-file-search'. - (LaTeX-search-files-type-alist): New user option. - (TeX-arg-input-file-search): Doc fix. - (TeX-arg-input-file, TeX-arg-bibstyle, TeX-arg-bibliography): Use - `TeX-search-files-by-type' instead of `TeX-search-files'. - (LaTeX-common-initialization): Set `TeX-search-files-type-alist'. - -2011-01-09 Ralf Angeli - - * latex.el (LaTeX-common-initialization): Add support for - \settoheight and \settodepth. - -2010-12-26 Ralf Angeli - - * doc/auctex.texi (Simple Style): Add a note about the naming of - the style file and the style hook. - -2010-12-12 Ralf Angeli - - * latex.el (LaTeX-env-args): Add the optional argument at the - right position when wrapping the environment around existing text. - -2010-12-05 Ralf Angeli - - * context.el: Set up abbrev table. - (ConTeXt-mode-common-initialization): Set `local-abbrev-table'. - - * latex.el: Set up abbrev table for LaTeX and docTeX mode. - (docTeX-mode): Set abbrev table. - (LaTeX-common-initialization): Set `local-abbrev-table'. - - * plain-tex.el: Set up abbrev table. - (plain-TeX-common-initialization): Set `local-abbrev-table'. - - * tex.el (TeX-mode-prefix): Add mode parameter. - (VirTeX-common-initialization): Do not set `local-abbrev-table' - anymore. - (TeX-abbrev-mode-setup): New function. - - * doc/changes.texi: Mention change of abbrev handling. - -2010-12-04 Ralf Angeli - - * latex.el (LaTeX-verbatim-macro-boundaries): Support verbatim - macros with braces. - -2010-12-04 Augusto Ritter Stoffel (tiny change) - - * latex.el (LaTeX-math-keymap): Define a key for the math prefix - only if it has not been used as a prefix after the prefix. - -2010-11-16 Ralf Angeli - - * tex.el (TeX-view-program-list-builtin): Add Okular. - -2010-10-17 Ralf Angeli - - * latex.el (TeX-arg-input-file-search): New user option. - (TeX-arg-input-file): Use it. - -2010-10-11 Ralf Angeli - - * tex.el (TeX-synctex-output-page): Return "1" if no page number - can be found to prevent an infinite loop in command expansion. - -2010-10-02 Ralf Angeli - - * style/beamer.el ("beamer"): Prompt for block title. - -2010-09-28 Ralf Angeli - - * context.el (ConTeXt-extra-paragraph-commands): Remove. - (ConTeXt-language-variable-list): Add - `ConTeXt-extra-paragraph-commands'. - - * context-en.el (ConTeXt-extra-paragraph-commands-en): New - variable. - - * context-nl.el (ConTeXt-extra-paragraph-commands-nl): New - variable. - -2010-09-18 Ralf Angeli - - * context.el (ConTeXt-expand-options): Eval value from engine - alist. - -2010-09-12 Ralf Angeli - - * tex-fptex.el: Remove. - - * Makefile.in (AUCSRC): Reflect removal of tex-fptex.el. - - * doc/wininstall.texi: Reflect removal of tex-fptex.el. - - * style/virtex.el: Mention author. Do not unnecessarily protect - `lambda' with `function'. - - * font-latex.el (font-latex-keyword-matcher): Refine last change - to work properly with lists of face symbols. - -2010-09-11 Ralf Angeli - - * style/natbib.el: Update copyright information. - - * style/letter.el: Update copyright information. - - * style/harvard.el: Update copyright information. - - * style/doc.el: Do not unnecessarily protect `lambda' with - `function'. - -2010-09-06 Arne Jørgensen - - * style/danish.el: Changed font-latex-add-quotes from french to - german. - -2010-08-30 Ralf Angeli - - * style/ngerman.el: Prevent "| from leading to color bleed. - - * style/german.el: Prevent "| from leading to color bleed. - -2010-08-29 Ralf Angeli - - * doc/preview-dtxdoc.pl: Use explicit variable with split instead - of implicit split to @_ which does not work anymore in Perl 5.12. - -2010-07-11 Ralf Angeli - - * tex-info.el: Delete trailing whitespace. - -2010-07-04 Ralf Angeli - - * doc/faq.texi: Update infos about Emacs versions. Add FAQ entry - for file:line:error messages in case `TeX-next-error' fails due to - unbalanced parens. - - * tex.el (TeX-print-command, TeX-queue-command) - (TeX-printer-list): Switch back to Berkeley-style commands. - -2010-06-24 Ralf Angeli - - * doc/auctex.texi (Texinfo mode): Make a few corrections. - -2010-06-19 Berend de Boer - - * context.el: proper indent of all macros that can appear inside - an itemize list such as \sym. - -2010-06-12 Ralf Angeli - - * tex-info.el (Texinfo-find-env-end, Texinfo-find-env-start): - Enable the commands to be used repeatedly without getting stuck at - an environment start or end respectively. - -2010-05-27 Ralf Angeli - - * autogen.sh: Set LANG=C when looking into ChangeLog for - AUCTEXDATE. - -2010-05-24 Vincent Belaïche - - * doc/auctex.texi (Texinfo mode): New section. - -2010-05-17 Ralf Angeli - - * tex.el (TeX-math-input-method-off-regexp): Fix regexp. - -2010-04-25 Ralf Angeli - - * tex.el (TeX-print-command): Support printing of Postscript and - PDF files. Doc fix. - (TeX-queue-command): Use lpstat instead of lpq. Doc fix. - (TeX-printer-list): Support printing of Postscript and PDF files. - Make use of System V style commands (lp, lpstat) instead of - Berkeley style (lpr, lpq). - (TeX-printer-default): Doc fix. - -2010-04-17 Ralf Angeli - - * tex-buf.el (TeX-warning): Throw an error with a sensible message - if the file for the warning could not be determined. - -2010-04-13 Ralf Angeli - - * tex-buf.el (TeX-format-filter): Calculate the current column as - difference between line start and end instead of using - `current-column' in order to do the right thing when octal codes - are present. - -2010-04-11 Ralf Angeli - - * font-latex.el (font-latex-keyword-matcher): Quote a list of face - properties but do not to quote a face symbol. - -2010-04-05 Ralf Angeli - - * tex-buf.el (TeX-parse-error): Allow `TeX-error-file' to become - empty. - -2010-03-28 Ralf Angeli - - * plain-tex.el: New file. - - * tex.el: Move code related to plain TeX to plain-tex.el. - - * Makefile.in (AUCSRC): Add plain-tex.el. - - * context.el: Require `plain-tex'. - -2010-03-27 Ralf Angeli - - * tex.el (TeX-view-program-selection): Doc fix. - (TeX-clean): Regexp-quote the master file name. - -2010-03-20 Ralf Angeli - - * style/french.el: New file. - - * Makefile.in (STYLESRC): Add style/french.el. - -2010-03-07 Ralf Angeli - - * latex.el (TeX-arg-key-val): Hint at key=value format in prompt. - (LaTeX-fill-region-as-para-do): Match whitespace without comment - starter at beginning of line when dealing with code comments. - -2010-03-06 Ralf Angeli - - * Makefile.in (DIST_PREFIX): Use the working directory for the - folder with distribution files. - (FTPDIR, WWWDIR): Make them subdirectories of `DIST_PREFIX'. - (COMMITTER_NAME, COMMITTER_EMAIL): Remove. - (COMMITTER): New variable. - (.PHONY): Update. - (tar-ball-clean): Use `check-tag'. - (check-tag): New name for `check-dist'. - (dist): Do not call `release-commit' anymore. - (snapshot): Now an alias for `dist'. - (release-commit): Use `COMMITTER'. - (release-sign): New name for `full-release' target. Generate - version 1.1 directive files. - (xemacs-package): Depend on `check-tag'. - (WPACKAGEFILES): Include info files with a numerical supplement to - the .info extension. Depend on `check-tag'. Check for presence - of `WEMACSVER' variable. Try to find a local AUCTeX tar ball - before downloading one. Use `TAG' instead of `WAUCVER'. Put ZIP - archive into `FTPDIR'. - (WAUCVER, WEMACSVER): Remove. - (release-upload): New target. - (www-doc): Depend on `check-tag'. Update URLs for Emacs manuals. - -2010-02-21 Ralf Angeli - - * Version 11.86 released. - -2010-02-21 Ralf Angeli - - * RELEASE: Update for upcoming release. - - * doc/install.texi (Prerequisites): Update information about Emacs - distributions. - - * doc/tex-ref.tex: Bump version number. Update section on TeXing - options. - - * configure.ac: Bump version number. - - * auctex.spec (Version): Bump version number. - - * doc/fdl.texi: Switch to GFDL 1.3. - - * doc/auctex.texi: Switch to GFDL 1.3. - - * doc/preview-latex.texi: Switch to GFDL 1.3. - - * doc/changes.texi: Update for next release. - -2010-02-20 Ralf Angeli - - * tex.el (TeX-doc): Add a fallback in case nothing is found via - the backend list, e.g. when using MiKTeX 2.8. - - * doc/auctex.texi (Documentation): Document change in `TeX-doc'. - -2010-02-14 Ralf Angeli - - * doc/changes.texi: Mention preview.sty supporting XeTeX. - -2010-02-13 Ralf Angeli - - * tex.el (TeX-XeTeX-command, LaTeX-XeTeX-command): Remove. - (ConTeXt-engine): Doc fix. - (ConTeXt-Omega-engine): Doc fix. Make obsolote. - (TeX-expand-list): Add support for LuaTeX. Adapt to new engine - handling. - (AUC-TeX-version, AUC-TeX-date): Remove. - (TeX-engine-alist-builtin): New variable. - (TeX-engine-alist): Adapt to new engine handling and make it a - defcustom. - (TeX-engine-alist): New function. - (TeX-engine): Adapt to new engine handling and make it - buffer-local. - (LaTeX-engine-alist): Remove. - (TeX-engine-set): Adapt to new engine handling and take care of - TeX PDF mode. - (TeX-clean-default-output-suffixes): Add .xdv. - (TeX-mode-specific-command-menu-entries): Construct list of - engines from `TeX-engine-alist'. - - * context.el (ConTeXt-expand-options): Adapt to new engine - handling. - - * doc/auctex.texi (Processor Options): Document options and - functions of new engine handling. - -2009-12-30 Ralf Angeli - - * tex.el (TeX-view-command-raw): Abort if no matching viewer is - found. - - * doc/preview-faq.texi (Troubleshooting): Add some hints about - preview-latex overwriting output files. - -2009-12-28 Ralf Angeli - - * style/austrian.el: New file. - - * style/naustrian.el: New file. - - * Makefile.in (STYLESRC): Add style/austrian.el and - style/naustrian.el. - -2009-12-26 Ralf Angeli - - * doc/auctex.texi (Known problems): New subsection on dealing with - font locking problems. - - * font-latex.el (font-latex-syntax-alist): New variable. - (font-latex-add-to-syntax-alist): New function. - (font-latex-setup): Use `font-latex-syntax-alist'. - - * style/shortvrb.el: New file. - - * Makefile.in (STYLESRC): Add style/shortvrb.el. - - * tex-style.el (LaTeX-shortvrb-chars): New variable. - - * doc/changes.texi: Document changes after 11.85. - - * context.el (ConTeXt-expand-options): Check for XeTeX engine, not - for mode which does not exist anymore. - - * tex.el (plain-TeX-common-initialization): Let commented lines be - matched by `paragraph-separate' in order for commented and - non-commented paragraphs to be filled separately. - -2009-12-12 Ralf Angeli - - * tex-buf.el (TeX-parse-error): Also find quoted file names with - newlines. Remove the newlines from the matched string if - necessary. - -2009-12-07 Ralf Angeli - - * tex-buf.el (TeX-parse-error): Add an alternative in the parser - regexp for quoted file names. Strip the quotation marks if a file - name was found with the alternative. - -2009-12-06 Ralf Angeli - - * tex-fold.el (TeX-fold-command-prefix): New variable. - (TeX-fold-mode): Use it. - (TeX-fold-keymap): Remove prefix strings. - - * tex.el (TeX-fold-menu): Remove hard-coded key binding labels. - - * doc/auctex.texi (Folding): Mention `TeX-fold-command-prefix'. - -2009-11-22 Ralf Angeli - - * doc/wininstall.texi: Do not refer to Emacs 22 anymore. Improve - the paragraphs about PNG support. - -2009-11-01 Ralf Angeli - - * style/pstricks.el: Disable key bindings for macro parameter - addition and change. - (LaTeX-pst-color-list, LaTeX-pst-boolean-list) - (LaTeX-pst-fillstyle-list): Remove information for completion - mechanism. - (LaTeX-pst-trimode-list, LaTeX-pst-linestyle-list): Remove. - Handled directly in `LaTeX-pst-basic-parameters-list'. - (LaTeX-pst-basic-parameters-list): New variable. - (LaTeX-pst-parameters): Call `TeX-arg-key-val' instead of - `LaTeX-package-parameters' and thereby use a different completion - mechanism. - (LaTeX-pst-macro-psdots): Do not add a dotstyle parameter. - (LaTeX-pst-env-pspicture): Handle optional parameter via - `multi-prompt-key-value'. - ("pstricks"): Handle arguments of \psdot and \psdots correctly. - -2009-10-31 Ralf Angeli - - * tex.el (TeX-verbatim-p-function): New variable. - (TeX-verbatim-p): New function. - (TeX-in-comment): Use it. - (TeX-brace-count-line): Use `TeX-in-comment' instead of just - checking for a comment character. - - * latex.el (LaTeX-common-initialization): Set - `TeX-verbatim-p-function'. - -2009-10-25 Ralf Angeli - - * doc/auctex.texi (Starting Viewers): Describe new viewer - selection options. - (Folding): Add some hints on how to do automatic folding. - - * tex.el (TeX-view-predicate-list-builtin) - (TeX-view-predicate-list, TeX-view-program-list): Doc fix. - (TeX-view-program-list-builtin, TeX-view-program-selection): - Conditionalize default value based on system type. Doc fix. - (TeX-synctex-output-page): Do not return random stuff if there was - no match. - (TeX-clean-default-intermediate-suffixes): Remove SyncTeX files as - well. - -2009-10-21 Ralf Angeli - - * tex.el (TeX-synctex-output-page): Handle files in subdirectories - correctly. - -2009-10-18 Ralf Angeli - - * tex-buf.el (TeX-run-discard): Doc fix. - (TeX-run-discard-or-function): New function. - - * tex.el (TeX-command-list): Use `TeX-run-discard-or-function' as - hook for View command and provide it as a customization option. - (TeX-view-program-list): Add the possibility to use a function to - call the viewer. - (TeX-view-command-raw): Support the use of a function to call the - viewer. - -2009-10-11 Ralf Angeli - - * tex.el (TeX-view-predicate-list-builtin): Remove combined - predicates for paper properties and add new predicates testing - only one property. - (TeX-view-program-list-builtin): Use new predicates. - (TeX-view-program-list): Provide the possibility to use a list of - predicates. - -2009-10-10 Ralf Angeli - - * tex.el (TeX-view-program-list): Shave off extra closing paren. - -2009-10-04 Ralf Angeli - - * tex.el (LaTeX-command-style, TeX-print-style, TeX-view-style): - Doc fix. - (TeX-view-predicate-list-builtin, TeX-view-program-list-builtin): - New variables. - (TeX-view-predicate-list, TeX-view-program-list) - (TeX-view-program-selection): New user options. - (TeX-match-style, TeX-view-match-predicate) - (TeX-view-command-raw): New functions. - (TeX-expand-list): Use `TeX-view-command-raw' for %V expander. - -2009-09-13 Ralf Angeli - - * tex-buf.el (TeX-error): Cater for case of file:line:error - messages without context. - (TeX-parse-error): Add support for quoted file names with - backslashes as path separators. Those might be emitted by MiKTeX - 2.8. - -2009-06-14 Ralf Angeli - - * doc/auctex.texi (Indenting): Mention `LaTeX-item-regexp'. - (Fontification of math): New section replacing and extending - `Subscript and superscript'. - -2009-04-26 Ralf Angeli - - * tex.el (TeX-source-correlate-mode): Clean `custom-requests' - property. - (VirTeX-common-initialization): Call `TeX-source-correlate-mode' - minor mode function when initializing the mode instead of when - loading the file. - -2009-04-13 Ralf Angeli - - * latex.el (TeX-arg-key-val): Eval `key-val-alist' argument if it - is a symbol. - - * style/listings.el ("listings"): Do not eval arguments of - `TeX-arg-key-val'. - - * multi-prompt.el (multi-prompt-expand-completion-table): New - function. - (multi-prompt-key-value): Use it. - - * style/pstricks.el: Correct header info. - (LaTeX-pst-input-int, LaTeX-pst-point, LaTeX-pst-angle) - (LaTeX-pst-extdir, LaTeX-pst-arrows, LaTeX-pst-dotstyle-list) - (LaTeX-pst-refpoint-list, LaTeX-pst-refpoint) - (LaTeX-pst-macro-multirputps, LaTeX-pst-env-pspicture): Improve or - correct prompt. - ("pstricks"): Move to the bottom of the file. Do not use - `function' to quote `lambda'. Turn off TeX PDF mode. Use `mapc' - instead of `mapcar'. - -2009-04-05 Ralf Angeli - - * tex-buf.el (TeX-help-error): Make search for help text in log - file more robust. - -2009-04-04 Ralf Angeli - - * style/listings.el ("listings"): Remove redundant list when - calling `TeX-arg-key-val'. Use `LaTeX-env-args' for lstlisting - environment. - - * latex.el (LaTeX-env-args): New function. - (TeX-arg-conditional, TeX-arg-eval, TeX-arg-label) - (TeX-arg-index-tag, TeX-arg-index, TeX-arg-macro) - (TeX-arg-environment, TeX-arg-cite, TeX-arg-counter) - (TeX-arg-savebox, TeX-arg-file, TeX-arg-define-label) - (TeX-arg-define-macro, TeX-arg-define-environment) - (TeX-arg-define-cite, TeX-arg-define-counter) - (TeX-arg-define-savebox, TeX-arg-document, LaTeX-arg-usepackage) - (TeX-arg-input-file, TeX-arg-bibstyle, TeX-arg-bibliography) - (TeX-arg-corner, TeX-arg-lr, TeX-arg-tb, TeX-arg-pagestyle) - (TeX-arg-verb, TeX-arg-pair, TeX-arg-size, TeX-arg-coordinate) - (TeX-arg-insert-braces): Doc fix. - - * multi-prompt.el (multi-prompt-separator): Remove. - (multi-prompt-key-value-collection-fn): Do not search for - `multi-prompt-separator'. - (crm-local-must-match-map, crm-local-completion-map): Silence the - byte compiler. - (multi-prompt-key-value): Require crm.el here and not at - top-level. - - * tex-info.el (TeX-texinfo-mode): Add @lowersections and - @raisesections. - - * doc/auctex.texi (Adding Environments): Document hooks for - `LaTeX-add-environments'. - -2009-03-29 Ralf Angeli - - * style/listings.el (LaTeX-listings-key-val-options): New - variable. - ("listings"): Use it. Check for font-latex function, not feature. - - * latex.el (TeX-arg-key-val): New function. - - * multi-prompt.el: Require crm.el. - (multi-prompt-separator, multi-prompt-key-value-sep) - (multi-prompt-completion-table): New variables. - (multi-prompt-key-value-collection-fn, multi-prompt-key-value): - New functions. - -2009-03-22 Ralf Angeli - - * tex-site.el.in: Revitalize support for completion in \cite - macros via `BibTeX-auto-store'. - -2009-03-02 Holger Sparr - - * Makefile.in (STYLESRC): Add style/multido.el; - style/pst-{grad|node|plot|slpe}.el - -2009-03-01 Ralf Angeli - - * latex.el (LaTeX-verbatim-macro-boundaries): Do step backwards at - beginning of buffer. - (LaTeX-search-forward-comment-start): Treat find of comment at - limit correctly. - - * tex-fold.el (TeX-fold-comment-do): Abort backward search for - comment start at beginning of buffer. Do not fold empty comment. - -2009-02-24 Holger Sparr - - * style/multido.el: New file. - - * style/pst-grad.el: New file. - - * style/pst-node.el: New file. - - * style/pst-plot.el: New file. - - * style/pst-slpe.el: New file. - -2009-02-23 Holger Sparr - - * style/pstricks.el: Actually implement support for writing - PSTricks code. - -2009-02-22 Ralf Angeli - - * doc/auctex.texi (Multi-line fontification): Remove. - - * doc/todo.texi (Wishlist): Fix typo. Remove entry which is - already supported. - - * style/tabularx.el: New file. - - * Makefile.in (STYLESRC): Add style/tabularx.el - -2009-02-15 Ralf Angeli - - * style/natbib.el ("natbib"): Check for font-latex function rather - than feature. Add fontification spec for \cite. - - * doc/auctex.texi (Simple Style): Bring example in line with - reality. - -2009-01-24 Ralf Angeli - - * tex.el (TeX-source-correlate-method): Doc fix. - (TeX-source-correlate-mode): Call minor mode function after file - is loaded. - -2009-01-14 Ralf Angeli - - * latex.el (LaTeX-babel-insert-hyphen): Put `delete-selection' - property on function symbol. - -2009-01-04 Ralf Angeli - - * style/CJK.el: New file. - - * style/ruby.el: New file. Correct argument numbers of \rubysize - and \rubysep. - - * style/CJKutf8.el: New file. - - * Makefile.in (STYLESRC): Add style/CJK.el and style/ruby.el. Add - style/CJKutf8.el. - -2009-01-03 Ralf Angeli - - * style/flashcards.el ("flashcards"): Test for font-latex function - instead of feature. Reflect that \cardbackstyle has an optional - argument. - -2008-12-29 Ralf Angeli - - * style/hyperref.el ("hyperref"): Test for font-latex function - instead of feature. Activate hyperref referencing style if - possible. - -2008-12-28 Ralf Angeli - - * tex-buf.el (TeX-current-pages): Get rid of trailing periods. - (TeX-LaTeX-sentinel): Add support for longtable warning. Use only - one search per condition. Call `message' like `format'. - -2008-12-22 Ralf Angeli - - * tex.el (TeX-doc-backend-alist): Call `TeX-tree-expand' instead - of `TeX-macro-global-internal'. - - * tex-jp.el (TeX-macro-global): Call `TeX-tree-expand' instead of - `TeX-macro-global-internal'. - - * latex.el (LaTeX-env-item): Deactivate the mark before inserting - \item. - (LaTeX-insert-item): Swap point and mark when mark if necessary. - Insert newline only when not at beginning of line. - - * tex.el (TeX-deactivate-mark): New function. - (TeX-parse-argument): Use it. - -2008-12-21 Ralf Angeli - - * tex.el (TeX-auto-private, TeX-style-private): Per default - propose a place in the user's Emacs directory, not in the TeX - tree. - (TeX-style-path): Add values to the end of the list. Doc fix. - - * doc/auctex.texi (Automatic Private): Adjust descriptions of - `TeX-macro-private', `TeX-auto-private', and `TeX-style-private'. - -2008-12-16 Ralf Angeli - - * tex.el (TeX-tree-expand): New name for - `TeX-macro-global-internal'. Adapt parameter list to make it more - flexible. Update doc string. Do not return removed default - argument. - (TeX-macro-global): Change to accomodate new interface of - `TeX-tree-expand'. - (TeX-macro-private): New function. - (TeX-macro-private): Use it to determine variable value. - -2008-12-13 Ralf Angeli - - * tex.el (plain-TeX-clean-intermediate-suffixes) - (plain-TeX-clean-output-suffixes): New variables. - -2008-12-01 Ralf Angeli - - * tex.el (VirTeX-common-initialization): Revert last change. - -2008-11-30 Ralf Angeli - - * tex.el (VirTeX-common-initialization): Do not add call to - `TeX-update-style' to `find-file-hooks' but call it directly. - -2008-11-23 Ralf Angeli - - * tex.el (TeX-source-correlate-determine-method): Use configured - LaTeX command and find -synctex switch even if there are spaces in - front of it, as e.g. with MiKTeX. - (TeX-format-list): Use \subsection and \subsubsection as well to - identify a LaTeX file. - -2008-11-02 Ralf Angeli - - * font-latex.el (font-latex-match-math-env) - (font-latex-extend-region-backwards-math-env): Do not match - \\[...]. - - * tex-fold.el (TeX-fold-expand-spec): Do not treat `\' special in - replacement text. - -2008-10-26 Ralf Angeli - - * tex.el (plain-TeX-common-initialization): Respect double dollar, - i.e. "$$", as a paragraph separator. - -2008-10-14 Ralf Angeli - - * latex.el (LaTeX-current-environment): Fix handling of commented - parts. - - * tex.el (TeX-comment-prefix): Save match data. - -2008-10-13 Ralf Angeli - - * doc/changes.texi, doc/install.texi, doc/intro.texi, - doc/preview-readme.texi, doc/quickstart.texi: Make some - corrections and updates. - -2008-10-12 Ralf Angeli - - * tex-buf.el (TeX-warning): Fix regexp for detecting bad boxes. - -2008-10-11 Ralf Angeli - - * tex.el (TeX-set-mode-name): Indicate TeX PDF mode as a trailing - flag. - (TeX-engine): Doc fix. - - * doc/auctex.texi: Restructure some parts. Update and extend it a - bit to reflect the recent changes of functionality. - -2008-10-07 Ralf Angeli - - * tex.el (TeX-interactive-mode): Add to `minor-mode-alist'. - ("desktop"): Remove `TeX-interactive-mode' from - `desktop-locals-to-save'. - -2008-10-06 Ralf Angeli - - * latex.el (LaTeX-paragraph-commands-regexp-make): Make it work - for the case that `LaTeX-paragraph-commands' is set. - -2008-10-05 Ralf Angeli - - * tex.el (TeX-engine): New variable. - (TeX-expand-list): Use it instead of XeTeX and Omega mode - variables. - (hack-one-local-variable): Remove references to XeTeX and Omega - mode variables. - (TeX-set-mode-name): Remove lighters for XeTeX and Omega mode. - (TeX-engine-alist, LaTeX-engine-alist): New variables. - (TeX-engine-set): New function. - (TeX-Omega-mode): Mark as obsolete. Remove defcustom. - (TeX-PDF-mode): Use `TeX-engine' instead of mode variables. - (TeX-XeTeX-mode): Remove. - (TeX-mode-map): Remove key bindings for toggling XeTeX and Omega - mode. - (TeX-mode-specific-command-menu-entries): Use new facilities for - switching TeX engines. - ("desktop"): Remove reference to TeX Omega mode. - - * context.el (ConTeXt-expand-options): Use `TeX-engine' instead of - XeTeX and Omega mode variables. - -2008-09-07 Ralf Angeli - - * tex.el (TeX-PDF-mode): Add to `minor-mode-alist'. Use "" as - lighter. - ("desktop"): Remove `TeX-PDF-mode' from `desktop-locals-to-save'. - - * latex.el (LaTeX-mark-environment): Swap beg and end. - -2008-08-02 Ralf Angeli - - * tex-bar.el (TeX-bar-TeX-buttons, TeX-bar-LaTeX-buttons): Mimic - the default tool bars more closely. - -2008-08-02 Reiner Steib - - * toolbar-x.el (toolbarx-default-toolbar-meaning-alist): Provide - different defaults for different Emacs and XEmacs versions. - Conditionally add a `new-file' entry. - -2008-07-28 Ralf Angeli - - * toolbar-x.el (toolbarx-image-path): Protect against load-path - items being nil. - - * style/foils.el (LaTeX-style-foils): Silence the byte compiler. - - * style/epsf.el (TeX-arg-epsfsize): Silence the byte compiler. - - * tex.el (TeX-source-specials-view-start-server): Alias only if - `defvaralias' is available. - (TeX-master, TeX-convert-master): Move upwards to prevent some - compiler warnings. - -2008-07-27 Ralf Angeli - - * tex.el (TeX-synctex-tex-flags): New variable. - (TeX-source-correlate-expand-options): Use it. - (TeX-source-specials-tex-flags): Remove possibility to create - lists. - - * context.el (ConTeXt-expand-options): Support TeX XeTeX mode and - TeX Source Correlate mode. - -2008-07-24 Ralf Angeli - - * tex.el (TeX-source-specials-mode): Fix last change. - -2008-07-23 Ralf Angeli - - * tex.el (TeX-expand-list): Prevent "%(PDF)" expander from - returning "pdf" if `TeX-XeTeX-mode' is active. Make "%(tex)" and - "%(latex)" expanders aware of the XeTeX commands. - (hack-one-local-variable): Cater for `TeX-XeTeX-mode'. - (TeX-set-mode-name): Cater for `TeX-XeTeX-mode'. - (TeX-source-specials-mode): Mark as obsolete. - (TeX-PDF-mode): Disable TeX XeTeX mode if TeX PDF mode is - disabled. - (TeX-Omega-mode): Disable TeX XeTeX mode if TeX Omega mode is to - be enabled. - (TeX-XeTeX-command, LaTeX-XeTeX-command): New variables. - (TeX-XeTeX-mode): New minor mode. - (TeX-mode-map): Define key for TeX XeTeX mode. - (TeX-mode-specific-command-menu-entries): Add entry for TeX XeTeX - mode. Make the engine-related options exclusive by using radio - buttons. Refine the wording for some options. - -2008-07-19 Ralf Angeli - - * tex.el (TeX-source-correlate-determine-method): Do not error out - if calling the engine fails. - - * latex.el (LaTeX-mark-environment): Keep point upon unsuccessful - search. - -2008-07-19 Vincent Belaïche (tiny change) - - * latex.el (LaTeX-mark-environment): Support marking of multiple - nested environments. - -2008-07-17 Ralf Angeli - - * latex.el (LaTeX-paragraph-commands-regexp-make): Take - `LaTeX-paragraph-commands' into account. - (LaTeX-paragraph-commands-regexp): Move behind - `LaTeX-paragraph-commands' definition. - -2008-07-14 Ralf Angeli - - * style/pdfsync.el ("pdfsync"): Use - `TeX-source-correlate-output-page-function' rather than - `TeX-sync-output-page-function'. - - * tex.el (TeX-command-list): Remove SyncTeX expanders. - (TeX-expand-list): Adapt function calls. Remove SyncTeX expander. - (hack-one-local-variable, TeX-set-mode-name): Remove - `TeX-synctex-mode' and `TeX-source-specials-mode'. Add - `TeX-source-correlate-mode'. - (TeX-source-correlate-method): New variable. - (TeX-source-correlate-method-active): New variable. - (TeX-source-correlate-output-page-function): Renamed from - `TeX-sync-output-page-function'. - (TeX-source-correlate-start-server): Renamed from - `TeX-view-start-server'. - (TeX-source-correlate-start-server-asked): Renamed from - `TeX-view-start-server-asked'. - (TeX-source-correlate-start-server-flag): Renamed from - `TeX-view-start-server-flag'. - (TeX-source-correlate-gnuserv-p): Renamed from - `TeX-view-gnuser-p'. - (TeX-source-correlate-server-enabled-p): Renamed from - `TeX-view-server-enabled-p'. - (TeX-source-correlate-start-server-maybe): Renamed from - `TeX-view-start-server-maybe'. - (TeX-source-specials): Remove custom group. - (TeX-source-correlate-determine-method): New function. - (TeX-source-correlate-expand-options): Renamed from - `TeX-source-specials-expand-options'. Support SyncTeX as well. - (TeX-source-correlate-map): Renamed from - `TeX-source-specials-map'. - (TeX-source-correlate-mode): Renamed from - `TeX-source-specials-mode'. Support SyncTeX as well. - (TeX-source-specials-mode): Now an alias for - `TeX-source-specials-mode'. - (TeX-source-specials-tex-flags, TeX-source-specials-places) - (TeX-source-specials-view-position-flags) - (TeX-source-specials-view-editor-flags) - (TeX-source-specials-view-gnuclient-flags) - (TeX-source-specials-view-emacsclient-flags): Put into `TeX-view' - rather than `TeX-command' group. - (TeX-source-specials-view-expand-options): Adapt for new function - names and distinction between source specials and SyncTeX. - (TeX-synctex-mode): Remove. - (TeX-mode-map): Remove binding for TeX SyncTeX mode. - (TeX-mode-specific-command-menu-entries): Remove menu entry for - TeX SyncTeX mode. Use Source Correlate moniker instead of Source - Specials. - -2008-07-07 Ralf Angeli - - * doc/auctex.texi (Folding): Fix last change. - -2008-07-06 Ralf Angeli - - * doc/auctex.texi (Folding): Document folding of math constructs - and the possibilities of providing expanders and alternatives in - replacement specifiers. - - * tex.el (TeX-command-list): Add expanders for SyncTeX. - (TeX-expand-list): Start server if necessary when viewing. Define - expander for SyncTeX. - (hack-one-local-variable): Cater for TeX SyncTeX mode. - (TeX-set-mode-name): Add lighter for TeX SyncTeX mode. - (TeX-view): New customization group. - (TeX-view-start-server): Renamed from - `TeX-source-specials-view-start-server'. - (TeX-source-specials-view-start-server): Rename to - `TeX-view-start-server' and define alias. - (TeX-view-start-server-asked): Renamed from - `TeX-source-specials-view-start-server-asked'. - (TeX-source-specials-view-start-server-asked): Rename to - `TeX-view-start-server-asked'. - (TeX-view-start-server-flag): New variable. - (TeX-view-gnuserv-p): Renamed from - `TeX-source-specials-view-gnuserv-p'. - (TeX-source-specials-view-gnuserv-p): Rename to - `TeX-view-gnuserv-p'. - (TeX-view-server-enabled-p): New function. - (TeX-view-start-server-maybe): New function. - (TeX-source-specials-mode): Set `TeX-view-start-server-flag'. - (TeX-source-specials-view-expand-client): Adapt call to new - function name. - (TeX-source-specials-view-expand-options): Do not try to start the - server here anymore. - (TeX-synctex-mode): New minor mode. - (TeX-synctex-output-page): New function. - (TeX-mode-map): Add key for toggling TeX SyncTeX mode. - (TeX-mode-specific-command-menu-entries): Add menu entry for TeX - SyncTeX mode. - (TeX-math-input-method-off-regexp): New variable. - (TeX-toggle-off-input-method): Remove. - (TeX-math-input-method-off): Do without - `TeX-toggle-off-input-method'. - -2008-07-04 Berend de Boer - - * context.el, context-en.el: added a few more entries to the menu - to select ConTeXt macro's from. - -2008-06-29 Ralf Angeli - - * style/bulgarian.el ("bulgarian"): Use value of - `TeX-quote-after-quote' for default quote insertion behavior. - -2008-06-28 Ralf Angeli - - * font-latex.el (font-latex-find-matching-close): Simplify. There - is no need for a general mechanism if the supported chars are - limited at another place. - - * tex.el (TeX-search-syntax-table): Support (...) and <...>. - - * tex-fold.el (TeX-fold-macro-spec-list): New spec for \item. - Adapt doc string to reflect new functionality. - (TeX-fold-macro-nth-arg): New `delims' parameter which can be used - to find other macro args than those enclosed by braces. - (TeX-fold-expand-spec): New function. - (TeX-fold-hide-item): Use it. - - * doc/auctex.texi (European): Document `bulgarian' language - option. - - * Makefile.in (STYLESRC): Add style/bulgarian.el. - - * style/bulgarian.el: New file. - -2008-06-21 Ralf Angeli - - * style/hyperref.el: New file. - - * Makefile.in (STYLESRC): Add style/hyperref.el. - -2008-06-07 Ralf Angeli - - * font-latex.el (font-latex-make-built-in-keywords): Distinguish - command-type keyword classes from others when creating the - respective variables. - - * doc/auctex.texi (Font Locking): Structure with nodes. - (Fontification of macros): Describe format specifiers for macros - with arguments. - -2008-05-30 Ralf Angeli - - * tex-fold.el (TeX-fold-macro-spec-list): Add some documentation. - (TeX-fold-hide-item): Support replacement of argument specifiers - like "{1}" by the respective argument value in the display string. - -2008-05-30 Joost Kremers (tiny change) - - * tex-fold.el (TeX-fold-macro-spec-list): Add function choice. - (TeX-fold-hide-item): If specifier is a function, call it with all - mandatory arguments of macro. - -2008-05-25 Ralf Angeli - - * latex.el (docTeX-mode): Add regexp group to value of - `TeX-comment-start-regexp'. - - * style/doc.el (LaTeX-doc-after-insert-macrocode): New function. - ("doc"): Add it to `LaTeX-after-insert-env-hooks'. - - * latex.el: Get rid of some compiler warnings. - (LaTeX-after-insert-env-hooks): New variable. - (LaTeX-insert-environment): Remove docTeX-specific code. - Run `LaTeX-after-insert-env-hooks' - - * style/beamer.el (LaTeX-beamer-after-insert-env): New function. - ("beamer"): Add it to `LaTeX-after-insert-env-hooks'. Get rid of - some compiler warnings. Support the semiverbatim environment. - - * style/dinbrief.el: Get rid of some compiler warnings. - - * style/dk-bib.el: Get rid of some compiler warnings. - - * style/emp.el: Get rid of some compiler warnings. - - * style/epsf.el: Get rid of some compiler warnings. - - * style/foils.el: Get rid of some compiler warnings. - - * style/graphicx.el: Get rid of some compiler warnings. - - * style/letter.el: Get rid of some compiler warnings. - - * style/prosper.el: Get rid of some compiler warnings. - - * style/psfig.el: Get rid of some compiler warnings. - - * texmathp.el: Get rid of some compiler warnings. - - * tex.el: Get rid of some compiler warnings. - - * tex-jp.el: Get rid of some compiler warnings. - - * tex-buf.el: Get rid of some compiler warnings. - - * font-latex.el: Get rid of some compiler warnings. - - * context.el: Get rid of some compiler warnings. - - * context-en.el: Get rid of some compiler warnings. - - * context-nl.el: Get rid of some compiler warnings. - -2008-05-22 Ralf Angeli - - * tex-buf.el (TeX-command-sentinel): Use `TeX-master-file' instead - of `TeX-active-master' for `TeX-transient-master'. - -2008-05-17 Ralf Angeli - - * doc/auctex.texi (Font Specifiers): Correct argument list of - `TeX-font'. - -2008-05-13 Ralf Angeli - - * doc/auctex.texi (Font Specifiers): Document `LaTeX-font-list'. - -2008-05-10 Reiner Steib - - * tex-bar.el (TeX-bar-TeX-buttons, TeX-bar-LaTeX-buttons): Add - standard Emacs buttons to custom set. - (TeX-bar-TeX-buttons): Use `tex' instead of `latex' in custom set. - -2008-05-04 Ralf Angeli - - * tex-site.el.in (AUCTeX): Move customization group here from - tex.el and load the main files defining customization options. - - * tex.el (AUCTeX): Move customization group to tex-site.el.in. - (TeX-expand-list): Make %(outpage) default to "1". - -2008-05-01 Ralf Angeli - - * toolbar-x.el (toolbarx-xemacs-refresh): Only activate the tool - bar if it is already visible. Remove redundant if clause. - - * tex-buf.el (TeX-format-filter): Do not remove linebreak if the - following line starts with an opening parenthesis. - -2008-04-28 Ralf Angeli - - * doc/Makefile.in (install-auctex): Do not use `-' to suppress - errors within command. - -2008-04-28 David Kastrup - - * tex-buf.el (TeX-run-command): disable undo in run buffer - -2008-03-12 Ralf Angeli - - * style/pdfsync.el (LaTeX-pdfsync-output-page): Kill buffer with - pdfsync file if it was loaded by us. - -2008-03-02 Ralf Angeli - - * tex-info.el (texinfo-environment-regexp): Terminate. - -2008-03-01 Matan Ninio (tiny change) - - * style/pdfsync.el (LaTeX-pdfsync-output-page): Include - subdirectories relative to master file in file names. Searching - for the file entry in the .pdfsync file allows for an optional - `.tex' extension in the filename. Find further p lines if the - current context does not contain any more. - -2008-02-24 Ralf Angeli - - * Makefile.in: Add windows-package target and related variables. - -2008-02-23 Ralf Angeli - - * tex.el (TeX-common-menu-entries): Add exception for docTeX mode - when extending the customization menu. - -2008-02-17 Ralf Angeli - - * doc/auctex.texi: Repeat direntry after each category as per - recommendation of Karl Berry. - - * doc/preview-latex.texi: Repeat direntry after each category as - per recommendation of Karl Berry. - -2008-02-11 Ralf Angeli - - * font-latex.el (font-latex-make-match-defun) - (font-latex-keyword-matcher): Recognize old-style type specs which - could be lists. Prevents "void-function nil" error during font - locking. - -2008-02-10 Ralf Angeli - - * Makefile.in (maintainer-clean): Do not depend on distclean. How - did this ever work? - (www-doc): Use release files. Update URLs. Make gendocs.sh use - texi2html. - - * doc/Makefile.in (extradist): Re-add tex-ref.pdf dependency. - (install-auctex): Do not install reference card when producing an - XEmacs package. - -2008-02-10 Ralf Angeli - - * Version 11.85 released. - -2008-02-10 Ralf Angeli - - * RELEASE: Update for upcoming release. - - * auctex.spec (Version): Bump version number. - - * configure.ac: Bump version number. - - * doc/todo.texi: Add copyright notice. - (Bugs): Remove entry about XEmacs bug since AUCTeX now helps - XEmacs in doing multi-line font locking. - - * doc/tex-ref.tex: Bump version number. Updated references to - toggles for bad boxes and warning. Mention `Clean' and `Clean - All' commands. - - * doc/install.texi: Add copyright notice. - (Prerequisites): Update information about Emacs 22. - - * doc/wininstall.texi: Update information about requirements, - esp. availability of Emacs 22. - -2008-02-09 Ralf Angeli - - * tex-buf.el (TeX-error, TeX-warning): Handle `expert' option of - `TeX-display-help'. - (TeX-warning): Find error file in same window. - - * tex.el (TeX-display-help): Add `expert' option. - - * doc/auctex.texi (Commands): Add some explanatory text for TeXing - options. Document `TeX-show-compilation'. - (Debugging): Reflect new option of `TeX-display-help'. - - * doc/changes.texi: Add changes for 11.85. Add copyright notice. - -2008-02-08 Reiner Steib - - * tex-bar.el (LaTeX-symbols-toolbar-visible-flag): Improve doc string. - - * toolbar-x.el (toolbarx-image-path): Improve doc string. - -2008-02-07 Ralf Angeli - - * tex-buf.el (TeX-parse-TeX): Do not pop to output buffer. - (TeX-warning): Since we do not pop to the output buffer, find the - source file in the original window. - -2008-02-05 Ralf Angeli - - * font-latex.el (font-latex-built-in-keyword-classes): Add syntax - alternatives for some commands. - (font-latex-setup): Give ?@ word syntax for font locking. - (font-latex-syntax-error-modes): New variable. - (font-latex-match-command-with-arguments): Use it. - -2008-02-04 Ralf Angeli - - * font-latex.el (font-latex-set-syntactic-keywords): Revert change - from 2007-04-09 because the unbalanced treatment of \begin and - \end may lead to color bleeding. - -2008-02-03 Ralf Angeli - - * Relicense all "GPLv2 or later" files to "GPLv3 or later". - - * COPYING: Switch to GPLv3. - - * doc/Makefile.in, doc/preview-dtxdoc.pl: Add coypright and - license notices. - - * style/beamer.el, style/scrbook.el: Add license notices. - -2008-02-03 Ikumi Keita - - * tex-info.el (Texinfo-insert-node): Correct name of let-bound - variable. - -2008-02-03 Ralf Angeli - - * tex-info.el: Make sure the Texinfo mode of AUCTeX is still used - after loading texinfo.el. - -2008-02-02 Ralf Angeli - - * Makefile.in, auctex.spec, autogen.sh, configure.ac: Add - copyright and license notices. - - * texmathp.el, style/amsmath.el, style/amsthm.el, - style/fancyref.el, style/index.el, style/makeidx.el, - style/multind.el, style/varioref.el: Reflect copyright assignment - of Carsten Dominik to FSF in coypright notices and adapt licence - notice accordingly. - -2007-12-28 Ralf Angeli - - * tex-buf.el (TeX-command-expand): Do not evaluate `file' as a - function. - -2007-12-25 Ralf Angeli - - * latex.el (LaTeX-fill-move-to-break-point): Ignore whitespace - when checking if verbatim macro starts at beginning of line. - -2007-12-08 David Kastrup - - * texmathp.el (defgroup, defcustom): Remove compatibility cruft. - -2007-11-20 Reiner Steib - - * doc/install.texi (Prerequisites): Add openSUSE. - -2007-11-20 David Kastrup - - * doc/install.texi (Prerequisites): Update to reflect current - realities. - -2007-11-03 Reiner Steib - - * tex-buf.el (TeX-record-buffer): New variable, only in Emacs. - (TeX-pop-to-buffer): New function. - (TeX-recenter-output-buffer, TeX-background-filter) - (TeX-parse-TeX, TeX-parse-error, TeX-help-error): Use - `TeX-pop-to-buffer'. - -2007-10-30 Reiner Steib - - * toolbar-x.el (toolbarx-find-image): Rename argument. Improve - doc string. - -2007-10-11 Ralf Angeli - - * latex.el (TeX-arg-verb): Honor active region. - -2007-10-10 Ralf Angeli - - * style/MinionPro.el ("MinionPro"): Run style hook for amsmath - which is loaded via MnSymbol. - -2007-10-09 Ralf Angeli - - * style/nomencl.el: New file. - - * Makefile.in (STYLESRC): Add style/nomencl.el. - -2007-10-03 Ralf Angeli - - * font-latex.el (font-latex-user-keyword-classes): Doc fix. - -2007-08-26 Ralf Angeli - - * font-latex.el (font-latex-command-with-args-default-spec): - Default to nil. - -2007-08-24 Ralf Angeli - - * font-latex.el (font-latex-match-command-with-arguments): Show - error indicator only in LaTeX mode. - -2007-08-23 Ralf Angeli - - * style/nicefrac.el ("nicefrac"): Fix last change. - -2007-08-22 Ralf Angeli - - * style/jurabib.el ("jurabib"): Use `font-latex-add-keywords'. - Add syntax information. - -2007-08-21 Ralf Angeli - - * style/scrreprt.el: Add licence text. - ("scrreprt"): Use `font-latex-add-keywords'. Add syntax - information. - - * style/scrpage2.el: Add licence text. - ("scrpage2"): Use `font-latex-add-keywords'. Add syntax - information. - - * style/scrlttr2.el: Add licence text. - ("scrlttr2"): Use `font-latex-add-keywords'. Add syntax - information. - - * style/scrbook.el ("scrbook"): Use `font-latex-add-keywords'. - Add syntax information. - - * style/scrbase.el ("scrbase"): Use `font-latex-add-keywords'. - Add syntax information. - -2007-08-20 Ralf Angeli - - * style/url.el ("url"): Use `font-latex-add-keywords'. - Add syntax information. - - * style/subfigure.el ("subfigure"): Use `font-latex-add-keywords'. - Add syntax information. - - * style/csquotes.el ("csquotes"): Update for version 3.7. Use - `font-latex-add-keywords'. Add syntax information. - - * style/MinionPro.el ("MinionPro"): Use `font-latex-add-keywords'. - Add syntax information. - - * font-latex.el (font-latex-built-in-keyword-classes): Correct - syntax spec for \subsubparagraph. - -2007-08-19 Ralf Angeli - - * style/units.el ("units"): Use `font-latex-add-keywords'. - Add syntax information. - - * style/nicefrac.el ("nicefrac"): Use `font-latex-add-keywords'. - Add syntax information. - - * style/listings.el ("listings"): Use `font-latex-add-keywords'. - Add syntax information. - - * style/flashcards.el ("flashcards"): Use `font-latex-add-keywords'. - Add syntax information. - - * style/comment.el ("comment"): Use `font-latex-add-keywords'. - Add syntax information. - - * style/booktabs.el ("booktabs"): Use `font-latex-add-keywords'. - Add syntax information. - - * style/babel.el ("babel"): Use `font-latex-add-keywords'. - Add syntax information. - - * style/paralist.el ("paralist"): Use `font-latex-add-keywords'. - Add syntax information. - - * style/natbib.el ("natbib"): Use `font-latex-add-keywords'. - Add syntax information. - - * style/mdwlist.el ("mdwlist"): Use `font-latex-add-keywords'. - Add syntax information. - - * style/graphicx.el ("graphicx"): Use `font-latex-add-keywords'. - Add syntax information. - - * style/fancyref.el ("fancyref"): Use `font-latex-add-keywords'. - Add syntax information. - - * style/captcont.el ("captcont"): Use `font-latex-add-keywords'. - Add syntax information. - - * style/beamer.el ("beamer"): Use `font-latex-add-keywords'. - - * font-latex.el (font-latex-add-keywords): New function. - (font-latex-command-with-args-opt-arg-delims): Add parentheses. - -2007-08-14 David Kastrup - - * tex.el (TeX-insert-backslash): put delete-selection property on. - -2007-08-13 David Kastrup - - * Makefile.in (all): make new target "docs" as well. Descend for - docs, info and dvi. - Before regenerating extradist documentation, copy version info - from checked-out version (can we do that saner?). - On various targets, replace set -x with a somewhat more elaborate - version that echoes more for make -n. - -2007-08-10 Ralf Angeli - - * tex.el (TeX-doc-backend-alist): Delete buffers used for checking - availability of info files. - -2007-08-08 Ralf Angeli - - * tex-buf.el (TeX-TeX-sentinel-check): Shave off quotation marks - from file name if present. - -2007-08-04 Ralf Angeli - - * tex.el (TeX-run-style-hooks): Set `default-directory' to the - directory of the master file. - -2007-07-11 Ralf Angeli - - * style/pstricks.el ("pstricks"): Do not disable TeX PDF mode if - pst-pdf is used. - -2007-07-10 Ralf Angeli - - * tex-buf.el (TeX-format-filter): Remove line breaks at column 79. - -2007-07-09 Ralf Angeli - - * tex.el (TeX-comment-forward): Call `comment-normalize-vars' if - available. - -2007-07-01 Ralf Angeli - - * style/verbatim.el: Add copyright notice and licence info. - - * style/paralist.el: Add copyright notice and licence info. - - * style/booktabs.el: Add copyright notice and licence info. - - * style/scrbase.el: Change copyright notice of Mark Trettin to FSF - to reflect the assignment. Add licence info to header. - - * style/subfigure.el: Change copyright notice of Reiner Steib to - FSF to reflect the assignment. Add licence info to header. - - * style/captcont.el: Change copyright notice of Reiner Steib to - FSF to reflect the assignment. Add licence info to header. - - * latex.el (LaTeX-auto-minimal-regexp-list): Match optional - arguments of document style or class macro even if they contain - periods, e.g. in case of "BCOR8.25mm" in KOMA Script classes. Get - rid of superfluous escapes in complemented character alternatives. - - * tex.el (TeX-insert-dollar): Show matching start only if - `blink-matching-paren' is non-nil. - -2007-06-20 Ralf Angeli - - * latex.el (LaTeX-common-initialization): Turn TeX PDF mode on - when pst-pdf.sty is used. - -2007-06-10 Ralf Angeli - - * latex.el (LaTeX-common-initialization): Do not add pstricks to - style hooks. - - * style/pstricks.el: New file. - - * Makefile.in (STYLESRC): Add style/pstricks.el. - -2007-05-25 Ralf Angeli - - * font-latex.el (font-latex-match-command-with-arguments): Check - if `match-beg' is set. - -2007-05-20 Ralf Angeli - - * style/beamer.el ("beamer"): Use new syntax in format specifier - for frametitle macro. - - * font-latex.el (font-latex-built-in-keyword-classes): Use new - syntax for format specifiers. - (font-latex-user-keyword-classes): Describe new syntax for format - specifiers. - (font-latex-command-with-args-default-spec): Use new syntax for - format specifiers. - (font-latex-command-with-args-opt-arg-delims): New variable. - (font-latex-match-command-with-arguments): Use it. Change format - specifier parsing to support new syntax. - (font-latex-match-mandatory-arg): Remove. - -2007-05-05 Ralf Angeli - - * doc/faq.texi: Add entry about programs not being found by - ./configure when PATH is not set correctly. - -2007-04-29 Ralf Angeli - - * tex-buf.el (TeX-parse-error): Match any closing parenthesis. - -2007-04-28 Ralf Angeli - - * font-latex.el (font-latex-fontify-region): Force redisplay - instead of setting `jit-lock-context-unfontify-pos'. - (font-latex-command-with-args-default-spec): New variable. - (font-latex-match-command-with-arguments): Use it. - (font-latex-built-in-keyword-classes): Correct some syntax - specifiers. - (font-latex-jit-lock-force-redisplay): New function. - (font-latex-fontify-region): Use it. - (font-latex-doctex-preprocessor-face): Make DocStrip guards stand - out on Emacs 21. - -2007-04-23 Ralf Angeli - - * latex.el (LaTeX-environment-menu): Support optional arguments - specified by vectors. - - * style/flashcards.el: New file. - - * Makefile.in (STYLESRC): Add style/flashcards.el. - - * doc/auctex.texi (Adding Environments): Document possibility to - specify optional arguments in `LaTeX-add-environments'. - -2007-04-22 Reiner Steib - - * doc/changes.texi: Add index entries for auctex.el and - tex-site.el. Add references to INSTALL or manual. - - * doc/install.texi (Loading the package): Add index entries for - auctex.el and tex-site.el. - - * doc/wininstall.texi: Add index entries for tex-mik.el and - tex-fptex.el. Clarify loading. - -2007-04-22 Ralf Angeli - - * font-latex.el (font-latex-fontify-region): Force context-related - unfontification only if the region has to be extended. - (font-latex-find-matching-close): Do not look up syntax-table - properties. - (font-latex-extend-region-backwards-command-with-args) - (font-latex-extend-region-backwards-command-in-braces) - (font-latex-extend-region-backwards-math-env) - (font-latex-extend-region-backwards-math-envII) - (font-latex-extend-region-backwards-quotation): Doc fix. Return - nil if no content requiring region extension was found. - -2007-04-16 Ikumi Keita - - * latex.el (LaTeX-math-default): Add various Greek uppercase - macros provided by amsmath.sty. - -2007-04-15 Ralf Angeli - - * font-latex.el (font-latex-match-math-envII): Regexp-quote the - string used to look for the environment end in order for starred - environments to be found. - -2007-04-13 Mark Trettin - - * style/scrbase.el ("scrbase"): Fix typo in prompt. - (TeX-arg-KOMA-fontelements): Add \dictum, \pagination, - \disposition, and \minisec macros. - -2007-04-13 Ralf Angeli - - * style/beamer.el ("beamer"): Specify syntax of \frametitle macro - for font locking. - -2007-04-12 Ralf Angeli - - * style/amsmath.el ("amsmath"): Call `reftex-add-to-label-alist' - only if function is bound. - -2007-04-09 Ralf Angeli - - * tex.el (TeX-doc-backend-alist): Add --view parameter to texdoc - call since texdoc in MiKTeX fires up a web page not useful for our - purposes otherwise. - - * tex-mik.el: Set `TeX-kpathsea-path-delimiter' to nil since - kpsewhich in MiKTeX (aka findtexmf) does not emit any useful - information if fed with kpathsea-related variables anyway. This - change makes `TeX-doc' work again on MiKTeX. - - * font-latex.el (font-latex-set-syntactic-keywords): Match the - \begin macro of verbatim environments in case it is preceded by - other content than whitespace. - -2007-04-04 Ralf Angeli - - * latex.el (LaTeX-backward-paragraph): Fix grouping in order to - return the right value when no paragraph command is found. - -2007-04-01 Ralf Angeli - - * tex-buf.el (TeX-help-error): Correct regexp for matching line - indicator. - -2007-03-31 Ralf Angeli - - * latex.el (LaTeX-verbatim-environments): Fix typo. - (LaTeX-backward-paragraph): Special-case verbatim environments in - order to prevent leading brackets or braces from being interpreted - as part of the \begin macro. Clean up a bit. - -2007-03-24 David Kastrup - - * context.el (ConTeXt-find-indent): Use `condition-case' rather - than `ignore-errors', and don't barf if at the end of file (like - with an empty file). - -2007-03-23 David Kastrup - - * context.el (TeX-ConTeXt-sentinel): Fix end-of-run detection. - -2007-03-19 Ralf Angeli - - * style/comment.el: New file. - - * Makefile.in (STYLESRC): Add style/comment.el. - - * font-latex.el (font-latex-syntactic-keywords-extra): New - variable. - (font-latex-set-syntactic-keywords): Use it. - - * tex-style.el (LaTeX-comment-env-list): New variable. - -2007-03-18 Ralf Angeli - - * doc/auctex.texi (Commands): Remove dependency on software du - jour from description of `TeX-DVI-via-PDFTeX'. - -2007-03-12 Ralf Angeli - - * font-latex.el (font-latex-quotes): Add nil option. - (font-latex-match-quotation) - (font-latex-extend-region-backwards-quotation): Do nothing if - `font-latex-quotes' is nil. - - * doc/auctex.texi (Font Locking): Document nil option of - `font-latex-quotes'. - -2007-03-11 Ralf Angeli - - * latex.el (LaTeX-fold-math-spec-list): `decode-char' is not - autoloaded in XEmacs. Only use it when it is defined. - - * doc/auctex.texi (European): Document `icelandic' language - option. - - * Makefile.in (STYLESRC): Add style/icelandic.el. - - * style/icelandic.el: New file. - -2007-03-11 David Kastrup - - * RELEASE (Footnotes): Update Emacs CVS locations. - -2007-03-10 Ralf Angeli - - * tex-fold.el (TeX-fold-auto): Default to nil. - -2007-03-09 Ralf Angeli - - * tex.el (TeX-clean): Catch error on Emacs 21 when only one file - is to be deleted. - -2007-03-06 Ralf Angeli - - * tex.el (TeX-search-syntax-table): Set syntax of ?\( and ?\) - explicitely to whitespace for Emacs 21. - (TeX-search-syntax-table): Clean the syntax table more thoroughly. - -2007-03-04 Ralf Angeli - - * tex.el (TeX-find-macro-boundaries): Make it possible to restrict - the search with new argument `lower-bound'. - (TeX-find-macro-start): Make it possible to restrict the search - with new argument `limit'. - - * font-latex.el: Merge from multiline-font-lock branch. - (font-latex-do-multi-line, font-latex-use-cache): Remove. - (font-latex-multiline-boundary): New variable. - (font-latex-built-in-keyword-classes): Add information about - syntax of macros. Quote face names. - (font-latex-deactivated-keyword-classes): Adapt type to new form - of `font-latex-built-in-keyword-classes'. - (font-latex-make-match-defun): Accept `face' argument. - (font-latex-keyword-matcher): Support up to 8 slots for faces. - (font-latex-make-built-in-keywords): Support new form of keywords - classes. - (font-latex-user-keyword-classes): Provide possibility to specify - macro syntax. - (font-latex-make-user-keywords): Add warning face in relevant - matchers. - (font-latex-extend-region-functions): New variable. - (font-latex-setup): Use it. Clean up. - (font-latex-fontify-region): New function. - (font-latex-unfontify-region): Cater for XEmacs. - (font-lock-after-change-function): Advise function for challenged - editors. - (font-latex-find-matching-close): Use `TeX-search-syntax-table'. - (font-latex-not-on-same-line-as): New function. - (font-latex-set-cache, font-latex-get-cache) - (font-latex-check-cache): Remove. - (font-latex-put-multiline-property-maybe): New function. - (font-latex-match-command-cache): Remove. - (font-latex-matched-faces): New variable. - (font-latex-matched-face): New function. - (font-latex-match-command-with-arguments): Use them. Set warning - face when syntax not correct. - (font-latex-match-in-braces-cache): Remove. - (font-latex-match-mandatory-arg): New function. - (font-latex-extend-region-backwards-command-with-args): New - function. - (font-latex-match-command-in-braces): Set multiline property if - necessary. - (font-latex-extend-region-backwards-command-in-braces): New - function. - (font-latex-match-math-env): Set multiline property if necessary. - (font-latex-extend-region-backwards-math-env): New function. - (font-latex-math-environments): New variable. - (font-latex-match-math-envII): Use it. Set multiline property if - necessary. - (font-latex-extend-region-backwards-math-envII): New function. - (font-latex-update-quote-list): New function. - (font-latex-match-quotation): Use it. Set multiline property if - necessary. - (font-latex-extend-region-backwards-quotation): New function. - -2007-02-25 David Kastrup - - * tex.el (TeX-read-string): Add new function that will inherit the - input method if feasible. TODO: replace calls of `read-string' - with this wherever it may be appropriate. - -2007-02-20 Ikumi Keita - - * tex-buf.el (TeX-region-file): Doc fix. - -2007-02-15 Masayuki Ataka - - * tex.el (TeX-after-insert-macro-hook): New hook. - (TeX-insert-macro): Use it. - - * tex-fold.el (TeX-fold-auto): New variable. - (TeX-fold-mode): Append auto fold stuff to the end of - `TeX-after-insert-macro-hook'. - -2007-02-13 Ralf Angeli - - * tex.el (TeX-clean): Fix last change. - -2007-02-10 Ralf Angeli - - * tex-fold.el (TeX-fold-macro-spec-list-internal) - (TeX-fold-env-spec-list-internal) - (TeX-fold-math-spec-list-internal): New variables. - (TeX-fold-region-macro-or-env, TeX-fold-item): Use them. - (TeX-fold-comment-do): Doc fix. - (TeX-fold-mode): Set TeX-fold-*-spec-list-internal variables. Use - -fold-*-spec-list variables if bound. - - * latex.el (LaTeX-fold-macro-spec-list) - (LaTeX-fold-env-spec-list, LaTeX-fold-math-spec-list): New - variables. - - * tex.el (TeX-mode-prefix): New function. - (TeX-clean): Use it. - -2007-02-10 Masayuki Ataka - - * tex-jp.el (TeX-japanese-process-input-coding-system) - (TeX-japanese-process-output-coding-system): Use system-type - instead of window-system. Suggested by Ikumi Keita - . - -2007-02-09 Masayuki Ataka - - * tex-jp.el (TeX-japanese-process-input-coding-system) - (TeX-japanese-process-output-coding-system): Do not use - default-coding-system to set process-coding-system, anymore. The - value is set to shift_jis or euc-jp depending on window-system. - - * tex-bar.el: Fix typo. Reported by Ikumi Keita - . - -2007-02-09 Ikumi Keita - - * tex-jp.el (japanese-TeX-command-list): Add - `TeX-run-discard-foreground' and `TeX-run-function' for - function-item. - (japanese-TeX-set-process-coding-system): New function. - (TeX-after-start-process-function): Use it. Cater for the - accidental case that no-Japanese loads tex-jp.el and his - coding-system is set to unexpected one. - -2007-02-05 Ralf Angeli - - * tex.el (TeX-submit-bug-report): Remove unnecessary code. - Include a plea for upgrading into introductory blurb. - -2007-02-01 Ikumi Keita - - * latex.el: Move (provide 'latex) to the end of buffer. - (TeX-global-input-files, BibTeX-global-style-files) - (BibTeX-global-files): checkdoc cleaning. - (LaTeX-fill-paragraph, LaTeX-fill-code-comment): Use function - TeX-match-buffer instead of buffer-substring-*. - (LaTeX-209-to-2e): Likewise. - - * tex-buf.el (TeX-command-region, TeX-command-buffer) - (TeX-next-error, TeX-check-files, TeX-command-next) - (TeX-output-extension, TeX-run-set-command, TeX-run-interactive) - (TeX-sentinel-default-function, TeX-region-create, TeX-region) - (TeX-error-file, TeX-error-offset, TeX-parse-TeX) - (TeX-error-description-list): checkdoc cleaning. - (TeX-run-command, TeX-TeX-sentinel-check, TeX-BibTeX-sentinel): - Use substitute-command-keys to message key binding. - (TeX-current-pages): Add doc string. - - * tex.el (TeX-print-command, TeX-queue-command) - (TeX-command-list, TeX-printer-list, TeX-set-mode-name) - (TeX-regexp-group-count): checkdoc cleaning. - (plain-TeX-mode-hook): Declare user option explicitly using - defcustom. - (TeX-search-files-kpathsea): Use TeX-kpathsea-path-delimiter - instead of kpathsea-path-delimiter. - -2007-01-23 Ralf Angeli - - * doc/auctex.texi (Quotes): Document - `TeX-math-close-double-dollar'. Add subheadings. - -2007-01-22 Ralf Angeli - - * autogen.sh: Define PDFTEX if empty and pass it to `make dist' in - `doc' directory for documentation generation. - - * doc/Makefile.in (docdir, PACKAGE_TARNAME): New variables. - (dist): Add tex-ref.pdf target. - (extradist): Remove tex-ref.pdf target. - (install-auctex): Add tex-ref.pdf target. Install tex-ref.pdf - into $(docdir). - -2007-01-21 Ralf Angeli - - * tex-fptex.el: Make calls of start.exe work with quoted file - names. - - * tex-mik.el: Make calls of start.exe work with quoted file names. - -2007-01-21 Masayuki Ataka - - * tex-fold.el (TeX-fold-type-list): New new type 'math. - (TeX-fold-math-spec-list): New variable. - (TeX-fold-dwim, TeX-fold-region, TeX-fold-region-macro-or-env) - (TeX-fold-item): Try to fold math macros as well. - (TeX-fold-buffer, TeX-fold-paragraph, TeX-fold-make-overlay) - (TeX-fold-item-end): Mention new type 'math. - (TeX-fold-math): New function. - -2007-01-20 David Kastrup - - * auctex.spec: Remove unused `%{extraconfig}' argument. - -2007-01-20 Masayuki Ataka - - * tex-fold.el (TeX-fold-macro-spec-list): Fold marginpar, eqref, - glossary, copyright, textregistered and texttrademark macros as - well. - -2007-01-18 Masayuki Ataka - - * tex-jp.el: Update maintainer email address. - - * style/verbatim.el: Update author email address. - -2007-01-17 Reiner Steib - - * tex.el (TeX-clean-default-intermediate-suffixes): Add beamer - suffixes. - -2007-01-16 Masayuki Ataka - - * tex-jp.el (japanese-TeX-command-list): Use "%`" and "%'" magic - to allow file names with spaces. See also change log for - TeX-command-list in tex.el on 2006-10-10. - Reported by Ikumi Keita . - -2007-01-14 Ralf Angeli - - * doc/wininstall.texi: Add copyright notice and licence reference. - Mention --infodir. Some clean-ups. - -2007-01-13 Ralf Angeli - - * Makefile.in (www-doc): Generate AUCTeX and preview-latex manuals - in single directory. Patch gendocs.sh to use texi2html instead of - makeinfo (patch not included). - -2007-01-12 Ralf Angeli - - * Version 11.84 released. - -2007-01-12 Ralf Angeli - - * RELEASE: Update for release. - - * doc/changes.texi: Update for release. - - * auctex.spec (Version): Bump version number. - - * configure.ac: Bump version number. - - * doc/tex-ref.tex: Bump version number. - -2007-01-11 Ralf Angeli - - * Makefile.in (STYLESRC): Add style/polski.el. - - * RELEASE: Mention support for `polski' LaTeX package. - - * style/polski.el: New file. - - * doc/auctex.texi (European): Mention `polski' language option. - -2007-01-08 Ralf Angeli - - * RELEASE: Document some new features. - - * style/polish.el: New file. - - * Makefile.in (STYLESRC): Add style/polish.el. - - * doc/auctex.texi (European): Remove references to `plfonts' and - `plhb' styles for typesetting Polish text because they seem to be - out of use. Refer to the `polish' option for the babel LaTeX - package instead. - - * tex.el (TeX-quote-language-alist): Replace references to - `plfonts' and `plhb' by `polish'. - -2007-01-07 Ralf Angeli - - * doc/wininstall.texi: Refer to up-to-date versions of CVS Emacs. - - * doc/install.texi (Prerequisites): Refer to up-to-date versions - of CVS Emacs. - -2007-01-05 Reiner Steib - - * doc/auctex.texi (European): Improve TeX-quote-language-alist. - - * tex.el (TeX-command-default): Mark as safe-local-variable. - (TeX-quote-language-alist): Improve custom type. Add links to the - manual. Improve doc string. - -2006-12-30 Ralf Angeli - - * doc/auctex.texi (Folding): Document user-visible changes in the - folding functionality. - -2006-12-29 Ralf Angeli - - * tex-info.el (TeX-texinfo-mode): Set `comment-use-syntax'. - - * tex-fold.el: Update author email address. - (TeX-fold-type-list): New variable. - (TeX-fold-keymap): Add key binding for `TeX-fold-comment'. - (TeX-fold-dwim): Try to fold comment as well. - (TeX-fold-region): Move implementation of region folding for - macros and environments out into the new function - `TeX-fold-region-macro-or-env' and cater for comments as well. - (TeX-fold-region-macro-or-env, TeX-fold-region-comment) - (TeX-fold-comment, TeX-fold-comment-do): New functions. - - * latex.el (LaTeX-common-initialization): Set - `TeX-search-forward-comment-start-function'. - (LaTeX-fill-region-as-para-do, LaTeX-fill-paragraph) - (LaTeX-fill-code-comment): Call `TeX-search-forward-comment-start' - instead of `LaTeX-search-forward-comment-start'. - - * tex.el (VirTeX-common-initialization): Set `comment-end-skip' - and `comment-use-syntax'. - (TeX-fold-menu): Add entry for folding comments. - (TeX-comment-forward): New compatibility function. - (TeX-comment-or-uncomment-region): Use it. - (TeX-search-forward-comment-start-function): New variable. - (TeX-search-forward-comment-start): New function. - -2006-12-10 David Kastrup - - * latex.el (LaTeX-section-hook): Place into `LaTeX-macro' group. - (LaTeX-verbatim-macros-with-delims) - (LaTeX-verbatim-macros-with-braces): Same here. - (LaTeX-verbatim-environments): Place into `LaTeX-environment' - group. - -2006-12-07 Ralf Angeli - - * tex-bar.el (TeX-install-toolbar, LaTeX-install-toolbar): Add - `toolbarx-refresh' to `TeX-PDF-mode-hook' in the current buffer - only. - -2006-12-06 Ralf Angeli - - * context-nl.el (ConTeXt-nl-mode-initialization): Use correct - syntax for prompting for an optional argument in case of \items - macro. - - * context-en.el (ConTeXt-en-mode-initialization): Use correct - syntax for prompting for an optional argument in case of \items - macro. - - * context.el (ConTeXt-arg-setup): Capitalize prompt. - -2006-12-04 Miguel Frasson - - * toolbar-x.el (toolbarx-emacs-add-button): - Insert buttons in KEYMAP (new arg). - Unnecessary &optional removed. - Removed broken code for fake-button `:new-line'. - (toolbarx-emacs-refresh-process-button-or-insert-list): - New arg KEYMAP inserted. - Unnecessary &optional removed. - (toolbarx-emacs-refresh): - Fixed bug with `tool-bar-map' let-bound and made local variable. - (toolbarx-xemacs-refresh-process-button-or-insert-list): - Docstring improved.. - (toolbarx-xemacs-refresh): - Using `nreverse' directly inside `let'. - `nreverse' is applied to lists generated from actual - data-structures, leaving such data-structures alone. - -2006-11-26 Ralf Angeli - - * context.el (ConTeXt-texexec-option-nonstop): New variable. - (ConTeXt-expand-options): Use it. - -2006-11-24 Ralf Angeli - - * tex.el (plain-TeX-enable-toolbar): Rename from - `TeX-enable-toolbar'. - (plain-TeX-maybe-install-toolbar): Rename from - `TeX-maybe-install-toolbar'. - (TeX-plain-tex-mode): Use new names. - - * doc/auctex.texi (Running TeX and friends): Explicitely mention - `plain-TeX-enable-toolbar' and `LaTeX-enable-toolbar'. - -2006-11-16 Ralf Angeli - - * latex.el (LaTeX-fill-region-as-para-do): Do not break before - code comments if at a commented beginning of a line. - -2006-10-21 Reiner Steib - - * doc/preview-latex.texi: Fix @node commands. - -2006-10-20 David Kastrup - - * doc/auctex.texi (top): Mention reference card. - - * doc/Makefile.in (PREVIEWTEXIFILES): Add `version.texi'. - - * doc/auctex.texi: Add formatting emergencystretch. Move macros - input. - (top): Rearrange somewhat. Avoid duplicate contents (?). - - * doc/preview-latex.texi: Restructure and relicense taking - auctex.texi as an example. - - * doc/auctex.texi (top): In the user-visible part of the info - file, move the copying info completely to the "Copying this - manual" section in order to reduce clutter. - -2006-10-19 David Kastrup - - * RELEASE: Mention previous XEmacs package problems. - -2006-10-16 David Kastrup - - * tex-buf.el (TeX-parse-error, TeX-error, TeX-warning): Replace - the error parser basically by what we have in preview-latex. - However, this does not yet do the fine-grained hackery around - possible TeX quote characters that preview-latex employs in order - to get the correct character position in a line even under adverse - conditions. - -2006-10-11 David Kastrup - - * tex-buf.el (TeX-error-description-list): Add preview-latex error - pattern here. - - * tex.el (TeX-expand-list): Add "%m" pattern from preview. - (TeX-add-local-master): Make a local variable wrapper more - suitable for docstrip. - -2006-10-10 David Kastrup - - * RELEASE: Mention space in file names, PostScript stack - tolerance. - - * tex-buf.el (TeX-command-expand): Make `file' self-quoting in - expansion, and trick around with `TeX-command-pos' and other junk - in order to make the quoting stuff of "%`" and "%'" work. - (TeX-view-output-file): Became pretty pointless. Remove. - - * tex.el (TeX-command-list): Use "%`" and "%'" magic to allow file - names with spaces. - (TeX-output-view-style): Don't quote "%s", that's the job of - `TeX-command-expand'. - (TeX-expand-list): Use the `-interaction' option. Define "%`", - " \"\\", "\"" and "%'" patterns. Somebody should probably rather - turn this into external functions in `tex-buf.el': the stuff - really has no business here and does not get byte-compiled. Use - `file' for "%o". - -2006-10-07 Ralf Angeli - - * latex.el (LaTeX-fill-region-as-paragraph): Match "foo\ %" as - well. - -2006-10-04 Ralf Angeli - - * tex.el (TeX-find-macro-boundaries): Prevent `up-list' and - friends from finding parens in comments if point is not in a - comment and vice versa. - -2006-10-02 David Kastrup - - * doc/auctex.texi: Change the licensing terms to require no front - and back cover texts, and explicitly exclude the GFDL from being - licensed under the GFDL. - (top): Give a synopsis for the license section in the top menu. - Remove redundant version mentions, remove the explicit exclusion - of the GFDL from GFDL licensing: RMS says it is unnecessary. - -2006-09-29 David Kastrup - - * autogen.sh: Use `=' instead of `==' in tests. - - * doc/Makefile.in (version.texi): Let version.texi depend rather - on ChangeLog in order not to disturb pregenerated documentation. - - * autogen.sh: Prepare `AUCTEXDATE' and `AUCTEXVERSION' for `make - dist'. - - * Makefile.in (tar-ball): Pass version and date into autogen.sh - - * doc/Makefile.in (AUCTEXDATE, AUCTEXVERSION): get from configure. - (AUCTEXTEXIFILES): Add fdl.texi and version.texi - (version.texi): create depending on Makefile. - (maintainer-clean): Remove version.texi. Should this be in the - distclean target instead? - - * doc/fdl.texi: Add it. - - * Makefile.in (DOCFILES): Remove, unused. - (doc/Makefile): Add target. - (info, dvi, install-man, install-docs, clean, distclean) - (tar-ball): depend on doc/Makefile - - * doc/.cvsignore: Add version.texi, remove unused auto.texi. - - * doc/auctex.texi: Rearrange header material, put under GFDL, add - license, take version numbers from version.texi. - -2006-09-21 David Kastrup - - * RELEASE: Adapt to upcoming release. - - * doc/install.texi (Configure): Remove reference to - `--with-kpathseasep' option. - - * tex-mik.el (TeX-kpathsea-path-delimiter): initialize to ";". - - * tex-fptex.el (TeX-kpathsea-path-delimiter): initialize to ";". - -2006-09-20 David Kastrup - - * tex-buf.el: Let `TeX-active-buffer' return nil if there is no - command buffer. Change copyright notice from Kresten Krab Thorup - to reflect assignment to FSF. - - * latex.el: Change copyright notice. - - * tex.el: Change copyright notice. - - * doc/tex-ref.tex: Change copyright notice. - - * doc/auctex.texi: Change copyright notice. - -2006-09-17 Reiner Steib - - * doc/faq.texi: Fix syntax error. - -2006-09-16 Ralf Angeli - - * doc/faq.texi: Explain the abbreviation AUC. - -2006-09-13 Reiner Steib - - * toolbar-x.el (toolbarx-emacs-refresh): Don't modify global value - of `tool-bar-map'. - -2006-09-11 Reiner Steib - - * latex.el (LaTeX-math-default): Remove X2ABB for \Pr. Suggested - by Adam Johnson . - -2006-09-08 Reiner Steib - - * latex.el: Use read-kbd-macro instead of kbd for LaTeX-math-mode. - (LaTeX-math-default): Add bindings for \var... symbols. - (LaTeX-math-default): Change binding for \vartheta. - -2006-09-08 David Kastrup - - * latex.el: Allow strings for keys in LaTeX-math-mode. - (LaTeX-math-list): Allow string for key. - -2006-09-06 Ralf Angeli - - * doc/auctex.texi (Mathematics): Align description of - `LaTeX-math-list' with reality. - -2006-08-25 David Kastrup - - * doc/preview-faq.texi (Requirements, Installation Trouble) - (Customization): Update and remove stuff, mostly because - preview-latex is integrated with AUCTeX now. - -2006-08-30 Ralf Angeli - - * latex.el (TeX-latex-mode): Check if `tool-bar-mode' is bound. - - * tex.el (TeX-plain-tex-mode): Check if `tool-bar-mode' is bound. - -2006-08-26 Ralf Angeli - - * doc/auctex.texi (European): Make replacement of - language-specific hyphen strings more obvious. - -2006-08-25 Ralf Angeli - - * style/csquotes.el: Bring up to par with version 3.5. - -2006-08-17 David Kastrup - - * doc/auctex.texi (Viewing): Type fix. - -2006-08-05 Berend de Boer - - * context-en.el: quite a few more English ConTeXt macros made - available in menu. - - * context-nl.el: few more Dutch ConTeXt macros made available in menu. - - * context.el: more ConTeXt macros made available in menu. - -2006-08-02 Reiner Steib - - * tex-bar.el (TeX-bar-TeX-button-alist, TeX-bar-LaTeX-button-alist): - Make `file' invisible in TeX-PDF-mode. Add clean. - (TeX-bar-TeX-buttons, TeX-bar-LaTeX-buttons): Improve custom type. - -2006-07-27 Reiner Steib - - * tex-bar.el (TeX-bar-TeX-buttons, TeX-bar-LaTeX-buttons): Improve - wording. - - * doc/changes.texi: Add bug fixes. Add TeX tool bar. - - * doc/auctex.texi (Running TeX and friends): Add - TeX-enable-toolbar. - - * tex-bar.el: Copy of tool bar stuff from LaTeX-*. - (TeX-bar-TeX-buttons, TeX-bar-TeX-all-button-alists) - (TeX-bar-TeX-button-alist): New variables. - (TeX-bar-TeX-buttons, TeX-install-toolbar): New funtions. - (TeX-tool-bar-button-definitions): New custom group - - * tex.el (TeX-enable-toolbar): New variable. - (TeX-maybe-install-toolbar): New function. - (TeX-plain-tex-mode): Add `TeX-maybe-install-toolbar'. - -2006-07-27 David Kastrup - - * doc/wininstall.texi: Add explanation of how to augment `PATH'. - - * doc/todo.texi (Mid-term Goals): Typo. - -2006-07-25 David Kastrup - - * style/doc.el ("doc"): Add macrocode and macrocode* to - indentation-neutral environment list. - - * latex.el (LaTeX-insert-environment): Leave mark at start of - content when inserting around active region. - -2006-07-11 David Kastrup - - * latex.el (LaTeX-font-list): Add `\mathbb' on C-c C-f C-s. - -2006-07-25 Ralf Angeli - - * font-latex.el (font-latex-match-script): Don't match groups - spanning more than one line in order to avoid visually wrong - indentation in subsequent lines. - (font-latex-match-quotation): Do not match escaped quotation - marks. - -2006-07-23 Ralf Angeli - - * bib-cite.el, tex-mik.el, doc/changes.texi, doc/history.texi, - doc/wininstall.texi: Fix spelling of MiKTeX. - -2006-07-21 Ralf Angeli - - * font-latex.el (font-latex-match-script): Fix last check-in. - -2006-07-18 Ralf Angeli - - * font-latex.el (font-latex-match-script): Apply subscript and - superscript highlighting only once in order to prevent the font - size becoming too small. - -2006-07-15 Ralf Angeli - - * latex.el (LaTeX-maybe-install-toolbar): Enable tool bar in LaTeX - mode only. - (LaTeX-maybe-install-toolbar): Revert last change. - (TeX-latex-mode): Set `tool-bar-mode-on-hook' buffer-locally - instead. - -2006-07-12 Ralf Angeli - - * latex.el (LaTeX-fill-move-to-break-point): Fix regexp for - matching whitespace and comment characters at the start of a line. - Simplify forward search. - -2006-07-11 Ralf Angeli - - * tex.el (TeX-find-macro-boundaries, TeX-find-macro-start): Remove - unused argument. - (TeX-find-macro-end-helper): Handle macros at the end of the - buffer correctly. - -2006-07-10 Ralf Angeli - - * tex.el (TeX-math-close-double-dollar): New variable. - (TeX-insert-dollar): Use it. - - * Makefile.in, doc/Makefile.in (datarootdir): New variable used by - autoconf 2.59e. - -2006-07-09 Ralf Angeli - - * aclocal.m4 (EMACS_CHECK_MULE): Check for EMACS_UNIBYTE - environment variable and do not set MULESRC if it is present. - -2006-07-07 Ralf Angeli - - * tex.el (TeX-normal-mode): Force update of style list. - -2006-07-02 Ralf Angeli - - * tex.el (TeX-doc-backend-alist): Explicitely supply doc directory - for non-kpathsea-based TeX systems. - -2006-06-29 Ralf Angeli - - * latex.el (LaTeX-fill-region-as-paragraph): Fix treatment of code - comments in case of something like "\%}%". - -2006-06-24 Ralf Angeli - - * tex.el (TeX-clean): Delete files in directory of master file. - -2006-06-23 Joshua Buhl - - * doc/tex-ref.tex (title{Outlining TeX Documents}): new section. - -2006-06-19 Ralf Angeli - - * style/amsmath.el ("amsmath"): Prompt for alignment option with - subarray environments. - -2006-06-18 Ralf Angeli - - * tex.el (TeX-doc-backend-alist): Preserve window configuration - when checking for info backends. - -2006-06-17 Ikumi Keita - - * tex.el (TeX-parse-arguments): Makes to work with proper value of - TeX-insert-macro-default-style. - (TeX-insert-braces): Place braces with right direction with active - region, (related to the case when the region is being marked - backwards). - -2006-06-17 Masayuki Ataka - - * tex.el (TeX-clean): Delete generated files associated with - `TeX-region-file'. Suggested by Ikumi Keita . - -2006-06-12 Ralf Angeli - - * tex.el (Info-find-file): Do not autoload. - (TeX-doc-backend-alist): Use a method for checking the presence of - an info file which works in Emacs 21 as well. - -2006-06-11 Ralf Angeli - - * tex.el (TeX-doc-backend-alist): Don't error out if - `Info-find-file' is not available. - (TeX-doc): Use `interactive-p' instead of `called-interactively-p' - which is not available in Emacs 21. - -2006-06-11 Ikumi Keita - - * style/amsmath.el ("amsmath"): Docfix for 'uproot'. - (LaTeX-amsmath-env-alignat): Fix typo. - -2006-06-08 David Kastrup - - * Makefile.in (PREVIEW_BUILD_DIR): New variable for building the - preview standalone bundle. - (preview-ball): New target for creating the preview standalone - bundle for CTAN. - -2006-06-08 Reiner Steib - - * auctex.spec (%post, %postun): Use mktexlsr instead of texhash. - Only update the relevant ls-R file. - (%install): Add comment about preview.cfg. - (%install, %files): prauctex.cfg is the config file, not - preview.cfg. - -2006-06-07 Ralf Angeli - - * latex.el (LaTeX-set-paragraph-start): New function. - (LaTeX-paragraph-commands-add-locally) - (LaTeX-common-initialization): Use it. - -2006-06-07 Reiner Steib - - * Version 11.83 released. - -2006-06-07 Reiner Steib - - * Makefile.in (full-release): Remove duplicate pass phrase prompt. - (release-commit): Only commit ChangeLog. - - * Makefile.in (rpm-packages): Rename from rpm-builds. - - * RELEASE: Fix typo. - - * Makefile.in (rpm-builds): Add preview-tetex. - - * auctex.spec: Add "-n" for preview-tetex. - (%install): Create preview.cfg. - -2006-06-07 David Kastrup - - * RELEASE: Add info about preview RPM. - - * doc/install.texi (Advice for package providers): Adapt package - advice to what we actually do for RPM files. - - * auctex.spec: attempt to add preview-tetex package. - -2006-06-07 Reiner Steib - - * Makefile.in (XEMACS_BUILD_DIR): New variable. - (xemacs-package): Use it. - (tar-ball-clean): Add XEMACS_BUILD_DIR. - (CP): New variable. - (tar-ball, www-doc): Use it. - - * RELEASE: Update RPM stuff. - - * tex.el (TeX-line-number-at-pos): New compatibility function. - - * style/pdfsync.el (LaTeX-pdfsync-output-page): Use it. - - * auctex.spec (Obsoletes): Remove preview-latex-common. - -2006-06-06 Ralf Angeli - - * style/pdfsync.el (LaTeX-pdfsync-output-page): Initialize - `sync-record' with a non-nil value. - - * doc/auctex.texi (Viewing): Fix reference to Commands node - looking ugly in info output. Slightly rearrange forward/inverse - search section. Document pdfsync support a bit more in detail. - -2006-06-06 Reiner Steib - - * RELEASE: Use "SUSE" instead of "SuSE". - - * auctex.spec (Release): Bump to 1. - (%changelog): Add 11.83. - - * doc/changes.texi: Add @xref for pdfsync. - - * doc/auctex.texi (Viewing): Mention pdfsync. - - * doc/todo.texi (Wishlist): Add newline. Mention pdfsync. - -2006-06-06 David Kastrup - - * RELEASE: Add details about downloadable packages. Beg harder. - -2006-06-05 Reiner Steib - - * RELEASE: Mention LaTeX tool bar. - -2006-06-05 Ralf Angeli - - * font-latex.el (font-latex-quote-regexp-beg) - (font-latex-quotes-control): Make buffer-local. - (font-latex-add-quotes): Revert last change and do not make - `font-latex-quotes-control' buffer-local which it now already is. - -2006-06-04 Ralf Angeli - - * font-latex.el (font-latex-add-quotes): Make - `font-latex-quote-regexp-beg' buffer-local. - -2006-06-04 Reiner Steib - - * Makefile.in (rpm-builds): New target. - (full-release): Use gpg-agent if available. - (RPM_SIGN): New variable. - (rpm-builds): Use it. - - * doc/install.texi (Advice for non-privileged users): Reword to - avoid underfull hbox. - -2006-06-03 Ralf Angeli - - * doc/auctex.texi (top): Update master menu. - (Running TeX and friends): Update menu. - (Miscellaneous Commands): Remove. - (Cleaning, Documentation): New nodes. - - * doc/changes.texi: Update references to documentation about - cleaning and documentation access. - -2006-06-02 Reiner Steib - - * doc/auctex.texi (Miscellaneous Commands): New node. - - * doc/changes.texi: Add @xref-s. - -2006-06-02 David Kastrup - - * doc/changes.texi: Change one ref to xref. - -2006-05-31 Reiner Steib - - * doc/changes.texi: Conditionalize reference. - - * doc/Makefile.in (MAKEINFO_PLAIN): Remove --no-validate. - - * auctex.spec (%files emacs): Remove %exclude. - -2006-05-30 Reiner Steib - - * doc/Makefile.in (MAKEINFO_PLAIN): New. Add --no-validate. - - * doc/changes.texi: Add tool bar. - - * doc/auctex.texi (top): Remove tool bar. - (Running TeX and friends): Add tool bar here. Adjust. - -2006-05-25 David Kastrup - - * RELEASE: Mention file-line-error style messages. - Mention XyMTeX fix. - - * doc/changes.texi: The same. - - -2006-05-25 Ralf Angeli - - * tex.el (TeX-update-style-hook): New variable. - (TeX-update-style): Use it. - (TeX-remove-style): Fix typo. - - * font-latex.el (font-latex-quotes-internal): New variable. - (font-latex-quotes-set-internal): New function. - (font-latex-match-quotation): Use it. Use - `font-latex-quotes-internal' instead of `font-latex-quotes'. - (font-latex-setup): Remove code for figuring out type of - language-specific quotation mark matching which is now in - `font-latex-quotes-set-internal'. - - * RELEASE: Update for 11.83. - - * auctex.spec, configure.ac, doc/auctex.texi, doc/changes.texi, - doc/preview-latex.texi, doc/tex-ref.tex: Bump version number. - - Update address of FSF in GPL notices. - -2006-05-22 Ralf Angeli - - * font-latex.el (font-latex-quotes-fallback) - (font-latex-quote-style-list-french) - (font-latex-quote-style-list-german): New variables. - (font-latex-quotes): Add `auto' option. - (font-latex-setup): Try to derive type of quotation mark matching - from document properties. - - * tex.el (TeX-elt-of-list-member): New function. - - * doc/auctex.texi (Font Locking): Document `auto' option of - `font-latex-quotes'. - -2006-05-21 Ralf Angeli - - * tex.el (TeX-source-specials-mode): Mark as safe. - (TeX-PDF-mode): Use `TeX-booleanp'. - (TeX-booleanp): New function. - - * font-latex.el (font-latex-quotes): Mark as safe. - (font-latex-fontify-script): Use `TeX-booleanp'. - -2006-05-17 Ralf Angeli - - * latex.el (LaTeX-forward-paragraph): Make regexp more efficient. - -2006-05-15 Reiner Steib - - * tex.el (TeX-PDF-mode): Rewrite safe-local-variable property for - Emacs 21 compatibility. - - * font-latex.el (font-latex-fontify-script): Ditto. - -2006-05-10 Reiner Steib - - * tex.el (TeX-master): Quote safe-local-variable lambda expression - to avoid byte compilation. - -2006-05-08 Reiner Steib - - * font-latex.el (font-latex-fontify-script): Mark as - safe-local-variable. - -2006-05-07 Reiner Steib - - * tex.el (TeX-PDF-mode): Mark as safe-local-variable. - (TeX-master): Don't use t in safe-local-variable declaration. - (TeX-doc): Clarify. - -2006-05-07 Ralf Angeli - - * font-latex.el (font-latex-match-quotation): Do not match - quotation marks in math constructs. - -2006-05-05 Berend de Boer - - * context.el (ConTeXt-mode-common-initialization): Previous fix - still wrong. Problem is that all local variables were killed, so - added a save/restore around the common initialisation. - -2006-05-04 Berend de Boer - - * context-nl.el (context-nl-mode) and context-en.el - (context-en-mode): can now assume that ConTeXt-current-interface - is buffer local. - - * context.el (ConTeXt-current-interface): this variable should - always be buffer local. With this and above two changes having - buffers with two interfaces at the same time works correctly - (again?). - -2006-04-26 Ralf Angeli - - * tex-buf.el (TeX-TeX-sentinel-check, TeX-parse-error): Support - file-line-error error indicators. - -2006-04-22 Ralf Angeli - - * tex.el (TeX-format-list): Extend regexp for ConTeXt mode. - -2006-04-21 Ralf Angeli - - * latex.el (docTeX-mode): Make filling and indentation aware of - DocStrip guards. - -2006-04-20 David Kastrup - - * tex-buf.el (TeX-warning): Don't balk if `string' is nil. - -2006-04-17 Ralf Angeli - - * font-latex.el (font-latex-match-script): Fix matching of nested - braces. - -2006-04-12 Ralf Angeli - - * latex.el (LaTeX-babel-insert-hyphen): Do not error out at - beginning of buffer. - -2006-03-28 Ralf Angeli - - * Makefile.in (install-metadata): Do not use an inline test for - checking if preview is enabled. Just to be on the safe side. - -2006-03-27 David Kastrup - - * doc/intro.texi (Introduction): refer to `below' instead of - probably non-existing `preview/README'. - - * tex.el: tiny typo. - - * latex.el (LaTeX-close-environment): Allow prefix argument to - reopen the environment. - -2006-03-22 Ralf Angeli - - * Makefile.in (install-metadata): Append preview/auto.el to start - file if configured with preview-latex. - -2006-03-20 Ralf Angeli - - * latex.el (LaTeX-insert-environment): Do not polute the kill - ring. - -2006-03-15 Ralf Angeli - - * latex.el (TeX-latex-mode): Set up tool bar correctly for XEmacs - and activate it for every buffer in Emacs. Run mode hooks as late - as possible. - -2006-03-14 Ralf Angeli - - * configure.ac: Check for `make' and abort if not present. Use - `AC_PROG_MAKE_SET' instead of deprecated `AC_SET_MAKE'. - - * latex.el (LaTeX-common-initialization): Add \dots to supported - TeX symbols. - -2006-03-13 Ralf Angeli - - * tex.el (TeX-mode-map): Change `C-c ?' binding from - `describe-mode' to `TeX-doc'. - (TeX-common-menu-entries): Add `Find Documentation...' entry for - `TeX-doc'. - (plain-TeX-menu-entries): Remove space before ellipsis. - (TeX-doc-backend-alist): Make texdoc backend available in all - modes. - - * latex.el (LaTeX-mode-menu): Remove space before ellipsis. - - * doc/changes.texi: Advertise cleaning and documentation finding - functionality. - -2006-03-07 Ralf Angeli - - * tex-buf.el (TeX-next-error, TeX-active-buffer): Get master from - the command buffer. - (TeX-error, TeX-warning): Do not set `TeX-master' but set - `TeX-command-buffer' to the right value instead. - -2006-02-17 Masayuki Ataka - - * tex-buf.el (TeX-error-description-list): Fix error messages. - Changed from `documentstyle' to `documentclass'. The duplicated - entries `counter too large' are combined. Add the name of - referenced book and the section number to the entry `Missing \\$ - inserted'. - - * tex-jp.el (TeX-error-description-list): Likewise. - -2006-02-16 Ralf Angeli - - * tex.el (TeX-master): Mark as safe. - -2006-02-09 Ralf Angeli - - * doc/wininstall.texi: Intersperse some information about PATH. - -2006-02-08 Reiner Steib - - * tex.el (TeX-clean-default-intermediate-suffixes): Add .brf and - .out for hyperref. - -2006-02-08 Ralf Angeli - - * tex.el (TeX-kpathsea-format-alist): Add search specs for - documentation. - (Info-find-file, info-lookup->completions): Autoload. - (TeX-doc-backend-alist): New variable. - (TeX-doc): New function. - - * doc/todo.texi (Wishlist): Add a few words about documentation - lookup for macros. - -2006-02-07 Ralf Angeli - - * tex-buf.el (TeX-run-ispell-on-document): Reintroduce for - compatibility reasons. - - * tex.el (TeX-command-list): Use `TeX-run-function' instead of - `TeX-run-ispell-on-document' for "Spell" option. Remove - `TeX-run-ispell-on-document' as option for the third element of an - item. - (TeX-ispell-document): Move here from tex-buf.el. - - * tex-buf.el (TeX-run-ispell-on-document): Remove. - (TeX-ispell-document): Move to tex.el. - -2006-02-07 Ralf Angeli - - * tex.el (TeX-command-list): Remove "ConTeXt Clean". Add general - "Clean" and "Clean All" options. Add `TeX-run-function' as an - option for the third element of an item and document it. - (TeX-clean-default-intermediate-suffixes) - (TeX-clean-default-output-suffixes, TeX-clean-confirm): New - variables. - (dired-mark-pop-up): Autoload. - (TeX-clean): New function. - - * tex-buf.el (TeX-run-function): New function. - - * tex-info.el (Texinfo-clean-intermediate-suffixes) - (Texinfo-clean-output-suffixes): New variables. - - * latex.el (docTeX-clean-intermediate-suffixes) - (docTeX-clean-output-suffixes) - (LaTeX-clean-intermediate-suffixes, LaTeX-clean-output-suffixes): - New variables. - - * context.el (ConTeXt-clean-intermediate-suffixes) - (ConTeXt-clean-output-suffixes): New variables. - -2006-02-04 Ralf Angeli - - * font-latex.el (font-latex-make-sectioning-faces): Set the face - size for XEmacs again after `set-face-parent' was called which - erroneously overwrites the original size. Without this fix - sectioning faces may be unscaled after starting XEmacs. - -2006-02-03 Ralf Angeli - - * doc/auctex.texi (top): Add detailed menu for better - accessibility. Fix formatting/usage of references to RefTeX and - preview-latex manuals. - -2006-02-03 Reiner Steib - - * latex.el (LaTeX-enable-toolbar): New variable. - (LaTeX-maybe-install-toolbar): New function. - (TeX-latex-mode): Add LaTeX-maybe-install-toolbar to - tool-bar-mode-on-hook. - -2006-01-31 Ralf Angeli - - * aclocal.m4: Check for {late,last,early}-package-hiearchies if - `late-packages' is not bound (which indicates we are dealing with - XEmacs 21.5). - -2006-01-28 Masayuki Ataka - - * tex-jp.el (TeX-command-list): Use function ignore insted of nil - for the third element of `separator for command menu' because - defcustom of TeX-command-list requires the third element function. - Reported by Ikumi Keita . - -2006-01-28 Ikumi Keita - - * tex-buf.el (TeX-run-discard-foreground): Renamed from - TeX-run-dviout. - (TeX-run-dviout): alias to TeX-run-discard-foreground. - - * tex.el (TeX-command-list): Use TeX-run-discard-foreground - instead of TeX-run-dviout. - -2006-01-25 Ralf Angeli - - * style/csquotes.el (LaTeX-csquotes-insert-environment): Set - prompt for mandatory arguments. - ("csquotes"): Bring up to par with csquotes 3.2. - - * style/url.el ("url"): Support the \path macro. - -2006-01-25 Masayuki Ataka - - * tex-buf.el (TeX-run-dviout): Undo previous change. - - * tex.el (TeX-command-list): Ditto. - -2006-01-24 Ralf Angeli - - * latex.el (LaTeX-verbatim-macros-with-delims) - (LaTeX-verbatim-macros-with-delims-local) - (LaTeX-verbatim-macros-with-braces) - (LaTeX-verbatim-macros-with-braces-local): Doc fix. - (LaTeX-verbatim-environments, LaTeX-verbatim-environments-local): - Doc fix. Make the correct variable buffer-local. - (LaTeX-verbatim-macros-with-delims) - (LaTeX-verbatim-macros-with-braces, LaTeX-verbatim-environments): - New functions. - (LaTeX-verbatim-macro-boundaries): Find macro in case point is - just in front of it. - (LaTeX-verbatim-p): Doc fix. Correct macro lookup. - (LaTeX-fill-move-to-break-point): Do not break verbatim macros - with braces across lines (in addition to macros with delimiters). - For example in case of \lstinline{...} this would result in an - error and in case of \url{...} spaces would be messed up (in - conjunction with the `obeyspaces' package option). - - * font-latex.el (font-latex-set-syntactic-keywords): Instead of - appending lists of verbatim macros and environments manually use - new LaTeX-verbatim-* functions. - -2006-01-24 Ikumi Keita - - * latex.el (LaTeX-fill-move-to-break-point): Fix previous change. - -2006-01-23 Reiner Steib - - * Makefile.in: Add CP_A. Add coment on maintainer-only targets. - (xemacs-package): Use CP_A. - -2006-01-22 Ikumi Keita - - * latex.el (LaTeX-fill-move-to-break-point): Use TeX-espaced-p to - check TeX escape char. - - * tex.el (TeX-command-list): Removed TeX-run-dviout because dviout - here is only work with Emacs on MS-DOS. - - * tex-buf.el (TeX-run-dviout): Removed. - - * tex-jp.el (japanese-TeX-command-list): Remove TeX-run-dviout. - Commented out easy-menu-define (plain-TeX|LaTeX)-mode-command-nemu. - (japanese-TeX-mode, japanese-plain-tex-mode) - (japanese-latex-mode): Doc fix. - (japanese-TeX-self-insert-command): Renamed from - tex-jp-self-insert-command. - (TeX-insert-punctuation): Follow the change. - (TeX-error-description-list): Doc fix. - -2006-01-22 Ralf Angeli - - * tex-fold.el (TeX-fold-macro-spec-list): Fold pageref macro as - well. - -2006-01-16 David Kastrup - - * Makefile.in (xemacs-package): Don't clean up after building so - that we have a chance for debugging. - -2006-01-14 David Kastrup - - * configure.ac: Don't check for INSTALL_INFO if already set. - -2006-01-14 Ralf Angeli - - * doc/changes.texi: Advertize pdfsync support. - - * latex.el (LaTeX-header-end, LaTeX-trailer-start): Do not pick up - commented header end or trailer start respectively. - -2006-01-13 David Kastrup - - * Makefile.in (xemacs-package): Don't run `install-info' and - `texhash' - -2006-01-11 Reiner Steib - - * Makefile.in (tar-ball): Fix use of TAG_EXPORT. - -2006-01-04 Reiner Steib - - * tex-fold.el (TeX-fold-mode): Autoload as an interactive - function. - -2005-12-28 Ralf Angeli - - * style/pdfsync.el: New file. - - * Makefile.in (STYLESRC): Add style/pdfsync.el. - - * tex.el (TeX-output-view-style): Add %(outpage) expander to xpdf - call. Start xpdf in server mode. - (TeX-expand-list): New %(outpage) expander. - (TeX-sync-output-page-function): New variable. - -2005-12-28 Reiner Steib - - * Makefile.in (tar-ball): Use TAG_EXPORT for snapshots. - - * auctex.spec (description): Add preview-latex. - (install, files): Don't create preview directory. - -2005-12-21 Ikumi Keita - - * latex.el (LaTeX-mark-section): Remove read-only mark `*' from - interactive. - (LaTeX-fill-move-to-break-point): Use `*' instead of `+' for - looking back Japanese Macro in order to prevent breaking line just - after TeX-esc, in other words, not to break TeX command `\JJJ' - into `\' and `JJJ'. Use variable linebeg instead of function - line-beginning-position. - -2005-12-17 Reiner Steib - - * auctex.spec (Provides): Make emacs/site-lisp/preview. - (Release): Bump to 1. - -2005-12-17 Ralf Angeli - - * Version 11.82 released. - -2005-12-17 Ralf Angeli - - * Makefile.in (COMMITTER_NAME, COMMITTER_EMAIL): New variables. - (release-commit): Use them. - - * auctex.spec, configure.ac, doc/auctex.texi, - doc/preview-latex.texi, doc/tex-ref.tex: Bump version number. - - * doc/changes.texi: Minor rewordings for 11.82. - -2005-12-08 Reiner Steib - - * tex.el (TeX-completing-read-multiple): Mention the availability - of crm.el in recent XEmacs packages. - -2005-12-07 Ralf Angeli - - * tex.el (TeX-macro-history): New variable. - (TeX-insert-macro): Use it. - -2005-12-05 Ralf Angeli - - * tex-info.el (TeX-texinfo-mode): Do not add braces around - arguments of commands which do not expect them. - - * latex.el (TeX-arg-free): Move to tex.el. - - * tex.el (TeX-arg-free): Move here from latex.el. - (TeX-insert-dollar): Do not abort with an error with an error if a - dollar is inserted in a math construct not started with a dollar. - Issue a message about the mismatch instead and insert the dollar. - - * font-latex.el (font-latex-quote-list): Add default quotes. - (font-latex-add-quotes): New function. - (font-latex-match-quotation): Remove hard-coded quotation mark - lists and adapt `font-latex-quote-list' to the active quote style - instead. Babel-specific quotation mark strings are now added to - `font-latex-quote-list' by style files. - - * style/slovak.el, style/ngerman.el, style/italian.el, - style/german.el, style/danish.el: Add fontification support for - quotation mark strings provided by babel. - -2005-11-30 Ralf Angeli - - * texmathp.el: Revert last change because it makes math - switch/toggle matching tricks harder to use. - - * latex.el (LaTeX-listify-package-options): New function. - (LaTeX-auto-cleanup): Use it. - (LaTeX-arg-usepackage): Add \usepackage options to style list. - - * tex.el (TeX-insert-quote): Turn opening/closing quotation mark - into "" if <"> is typed with point behind it and insert " with any - following <"> key type. - -2005-11-29 Ralf Angeli - - * texmathp.el (texmathp-in-commented-line, texmathp-in-comment): - New functions. - (texmathp-match-environment): Use them. - (texmathp-match-switch): Make aware of comments. - -2005-11-27 Ralf Angeli - - * style/MinionPro.el: New file. Contributed by Mark Trettin. - - * Makefile.in (STYLESRC): Add style/MinionPro.el. - - * doc/changes.texi: Advertise support for MinionPro.sty. - - * RELEASE (IMPORTANT): Add Mark. - -2005-11-25 David Kastrup - - * doc/todo.texi (Wishlist): Add suggestion about longlines.el. - -2005-11-24 Ralf Angeli - - * tex.el (TeX-toggle-debug-warnings): Use correct variable for - state indication. - (TeX-kpathsea-format-alist): Add entry for "sty". Prevents - kpathsea-based search from failing e.g. in case of \usepackage - insertion. - - * doc/changes.texi: Document removal of - `font-latex-title-fontify' alias. - - * font-latex.el: Remove alias for `font-latex-title-fontify'. - (font-latex-make-user-keywords): Use hack from tex-mode.el to - fontify the backslash in "\end{verbatim}" and similar correctly. - (font-latex-set-syntactic-keywords): Use the backslash of - "\end{verbatim}" and similar for the syntax property, not the - newline character which led to fontification going wild when text - at the end of the environment was inserted. - -2005-11-22 Ralf Angeli - - * doc/changes.texi: Mention completion support for LaTeX packages. - - * RELEASE: Update for 11.82. - -2005-11-19 Ralf Angeli - - * tex-site.el.in (tex-site-unload-hook): Don't let it fail on - Emacs 21. - -2005-11-18 Ralf Angeli - - * doc/changes.texi: Fix key binding for - `TeX-toggle-debug-bad-boxes'. - - * doc/auctex.texi (Quotes): Document change of - `TeX-insert-braces'. - (Filling): `M-g' for `LaTeX-fill-region' has been deactivated for - a long time. Reflect that in the documentation. - - * tex.el (TeX-token-char): Doc fix. - (TeX-insert-braces): Do something more sensible if region is - activated. - -2005-11-17 Ralf Angeli - - * tex-buf.el (TeX-parse-error): Do not match empty strings. - -2005-11-12 Ralf Angeli - - * tex-buf.el (TeX-toggle-debug-boxes): Move to tex.el. - (TeX-LaTeX-sentinel-has-warnings) - (TeX-LaTeX-sentinel-has-bad-boxes): New functions. - (TeX-LaTeX-sentinel): Check for warnings and bad boxes and inform - the user is the respective options are non-nil. - (TeX-parse-error): Conditionalize checking for warnings and bad - boxes. Find warnings without line numbers as well. - (TeX-warning): Doc fix (no need to return nil anymore). Support - warnings without line numbers. - - * tex.el (TeX-toggle-debug-boxes): Do not autoload. - (TeX-debug-bad-boxes): Doc fix. - (TeX-debug-warnings): New variable. - (TeX-toggle-debug-bad-boxes): Moved here from tex-buf.el. - (TeX-toggle-debug-warnings): New function. - (TeX-mode-map): Define new key bindings for - `TeX-toggle-debug-bad-boxes' and `TeX-toggle-debug-warnings'. - (TeX-mode-specific-command-menu-entries): Add or change menu - entries for `TeX-toggle-debug-bad-boxes' and - `TeX-toggle-debug-warnings'. - - * doc/auctex.texi (Debugging): Document debugging support for - warnings and changes of debugging bad boxes. - - * doc/changes.texi: Advertise debugging support for warnings and - changes of debugging bad boxes. - - * font-latex.el (font-latex-set-syntactic-keywords): Doc fix. - Check if LaTeX-specific variables are bound which may be unbound - if font-latex is being used in ConTeXt mode. - -2005-11-07 Ralf Angeli - - * tex.el (TeX-insert-backslash): Use regular function call instead - of `funcall'. - -2005-11-05 Ralf Angeli - - * tex.el (TeX-electric-sub-and-superscript): New variable. - (TeX-insert-sub-or-superscript): New function. - (TeX-mode-map): Use `TeX-insert-sub-or-superscript' for `_' and - `^' keys. - (TeX-insert-backslash): New function. - (TeX-mode-map): Use `TeX-insert-backslash' for `\'. - (TeX-electric-escape): Adapt doc string. - - * doc/auctex.texi (Mathematics): Document - `TeX-electric-sub-and-superscript'. - - * doc/changes.texi: Advertise `TeX-electric-sub-and-superscript'. - -2005-10-31 Masayuki Ataka - - * latex.el (LaTeX-fill-move-to-break-point): Do not break lines in - the Japanese Macros. Suggested by Ikumi Keita . - -2005-10-30 Ralf Angeli - - * doc/install.texi (Prerequisites): Update information about - development version of Emacs for Debian. - Update information about development version of Emacs for - Mac OS X and Windows. - -2005-10-29 Ralf Angeli - - * style/frenchb.el, style/francais.el: Clean up. - -2005-10-28 Ralf Angeli - - * tex.el (TeX-quote-language-alist, TeX-insert-quote): Support - functions as opening and closing quotation marks. - - * style/frenchb.el: New file. - - * style/francais.el: New file. - - * doc/auctex.texi (European): Document support of French. - - * doc/changes.texi: Advertise support of French. - - * Makefile.in (STYLESRC): Add style/frenchb.el and - style/francais.el. - -2005-10-24 Ralf Angeli - - * doc/install.texi (Configure): Document --with-kpathseasep. - - * doc/auctex.texi (Commands): Add index entry for PDF mode. - - * configure.ac (preview_enabled): Export `TEX' in unquoted form. - -2005-10-23 David Kastrup - - * style/babel.el (LaTeX-babel-package-options): Only use 2 - argument form of defvaralias in order not to make XEmacs barf. - -2005-10-23 Arne Jørgensen - - * style/amstext.el (LaTeX-amstext-package-option): New variable. - - * style/amstex.el (LaTeX-amstex-package-options): New variable. - - * style/amsopn.el (LaTeX-amsopn-package-options): New variable. - - * style/amsmath.el (LaTeX-amsmath-package-options): New variable. - - * style/amsbsy.el (LaTeX-amsbsy-package-options): New variable. - - * style/fancyref.el (LaTeX-fancyref-package-options): New - variable. - - * style/harvard.el: Updated GPL to version 2. Fixed FSF address. - (LaTeX-harvard-package-options): New variable. - - * style/index.el (LaTeX-index-package-options): New variable. - - * style/listings.el (LaTeX-listings-package-options): New - variable. - - * style/makeidx.el (LaTeX-makeidx-package-options): New variable. - - * style/mdwlist.el (LaTeX-mdwlist-package-options): New variable. - - * style/multind.el (LaTeX-multind-package-options): New variable. - - * style/natbib.el (LaTeX-natbib-package-options): New variable. - - * style/nicefrac.el (LaTeX-nicefrac-package-options): New - variable. - - * style/paralist.el (LaTeX-paralist-package-options): New - variable. - - * style/units.el (LaTeX-units-package-options): New variable. - - * style/scrpage2.el (LaTeX-scrpage2-package-options): New - variable. - -2005-10-21 Reiner Steib - - * toolbar-x.el (toolbarx-find-image): Fix previous commit. - -2005-10-21 Ralf Angeli - - * tex-mik.el (tex-site): Require 'tex-site no more. - - * doc/changes.texi: Document removal of 'tex-site requirement from - `tex-mik.el'. - - * configure.ac (packagedir): Quote value of `infodir'. - -2005-10-20 David Kastrup - - * toolbar-x.el: Revert mostly to 2005-05-02 state, but add a - fallback to find-image. - -2005-10-20 Reiner Steib - - * toolbar-x.el (toolbarx-find-image): Use image-search-load-path - and image-load-path when available. - (toolbarx-find-image): Revert previous fix. Instead, rely on - find-image whenever possible and don't abuse locate-library. - -2005-10-20 Ralf Angeli - - * font-latex.el (font-latex-make-user-keywords): Append string - face in order to make string fontification of ``foo $bar$ baz'' - constructs work. - -2005-10-19 Arne Jørgensen - - * latex.el (LaTeX-arg-usepackage): If - `LaTeX--package-options' is bound and nil don't ask for - package options. - - * style/verbatim.el (LaTeX-verbatim-package-options): New - variable. - - * style/varioref.el (LaTeX-varioref-package-options): New - variable. - - * style/url.el (LaTeX-url-package-options): New variable. - - * style/subfigure.el (LaTeX-subfigure-package-options): New - variable. - - * style/inputenc.el (LaTeX-arg-inputenc-inputenc): Doc fix. - (LaTeX-inputenc-package-options): Doc fix. - - * style/dk-bib.el (LaTeX-dk-bib-package-options): Doc fix. - - * style/captcont.el (LaTeX-captcont-package-options): New - variable. - - * style/booktabs.el (LaTeX-booktabs-package-options): New - variable. - - * style/babel.el: Add doc string to `LaTeX-babel-package-options' - and use `defvar' instead of `setq'. - - * style/alltt.el (LaTeX-alltt-package-options): New variable. - -2005-10-13 Reiner Steib - - * style/dk-bib.el, style/inputenc.el: Add coding cookie. Delete - trailing whitespace. Reindent. - -2005-10-13 Ralf Angeli - - * style/dk-bib.el (LaTeX-dk-bib-package-options): Define only - once. - -2005-10-13 Jan-Ake Larsson - - * tex-buf.el: Change defcustom group from TeX-commands to TeX-command - -2005-10-12 Arne Jørgensen - - * tex.el: Provide a `TeX-completing-read-multiple' either by - defalias'ing `completing-read-multiple' or defining a wrapper - around `multi-prompt'. - - * latex.el (LaTeX-arg-usepackage): New function. Asks about what - package to use, loads the AUCTeX style file, and asks about - package options (possibly based on definitions in the AUCTeX - style file). - (LaTeX-common-initialization): Use it. - - * style/babel.el: Define `LaTeX-babel-package-options' to be a - list of languages/options for the babel package. - - * style/inputenc.el: New file. - - * style/dk-bib.el: New file. - - * Makefile.in (STYLESRC): Added style/inputenc.el and - style/dk-bib.el. - -2005-10-10 Arne Jørgensen - - * latex.el (LaTeX-auto-regexp-list): Removed spurious characters - in variable definition. - -2005-10-10 Reiner Steib - - * doc/auctex.texi (top): Index "tool bar" and "toolbar". Use - "tool bar" in the text. - - * doc/changes.texi: Use "tool bar". - - * auctex.spec: Install auctex.el and preview-latex.el for SuSE - too. Don't use extraconfig. - -2005-10-07 Reiner Steib - - * Makefile.in (tar-ball): Re-add fixed spec file. - -2005-10-07 Masayuki Ataka - - * tex.el (TeX-token-char): New variable. - (plain-TeX-auto-regexp-list): Use it. - Suggested by Ikumi Keita . - - * latex.el (LaTeX-auto-regexp-list, BibTeX-auto-regexp-list): Use - it. - - * tex-jp.el (LaTeX-auto-regexp-list, plain-TeX-auto-regexp-list) - (BibTeX-auto-regexp-list): Removed. - -2005-10-06 Reiner Steib - - * auctex.spec: Fixes for Fedora. Create site-start.d and add - files. - -2005-10-02 Ralf Angeli - - * tex-buf.el (TeX-BibTeX-sentinel): Shorten message in case of - errors. - - * Makefile.in (install-lisp): Use MULESRC instead of MULEELC - because a `c' is already being appended by the installation code. - - * tex-jp.el (japanese-TeX-command-list): Remove obsolete - `TeX-run-LaTeX' option. - - * tex.el (TeX-current-macro): New function. - - * latex.el (LaTeX-verbatim-macros-with-delims) - (LaTeX-verbatim-macros-with-delims-local) - (LaTeX-verbatim-macros-with-braces) - (LaTeX-verbatim-macros-with-braces-local) - (LaTeX-verbatim-environments, LaTeX-verbatim-environments-local): - New variables. - (LaTeX-verbatim-macro-boundaries, LaTeX-current-verbatim-macro) - (LaTeX-verbatim-p, LaTeX-search-forward-comment-start): New - functions. - (LaTeX-verbatim-macros): Remove. - (LaTeX-fill-region-as-para-do): Simplify. - (LaTeX-fill-move-to-break-point): Use - `LaTeX-verbatim-macros-with-delims'. - (LaTeX-fill-paragraph, LaTeX-fill-code-comment): Handle comment - starters in verbatim constructs correctly. - - * font-latex.el (font-latex-verbatim-environments) - (font-latex-verbatim-environments-local) - (font-latex-verb-like-commands) - (font-latex-verb-like-commands-local) - (font-latex-verbatim-macros, font-latex-verbatim-macros-local): - Remove. - (font-latex-set-syntactic-keywords): Use new `LaTeX-verbatim-*' - instead of `font-latex-verb*' variables. - - * doc/auctex.texi (Font Locking): Document change of - verbatim-related variables. - - * doc/changes.texi: Document change of verbatim-related variables. - - * style/alltt.el ("alltt"): Use new variables for verbatim - constructs. - - * style/listings.el ("listings"): Use new variables for verbatim - constructs. - - * style/url.el ("url"): Use new variables for verbatim constructs. - - * latex.el (LaTeX-insert-environment): Mostly rewritten. Improve - handling of macrocode environments. - -2005-10-02 Christian Schlauer - - * tex-buf.el (TeX-BibTeX-sentinel): Check whether BibTeX reports - any warnings or errors. - - * doc/changes.texi: Mention it. - -2005-10-02 Ralf Angeli - - * texmathp.el (texmathp-match-environment): Make aware of - comments. - -2005-09-29 Masayuki Ataka - - * doc/install.texi (Customizing): Removed "Contributed files" - section. - Suggested by Ikumi Keita . - -2005-09-29 Ikumi Keita - - * texmathp.el (texmathp-tex-commands-default): Remove "xxalignat*" - and add "boxed". - -2005-09-27 Reiner Steib - - * auctex.spec: Add files in %{_datadir}/emacs/site-lisp. - Suggested by Jan-Ake Larsson. Added startfiles. Exclude - %{_infodir}/dir. - -2005-09-27 Ralf Angeli - - * configure.ac: Document option for specifying AUCTeX startfile as - --with-auctexstartfile, not --with-auctex-startfile which does not - work. Note that changing the internal name from `auctexstartfile' - to `auctex-startfile' is not an option because of the `-' in the - name which gives the shell headaches. - - * auctex.spec: Adapt to --with-auctexstartfile and - --with-preview-startfile. - - * doc/install.texi (Configure): Document change from - --with-auctex-startfile to --with-auctex-startfile and - --with-preview-startfile to --with-previewstartfile. - -2005-09-26 Reiner Steib - - * auctex.spec: Bump version number. Remove install-contrib, use - install-docs. Don't install preview/* because these are not - generated. - -2005-09-25 Ralf Angeli - - * Makefile.in (tar-ball): Don't create WWW directory and don't - copy HTML files. - (www-doc): New target. - -2005-09-25 David Kastrup - - * Version 11.81 released. - -2005-09-25 Ralf Angeli - - * RELEASE, configure.ac, font-latex.el, doc/auctex.texi, - doc/changes.texi, doc/preview-latex.texi, doc preview-readme.texi, - doc/tex-ref.texi, doc/todo.texi: Bump version number. - - * Makefile.in (DISTCLEANFILES): Add tex-site.el.out. - -2005-09-24 Ralf Angeli - - * Makefile.in (tar-ball): Remove dysfunctional spec file from - distribution. - (full-release): Disable RPM creation. - - * doc/auctex.texi: Bump version number. - - * configure.ac: Bump version number. - -2005-09-24 David Kastrup - - * doc/install.texi (Advice for package providers): Suggest - "anytex" instead of "notex" for without-texmf compilations. - -2005-09-23 Reiner Steib - - * tex-site.el.in (TeX-modes-set): Add custom group. - -2005-09-19 Ralf Angeli - - * tex.el (TeX-auto-parse-length, TeX-auto-x-parse-length) - (TeX-auto-x-regexp-list): Doc fix. - -2005-09-17 Ralf Angeli - - * texmathp.el (texmathp-tex-commands-default): Add "minipage" as - `env-off' and "\framebox" as `arg-off'. - -2005-09-13 Ralf Angeli - - * RELEASE: Update for upcoming release. - - * doc/changes.texi: Mention `font-latex-slide-title-face' and - `font-latex-match-slide-title-keywords'. - - * doc/auctex.texi (Font Locking): Document - `font-latex-slide-title-face' and - `font-latex-match-slide-title-keywords'. - -2005-09-10 Ralf Angeli - - * font-latex.el (font-latex-make-match-defun): Fontify only if - `font-latex-match-*-keywords' and - `font-latex-match-*-keywords-local' are non-empty. - (font-latex-make-match-defun): Revert. - (font-latex-make-built-in-keywords): Do not set - `font-latex-match-*' if there are no keywords. (Nicer solution - than the original change in `font-latex-make-match-defun'.) - -2005-09-08 Ralf Angeli - - * font-latex.el (font-latex-built-in-keyword-classes): New - `slide-title' class. - (font-latex-slide-title-face): New face. - Specify :size for XEmacs. - - * style/beamer.el ("beamer"): Fontify \frametitle with - `font-latex-slide-title-face'. - -2005-09-05 Ralf Angeli - - * tex-buf.el (TeX-command): Doc fix. - -2005-09-02 Ralf Angeli - - * texmathp.el (texmathp-tex-commands-default): Add "\textrm" as - `arg-off'. - -2005-08-30 Ralf Angeli - - * tex.el (TeX-font-replace-macro): Compute syntax table. - -2005-08-26 Ralf Angeli - - * latex.el (LaTeX-common-initialization): Remove redundant call to - `make-local-variable' for `outline-heading-alist'. Set - `outline-heading-alist' only if it is already defined. - -2005-08-26 Matthieu Moy (tiny change) - - * latex.el (LaTeX-common-initialization): Set - `outline-heading-alist'. - -2005-08-24 Ralf Angeli - - * latex.el (LaTeX-mark-section): Now marks subsections as well. - Former behavior is available via prefix argument. - - * doc/changes.texi: Mention change of `LaTeX-mark-section'. - -2005-08-23 Ralf Angeli - - * font-latex.el (font-latex-script): Return face symbols, not - names of non-existent variables. - - * tex.el (TeX-font-replace-macro): Do not use `TeX-find-macro-end' - for it may look too far in cases like "\emph{foo}{}". Use - `forward-sexp' with a stripped syntax table instead. - -2005-08-19 Ralf Angeli - - * doc/wininstall.texi: New "In a Nutshell" section. - -2005-08-18 Ralf Angeli - - * configure.ac: Quotify `packagelispdir' and `packagedatadir'. - (preview_enabled): Export unquoted variables. - Declare/initialize and export variables separately. - - * Makefile.in (DESCEND): Quote $$OLDPWD. - -2005-08-17 Ralf Angeli - - * doc/auctex.texi (Adding Macros): Remove superfluous entry for - `TeX-arg-file' and correct entry for `TeX-arg-input-file'. - - * latex.el (TeX-arg-input-file): Doc fix. - - * tex.el (TeX-command-list): Remove `TeX-run-LaTeX'. Add - `TeX-run-ispell-on-document' in order to prevent mismatch in - customization buffer. - -2005-08-05 David Kastrup - - * font-latex.el (font-latex-doctex-preprocessor-face): Remove - `list' from already quoted list. - -2005-08-02 Ralf Angeli - - * tex-fold.el (TeX-fold-region): In case of single-char non-letter - macros there does not have to be checked for a partial match. - This allows for folding of stuff like \,. - -2005-08-01 Berend de Boer - - * context-en.el (ConTeXt-setup-list-en): typo fixed. - -2005-07-21 Ralf Angeli - - * font-latex.el (font-latex-set-syntactic-keywords): Set and - update `font-latex-doctex-syntactic-keywords' here. - (font-latex-doctex-syntactic-keywords): Default to nil. - - * doc/auctex.texi (Japanese): Remove references to contrib make - targets. Minor clean-ups. - - * aclocal.m4 (library): Replace COMPILE_MULE and CONTRIB_MULEELC - with MULESRC and MULEELC. - - * Makefile.in (CONTRIB, CONTRIBELC, CONTRIB_MULE, COMPILE_MULE) - (CONTRIB_MULEELC): Remove. - (MULESRC, MULEELC): New variables. - (AUCSRC): Add bib-cite.el and tex-fptex.el. - (CLEANFILES): Remove CONTRIBELC and CONTRIB_MULEELC. Use MULEELC - instead. - (.PHONY): Remove contrib, install-contrib and install-contrib-el - targets. - (lisp): Depend on STYLESRC and MULESRC. Compile MULESRC as well. - (auto-loads.el): Use MULESRC. - (contrib, install-contrib-el, install-contrib): Remove. - (install-el): Install MULESRC. - (install-lisp): Install MULEELC. - - * style/csquotes.el: Bring up to par with csquotes 3.0. - (LaTeX-csquotes-insert-environment): New function. - -2005-07-15 David Kastrup - - * doc/preview-todo.texi: Mention that preview.dtx is not a - showpiece for AUCTeX. - -2005-07-15 Ralf Angeli - - * tex.el (TeX-run-style-hooks): Adjust `default-directory' to - match the directory of the style. - -2005-07-14 David Kastrup - - * doc/install.texi (Configure): explain about --without-packagedir. - (Advice for package providers): Same here. - - * aclocal.m4 (EMACS_PATH_LISPDIR): Allow packagedir=no with XEmacs. - - * configure.ac: protect against packagedir starting with `-' - -2005-07-12 Ralf Angeli - - * font-latex.el (font-latex-match-math-envII): Match environment - begin and end with whitespace between macro and argument as well. - - * doc/install.texi (Configure): Add `file' macro. - - * texmathp.el (texmathp-match-environment): Match environment - begin and end with whitespace between macro and argument as well. - -2005-07-12 David Kastrup - - * doc/wininstall.texi: - - * doc/install.texi (Configure): Explain prefix a bit more. - - * doc/Makefile.in (install-man): include tex-ref.tex. - -2005-07-08 Ralf Angeli - - * tex.el (TeX-insert-quote): Do not inhibit special quote - insertion in docTeX documentation parts. - - * font-latex.el (font-latex-match-command-with-arguments) - (font-latex-match-command-in-braces): Remove call to - `font-latex-commented-outp'. - (font-latex-match-quotation): Do not consider matches in comments - or verbatim-like constructs. Fix typo. - -2005-07-07 Ralf Angeli - - * latex.el (LaTeX-fill-move-to-break-point): Make non-MULE - XEmacsen happy. - (LaTeX-fill-paragraph): Don't treat trailing comment starters as - code comments. - - * font-latex.el (font-latex-match-quotation): Always use multibyte - strings for comparison. - - * doc/auctex.texi (top): Make the summary notes appear as - "Executive Summary" in printed output. - - * doc/intro.texi: Main heading in rawtext case should not be - numbered. Main heading in printed output has to be chapter, not - section, in order to fit into the rest of the sectioning - hierarchy. - (Introduction): Add two intermediate headings in order to make the - structure clearer. - - * doc/.cvsignore: Add auto directory. - -2005-07-06 David Kastrup - - * doc/tex-ref.tex: Rearrange and add information for preview-latex. - -2005-07-05 David Kastrup - - * doc/preview-latex.texi (Simple customization): Document new - option `preview-preserve-counters'. - - * doc/auctex.texi (top): Mention RefTeX, `LaTeX-install-toolbar' - and preview-latex. - -2005-07-01 Ralf Angeli - - * tex.el (TeX-submit-bug-report): Mention FAQ section. - - * doc/changes.texi: Advertise inclusion of preview-latex and - overhaul of installation procedures. - - * doc/install.texi (Advice for package providers): Refer to - preview-latex.el file. - - * doc/quickstart.texi (Quick Start): Use (load "auctex.el" nil t - t) instead of (require 'tex-site). - - * doc/faq.texi: Use (load "auctex.el" nil t t) instead of (require - 'tex-site). - - * doc/intro.texi (Introduction): Use (load "auctex.el" nil t t) - instead of (require 'tex-site). - -2005-06-30 Ralf Angeli - - * doc/auctex.texi (Folding): Do not quote `lambda' function. - -2005-06-29 Ralf Angeli - - * font-latex.el (font-latex-quotes): Get rid of :set function and - move most of its content to `font-latex-match-quotation'. - (font-latex-quotes-control): New variable. Initialize with nil. - (font-latex-match-quotation): Use it. - The whole changeset lets quote matching recognize automatically - when the value of `font-latex-quotes' changed while making sure - that the regexp only has to be rebuilt when a change actually - occured. - - * doc/todo.texi (Mid-term Goals): Update text about integration of - preview-latex. - - * doc/auctex.texi (Floats): Clarify use of - `LaTeX-top-caption-list'. - (Display, Internationalization): Make node and heading clearer. - (European): Describe insertion of multiple consecutive hyphens. - -2005-06-24 David Kastrup - - * RELEASE: Minor change. - - * configure.ac: Move checks and export for PERL here (needed for - doc of preview-latex). - (preview_enabled): Don't export Info-related variables, as they - are not needed in preview. - - * Makefile.in (AUCTEXVERSION): import. - (info, dvi): No subshell needed. - (auctex.el): Depend on config.status - (install-metadata): pass upstream version into prv-install.el - -2005-06-21 Ralf Angeli - - * tex-info.el (TeX-texinfo-mode): Use `TeX-run-mode-hooks'. - - * latex.el (TeX-latex-mode): Use `TeX-run-mode-hooks'. - - * context.el (ConTeXt-mode-common-initialization): Use - `TeX-run-mode-hooks'. - - * configure.ac: Make info about configuration clearer (in - connection with the message for preview-latex). - - * tex.el (TeX-master-file): `TeX-default-extension' is a variable, - not a function. - (TeX-run-mode-hooks): New function. - (TeX-plain-tex-mode, ams-tex-mode): Use it. - -2005-06-21 David Kastrup - - * Makefile.in (xemacs-package): reorder args. - - * configure.ac: disable INSTALL_INFO for XEmacs package. - - * doc/Makefile.in (install-man): Use $$i instead of $i. - -2005-06-20 David Kastrup - - * doc/install.texi (Advice for package providers): Propose package - structure. - - * doc/Makefile.in (install-man): Install sources for texinfo - files. - (.PHONY): Add install-man. - - * Makefile.in (.PHONY): Add install-man and xemacs-package - (install-man): Just descend into doc directory. - (xemacs-package): Try building some XEmacs package. - - * autogen.sh: Don't run distclean, that seems unexpected. - - * RELEASE: Further fold in stuff from preview/RELEASE which is now - deleted. - -2005-06-20 Ralf Angeli - - * font-latex.el (font-latex-superscript-face) - (font-latex-subscript-face): Add to correct customization group. - (font-latex-match-command-with-arguments) - (font-latex-match-command-in-braces, font-latex-match-math-env): - Don't set a dummy match. Remove unnecessary throw..catch clauses. - -2005-06-18 David Kastrup - - * RELEASE: Well, the merge with preview-latex is no longer - "planned". - -2005-06-16 Ralf Angeli - - * doc/preview-faq.texi (Requirements): Denastify. - - * tex.el (TeX-master-file): Don't override existing master with - `TeX-transient-master'. - - * tex-style.el (LaTeX-includegraphics-read-file): Doc fix. - -2005-06-15 Ralf Angeli - - * doc/install.texi (Prerequisites): Denastify. - - * doc/auctex.texi (Font Locking): Fix typo. - - * configure.ac: Use correct variable for --disable-preview switch. - -2005-06-15 Masayuki Ataka - - * Makefile.in (auto-loads.el): Auto-load COMPILE_MULE, too. - -2005-06-14 Ralf Angeli - - * RELEASE: Update stuff about fixed bugs and new features. - -2005-06-14 David Kastrup - - * doc/wininstall.texi: Spell out file names more explicitly. - Remove any hint of a version that might lead Windows users to - assume this documentation is for some reason more outdated than - year-old stuff they find via Google. - - * Makefile.in (install-docs): Make exit status of test bad-shell - safe. - -2005-06-14 Ralf Angeli - - * Makefile.in (all): Do not depend on `docs' target. - (.PHONY): Remove `docs'. Add `info' and `dvi'. - (docs): Remove. - (info, dvi): New targets. - (tar-ball): Make sure `dist' stuff is up-to-date. - Revert, as it is superfluous. - - * doc/Makefile.in (dist): Correct file name for - preview-latex.info. - (info, dvi): New targets. - (.PHONY): Add them and remove `auctex' and `preview'. - (auctex, preview): Remove. - -2005-06-14 David Kastrup - - * RELEASE: Adapt RELEASE notes to include preview-latex info. - - * README.CVS: Adapt to reality. - - * doc/Makefile.in (all): Same as dist. - (dist): Just create DISTTEXTS and info files. - (extradist): Additional stuff for ftp site. - (disttexts): Remove target. - (clean): Don't remove info files. - (maintainer-clean): Remove info files. - - * autogen.sh: Add error messages, run autoconf in preview - subdirectory. Heed MAKE variable if set. - - * Makefile.in (CVSFILES): Define files not to use in tarball. - (tar-ball): Remove them. - (tar-ball): Make extradist for additional doc files on ftp. - -2005-06-12 Ralf Angeli - - * tex-buf.el (TeX-ispell-document): Cater for the case where the - master file is located in a different directory. - (TeX-run-ispell-on-document, TeX-ispell-document): Doc fix. - -2005-06-11 Ralf Angeli - - * tex.el (TeX-master-file): Check `TeX-transient-master' not only - in the shared case. - - * tex-buf.el (TeX-region-create): Let-bind `TeX-transient-master'. - -2005-06-10 Ralf Angeli - - * doc/auctex.texi (Parsing Files): Fix display of reference. - Get rid of references to \documentstyle. - (Simple Style, Adding Macros, Adding Environments) - (Hacking the Parser): Clean up code examples. - - * tex.el (TeX-master-file-ask): Get rid of "" string as - default for `read-file-name'. Fixes unresponsiveness of Emacs on - Windows and fallback to minibuffer if file is opened via menu and - prevents file history from being cluttered. Use relative file - name for master file. - (TeX-master-file): Get rid of "this file" string as default for - `read-file-name'. - -2005-06-09 Ralf Angeli - - * tex-fold.el (TeX-fold-ellipsis): New variable. - (TeX-fold-hide-item): Use it. - - * Makefile.in (DESCEND): Make MSYS happy if $(subdirs) is null, - e.g. when --disable-preview is used. - Make the change more safe with regard to the exit code. - -2005-06-09 David Kastrup - - * doc/wininstall.texi: Change line endings blurb. Write drive: - everywhere in the example strings. - - * doc/preview-readme.texi (Introduction): Some cosmetic changes to - account for the merge. - - * mkinstalldirs: - - * install-sh: Replace `#/bin/sh' with `:' as this should be more - portable when called from a Bourne shell (which is what the - Makefiles do). - -2005-06-08 David Kastrup - - * doc/preview-dtxdoc.pl: Replicate possible CR line endings - faithfully, and don't use multiline strings. - -2005-06-08 Ralf Angeli - - * doc/.cvsignore: Ignore all *.info, *.info-*, and *.pgs files. - - * Makefile.in (preview_enabled): New variable. - (all): Depend on `docs' target. - (.PHONY): Add `docs' target. - (docs): New target. - (install): Depend on `install-docs' instead of `install-info'. - (install-info): Remove. - (install-docs): New target. - - * autogen.sh: Generate preview-latex docs as well. - - * configure.ac: Substitute preview_enabled variable in output - files. - - * doc/.cvsignore: Add relevant preview-latex files. - - * doc/Makefile.in (TEXIFILES): Rename to AUCTEXTEXIFILES. - (PERL, PREVIEWTEXIFILES): New variables. - (all): Now depends on `auctex' and `preview' targets. Move - AUCTeX-specific targets from original to `auctex'. - (install): Now depends on `install-auctex' and `install-preview' - targets. Move AUCTeX-specific targets and content from original - to `install-auctex'. - (.PHONY): Add `auctex', `preview', `install-auctex', and - `install-preview'. - (auctex, install-auctex, preview, install-preview): New targets. - (auctex.dvi, auctex.pdf, auctex.info): Depend on - $(AUCTEXTEXIFILES) instead of $(TEXIFILES). - (preview-latex/index.html, html-docs, preview-dtxdoc.texi) - (preview-latex.dvi, preview-latex.ps, preview-latex.pdf) - (preview-latex.info, ../PROBLEMS): New targets (from - preview/doc/Makefile.in). - (../README, ../TODO, ../FAQ): Create output combined from - respective AUCTeX and preview-latex files. - (clean, maintainer-clean): Cater for preview-latex files. - - * doc/todo.texi (Development): More specific heading for plain - text output. - - * doc/preview-todo.texi: Move here from preview/doc/todo.texi. - - * doc/preview-readme.texi: Move here from preview/doc/readme.texi. - - * doc/preview-problems.texi: Move here from - preview/doc/problems.texi. - - * doc/preview-faq.texi: Moved here from preview/doc/faq.texi. - - * doc/copying.texi, doc/preview-dtxdoc.pl, doc/preview-latex.texi: - Moved here from preview/doc/. - -2005-06-07 David Kastrup - - * tex.el (TeX-regexp-group-count): New function. - (TeX-auto-parse-region): Rewrite to use hashes and to save overuse - of `looking-at'. We really should keep the relevant information - complete in hashes instead of moving them forward and back between - hashes and lists, but at least this change removes most of the - really evil quadratic behavior while keeping the original API. - Yet. - -2005-06-07 Ralf Angeli - - * font-latex.el (font-latex-fontify-sectioning): Doc fix. - - * doc/auctex.texi (Font Locking): Document the nature of the - `color' option for `font-latex-fontify-sectioning'. - -2005-06-06 David Kastrup - - * configure.ac: Remove call of MAKEINFO_CHECK_MACROS: we expect a - recent enough makeinfo version if you want to bootstrap, anyway. - -2005-06-06 Ralf Angeli - - * tex-bar.el (TeX-bar-LaTeX-button-alist) - (menu-strings-buttons-alist): help-echo functions are called with - arguments. - -2005-06-06 David Kastrup - - * doc/Makefile.in (TEXINFOINCLUDES): Remove. - (MAKEINFO_MACROS): Remove. - - * tex-buf.el (TeX-format-filter): Don't let match-data generate - markers. This is a terrible performance hog! - (TeX-format-filter): Actually, we don't need to save any - match-data inside of a filter function with current versions of - Emacs and XEmacs. - -2005-06-05 Ralf Angeli - - * style/scrbase.el, style/scrbook.el, style/scrreprt.el: Use - `sectioning' instead of `title' for sectioning fontification. - - * doc/changes.texi: Mention change of `title' to `sectioning' for - keyword variables. - - * font-latex.el (font-latex-fontify-sectioning) - (font-latex-built-in-keyword-classes) - (font-latex-keyword-matcher): Use `sectioning' instead of `title'. - (font-latex-deactivated-keyword-classes): New variable. - Don't do extra quoting. - (font-latex-make-built-in-keywords): Remove unnecessary `let'. - Check `font-latex-deactivated-keyword-classes' in generated - `font-latex-match-*-make' functions. - - * tex.el (TeX-quote-language-alist): Do not use `alist' widget - because XEmacs 21.4 does not provide it. Do not use a cons cell - for opening and closing quotation marks in order to simplify - structure. - (TeX-quote-language): Describe structure as in - `TeX-quote-language-alist'. - (TeX-insert-quote): Adapt to new structure of `TeX-quote-language' - and `TeX-quote-language-alist'. - - * doc/auctex.texi (European): Describe new structure of - `TeX-quote-language-alist'. - (Font Locking): Use `sectioning' instead of `title'. - Describe deactivation of built-in keyword classes. - - * style/csquotes.el, style/czech.el, style/danish.el, - style/german.el, style/italian.el, style/ngerman.el, - style/slovak.el, style/swedish.el: Reflect new structure of - `TeX-quote-language'. - -2005-06-04 David Kastrup - - * doc/Makefile.in (TEXINFOINCLUDES): macros.texi has moved here - from ../preview/doc - (../INSTALL, ../INSTALL.windows, ../README, ../CHANGES, ../TODO) - (../FAQ): Change dependencies accordingly. - - * configure.ac: Rearrange checks for MAKEINFO. - Export more stuff into preview's configure. Maybe this is better - done with use of caches? - - * autogen.sh: Don't look in preview subdirectory. - - * Makefile.in (configure): Depend on local aclocal.m4 - -2005-06-03 David Kastrup - - * doc/Makefile.in (TEXINFOINCLUDES, TEXIFILES, ../INSTALL) - (../INSTALL.windows, ../README, ../CHANGES, ../TODO, ../FAQ): Move - ../preview/doc/macros.texi to here again. - -2005-06-02 Ralf Angeli - - * tex.el (VirTeX-common-initialization): Explicitely make - `find-file-hooks' buffer-local in XEmacs 21.4 which fails to do - this via `add-hook'. - -2005-06-01 Ralf Angeli - - * latex.el (LaTeX-backward-paragraph): Use catch..throw instead of - an indicator variable. Don't refer to a saved match data. - Check for `TeX-esc', not specific char. - - * style/babel.el ("babel"): Disable font locking of macros not - handled correctly. - -2005-05-30 Ralf Angeli - - * style/babel.el: New file. - - * Makefile.in: Add style/babel.el. - - * doc/changes.texi: Mention babel support. - -2005-05-28 Ralf Angeli - - * tex-buf.el (TeX-next-error): Call `next-error' as fallback. - (TeX-previous-error): New function. - - * tex.el (TeX-mode-map): Remap bindings of `next-error' and - `previous-error' to `TeX-next-error' and `TeX-previous-error' - respectively. - -2005-05-24 Ralf Angeli - - * tex.el (TeX-command-list): Remove chktex comment. - - * doc/auctex.texi (Checking): A user should not (have to) edit - tex.el to switch from lacheck to chktex. - - * font-latex.el (font-latex-make-match-defun) - (font-latex-make-built-in-keywords): Do not byte-compile generated - functions here but at the end of font-latex.el. Prevents - byte-compiler warnings due to possibly undefined functions. - -2005-05-24 David Kastrup - - * configure.ac: Recurse into preview _before_ starting any - AC_SHELL_QUOTIFY business to avoid double quoting. - - * doc/tex-ref.tex (\title{RefTeX (long)}) - (\title{RefTeX (short)}): New columns. One will have to go. - -2005-05-22 David Kastrup - - * tex.el (TeX-PDF-mode): Use the standard minor mode function - instead of redefining it. - (TeX-PDF-mode-parsed): New function replacing the previous extra - functionality in `TeX-PDF-mode'. - (TeX-PDF-mode-on, TeX-PDF-mode-off): Warn in docstring. Use - `TeX-PDF-mode-parsed'. - -2005-05-21 Ralf Angeli - - * doc/install.texi, doc/wininstall.texi: Small corrections. - - * tex-bar.el (TeX-bar-LaTeX-button-alist): Reenable mode-specific - images for View button. - (LaTeX-install-toolbar): Add `toolbarx-refresh' to - `TeX-PDF-mode-hook'. - - * tex.el (TeX-PDF-mode): Run `TeX-PDF-mode-hook'. - -2005-05-21 David Kastrup - - * autogen.sh: Remove argument to preview/autogen.sh - - * doc/install.texi: Integrate the installation instructions for - preview-latex. - -2005-05-20 David Kastrup - - * doc/tex-ref.tex (section{Greek Letters}): Add \Xi. - -2005-05-18 Ikumi Keita - - * style/amsmath.el (LaTeX-label-alist): Add "multline" environment. - - * Makefile.in: - * configure.ac: - * preview/Makefile.in: Change "==" to "=" in the argument of - "test" for Bourne shell compatibility. - -2005-05-19 David Kastrup - - * doc/wininstall.texi: Rearrange to make suitable for standalone - installation including preview-latex. Adapt to a few - changes (like tex-fptex and tex-mik not being in load-path by - default). - -2005-05-19 Ralf Angeli - - * tex-site.el.in (tex-site-unload-hook, TeX-modes): Do not use - `dolist'. Prevents console pop-ups with XEmacsen on Windows. - - * latex.el (LaTeX-fill-move-to-break-point): Check for - `charset-after' to make non-MULE XEmacsen happy. Some - reformatting. - -2005-05-18 David Kastrup - - * latex.el (LaTeX-math-default): Add Xi (reported by Uli - Fahrenberg). - -2005-05-17 David Kastrup - - * Makefile.in (EXTRAFILES): remove. No longer needed. - (auto-loads.el): Undo previous change. Properly group statements. - (install-el): Rewrite condition for some non-Posix shells. - (install-metadata): Rewrite condition for non-Posix. - (tar-ball): Change owner and group to root. This is not portable, - but will be needed only by the maintainers, anyway. - (auto-loads.el): ignore errors also for braindead make. - (install-metadata): Same here. - (clean): Burp if cd doc fails. - (distclean): Same here. - (tar-ball): rewrite for braindead shells. - (tar-ball): make sure doc exists. Why do I bother, actually, the - tarball target is not for public consumption, anyway. - -2005-05-17 Ralf Angeli - - * Makefile.in (auto-loads.el): Don't stop on non-zero exit code. - -2005-05-16 Ralf Angeli - - * tex.el (TeX-transient-master): New variable. - (TeX-master-file): Use it. - - * tex-buf.el (TeX-command-sentinel): Bind `TeX-transient-master'. - -2005-05-14 Ralf Angeli - - * latex.el (LaTeX-babel-hyphen): Doc fix. - (LaTeX-common-initialization): Call `easy-menu-add' as late as - possible. - -2005-05-15 Ikumi Keita - - * Makefile.in (CLEANFILES): Add $(CONTRIBELC) and - $(CONTRIB_MULEELC). - (DISTCLEANFILES): Add auctex.el and auto-loads.el. - (auto-loads.el): Add $(COMPILE_MULE) - -2005-05-14 Ikumi Keita - - * style/amsopn.el: - * style/amsmath.el: Move "mode"-like entries from amsopn.el to - amsmath.el. - - * style/amsmath.el: Edit entries in TeX-add-symbols. - Remove duplicate entry "raisetag". - Add some new entries. - Make arrow macros like "overleftarrows" to take argument. - Remove accents macros like "Hat" because they are obsolate in - amsmath v2. - (LaTeX-item-list): Add "multline*", "matrix", "pmatrix", - "bmatrix", "Bmatrix", "vmatrix" and "Vmatrix" environment. - (LaTeX-label-alist): Remove "aligned" environment. - - * tex-style.el (LaTeX-amsmath-label): Fix doc. - - * latex.el: (LaTeX-math-default): Remove duplicate entry - "nabla". Remove AMS Accents like "Hat" because they are obsolate - in amsmath v2. - (LaTeX-babel-hyphen): Fix doc. - (LaTeX-common-initialization): Edit some entries in TeX-add-symbols. - -2005-05-13 Ralf Angeli - - * doc/changes.texi: Small corrections. - -2005-05-12 Ralf Angeli - - * tex-fold.el (TeX-fold-make-overlay): Calculate priority before - the overlay is instantiated. - - * font-latex.el (font-latex-match-command-with-arguments): Make - XEmacs happy. - - * latex.el (LaTeX-fill-newline-hook): New hook. - (LaTeX-fill-newline): Use it. - - * tex-fold.el (TeX-fold-keymap): Remove deprecated key bindings. - (TeX-fold-region, TeX-fold-item): Use `TeX-fold-item-end'. Do not - compute display string (now done in `TeX-fold-hide-item'). - (TeX-fold-make-overlay): Do not mess with display string anymore. - Thereby remove it from list of function arguments. - (TeX-fold-item-end, TeX-fold-overfull-p) - (TeX-fold-update-at-point): New functions. - (TeX-fold-buffer-substring): Get 'display property instead of - 'TeX-fold-display-string which is not used anymore. - (TeX-fold-hide-item): Computation of display string and faces as - well as provisions for overfull lines are done only in this - function now. The 'display property is now set for XEmacs as - well. - (TeX-fold-mode): Add and remove `TeX-fold-update-at-point' to - `LaTeX-fill-newline-hook' respectively. - - * tex.el (TeX-overlay-prioritize): Fix oversight in XEmacs version - of the function. - -2005-05-11 Reiner Steib - - * Makefile.in (tar-ball): Allow YYYYMMDD-a TAG for snapshots. - -2005-05-11 Ralf Angeli - - * font-latex.el (font-latex-set-syntactic-keywords): Don't freak - out if there is whitespace in front of the \begin/\end pair of - verbatim and verbatim-like environments. - - * latex.el (LaTeX-auto-cleanup): Discard only options which - actually include a "=". - - * Makefile.in: Whitespace cleanup. - - * tex.el (TeX-overlay-prioritize): Fix calculation of priority for - in-between overlay. - (TeX-insert-quote): Insert TeX quote if point is just before math, - comment, or verbatim content. - -2005-05-11 David Kastrup - - * doc/Makefile.in (TEXINFOINCLUDES): Add directory modifier - TEXIPWD. This is ugly. - (html/auctex_toc.html): Use it. - - * Makefile.in (tar-ball): Make tar-ball from exporting, and allow - for TAG being a date specification. - (full-release): Omit release tag check. - -2005-05-10 Ralf Angeli - - * font-latex.el (font-latex-forward-comment): New function. - Prevent infinite loops and repair regexp. - Simplify. Code mainly by David Kastrup. - (font-latex-match-command-with-arguments): Use it. Set - fontification start of optional argument to opening bracket. - Apply restriction of region more globally. Fix handling of - multiple optional arguments. Break if the end of the first - mandatory argument could not be found. - -2005-05-09 Ralf Angeli - - * tex.el (TeX-normal-mode): Ask for master file in 'shared case. - - * font-latex.el (font-latex-built-in-keyword-classes): Doc - fix (typo). - (font-latex-match-command-with-arguments): Set macro end before - any comments. Do not move forward over comments if point is over - the limit. - -2005-05-09 David Kastrup - - * doc/Makefile.in (dist): Use DISTTEXTS instead of explicit list - in this directory. - -2005-05-07 Ralf Angeli - - * tex.el (VirTeX-common-initialization): Remove Emacs 20 - compatibility code. Call `TeX-master-file' during load of shared - files as well. - -2005-05-06 Reiner Steib - - * Makefile.in (DOCFILES): Remove macros.texi to make "tar-ball" - work again. - -2005-05-06 David Kastrup - - * tex.el (TeX-load-style): Fix typo `expand-filename'. - -2005-05-06 Ralf Angeli - - * tex.el (TeX-local-master-p): Limit search. - - * doc/Makefile.in (TEXINFOINCLUDES): New variable used for file - inclusion with makeinfo, texi2dvi and texi2pdf. - (MAKEINFOINC): Remove. - - * doc/intro.texi (Introduction): Make package activation clearer. - -2005-05-05 Ralf Angeli - - * doc/intro.texi (Introduction): Be consistent with the display of - commands in the rest of the manual. - - * tex-fold.el (TeX-fold-mode): Improve doc string and add its - first line to the autoload form. - -2005-05-04 David Kastrup - - * tex-fold.el (TeX-fold-mode): Change autoload cookie because of - XEmacs. - -2005-05-03 David Kastrup - - * auctex.spec: First attempt - -2005-05-02 David Kastrup - - * doc/install.texi: - - * doc/intro.texi: - - * doc/wininstall.texi: overhaul. - - * autogen.sh: adapt to auto.texi scheme. - - * toolbar-x.el (toolbarx-install-toolbar): Remove overlong doc - string from autoload. - - * tex-site.el.in (tex-site-unload-hook): Define to remove the - after-load hooks and load-path entry. - (TeX-modes-set): Use defalias instead of fset to allow unloading. - - * README.CVS: Change instructions. - -2005-05-02 David Kastrup - - * bib-cite.el: Revert 2005-04-19 change: autoloads are not - extracted from CONTRIB packages. - -2005-05-02 David Kastrup - - * Makefile.in (tex-site.el.out, auctex.el, configure) - (Makefile, config.status): Add targets to get reconfiguration if - necessary. - - * style/url.el: - - * style/ltx-base.el: - - * style/units.el: - - * style/alltt.el: - - * style/alphanum.el: - - * style/jura.el: - - * style/emp.el: - - * style/doc.el: - - * style/slides.el: - - * style/csquotes.el: - - * style/listings.el: - - * style/nicefrac.el: - - * style/ltxdoc.el: - - * style/jurabib.el: - - * style/mdwlist.el: - - * style/amstex.el: Change maintainer address. - - * doc/intro.texi (Introduction): Changes, cleanup, corrections. - -2005-05-01 David Kastrup - - * doc/install.texi (Prerequisites): Shorten. - (Prerequisites): Mention that one can survive without texinfo. - (Configure): Add prefix information. - (Configure): Sync with preview-latex docs. Mention the - disable-preview option and preview-specific options. - - * configure.ac: Don't use have-preview macro. Conflicts with the - idea of pregenerated docs. - -2005-05-01 Ralf Angeli - - * font-latex.el (font-latex-make-match-defun) - (font-latex-make-built-in-keywords): Byte-compile generated - functions. - - * Makefile.in (clean, distclean): Descend. - -2005-05-01 David Kastrup - - * tex.el (TeX-load-style): Properly expand file names, and fix a - terrible order-of-arguments bug. - - * configure.ac: fix syntax error with MAKEINFO_MACROS - - * tex-site.el.in (TeX-mode-alist): Use correct file name for - texinfo-mode. - - * Makefile.in (AUCSRC): Move tex-style.el before latex.el - - * configure.ac: Add have-preview to macros if we have preview - enabled. - - * doc/Makefile.in (MAKEINFOINC): Use macros.texi in preview/doc - directory. - (auctex.dvi, auctex.pdf, auctex.info, ../INSTALL) - (../INSTALL.windows, ../README, ../CHANGES, ../TODO, ../FAQ): Use - MAKEINFOINC - - * doc/macros.texi: Remove in lieu of version in preview/doc. - - * doc/intro.texi (Introduction): Reorganize, use more of rawfile. - Mention preview-latex. - - * tex-buf.el: - - * tex-fold.el: - - * tex-font.el: - - * tex-fptex.el: - - * tex-info.el: - - * tex-mik.el: Change maintainer to auctex-devel@gnu.org - -2005-04-30 David Kastrup - - * Makefile.in (install-metadata): Correct version number. - (DESCEND): different quoting. - (install): Same here. - (install-metadata): Don't depend on some exit values. - - * configure.ac: substitute auctexstartfile. Export auctexdir as - `..'. - If installing info into XEmacs package, disable install-info. If - makeinfo is disabled, don't check for macros. - - * Makefile.in (auctexstartfile): autoconf variable. - (subdirs): autoconf variable. - (PACKAGE, PACKAGE_INFO): macros. - (DESCEND): For rebuilding stuff and installing. - (all): descend. - (tex-site.el): don't include autoloads when XEmacs. - (install): descend. - (install-startup): new target - (install-el): don't install tex-site on XEmacs. - (install-el): don't fail on .nosearch not installed. - (install-metadata): new target for XEmacs. - -2005-04-29 Ralf Angeli - - * tex.el: Remove `TeX-doc' for `ams-tex-mode'. - -2005-04-29 David Kastrup - - * auctex.el.in: - - * context.el: - - * latex.el: - - * tex-jp.el: - - * tex-site.el.in: - - * tex.el: - - * tex-info.el: Remove TeX-doc. - - * tex-info.el (Texinfo-mode): Fix type in alias. - - * tex-site.el.in (tex-site): Provides are added by Makefile. - Remove them here. - - * configure.ac: Generate tex-site.el.out instead of tex-site.el. - - * Makefile.in (AUTOLOAD): New form for autoloads from rest of line. - (all): Make depend on tex-site.el - (lisp): Depend on tex-site.el - (tex-site.el, auto-loads.el): New targets. - -2005-04-28 Reiner Steib - - * tex-site.el.in (TeX-mode-alist): Exchange value and doc string. - (TeX-modes-set): Check if mode is fbound. - - * doc/changes.texi: Mention changes in sectioning fontification. - - * doc/auctex.texi (Font Locking): Adjust to new sectioning - fontification. - - * font-latex.el: Rename most *-title* stuff to *-sectioning*. Old - names: font-latex-title-%s-face, font-latex-title-fontify, - font-latex-update-title-faces, font-latex-make-title-faces - font-latex-title-max. New names: font-latex-sectioning-%s-face, - font-latex-fontify-sectioning, font-latex-update-sectioning-faces, - font-latex-make-sectioning-faces, font-latex-sectioning-max. - (font-latex-fontify-sectioning): Fix typos in doc string. - -2005-04-28 Ralf Angeli - - * doc/auctex.texi (Development): New name replacing "ToDo". - - * doc/faq.texi, doc/todo.texi: Fix for raw output. - -2005-04-28 David Kastrup - - * tex-site.el.in (TeX-doc): Use AUCTeX-version. - - * configure.ac: fiddle with relative paths. - - * Makefile.in: several changes to buld structure. - - * auctex.el.in (TeX-doc): Startup file source. - - * doc/wininstall.texi: - - * doc/intro.texi: - - * doc/install.texi: - - * doc/faq.texi: - - * doc/changes.texi: Make the stuff compile cleanly. - - * doc/Makefile.in (DISTTEXTS): list plain text files in parent dir. - (.PHONY): everything needed here. - (auctex.info): don't ignore errors. - (../INSTALL, ../INSTALL.windows, ../README, ../CHANGES) - (../TODO, ../FAQ, disttexts): New targets. - (INSTALL, INSTALL.windows, README, CHANGES, HISTORY, TODO, FAQ): - Remove. - (clean): Don't remove files in this directory. - (maintainer-clean): New target, removes files in parent, too. - - * autogen.sh: Create info files and distribution texts like - preview-latex does, and recurse into preview directory to do the - same. - -2005-04-27 David Kastrup - - * tex.el (TeX-lisp-directory, TeX-auto-global): Don't - `file-name-as-directory'fy. - (TeX-style-global, TeX-auto-local, TeX-style-local) - (TeX-macro-global, TeX-macro-private): Same here. - (TeX-auto-private): Use expand-file-name. - (TeX-style-private): Same here. - (TeX-check-path): Same. - (TeX-load-style): Adapt. - - * tex-buf.el (TeX-check-files): Be robust against non-slashed - directory names. - (TeX-ispell-document): Same here. - - * tex.el (AUC-TeX-version, AUC-TeX-date): Protect - `make-obsolete-variable' against obsolete Emacsen. - -2005-04-28 Masayuki Ataka - - * doc/changes.texi: Mention the fix of Japanese fill problems. - -2005-04-27 David Kastrup - - * configure.ac: Correct bug reporting address and move stuff over - from preview. - * aclocal.m4: remove, we want the one in preview instead. - - * tex-site.el.in (AUCTeX-version, AUCTeX-date): get via configure. - - * tex.el (info): Add "docTeX" to info prefixes. - (AUCTeX-version, AUCTeX-date): removed to tex-site.el. - (AUC-TeX-version, AUC-TeX-date): Use `make-obsolete-variable'. Is - version 11.50 correct? - - * tex-bar.el (LaTeX-install-toolbar): Adjust toolbarx-image-path. - - * autogen.sh: Use aclocal.m4 from preview subdirectory. - - * tex.el (TeX-submit-bug-report): Add `TeX-command-list' to bug - reports. - -2005-04-23 David Kastrup - - * tex-buf.el (TeX-command): Let it accept `TeX-active-master' as - well, by not touching `TeX-current-process-region-p' unless - `TeX-region-file' or `TeX-master-file' have been identified - explicitly. - (TeX-view): Simplify. - (TeX-active-process, TeX-active-buffer): Simplify. - -2005-04-22 David Kastrup - - * tex-buf.el (TeX-help-error): Create the correct log file - name corresponding to the current run. - (TeX-error, TeX-warning): Pass runbuffer info into the routines to - get the correct log file name in all circumstances. - -2005-04-20 David Kastrup - - * configure.ac: don't bother about pre-2.50 autoconf. Check - version more fine-grainedly. - -2005-04-19 David Kastrup - - * texmathp.el (texmathp-match-switch): Add autoload cookie. - - * tex.el (no-doc): Remove: not needed because autoloads are - documented by the cookie extraction process. - (bibtex-mode-hook): Remove. This will be done by an autoload - cookie from latex.el instead. - (BibTeX-auto-store, LaTeX-math-mode, japanese-plain-tex-mode) - (japanese-latex-mode, texinfo-mode, latex-mode, multi-prompt) - (texmathp, texmathp-match-switch): Remove autoloads since this is - done by cookies extracted into auctex.el. - (TeX-region-create, TeX-save-document, TeX-home-buffer) - (TeX-pin-region, TeX-command-region, TeX-command-buffer) - (TeX-command-master, TeX-command, TeX-kill-job) - (TeX-recenter-output-buffer, TeX-next-error) - (TeX-toggle-debug-boxes, TeX-region-file, TeX-current-offset) - (TeX-process-set-variable, TeX-view): Make comment nil instead of - no-doc. - (font-latex-setup, tex-font-setup): Remove autoloads. Should be - done by cookies instead. - (TeX-tex-mode): rename from tex-mode. - (TeX-plain-tex-mode): rename from plain-tex-mode. - (ams-tex-mode): Change autoload cookie. - - * tex-jp.el (japanese-plain-tex-mode, japanese-latex-mode): Change - autoload cookies. - - * tex-font.el (tex-font-setup): Add autoload cookie. - - * tex-fold.el (TeX-fold-mode, tex-fold-mode): Add autoload - cookies. - - * multi-prompt.el (multi-prompt): Add autoload cookie. - - * latex.el (auto-mode-alist): Add .drv to latex-mode. - (TeX-latex-mode): Changed name from latex-mode. - (TeX-doctex-mode): Same here for doctex-mode. Explicitly set - major-mode to doctex-mode: we don't want different modes. - - * tex-info.el (texinfo): Alias texinfo-mode to Texinfo-mode for - symmetry. - (Texinfo-mode): Autoload. - - * context.el (ConTeXt-mode, context-mode): Add definitions and - aliases and autoload cookies. - - * bib-cite.el: Remove autoload from instructions. - - * toolbar-x.el (toolbarx-image-path): New variable. - (toolbarx-make-string-from-symbol) - (toolbarx-make-symbol-from-string, toolbarx-good-option-list-p) - (toolbarx-separate-options, toolbarx-merge-props) - (toolbarx-make-command, toolbarx-emacs-mount-popup-menu) - (toolbarx-xemacs-mount-popup-menu, toolbarx-mount-popup-menu) - (toolbarx-option-value, toolbarx-eval-function-or-symbol) - (toolbarx-test-image-type, toolbarx-test-button-type) - (toolbarx-test-any-type, toolbarx-test-string-or-nil) - (toolbarx-test-toolbar-type, toolbarx-test-dropdown-type) - (toolbarx-test-symbol, toolbarx-test-dropdown-default) - (toolbarx-test-dropdown-save) - (toolbarx-process-group-without-insert, toolbarx-process-group) - (toolbarx-process-symbol, toolbarx-process-dropdown-group) - (toolbarx-find-image, toolbarx-emacs-add-button) - (toolbarx-emacs-refresh-process-button-or-insert-list) - (toolbarx-emacs-refresh, toolbarx-xemacs-image-properties) - (toolbarx-xemacs-button-properties, toolbarx-xemacs-refresh): - Remove autoload cookies. - (toolbarx-find-image): Use `toolbarx-image-path'. - -2005-04-26 Reiner Steib - - * font-latex.el (font-latex-update-title-faces): Remove unused - variable. Don't call when loading the file. - (font-latex-title-fontify): Document that faces set outside of - customize might be modified. - (font-latex-make-title-faces): Set height or size so that - customize won't complain. - -2005-04-24 Ralf Angeli - - * tex-buf.el (TeX-interactive-goto-prompt): New function. - (TeX-run-interactive): Use it instead of setting - `comint-scroll-to-bottom-on-output'. Use `add-hook'. - -2005-04-23 Ralf Angeli - - * font-latex.el (font-latex-update-title-faces): Do not touch - customized faces. - (font-latex-title-fontify): Use `custom-initialize-default'. - (font-latex-make-title-faces): Check for value of `saved-face' - property for determining face customization. - - * tex.el (TeX-find-macro-boundaries): Reimplement. Now handles - \foo{\bar}{ba-!-z} case correctly. - (TeX-find-macro-start-helper): Remove. - -2005-04-22 Reiner Steib - - * font-latex.el (font-latex-make-title-faces): Define the face, - don't set size. Set parent/inherit conditionally. - (font-latex-update-title-faces): New function. - (font-latex-title-fontify): Add :initialize and :set. Using - `font-latex-update-title-faces' allows changing the height within - an Emacs session. - (font-latex-title-5-face): Renamed from title-4-face. - (font-latex-built-in-keyword-classes): Use title-0 and title-5 - faces. - -2005-04-22 Ralf Angeli - - * tex-buf.el (TeX-run-interactive): Make output buffer scroll. - -2005-04-18 Ralf Angeli - - * tex-fold.el (TeX-fold-region): Get rid of \_> for matching - macros. It prevents macros immediately followed by numbers from - being found. - -2005-04-17 Masayuki Ataka - - * style/amsmath.el (LaTeX-item-equation): just-one-space before - `\\' at the end of line. - -2005-04-15 Ralf Angeli - - * style/harvard.el ("harvard"): Activate harvard citation format - in RefTeX. - -2005-04-14 Ralf Angeli - - * tex-fold.el (TeX-fold-force-fontify): New variable. - (TeX-fold-buffer): Use it. Make sure the buffer is fontified - before folding is done. - - * doc/auctex.texi (Folding): Mention `TeX-fold-force-fontify'. - - * doc/changes.texi: Mention `TeX-fold-force-fontify'. - -2005-04-14 Ikumi Keita - - * style/amsmath.el: Fix comment. - ("amsmath"): Removed duplicate settings of "alignat*" and - "xalignat*" from LaTeX-add-environments. Add "xalignat", - "xalignat*", and "xxalignat" to LaTeX-item-list. - (LaTeX-amsmath-env-alignat): Do not ask label if the tail of ENV - is "*". - -2005-04-14 Masayuki Ataka - - * latex.el (LaTeX-fill-move-to-break-point): Refactoring. Set - third argument of re-search-backward to 'move instead of using - skip-chars-backward. - -2005-04-13 Ralf Angeli - - * latex.el (LaTeX-math-abbrev-prefix): Offer only string type for - customization. Add proper :initialize and :set functions to allow - the value to be changed without having to restart Emacs. - - * doc/auctex.texi (Mathematics): Document only the string-nature - of `LaTeX-math-abbrev-prefix'. - -2005-04-12 Ralf Angeli - - * latex.el (LaTeX-math-abbrev-prefix): Can now be a string to be - used with `kbd'. - (LaTeX-math-abbrev-prefix): New function. - (LaTeX-math-keymap, LaTeX-math-mode): Use it. - - * doc/auctex.texi (Mathematics): Explain - `LaTeX-math-abbrev-prefix' more verbosely. - -2005-04-12 Reiner Steib - - * tex-site.el.in (TeX-lisp-directory): Avoid open-parenthesis at - beginning of a line. - - * tex-style.el (LaTeX-beamer-inner-themes) - (LaTeX-beamer-outer-themes, LaTeX-beamer-color-themes) - (LaTeX-beamer-font-themes): New variables for style/beamer.el. - - * style/beamer.el (LaTeX-arg-beamer-inner-theme) - (LaTeX-arg-beamer-outer-theme, LaTeX-arg-beamer-color-theme) - (LaTeX-arg-beamer-font-theme): New functions. - -2005-04-10 Ralf Angeli - - * tex.el (TeX-parse-argument): Another stab at fixing this - function. The last change from 2005-03-23 broke the insertion of - macros like \footnote with a marked region. This is pure - guesswork. *sigh* - - * latex.el (LaTeX-section-heading): Shorten prompt. - (LaTeX-section-title): Simplify. Shorten prompt. - (LaTeX-auto-minimal-regexp-list): "\" and "." are not special in a - complemented character alternative. - (LaTeX-math-keymap): Define key for prefix insertion inside - defvar. - (math): Use `LaTeX-math-keymap' only. - (LaTeX-math-mode-menu): Use `LaTeX-math-mode-map' (defined by - `define-minor-mode'). - (LaTeX-math-mode): Assign `LaTeX-math-keymap' to - `LaTeX-math-abbrev-prefix'. Use `LaTeX-math-mode-menu' with - `LaTeX-math-mode-map'. - (LaTeX-math-insert-prefix): Remove. - -2005-04-08 Ralf Angeli - - * font-latex.el (font-latex-match-command-with-arguments): Skip - over comments as well as whitespace. - - * tex.el (TeX-output-extension): Default to nil. - -2005-04-07 Ralf Angeli - - * tex.el (TeX-output-extension): Set correct default depending on - the value of `TeX-PDF-mode'. - (TeX-output-extension): Revert. - (VirTeX-common-initialization): Set `TeX-output-extension' here. - -2005-04-05 Christian Schlauer - - * tex.el (TeX-submit-bug-report): Fix typo in doc string, fill doc - string. - - * latex.el: Change maintainer address. - (LaTeX-section): Fix typo in doc string. Remove code that almost - always inserts a new line. - (LaTeX-section-section): Fix doc string. Add code that - conditionally inserts a new line (which also bundles the - modification of the buffer in this function). - (LaTeX-section-hook): Fix typo in doc string. - (LaTeX-default-position): Use `do not' instead of `don't' in doc - string and customize value menu (as in `LaTeX-float). - (LaTeX-item-list): Fix typo in doc string. - -2005-04-05 Ralf Angeli - - * tex.el (TeX-PDF-mode, TeX-interactive-mode, TeX-Omega-mode): Set - customization group. - - * latex.el (LaTeX-math-default): New entry and key for \colon. - New "Punctuation" category. Get rid of some entries in - "delimiters" category already defined in "Arrows". Get rid of - "delimiters" category and merge entries defined there into - "Delimiters.". - (LaTeX-math-menu): Remove "delimiters" and add "Punctuation". - -2005-04-04 Ralf Angeli - - * font-latex.el (font-latex-make-user-keywords): Make XEmacs - happy. - - * doc/changes.texi: Fix @xref. - - * doc/auctex.texi (Quotes): Fix @xref. - (European): Be more verbose. - - * tex-info.el (texinfo-mode): Get rid of hyphens in prompts. - Add @xref command. - - * latex.el (LaTeX-babel-hyphen, LaTeX-babel-hyphen-after-hyphen): - Doc fix. - (LaTeX-babel-hyphen-language-alist): Use t as default value for - insertion behavior. - - * tex.el (TeX-quote-language-alist): Use t as default value for - insertion behavior. - - * doc/auctex.texi: New tag line. - (Quotes): Replace description about (n)german.sty-specific quote - insertion by a generalized one and refer to section about European - languages. - (European): Add subsections. Add information about new - functionality and customization options for language-specific - quote and hyphen insertion. - (Folding): Add information about help echo. - (Viewing): Add subsection heading. A single one does not really - make sense. - - * doc/changes.texi: Add some news. - -2005-04-03 Ralf Angeli - - * tex-fold.el (TeX-fold-help-echo-max-length): New variable. - Add :type and :group specs. - (TeX-fold-make-help-echo): New function. - No space before ellipsis. - Okay, color does not look too bad. - (TeX-fold-make-overlay): Use it. - Remove call to `TeX-fold-make-help-echo' again as we have to - recompute the string anyway. - (TeX-fold-hide-item): Set help-echo property. - Recompute help echo string. - (TeX-fold-show-item): Invalidate help-echo property. - -2005-04-02 Ralf Angeli - - * doc/faq.texi (Frequently Asked Questions About AUCTeX): Minor - enhancements in wording. - - * tex.el (TeX-open-quote, TeX-close-quote) - (TeX-quote-after-quote): Doc fix. - (TeX-quote-language-alist, TeX-quote-language): New variables. - (TeX-insert-quote): Use them. - (TeX-submit-bug-report): Doc fix. - - * latex.el (LaTeX-mode-map): Map "-" to - `LaTeX-babel-insert-hyphen'. - (LaTeX-babel-hyphen, LaTeX-babel-hyphen-after-hyphen) - (LaTeX-babel-hyphen-language-alist, LaTeX-babel-hyphen-language): - New variables. (Moved from tex-style.el and style/german.el - respectively and generalized.) - (LaTeX-babel-insert-hyphen): New function. (Moved from - syle/german.el). - - * tex-style.el (LaTeX-csquotes-open-quote) - (LaTeX-csquotes-close-quote): Doc fix. - (LaTeX-german-quote-after-quote, LaTeX-german-open-quote) - (LaTeX-german-close-quote, LaTeX-german-hyphen) - (LaTeX-german-hyphen-after-hyphen): Remove. - - * style/csquotes.el ("csquotes"): Use `TeX-quote-language'. - - * style/italian.el (LaTeX-italian-open-quote) - (LaTeX-italian-close-quote): Remove. - ("italian"): Use `TeX-quote-language'. - - * style/ngerman.el (LaTeX-german-quote-after-quote) - (LaTeX-german-open-quote, LaTeX-german-close-quote): Remove. - ("ngerman"): Use `TeX-quote-language' and - `LaTeX-babel-hyphen-language'. - - * style/german.el: Move definition of "-" key to latex.el. - (LaTeX-german-hyphen-internal): Move to latex.el as - `LaTeX-babel-hyphen-language'. - (LaTeX-german-insert-hyphen): Move to latex.el as - `LaTeX-babel-insert-hyphen'. - ("german"): Use `TeX-quote-language' and - `LaTeX-babel-hyphen-language'. - - * style/czech.el, style/danish.el, style/slovak.el, - style/swedish.el: Use `TeX-quote-language' and - `LaTeX-babel-hyphen-language' where appropriate. - -2005-03-31 Ralf Angeli - - * doc/faq.texi (Frequently Asked Questions About AUCTeX): Add - general information about how to deal with bugs. Adapt version - numbers for Emacs. - -2005-03-31 Masayuki Ataka - - * latex.el (LaTeX-fill-move-to-break-point): Skip non-space chars - backward if re-search-backward does not find white spaces or - LaTeX-nospace-between-char-regexp. Add mule check before line - break between 2-byte and 1-byte chars. - Reported by Ikumi Keita . - Do not move point if re-search-backward didn't find proper line - break point. - -2005-03-30 Ralf Angeli - - * tex.el (TeX-submit-bug-report): Insert AUCTeX version into mail - subject. - -2005-03-30 Ikumi Keita - - * latex.el (LaTeX-env-label): Remove `TeX-toggle-off-input-method' - because `TeX-math-input-method-off' is already called in - `LaTeX-insert-environment'. - -2005-03-29 Ralf Angeli - - * tex-style.el (LaTeX-german-hyphen): Doc fix. Fix :type. - - * style/german.el (LaTeX-german-insert-hyphen): Do not add "= - repeatedly but stick to - after the first swapping. - -2005-03-28 Ralf Angeli - - * style/german.el (LaTeX-mode-map): Bind `-' to - `LaTeX-german-insert-hyphen'. - (LaTeX-german-quote-after-quote, LaTeX-german-open-quote) - (LaTeX-german-close-quote): Move to tex-style.el. - (LaTeX-german-hyphen-internal): New variable. - (LaTeX-german-insert-hyphen): New function. - ("german"): Set `LaTeX-german-hyphen-internal'. - - * tex-style.el (LaTeX-german-quote-after-quote) - (LaTeX-german-open-quote, LaTeX-german-close-quote): Move here - from style/german.el. - (LaTeX-german-hyphen, LaTeX-german-hyphen-after-hyphen): New - variables. - - * doc/auctex.texi (Font Locking): References are now fontified - with `font-lock-constant-face' because `font-lock-reference-face' - is deprecated. - - * font-latex.el: Change maintainer address. - (font-latex-quotes, font-latex-make-built-in-keywords) - (font-latex-user-keyword-classes): Doc fix. (Mention that setting - the variable directly does not take effect.) - (font-latex-make-match-defun, font-latex-make-built-in-keywords) - (font-latex-make-user-keywords): Doc strings of generated - variables and functions now refer to the creating functions. - (font-latex-warning-face, font-latex-sedate-face) - (font-latex-italic-face, font-latex-bold-face) - (font-latex-math-face, font-latex-string-face) - (font-latex-verbatim-face, font-latex-superscript-face) - (font-latex-subscript-face, font-latex-title-1-face) - (font-latex-title-2-face, font-latex-title-3-face) - (font-latex-title-4-face): Remove these face variables. - (font-latex-title-fontify): Remove :set function. - (font-latex-built-in-keyword-classes): Use - `font-lock-constant-face' instead of `font-lock-reference-face' - because the latter is deprecated in Emacs (and only an alias for - the former which will not work if the quoted face name is used). - Use new `title' specifier as type of keyword for the titling - keywords and mention it in the doc string. - (font-latex-keyword-matcher): Quote face specifiers in any case. - (font-latex-make-user-keywords) - (font-latex-syntactic-face-function): Quote face specifiers. - (font-latex-setup): Remove obsolete method for fontifying strings - or math respectively. - -2005-03-28 David Kastrup - - * tex.el: Change maintainer address. - (TeX-submit-bug-report): Change bug reporting address. - - * doc/wininstall.texi: Change contact info. - - * doc/intro.texi (Introduction): Change contact info. - - * doc/auctex.texi (top): Change contact info. - -2005-03-27 Ralf Angeli - - * font-latex.el (font-latex-match-simple-command): New function. - (font-latex-make-user-keywords): Use it instead of specifying the - regexp directly. Prevents stuff like "\foo\foo\foo\foo" from - being fontified like a zebra. - (font-latex-match-command-with-arguments): Check for limit when - looking at optional and mandatory arguments. Prevents an infinite - loop in XEmacs when typing the "n" of \begin in "\begi\n[foo]". - (font-latex-user-keyword-classes): Specify a default value for the - list. - -2005-03-24 Ralf Angeli - - * Makefile.in (AUCELC): Derive from AUCSRC. - (STYLEELC, CLEANFILES, DISTCLEANFILES, DISTTEXTS): New variables. - (some): Use STYLEELC. - (clean): Use CLEANFILES. - (distclean): Use CLEANFILES and DISTCLEANFILES. Call distclean - target in doc directory. - (maintainer-clean, extraclean): New targets. - -2005-03-23 Ralf Angeli - - * tex.el (TeX-parse-argument): Deactivate mark after insertion of - first mandatory argument. Fixes insertion of braces at wrong - places for multi-argument macros like \parbox and \multicolumn. - See also change from 2004-12-01 which obviously did not suffice. - -2005-03-22 Masayuki Ataka - - * latex.el (LaTeX-fill-move-to-break-point): Prevent line break - between 2-byte char an 1 byte-char. - - * latex.el (LaTeX-fill-move-to-break-point): Do not skip - LaTeX-nospace-between-char-regexp. - Reported by Ikumi Keita . - -2005-03-19 Ralf Angeli - - * tex-fold.el (TeX-fold-buffer-substring): Better safe than sorry. - -2005-03-18 Ralf Angeli - - * font-latex.el (font-latex-make-title-faces): According to - upstream `font-size' is likely to vanish. So back to - `face-height' but scale it down a bit to better match actual font - size. - -2005-03-17 David Kastrup - - * tex.el (TeX-overlay-priority-step): New variable, previously in - tex-fold.el under different name. - (TeX-overlay-prioritize): new function in Emacs and XEmacs - variants. - - * tex-fold.el (TeX-fold-make-overlay): Use `TeX-overlay-prioritize'. - (TeX-fold-priority-step, TeX-fold-prioritize): Renamed and moved - to tex.el. - - * tex-buf.el (TeX-region-create): Transfer - `buffer-file-coding-system' from master buffer to region. - -2005-03-17 Ralf Angeli - - * latex.el (LaTeX-section-list-add-locally) - (LaTeX-largest-level-set): New functions. - (LaTeX-add-environments): Invalidate menu variables instead of - setting `LaTeX-menu-changed'. - (LaTeX-section-menu-entry): Do not enable symbol. - (LaTeX-section-menu-create, LaTeX-menu-changed) - (LaTeX-menu-update): Remove. - (LaTeX-section-menu, LaTeX-environment-menu) - (LaTeX-environment-modify-menu): New variables. - (LaTeX-section-menu-filter, LaTeX-environment-menu-filter): New - functions. - (LaTeX-mode-menu): Use them. - (LaTeX-common-initialization): Move setting of - `LaTeX-largest-level' upwards because it is needed when the menu - is being generated. Do not use `activate-menubar-hook' and - `activate-popup-menu-hook' anymore. - - * tex.el (VirTeX-common-initialization): Force update of style - information. - - * style/scrreprt.el, style/scrbook.el, style/scrbase.el, - style/scrartcl.el, style/report.el, style/jsbook.el, - style/jsarticle.el, style/jreport.el, style/jbook.el, - style/jarticle.el, style/j-report.el, style/j-book.el, - style/j-article.el, style/book.el, style/article.el, - style/alphanum.el: Use new functions for setting - `LaTeX-largest-level' or `LaTeX-section-list' respectively. - -2005-03-16 Ikumi Keita - - * latex.el (LaTeX-fill-move-to-break-point): Limit the max number - of characters to look backward for `TeX-looking-at-backward'. - -2005-03-16 Masayuki Ataka - - * latex.el (LaTeX-nospace-between-char-regexp): Changed from - defcustom to defvar. - -2005-03-15 Ralf Angeli - - * font-latex.el (font-latex-make-title-faces): Deal with the case - that `font-size' returns a number. Or nil. - - * tex.el (TeX-view-style): Remove support for "a4" and "a5". - -2005-03-14 David Kastrup - - * latex.el (docTeX-indent-inner-fixed) - (LaTeX-indent-calculate-last): Add support for macrocode*, macro*, - environment and environment* environment. - -2005-03-14 Ralf Angeli - - * context.el (ConTeXt-indent-item-re): Do not treat - \setup... commands like \item. - -2005-03-14 Masayuki Ataka - - * tex-fold.el (TeX-fold-prioritize): Cater for preview-latex. - -2005-03-11 Ralf Angeli - - * latex.el (LaTeX-paragraph-commands-regexp-make): New function. - (LaTeX-paragraph-commands-regexp, LaTeX-paragraph-commands): Use - it. - (LaTeX-paragraph-commands-add-locally): New function. - - * style/beamer.el ("beamer"): Use it. Newline not needed anymore - because \frametitle is now a paragraph command and will not be - filled together with the other content. - - * context.el (ConTeXt-find-indent): Correct indentation of - environments. - - * latex.el (LaTeX-fill-region-as-para-do): Use - `remove-text-properties' instead of - `remove-list-of-text-properties' because the latter is not - available in Emacs 21. - -2005-03-10 Ralf Angeli - - * style/beamer.el ("beamer"): Find the correct start of - environment in case a frame environment is inserted with point on - a non-empty line. Insert an additional newline to set off title - and content. - - * font-latex.el (font-latex-make-title-faces): Use `font-size' - instead of `face-height' to determine the font size because the - latter (as the sum of the face's ascent and descent) returns - inappropriate values. Suggested by Steven E. Harris - . - -2005-03-09 Ralf Angeli - - * tex.el (TeX-comment-prefix): New function. - - * latex.el (LaTeX-current-environment, LaTeX-find-matching-end) - (LaTeX-find-matching-begin): Rather than using the start or end of - a commented region as a boundary, look further for other commented - regions with the same prefix possibly containing an environment - start or end respectively. - (LaTeX-mode-menu): An empty help string is useless and may lead to - an empty tooltip. - -2005-03-09 Masayuki Ataka - - * style/amsmath.el ("amsmath"): Fixed typo: "dotssc" -> "dotsc". - Added symbol "dots" and "dotsi". - - * latex.el (LaTeX-insert-environment): Call - `TeX-math-input-method-off'. - * style/amsmath.el (LaTeX-amsmath-env-alignat) - (LaTeX-amsmath-env-aligned): Do not call - `TeX-math-input-method-off' from here. - Reported by Ikumi Keita . - -2005-03-08 Ralf Angeli - - * latex.el (LaTeX-current-environment): Doc fix. - - * font-latex.el (font-latex-make-built-in-keywords): Make doc - string of `font-latex-match-*-keywords' more clear. - -2005-03-08 Masayuki Ataka - - * tex.el (TeX-toggle-off-input-method): Turn off input method iff - `current-input-method' starts one of "chinese", "japanese", and - "korean". Use `inactivate-input-method' instead of - `toggle-input-method'. Doc fix. - Suggested by Ikumi Keita . - -2005-03-07 Reiner Steib - - * tex-style.el: New file. defcustoms for style/*.el should go - here. - - * latex.el (LaTeX-includegraphics-extensions) - (LaTeX-includegraphics-options-alist) - (LaTeX-includegraphics-strip-extension-flag) - (LaTeX-includegraphics-read-file, LaTeX-beamer-themes): Moved to - tex-style.el. - (tex-style): Require. - - * style/amsmath.el (LaTeX-amsmath-label): Moved to tex-style.el. - - * style/beamer.el: Remove install instructions. Won't work - properly outside current AUCTeX anymore. Removed CVS Id. - (LaTeX-beamer-section-labels-flag) - (LaTeX-beamer-item-overlay-flag): Moved to tex-style.el. - - * style/csquotes.el (LaTeX-csquotes-quote-after-quote) - (LaTeX-csquotes-open-quote, LaTeX-csquotes-close-quote): Moved to - tex-style.el. - - * style/emp.el (LaTeX-write18-enabled-p): Moved to tex-style.el. - - * Makefile.in (AUCSRC): Added tex-style.el. - -2005-03-07 Masayuki Ataka - - * tex-jp.el (japanese-TeX-command-list) - (japanese-TeX-error-messages): Change from defvar to defcustom. - -2005-03-06 Masayuki Ataka - - * doc/auctex.texi (I18n): Comment fix. - - * latex.el: Set fill-space nonsticky. - (LaTeX-fill-delete-newlines): Check text property 'fill-space. - -2005-03-04 David Kastrup - - * Organizational: preview-latex development has been moved from - into the - AUCTeX CVS Archive on - in subdirectory - auctex/preview. - -2005-03-04 Reiner Steib - - * doc/auctex.texi (I18n): Try to make text more clear. - - * style/beamer.el (LaTeX-beamer-search-themes) - (LaTeX-arg-beamer-theme): New functions adding completion for - \usetheme. - - * latex.el (LaTeX-beamer-themes): New variable. - -2005-03-05 Ikumi Keita (tiny change) - - * tex-jp.el (japanese-TeX-command-list): Doc fix. - -2005-03-03 Ikumi Keita - - * tex.el (TeX-macro-global-internal): New function. - (TeX-macro-global): Use it. - (TeX-kpathsea-format-alist): Removed duplicate line. - - * tex-jp.el: Use `TeX-macro-global-internal' and append path for - Japanese TeX into TeX-macro-global. Do not override - `TeX-expand-list', no more. - (japanese-TeX-command-list): Add :help string. Change - `TeX-run-LaTeX' to `TeX-run-TeX'. - (japanese-TeX-command-default, japanese-LaTeX-command-default): - Quote symbol TeX-command in doc string. - -2005-03-03 Thomas Baumann - - * style/beamer.el (LaTeX-beamer-item-overlay-flag): New variable. - Used for controling the insertion of overlays in - `LaTeX-item-beamer'. - (LaTeX-item-beamer): Use it. - -2005-03-02 Reiner Steib - - * doc/auctex.texi (I18n): Fix some markup errors. - -2005-03-02 Ralf Angeli - - * font-latex.el (font-latex-make-title-faces) - (font-latex-title-4-face): Use yellow on terminals with dark - background and blue4 on terminals with light background. - -2005-03-02 Masayuki Ataka - - * doc/auctex.texi (Floats): Document `LaTeX-top-caption-list'. - -2005-03-01 Masayuki Ataka - - * doc/auctex.texi (I18n): Revised. - -2005-02-28 Masayuki Ataka - - * tex-jp.el (TeX-japanese-process-input-coding-system) - (TeX-japanese-process-output-coding-system): Fix comment. - -2005-02-27 Masayuki Ataka - - * latex.el (LaTeX-fill-move-to-break-point): Cater for kinsoku, - especially for Japanese. - -2005-02-24 Ralf Angeli - - * latex.el (LaTeX-common-initialization): Update LaTeX menu when a - popup menu in XEmacs is opened. - -2005-02-23 Ralf Angeli - - * bib-cite.el: Some doc fixes in the commentary section. - -2005-02-23 Ikumi Keita (tiny change) - - * doc/auctex.texi (I18n): Removed FIXME comment. - -2005-02-22 Ikumi Keita (tiny change) - - * latex.el (LaTeX-fill-delete-newlines): Call search-forward, - which is copied from `fill-delete-newlines', with BOUND TO. - -2005-02-21 Reiner Steib - - * doc/auctex.texi (Japanese): Fix bogus macro. - -2005-02-21 Masayuki Ataka - - * doc/auctex.texi (Japanese): Doc fix. - Suggested by Ikumi Keita . - -2005-02-20 Ralf Angeli - - * tex-fold.el (TeX-fold-macro-nth-arg): Doc fix. - Do not skip more than one closing brace backwards. - Use `TeX-fold-buffer-substring'. - (TeX-fold-prioritize): Doc fix. - (TeX-fold-buffer-substring): New function. - Do not use `dolist' which uses an unwanted local binding of the - list variable. - -2005-02-19 Ralf Angeli - - * latex.el (LaTeX-current-environment): New variable. - (LaTeX-indent-calculate, LaTeX-fill-region-as-para-do): Use it. - Improves filling performace by caching current environment. - -2005-02-19 Masayuki Ataka - - * tex-jp.el (TeX-japanese-process-input-coding-system): Remove - garbage code. - Reported by Ikumi Keita . - - * latex.el (LaTeX-nospace-between-char-regexp): New variable. - (LaTeX-fill-delete-newlines): Use it. - (LaTeX-fill-move-to-break-point): Ditto. Fix comment. - -2005-02-18 Masayuki Ataka - - * latex.el (LaTeX-fill-delete-newlines): New function. - (LaTeX-fill-region-as-para-do): Use it. - -2005-02-16 Ralf Angeli - - * font-latex.el (font-latex-set-syntactic-keywords): Give an - escape char at the end of a verbatim construct punctuation syntax. - Prevents wrong fontification of stuff like "\verb|foo\|". - -2005-02-16 Masayuki Ataka - - * tex-jp.el (TeX-after-start-process-function): Removed code for - XEmacs. `set-process-coding-system' is available in XEmacs 21.1. - (TeX-japanese-process-input-coding-system) - (TeX-japanese-process-output-coding-system): Change from defvar to - defcustom. Use `default-process-coding-system'; Old XEmacs - doesn't have the variable? - Suggested by Ikumi Keita . - -2005-02-15 Masayuki Ataka - - * latex.el (LaTeX-fill-move-to-break-point): Simplify. - (LaTeX-fill-region-as-para-do): Cater for the situation where - there is a line ending with Japanese characters and the following - line starts with a non-Japanese character. - -2005-02-14 David Kastrup - - * aclocal.m4 (AC_LISPIFY_DIR): new function. - (AUCTEX_AUTO_DIR): Use it. - - * tex-site.el.in (TeX-lisp-directory, TeX-auto-global): put - autoconfed expression on a line of its own. - -2005-02-14 Masayuki Ataka - - * latex.el (LaTeX-fill-region-as-para-do): Get rid of a space at - eol if the last character of the line is Japanese (e.g. short - Japanese lines). - (LaTeX-fill-move-to-break-point): Do not skip characters if the - text is written in Japanese (e.g. long Japanese line). - Reported by Ikumi Keita . - -2005-02-14 Ikumi Keita (tiny change) - - * tex-jp.el (LaTeX-auto-regexp-list): Use - `LaTeX-auto-class-regexp-list'. - -2005-02-13 Ralf Angeli - - * tex-info.el (Texinfo-environment, Texinfo-modify-environment): - New functions. - (Texinfo-insert-environment): Not interactive anymore as it is now - called by `Texinfo-environment'. - (Texinfo-mode-map): `C-c C-e' now calls `Texinfo-environment'. - -2005-02-12 Masayuki Ataka - - * tex.el (TeX-add-local-master): Insert "japanese-" before mode - name if buffer local variable `japanese-TeX-mode' is non-nil. - Suggested by Ikumi Keita . - (japanese-slitex-mode): Removed obsolete autoload of slitex. - - * doc/auctex.texi (Japanese): Doc fix to follow the latest - tex-jp.el. - -2005-02-12 Ralf Angeli - - * tex.el (TeX-find-macro-boundaries): Return an alist instead of a - list. - (TeX-find-macro-end): With `TeX-find-macro-boundaries' returning - an alist `cdr' is now sufficient. - (TeX-find-macro-end-helper): Save match data. - (TeX-font-replace-macro): Use `TeX-find-macro-end' instead of - `forward-sexp'. Fixes errors e.g. when trying to remove the font - spec of a string like "\textbf{(}". - -2005-02-11 Ralf Angeli - - * latex.el (LaTeX-env-figure): Make function aware of active - selections. There are still some indentation issues left. - - * style/epsf.el ("epsf"): Do not add epsffig environment. Fixes - error if latex.el(c) is not loaded. - (LaTeX-env-epsffigure): Remove. - -2005-02-11 David Kastrup - - * tex-site.el.in (TeX-lisp-directory): Use `@lispauctexdir' - instead of `"@auctexdir@"' and `@lispautodir' instead of - `"@auctexdir_expanded"'. - - * configure.ac (lispauctexdir): create version of `$(auctexdir)' - that is Lisp-quoted, not shell-quoted. - (lispautodir): Similarly. - - * doc/Makefile.in (prefix): Append $(null) to some assignments to - save quoted backslashes at line ends. - - * Makefile.in (prefix): Append $(null) to some variable - assignments to let quoted backslashes at their end remain quoted. - (auctexdir): Get from configure. - -2005-02-10 Masayuki Ataka - - * tex-jp.el: Fix bug that once japanese-plain-tex-mode entered, - plain-tex-mode do as japanese-plain-tex-mode. - Reported by Ikumi Keita . - (japanese-TeX-mode): Doc fix. Make variable buffer local and - permanent-local. - (japanese-plain-tex-mode-initialization) - (japanese-latex-mode-initialization): Do not initialize - japanese-TeX-mode. Use `when' instead of `if'. - -2005-02-09 Peter S Galbraith - - * bib-cite.el (bib-master-file): Apply patch from Peter Heslin. - TeX-master can now have symbol values (other than t or nil). - -2005-02-09 Masayuki Ataka - - * tex-jp.el (LaTeX-auto-regexp-list): Removed `usepackage' because - it is defined in `LaTeX-auto-minimal-regexp-list'. - (plain-TeX-auto-regexp-list): Fix regexp; Use `\\|' instead of `|'. - Fill lines in the same way in tex.el. - (TeX-japanese-process-input-coding-system) - (TeX-japanese-process-output-coding-system): Use if-statement in - defvar instead of outside of defvar. Change default value of FSF - Emacs to 'euc-jp. - (TeX-after-start-process-function): Add code for FSF Emacs. - -2005-02-08 Masayuki Ataka - - * style/alphanum.el: Added `Local Variables'. - Suggested by Ikumi Keita . - - * font-latex.el: Fix typo in `Local Variables'. - Reported by Ikumi Keita . - -2005-02-07 Reiner Steib - - * doc/faq.texi (Frequently Asked Questions About AUCTeX): Fix typo - in previous commit. - -2005-02-07 Masayuki Ataka - - * style/jarticle.el ("jarticle"): Use `LaTeX-section-level'. - -2005-02-07 Ralf Angeli - - * latex.el (LaTeX-fill-code-comment): Compute the end of the - region to be filled _after_ indentation happened. - -2005-02-07 David Kastrup - - * doc/faq.texi (Frequently Asked Questions About AUCTeX): Be quite - more verbose about Emacs/XEmacs and versions. - -2005-02-04 David Kastrup - - * 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 - - * RELEASE: Some more Emacspeak blurb. - -2005-02-04 Ralf Angeli - - * RELEASE: Make description of changes clearer. - -2005-02-04 David Kastrup - - * RELEASE (Warning): warn about XEmacs 21.4.16. - -2005-02-01 Ralf Angeli - - * 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 - - * 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 - - * 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 - - * style/jsarticle.el: New file. - - * style/jsbook.el: New file. - - * Makefile.in (STYLESRC): Add them. - -2005-01-29 Masayuki Ataka - - * tex-jp.el (LaTeX-fill-region-as-para-do): Removed. - -2005-01-28 Reiner Steib - - * 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 - - * tex.el: Do not use whitespace syntax for ?~. Prevents these - characters from being deleted during filling. - -2005-01-25 Ralf Angeli - - * 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 - - * auctex.spec (Conflicts): Mention the outdated emacspeak from - FC3. - -2005-01-20 Ralf Angeli - - * 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 - - * aclocal.m4, configure.ac: A few small changes to allow sync with - preview-latex' aclocal.m4 - -2005-01-19 Ralf Angeli - - * 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 - - * 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 - - * doc/auctex.texi (European): Document all TeX-language-*-hook - variables. Don't document obsolete `dk.sty'. - -2005-01-14 David Kastrup - - * 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 - - * 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 - - * Version 11.54 released. - -2005-01-12 Ralf Angeli - - * style/beamer.el: Update copyright information. General - clean-up. - ("beamer"): Support frame environment. - The overprint has an optional "area width" argument, not a - mandatory "overlay" argument. - -2005-01-09 Reiner Steib - - * RELEASE: Addition to contributors section. - - * tex-bar.el (TeX-bar-LaTeX-button-alist): Use generic "view" - image instead of mode specific. - -2005-01-09 Ralf Angeli - - * RELEASE: Added information about fixed bugs and added features - in AUCTeX 11.54. - - * auctex.spec (Version): Bump to 11.54. - - * configure.ac: Bump version info to 11.54. - - * doc/auctex.texi: Bump version info to 11.54. - - * doc/tex-ref.tex: Bump version info to 11.54. - -2005-01-07 Ralf Angeli - - * latex.el (LaTeX-forward-paragraph): Allow finding paragraph - commands even if they are preceded by whitespace and comment - starters. - -2005-01-06 Ralf Angeli - - * tex.el (TeX-forward-comment-skip): Differentiate prefixes with - whitespace between comment starters. - - * latex.el: Update copyright information. - (LaTeX-indent-calculate-last, LaTeX-fill-region-as-para-do): Do - not widen. - (LaTeX-fill-region-as-paragraph, LaTeX-fill-region-as-para-do): - Use a marker instead of narrowing the region. - (LaTeX-indent-line, LaTeX-indent-inner-do) - (LaTeX-current-indentation, LaTeX-back-to-indentation): Handle - prefixes with whitespace between comment starters correctly. - -2005-01-05 Reiner Steib - - * style/graphicx.el: Added completion of boxing macros. Fontify - some macros. - - * font-latex.el (font-latex-built-in-keyword-classes): Fixed typo - in doc string. - -2005-01-02 Reiner Steib - - * toolbar-x.el (toolbarx-default-toolbar-meaning-alist): Some - checkdoc related fixes. Still not checkdoc clean. - - * tex-bar.el (Commentary): Don't mention stuff done by - configure/make in the instructions. - (TeX-bar-help-from-command-list): Quote symbols in doc string. - File is checkdoc clean now. - - * doc/auctex.texi: Update copyright. - (Mathematics): Explain how to enable LaTeX-math-mode by default. - Suggested by Chris Wallace . - (Filling, Outline): Markup fixes: Use @lisp instead of @example - where appropriate. - -2004-12-30 Ralf Angeli - - * tex-fold.el (ConTeXt-find-matching-start): Require 'tex and add - autoloads to make the compiler happy. - - * doc/changes.texi: Add and tweak some stuff for 11.54. - -2004-12-28 Ralf Angeli - - * tex.el (TeX-auto-parse-region): Do not add element to `symbol' - if it is already contained. - -2004-12-23 Ralf Angeli - - * latex.el (LaTeX-indent-outer-do): Remove redundant code. - -2004-12-20 Ralf Angeli - - * font-latex.el: Add coding cookie. - (font-latex-quote-end-list): Remove. - (font-latex-quote-list): New variable. - (font-latex-quotes, font-latex-match-quotation): Use it for - generalization. - (font-latex-keyword-matcher): Revert last change. - (font-latex-make-built-in-keywords): Match the empty string only - at the end of multi-char macros. - (font-latex-make-user-keywords): Make sure sedate face is not used - for words right after a "\\". - (font-latex-set-syntactic-keywords): Do not match linebreaks as - delimiters of `verb-like-commands'. - -2004-12-19 Ralf Angeli - - * font-latex.el (font-latex-keyword-matcher): Highlight only first - matched group. - (font-latex-make-built-in-keywords): Set up grouping for warning - keywords and mark its end with "[^A-Za-z@*]". - -2004-12-17 Ralf Angeli - - * latex.el (LaTeX-fill-paragraph): Do not narrow region when code - comments are filled. Fixes wrong indentation if a line with a - code comment following an indented line is filled. - Mark end of current line, not beginning of next. - Jump to start of code comment line after regular filling. - -2004-12-16 Ralf Angeli - - * font-latex.el (font-latex-built-in-keyword-classes): Move - warning keywords up in order to save them from being covered by - less important faces. Include "include" in warning keywords. - - * aclocal.m4 (TEX_INPUT_DIRS): Change `IFS' temporarily for - tokenizing the string instead of inserting newlines. The latter - did not work anyway because there was one backslash too much in - "\\n". Strip trailing slashes of determined directories before - concatenation. - - * doc/install.texi (Configure): Quote value for - --with-tex-input-dirs. - - * doc/wininstall.texi: Quote value for --with-tex-input-dirs. - - * tex.el (TeX-arg-opening-brace, TeX-arg-closing-brace): New - variables. - (TeX-parse-arguments, TeX-parse-argument, TeX-argument-insert): - Use them. - - * latex.el (TeX-arg-free): Temporarily bind - `TeX-arg-opening-brace' and `TeX-arg-closing-brace'. - -2004-12-15 Ralf Angeli - - * tex.el (TeX-source-specials-view-position-flags): Fix syntax for - xdvi. - -2004-12-14 Ralf Angeli - - * doc/auctex.texi (top): Duplicate top node and wrap it in @ifinfo - and @ifhtml environments respectively. - -2004-12-13 Ralf Angeli - - * context.el (ConTeXt-paragraph-commands-regexp): Match any - command starting with "\start" or "\stop" and the respective - language variants. - -2004-12-11 Ralf Angeli - - * tex-fold.el (TeX-fold-keymap): Change key bindings for clearout - commands. - (TeX-fold-item, TeX-fold-remove-overlays): Doc fix. - - * tex.el (TeX-fold-menu): Change display of key bindings for - clearout commands. - - * doc/auctex.texi (Folding): Document new key bindings for - clearout commands. - -2004-12-10 Ralf Angeli - - * tex-fold.el (TeX-fold-keymap): Add key binding for - `TeX-fold-dwim'. - (TeX-fold-dwim): New function. - Add support for folding regions. - (TeX-fold-macro, TeX-fold-env): Call `message' here instead of in - `TeX-fold-item' to get the right return value for the latter. - (TeX-fold-item): Move `message' out to get the right return value. - (TeX-fold-remove-overlays): Signal if an overlay was deleted with - the return value. - - * tex.el (TeX-fold-menu): Add menu entry for `Tex-fold-dwim'. - - * doc/auctex.texi (Folding): Document `TeX-fold-dwim'. - Mention support for folding regions with `TeX-fold-dwim'. - - * doc/changes.texi: Advertise folding and unfolding of regions as - well as DWIM functionality. - - * tex-fold.el (TeX-fold-keymap): Add key bindings for - `TeX-fold-region and `TeX-fold-clearout-region'. - (TeX-fold-region): Make interactive. - - * tex.el (TeX-fold-menu): Add menu entries for folding and - unfolding of regions. - - * doc/auctex.texi (Folding): Document folding and unfolding of - regions. - Document `TeX-fold-dwim'. - - * latex.el (LaTeX-fill-code-comment): Do not hardcode tab width. - -2004-12-09 Ralf Angeli - - * tex-fold.el (TeX-fold-keymap): Add key bindings for - `TeX-fold-paragraph' and `TeX-fold-clearout-paragraph'. - (TeX-fold-buffer): Now calls new `*-region' functions. - (TeX-fold-paragraph): New function. - (TeX-fold-buffer-type): Remove. - (TeX-fold-region): New function. Basically encloses contents of - `TeX-fold-buffer-type' but type parameter is not mandatory - anymore. - (TeX-fold-clearout-buffer): Now calls `TeX-fold-clearout-region'. - (TeX-fold-clearout-paragraph, TeX-fold-clearout-region): New - functions. - - * tex.el (TeX-fold-menu): Add menu entries for folding and - unfolding of paragraphs. - - * doc/auctex.texi (Folding): Document folding and unfolding of - paragraphs. - - * doc/changes.texi: Advertise folding and unfolding of - paragraphs. - - * tex.el (TeX-comment-start-regexp): New variable. - (TeX-comment-or-uncomment-region, TeX-uncomment) - (TeX-forward-comment-skip, TeX-find-macro-end-helper): Use it. - - * latex.el (LaTeX-newline, LaTeX-insert-environment) - (LaTeX-env-item, LaTeX-indent-line, LaTeX-current-indentation) - (LaTeX-fill-region-as-paragraph, LaTeX-fill-region-as-para-do) - (LaTeX-fill-move-to-break-point, LaTeX-fill-paragraph) - (LaTeX-fill-code-comment, LaTeX-fill-region) - (LaTeX-forward-paragraph, LaTeX-backward-paragraph): Use - `TeX-comment-start-regexp' instead of `comment-start'. - (LaTeX-backward-paragraph, LaTeX-indent-line): Simplify. - - * style/mdwlist.el ("mdwlist"): Use `TeX-comment-start-regexp' - instead of `comment-start'. - - * style/doc.el (LaTeX-env-no-comment): Use - `TeX-comment-start-regexp' instead of `comment-start'. - -2004-12-07 Ralf Angeli - - * tex-fold.el (TeX-fold-buffer-type): Do not ignore case during - search. - - * context.el (ConTeXt-paragraph-commands-regexp): New name for - `ConTeXt-paragraph-commands'. Doc fix. Match escape character at - front as well. - (ConTeXt-mode-common-initialization): Use it. Set - `LaTeX-paragraph-commands-regexp' instead of - `LaTeX-paragraph-commands'. Adapt definition of - `paragraph-start'. - -2004-12-05 Ralf Angeli - - * tex.el (hack-one-local-variable): Advise it in order to call - minor mode functions for AUCTeX minor modes activated by - file-local minor mode variables. - - * latex.el (LaTeX-math-mode): Define using `define-minor-mode'. - Make it compatible with older Emacsen. - -2004-12-02 Ralf Angeli - - * style/csquotes.el (LaTeX-csquotes-quote-after-quote): Avoid - interference with (n)german.el. - -2004-12-01 Ralf Angeli - - * Makefile.in (distclean): Remove generated `configure' file. - And revert again as it does not comply with the definition of - standard targets in the GNU make manual. - - * style/jurabib.el ("jurabib"): Add further macros. - - * tex.el: Add coding cookie. - Use punctuation syntax for "«" and "»" characters. - (TeX-parse-argument): Deactivate mark after insertion of first - pair of braces. Fixes problems with the insertion of macros with - more than one brace and an active selection. - - * style/csquotes.el (LaTeX-csquotes-open-quote) - (LaTeX-csquotes-close-quote): Doc fix. - ("csquotes"): Repair quoting. Use completing-read where - possible. Use a stricter test for usage of quotes. - - * doc/auctex.texi (Quotes): Document csquotes.el. - -2004-11-29 Ralf Angeli - - * style/csquotes.el: New file. - - * Makefile.in (STYLESRC): Add style/csquotes.el. - - * doc/changes.texi: Advertise support for csquotes.sty. - -2004-11-29 Reiner Steib - - * tex.el (TeX-auto-insert): Added SKIP argument. - (TeX-auto-store): Use it to avoid circular dependencies. - - * style/graphicx.el (LaTeX-arg-includegraphics): Add "page". - - * latex.el (LaTeX-includegraphics-options-alist): Ditto. - -2004-11-29 Ralf Angeli - - * doc/auctex.texi: Use "auctex.info" instead of "auctex" as info - file name. - - * doc/Makefile.in: Adapt to suit change in info file name from - "auctex" to "auctex.info". - - * doc/.cvsignore: Adapt to suit change in info file name from - "auctex" to "auctex.info". - - * doc/changes.texi: Advertise use of "auctex.info" info file name. - -2004-11-29 Jan-Ake Larsson - - * configure.ac: Add @command macro test - - * configure.in: Moved to configure.ac - - * configure.ac: Moved from configure.in - - * doc/macros.texi: Add @command macro - - * doc/auctex.texi: Change order of @top and @ifnottex, error - message otherwise. - - * doc/Makefile.in: Add MAKEINFO environment variable for texi2... - usage. Remove old (confusing) messages. - -2004-11-28 Ralf Angeli - - * doc/intro.texi (Introduction): @/ unfortunately is only - available since Texinfo 4.6. Remove it for now. - - * doc/auctex.texi: Correct some references. - -2004-11-27 Ralf Angeli - - * doc/auctex.texi: Remove RCS keyword. - Correct subtitle. - Various corrections of filling and capitalization. - Move up installation instructions. - (Display): New node and chapter holding display-related content. - (Font Locking): New node and section. - (Folding): Now a section. Remove the silly first paragraph. - (Outline): Now a section. - - * doc/macros.texi: Add `@fontlatex' macro. - - * doc/install.texi: Specify node unconditionally in the file. - - * doc/intro.texi (Introduction): Use `@email' instead of `@url' - for email addresses. - - * doc/quickstart.texi (Processing): Better heading. - - * font-latex.el: Clean up comments. - (font-latex-built-in-keyword-classes): Add explanation of the - variable structure. - (font-latex-match-command-with-arguments): Change "asterix" to - "asterisk". - -2004-11-25 Ralf Angeli - - * latex.el (LaTeX-backward-paragraph): Jump to macro start. D'oh. - - * texmathp.el: Rearrange variable and function definitions in - order to get as few compiler warnings as possible due to the - reintroduction of the :set function in `texmathp-tex-commands'. - Add a dummy `defvar' for `texmathp-tex-commands' to silence the - compiler. - (texmathp-tex-commands): Reintroduce a :set function as advertised - in `texmathp-compile'. - (texmathp): Remove the conditional call to `texmathp-compile' as - this is handled by the :set function in `texmathp-tex-commands' on - load of the file. - - * tex.el: Autoload `texmathp-match-switch'. - -2004-11-24 Ralf Angeli - - * font-latex.el (font-latex-bold-face, font-latex-italic-face) - (font-latex-math-face, font-latex-string-face) - (font-latex-warning-face, font-latex-verbatim-face): Inherit from - suitable base faces if possible. Doc fix. - (font-latex-sedate-face): Doc fix. - - * latex.el (LaTeX-paragraph-commands): Doc fix. - (LaTeX-backward-paragraph): Do not unnecessarily jump to a (wrong) - position after the macro start. - - * tex.el: Move (nearly all) autoloads to a single place. Remove - redundant autoload for `TeX-region-file'. Add autoload for - `TeX-view'. - (TeX-parse-macro): Doc fix. - Do not add braces for macros defined as `("foo" 0)'. - (TeX-parse-arguments): Do not bind `<' and `>'. - (TeX-parse-argument, TeX-argument-insert): Do not use `<' and `>' - formerly bound by `TeX-parse-arguments'. Fixes some compiler - warnings. - (TeX-auto-list-information): Use `message' correctly. - - * tex-info.el (texinfo-mode): Add `@email' macro. - -2004-11-22 Berend de Boer - - * context.el (ConTeXt-mode-common-initialization): ConTeXt does - not need italics correction. - -2004-11-20 Christian Schlauer - - * doc/auctex.texi (Floats): Update. - - * doc/changes.texi: Mention change of `LaTeX-float'. - - * latex.el (LaTeX-float, LaTeX-env-figure): Implement "do not - prompt" option. `LaTeX-float' has the same customize value menu - like `LaTeX-default-position' now. This implies that the old - meaning nil corresponds to `""' now, while nil means "do not - prompt". - (LaTeX-env-figure): Ask for `Float position' instead of `Float - to'. - (LaTeX-float): New default value "" instead of "htbp" (after a - discussion on the mailing list). - (LaTeX-default-format, LaTeX-default-width) - (LaTeX-default-position): Omit `Specifies the' in doc-string. - -2004-11-19 Miguel Frasson - - * tex-buf.el (TeX-run-TeX): Improve comments. - -2004-11-18 Ralf Angeli - - * tex-buf.el (TeX-TeX-sentinel-check): Use only the letters after - the last dot of a file name for the file extension. - -2004-11-16 Ralf Angeli - - * latex.el (LaTeX-fill-move-to-break-point): Search backward for - \verb|...| constructs rather than forward. Fixes cases with more - than one constructs per line. Reported by Christan Schlauer. - -2004-11-16 David Kastrup - - * doc/wininstall.texi: Clarify --with-xemacs. - -2004-11-15 Ralf Angeli - - * latex.el (LaTeX-paragraph-commands): Now is a customizable list - instead of a regular expression. - (LaTeX-paragraph-commands-internal) - (LaTeX-paragraph-commands-regexp): New variables. - (LaTeX-forward-paragraph, LaTeX-backward-paragraph) - (LaTeX-common-initialization): Use - `LaTeX-paragraph-commands-regexp' instead of - `LaTeX-paragraph-commands'. - -2004-11-12 Ralf Angeli - - * latex.el (LaTeX-close-environment): Insert a newline at the end - of the environment if an uncommented line follows a commented one. - -2004-11-11 Ralf Angeli - - * latex.el (docTeX-in-macrocode-p): Search backward for an - environment beginning rather than forward for its end. - -2004-11-08 David Kastrup - - * latex.el (doctex-mode): Set the mode name. - -2004-11-04 Ralf Angeli - - * tex-info.el (texinfo-mode): Add `@command' macro. - - * doc/auctex.texi (Commands): Correct key binding for - `TeX-Omega-mode'. Add index entry. Use `@command' instead of - `@code' where appropriate. - - * font-latex.el (font-latex-built-in-keyword-classes): Use correct - face for `font-latex-match-title-3'. - -2004-11-04 Miguel Frasson - - * images/amstex.xpm: Added. Contains symbolic color - 'backgroundToolBarColor', required by (GNU/Linux) XEmacs. - -2004-11-03 Christian Schlauer - - * latex.el (LaTeX-env-figure, LaTeX-env-minipage) - (LaTeX-env-tabular*): Do always accept the user's input as the new - buffer-local values for `LaTeX-float' and `LaTeX-default-width', - even if the user entered the empty string. - (LaTeX-env-minipage): Do not ask for the (optional) position if - `LaTeX-default-position' is set to `nil'. Behaviour agrees with - LaTeX-env-array and LaTeX-env-tabular* now. - (LaTeX-env-array, LaTeX-env-tabular*): Changed `setq'-assignment - of `LaTeX-default-position' so that it works not only the first - time in buffers with `LaTeX-default-position' set to `nil'. - (LaTeX-env-array, LaTeX-env-minipage, LaTeX-env-tabular*): Use - `LaTeX-optop', `TeX-grop', etc. instead of `{', `['. - (LaTeX-env-picture): Don't delete whitespace after inserting the - environment. Cursor position corresponds to proper indentation - now. - -2004-11-03 Ralf Angeli - - * tex.el (TeX-delete-dups-by-car): New name for `TeX-delete-dups'. - (TeX-delete-duplicate-strings, TeX-sort-strings): New functions. - Contributed by Reiner Steib and David Kastrup. - - * font-latex.el: Require 'tex. - (font-latex-user-keyword-classes): Enhance :set function to tell - user which entry is duplicated. - - * latex.el (TeX-arg-input-file): Use new name - `TeX-delete-dups-by-car' instead of `TeX-delete-dups'. - - * style/graphicx.el (LaTeX-includegraphics-read-file-TeX): Use - new name `TeX-delete-dups-by-car' instead of `TeX-delete-dups'. - -2004-11-02 Ralf Angeli - - * font-latex.el (font-latex-make-user-keywords): Add the "fixed" - matchers here rather than in `font-latex-make-built-in-keywords'. - - * latex.el (LaTeX-math-default, LaTeX-math-menu): Use "Greek - Uppercase" instead of "Greek" and "Greek Lowercase" instead of - "greek". - -2004-11-02 David Kastrup - - * latex.el (LaTeX-paragraph-commands): Make `\maketitle' a - paragraph starter. - -2004-11-01 Ralf Angeli - - * font-latex.el (font-latex-make-built-in-keywords) - (font-latex-make-user-keywords): Append rather than prepend - matchers. - -2004-11-01 Miguel Frasson - - * toolbar-x.el - (toolbarx-make-command): Code clean up. - -2004-11-01 Ralf Angeli - - * font-latex.el: Change maintainer information. - (font-latex-keywords): New customization group. - (font-latex-built-in-keyword-classes): New variable. - (font-latex-make-match-defun, font-latex-keyword-matcher): New - functions. - (font-latex-make-built-in-keywords): New name for - `font-latex-make-keywords'. - Move default keyword definitions from - `font-latex-match-*-keywords' to - `font-latex-match-*-keywords-local'. - Integrate `font-latex-match-*-keywords-set' function into - `font-latex-match-*-keywords' defcustom. - (font-latex-keywords-1, font-latex-keywords-2): Default to nil. - All matchers are now added in `font-latex-make-built-in-keywords' - and `font-latex-make-user-keywords'. - (font-latex-user-keyword-classes): New variable. - (font-latex-make-user-keywords): New function. - - * doc/changes.texi: Remove duplicate word. - Mention possibility to add new keyword classes. - - * doc/quickstart.texi: Some rewordings, corrections and - enhancements. - -2004-10-29 Ralf Angeli - - * tex.el (TeX-auto-symbol-check): Use `add-to-list' instead of - `cons' in order to avoid duplicates. - - * latex.el (LaTeX-auto-minimal-regexp-list): Use non-greedy - operators for getting the end of a TeX group. - (LaTeX-auto-cleanup): Use `add-to-list' instead of `cons' in order - to avoid duplicates. - -2004-10-29 Miguel Frasson - - * tex-buf.el: Add simple error report system. - (TeX-error-report-switches): New variable (plist). - (TeX-run-TeX), - (TeX-TeX-sentinel-check): Use it, updating error state, - where property is (intern (TeX-master-file)). - - * tex-bar.el: Remove defadvice's to TeX-run-TeX and - TeX-TeX-sentinel-check. - (TeX-bar-error-handling-switches): Removed. - (TeX-bar-LaTeX-button-alist): next-error updated. - -2004-10-28 Reiner Steib - - * tex-bar.el (TeX-bar-LaTeX-button-alist): Add `TeX-save-document'. - - * doc/changes.texi: Renamed function `LaTeX-install-toolbar'. - - * tex-site.el.in: Ditto. - -2004-10-28 Miguel Frasson - - * tex-bar.el: Now requires tex-buf.el, for error handling. - Renamed symbols: - (LaTeX-install-toolbar): New name for `latex-install-toolbar'. - (tex-bar-latex-buttons): New name for `tex-bar-latex-buttons'. - (tex-bar-img-filename): New name for `tex-bar-img-filename'. - (TeX-tool-bar): New name for `tex-tool-bar' group. - (TeX-bar-LaTeX-buttons): New name for `tex-bar-latex-buttons'. - (TeX-bar-LaTeX-all-button-alists): New name for - `tex-bar-latex-all-button-alists'. - (TeX-tool-bar-button-definitions): New name for - `tex-tool-bar-button-definitions'. - (LaTeX-symbols-toolbar-switch-contents): New name for - `latex-symbols-toolbar-switch-contents'. - (LaTeX-symbols-toolbar-contents): New name for - `latex-symbols-toolbar-contents' - (LaTeX-install-toolbar): New name for `latex-install-toolbar'. - - Use separator only in Emacs, while buildin separator is not - implemented for XEmacs. - (TeX-bar-help-from-command-list): New function, that returns the - :help string for ITEM from TeX-command-list. - (TeX-bar-error-handling-switches): New variable. - (TeX-run-TeX [tex-buf.el]): before-adviced to reset error - internals. - (TeX-TeX-sentinel-check [tex-buf.el]): after-adviced to set error - internals when error happens. - (TeX-bar-LaTeX-button-alist): New button next-error, which is - resp. visible/active when error detected on Emacs/XEmacs. All - buttons received :help from TeX-command-list. - (TeX-bar-LaTeX-buttons): next-error is default, and file is no - longer default. - -2004-10-27 Ralf Angeli - - * latex.el (LaTeX-auto-class-regexp-list): New variable. - Match "\DeclareRobustCommand\foo" besides - "\DeclareRobustCommand{\foo}" as well. - (LaTeX-auto-regexp-list): Use it. - (LaTeX-auto-cleanup): Do not consider key=value options. Check - for "Package" in addition to "package". - -2004-10-26 Reiner Steib - - * tex.el (TeX-auto-generate-global): Only parse cls and sty files. - -2004-10-26 Ralf Angeli - - * font-latex.el (font-latex-match-command-in-braces): Remove - references to non-existent variables. - -2004-10-26 Reiner Steib - - * latex.el (LaTeX-math-list): Improve doc string and custom type. - (LaTeX-math-default): Added doc string. - -2004-10-26 Frank Küster - - * doc/quickstart.texi: Don't use so many nodes. Several fixes. - -2004-10-26 Reiner Steib - - * Makefile.in (tar-ball): Don't include CVS stuff. - - * doc/changes.texi: Mention experimental tool bar support. - - * Makefile.in (tar-ball): Include tex-bar images. - -2004-10-25 David Kastrup - - Toolbar patches by Reiner Steib - * Makefile.in (aucteximagedir): Define. - (AUCSRC, AUCELC): Add toolbar files. - (install-images): new target. - - * tex-site.el.in (TeX-image-directory): Define. - - * tex-bar.el (toolbar-x): require toolbar and latex at runtime. - -2004-10-24 Reiner Steib - - * Makefile.in (DOCFILES): Added doc/quickstart.texi. - -2004-10-23 Miguel Frasson - - * toolbar-x.el: - (toolbarx-emacs-mount-popup-menu): Nil cannot be a menu key - anymore (fixed). - (toolbarx-test-image-type): Improve comments. Add support for - variables defined with `defimage', which are considered a simple - value for the :image property. - (toolbarx-emacs-refresh): Nil cannot be a toolbar (menu) key - anymore (fixed). - (toolbarx-install-toolbar): Improved documentation for the :image - property. - -2004-10-22 Miguel Frasson - - * tex-bar.el: Improve comments. Symbol-toolbar code moved to the - bottom of the file. - (tex-bar-latex-buttons): Improve comments. Add custom :type. - (tex-bar-latex-buttons): New command -- display a list of defined - buttons. - (tex-bar-available-meaning-alists): Removed (renamed). - (tex-bar-latex-all-button-alists): New name of - `tex-bar-available-meaning-alists'. Add custom :type. - (tex-bar-meaning-alist): Removed (renamed). - (tex-bar-latex-button-alist): New name of `tex-bar-meaning-alist'. - Add custom :type. Renamed `latex-symbols' button to - `latex-symbols-experimental'. - - * toolbar-x.el: Improve comments. - (toolbarx-process-group-without-insert): Become autoloaded. - (toolbarx-process-group): Code cleanup. - (toolbarx-process-symbol): Code cleanup. - (toolbarx-default-toolbar-meaning-alist): Separator button label - renamed from `:sep' to `separator'. - -2004-10-22 Reiner Steib - - * doc/auctex.texi (European): Adjust to change of - `LaTeX-italian-open-quote'. - -2004-10-20 Ralf Angeli - - * aclocal.m4 (TEX_INPUT_DIRS): Do not use -e command line option - for grep. - -2004-10-18 Reiner Steib - - * doc/quickstart.texi: Fix markup. - -2004-10-18 Frank Küster - - * doc/quickstart.texi: New chapter. - - * doc/changes.texi: Mention `Quick Start'. - - * doc/auctex.texi (Font Specifiers): Add \textrm and \textsf - (Commands): Add TeX-Omega-mode - (top): Print contents near at the beginning. - - * doc/macros.texi: New macro @sans. - - * doc/intro.texi (Introduction): Removed sections obsoleted by - `Quick Start' (Indentation and filling, Completion, Editing your - document, Outlines). - -2004-10-18 Reiner Steib - - * doc/todo.texi, doc/install.texi, doc/history.texi, - doc/changes.texi, doc/auctex.texi: Remove optional arguments of - all @node commands. - - * doc/Makefile.in (TEXIFILES): Added quickstart.texi. - -2004-10-18 Frank Küster - - * doc/Makefile.in (TEXIFILES): Add macros.texi. - (auctex.dvi, auctex.pdf): Depend on TEXIFILES. - -2004-10-18 Christian Schlauer - - * latex.el (LaTeX-env-figure, LaTeX-env-minipage): Point out to - the user that the placement (figure) and position (minipage) - specifiers are optional arguments. - (LaTeX-env-figure): Simplified. Do not insert the (optional) - placement specifier `LaTeX-float' into the buffer if the user - entered the empty string when asked for `float'. - -2004-10-18 Ralf Angeli - - * font-latex.el (font-latex-make-keywords): Correctly evaluate - keywords when making `font-latex-match-*-keywords' defcustom. - -2004-10-17 Ralf Angeli - - * doc/todo.texi (Bugs): Document some bugs related to font locking - and folding. - - * latex.el (LaTeX-insert-environment): Partial rewrite. Stay in - comments. Do not comment uncommented following lines. Get rid of - redundant comment prefix. - (LaTeX-indent-calculate): Check for beginning of buffer. - (LaTeX-indent-calculate-last): Do not check for beginning of - buffer. Fixes wrong indentation of environments at the top of the - buffer. - -2004-10-16 Ralf Angeli - - * tex-fold.el (TeX-fold-macro-nth-arg): Use - `TeX-find-closing-brace' instead of `forward-sexp'. Fixes - problems with comment characters in \url macros. - - * latex.el (LaTeX-paragraph-commands): Use `regexp-opt' to - generate the regexp. - (LaTeX-common-initialization): Add support for "$$" to - `paragraph-start'. - - * context.el (ConTeXt-mode-common-initialization): Add support for - "$$" to `paragraph-start'. - - * font-latex.el: Remove change log. - (font-latex-make-keywords): New function. - (font-latex-match-variable-keywords-local) - (font-latex-match-variable-make) - (font-latex-match-variable-keywords-set) - (font-latex-match-variable-keywords, font-latex-match-variable) - (font-latex-match-reference-keywords-local) - (font-latex-match-reference-make) - (font-latex-match-reference-keywords-set) - (font-latex-match-reference-keywords) - (font-latex-match-reference) - (font-latex-match-function-keywords-local) - (font-latex-match-function-make) - (font-latex-match-function-keywords-set) - (font-latex-match-function-keywords, font-latex-match-function) - (font-latex-match-title-1-keywords-local) - (font-latex-match-title-1-make) - (font-latex-match-title-1-keywords-set) - (font-latex-match-title-1-keywords, font-latex-match-title-1) - (font-latex-match-title-2-keywords-local) - (font-latex-match-title-2-make) - (font-latex-match-title-2-keywords-set) - (font-latex-match-title-2-keywords, font-latex-match-title-2) - (font-latex-match-title-3-keywords-local) - (font-latex-match-title-3-make) - (font-latex-match-title-3-keywords-set) - (font-latex-match-title-3-keywords, font-latex-match-title-2) - (font-latex-match-title-4-keywords-local) - (font-latex-match-title-4-make) - (font-latex-match-title-4-keywords-set) - (font-latex-match-title-4-keywords, font-latex-match-title-2) - (font-latex-match-textual-keywords-local) - (font-latex-match-textual-make) - (font-latex-match-textual-keywords-set) - (font-latex-match-textual-keywords, font-latex-match-textual) - (font-latex-match-warning-keywords-local) - (font-latex-match-warning-make) - (font-latex-match-warning-keywords-set) - (font-latex-match-warning-keywords, font-latex-match-warning) - (font-latex-match-warning-function): Now generated by - `font-latex-make-keywords'. - (font-latex-match-bold-command-keywords-local) - (font-latex-match-bold-command-keywords) - (font-latex-match-bold-command) - (font-latex-match-italic-command-keywords-local) - (font-latex-match-italic-command-keywords) - (font-latex-match-italic-command) - (font-latex-match-math-command-keywords-local) - (font-latex-match-math-command-keywords) - (font-latex-match-math-command) - (font-latex-match-type-command-keywords-local) - (font-latex-match-type-command-keywords) - (font-latex-match-type-command) - (font-latex-match-bold-declaration-keywords-local) - (font-latex-match-bold-declaration-keywords) - (font-latex-match-bold-declaration) - (font-latex-match-italic-declaration-keywords-local) - (font-latex-match-italic-declaration-keywords) - (font-latex-match-italic-declaration) - (font-latex-match-type-declaration-keywords-local) - (font-latex-match-type-declaration-keywords) - (font-latex-match-type-declaration): New variables generated by - `font-latex-make-keywords'. - (font-latex-match-bold-command) - (font-latex-match-bold-command-make) - (font-latex-match-bold-command-keywords-set) - (font-latex-match-italic-command) - (font-latex-match-italic-command-make) - (font-latex-match-italic-command-keywords-set) - (font-latex-match-math-command) - (font-latex-match-math-command-make) - (font-latex-match-math-command-keywords-set) - (font-latex-match-type-command) - (font-latex-match-type-command-make) - (font-latex-match-type-command-keywords-set) - (font-latex-match-bold-declaration) - (font-latex-match-bold-declaration-make) - (font-latex-match-bold-declaration-keywords-set) - (font-latex-match-italic-declaration) - (font-latex-match-italic-declaration-make) - (font-latex-match-italic-declaration-keywords-set) - (font-latex-match-type-declaration) - (font-latex-match-type-declaration-make) - (font-latex-match-type-declaration-keywords-set): New functions - generated by `font-latex-make-keywords'. - (font-latex-keywords-1): Use new functions. - (font-latex-bold-command-keywords) - (font-latex-italic-command-keywords) - (font-latex-math-command-keywords) - (font-latex-type-command-keywords) - (font-latex-bold-declaration-keywords) - (font-latex-italic-declaration-keywords) - (font-latex-type-declaration-keywords): Remove. - (font-latex-match-command-with-arguments): New name for - `font-latex-match-command-outside-arguments'. Third argument now - is an integer instead of a binary. It specifies the number of - mandatory arguments of a LaTeX macro. Simplify the function. - (font-latex-match-font-cache) - (font-latex-match-font-outside-braces): Remove. - (font-latex-match-in-brace-cache): New name for - `font-latex-match-infont-cache'. - (font-latex-match-command-in-braces): New name for - `font-latex-match-font-inside-braces'. Generalize, so that it can - be used for any command and does not return a special, complex - match. - (font-latex-set-syntactic-keywords): Try to minimize false - fontifications of macros which may look like \foo{bar} and - \foo{bar{. - (font-latex-commented-outp): Do not consider comment characters in - verbatim content. - -2004-10-15 Reiner Steib - - * latex.el (LaTeX-default-format, LaTeX-default-width) - (LaTeX-default-position): Fix doc strings. - -2004-10-14 Reiner Steib - - * latex.el (LaTeX-default-width): Make it buffer local. - (LaTeX-env-minipage): Pick up new value of LaTeX-default-width. - -2004-10-14 Ralf Angeli - - * tex-fold.el (TeX-fold-macro-spec-list): Add starred sectioning - commands. - - * latex.el (LaTeX-fill-region-as-paragraph): Do not add linebreaks - after "$$ " at the end of paragraph filling. - (LaTeX-fill-move-to-break-point): Simplify. Add support for - $$...$$ type display math. - - * style/jurabib.el: New file. - - * Makefile.in (STYLESRC): Add jurabib.el. - - * doc/changes.texi: Mention support for the jurabib package. - -2004-10-14 Miguel Frasson - - * auctb.el: Removed (renamed to tex-bar.el) - - * tex-bar.el: Added; (new name of auctb.el). Added support for - buttons and customization. - (install-auctex-toolbar): removed. - (tex-tool-bar): New custom group, inside AUCTeX group. - (tex-tool-bar-button-definitions): New custom group, inside - tex-tool-bar group. - (tex-bar-latex-buttons): New custom variable: buttons in LaTeX - mode. - (tex-bar-meaning-alist): New custom variable. - (tex-bar-available-meaning-alists): New custom variable: - collection of variables for meaning-alists. - (latex-install-toolbar): New function: install the toolbar for - LaTeX mode. - (latex-symbols-toolbar-contents): added separator between symbol - switches and symbols. - - * toolbarx.el: Removed (renamed to toolbar-x.el) - - * toolbar-x.el: Added; (new name of toolbarx.el). - (toolbarx-default-toolbar-meaning-alist) Added `:sep' button. - (toolbarx-emacs-add-button): clean up. - -2004-10-13 Reiner Steib - - * latex.el (LaTeX-default-width): New variable. - (LaTeX-env-minipage, LaTeX-env-tabular*): Use it. - (LaTeX-environment): Mention it in the doc string. - (LaTeX-env-label): Reindent. - - * tex.el (TeX-delete-dups): Use our own (faster) version. - - * latex.el (LaTeX-env-array, LaTeX-env-minipage) - (LaTeX-env-tabular*): Don't delete whitespace after inserting the - environment. Cursor position corresponds to proper indentation - now. From Christian Schlauer with some - modifications. - -2004-10-12 Reiner Steib - - * doc/auctex.texi (Completion): Mention `C-c RET' for - `TeX-insert-macro'. Fixed typo. - (Parsing Files): Fixed typo. - (European): Improved. - From Frank Küster , slightly modified. - - * latex.el (LaTeX-common-initialization): Use `LaTeX-env-tabular*' - for "tabular*". - -2004-10-12 Ralf Angeli - - * tex-info.el (Texinfo-insert-node): Emacs 21.3 and earlier - expect a list of lists. - - * tex.el: Cater for `delete-selection-mode'. - `eval-after-load' (used for support of desktop.el) in Emacs 21.3 - and earlier expects a string, not a symbol. - (TeX-point-is-escaped): Remove. Implementation of - `TeX-escaped-p', which does the same, is slightly nicer. - (TeX-insert-dollar): Use `TeX-escaped-p'. - -2004-10-11 Ralf Angeli - - * font-latex.el: Small clean-ups and rearrangements. - (font-latex-match-variable-keywords) - (font-latex-match-reference-keywords) - (font-latex-match-function-keywords) - (font-latex-match-title-1-keywords) - (font-latex-match-title-2-keywords) - (font-latex-match-title-3-keywords) - (font-latex-match-title-4-keywords) - (font-latex-match-textual-keywords) - (font-latex-match-warning-keywords): Remove redundant defvars. - (font-latex-match-variable, font-latex-match-reference) - (font-latex-match-function, font-latex-match-title-1) - (font-latex-match-title-2, font-latex-match-title-3) - (font-latex-match-title-4, font-latex-match-textual) - (font-latex-match-warning): Set default values and make - buffer-local. - (font-latex-match-reference): Add doc string. - (font-latex-set-syntactic-keywords): Do not set comment syntax. - -2004-10-10 Ralf Angeli - - * style/booktabs.el, style/captcont.el, style/fancyref.el, - style/mdwlist.el, style/natbib.el, style/nicefrac.el, - style/paralist.el, style/scrbase.el, style/scrbook.el, - style/scrlttr2.el, style/scrpage2.el, style/scrreprt.el, - style/subfigure.el, style/units.el (TeX-add-style-hook): Do not - set up font-latex variables if font-latex is not loaded and - enabled. - - * style/alltt.el, style/listings.el, style/url.el - (TeX-add-style-hook): Do not set up font-latex variables if - font-latex is not loaded and enabled. Reinitialize font-lock - defaults. - - * font-latex.el: Do not autoload `texmathp'. - (font-latex-fontify-script): Doc fix. - (font-latex-script): Do without `texmathp'. - (font-latex-syntactic-keywords): Default to nil. - Make buffer-local. - (font-latex-setup): Set syntactic keywords. - -2004-10-08 Reiner Steib - - * tex.el (TeX-update-style, TeX-parse-arguments) - (TeX-parse-argument, VirTeX-common-initialization) - (TeX-auto-parse-region): Simplify code by using `unless'. - -2004-10-08 Ralf Angeli - - * tex.el (TeX-search-forward-unescaped) - (TeX-search-backward-unescaped, TeX-re-search-forward-unescaped) - (TeX-search-unescaped, TeX-escaped-p): New functions. - (TeX-find-macro-boundaries): Use `TeX-escaped-p'. - - * latex.el (LaTeX-newline, LaTeX-current-indentation) - (LaTeX-fill-region-as-para-do, LaTeX-fill-move-to-break-point): - Use new search functions from tex.el. - - * tex-fold.el (TeX-fold-make-overlay, TeX-fold-hide-item) - (TeX-fold-show-item): Respect `font-lock-mode'. - - * style/amstex.el: Add copyright and license information. - ("amstex"): Do not load amsmath.el in `plain-tex-mode' or - `ams-tex-mode'. - -2004-10-06 Ralf Angeli - - * texmathp.el (texmathp): Limit environment search with result of - macro search if possible. - - * font-latex.el (font-latex-verb-like-commands): New variable. - (font-latex-set-syntactic-keywords): Use it. - (font-latex-match-command-outside-arguments) - (font-latex-match-font-outside-braces) - (font-latex-match-font-inside-braces): Check face at the beginning - of the match to make keyword fontification possible even if a - macro's argument was already fontified due to syntactic keyword - fontification. - - * style/listings.el (TeX-add-style-hook): Suppress indentation in - lstlisting environments. Fontify both \lstinline|...| and - \lstinline{...}. Add lstlisting environment to - `LaTeX-verbatim-regexp'. - - * style/url.el (TeX-add-style-hook): Treat arguments \url|...| and - \url{...} as verbatim. - - * style/alltt.el (TeX-add-style-hook): Use buffer-local variable - `font-latex-verbatim-environments-local'. - -2004-10-05 Miguel Frasson - - * toolbarx.el (toolbarx-default-toolbar-meaning-alist): New - constant, providing a MEANING-ALIST for the insertion of the - default buttons and some extra ones in Emacs and XEmacs. - -2004-10-05 Ralf Angeli - - * tex.el (TeX-output-view-style): Move more special items upwards. - Remove "a4" and "a5" styles. - -2004-10-04 Miguel Frasson - - * toolbarx.el: - (toolbarx-emacs-add-button) - (toolbarx-test-image-type): Add Emacs `image descriptor' as valid - image specification (Emacs only). - (toolbarx-emacs-add-button): "transp-strip" is new `tranparent - strip' image file. - - * images/bibtex.xpm, images/dvipdf.xpm, images/dvips.xpm, - * images/error.xpm, images/exec.xpm, images/execbibtex.xpm, - * images/execdvips.xpm, images/execerror.xpm, - * images/execpdftex.xpm, images/exectex.xpm, - * images/execviewdvi.xpm, images/execviewpdf.xpm, - * images/execviewps.xpm, images/gv.xpm, images/jumpdvi.xpm, - * images/pdftex.xpm, images/pspdf.xpm, images/sep.xpm, - * images/tex.xpm, images/view.xpm, images/viewdvi.xpm, - * images/viewpdf.xpm, images/viewps.xpm: Add symbolic color - 'backgroundToolBarColor' to make pics work in (GNU/Linux) XEmacs - -2004-10-02 Ralf Angeli - - * font-latex.el: Some clean-ups, rearrangements and performance - improvements. - (font-latex-verbatim-face): XEmacs does not like :inherit. - (font-latex-setup): Activate `font-latex-syntactic-face-function'. - (font-latex-faces-present-p): New function. - (font-latex-match-command-outside-arguments): Use it. - (font-latex-bold-command-keywords) - (font-latex-italic-command-keywords) - (font-latex-math-command-keywords) - (font-latex-type-command-keywords): New variables. - (font-latex-match-font-outside-braces): Use them. - Check for comment and verbatim faces. - (font-latex-bold-declaration-keywords) - (font-latex-italic-declaration-keywords) - (font-latex-type-declaration-keywords): New variables. - (font-latex-match-font-inside-braces): Use them. - Check for comment and verbatim faces. - (font-latex-script): Use `font-latex-faces-present-p'. - - * doc/changes.texi: Add some new features and fixed bugs. - -2004-09-29 Miguel Frasson - - * images/bibtex.xpm, images/dvipdf.xpm, images/dvips.xpm, - * images/error.xpm, images/exec.xpm, images/execbibtex.xpm, - * images/execdvips.xpm, images/execerror.xpm, - * images/execpdftex.xpm, images/exectex.xpm, - * images/execviewdvi.xpm, images/execviewpdf.xpm, - * images/execviewps.xpm, images/gv.xpm, images/jumpdvi.xpm, - * images/pdftex.xpm, images/pspdf.xpm, images/sep.xpm, - * images/tex.xpm, images/view.xpm, images/viewdvi.xpm, - * images/viewpdf.xpm, images/viewps.xpm: Add designed images for - toolbar buttons. - -2004-09-29 Ralf Angeli - - * font-latex.el (font-latex-do-multi-line): Add new option and use - it as default value. - (font-latex-use-cache): New variable. - (font-latex-match-command-outside-arguments) - (font-latex-match-font-outside-braces) - (font-latex-match-font-inside-braces): Use it. - (font-latex-check-cache): Do not check if cache is to be used. - (font-latex-setup): Set up multi-line font locking. - -2004-09-28 Miguel Frasson - - * toolbarx.el: Support for grouping `:insert' clauses in the 3 - engines (performance improvement.) Better comments and - docstrings. - (toolbarx-process-symbol): Fix `nreverse'-missing bug. - - * auctb.el: Fix Copyright notice (to FSF). Remove "AMS Special" - from ppup menu. Simplify. Remove garbage comments from end. - (auctb-img-filename): Remove "symb-pics/" from return. Add - "symb-pics/" explicitly where it is needed in the defconst's. - - * images, images/dropdown.xpm, images/ltx-symb-turn-off.xpm, - * images/ltx-symb-turn-on.xpm: Add designed images for symbol - toolbar. - -2004-09-28 Ralf Angeli - - * font-latex.el: Add change log entries and bump version. - (font-latex-find-matching-close): Fix typo in last commit. - (font-latex-match-font-inside-braces): Set actual numbers in the - match, not nil. Fixes errors with `font-lock-multiline' enabled. - -2004-09-27 David Kastrup - - * font-latex.el (font-latex-find-matching-close): Simplify. - - * latex.el (LaTeX-math-default): Use `W in math mode for the Omega - letter. - - * tex.el (TeX-find-macro-start-helper): Simplify. - (TeX-find-macro-end-helper): Simplify. - (TeX-find-macro-end-helper): Stop if `forward-sexp' fails. - - * doc/todo.texi (Wishlist): Macro spell checking mentioned. - -2004-09-26 Miguel Frasson - - * toolbarx.el: Add to cvs (first version). - - * auctb.el: Add to cvs (first version); features only a symbol - toolbar. - -2004-09-24 Davide G. M. Salvetti - - * configure.in: Add `--(en|dis)able-build-dir-test' switch to - allow disabling `VALID_BUILD_DIR'. - -2004-09-22 Ralf Angeli - - * tex.el (VirTeX-common-initialization): Revert last change. - - * font-latex.el (font-latex-keywords-2): Use function - `font-latex-match-script' instead of regexp directly. - (font-latex-fontify-script): Doc fix. - (font-latex-match-script): Reintroduce. - -2004-09-19 Ralf Angeli - - * latex.el (LaTeX-verbatim-macros): New variable. - (LaTeX-fill-move-to-break-point): Do not break inside of macros - defined in `LaTeX-verbatim-macros'. - (LaTeX-fill-newline): Do not trigger auto-fill. - - * style/listings.el (TeX-add-style-hook): Add "lstinline" to - `LaTeX-verbatim-macros'. - - * font-latex.el (font-latex-set-syntactic-keywords): "*" is not - allowed as a \verb delimiter. - - * doc/todo.texi (Bugs): Another bug gone the way of the poodle. - -2004-09-18 Ralf Angeli - - * latex.el (LaTeX-indent-line): Use XEmacs' functions to deal with - extents/overlays. Avoids dependence on overlay.el. - (LaTeX-fill-region-as-paragraph): Inhibit filling of "Local - Variables" section, if to be filled as a paragraph. - - * style/url.el: Add some (low-level) symbols for completion and - fontification. - (TeX-arg-urlstyle): New function. - - * doc/todo.texi (Bugs): Remove some obsolete bug descriptions. - -2004-09-17 Ralf Angeli - - * font-latex.el (font-latex-verbatim-environments): Change from - defvar to defcustom. - (font-latex-verbatim-environments-local) - (font-latex-verbatim-macros) - (font-latex-verbatim-macros-local): New variables. - (font-latex-set-syntactic-keywords): Use them. - - * style/listings.el: New file. - - * Makefile.in (STYLESRC): Add it. - - * doc/changes.texi: Mention support for listings.sty. - -2004-09-16 Reiner Steib - - * doc/changes.texi: Mention built fixes. - -2004-09-16 Ralf Angeli - - * font-latex.el (font-latex-commented-outp): Reimplement for - better performance. - - * doc/changes.texi: Streamline documentation of performance - changes. - - * tex.el (TeX-search-syntax-table): Make XEmacs happy. - (VirTeX-common-initialization): Append our stuff to the end of - `find-file-hooks'. Fixes problems with `auto-insert-mode'. - -2004-09-15 Jan-Åke Larsson - - * aclocal.m4 (EMACS_LISP): quote ${emacs}, Windows.... - -2004-09-13 Ralf Angeli - - * doc/changes.texi: Add changes from 11.51 up to now. - - * style/url.el: New file. - - * Makefile.in (STYLESRC): Add style/url.el. - -2004-09-12 Ralf Angeli - - * font-latex.el (font-latex-keywords-1): Add highlighter for math - macros. - (font-latex-keywords-2): Use regexp for matching instead of - `font-latex-match-script'. - (font-latex-match-font-outside-braces): Add support for math, esp. - "\ensuremath". - (font-latex-match-script): Remove. - (font-latex-script): Fix check for present faces. Add `texmathp' - check in case there is no math face present. - -2004-09-09 Reiner Steib - - * aclocal.m4 (texinputdirs): Strip leading "!!". - -2004-09-08 Reiner Steib - - * latex.el (TeX-arg-input-file): Remove duplicates from the - completion list. Simplify code by using `unless'. - -2004-09-08 Ralf Angeli - - * tex-info.el (Texinfo-insert-node): New function. - (Texinfo-mode-map): Use it. - -2004-09-07 Davide G. M. Salvetti - - * aclocal.m4 (EMACS_LISP): Sync echo output with real emacs - invocation. - -2004-09-07 Ralf Angeli - - * tex-info.el (Texinfo-insert-environment): Add a space between - inserted "@end" and environment name in case of active region. - -2004-09-05 Ralf Angeli - - * tex.el (TeX-search-syntax-table): New function and variable. - (TeX-find-balanced-brace): New function. - (TeX-find-closing-brace): Use `TeX-find-balanced-brace'. - (TeX-find-opening-brace): Ditto. - (TeX-find-macro-boundaries): Add `lower-bound' argument. - (TeX-find-macro-start-helper): Add `limit' argument. - (TeX-find-macro-start): Ditto. - -2004-08-31 Reiner Steib - - * doc/changes.texi: Add `LaTeX-includegraphics-read-file'. - Mention use of `start' for MikTeX and fpTeX. - - * latex.el (LaTeX-includegraphics-read-file): New variable. - - * tex.el (TeX-delete-dups): New defun or defalias. - - * style/graphicx.el (LaTeX-includegraphics-read-file-TeX): Renamed - from `LaTeX-includegraphics-read-file'. Remove duplicates using - `TeX-delete-dups'. - (LaTeX-includegraphics-read-file-relative): Insert relative - filename. From Dan Nicolaescu . - (LaTeX-arg-includegraphics): Use funcall for image-file. - -2004-08-28 David Kastrup - - * Version 11.53 released. - -2004-08-28 David Kastrup - - * doc/tex-ref.tex: Bump version. - - * configure.in: Bump version number. - - * auctex.spec (Version): bump to 11.53. - - * doc/auctex.texi: Bump version to 11.53. - -2004-08-28 Ralf Angeli - - * Makefile.in (install-el): Fix typos. - -2004-08-27 Reiner Steib - - * tex.el (TeX-kpathsea-format-alist): Added - LaTeX-includegraphics-extensions. - (TeX-search-files): Fix non-kpathsea case. - - * style/graphicx.el (LaTeX-includegraphics-read-file): Use - completion based on TeX-search-files. - -2004-08-27 Ralf Angeli - - * tex-fold.el (TeX-fold-preserve-comments): New variable. - (TeX-fold-buffer-type): Use it. - - * font-latex.el (font-latex): Add to AUCTeX's customization group. - (font-latex-find-matching-close): Correctly recognize multiple - escape characters. Add missing paren. - -2004-08-26 Masayuki Ataka - - * tex-site.el.in (japanese-slitex-mode): Removed obsolete autoload - of slitex. - - * tex-jp.el (japanese-plain-tex-mode, japanese-latex-mode): Use - `TeX-defun' for getting version info into mode doc. - -2004-08-26 Ralf Angeli - - * tex-mik.el: Use `start' instead of the respective executable for - PostScript, PDF and HTML files. - - * tex-fptex.el: Ditto. - -2004-08-25 Ralf Angeli - - * tex.el (TeX-find-macro-boundaries): Detect the start of any - macro, not just those consisting of [A-Za-z@]. - Remove some superfluous `goto-char' calls. - (TeX-find-macro-start-helper): Reimplement once again. Original - patch by David Kastrup; slightly modified. Doc fix. - (TeX-find-macro-end-helper): Doc fix. Handle macros not - consisting of [A-Za-z@] correctly. - (TeX-find-opening-brace): Improve performance. - -2004-08-25 Reiner Steib - - * tex.el: Autoload `TeX-process-set-variable' and `TeX-region-file'. - -2004-08-25 Jan-Åke Larsson - - * aclocal.m4: EMACS_PATH_LISPDIR: Expand lispdir if relative to - binary. Quote lispdir, and deal with exec_prefix, add missing - bracket. - - * aclocal.m4: Fix xemacs<->emacs mistake, restore path searching - when --without-packagedir is given - - * configure.in: enable --without-packagedir - - * aclocal.m4: Barf if packagedir not found, don't bother with - load-path on xemacs' lispdir - -2004-08-25 David Kastrup - - * tex-buf.el (TeX-command): Call `TeX-process-set-variable' with - correct options, so that the viewer command is next unless - overridden. - - * tex.el (TeX-set-mode-name): Set `TeX-command-next' in the - buffers where they actually count. - -2004-08-24 David Kastrup - - * latex.el (LaTeX-math-default): Correctly code "jmath" and - "Bbbk". - -2004-08-24 Reiner Steib - - * doc/auctex.texi (Mathematics): Add `LaTeX-math-menu-unicode'. - (Changes): Refer to `history.texi' _after_ the newer changes. - - * doc/changes.texi: Added versions 11.51-11.53. - -2004-08-24 Ralf Angeli - - * tex.el (VirTeX-common-initialization): Use "%" instead of - `comment-start' for `comment-start-skip'. - (TeX-find-opening-brace): Do not use an inverse matcher but negate - the whole expression. - (TeX-find-macro-start-helper): Reimplement. Should be much faster - now. - - * latex.el (LaTeX-current-environment): Use - `buffer-substring-no-properties'. - (LaTeX-indent-line): Revert last change. Only multi-line overlays - at the start of a line are affected by the XEmacs bug. - - * tex-info.el (Texinfo-environment-list): Add "command" macro. - -2004-08-24 Reiner Steib - - * doc/install.texi (Prerequisites): Add `easy-mmode.el' update for - XEmacs. - -2004-08-23 David Kastrup - - * latex.el (LaTeX-indent-line): Get all overlays, not just one. - (LaTeX-math-default): Add iota. - (LaTeX-math-default): Use different symbol for triangle. - (LaTeX-math-default): Don't use `?\S-e' for `?E'. - - * tex.el (TeX-match-buffer): Use `buffer-substring-no-properties' - (TeX-in-commented-line): Use `skip-chars-forward' and `forward-line'. - (TeX-in-line-comment): Use `forward-line'. - (TeX-brace-count-line): Use `skip-chars-forward'. - - * RELEASE: Some updates. - - * latex.el (LaTeX-section): Use an active region as title if available. - (LaTeX-section-title): Prompt with title if present. Should we - ask at all? - (LaTeX-math-list): Add Unicode code point. - (LaTeX-math-menu-unicode): New customization variable for unicode - in math menu. Only set in GTK Emacs for now. Does not work on - XEmacs. Use it for initializing the menus. Also prefix menu - points with backslash. - - * Makefile.in (.PHONY): Declare a bunch of phony targets to - protect against users making files/directories with that name (in - particular "lisp"). - -2004-08-22 David Kastrup - - * style/italian.el ("italian"): Don't overwrite existing local - variable settings. - - * style/ngerman.el ("ngerman"): Don't overwrite existing local - variable settings. - - * style/german.el ("german"): Don't overwrite existing local - variable settings. - - * tex.el (TeX-set-mode-name, TeX-PDF-mode): XEmacs needs two - arguments for `local-variable-p'. - -2004-08-20 David Kastrup - - * tex.el (desktop): Save TeX-Omega-mode, too. - - * Makefile.in (full-release): Source rpm is auctex, not - auctex-emacs. - - * auctex.spec (Provides): Provide auctex as well to satisfy - preview-latex. create package emacs nevertheless. - - * Version 11.52 released. - -2004-08-20 David Kastrup - - * tex.el (AUCTeX-version): move to front and also eval when - compiling. Other version info moved, too. - (TeX-defun): Macro for putting version info into definition. - (plain-tex-mode): Use `TeX-defun'. - (ams-tex-mode): Use `TeX-defun'. - - * tex-info.el (texinfo-mode): Use `TeX-defun' for getting version - info into mode doc. - - * latex.el (latex-mode): Use `TeX-defun' for getting version info - into mode doc. - - * context.el (context-mode): Use `TeX-defun' for getting version - info into mode doc. - - * auctex.spec (BuildRoot): New naming scheme. - - * RELEASE: Add `DESTDIR' blurb. - -2004-08-19 David Kastrup - - * auctex.spec: Change `tex-site.el' to overwriting config file - mode. - - * tex.el (plain-tex-mode): Move menu initializiation here instead - of `plain-TeX-common-initialization'. We don't want "TeX" menus - in `ConTeXt-mode' or `AmSTeX-mode'. - (plain-TeX-common-initialization): remove `easy-menu-add' here. - (TeX-common-menu-entries): Change "Customize" strategy again. - (plain-TeX-menu-entries): Move from `plain-TeX-menu'. - (plain-TeX-mode-menu): Use `plain-TeX-menu-entries'. - (AmSTeX-mode-map): Derive from `TeX-mode-map' not - `plain-TeX-mode-map'. - (AmSTeX-mode-menu): Define menu for `AmSTeX-mode'. - (ams-tex-mode): Add menus in proper order. - - * tex-info.el (texinfo-mode): Swap order of `easy-menu-add'. - - * latex.el (LaTeX-common-initialization): Swap order of - `easy-menu-add'. - - * context.el (ConTeXt-mode-common-initialization): Swap order of - `easy-menu-add', move `major-mode' init to front. - - * latex.el (LaTeX-common-initialization): Exchange order of - `easy-menu-add' to get better menu layout in XEmacs. - -2004-08-19 Reiner Steib - - * auctex.spec (description): Overhauled. - - * doc/install.texi: Markup fixes, see "(texinfo)command". - - * doc/wininstall.texi: Ditto. - -2004-08-19 David Kastrup - - * latex.el (LaTeX-mode-menu): Use `TeX-common-menu-entries'. - - * tex-info.el (Texinfo-mode-menu): Use `TeX-common-menu-entries'. - - * tex.el (ams-tex-mode): Add `plain-TeX-mode-menu' here. Doh. - - * context.el (ConTeXt-mode-menu): Use `TeX-menu-with-help' instead - of `TeX-maybe-remove-help'. - (ConTeXt-mode-menu): Use `TeX-common-menu-entries'. - - * tex.el (TeX-customization-menu): Save the customization menu - here when generated, so that we have it available in all modes. - (TeX-common-menu-entries): The common menu entries for TeX modes. - (plain-TeX-mode-menu): Use `TeX-common-menu-entries'. - - * configure.in: export `localstatedir'. - - * Makefile.in (localstatedir): import `localstatedir'. - -2004-08-19 Ralf Angeli - - * doc/install.texi (Customizing): tex-site.el should be edited no - more. Customize should be used instead. Relevant variables are - determined during configuration now. - Mention build/installation commands for contributed files. - -2004-08-19 Reiner Steib - - * auctex.spec: Fixes for SuSE. - -2004-08-19 David Kastrup - - * aclocal.m4: `putative-existing-lisp-dir' is not a package - directory if `lisp' is not a path component. Normalize - whitespace. - Remove trailing slash from packagedir. - - * tex-site.el.in (TeX-macro-global): Don't quote texinputdirs - additionally. - - * aclocal.m4: Really remove trailing slashes/backslashes. - Don't expand `lispdir'. - (library): Surround `texinputdirs' with quotes. Output it - enclosed in parens. - (library): Let `autodir' refer unexpanded to `localstatedir'. - Add some quoting in patterns. - - * doc/Makefile.in (DESTDIR): introduce `DESTDIR' into installation - targets. - - * Makefile.in (DESTDIR): introduce `DESTDIR' into installation - targets. - -2004-08-18 David Kastrup - - * tex-fold.el (TeX-fold-buffer-type): Don't use `end-of-buffer' as - it plays around with the current window point. - - * Makefile.in (auctexdir, styledir): Use `${...}' for symmetry - with aclocal.m4 - - * aclocal.m4: Use `${...}' instead of `$(...)' everywhere. - -2004-08-18 Jan-Åke Larsson - - * aclocal.m4 (EMACS_LISPDIR): Output expanded lispdir - -2004-08-18 David Kastrup - - * configure.in: Shell-quote autodir. - - * RELEASE: Some minor changes. - -2004-08-18 Ralf Angeli - - * RELEASE: Change version to 11.52. Replace old feature/bug - information. - - * font-latex.el (font-latex-script): Disable raising of characters - for older Emacsen. Original patch by Reiner Steib. - Bump version and add change log entry. - - * tex-fold.el (TeX-fold-unfolded-face): Make it look more blueish - on displays with 24bit color depth. - (TeX-fold-buffer-type): Use either a complemented character - alternative to be on the safe side or "\\_>" on Emacsen which - support it. - -2004-08-17 Reiner Steib - - * texmathp.el (texmathp-tex-commands-default): Added \label. - Various checkdoc-related fixes. - -2004-08-17 Ralf Angeli - - * tex-fold.el (TeX-fold-buffer-type): Use alternative way to - determine end of search pattern. Fixes problem with starred - macros. - Fix compile errors and add further match alternatives. - (TeX-fold-item): Recognize starred macros as well. - XEmacs does not know `match-string-no-properties'. - (TeX-fold-make-overlay): Do not alter `display-string' before - `face' is set. - (TeX-fold-hide-item): Get only the string part of - `display-string'. - - * tex.el (TeX-fold-menu): Wrap value in `TeX-menu-with-help'. - Fixes XEmacs start-up error. - - * tex-mik.el: Fix typo in comment. - - * auctex.spec (Version): Change to 11.52. - - * configure.in: Change AUCTeX version to 11.52. - - * doc/tex-ref.tex: Change AUCTeX version to 11.52. - - * doc/auctex.texi: Change AUCTeX version to 11.52. - -2004-08-17 David Kastrup - - * Makefile.in (full-release): Fix a few things. - - * Version 11.51 released. - -2004-08-17 David Kastrup - - * aclocal.m4: Quote when expanding and remove trailing backslash, - too. - (library): Don't check for $PWD but for default-directory. - -2004-08-16 David Kastrup - - * doc/wininstall.texi: move --prefix description up, since it - might be the only needed option. - - * doc/tex-ref.tex (section{Font Selection}): Add italic - corrections and small-caps entry. - - * tex.el (info): Add more prefixes to `Info-file-list-for-emacs'. - - * tex-jp.el (japanese-TeX-command-list): Comment addition. - - * RELEASE: Add availability and update release notes. - - * Makefile.in (RPMROOT): New variable. - (tar-ball): Clean up `$(FTPDIR)' and `$(WWWDIR/doc)' before - installation. - (full-release): New target that does RPM building, signing and - other stuff for upload. - (patch): gzip the patch. - - * auctex.spec: Add definition stuff for SuSE. - (BuildRoot): Don't specify infodir when it is not used. - - * bib-cite.el: Fix refTeX link. - -2004-08-16 Jan-Åke Larsson - - * aclocal.m4 (EMACS_PROG_EMACS): Add "${prefix}/bin" for Windows users - - * aclocal.m4 (EMACS_LISPDIR): Remove trailing slash from lispdir_expanded elisp string - -2004-08-16 Ralf Angeli - - * aclocal.m4 (VALID_BUILD_DIR): New function. - - * configure.in: Use it. - Change AUCTeX version to 11.51. - - * doc/tex-ref.tex: Change AUCTeX version to 11.51. - - * doc/auctex.texi: Change AUCTeX version to 11.51. - - * auctex.spec (Version): Change to 11.51. - - * Makefile.in (distclean): Get rid of autom4te.cache. - -2004-08-15 David Kastrup - - * tex-info.el: Change Copyright notice to FSF - - * tex-mik.el: Change Copyright notice to FSF - - * tex.el: Change Copyright notice to FSF - - * font-latex.el: Change Copyright notice to FSF - - * multi-prompt.el: Change Copyright notice to FSF - - * tex-buf.el: Change Copyright notice to FSF - - * tex-site.el.in: Change Copyright notice to FSF - - * style/scrartcl.el: Change Copyright notice to FSF - - * style/scrbook.el: Change Copyright notice to FSF - - * style/scrlttr2.el: Change Copyright notice to FSF - - * style/scrreprt.el: Change Copyright notice to FSF - - * latex.el: Change Copyright notice to FSF - - * tex-info.el: Change Copyright notice to FSF - - * tex-mik.el: Change Copyright notice to FSF - - * tex.el: Change Copyright notice to FSF - - * bib-cite.el: Change Copyright notice and URLs. - -2004-08-15 Dan Nicolaescu - - * latex.el (LaTeX-common-initialization): Don't set - `selective-display'. - -2004-08-15 David Kastrup - - * doc/tex-ref.tex: Add Omega entry, rearrange. - - * tex.el (TeX-print-command): Use `%(o?)'. - (TeX-command, TeX-Omega-command, LaTeX-command) - (LaTeX-Omega-command, ConTeXt-engine, ConTeXt-Omega-engine): New - customization strings to implement various expanders. - (TeX-command-list): Use them. - (LaTeX-command-style): Same here. - (TeX-printer-list, TeX-view-style, TeX-output-view-style): Use - `%(o?)'. - (TeX-expand-list): New entries. - (TeX-PDF-mode): Don't switch on in Omega mode. - (TeX-Omega-mode): New minor mode. - (tex-omega-mode): alias for it. - (TeX-mode-map): Keybinding for it. - (TeX-mode-specific-command-menu-entries): Add quick viewer entry. - (TeX-mode-specific-command-menu-entries): Add Omega toggle and - inactivate PDF when Omega is on. - - * context.el (ConTeXt-expand-options): New function for generating - `texexec' options. - -2004-08-15 Ralf Angeli - - * tex.el (TeX-fold-menu): New variable. - (plain-TeX-mode-menu): Use it. - - * context.el (ConTeXt-mode-menu): Use `TeX-fold-menu'. - - * latex.el (LaTeX-mode-menu): Use `TeX-fold-menu'. - - * tex-info.el: Change every occurence of "TeXinfo" to "Texinfo". - (Texinfo-environment-list): Add some missing environments. - (Texinfo-find-env-end, Texinfo-find-env-start): New functions. - (Texinfo-mode-menu): Use `TeX-fold-menu'. - - * tex-fold.el (TeX-fold-buffer-type): Support folding of - environments in texinfo-mode. - (TeX-fold-item): Ditto. - (TeX-fold-hide-item): Display an error string if the macro - argument cannot be found. - -2004-08-14 David Kastrup - - * tex.el (TeX-command-list): rename `%(execmode)' to `%(execopts)' - since it has gotten quite fatter. - (TeX-expand-list): Implement `TeX-PDF-mode', - `TeX-interactive-mode', `TeX-source-specials-mode' for ConTeXt and - pass on `ConTeXt-current-interface'. - -2004-08-14 Ralf Angeli - - * tex-mik.el: Change `TeX-source-specials-viewer-flags' to - `TeX-source-specials-view-position-flags' as the latter is now - used in tex.el. - Set `TeX-source-specials-view-editor-flags'. - - * tex-fptex.el: Ditto. - -2004-08-13 Ralf Angeli - - * doc/auctex.texi (top): We want the introduction to appear in - HTML output as well. - -2004-08-13 David Kastrup - - * Version 11.50 released. - -2004-08-13 Jan-Åke Larsson - - * aclocal.m4: Add another alternative for lispdir - -2004-08-13 David Kastrup - - * auctex.spec (Source0): Change source URL. - - * Makefile.in (EXTRAFILES): Add RELEASE and auctex.spec. - (tar-ball): Don't create CHANGES-$(TAG), just CHANGES (as it is - always a longer history). But create RELEASE-$(TAG) instead: - that's release-specific. - -2004-08-13 David Kastrup - - * doc/wininstall.texi: Changes to --prefix and --with-auto-dir, - partly by Christian Schlauer. - Add a few words of my own after suggestions. - - * doc/changes.texi, style/units.el, style/nicefrac.el, - Makefile.in: Add contributed styles for units.sty and - nicefrac.sty from Christian Schlauer. - -2004-08-13 Ralf Angeli - - * tex-fold.el (TeX-fold-unspec-use-name): New variable. - (TeX-fold-item): Use it. - - * RELEASE: Add warning about `TeX-command-list'. - - * doc/auctex.texi (Commands): Add "be". - (Folding): Document `TeX-fold-unspec-use-name'. - -2004-08-13 David Kastrup - - * Makefile.in (tar-ball): copy only one auctex, add pdf manual and - reference card. - - * doc/Makefile.in (dist): Add tex-ref, and both pdf and ps - (tex-ref.ps, auctex.ps): Use -Ppdf option for better quality. - - * auctex.spec (BuildRoot): Add CHANGES. - - * Makefile.in (release-commit): There are no Version: strings - anymore, don't replace them. - - * tex-fptex.el: customize Queue and Print commands appropriately. - - * tex-mik.el: customize Queue and Print commands appropriately. - - * tex.el (TeX-expand-list): Call TeX-printer-query differently. - (TeX-command-menu-print, TeX-command-menu-printer-entry) - (TeX-command-menu-entry): Implement stuff differently, add "Other" - menu entry. - - * tex-buf.el (TeX-printer-query): Change arguments here. - Reorganize, too. - - * doc/auctex.texi (Commands): Fix a warning. - - * tex-info.el (TeXinfo-mode-menu): Other quoting. - (texinfo-mode): Set `TeX-mode-p', `TeX-base-mode-name', call - `TeX-set-mode-name'. - - * context.el (ConTeXt-mode-menu): Add the environments back to - folding. - - * doc/auctex.texi, doc/faq.texi, doc/install.texi, doc/intro.texi, - doc/todo.texi: various changes and smaller typos corrected. - - * doc/macros.texi fix problems with PDF links and indexing. - - * configure.in: Check for pdftex, dvips, texi2html, texi2dvi, - texi2pdf. - - * doc/Makefile.in (TEXI2HTML, TEXI2DVI, TEXI2PDF): new variables - entered by configure. - (auctex.dvi): Use texi2dvi. - (auctex.pdf): New target. - (clean): Remove PDF files. - -2004-08-12 David Kastrup - - * tex-jp.el (japanese-TeX-command-list): Fixed this to new style. - (LaTeX-command-style): Same here. Hey, this should even make - preview-latex work mostly with Japanese files and PDFTeX. - -2004-08-12 Ralf Angeli - - * tex-buf.el (TeX-view-extension): Remove. - (TeX-view-output-file): Use the function `TeX-output-extension' - instead of `TeX-view-extension'. - (TeX-run-set-command): Setting `TeX-view-extension' not necessary - anymore. - - * tex.el (TeX-view-extension): Remove. - -2004-08-11 David Kastrup - - * doc/wininstall.texi: explain about tex-mik.el and tex-fptex.el - - * tex-fptex.el: require tex-site. Only set `TeX-lisp-directory' - if it has not been customized. Construct `TeX-command-list' from - its default value. - - * tex-mik.el: same here. - - * tex.el (TeX-mode-specific-command-menu): Tiny optimization. - (TeX-mode-specific-command-menu-entries): Make it legal for - `TeX-command-mode-menu-entry' to return nil for indicating no menu - entry at all (so that entries like "Print" or "Queue" may be - dynamically removed). - -2004-08-11 Reiner Steib - - * doc/auctex.texi (Commands): Adjust references. - (Viewing): Make source specials a subsection. Adjust references. - - * tex.el (TeX-source-specials-mode): Remove bogus :link. Refer to - viewing node of the manual. - - * doc/changes.texi: Added references. - - * doc/todo.texi (Wishlist): Markup fix. - -2004-08-11 Ralf Angeli - - * doc/auctex.texi (Viewing): Add some information about forward - and inverse search. - - * tex-mik.el: Synchronize `TeX-command-list' with tex.el. - Use gsview32 in `TeX-output-view-style'. - - * tex-fptex.el: Synchronize `TeX-command-list' with tex.el. - -2004-08-11 David Kastrup - - * doc/tex-ref.tex: Move papersize stuff to the front. Fiddle - somewhat with the sizes, too. - - * auctex.spec (Version): Change version, web sites, some build - stuff (this is not yet finished). - - * auc-old.el: remove. - - * doc/Makefile.in (TEXIFILES): refer to auctex.texi instead of - auc-tex.texi. Change all dependent stuff, too. - - * Makefile.in (DOCFILES): refer to doc/auctex.texi instead of - doc/auc-tex.texi - - * doc/auc-tex.texi: renamed into doc/auctex.texi. - - * doc/auc-tex.texi (Commands): Some rewording. - - * doc/todo.texi (Wishlist): Some rearrangements and additions. - -2004-08-10 David Kastrup - - * latex.el (LaTeX-math-default): Reorder and complete Greek - letters, use Babel transcription conventions for them. - - * doc/tex-ref.tex: Add \sl definition. - (section{Miscellaneous}): Use \string~ for tilde. - (section{Greek Letters}): Reorder and complete Greek letters. - - * tex.el (TeX-PDF-mode): Set `TeX-output-extension' too. - (ams-tex-mode): Move `TeX-set-mode-name' after running hooks. - - * tex-ref.tex: merge math-ref.tex, update a few things, format - stuff. - - * math-ref.tex: removed. - - * doc/Makefile.in (all): Remove math-ref.tex - - * Makefile.in (DOCFILES): Remove math-ref.tex - -2004-08-10 Reiner Steib - - * RELEASE: Add `volunteers welcome'. - - * doc/auc-tex.texi (Completion): TeX-insert-macro-default-style. - - * tex.el (TeX-source-specials-mode): Add manual link. - - * doc/auc-tex.texi (Commands): Say how to enable - TeX-source-specials-mode permanently. - (Viewing): Describe TeX-view. - -2004-08-10 David Kastrup - - * tex.el (TeX-maybe-remove-help): convert Emacs' :visible into - XEmacs' :included. - - * latex.el (LaTeX-mode-menu): Change bug submit menu entry. - - * context.el (ConTeXt-mode-menu): Same. - - * tex.el (plain-TeX-mode-menu): Same. - - * tex-info.el (TeXinfo-mode-menu): Same. - - * latex.el (LaTeX-mode-menu): A few changed help strings and other - small fry. - - * context.el (ConTeXt-mode-menu): Rework menu, reorganize it, add - help strings. - -2004-08-10 Ralf Angeli - - * tex-info.el (TeXinfo-mode-menu): Capitalize menu entries. - - * context.el (ConTeXt-project-structure-menu-name) - (ConTeXt-section-block-menu-name, ConTeXt-mode-menu): Capitalize - menu entries. - - * tex-info.el (TeXinfo-mode-menu): Add help strings. - - * tex.el (TeX-command-list): Set a default value which will not - lead to an inactive menu entry. - (plain-TeX-mode-menu): Add some help strings. - Capitalize menu entries. - (tex-source-specials-mode): New alias for - `TeX-source-specials-mode'. - - * latex.el (LaTeX-mode-menu): Rearrange and insert help strings. - Capitalize menu entries. - - * tex-fold.el (tex-fold-mode): New alias for `TeX-fold-mode' used - in tex.el. - (TeX-fold-buffer-type): Support folding of environments in ConTeXt - mode as well. - (TeX-fold-item): Ditto. - - * doc/auc-tex.texi (Commands): Change `TeX-source-specials' to - `TeX-source-specials-mode' where appropriate. - - * RELEASE: Include contributors. (Hopefully I got everybody.) - -2004-08-10 David Kastrup - - * tex.el (TeX-set-mode-name, TeX-source-specials-map) - (TeX-source-specials-mode, TeX-source-specials-expand-options) - (TeX-source-specials-view-expand-options): Rename - `TeX-source-specials' to `TeX-source-specials-mode'. - (TeX-PDF-mode): Make first arg optional (actually, not sure this - is a good idea). - (tex-pdf-mode): alias for `TeX-PDF-mode'. - (tex-interactive-mode): alias for `TeX-interactive-mode' - (tex-fold-mode): add autoload. - (TeX-mode-map, TeX-mode-specific-command-menu-entries): rename - `TeX-source-specials' to `TeX-source-specials-mode'. - (TeX-command-list): Add help strings. - (TeX-command-menu-entry): Splice help into command entries. - (TeX-mode-specific-command-menu-entries): Remove help in XEmacs. - (TeX-mode-specific-command-list): Save unnecessary copies and - conses. - -2004-08-09 David Kastrup - - * tex.el (TeX-set-mode-name): Add LOCAL argument. - (TeX-source-specials, TeX-mode-set, TeX-global-PDF-mode) - (TeX-PDF-mode, TeX-interactive-mode): Use it. - (plain-tex-mode): Move `TeX-set-mode-name' to after running the - hooks. - - * latex.el (latex-mode): Move setting the mode name to after - running the hooks. - - * tex.el (TeX-maybe-remove-help): new function (noop on Emacs). - (TeX-menu-with-help): new macro (noop on Emacs). - (TeX-mode-specific-command-menu-entries): Add a lot of help strings. - (plain-TeX-mode-menu): Same here. - - * latex.el (LaTeX-mode-menu): `:visible' is not known in XEmacs, - and I don't want to clutter the menu with "Convert 209 to 2e" when - not necessary. - - * RELEASE (Requirements): some additions. - Incorporate some suggestions from Ralf. - - * tex.el (TeX-set-mode-name): Actually use `reset' (patch by Ralf - Angeli). - - * latex.el (LaTeX-common-initialization): There is no "LaTeX2e" - command anymore, so don't set it. Don't do anything on - "DVIoutput". doc fixes. - - * doc/auc-tex.texi (Commands): Explain `TeX-command-buffer', - `TeX-pin-region', `TeX-PDF-mode', `TeX-interactive-mode', - `TeX-source-specials'. - -2004-08-09 Berend de Boer - - * context.el (ConTeXt-current-environment): now properly skips - nested environments instead of always returning the last - environment just above the cursor. - -2004-08-08 David Kastrup - - * tex-buf.el (TeX-run-set-command): Initialize - `TeX-output-extension' based on `TeX-PDF-mode'. - - * tex.el (TeX-command-output-list): Don't look at pdf* commands. - Don't have default mode "dvi". - (VirTeX-common-initialization): Don't add to - desktop-locals-to-save locally: that's broken. - (desktop): Add stuff into appropriate variables for proper desktop - save/restore. - (TeX-mode-specific-command-menu-entries, plain-TeX-mode-menu): - Reorganize menus. Add font commands into plain TeX menu. - - * tex-info.el (TeXinfo-mode-menu): Reorganize menu. - - * latex.el (LaTeX-mode-menu): Reorganize menu. - - * context.el (ConTeXt-mode-menu): Reorganize menu. - -2004-08-07 David Kastrup - - * tex.el (TeX-base-mode-name): Make buffer-local (Doh). - (TeX-set-mode-name): Doc fix. - - * doc/todo.texi (Mid-term Goals): Use @previewlatex macro. - (Mid-term Goals): New entries. Should some of them be moved to - wishlist? Remove a few fixed bugs. - - * doc/macros.texi: move @ConTeXt macro out of info-only section. - Typeset @previewlatex differently. - -2004-08-06 Reiner Steib - - * font-latex.el: Use "gnu.org" instead of "nongnu.org". - - * bib-cite.el: Ditto. Use "AUCTeX", not "auc-tex". - - * lpath.el: Use "AUCTeX". - -2004-08-05 Reiner Steib - - * doc/macros.texi: New @ConTeXt macro. - - * doc/auc-tex.texi, doc/changes.texi, doc/history.texi, - doc/todo.texi, doc/wininstall.texi: Use macros @AUCTeX, @ConTeXt, - @LaTeX everywhere. - - * doc/auc-tex.texi (European): Mention Emacs 21. Fixed typo. - - * doc/todo.texi: Help for documentation wanted. - - * doc/changes.texi: Some additions: captcont and subfigure, - `LaTeX-includegraphics-options-alist', `LaTeX-default-position', - kpathsea based completion, `TeX-insert-macro-default-style'. - Refer to installation nodes (autoconf installation). - - * tex.el (TeX-submit-bug-report): Added more explanations. - - * latex.el (LaTeX-style-list): Improve doc-string. - - * font-latex.el (font-latex-script-display): New variable. Make - raise of sub-/superscripts customizable. - (font-latex-unfontify-region, font-latex-script): Use it. - -2004-08-05 Ralf Angeli - - * RELEASE: Improve sectioning and add some more information. - -2004-08-05 David Kastrup - - * tex-site.el.in: don't require 'tex-mik on Windows, let the user - load it instead of tex-site if he wants to. - - * tex.el (TeX-command-list): Add `%(PDFout)', `%(mode)' and - `%(execmode)'. Remove `TeX Interactive', `LaTeX Interactive' and - `ConTeXt Interactive'. - (LaTeX-command-style): Don't provide a default for a - `LaTeX-version' of "2": people can customize this if necessary - themselves, we would not know a sane default, anyway. - (TeX-expand-list): Support `TeX-DVI-via-PDFTeX', `%(PDFout)', - `%(mode)' and `%(execmode)'. - (TeX-set-mode-name): Add `reset' flag to indicate that the next - step should again be TeXing. Add "I" flag. - (TeX-source-specials): Call `TeX-set-mode-name' with `reset' flag. - (TeX-mode-set): Variable setter for TeX modes. - (TeX-PDF-mode): Make the default value a global mode. - (TeX-global-PDF-mode): Toggle function to change default - `TeX-PDF-mode'. - (TeX-PDF-mode): Remove local binding of `TeX-PDF-mode' in case of - conflicts. Call `TeX-set-mode-name' with `reset' flag. - (TeX-DVI-via-PDFTeX): New customizable variable. - (TeX-interactive-mode): New mode. - (TeX-mode-map): Add binding for `TeX-interactive-mode'. - (TeX-mode-specific-command-menu-entries): Add menu entry for it. - - * tex-buf.el (TeX-command-expand): Document `%%'. - (TeX-run-TeX): If `TeX-interactive-mode' is set, run - `TeX-run-interactive' instead. - -2004-08-04 Reiner Steib - - * font-latex.el (font-latex-fontify-script): Default to nil in - XEmacs. - -2004-08-04 David Kastrup - - * tex.el (TeX-base-mode-name, TeX-set-mode-name): Move to front, - add catering for global mode switches. - (TeX-source-specials, global-TeX-PDF-mode): Use this. - - * latex.el (LaTeX-common-initialization): Add style hook for - "ifpdf". - -2004-08-04 Ralf Angeli - - * font-latex.el (font-latex-unfontify-region): New function. - (font-latex-setup): Use it. - -2004-08-04 David Kastrup - - * tex-fptex.el (TeX-command-list): Remove PDFTeX calls. - - * tex-mik.el (TeX-command-list): Remove PDFTeX calls. - - * tex.el (TeX-command-list): Use %(PDF) where necessary, drop - PDFTeX entries. - (LaTeX-command-style): Add %(PDF) here. - (TeX-expand-list): Expand %(PDF). - (TeX-mode-p): Moved. - (TeX-PDF-mode, global-TeX-PDF-mode): New minor modes. - (TeX-PDF-mode-on, TeX-PDF-mode-off): Shortcuts for calling. - (TeX-PDF-mode-parsed): New variable. - (TeX-set-mode-name): Simplify. - (TeX-mode-map): Add C-c C-t C-p for TeX-PDF-mode. - (TeX-mode-specific-command-menu-entries): Add menu entry for it. - - * latex.el (LaTeX-math-mode): Refresh modeline after generating - it, not before. - (LaTeX-common-initialization): Add style-hooks fo pdftex, dvips - and others. - - * tex.el (TeX-view-style, TeX-output-view-style): Place dvi file - name last. - -2004-08-03 Ralf Angeli - - * tex.el (TeX-source-specials): New customization group. - (TeX-source-specials, TeX-source-specials-tex-flags) - (TeX-source-specials-places) - (TeX-source-specials-view-start-server): Use it - (TeX-source-specials-view-position-flags) - (TeX-source-specials-view-gnuclient-flags) - (TeX-source-specials-view-emacsclient-flags): Change defvar to - defcustom. - (TeX-source-specials-view-editor-flags): New customize option. - (TeX-source-specials-view-expand-client): Return not only client - but options as well. - (TeX-source-specials-view-expand-options): Use - `TeX-source-specials-view-editor-flags'. - -2004-08-03 Reiner Steib - - * tex.el (TeX-source-specials-places): Change comment. - -2004-08-03 David Kastrup - - * latex.el (LaTeX-mode-menu): Add "Close Environment" - - * tex.el (TeX-source-specials-view-gnuserv-p): replaces - `TeX-source-specials-view-guess-server'. - (TeX-source-specials-view-expand-client) - (TeX-source-specials-view-expand-options): Use this. - -2004-08-03 Reiner Steib - - * style/alphanum.el, style/doc.el, style/jura.el, - style/ltx-base.el, style/ltxdoc.el: Added coding cookies. - -2004-08-03 David Kastrup - - * RELEASE: Change Source Special description and a few other - things. - -2004-08-03 Ralf Angeli - - * tex.el (TeX-expand-list): New %cS expander for - `TeX-source-specials-view-expand-client'. - (TeX-source-specials-view-start-server): New customize option. - (TeX-source-specials-view-start-server-asked): New variable. - (TeX-source-specials-view-position-flags): New name. Formerly - known as `TeX-source-specials-viewer-flags'. - (TeX-source-specials-view-gnuclient-flags): New variable. - (TeX-source-specials-view-emacsclient-flags): New variable. - (TeX-source-specials-view-expand-client): New function. - (TeX-source-specials-view-expand-options): Expand options for - inverse search as well. - Correct return value. - Use `TeX-source-specials-view-guess-server'. - (TeX-forward-comment-skip): Only consider consecutive comment - characters when comparing the comment prefix. - (TeX-source-specials-view-guess-server): New function. - - * doc/changes.texi: Avoid email addresses. - - * doc/tex-ref.tex: Update to 11.50. - -2004-08-02 Ralf Angeli - - * doc/changes.texi: Advertise support for toggling source - specials. Mention macro completion in docTeX mode and fix for - filling in XEmacs with preview-latex and activated previews. - -2004-08-01 David Kastrup - - * doc/wininstall.texi: Remove info about manual installation. - Explain about preferred path syntax. - - * doc/install.texi: Move info dor INSTALL.Windows. - -2004-08-01 Ralf Angeli - - * tex-fptex.el: Do not overwrite customized variables. - - * tex-mik.el: Ditto. - - * Makefile.in (STYLESRC): Add new style files. - - * aclocal.m4: Synchronize with preview-latex. - - * tex-fold.el (TeX-fold-macro-spec-list): Add references to - default. - (TeX-fold-buffer-type): Additionally pass display string - specification and type to `TeX-fold-make-overlay' - (TeX-fold-item): Ditto. - (TeX-fold-make-overlay): Accept display string specification and - type as arguments and set them accordingly in the overlay. - Do not signal overfullness if the dispay string contains a - linebreak. - (TeX-fold-macro-nth-arg): Make `macro-start' mandatory so that - macro boundaries may be determined even if point is not inside of - a macro. - (TeX-fold-hide-item): Recompute display string on closure if - display string specification is an integer. - - * style/alphanum.el: Add header and reformat. - - * style/jura.el: Add header. - - * style/doc.el: New file. Contributed by Frank Küster - . - (TeX-add-style-hook): Remove bogus `LaTeX-add-index-entries' call. - - * style/ltx-base.el: New file. Contributed by Frank Küster - . - - * style/ltxdoc.el: Ditto. - -2004-07-31 Ralf Angeli - - * font-latex.el: Autoload `texmathp'. - (font-latex-keywords-2): Add `font-latex-match-script'. - (font-latex-script-keywords): Remove. - (font-latex-fontify-script): Remove :set function. - (font-latex-match-script): New function. - - * tex-mik.el (TeX-view-style): Remove unconditional source - specials option for yap. - (TeX-output-view-style): Set it. - (TeX-source-specials-viewer-flags): Ditto. - - * tex-fptex.el (TeX-view-style): Adapt options to WinDVI - documentation. - (TeX-output-view-style): Set it. - (TeX-source-specials-viewer-flags): Ditto. - -2004-07-30 Ralf Angeli - - * Makefile.in (tar-ball): Remove warning which often confuses - users. - - * aclocal.m4 (EMACS_MAJOR_VERSION): New test and variable. - - * configure.in: Fix AUCTeX version. - - * tex-site.el.in: At least (X)Emacs 21 is required. - - * tex.el: Ditto. - - * doc/Makefile.in (install): Remove warning which often confuses - users. - - * doc/auc-tex.texi: Fix version numbers. - (Changes): New name. Formerly known as "History". - (ToDo): New heading. - - * doc/changes.texi: Add heading for `rawfile'. Change `section' - to `heading'. - - * doc/faq.texi (Frequently Asked Questions About AUCTeX): At - least (X)Emacs 21 is needed. - - * doc/install.texi (Prerequisites): Ditto. - -2004-07-29 Ralf Angeli - - * tex-fold.el (TeX-fold-macro-spec-list): Extend default. Add - specification for argument number. - (TeX-fold-env-spec-list): Ditto. - (TeX-fold-folded-face): Renamed from - `TeX-fold-display-string-face'. - (TeX-fold-unfolded-face): New face and variable. - (TeX-fold-buffer-type): Move through buffer from bottom to top in - a single run in order to allow easier prioritization of nested - overlays. - (TeX-fold-item): Compute display string via - `TeX-fold-macr-nth-arg'. - (TeX-fold-make-overlay): Consider the length of the display string - as well when judging if a line is overfull. Let priority be - computed by `TeX-fold-macr-nth-arg'. Do not call - `TeX-fold-hide-item'. - (TeX-fold-macro-nth-arg): New function. - (TeX-fold-priority-step): New variable. - (TeX-fold-prioritize): New function. - (TeX-fold-hide-item): Set mouse-face. - (TeX-fold-show-item): Ditto. Do not set face twice. - (TeX-fold-post-command): Recognize mouse clicks as well. - - * tex.el (TeX-find-macro-boundaries): New function. - (TeX-find-macro-end-helper): Find macro arguments with a preceding - linebreak as well. - - * doc/auc-tex.texi (Folding): Document new functionality. - - * latex.el (LaTeX-fill-region): Improve performance by avoiding - unnecessary calls to `LaTeX-forward-paragraph'. - - * font-latex.el (font-latex-fontify-script): Doc fix. - -2004-07-23 Ralf Angeli - - * tex-fold.el (TeX-fold-make-overlay): New function. - Remove superfluous `let'. - (TeX-fold-buffer-type, TeX-fold-item): Use it. - (TeX-fold-mode): Call `TeX-fold-clearout-buffer' after clearing - `post-command-hook'. - -2004-07-22 Ralf Angeli - - * latex.el (LaTeX-indent-line): Temporarily make invisible - overlays visible in XEmacs. - - * tex.el (TeX-comment-region): Use a real function instead of an - `fset' and temporarily change `comment-start' for certain XEmacs - releases. - (TeX-comment-or-uncomment-region): Use it. - (TeX-comment-or-uncomment-paragraph): Ditto. - - * doc/changes.texi: Remove warning about TeX-fold not working - correctly on XEmacs. - -2004-07-21 Ralf Angeli - - * tex-fold.el (TeX-fold-display-string-face): Remove `min-colors' - spec as XEmacs does not like them. - (TeX-fold-hide-item): Set face on the glyph and not on the - overlay/extent in XEmacs. - (TeX-fold-post-command): Do not check detached extents in XEmacs. - - * context.el (ConTeXt-mode-menu): Check if variable is defined. - Necessary for XEmacs compatibility. - (ConTeXt-menu-update): Fix creation of environment menus. - - * latex.el (LaTeX-mode-menu): Check if variable is defined. - Necessary for XEmacs compatibility. - - * tex-info.el (TeXinfo-mode-menu): Ditto. - -2004-07-20 Reiner Steib - - * font-latex.el (font-latex-set-title-face): New function. - (font-latex-title-fontity): Use it to make customization work - during a session. - (font-latex-title-*-face): Use it to simplify the initialization. - -2004-07-20 Ralf Angeli - - * tex-fold.el (TeX-fold-macro-spec-list): New name for - `TeX-fold-spec-list'. More unobtrusive default. - (TeX-fold-env-spec-list) - (TeX-fold-unspec-macro-display-string) - (TeX-fold-unspec-env-display-string): New variables. - (TeX-fold-keymap): New key bindings which are more mnemonic and - orient at preview-latex's bindings instead of outline.el. - (TeX-fold-buffer): Transfer contents to `TeX-fold-buffer-type' - which can be used for both macros and environments. - (TeX-fold-buffer-type): New function. - (TeX-fold-macro): Transfer contents to `TeX-fold-item' which can - be used for both macros and environments. - (TeX-fold-env): New function. - (TeX-fold-item): New function. Prioritize overlays. - (TeX-fold-clearout-item): New name for `TeX-fold-clearout-macro'. - (TeX-fold-hide-item, TeX-fold-show-item): Adapt doc string. - - * latex.el (LaTeX-hide-environment): Remove. Functionality is now - provided by TeX-fold. - (LaTeX-show-environment): Ditto. - (LaTeX-mode-map): Remove key bindings for `LaTeX-hide-environment' - and `LaTeX-show-environment'. - (LaTeX-mode-menu): Adapt key bindings for folding. Remove menu - entries for `LaTeX-hide-environment' and `LaTeX-show-environment'. - - * context.el (ConTeXt-mode-menu): Adapt key bindings for folding. - - * tex-info.el (TeXinfo-mode-menu): Ditto. - - * doc/auc-tex.texi (Folding): Document new and changed functions - and variables related to folding environments (new) and macros. - - * doc/changes.texi: Advertise support for folding environments. - -2004-07-18 Ralf Angeli - - * tex.el (TeX-source-specials): Do not set a lighter in - `minor-mode-alist' but use `TeX-set-mode-name' instead. - (TeX-base-mode-name): New variable. - (TeX-set-mode-name): New function. - (plain-tex-mode): Set `TeX-base-mode-name' instead of `mode-name' - and use `TeX-set-mode-name'. - (ams-tex-mode): Ditto. - - * context-en.el (context-en-mode): Ditto. - - * context-nl.el (context-nl-mode): Ditto. - - * latex.el: Do not add a lighter for `LaTeX-math-mode' in - `minor-mode-alist'. - (LaTeX-math-mode): Use `TeX-set-mode-name'. - (latex-mode): Set `TeX-base-mode-name' instead of `mode-name' and - use `TeX-set-mode-name'. - - * tex-fold.el (TeX-fold-mode): Do not set a lighter in - `minor-mode-alist' but use `TeX-set-mode-name' instead. - -2004-07-17 Ralf Angeli - - * tex.el (TeX-find-macro-start): Fix handling of nested macros. - (TeX-find-macro-start-helper): New function. - (TeX-find-macro-end-helper): New function. - - * tex-info.el (TeXinfo-mode-menu): Fix extension of customize - menu. - - * latex.el (LaTeX-env-figure): Prevent superfluous blank lines and - give RefTeX a chance to generate a label in environments with a - bottom caption. Patch by Christian Schlauer . - (LaTeX-style-list): Add entry for beamer class. - - * context.el (ConTeXt-mode-menu): Add "Show/Hide" submenu. - - * doc/auc-tex.texi (Folding): Document key binding for - `TeX-fold-mode'. - -2004-07-14 Ralf Angeli - - * tex-info.el (TeXinfo-mode-map): Inherit from `TeX-mode-map'. - (texinfo-mode): Enable TeX-master functionality. - - * tex.el (TeX-one-master): Include .texi files. - (TeX-add-local-master): Use "@c " as comment prefix in Texinfo - mode. - - * tex-fold.el (TeX-fold): Move customization group from `LaTeX' to - `AUCTeX'. - - * doc/changes.texi: Advertise folding functionality. - -2004-07-12 Ralf Angeli - - * tex-fold.el (TeX-fold-display-string-face): Cater for display - devices with few colors. - (TeX-fold-keymap): Add key bindings for showing and hiding - individual macros. - (TeX-fold-macro): New function. - (TeX-fold-clearout-buffer): New name for - `TeX-fold-remove-all-overlays'. - (TeX-fold-clearout-macro): New function. - (TeX-fold-remove-overlays): New function. - - * latex.el (LaTeX-mode-menu): Add entries for showing and hiding - individual macros. - - * tex-info.el (TeXinfo-mode-menu): Update and rearrange. Add - entries for "Show/Hide" functionality. - - * doc/auc-tex.texi (Show/Hide): New section. - (Folding): New subsection. - (Outline): Moved under "Show/Hide". - -2004-07-10 Ralf Angeli - - * tex.el: Do not require tex-fold.el. - Autoload `TeX-fold-mode'. - (TeX-mode-map): Add keybinding for `TeX-fold-mode'. - - * tex-fold.el: Do not add keybinding for `TeX-fold-mode' with - `TeX-mode-hook'. - (TeX-fold-post-command): Do not hijack other overlays. - -2004-07-09 Ralf Angeli - - * tex-fold.el: New file. - - * Makefile.in (AUCSRC): Add tex-fold.el. - (AUCELC): Add tex-fold.elc. - - * latex.el (LaTeX-find-macro-start): Move to tex.el and rename to - `TeX-find-macro-start'. - (LaTeX-find-macro-end): Analogous. - (LaTeX-forward-paragraph): Change call to `LaTeX-find-macro-*' to - `TeX-find-macro-*'. - (LaTeX-backward-paragraph): Ditto. - (LaTeX-mode-menu): Add submenu "Show/Hide". Add entries for - relevant functions in tex-fold.el and add the show/hide - environment entries which were in "Formatting and Marking" before. - - * tex.el: Require tex-fold.el. - (TeX-find-macro-start): New function. Formerly known as - `LaTeX-find-macro-start' in latex.el. - (TeX-find-macro-end): New function. Formerly known as - `LaTeX-find-macro-end' in latex.el. - -2004-07-08 Ralf Angeli - - * texmathp.el (texmathp-match-environment): Let environments be - added more than once. - - * font-latex.el (font-latex-superscript-face) - (font-latex-subscript-face): New faces. - (font-latex-script-keywords): New constant. - (font-latex-fontify-script): New customize option. - (font-latex-script): New function. - -2004-07-02 Ralf Angeli - - * tex-buf.el (TeX-view): Inform the user if the output file is - not present. - - * tex.el (TeX-forward-comment-skip): Fix `count' functionality. - Stop as well at places where the prefix of commented lines - changes. Simplify and improve efficiency by saving current - prefix before while-loop starts. Adapt documentation string. - (TeX-backward-comment-skip): Adapt documentation string. - -2004-06-24 Ralf Angeli - - * context.el (ConTeXt-environment-menu-name): Make name distinct - from `LaTeX-environment-menu-name'. - (ConTeXt-environment-modify-menu-name): Analogous. - -2004-06-17 Reiner Steib - - * Makefile.in (tar-ball): Change permissions of auctex-$(TAG). - - * tex.el (TeX-source-specials-expand-view-options): New function. - (TeX-expand-list): Added new specifier (%dS) for - `TeX-source-specials-expand-view-options'. - (TeX-view-style, TeX-output-view-style): Add %dS for source - specials in all xdvi calls. - (TeX-expand-list): Remove useless lambda. - - * tex-buf.el (TeX-output-style-check): Remove addition of source - specials. - -2004-06-17 Ralf Angeli - - * tex.el (TeX-one-master): Add "dtx" extension. - (TeX-add-local-master): Insert \iffalse...\fi in docTeX mode. - (TeX-file-extensions): Add "dtx" extension. - (docTeX-default-extension): New variable. - - * latex.el (LaTeX-find-macro-start): Use next whitespace if the - end of an opened macro cannot be determined. - (doctex-mode): Set `TeX-default-extension' to - `docTeX-default-extension'. - - * doc/changes.texi: Add information about `TeX-newline-function'. - -2004-06-16 Ralf Angeli - - * style/mdwlist.el (TeX-add-style-hook): Change variables only - locally. - - * latex.el (LaTeX-default-verb-delimiter): New variable. - (TeX-arg-verb): Use it. - -2004-06-15 Ralf Angeli - - * style/mdwlist.el: New header. - (TeX-add-style-hook): Add support for \makecompactlist, \suspend, - and \resume. - -2004-06-14 David Kastrup - - * tex-buf.el (TeX-pin-region): Don't balk at unpinning if there - is no pinned region. - - * tex.el (TeX-mode-specific-command-menu-entries): Be more - meticulous about when the pin-region menu entry can be used. - -2004-06-13 David Kastrup - - * tex.el (TeX-pin-region): Add autoload form. - (TeX-mode-map): Add keybinding for TeX-pin-region. - (TeX-mode-specific-command-menu-entries): Add menu entry for it. - - * tex-buf.el (TeX-command-master, TeX-command-region) - (TeX-command-buffer): Add `override-confirm' prefix argument. - (TeX-pin-region): New function to replace previous interactive - prefix for TeX-command-region. Change TeX-region semantics - accordingly. - -2004-06-13 Ralf Angeli - - * doc/faq.texi: New file. - - * doc/auc-tex.texi (Filling): Add information about activating - `auto-fill-mode'. - (FAQ): Add node. - - * doc/todo.texi (Bugs): Add bug when fontifying unmatched math - toggles in verbatim-like environments. - - * doc/.cvsignore: Add `FAQ'. - - * doc/Makefile.in (TEXIFILES): Add `faq.texi'. - (FAQ): New target. - (dist): Add `FAQ'. - (clean): Ditto. - - * .cvsignore: Add `FAQ'. - - * Makefile.in (DOCFILES): Add `doc/faq.texi'. - (EXTRAFILES): Remove `PROBLEMS'. - (tar-ball): Add `FAQ'. - - * autogen.sh: Activate creation of `FAQ' from `doc/faq.texi'. - -2004-06-11 Ralf Angeli - - * tex-fptex.el (TeX-command-list): Use correct expander for - "View PDF". - - * latex.el (LaTeX-fill-region-as-para-do): Fix removal of trailing - whitespace. - (LaTeX-fill-move-to-break-point): Prevent infinite loop in - commented regions. - (LaTeX-fill-newline): Fix compatibility with XEmacs, i.e. use - code related to text properties only for Emacs and reintroduce - insertion of a potential fill prefix for XEmacs. - -2004-06-10 Ralf Angeli - - * doc/changes.texi: Add some news regarding upcoming release. - Try to match former news with actual releases. - -2004-06-07 Ralf Angeli - - * tex.el (TeX-comment-padding-string): New function. - - * latex.el (LaTeX-newline): Do something sensible if point is - at the start of a commented line or inside of one and right at - the start of another one in the same line. - (LaTeX-insert-environment): Fix insertion of environments if - point is inside or right before a commented line. - (LaTeX-indent-line): Use `TeX-comment-padding-string'. - -2004-06-05 Ralf Angeli - - * font-latex.el (font-latex-make-title-faces): New function. - (font-latex-title-1-face, font-latex-title-2-face) - (font-latex-title-3-face): Now generated by - `font-latex-make-title-faces' and compatible with XEmacs. - (font-latex-title-4-face): Add face specification for XEmacs. - -2004-06-04 David Kastrup - - * tex-buf.el (TeX-view-mouse): New function. - - * tex.el (TeX-source-specials-map): Outcomment madcap mouse - bindings. - (minor-mode-map-alist): Remove TeX-source-specials manually, as I - can't figure out how to not get it placed there by - define-minor-mode. - (TeX-split-string): Correct docs. Simplify. - (TeX-parse-path): Fix pattern. - -2004-06-03 Ralf Angeli - - * tex.el (TeX-newline): New function. - (TeX-mode-map): Use it. - - * latex.el: Various checkdoc-related fixes. - (LaTeX-forward-paragraph): Check for and cope with multi-line - paragraph commands not only those with a single line. - Check for LaTeX macro at the end of a paragraph command. - (LaTeX-backward-paragraph): Check for and cope with multi-line - paragraph commands not only those with a single line. - (LaTeX-paragraph-command-p): Remove. - (LaTeX-find-macro-start): Find macro start even if point is - already at the start. - - * doc/auc-tex.texi (Marking and formatting): Split into - `Indenting' and `Filling'. - (Indenting): New section. - (Filling): New section. - - * doc/intro.texi: Fix key representations and reference to - `fill-paragraph'. - -2004-06-02 David Kastrup - - * tex-buf.el (TeX-format-filter): Don't use split-string which - appears to trigger an XEmacs bug. - -2004-06-02 Reiner Steib - - * tex.el (TeX-insert-macro-default-style): Fixed typo in doc-string. - -2004-06-01 Reiner Steib - - * tex.el (TeX-no-braces-modes): Removed. Revert unintened - addition from 2004-04-19 commit. - (TeX-insert-macro-default-style): New variable. - (TeX-parse-arguments): Use it. - (TeX-insert-macro): Document dependence on - `TeX-insert-macro-default-style' and prefix. Fix typo in comment. - -2004-05-29 Ralf Angeli - - * tex.el (TeX-source-specials-map): Fix key binding for XEmacs. - -2004-05-27 Ralf Angeli - - * aclocal.m4 (TEX_INPUT_DIRS): Quote regexps with square brackets. - - * tex.el (TeX-newline-function): Rename. Formerly known as - `TeX-newline'. - (TeX-mode-map): Use new name. - - * doc/auc-tex.texi (Marking and formatting): Rename `TeX-newline' - to `TeX-newline-function'. - -2004-05-26 Reiner Steib - - * style/graphicx.el (LaTeX-arg-includegraphics): Rewrite. - Optional macro arguments can be controlled by - `LaTeX-includegraphics-options-alist' now. - (LaTeX-includegraphics-extensions) - (LaTeX-includegraphics-read-file): New functions. - (TeX-include-graphics-simple): Removed; use - `LaTeX-includegraphics-options-alist' instead. - (TeX-string-divide-number-unit, TeX-default-unit-for-image): Moved - to `tex.el'. - - * latex.el (LaTeX-includegraphics-extensions) - (LaTeX-includegraphics-options-alist) - (LaTeX-includegraphics-strip-extension-flag): New options for - `style/graphicx.el'. - - * tex.el (TeX-kpathsea-path-delimiter): Fix doc-string. - (TeX-insert-macro, TeX-parse-arguments): Skip optional macro - arguments when called with a prefix. - (TeX-string-divide-number-unit, TeX-default-unit-for-image): From - `style/graphicx.el'. - (TeX-arg-maybe): New function. - - * latex.el (LaTeX-common-initialization): Added additional - arguments for \parbox. - -2004-05-26 Ralf Angeli - - * tex.el (TeX-newline): New name for `TeX-indent-on-newline'. It - now holds function definitions and not mere symbols anymore. - (TeX-mode-map): Use it. - - * doc/auc-tex.texi (Marking and formatting): Remove documentation - for `TeX-indent-on-newline' and document `TeX-newline'. - -2004-05-26 Ralf Angeli - - * tex.el (TeX-indent-on-newline): New option. - (TeX-mode-map): Use it. - - * doc/auc-tex.texi (Marking and formatting): Document - `TeX-indent-on-newline' plus small corrections. - -2004-05-25 David Kastrup - - * tex-buf.el (TeX-command): Add `override-confirm' argument. - (TeX-view): New function, without confirmation. - - * context.el (ConTeXt-mode-map): Inherit keymap instead of - copying. - - * latex.el (LaTeX-mode-map): Inherit keymap instead of copying. - - * tex.el (TeX-source-specials-map): New variable. - (TeX-source-specials): Make a minor mode. Replaces - `TeX-toggle-source-specials' and - `TeX-source-specials-active-flag'. - (TeX-source-specials-expand-options): Adapt to that. - (TeX-electric-macro-map): inherit from - `minibuffer-local-completion-map' instead of copying. - (plain-tex-mode): Help string uses `plain-TeX-mode-map'. - (TeX-mode-p): New variable, set in TeX modes. - (VirTeX-common-initialization): Set it. - (TeX-mode-map): Proper defvar. Add keybindings for - `TeX-source-specials' and `TeX-view'. - (plain-TeX-mode-map): Inherit instead of copy. - (AmSTeX-mode-map): Same here. - - * doc/auc-tex.texi: Change info dir formatting, adapt copyrights - according to the assignment process. - -2004-05-25 Ralf Angeli - - * doc/install.texi (Configure): Remove unused option - `--with-texmf-dir'. Document new option `--with-tex-input-dirs'. - - * doc/wininstall.texi: Ditto. Add information about new option - `--with-auto-dir'. - - * latex.el (LaTeX-backward-paragraph): Revert check-in of - 2004-05-24. - -2004-05-24 Ralf Angeli - - * latex.el (LaTeX-backward-paragraph): Recognize if point is at - the end of a line when the test for a macro following a paragraph - command is carried out. - -2004-05-23 Ralf Angeli - - * font-latex.el (font-latex-doctex-^^A): Add mistakenly deleted - space again. - -2004-05-21 Reiner Steib - - * style/graphicx.el (TeX-string-divide-number-unit): Renamed from - misspelled `TeX-string-divide-nuber-unit'. Reformat file. Fix - some doc-strings and comments. - -2004-05-20 Ralf Angeli - - * aclocal.m4 (TEX_INPUT_DIRS): New help string. Better error - handling. - -2004-05-19 David Kastrup - - * aclocal.m4: Comment EMACS_LISP. - (EMACS_TEST_LISPDIR): remove both trailing backslash and slash. - -2004-05-19 Ralf Angeli - - * latex.el (LaTeX-fill-move-to-break-point): Prevent infinite loop - in lines starting with whitespace. - (LaTeX-forward-paragraph): Don't consider paragraph commands - followed directly by a TeX macro as part of an adjacent paragraph. - (LaTeX-backward-paragraph): Ditto. - -2004-05-18 Davide G. M. Salvetti - - * aclocal.m4 (AUCTEX_AUTO_DIR): Change `autodir' default to - `${localstatedir}/auctex' to conform to the GNU Coding Standards. - Add `autodir_expanded' as the properly expanded version of - `autodir'. Inform the user about the check in progress. - * tex-site.el.in (TeX-lisp-directory): Use `@autodir_expanded@'. - -2004-05-17 Reiner Steib - - * aclocal.m4 (AUCTEX_AUTO_DIR): Avoid AS_HELP_STRING for - compatibility with autoconf < 2.58. - -2004-05-17 Ralf Angeli - - * aclocal.m4 (TEX_INPUT_DIRS): Use `--expand-braces' instead of - `--show-path' in the kpsewhich calls. Use `--expand-path' as a - fallback e.g. for MikTeX. Assume that we are dealing with a - TDS-compliant TeX system and add "/tex/" and "/bibtex/bst/" - subdirectories to the output of the kpsewhich calls accordingly. - - * latex.el (LaTeX-fill-newline): Don't use code specific to GNU - Emacs for XEmacs. Call `newline-and-indent' instead. - -2004-05-15 Davide G. M. Salvetti - - * aclocal.m4 (AUTO_DIR): Code cleaned; renamed to - `AUCTEX_AUTO_DIR'. - * configure.in: Change `AUTO_DIR' to `AUCTEX_AUTO_DIR'. - -2004-05-14 Davide G. M. Salvetti - - * style/italian.el (LaTeX-italian-open-quote) - (LaTeX-italian-close-quote): Use standard babel syntax rather than - latin1 characters. Patch by David Kastrup . - -2004-05-14 Ralf Angeli - - * latex.el (LaTeX-indent-calculate-last): Ignore commented lines - when called in a non-comment line. - - * style/scrbase.el (TeX-add-style-hook): Fontify \minisec like a - sectioning command. - -2004-05-14 Reiner Steib - - * tex.el (TeX-auto-generate): Bind `enable-local-eval'. - -2004-05-13 Davide G. M. Salvetti - - * doc/auc-tex.texi (European): Sort languages list alphabetically. - - * doc/install.texi (Configure): Document `--with-auto-dir'. - - * Makefile.in (DOCFILES): Added `doc/macros.texi'. - - * doc/Makefile.in (distclean): New. - -2004-05-13 Ralf Angeli - - * latex.el (LaTeX-env-item): Don't eat non-empty lines when - called on a marked region unless they only consist of whitespace - and comment characters. Fill the paragraph of a potentially - outdented line after insertion of \item. - - * aclocal.m4 (TEX_INPUT_DIRS): Repair quoting. - - * tex.el (TeX-kpathsea-format-alist): Rename. Formerly known as - `TeX-kpathsea-directory-alist'. Add information to every format - about the file extensions to be found. - (TeX-search-files-kpathsea): Adapt to new information in - `TeX-kpathsea-format-alist'. - (TeX-mode-specific-command-menu-entries): Move source specials - toggle up to first level of command menu. - -2004-05-12 Davide G. M. Salvetti - - * aclocal.m4 (AUTO_DIR): New function. - * configure.in: Use `AUTO_DIR' to expand `@autodir@' in - `tex-site.el.in'. - * Makefile.in (autodir): Use `@autodir@'. - * tex-site.el.in (TeX-auto-global): Definition moved from - `tex.el'. Use `@autodir@'. - * tex.el (TeX-auto-global): Definition moved to `tex-site.el.in'. - * lpath.el: Bind `TeX-auto-global'. - - * style/italian.el: New file. - * doc/auc-tex.texi (Font Specifiers): Removed two sentences - referring to the old behavior of the short-cuts for easy - insertions of fonts changing macros. (At that time they added - things like `{\it --!--}', now they add things like - `\textit{--!--}'.) - (Marking and formatting): Reflect renaming of - `LaTeX-format-comment-syntax-aware' to `LaTeX-syntactic-comments'. - (European): Document `italian.el'. - * Makefile.in (STYLESRC): Added `italian.el'. - - * lpath.el: Bind `TeX-macro-global'. - * tex.el: No need to `(require 'tex-site)' at compilation time, - see `lpath.el'. - -2004-05-12 David Kastrup - - * tex.el (TeX-source-specials-active-flag) - (TeX-source-specials-check-function, TeX-source-specials-xdvi-p) - (TeX-source-specials-check-xdvi) - (TeX-mode-specific-command-menu-entries) - (TeX-maybe-set-source-specials, TeX-toggle-source-specials): - Remove all checks for validity of the Source Special options. - Just assume that the user knows what he is asking for. - -2004-05-12 Ralf Angeli - - * aclocal.m4 (TEX_INPUT_DIRS): Don't use `findtexmf' but a - universal call of `kpsewhich' and unify paths separated by `;' - or `:'. - - * context.el (ConTeXt-mode-menu): Show `TeX-comment-or-uncomment-*' - functions in the menu instead of the comment and uncomment - functions which don't have a key binding. - - * tex.el (plain-TeX-mode-menu): Ditto. - (TeX-mode-map): Move definitions of `C-c ;' and `C-c %' downwards - so that they become visible in the menu. - - * latex.el (LaTeX-fill-region-as-para-do): Remove extra spaces - between words. - (LaTeX-mode-menu): Show `TeX-comment-or-uncomment-*' - functions in the menu instead of the comment and uncomment - functions which don't have a key binding. - -2004-05-11 David Kastrup - - * style/beamer.el: Updates from Thomas Baumann checked in. - -2004-05-10 Ralf Angeli - - * font-latex.el (font-latex-doctex-^^A): Add compatibility code - for Emacs 20 and XEmacs to fix compile error. - (font-latex-verbatim-face): Add parentheses to fix error with - Emacs 20. - (font-latex-doctex-preprocessor-face): Ditto. - (font-latex-doctex-documentation-face): Ditto. - - * style/prosper.el (LaTeX-prosper-insert-slide): Don't stay in - comment upon inserting a slide in an overlay. - -2004-05-09 Reiner Steib - - * tex.el (TeX-source-specials-check-function): Added "Always on" - choice. - -2004-05-09 Ralf Angeli - - * font-latex.el (font-latex-doctex-syntactic-keywords): Moved to - the right place and corrected quoting. - - * context.el (ConTeXt-indent-syntax-table): Create with - `make-syntax-table' instead of `easy-mode-defsyntax' to allow - compilation with Emacs 20. - - * aclocal.m4 (TEX_INPUT_DIRS): New function. - - * configure.in: Use `TEX_INPUT_DIRS' for the expansion of - `@texinputdirs@' in `tex-site.el.in'. - - * tex-site.el.in: Updated header. - (TeX-macro-global): Moved here from `tex.el'. Use - `@texinputdirs@'. - - * tex.el: Require `tex-site' at compile time. - (TeX-macro-global): Moved to `tex-site.el.in'. - -2004-05-09 Reiner Steib - - * tex.el (TeX-toggle-source-specials): Added missing call to - `TeX-maybe-set-source-specials' in last commit. - -2004-05-08 Ralf Angeli - - * font-latex.el (font-latex-verbatim-face) - (font-latex-doctex-preprocessor-face) - (font-latex-doctex-documentation-face): New variables and faces. - (font-latex-verbatim-environments, font-latex-syntactic-keywords) - (font-latex-doctex-syntactic-keywords) - (font-latex-doctex-keywords): New variables. - (font-latex-set-syntactic-keywords) - (font-latex-syntactic-face-function, font-latex-doctex-^^A) - (font-latex-doctex-syntactic-face-function): New functions. - (font-latex-setup): Set special `font-lock-defaults' for docTeX - mode. - (font-latex-commented-outp): Don't classify line comments in - docTeX mode as "real" comments. - - * latex.el (doctex-mode): Call `TeX-install-font-lock' to - activate special fontification in docTeX mode. - - * style/alltt.el (TeX-add-style-hook): Added "alltt" to - `font-latex-verbatim-environments'. - - * context.el: Updated header. - - * context-nl.el: Updated header. - - * context-en.el: Updated header. - (context-en-mode): Set `ConTeXt-current-interface' to "en". - -2004-05-06 Reiner Steib - - * tex.el (TeX-toggle-source-specials): Simplify the code. - -2004-05-06 Ralf Angeli - - * Makefile.in (DOCFILES): Added `todo.texi'. - -2004-05-05 Reiner Steib - - * tex.el (TeX-command-list, TeX-source-specials-expand-options) - (plain-tex-mode, TeX-view-extension, ams-tex-mode): Doc fixes. - - * tex.el (TeX-mode-hook, AmS-TeX-mode-hook): Have always been run, - but were not declared with defcustom (or defvar). - - * latex.el (LaTeX-mode-hook): Ditto. - - * Makefile.in (tar-ball-clean): New. - - * autogen.sh: Create README and TODO. - - * .cvsignore, doc/.cvsignore: Add TODO. - -2004-05-04 Ralf Angeli - - * tex.el (TeX-expand-list): Inserted new expander `%S' for source - specials command line option. - (TeX-command-list): Inserted `%S' for source specials support - where appropriate. - (LaTeX-command-style): Ditto. - (TeX-source-specials-expand-options): New function. - - * tex-buf.el: Updated header. - (TeX-style-check): Remove code specific to source specials and - thereby revert to state before 2004-04-27. - - * tex-jp.el: Updated header. - (japanese-TeX-command-list): Inserted `%S' for source specials - support where appropriate. - - * tex-fptex.el: Updated header. - (TeX-command-list): Inserted `%S' for source specials support - where appropriate. - (LaTeX-command-style): Setting removed. - - * tex-mik.el: Updated header. - (TeX-command-list): Inserted `%S' for source specials support - where appropriate. - (LaTeX-command-style): Setting removed. - - * doc/auc-tex.texi (Checking): Updated URL's for lacheck and - chktex. - -2004-05-02 Ralf Angeli - - * tex.el: Header updated. - (TeX-master-file): Removed bogus test for `TeX-header-end'. - - * doc/auc-tex.texi (ToDo): New name for node/section formerly - known as `Projects' or `Wishlist' respectively. - Removed items not relevant anymore and moved the rest to the new - file `doc/todo.texi'. - Removed `Credits' section. - - * doc/Makefile.in (TEXIFILES): New constant. - (auctex): Use it. - (dist): Added `TODO'. - (TODO): New target. - (clean): Added `TODO'. - Some formattig changes. - - * doc/todo.texi: New file. - - * Makefile.in (tar-ball): Added `TODO'. - - * doc/changes.texi: Advertise support for `beamer.cls'. - -2004-04-30 David Kastrup - - * tex-buf.el (TeX-command-expand): Add "%%" expansion, make order - of TeX-expand-list irrelevant, make the whole junk work - efficiently. - -2004-04-30 Ralf Angeli - - * latex.el: New header. - (LaTeX-indent-environment-list): Remove `alltt' and add support - for it in `alltt.el' instead. - - * Makefile.in (STYLESRC): Added `alltt.el'. - - * style/alltt.el: New file. - - * doc/changes.texi: Describe changes in quote insertion if - `german.sty' or `ngerman.sty' is used. - Advertise new style files. - -2004-04-29 Reiner Steib - - * tex-buf.el (TeX-style-check): New optional argument. This fixes - an error in the last commit. - - * tex.el (TeX-expand-list): Use it. - -2004-04-27 Reiner Steib - - * tex-buf.el (TeX-style-check, TeX-output-style-check): Check for - source special stuff here instead of `TeX-expand-list'. Honor - `TeX-source-specials-places'. - - * tex.el (AUCTeX): Fix URL. - (TeX-default-mode, TeX-force-default-mode, TeX-install-font-lock) - (TeX-source-specials-active-flag): Changed custom group. - (TeX-expand-list): Move source special stuff to `TeX-style-check' - and `TeX-output-style-check'. - (TeX-source-specials-tex-flags): Make it customizable. - (TeX-source-specials-places): New variable. - (TeX-source-specials-viewer-flags): No IFS needed anymore. - -2004-04-26 Reiner Steib - - * context.el (context-guess-current-interface): Simplify code. - -2004-04-25 Ralf Angeli - - * tex-info.el (texinfo-mode): Make last change in - `font-lock-defaults' compatible with Emacs 20. - - * latex.el (LaTeX-fill-region-as-paragraph): Indent lines ending - with `\\' upon filling a region. - (LaTeX-fill-region): Prevent infinite loop at end of buffer. - -2004-04-24 David Kastrup - - * style/natbib.el ("natbib"): Add fontification for regexps. - Patch by Thomas Baumann. - -2004-04-24 Ralf Angeli - - * tex-info.el (texinfo-mode): Set `font-lock-defaults' as in - `texinfo.el'. This way we get e.g. syntax-highlighting of - comments in Texinfo mode. - -2004-04-24 Reiner Steib - - * tex.el (TeX-toggle-source-specials) - (TeX-maybe-set-source-specials, TeX-source-specials-check-xdvi): - New (renamed) functions. - (TeX-source-specials-active-flag, TeX-source-specials-tex-flags) - (TeX-source-specials-viewer-flags) - (TeX-source-specials-check-function, TeX-source-specials-xdvi-p): - New (renamed) variables. Tried to clarify doc-strings and - variable names. - -2004-04-23 David Kastrup - - Source special support by Dan Nicolaescu : - * tex.el (TeX-command-list): start viewer with TeX-run-discard - (TeX-expand-list): Add source special flags to viewer call. - (TeX-expand-list): Add source special flags to LaTeX call. - Various new functions. - (TeX-current-file-name-master-relative): New function replacing - TeX-current-file-name-nondirectory (which is not really needed, I - guess). This change sole fault of dak. - (TeX-mode-specific-command-menu-entries): Source Special entry. - -2004-04-23 Ralf Angeli - - * latex.el (LaTeX-fill-region-as-paragraph): Fix call to - `indent-region' for "older" Emacsen. - (LaTeX-mode-menu): Fix menu extension for customization. - - * context.el (ConTeXt-mode-menu): Fix menu extension for - customization. - - * tex-info.el (TeXinfo-insert-environment): Support enclosure of - a selected region by the environment to be inserted. - Don't eat newline at the end of the environment. - (TeXinfo-mode-map): Bind `C-c C-e' to `TeXinfo-insert-environment' - analogous to LaTeX mode. - -2004-04-21 Ralf Angeli - - * style/slides.el: Remove obsolete SliTeX-related code and - replace it by minimal support for slides.cls. - - * latex.el: Change spaces to tabs in indentation. - (LaTeX-fill-region-as-paragraph): Filling is disabled for - environments listed in `LaTeX-indent-environment-list'. To be - consistent with filling of other environments where indentation - occurs, at least indent those environments. - - * tex.el: Change spaces to tabs in indentation. - -2004-04-20 Reiner Steib - - * tex.el (TeX-output-view-style): Move "dvips && gv" element to - the top of the list (not shadowed by a4paper anymore). Added - "pst-" in this element. - -2004-04-20 Ralf Angeli - - * latex.el (LaTeX-current-environment): Respect value of - `LaTeX-syntactic-comments' and mode by narrowing the region if - necessary and checking necessary conditions. Use - `TeX-forward-comment-skip' and `TeX-backward-comment-skip' for - narrowing. - (LaTeX-find-matching-end): Ditto. - (LaTeX-find-matching-begin): Ditto. - (docTeX-in-macrocode-p): New function. - - * tex.el: More checkdoc-related fixes. - -2004-04-20 David Kastrup - - * style/natbib.el: Patch from Thomas Baumann for \bibpunct. - - * Makefile.in (STYLESRC): Add style/beamer.el. - - * style/beamer.el: Support file contributed by Thomas Baumann. - -2004-04-19 Reiner Steib - - * tex.el, latex.el: Make almost checkdoc clean. See "FIXME" for - remaining issues. - - * context.el, context-en.el, context-nl.el: Reindent. Coding - conventions fixes (but files are still far from being checkdoc - clean). - -2004-04-19 Berend de Boer - - * context-en.el (ConTeXt-default-environment-en): added default - environment for en interface. - - * context-nl.el (ConTeXt-default-environment-nl): added default - environment for nl interface. - - * context.el (ConTeXt-default-environment): now depends on language. - -2004-04-16 Ralf Angeli - - * tex.el (TeX-view-style): Enhance documentation string. - (TeX-output-view-style): Ditto. - -2004-04-16 Reiner Steib - - * tex-info.el (TeXinfo-command-menu): Use - `TeX-mode-specific-command-menu'. - - * tex-jp.el (plain-TeX-mode-command-menu) - (LaTeX-mode-command-menu): Ditto. - -2004-04-16 David Kastrup - - * Makefile.in (STYLESRC): Add jura.el and alphanum.el - style/jura.el, style/alphanum.el: contributed by Frank Küster. - -2004-04-16 Berend de Boer - - * context.el (context-guess-current-interface): support for - recognizing interface=XX in comment to determine language to use. - - * tex.el (TeX-format-list): recognize ConTeXt dutch interface. - - * Makefile.in: AUCSRC includes the new context-en.el and context-nl.el. - Ditto fo AUCELC. - - * context.el: English interface macro's moved to context-en.el. - All defmacro's are now replaced by defvars which are set to the - proper language dependent interface as a local buffer variable. - Some changes to make the context mode actually multi-lingual. - (ConTeXt-mode-common-initialization): new routine with - initialization common to all ConTeXt modes. - (context-mode): guesses current interface for en and nl interfaces. - (context-guess-current-interface): new routine that determines - what ConTeXt language interface is in use. - - * context-nl.el: new file containing Dutch interfaces macro's - previously in context.el. Use context-nl-mode to activate. - - * context-en.el: new file containing English interfaces macro's - previously in context.el. Use context-en-mode to activate. - -2004-04-15 Ralf Angeli - - * tex.el (TeX-mode-specific-command-menu): Now holds the logic for - returning a Command menu definition suitable for different Emacs - versions. Its original content is now in the function - `TeX-mode-specific-command-menu-entries'. - (TeX-mode-specific-command-menu-entries): New function. - (plain-TeX-mode-command-menu): Simply use - `TeX-mode-specific-command-menu' instead of the logic which now - is part of it. - (AmSTeX-mode-command-menu): Ditto. - - * latex.el (LaTeX-mode-command-menu): Ditto. - - * context.el (ConTeXt-mode-command-menu): Ditto. - -2004-04-14 Reiner Steib - - * doc/Makefile.in (clean): Remove *.tmp (created with auc-tex.ps). - - * doc/.cvsignore: Added *.tmp. - - * .cvsignore: Revert 2004-04-12 change. Added README. - - * Makefile.in (tar-ball): .nosearch is not useful here. - -2004-04-13 David Kastrup - - * aclocal.m4: Try something in AC_FULL_EXPAND that does not - require bash. - Replace ' with quote in EMACS_LISP - Correct a few instances of misspelled AUCTeX. - -2004-04-13 Reiner Steib - - * Makefile.in (DOCFILES, EXTRAFILES): Added files needed for the - configure based installation. - -2004-04-12 Reiner Steib - - * Makefile.in (dist): Split into `check-dist', `release-commit' - and `tar-ball'. - (snapshot): New. Use `check-dist' and `tar-ball'. - (release-commit): Fix mail address. - (REMOVE, MINMAPSRC, min-map): Removed. - (DIST_PREFIX): Derive FTPDIR and WWWDIR from this. - - * doc/Makefile.in (dist): Use INSTALL and INSTALL.windows instead - of INSTALLATION. - - * doc/.cvsignore: Added INSTALL, INSTALL.windows, auc-tex.ps - - * .cvsignore: Removed INSTALL, INSTALL.windows. - -2004-04-12 Ralf Angeli - - * latex.el (LaTeX-syntactic-comments): New name. Formerly known - as `LaTeX-format-comment-syntax-aware'. This should better - reflect the meaning the variable will receive eventually. - (LaTeX-indent-line): Use new name. - (LaTeX-current-indentation): Ditto. - (LaTeX-back-to-indentation): Ditto. - (LaTeX-fill-paragraph): Ditto. - (doctex-mode): Ditto. - - * context.el (context-mode): Use `LaTeX-syntactic-comments' - instead of `LaTeX-format-comment-syntax-aware'. - -2004-04-10 Ralf Angeli - - * doc/auc-tex.texi (Japanese): Refer to `INSTALL' instead of - `INSTALLATION'. - - * doc/intro.texi: Refer to `INSTALL' and `INSTALL.windows' - instead of `INSTALLATION'. - - * IRIX: Removed. - - * Makefile.in (EXTRAFILES): Removed IRIX. - - * COPYING: Updated to current incarnation. - -2004-04-09 Reiner Steib - - * Makefile.in (install-el, dist): Add .nosearch in style/ and - auto/. - -2004-04-09 Ralf Angeli - - * context.el (ConTeXt-current-interface): eval-and-compile instead - of eval-when-compile seems to solve the undefined error message. - -2004-04-08 Peter S Galbraith - - * font-latex.el (font-latex-setup): Bug Fix; was overriding - font-latex-string-face. Thanks to Reuben Thomas for finding the bug. - -2004-04-08 Jan-Åke Larsson - - * configure.in: Remove sole reference to texmfdir - - * aclocal.m4: Fix --with-lispdir - -2004-04-08 Ralf Angeli - - * latex.el (LaTeX-fill-paragraph): Fix check for code comment. - (LaTeX-fill-code-comment): Ditto. - - * tex.el (TeX-in-commented-line): Don't alter match data. Fixes - problems with `LaTeX-find-matching-end'. - (TeX-in-line-comment): Ditto. (Prophylactic.) - -2004-04-08 Berend de Boer - - * latex.el (LaTeX-outline-name): could reach past end of buffer - when an imenu was created and LaTeX-outline-regexp contained a - macro that either didn't take a argument between braces or a macro - was found in the document and the user forgot to specify the - argument. And that macro was after the last 20 characters of the - buffer. - - * context.el (ConTeXt-current-interface): eval-when-compile this - variable fixed another reported compiliation error. - -2004-04-07 Reiner Steib - - * latex.el (LaTeX-default-position, LaTeX-env-array) - (LaTeX-env-tabular*): Implement "don't prompt" option. - - * doc/auc-tex.texi (Tabular-like): Added `LaTeX-default-format' - and `LaTeX-default-position'. - -2004-04-07 Ralf Angeli - - * latex.el (LaTeX-fill-break-at-separators): New name. Formerly - known as `LaTeX-fill-distinct-contents'. - Changed 'braced and 'math options to various symbols for opening - and closing separators (braces, brackets, math switches) which - can be activated independently. - (LaTeX-fill-move-to-break-point): Use it. - - * doc/auc-tex.texi (Marking and formatting): Reflect change of - `LaTeX-fill-distinct-contents' to - `LaTeX-fill-break-at-separators'. - Describe `LaTeX-fill-break-before-code-comments'. - -2004-04-07 David Kastrup - - * tex-buf.el (TeX-run-command): Turn off line number mode in the - run-buffer effectively by setting line-number-display-limit - locally to 0. - (TeX-format-filter): Use a more sophisticated procedure for - fishing out page numbers in order to have fast matches. - -2004-04-07 Berend de Boer - - * Lots of enhancements to context.el. There is now a ConTeXt - specific menu which lists ConTeXt specific macro's for inserting - start/stop pairs, project structure and setup of things. Menu also - let's you jump to the etexshow definition if you have that - installed. Querying for macro parameters is non-existent or - flaky. outline and imenu support added. You can close an XML tag - if you're editing XML in ConTeXt with C-c /. - List of environments is now complete. - Paragraph formatting works in certain cases, but is really slow or - doesn't work in certain cases. - Indenting the same: works sometimes, but still flaky. - Bugs fix: start/stop insertion works now. - - * documentation now mentions ConTeXt sometimes. - - * context.el (ConTeXt-current-interface): make now doesn't complain - anymore when byte compiling ConTeXt. - - * tex.el now recognizes ConTeXt dutch interface. - -2004-04-05 Ralf Angeli - - * latex.el (LaTeX-fill-code-comment): Respect `indent-tabs-mode'. - Fix partially taken from GNU Emacs' fill.el. - - * tex.el (TeX-mode-specific-command-list): New function. - (TeX-mode-specific-command-menu): Use it. - - * tex-buf.el (TeX-command-query): Use - `TeX-mode-specific-command-list' to get a command list specific - to the current mode for command completion. - -2004-04-04 Ralf Angeli - - * latex.el (docTeX-indent-inner-fixed): New var. - (LaTeX-indent-calculate): Use it. - (LaTeX-indent-calculate-last): Reset indentation to zero after - macrocode environments. - - * style/booktabs.el (TeX-add-style-hook): Add fontification - support. - -2004-04-04 David Kastrup - - * latex.el (LaTeX-find-matching-end, LaTeX-find-matching-end): Try - to keep track of in-comment-ness - -2004-04-03 David Kastrup - - * Makefile.in (STYLESRC): Add emp.el. - - * style/emp.el: New file contributed from Yvon Hevel. - -2004-04-02 Ralf Angeli - - * latex.el (LaTeX-back-to-indentation): Use `beginning-of-line' - instead of `move-to-left-margin' as it is faster and we don't use - the margin anyway. - (LaTeX-fill-region-as-para-do): Use `point-max' for correctly - determining the end of the filling loop in case of a code comment. - Narrow to region in any case to simplify this determination in - case there is no code comment. - (LaTeX-fill-move-to-break-point): Fix compatibility code for - getting the initial break point. In case there is no valid break - point on the way towards the beginning of the line, look down the - line. - -2004-03-28 Ralf Angeli - - * tex.el (TeX-output-view-style): Remove option for landscape in - case of PDF output. - -2004-03-26 David Kastrup - - * latex.el (LaTeX-fill-region): Correct percentage display. - - * tex-buf.el (TeX-format-filter): Strictly restrict backward - searches for page number patterns. - -2004-03-26 Davide G. M. Salvetti - - * bib-cite.el, latex.el, tex-buf.el, tex-jp.el, tex.el: - Map (function (lambda ...)) to (lambda ...) for better - readability. - - * doc/.cvsignore: Added CHANGES, HISTORY, README, auc-tex*.html. - - * doc/intro.texi: Minor fix. - -2004-03-26 Ralf Angeli - - * latex.el (LaTeX-indent-line): Use `looking-at' instead of - `re-search-forward'. Pass indent amount to - `LaTeX-indent-{inner,outer}-do' functions. - (LaTeX-indent-inner-do, LaTeX-indent-outer-do): Let them be called - with an explicit parameter for the indent amount. - (LaTeX-indent-calculate-last): Distinguish a commented and an - uncommented line when skipping backwards to the preceding line. - Move tests for comment skips into the `cond' statement for better - readability. - (LaTeX-fill-break-before-code-comments): New customize option. - (LaTeX-fill-region-as-paragraph): Change the regular expression - which is used for searching for special line ends so that it is - not such a performance hog. Code for determining the region to - fill was adapted accordingly. - (LaTeX-fill-region-as-para-do): Remove trailing whitespace after - newlines were changed to spaces. Reported by Reiner Steib - . - Use `narrow-to-region' for keeping track of potential code comment - starts. - Break a line at the last non-comment word before a code comment. - This can be configured with - `LaTeX-fill-break-before-code-comments'. - (LaTeX-fill-move-to-break-point): Use `LaTeX-back-to-indentation' - for going to the right start of a line. - (LaTeX-fill-paragraph): `LaTeX-backward-paragraph' does not skip - forward over empty lines itself anymore, so do it here. - (LaTeX-fill-region): Use `LaTeX-forward-paragraph' and - `LaTeX-backward-paragraph' instead of the old code which - determined paragraph boundaries manually. - (LaTeX-forward-paragraph, LaTeX-backward-paragraph): Improve - handling of paragraph commands. - (LaTeX-paragraph-command-p): Get rid of the test for the opening - brace because there doesn't have to be one. - (LaTeX-find-macro-start): New function. - (LaTeX-find-macro-end): New function. - - * .cvsignore: Added `tex-site.el'. - -2004-03-23 David Kastrup - - * tex.el (VirTeX-common-initialization): Back out last change - about sentence-end-double-space. - -2004-03-22 Jan-Åke Larsson - - * aclocal.m4, configure.in: Fix bug for the case $prefix=NONE - - * Makefile.in: distclean target removes tex-site.el - -2004-03-22 David Kastrup - - * latex.el (LaTeX-fill-distinct-contents): Simplify customization - type: nil is a complete list. - -2004-03-21 David Kastrup - - * tex.el (VirTeX-common-initialization): Set - sentence-end-double-space and sentence-end to more appropriate - values for TeX. - -2004-03-21 Ralf Angeli - - * latex.el (LaTeX-fill-region-as-paragraph): Fix separation of - lines with code comments looking like " {%". - (LaTeX-fill-move-to-break-point): Fix determination of break point - for an opening brace where there is no break point immediately - after the respective closing brace. - (LaTeX-fill-region-as-para-do): Fix determination of code comment - begin in filling loop. - -2004-03-20 Ralf Angeli - - * latex.el (LaTeX-fill-region-as-para-do): Fix compatibility code - for older Emacsen. - -2004-03-19 David Kastrup - - * tex-site.el.in (texinfo-mode): Autoload tex-info again. I - suppose we will get to know why it was disabled when someone - complains. - -2004-03-19 Davide G. M. Salvetti - - * doc/Makefile.in (clean): Add HISTORY. - - * tex.el (TeX-lisp-directory): Removed, it's already defined in - tex-site.el.in. - -2004-03-19 Ralf Angeli - - * latex.el (LaTeX-current-environment): Use correct regexp for - determination of a comment. - (LaTeX-format-comment-syntax-aware): Renamed from - `LaTeX-fill-comment-syntax-aware' because it affects both filling - and indentation. - (LaTeX-indent-line): Add support for doing outer and inner - indentation. - (LaTeX-current-indentation): Ditto. - (LaTeX-back-to-indentation): Ditto. - (LaTeX-indent-calculate): Ditto. - (LaTeX-indent-calculate-last): Ditto. Fix indentation for - environments mentioned in `LaTeX-document-regexp' which use an - unclosed brace in the first line. - (LaTeX-indent-inner-do): New function. - (LaTeX-indent-outer-do): New function. - (LaTeX-fill-region-as-paragraph): Include lines with code comments - in regions to be filled. Recognize lines ending with `\par' as - boundaries for filling. - (LaTeX-fill-region-as-para-do): Better handling of code comments. - (LaTeX-fill-paragraph): Make function more readable by selecting - different filling methods by a `cond' statement and putting code - for the determination of the region to fill in case of - syntax-aware filling into the separate functions - `LaTeX-forward-paragraph' and `LaTeX-backward-paragraph'. Better - handling of code comments. - (LaTeX-fill-code-comment): New function. - (LaTeX-forward-paragraph): New function. - (LaTeX-backward-paragraph): New function. - (LaTeX-paragraph-command-p): New function. - (LaTeX-common-initialization): Let `paragraph-start' handle - comments preceded by whitespace as well. - (LaTeX-fill-move-to-break-point): Support `\[' and `\]' as well - if `LaTeX-fill-distinct-contents' is activated. - - * tex.el (tex-mode): `comment-start-skip' shouldn't match line - beginnings. - (VirTeX-common-initialization): Ditto. - (TeX-in-line-comment): New function. - (TeX-forward-comment-skip): Use correct regexp for determination - of a comment. Fix case where `count' is less than zero, i.e. if - a backward search is performed. - (TeX-backward-comment-skip): New function. - - * doc/auc-tex.texi: Reflect name change of - `LaTeX-fill-comment-syntax-aware' to - `LaTeX-format-comment-syntax-aware'. - -2004-03-18 Jan-Åke Larsson - - * Makefile.in, configure.in, tex-site.el, tex-site.el.in: - Move tex-site.el to tex-site.el.in, generate tex-site.el at configure - time rather than at install time - -2004-03-18 Ralf Angeli - - * tex.el (TeX-output-view-style): Use `%f' instead of `%s.ps' for - PostScript files. - (TeX-mode-map): Change key binding of `TeX-master-file-ask' to - `C-c_' because `C-c-' is already taken by RefTeX. - - * doc/auc-tex.texi: Change "Formatting" node to "Running TeX and - friends" and use a respective heading. - Adapt key binding for `TeX-master-file-ask'. - - * doc/intro.texi: Correct URLs. - -2004-03-14 David Kastrup - - * tex.el (TeX-command-list): Change interactive calls to use - \input, so that pdflatex \pdfoutput=0 becomes a legal way to call - LaTeX. - (VirTeX-common-initialization): Save TeX-master if desktop - package is used. - -2004-03-14 Ralf Angeli - - * tex.el (TeX-output-view-style): Fix it after it was accidently - and incorrectly changed with the last check-in. Patch by David - Kastrup . - (TeX-view-style): Ditto. - -2004-03-11 Ralf Angeli - - * tex.el (TeX-find-opening-brace): Don't match the char before the - brace. This returns the correct position and fixes the handling - of the limit parameter. - - * latex.el (LaTeX-fill-move-to-break-point): Don't match the char - before the char to find in case of backward searches. - (LaTeX-fill-region-as-paragraph): Make the regular expression, - which serves searching for lines with code comments, match the - whole line. - -2004-03-10 Ralf Angeli - - * latex.el (LaTeX-fill-move-to-break-point): Use `TeX-esc' in - other, similar places not covered by the last check-in as well. - - * doc/auc-tex.texi: Document `LaTeX-indent-environment-list', - `LaTeX-fill-comment-syntax-aware' and - `LaTeX-fill-distinct-contents' as well as slightly improve some - other parts in the section about `Marking and formatting'. - -2004-03-10 David Kastrup - - * latex.el (LaTeX-fill-move-to-break-point): Use TeX-esc in - regexps to accommodate Texinfo better. - (LaTeX-fill-move-to-break-point): no regexp-quote within braces. - (LaTeX-common-initialization): Correct \multicolumn prompt - -2004-03-09 Ralf Angeli - - * latex.el (LaTeX-fill-move-to-break-point): Cope with unmatched - closing braces when `LaTeX-fill-distinct-content' is enabled for - braced content. - -2004-03-09 Jan-Åke Larsson - - * Makefile.in: Add separate target for .el files to cater for debian - -2004-03-07 Ralf Angeli - - * style/booktabs.el: New file. - - * Makefile.in (STYLESRC): Add `booktabs.el'. - - * doc/changes.texi: Advertise support for `booktabs.sty'. - -2004-03-06 Ralf Angeli - - * doc/auc-tex.texi: Small corrections in `Viewing' section. - -2004-03-02 Jan-Åke Larsson - - * doc/Makefile.in: Add packagedir - -2004-03-02 Ralf Angeli - - * latex.el (LaTeX-insert-environment): Fix insertion of newlines - for the case where `LaTeX-insert-into-comments' is activated but - point is not inside a comment. - -2004-02-28 David Kastrup - - * Makefile.in (install-lisp): Overwrite old tex-site.el if it has - the "Don't edit" comment in it. Rename it otherwise. Use - $(auctexdir) instead of $(lispdir) for replacing @AUCTEX. - - * tex-buf.el (TeX-command-query): Allow doctex-mode for .bbl file - checking. - - * tex-site.el: Discourage customization in-file. - - * latex.el (LaTeX-outline-regexp, LaTeX-environment) - (LaTeX-document-style-hook): Change docs to refer to document - classes instead of document style. - (LaTeX-env-document): Don't insert anything but document class. - (LaTeX-menu-update): Check for doctex-mode. - (doctex-mode): Make it a major mode derived from latex-mode. - -2004-02-28 Ralf Angeli - - Merge with new-fill branch. - -2004-02-27 Jan-Åke Larsson - - * configure.in: Respect --infodir even if using xemacs. - - * aclocal.m4: Add yes/no answer for the MULE check. - - * Makefile.in: Correct xemacs-install. - - * Makefile.in, aclocal.m4, configure.in: If there is a wrongly - installed tex-site.el, use the proper install directory anyway - (i.e., don't be side-tracked), and remove the wrongly installed - tex-site.el. These things are only needed for CVS users who have - used the erroneous xemacs-installation. - -2004-02-27 Ralf Angeli - - * latex.el (LaTeX-mode-menu): Insert customize option and - rearrange. - (LaTeX-fill-move-to-break-point): Bandaid for not breaking inside - square brackets where the content fits into one line. - - * tex.el (plain-TeX-mode-menu): Insert customize option. - - * doc/auc-tex.texi: Document options for inserting quotes in files - where `(n)german.sty' is used and the invocation of external - viewers. - -2004-02-26 Ralf Angeli - - * latex.el (LaTeX-fill-break-before-macro) - (LaTeX-fill-break-after-macro): Unused, so removed. - (LaTeX-fill-distinct-contents): New name for defcustom - `LaTeX-fill-break-before-and-after'. - (LaTeX-fill-move-to-break-point): Fix filling of nested braces and - math. - (TeX-find-closing-brace, TeX-find-opening-brace) - (TeX-forward-comment-skip): Moved to `tex.el'. - - * tex.el (TeX-find-closing-brace, TeX-find-opening-brace) - (TeX-forward-comment-skip): Moved from `latex.el'. - -2004-02-26 David Kastrup - - * latex.el (doctex-mode): Make a minor mode. - - * tex-site.el (doctex-mode): Add autoloads and file extensions. - - * tex.el (TeX-master-file): Don't overwrite TeX-master when not - asking the question. - -2004-02-22 David Kastrup - - * latex.el (LaTeX-newline): New function. Spread it throughout - the code in order to stay in comments for completion and - insertion commands. - (doctex-mode): New function. - -2004-02-19 David Kastrup - - * latex.el (LaTeX-fill-paragraph): Back out changes from - 2003-12-29. - Create separate new-fill branch for Ralf's code. - -2004-02-17 Reiner Steib - - * font-latex.el (font-latex-title-4-face): Added missing :weight - and :inherit for color displays. - -2004-02-15 Peter S Galbraith - - * bib-cite.el (bib-cite-fontify-help-as-bibtex) - (bib-cite-fontify-help-as-latex): Check existence of - font-lock-unset-defaults; no longer defined in CVS Emacs. - Thanks to Adrian Lanz for reporting the problem. - -2004-02-15 Reiner Steib - - * font-latex.el (font-latex-title-4-face): Use different colors - depending on background. - -2004-02-03 Ralf Angeli - - * tex.el (TeX-comment-region): Map to `comment-region' instead of - `TeX-comment-or-uncomment-region'. - (TeX-uncomment-region): New name for `TeX-un-comment-region'. Not - mapped to `TeX-comment-or-uncomment-region' anymore. - (TeX-uncomment): New name for `TeX-un-comment'. Use - `TeX-uncomment-region' instead of `uncomment-region' which is not - available in Emacs 20. - (TeX-comment-or-uncomment-paragraph): New name for - `TeX-comment-paragraph' which explains its function better. Use - new name `TeX-uncomment'. - (TeX-mode-map): Bind key chains to `TeX-comment-or-uncomment-*' - functions. - (plain-TeX-mode-menu): Adapt function calls in menu entries. - - * tex-info.el (TeXinfo-mode-map): Bind key chains to - `TeX-comment-or-uncomment-*' functions. - (TeXinfo-mode-menu): Adapt function calls in menu entries. - - * latex.el (LaTeX-mode-menu): Adapt function calls in menu - entries. Small enhancements. - - * doc/auc-tex.texi (Commenting): Adapt documentation to reflect - changes in commenting interface. - -2004-01-31 Ralf Angeli - - * tex.el (TeX-comment-or-uncomment-region): New function or alias - respectively introduced to obtain compatibility with GNU Emacsen - before 21.4. - (TeX-uncomment-region): New function or alias respectively - introduced to obtain compatibility with GNU Emacsen before - 21(.1?). - (TeX-comment-region): Bound to `TeX-comment-or-uncomment-region'. - (TeX-un-comment-region): Bound to `TeX-comment-or-uncomment-region'. - -2004-01-27 Masayuki Ataka - - * tex-jp.el (TeX-command-list): Fixed previous change. - -2004-01-25 Masayuki Ataka - - * tex-jp.el (japanese-TeX-command-list): Remove dummy code for - command menu. - -2004-01-23 Masayuki Ataka - - * tex-jp.el (japanese-TeX-command-list): Change single quotes to - double. We get reasonable results under both Windows and Unix. - See also log of TeX-command-list in tex.el on 2002-12-19. - - * tex.el (TeX-toggle-off-input-method): Removed some Japanese - input methods (Canna, Wnn, SKK) because their code is copied from - YaTeX, which is not GPL program. Toggle off CJK (Chinese, Japanese, - Korean) input methods in LEIM. - (TeX-math-toggle-off-input-method): Doc fix. - -2004-01-13 Ralf Angeli - - * latex.el (LaTeX-mode-menu): Removed menu filters in the submenus - for inserting and modifying environments which call - `LaTeX-menu-update'. - (LaTeX-common-initialization): Add `LaTeX-menu-update' to - `activate-menubar-hook' instead. - -2004-01-12 Ralf Angeli - - * tex.el (TeX-view-style, TeX-output-view-style): Use a regexp - which matches `a5', `a5comb' and `a5paper' instead of the old - which matches only `a5'. - -2004-01-12 Ralf Angeli - - * tex.el (TeX-command-menu-name): New constant. - (TeX-mode-specific-command-menu): Reimplemented the loop which - builds the menu. - (TeX-mode-command-menu): Use new constant and call - `TeX-mode-specific-command-menu' via `:filter'. - (AmSTeX-mode-command-menu): Ditto. - - * context.el (ConTeXt-mode-command-menu): Use new constant - `TeX-command-menu-name' and call `TeX-mode-specific-command-menu' - via `:filter'. - - * latex.el (LaTeX-mode-command-menu): Ditto. - - * tex-info.el (TeXinfo-mode-command-menu): Ditto. - - * tex-jp.el (plain-TeX-mode-command-menu) - (LaTeX-mode-command-menu): Ditto. - -2004-01-10 Ralf Angeli - - * doc/changes.texi: Added further news. - -2004-01-09 Ralf Angeli - - * doc/auc-tex.texi: AUC TeX to AUCTeX. Use `%%%' instead of a - single `%' character in examples for Local Variables. Add - information about new behavior in respect to the query for the - master file. Explain new function `TeX-master-file-ask'. - - * doc/changes.texi: Advertise new master file behavior. Remove - news about new commenting behavior which is not true anymore. - - * doc/intro.tex.: AUC TeX to AUCTeX. - - * tex.el (TeX-local-master-p): Removed one `%' character in regexp - to let it find "% TeX-master:" as well. - -2004-01-07 Ralf Angeli - - * tex.el (TeX-command-list): Changed defcustom definition to one - which allows the specification of several modes for one command - and adapted the defaults to it. Thanks to David Kastrup for most - of the code. - (plain-TeX-command-menu): Adapted the call to - `TeX-mode-specific-command-menu'. - (AmSTeX-mode-command-menu): Ditto. - - * latex.el (LaTeX-mode-command-menu): Adapted the call to - `TeX-mode-specific-command-menu'. - - * context.el (ConTeXt-mode-command-menu): Ditto. - - * tex-info.el (TeXinfo-mode-command-menu): Ditto. - - * tex-jp.el (japanese-TeX-command-list): Adapted list entries - according to defcustom changes in `tex.el'. - (plain-TeX-mode-command-menu): Adapted the call to - `TeX-mode-specific-command-menu'. - (LaTeX-mode-command-menu): Ditto. - - * tex-mik.el (TeX-command-list): Adapted list entries - according to defcustom changes in `tex.el'. - - * tex-fptex.el (TeX-command-list): Ditto. - -2004-01-06 Ralf Angeli - - * tex.el (TeX-command-list): Get rid of the superfluous sixth - element in the defcustom and menu/command definitions. - - * tex-jp.el (japanese-TeX-command-list): Ditto. - - * tex-mik.el (TeX-command-list): Ditto. - - * tex-fptex.el (TeX-command-list): Ditto. - -2004-01-05 David Kastrup - - * latex.el (LaTeX-common-initialization): Add \item to the - paragraph starters. - -2004-01-05 Ralf Angeli - - * tex.el (TeX-mode-specific-command-menu): New function to be used - for generating a mode-specific command menu. - (plain-TeX-mode-map): New map to be used by plain-tex-mode. - (plain-TeX-mode-command-menu): New menu used instead of - `TeX-mode-menu' which utilizes `TeX-mode-specific-command-menu'. - (TeX-mode-menu): Removed in favor of - `plain-TeX-mode-command-menu'. - (AmSTeX-mode-map): New map to be used by ams-tex-mode. - (AmSTeX-mode-command-menu): New menu. - (ams-tex-mode): Moved and grouped with other AmSTeX-related code. - Added code to use new menu. - (TeX-command-list): Added new choice for the selection of the mode - for the respective command. Adapted doc string. Added respective - symbols to command definitions. Rearranged command definitions. - Changed `LaTeX PDF' to `PDFLaTeX'. - - * latex.el (LaTeX-mode-command-menu): New menu used instead of - `TeX-mode-menu'. - (LaTeX-common-initialization): Activate it. - - * context.el (ConTeXt-mode-command-menu): New menu used instead of - `TeX-mode-menu'. - (context-mode): Activate it. - - * tex-info.el (TeXinfo-command-menu): Adapted for using - `TeX-mode-specific-command-menu'. - - * tex-jp.el (japanese-TeX-command-list): Added symbols to command - definitions needed for assigning them to the respective mode. - (TeX-mode-menu): Removed. - (plain-TeX-mode-command-menu): New menu utilizing - `TeX-mode-specific-command-menu'. - (LaTeX-mode-command-menu): New menu utilizing - `TeX-mode-specific-command-menu'. - (LaTeX-mode-map): Removed key definition for `TeX-mode-menu'. - - * tex-fptex.el (TeX-command-list): Added symbols to command - definitions needed for assigning them to the respective mode. - Changed `LaTeX PDF' to `PDFLaTeX'. - - * tex-mik.el (TeX-command-list): Ditto. - - * doc/changes.texi: Mention the change to a mode-specific command - menu and the need for the deletion of any former customization of - `TeX-command-list'. - -2004-01-03 Ralf Angeli - - * tex.el (TeX-mode-map): Use `C-c -' as a key binding for - `TeX-master-file-ask' as `C-c !' is already used in `context.el'. - -2004-01-02 David Kastrup - - * latex.el (LaTeX-left-comment-regexp) - (LaTeX-right-comment-regexp, LaTeX-ignore-comment-regexp): revert - an inadvertant change two checkins ago. I was just experimenting - with something that did not yet work (as if the original did) and - did not intend checking it in. - -2003-12-30 Ralf Angeli - - * tex.el (TeX-master-file): Added new parameter `ask' which is - to be used if the user shall be asked when the function is - called. Took out the code which provides the functionality for - asking the respective question and added it to the newly created - function `TeX-master-file-ask'. - (TeX-master-file-ask): New function. - (TeX-local-master-p): New function. - (tex-mode): Removed the call of `TeX-master-file' via the hook - `hack-local-variables-hook'. - (VirTeX-common-initialization): Added the call to - `TeX-master-file' via the hook `find-file-hooks'. Additionally - `TeX-update-style' will be called to activate the respective style - files. - (TeX-mode-map): Added key binding for calling - `TeX-master-file-ask'. This is a temporary solution. - (TeX-mode-menu): Took out redundant entry for `TeX-home-buffer'. - Added entry "Set Master File" for `TeX-master-file-ask'. Grouped - menu entries relevant for multifile handling. - - * latex.el (LaTeX-mode-menu): Changed analogously to - `TeX-mode-menu'. - -2003-12-29 David Kastrup - - * latex.el: Fix AUCTeX URL. - (LaTeX-fill-paragraph): Skip from inline comments to either line - comments or something that is not merely an inline comment. I am - not even sure that this skipping makes good sense, in particular - since it is followed by `forward-paragraph'. - (LaTeX-common-initialization): Change the definitions of - `paragraph-start' and `paragraph-separate' to something that - makes things like `forward-paragraph' and its ilk behave more - sensibly when in comments. The previous behavior is just awful, - and caused a lot of inadvertant damage when using things like - `fill-paragraph' within comments. - (LaTeX-common-initialization): Remove syntax error, sorry. - -2003-12-29 David Kastrup - - * latex.el: Fix AUCTeX URL. - (LaTeX-fill-paragraph): Skip from inline comments to either line - comments or something that is not merely an inline comment. I am - not even sure that this skipping makes good sense, in particular - since it is followed by `forward-paragraph'. - (LaTeX-common-initialization): Change the definitions of - `paragraph-start' and `paragraph-separate' to something that - makes things like `forward-paragraph' and its ilk behave more - sensibly when in comments. The previous behavior is just awful, - and caused a lot of inadvertant damage when using things like - `fill-paragraph' within comments. - -2003-12-26 Ralf Angeli - - * style/scrbase.el (TeX-add-symbols): Remove redundant entries. - - * style/scrlttr2.el (TeX-add-symbols): Remove redundant entry. - - * style/scrpage2.el: Remove unnecessary coding cookie and text in - introductory comment. - -2003-08-02 Mike Sperber - - * latex.el (latex-mode): Really turn off filladapt. It just - doesn't work with `LaTeX-fill-paragraph'. - -2003-12-02 Ralf Angeli - - * tex.el (tex-mode): Let `TeX-master-file' be called upon opening - a file. This shall restore the behaviour before the last change - regarding the question for `TeX-master'. Thanks to Peter - Galbraith for setting the patch right. - -2003-11-28 David Kastrup - - * tex.el (LaTeX-update): Advice removed because of the following: - - * latex.el (LaTeX-menu-update): Now called via :filter predicate - of menus. - -2003-11-27 Ralf Angeli - - * style/paralist.el: Removed coding cookie in first line. - Removed obsolete comment regarding placement of file. - (LaTeX-paralist-env-item-opt-label): Renamed from - `pl-LaTeX-env-item-opt-label' and changed references accordingly. - Added docstring. - Let `itemize' and `enumerate' environments use this function. - Thanks to Reiner Steib for these suggestions. - -2003-11-26 Reiner Steib - - * latex.el (LaTeX-section-label): Added "part" and - "subsubsection". Sync "chapter" with fancyref.sty. - - * style/fancyref.el ("fancyref"): Added font-lock keywords. - -2003-11-25 Reiner Steib - - * latex.el (LaTeX-math-default): Added greek \var... symbols. - (LaTeX-common-initialization): Removed "SLiTeX", added spacing - commands and "appendix". - - * font-latex.el (font-latex-match-function-keywords): Added - spacing commands, "nonumber", "centering", "TeX", and "LaTeX". - (font-latex-match-textual-keywords): Added textsuperscript. - -2003-11-17 Ralf Angeli - - * Makefile.in (STYLESRC): Added scrpage2.el. - -2003-11-17 Peter S Galbraith - - * font-latex.el (font-latex-keywords-2): Had forgotten to set - LAXMATCH on all title matches. Thanks to Ralf Angeli for - reporting the bug. - - * bib-cite.el (bib-cite-file-directory-p): New functions. I had - introduced a call to code from ff-paths.el by mistake. - -2003-11-17 Ralf Angeli - - * style/scrbase.el (TeX-add-style-hook): Added further symbols to - `TeX-add-symbols' and rearranged them alphabetically. - Added macros with parameters to - `font-latex-match--keywords-local'. - Added `addsec' and `addpart' to - `font-latex-match-title--keywords-local'. - - * style/scrbook.el (TeX-add-style-hook): Analogous. - - * style/scrlttr2.el (TeX-add-style-hook): Analogous. - - * style/scrreprt.el (TeX-add-style-hook): Analogous. - - * style/scrpage2.el: New file. - -2003-11-16 Ralf Angeli - - * tex.el (VirTeX-common-initialization): Disabled lines which set - `comment-add' to 1 to restore commenting with a single `%'. - (TeX-un-comment-region): Function code removed and function name - mapped to `comment-dwim'. - (TeX-un-comment): Allow searching for commented lines with - potential white space at the beginning. - (TeX-comment-paragraph): Partially rewritten to allow it to be - used for both commenting and uncommenting. - (TeX-in-commented-line): New function used in - `TeX-comment-paragraph'. - - * doc/auc-tex.texi (Commenting): Reflect changes in `tex.el'. - -2003-11-13 Ralf Angeli - - * style/paralist.el: New file. - - * Makefile.in (STYLESRC): Added paralist.el. - -2003-10-18 Peter S Galbraith - - * font-latex.el: checkdoc cleaning (almost clean now). - -2003-09-18 Peter S Galbraith - - * font-latex.el (font-latex-quotes): New defcustom to fontify - either french or german quotes. - (font-latex-quote-regexp-beg): New variable. Holds the regexp to - match the beginning of a quote. - (font-latex-quote-end-list): New variable. Holds the list of - strings to end a matched quote. - (font-latex-match-quotation): Fixed to use above variables. - -2003-09-18 Peter S Galbraith - - * bib-cite.el: bib-cite-aux-inputs: new defcustom. - Minor code cleanup for `match-string'. - -2003-09-15 Reiner Steib - - * tex.el (TeX-master-file): Fix 'shared case. - Tiny patch from Shiro Takeda . - -2003-09-08 Peter S Galbraith - - * bib-cite.el: Ripping out off-topic imenu code. - -2003-09-07 Peter S Galbraith - - * font-latex.el: Bug fix when font-lock-multiline is set to t. - -2003-08-21 Reiner Steib - - * Changelog: Added coding cookie. - - * doc/Makefile.in (install): Check if auctex-* exists. Needed - because default split size changed in texinfo 4.6. - -2003-07-25 Peter S Galbraith - - * font-latex.el: Make & highlighted in font-latex-warning-face. - Better document font-latex-match-*-keywords-local variables. - -2003-07-20 Masayuki Ataka - - * configure.in: Use mule support check. - - * Makefile.in (CONTRIB_MULE, COMPILE_MULE, CONTRIB_MULEELC): New macros. - (contrib): Compile CONTRIB and COMPILE_MULE. - (install-contrib): Install CONTRIB_MULE and CONTRIB_MULEELC, too. - - * aclocal.m4 (EMACS_CHECK_MULE): Check (X)Emacs mule supported. - - * Makefile.in (clean): Remove Emacs auto-save files. Remove elc - files in the current and style directory. - -2003-06-21 Masayuki Ataka - - * Makefile.in: Delete trailing whitespaces. - - * tex.el (TeX-near-bobp): Undo last change. - - * tex-jp.el: Fix some document. - (AUCTeX-jp): New custom group. - (japanese-TeX-command-default, japanese-LaTeX-command-default) - (japanese-LaTeX-default-style, japanese-LaTeX-style-list): - Support for defcustoms. - -2003-06-14 David Kastrup (tiny patch from Stephen Gildea) - - * tex.el (TeX-auto-untabify): Change default to nil. - - * doc/auc-tex.texi (Parsing Files): document this. - -2003-06-07 David Kastrup - - * tex.el (TeX-lisp-directory, TeX-auto-global, TeX-style-global) - (TeX-auto-local, TeX-style-local, TeX-macro-private) - (TeX-load-style, TeX-parse-path, TeX-run-style-hooks) - (TeX-auto-write, TeX-auto-generate, TeX-auto-generate-global) - (TeX-ignore-file, TeX-search-files): try catering with Windows - file names. - (TeX-directory-absolute-p): removed, since file-name-absolute-p - serves the same purpose. - -2003-06-06 Jan-Åke Larsson - - * Makefile.in: Added datadir - -2003-06-05 Masayuki Ataka - - * latex.el (LaTeX-env-label): Toggle off input method when - entering math mode. - * style/amsmath.el (LaTeX-amsmath-env-alignat) - (LaTeX-amsmath-env-aligned): Ditto. - - * tex.el (TeX-toggle-off-input-method): Removed interactive. - (TeX-math-input-method-off): New function. - (TeX-insert-dollar): Use it. Do not call function - TeX-toggle-off-input-method directly. - -2003-06-03 Masayuki Ataka - - * tex.el (TeX-macro): Set group 'AUCTeX. - -2003-06-03 David Kastrup - - * latex.el (LaTeX-mode-menu): Replace "Change Font" with "Replace - Font" - - * tex-info.el (TeXinfo-mode-menu): Same here. - - * doc/tex-ref.tex (section{Font Selection}): Same here. - -2003-06-03 Masayuki Ataka - - * tex.el (TeX-math-toggle-off-input-method): New user option. - (TeX-toggle-off-input-method): New function. - (TeX-insert-dollar): Use it. - -2003-06-02 Masayuki Ataka - - * tex.el (TeX-near-bobp): Fixed typo in doc-string. - -2003-05-27 Piet van Oostrum - - * latex.el (LaTeX-auto-minimal-regexp-list): Changed regexp to - allow \documentclass[]{someclass}. - -2003-05-02 Patrick Gundlach - - * context.el: ConTeXt-environment can now modify the current - environment. Added preliminary functionality for calling a - function on an environment. ConTeXt-mark-environment, - ConTeXt-find-matching-stop and ConTeXt-find-matching-start - (similar to the ones in latex.el) added. - -2003-04-15 Reiner Steib - - * doc/wininstall.texi: Fixed typos in configure options. - -2003-04-15 Patrick Gundlach - - * tex.el (TeX-command-list): Changed %v to %V in View. Now - TeX-output-view-style is used for setting viewer preferences. See - changes from 2003-02-06 below. - -2003-04-15 Reiner Steib - - * .cvsignore: Added INSTALL and INSTALL.windows - - * Makefile.in (STYLESRC): Added captcont.el and subfigure.el - -2003-04-15 Jan-Åke Larsson - - * doc/wininstall.texi: Corrected download info for GNU Emacs - -2003-04-14 Peter S Galbraith - - * font-latex.el (font-latex-match-*-keywords): New user - customizable variables to add fontification keywords. - See `M-x customize-group [RET] font-latex'. - (font-latex-match-*-keywords-local): New buffer-local variables to - be used by elisp style file writers. - (font-latex-match-*-keywords-set): Support for defcustoms. - (font-latex-match-*-make): Build the actual font-lock variables - from the `font-latex-match-*-keywords' defcustoms. - -2003-04-14 David Kastrup - - * doc/install.texi (Customizing): hilit-LaTeX.el deleted. - -2003-04-14 Jan-Åke Larsson - - * autogen.sh: Generate INSTALL and INSTALL.windows - - * doc/Makefile.in: Use the configure compatibility test results - - * doc/macros.texi: Compatibility macros, initial version - - * configure.in: Do the makeinfo tests, for compatibility with - texinfo 3.12, test for tex - - * doc/install.texi: Changed to document the autoconf stuff - - * doc/wininstall.texi: Added - -2003-04-10 David Kastrup - - * tex.el (AUCTeX): Fix URLs. - - * context.el: Fix AUCTeX URL. - Make modification date RCS tag. - -2003-04-09 Patrick Gundlach - - * tex.el (TeX-command-list): Changed ConTeXt Clean from purge to - purgeall; I guess this behaves as users would expect. - - * context.el: minor cleanups, switched to the name "AUCTeX" where - not done yet. Made ConTeXt-add-environments able to - byte-compile. Added new copyright statement. - - * Makefile.in: Added context.el(c) - -2003-04-09 Jan-Åke Larsson - - * aclocal.m4: More sane emacs-macro path-searching. - -2003-04-07 David Kastrup - - * tex.el (TeX-kpathsea-directory-alist): Fix bad kpathsea - searchpath name for LaTeX files. - -2003-04-03 Jan-Åke Larsson - - * aclocal.m4: Make the emacs-macro path-searching tests run, and - make EMACS_PROG_EMACS fail gracefully when no binary executable is - found. - - -2003-03-29 David Kastrup - - * tex-buf.el (TeX-run-discard): Use `call-process' instead of - `start-process' in order to completely detach a process. - (TeX-region-extra): Make empty by default since code was not - working with plain or ConTeXt. - -2003-03-24 Masayuki Ataka - - * Makefile.in (CONTRIB): Remove hilit-LaTeX.el because it is - obsolete. - (contrib): Remove compile code for hilit-LaTeX.el. - -2003-03-13 David Kastrup - - * style/german.el (LaTeX-german-quote-after-quote) - (LaTeX-german-open-quote, LaTeX-german-close-quote): New - variables to initialize quote stuff from. If you set these in - file local variables, they will propagate accordingly to - `TeX-quote-after-quote' et al. - - * style/ngerman.el (LaTeX-german-quote-after-quote) - (LaTeX-german-open-quote, LaTeX-german-close-quote): the same. - -2003-02-25 David Kastrup - - * Makefile.in (dist): Version info in tex.el gets automatically - calculated from CVS tags. - - * tex.el: Some changes for dir slashiness. - (TeX-master-directory): return a proper directory name, not a - file name. - - * tex-buf.el (TeX-quote-filename): Return the changed file! - Yikes! How could this ever have worked? - -2003-02-24 David Kastrup - - * tex.el (AUCTeX-version): Generate automatically from CVS - variables. - (TeX-master-directory): somewhat more defensive version (final - goal is to be able to make a TeX minor mode). - -2003-02-22 David Kastrup - - * tex-wizard.el: A first sketch of the idea. - -2003-02-17 Piet van Oostrum - - * tex.el (TeX-arg-literal): Remove illegal and superfluous &optional. - - * latex.el (TeX-arg-free): Remove illegal and superfluous &optional. - -2003-02-17 David Kastrup - - * font-latex.el (font-latex-find-matching-close): Remove a very - complicated way of doing nothing since the byte compiler warns - about it. - -2003-02-15 David Kastrup - - * tex.el (LaTeX): Change :prefix field to LaTeX. - (TeX-auto-add-type): Make more readable and place doc string - indicating the origin into generated functions. - - * font-latex.el (font-latex-setup): Try to behave better when the - interesting newlines in verbatim environments get moved. - Probably not the ultimate solution. - - * tex-site.el: AUC TeX to AUCTeX, new header. - - * Makefile.in: AUC TeX to AUCTeX. - - * latex.el: AUC TeX to AUCTeX, new header. - - * tex-buf.el (TeX-quote-filename): New function. - (TeX-region-create): Use it so that Windows can talk about its - master files properly. - (TeX-help-error): Try not to have "log file has changed" - messages. AUC TeX to AUCTeX, new header. - - * tex.el: AUC TeX to AUCTeX, new header. - - * auc-old.el: AUC TeX to AUCTeX, new header. - - * README.CVS: Check in a first version. Ok, it currently - contains a few lies, but the basics are not wrong, and hopefully - we will have soon what it takes to make it true. - - * doc/auc-tex.texi: Name change of AUC TeX to AUCTeX. A few - other cleanups. - - * configure.in, Makefile.in, doc/Makefile.in: everything moves to - autoconf, fix a few things. - - * Makefile, doc/Makefile: deleted. - -2003-02-14 Patrick Gundlach - - * context.el: Added basic environment support (insert-envrionment - and close-environment). Added basic interface support. - - * tex.el, latex.el : moved TeX-arg-literal and TeX-near-bopb from - latex.el to tex.el. More will follow. - -2003-02-13 David Kastrup - - * Makefile.in (clean): Remove .elc files. - (distclean): new target. - - * aclocal.m4 (EMACS_EXAMINE_PACKAGEDIR): make this work properly - more or less. - (EMACS_CHECK_AUCTEX): use auctexdir instead of AUCTEXDIR (synch - with preview-latex aclocal.m4) and strip trailing slash. - -2003-02-11 Peter S Galbraith - - * hilit-LaTeX.el: Removed. It's obsolete. Use font-latex.el instead. - -2003-02-11 Patrick Gundlach - - * tex.el (TeX-command-list): Changed TeX-run-LaTeX to - TeX-run-TeX. - - * tex-buf.el (TeX-run-TeX): TeX-run-TeX gets the - TeX-sentinel-function from the major mode, so TeX-run-LaTeX and - alike won't be needed if they don't need to do something - fancy. Defaliased TeX-run-LaTeX to TeX-run-TeX. - (TeX-run-interactive): Uses TeX-sentinel-default-function - instead of TeX-sentinel-function. - - * latex.el (latex-mode): Sets TeX-sentinel-default-function - instead of TeX-sentinel-function. - - * tex-mik.el (TeX-command-list): Changed TeX-run-LaTeX to - TeX-run-TeX. - - * tex-fptex.el (TeX-command-list): Changed TeX-run-LaTeX to - TeX-run-TeX. - -2003-02-08 Patrick Gundlach - - * tex-site.el: Added simple ConTeXt support. - - * latex.el (latex-mode): Added explicit set of - TeX-sentinel-function to be used in TeX-run-interactive. - - * tex-buf.el: Added TeX-run-ConTeXt. Removed explicit call to - TeX-LaTeX-sentinel in TeX-run-interactive. The sentinel-function - is now inherited from the buffer calling - TeX-run-interactive. Hopefully this won't break anything. - - * tex.el: Adapted TeX-command-list for ConTeXt - support. Interfaces for texexec and texutil added. Nonstopmode - (texexec) and purge (texutil) won't work right with current - ConTeXt versions. This will be fixed in ConTeXt versions later - than Feb 2003. - - * context.el: basic support for ConTeXt added. New - sentinel-functiont that is different from the LaTeX one. - - -2003-02-08 pvoostrum - - * tex.el: Added missing semicolon in TeX-command-output-list. - - * tex.el: Changed defcustom to defvar. - -2003-02-08 Piet van Oostrum - - * tex.el (TeX-output-extension, TeX-view-extension): Changed - defcustom into defvar, as these are intermediate variables. - -2003-02-07 Piet van Oostrum - - * tex.el (TeX-command-output-list): Corrected customization widget. - -2003-02-06 Piet van Oostrum - - * tex-buf.el - (TeX-save-document, TeX-command-query) - (TeX-output-style-check, TeX-run-format, TeX-TeX-sentinel-check): - Added support for pdftex (and others) - (TeX-run-set-command, TeX-output-extension) - (TeX-view-extension, TeX-view-output-file): new functions. - - * tex.el (TeX-output-extension, TeX-view-extension) - (TeX-output-view-style, TeX-command-output-list): new variables - (TeX-expand-list): adapted for pdf output. - -2003-01-31 Jan-Åke Larsson - - * configure.in: Use new lispdir check. - - * aclocal.m4: Some cleaning of macro names. Windows quoting by - David Kastrup . Also, lispdir now checks (x)emacs - load-path instead of physical disk content. - - * Makefile.in: Fix infodir - -2003-01-30 Piet van Oostrum - - * tex-buf.el (TeX-parse-error): Exclude { and } from filenames to - improve parsing of error messages from pdftex. - -2003-01-24 Reiner Steib - - * tex.el (TeX-kpathsea-path-delimiter, TeX-search-files-kpathsea): - Fixed braces. - -2003-01-22 David Kastrup - - * tex.el (TeX-search-files): Check in first version of kpathsea - support. This implementation does not yet cooperate properly - with TeX-auto-generate-* - -2003-01-18 David Kastrup - - * configure.in: Announce AUC TeX, not preview. - -2003-01-16 Reiner Steib - - * style/varioref.el ("varioref"): Fixed typo. - - * Makefile.in (ELCC): `-no-init-file' is the same as `-q' - -2003-01-15 Jan-Ake Larsson - - * configure.in, aclocal.m4: Compatibility fix - - * aclocal.m4 (AC_PROG_EMACS): New. File is now identical to that - of preview-latex. - - * configure.in: Use it - -2003-01-08 Jan-Ake Larsson - - * Makefile.in: From Makefile - - * configure.in, aclocal.m4, autogen.sh: Initial version - - * mkinstalldirs, install-sh: Prepare for autoconf - -2002-12-29 David Kastrup - - * tex.el: Add support for Info-goto-emacs-command-node and - similar. - -2002-12-19 David Kastrup - - * tex-buf.el (TeX-home-buffer): Don't home to deleted buffers. - - * tex.el (TeX-command-list): Change single quotes to double. - That way, we will get reasonable results under both Windows and - Unix. File names with double quotes in them will break stuff, - just like file names with single quotes in them did so - previously. Tough. - -2002-12-18 David Kastrup - - * tex-buf.el (TeX-run-shell): Start shell from TeX process buffer - in order to inherit environment from there (like cwd). - (TeX-run-discard): Same here. - (TeX-run-shell, TeX-run-discard): Rather let default-directory - temporarily: we may not have a TeX process buffer! - -2002-12-17 Masayuki Ataka - - * all.el: Removed. unrelated to TeX mode. - OBSOLETE files (all.el, auc-menu.el, maniac.el, and outln-18.el) - are available at: - - -2002-12-15 David Kastrup - - * Makefile (dist): Correct zip file name. - -2002-12-15 Masayuki Ataka - - * Makefile (MINMAPSRC): Remove auc-menu.el, maniac.el, and - outln-18.el. - -2002-12-15 David Kastrup - - * auctex.spec (Release): Well, change version number. retag. - - * Version 11.14 released. - -2002-12-15 Masayuki Ataka - - * auc-menu.el: Removed. Taken into Emacs and unused. - - * maniac.el: Ditto. - - * outln-18.el: Ditto. - -2002-12-15 David Kastrup - - * Makefile: some changes for my setup. - -2002-12-14 David Kastrup - - * graphicsx.el: removed. superseded by graphicx.el and unused. - -2002-12-13 Reiner Steib - - * latex.el (LaTeX-label): Added completing for labels. Avoid - inserting an empty label. - -2002-12-12 Reiner Steib - - * style/amsopn.el ("amsopn"): Added \operatorname. - -2002-12-12 David Kastrup - - * doc/auc-tex.texi (top): Change "version 12" to "almost 12". - This is beta, after all. - -2002-12-12 Masayuki Ataka - - * tex-jp.el (japanese-LaTeX-style-list): Remove styles overlapped - with LaTeX-style-list. Append values to LaTeX-style-list instead - of overwriting. - (japanese-latex-mode-initialization): Do not overwrite - LaTeX-style-list. - -2002-12-11 Reiner Steib - - * bib-cite.el: Updated URLs. - - * doc/intro.texi: Ditto. - - * font-latex.el: Ditto. - - * latex.el: Ditto. - - * tex.el: Ditto. - - * style/amsmath.el (LaTeX-amsmath-label): Improved doc-string. - - * doc/auc-tex.texi (Equations): New @subsection documenting - LaTeX-equation-label, LaTeX-eqnarray-label and LaTeX-amsmath-label. - -2002-12-11 Masayuki Ataka - - * tex-jp.el (japanese-LaTeX-default-style) - (japanese-LaTeX-style-list): remove buffer-local declarations - where they don't make sense. - -2002-12-10 David Kastrup - - * doc/changes.texi: Some more news. - - * doc/auc-tex.texi: Start talking about version 12 (which will be - the next stable release). - (European): Talk a bit about LaTeX2e stuff, and don't talk about - too ancient XEmacsen. Also mention X-Symbol. - - * doc/Makefile (install): Create infodir if not existent. - -2002-12-10 Reiner Steib - - * font-latex.el (font-latex-match-textual): Fixed typo in doc-string. - - * latex.el (LaTeX-section-label): Fixed typos in doc-string. - -2002-12-10 David Kastrup - - * latex.el (LaTeX-label): Fix a thinko/type where label would be - non-nil in cases where a label should not be asked for. - -2002-12-10 Reiner Steib - - * style/amsmath.el (LaTeX-amsmath-label): New variable. - ("amsmath"): Add environments to LaTeX-label-alist. - -2002-12-10 Masayuki Ataka - - * tex-jp.el: Remove if statement for Emacs 19. - Fix lots of white spaces. - -2002-12-09 David Kastrup - - * latex.el (LaTeX-optop, LaTeX-optcl, LaTeX-default-options, - LaTeX-figure-label, LaTeX-table-label, LaTeX-equation-label, - LaTeX-eqnarray-label, LaTeX-style-list): remove buffer-local - declarations where they don't make sense. - -2002-12-09 Reiner Steib - - * latex.el (LaTeX-style-list): Added some supported classes. - Fixed a typo. - - * style/amsmath.el ("amsmath"): environment "xxalignat*" doesn't - exist. - (LaTeX-amsmath-env-alignat): environment "xxalignat" should not - get a \label. - - * Makefile (BATCH): Added `-no-site-file' to batch options. - -2002-12-07 David Kastrup - - * font-latex.el (font-latex-setup): Better stab at verbatim - handling. - - * tex-buf.el (TeX-region-create): Make file name in !name - messages relative to master file directory. - -2002-12-06 David Kastrup - - * latex.el: Lots of doc fixes/white space. Did the mistake of - running checkdoc. Not clean yet, but different. - (LaTeX-label-alist): New buffer-local variable for label prefixes - lookup. - (LaTeX-label): Use it. - -2002-11-25 David Kastrup - - * latex.el (TeX-arg-define-index): correct typo. - -2002-11-25 Per Abrahamsen - - * Version 11.13 released. - -2002-11-25 Per Abrahamsen - - * tex.el: Fixed CVS merge error. - - * Version 11.12 released. - -2002-10-28 David Kastrup - - * Makefile (prefix): Revert accidental change to - /usr/local/emacs-21 (sorry folks). - -2002-10-26 David Kastrup - - * Makefile (STYLESRC): Add style/scrlttr2.el - -2002-10-26 Mark Trettin - - * style/scrbase.el: Added optional Argument "Pagenumber" to - \maketitle. Changed \textsubscript from `t' to "Text". - - * style/scrlttr2.el: Initial version. - - * style/scrbase.el: Added additional clearpage commands: - \cleardoublestandardpage \cleardoubleplainpage and - \cleardoubleemptypage - -2002-10-24 Masayuki Ataka - - * latex.el (LaTeX-env-contents): New function. - (LaTeX-common-initialization): Added 26 LaTeX commands, 2 LaTeX2e - environments, and 41 LaTeX2e commands. - -2002-10-08 David Kastrup - - * style/scrreprt.el, style/scrbase.el, style/scrartcl.el, - style/scrbook.el: header comments refer to COPYING. - -2002-10-02 David Kastrup - - * Makefile (STYLESRC): Add compilation targets for Komascript - support. - - * Check in Komascript support by Mark Trettin. See below. - -2002-09-28 Mark Trettin - - * scrbase.el: - First attempt on implementing the `captionbeside'-Environment. I'm not - really satisfied by now. - -2002-09-27 Mark Trettin - - * scrreprt.el, scrbook.el: Reformatted code. - - * scrbase.el: - Fixed Typos in comments and escape characters in function docstrings. - Thanks to Reiner Steib. - Reformatted code. - - * scrbase.el: - Changed `uppertitleback', `lowertitleback' from asking to just `t' - - * scrbase.el: - Changed `addpart', `addsec' and `minisec' from Macro to sectioning - command. - - * scrreprt.el, scrbook.el: - Changed `addchap' from Macro to sectioning command. - -2002-09-26 Mark Trettin - - * scrartcl.el: LaTeX-section-list removed. - - * scrartcl.el: Initial version. Testing LaTeX-section-list. - - * scrbase.el: Initial version of the base file. - - * scrreprt.el, scrbook.el: Initial version. - - * scrbook.el, scrbase.el, scrreprt.el, scrartcl.el: - -2002-09-22 David Kastrup - - * tex.el: Apply spelling fixes from "Davide G. M. Salvetti" - to tex.el. - -2002-03-24 David Kastrup - - * tex-buf.el (TeX-parse-TeX): Make subordinate files without - major mode default to that of the calling file when doing error - processing. - -2002-03-21 Per Abrahamsen - - * tex-site.el (eamcs-major-version): Changed if to when. - Suggested by Martin Thornquist . - -2002-03-15 David Kastrup - - * tex.el (TeX-master-file): Don't make C-c ` bomb out in files - like xxx.gls. Probably a more elaborate way would be to export - the TeX-master variable into files visited by error parsing. - Could be incorrect, however, if more than one file included them. - -2002-02-15 Per Abrahamsen - - * tex.el (TeX-auto-generate): Expand file name. - Suggested by "Dr. Mark A. Friedman" . - - * latex.el (LaTeX-common-initialization): Set - `fill-paragraph-function'. - (LaTeX-mode-map): Don't bind M-q. - Suggested by Nils Klarlund . - - * tex.el (TeX-printer-list): Fixed spelling. - Reported by Nils Klarlund . - -2002-02-14 Per Abrahamsen - - * tex.el: Fixed some spelling errors. - Patch by "Davide G. M. Salvetti" . - -2002-01-24 Per Abrahamsen - - * Version 11.11 released. - -2002-01-24 Masayuki Ataka - - * tex.el (TeX-format-list): Support t(article|report|book) class file. - Reported by Atsuhito Kohda - - * tex-jp.el (japanese-TeX-command-list): Undo last change. - (LaTeX-command-style): Support t(article|report|book) class file. - (japanese-LaTeX-style-list): Ditto. - Reported by Atsuhito Kohda - -2002-01-21 Peter S Galbraith - - * font-latex.el: Updated to V0.800. - Added font-lock-syntactic-keywords to font-lock-defaults to handle - verbatim environment, as suggested by Stefan Monnier 5 years ago (!) - * bib-cite.el: Updated to V3.17. - XEmacs has imenu after all. - -2002-01-21 Masayuki Ataka - - * tex.el (TeX-format-list): Fix problem that AUC TeX switch to - JLATEX mode if the class file starts with the letter `j'. - Reported by Joe Reinhardt . - - * tex-jp.el (LaTeX-command-style): Support js(article|book). - -2002-01-21 Atsuhito Kohda (tiny change) - - * tex-jp.el (japanese-TeX-command-list): Use `%l' instead - of [pj]latex command. - -2002-01-18 Per Abrahamsen - - * tex.el (LaTeX-command-style): Fix comment. - Reported by Atsuhito Kohda - via. Debian. - - * latex.el (LaTeX-outline-name): Allow longer names. - Reported by "Michael Soulier" - via. Debian. - -2001-12-22 Per Abrahamsen - - * latex.el (LaTeX-imenu-create-index-function): Strip text - properties. - Reported by Venkatesh Prasad Ranganath . - -2001-12-13 Per Abrahamsen - - * style/prosper.el: New file. - Contributed by Phillip Lord . - * Makefile (STYLESRC): Added it. - -2001-11-27 Per Abrahamsen - - * Version 11.10 released. - -2001-11-26 Per Abrahamsen - - * Version 11.09 released. - -2001-11-26 Per Abrahamsen - - * auc-old.el (insert-mode-line): Use `insert' instead of - `insert-string'. - -2001-10-27 Per Abrahamsen - - * latex.el (LaTeX-ignore-comment-regexp): Doc fix. - Reported by Reuben Thomas . - -2001-11-16 David Kastrup - - * tex-buf.el (TeX-process-check): We didn't catch the case where - during the question a different process got started in the - buffer. In that case, we just ask again. - -2001-11-06 David Kastrup - - * tex-buf.el (TeX-command-sentinel): insert post-mortem info - before any markers in order to keep markers/point at end of file. - -2001-11-02 Masayuki Ataka - - * style/graphicx.el (TeX-arg-includegraphics): Accept prefix - argument and find all files. dvipdfm image file support. - -2001-10-19 Masayuki Ataka - - * tex-jp.el (japanese-TeX-command-list): Fixed for mendex. - * doc/auc-tex.texi (Japanese): Doc fix. - -2001-10-17 Per Abrahamsen - - * Version 11.08 released. - -2001-10-17 Per Abrahamsen - - * doc/intro.texi, doc/install.texi: Updated contact info. - Reported by Henrik Holm . - -2001-10-16 Per Abrahamsen - - * Version 11.07 released. - -2001-10-16 Per Abrahamsen - - * tex.el (VirTeX-common-initialization): Set `comment-add' in - order to get "%%" by default by comment region like Lisp mode. - Suggested by "Davide G. M. Salvetti" . - Change `comment-indent-hook' to `comment-indent-function'. - - -2001-10-15 Peter S Galbraith - - * font-latex.el: Remove self-installation to LaTeX-mode-hook now - that TeX-install-font-lock does it. - -2001-10-15 Per Abrahamsen - - * Version 11.06 released. - -2001-10-15 Per Abrahamsen - - * tex.el: Removed font lock support. - (TeX-install-font-lock): New option. - (VirTeX-common-initialization): Call it. - - * tex-font.el: New file. - -2001-10-13 David Kastrup - - * tex-buf.el (TeX-current-offset): The number of things that can - go wrong for a simple task like determining the current line - number is simply amazing. count-lines skips over newlines in - intangible text-properties or overlays. Fixed for GNU Emacs, - don't know whether XEmacs has problems with it. - -2001-10-13 Per Abrahamsen - - * Version 11.05 released. - -2001-10-12 David Kastrup - - * tex-buf.el (TeX-run-command): Let the TeX-process-buffer acquire - a buffer-local value of TeX-command-buffer so that its sentinel - will still refer to the right buffer even if another compilation - has been started. - (TeX-run-interactive): Same here. - (TeX-process-check): Don't bomb out when user does not want to - kill a process that has died on its own in the meantime. - -2001-10-11 Per Abrahamsen - - * tex.el (TeX-auto-local, TeX-style-local): Doc fix: Mention that - these should be relative. - Suggested by . - -2001-10-09 Per Abrahamsen - - * Version 11.04 released. - -2001-10-09 Per Abrahamsen - - * tex.el (TeX-view-style): New option. - (TeX-expand-list): Use it. - (TeX-command-list): Use it. - -2001-10-05 Per Abrahamsen - - * Version 11.03 released. - -2001-10-05 Per Abrahamsen - - * style/amsmath.el ("amsmath"): More items. - Patch by Masayuki Ataka . - -2001-10-04 Per Abrahamsen - - * tex-buf.el (TeX-LaTeX-sentinel): Use `with-current-buffer'. - - * tex-buf.el (TeX-LaTeX-sentinel): Use the value of - `TeX-command-BibTeX' in `TeX-command-buffer'. - Patch by Katsuaki KAWACHI . - - * tex-fptex.el: New file. - Contributed by Fabrice Popineau . - * Makefile (CONTRIB): Added it. - -2001-10-04 Peter S Galbraith - - * multi-prompt.el (multi-prompt-next): fixed for emacs-21. - Use minibuffer-contents-no-properties to get minibuffer contents - if it exists. - -2001-10-03 Per Abrahamsen - - * Version 11.02 released. - -2001-10-03 Per Abrahamsen - - * latex.el (LaTeX-top-caption-list): New option. - (LaTeX-env-figure): Use it. - Patch by ataka@milk.freemail.ne.jp (Masayuki Ataka). - - * style/graphicx.el (TeX-string-numberp): New function. - (TeX-arg-includegraphics): Call it. - Patch by ataka@milk.freemail.ne.jp (Masayuki Ataka). - - * style/verbatim.sty: New file. - Contributed by ataka@milk.freemail.ne.jp (Masayuki Ataka). - - * tex-info.el (texinfo-mode): Comment out cindex. - Reported by Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) - - * style/amsmath.el (LaTeX-item-equation, LaTeX-item-equations): - New functions. - ("amsmath"): Add new item types. - Patch by ataka@milk.freemail.ne.jp (Masayuki Ataka). - -2001-10-02 Per Abrahamsen - - * Version 11.01 released. - -2001-10-01 Per Abrahamsen - - * latex.el (LaTeX-submenu-name-format): Fixed spelling error. - Reported by Martin.Quinson@ens-lyon.fr. - -2001-10-01 David Kastrup - - * tex-buf.el (TeX-region-create): - Oops, broke more than I fixed. Offset calculation must be for the - line following the offset message. This worked before since we always - were in the middle of a line (only the offset calculation for the C-c - C-r command itself was definitely sometimes wrong). Corrected that. - - * style/graphicx.el (TeX-arg-includegraphics): - Fixed an obvious typo complained about by the byte-compiler. checkdoc - removed a few spaces. - - * auc-old.el (TeX-region): Correct offset calculation. - - * tex.el (TeX-current-line): - Correct line number calculation when at beginning of line for %n - flag. Autoload TeX-current-offset for that if necessary. - - * tex-buf.el (TeX-current-offset, TeX-command-region, - TeX-region-create): - Correct offset calculations when not at start of line. New function - TeX-current-offset for that. - -2001-04-11 Per Abrahamsen - - * Version 10.0g released. - -2001-04-11 Per Abrahamsen - - * tex-site.el: Don't enable tex-info.el by default. - - * latex.el (LaTeX-hide-environment): Disabled by default. - Suggested by Christopher Allen . - -2001-03-27 Per Abrahamsen - - * Version 10.0f released. - -2001-03-27 Per Abrahamsen - - * tex.el (unless): Don't enable Emacs 21 font-lock for Emacs 20. - (VirTeX-common-initialization): Ditto. - -2001-03-26 Per Abrahamsen - - * Version 10.0e released. - -2001-03-26 Per Abrahamsen - - * tex.el (TeX-expand-list): Changed default to lazy evaluation of - `TeX-view-style' and `LaTeX-command-style'. - Suggested by Peter Neergaard . - - * latex.el (LaTeX-indent-calculate, LaTeX-indent-calculate-last): - Backindent when brace is at the start of a line. - Patch by Masashi Shimbo . - - * doc/auc-tex.texi: Fixed dir entry. - Reported by David Masterson . - - * tex-info.el (TeXinfo-mode-map): "\e\r" bound to `map', not - `TeXinfo-mode-map'. - Patch by Dan Nicolaescu . - -2001-03-01 Hidenobu Nabetani - - * tex-jp.el: Don't work correctly in current AucTeX. - Patch by Masayuki Ataka - and Yuzo Furukawa . - Removed support for NEmacs and Mule1,2 which are based - on Emacs 18 and 19. - Created new variable japanese-TeX-command-list and - added support for mendex. - Updated LaTeX-auto-regexp-list variable. - -2001-01-09 Per Abrahamsen - - * all: Changed `sunsite.auc.dk' to `sunsite.dk'. - -2001-01-02 Per Abrahamsen - - * Version 10.0d released. - -2001-01-02 Per Abrahamsen - - * tex-mik.el (TeX-command-list): Don't prompt for view. - -2000-12-04 Per Abrahamsen - - * Version 10.0c released. - -2000-12-04 Per Abrahamsen - - * tex.el: Avoid :inherit font property with Emacs 20. - Reported by Damien WYART . - -2000-12-01 Per Abrahamsen - - * Version 10.0b released. - -2000-11-30 Per Abrahamsen - - * Version 10.0a released. - -2000-11-30 Per Abrahamsen - - * tex.el: Copied Emacs 21 font-lock defs here. - (VirTeX-common-initialization): Activate them. - -2000-10-25 Per Abrahamsen - - * PROBLEMS: Updated. - - * WIN-NT: Removed. - * MSDOS: Removed. - * VMS: Removed. - * OS2: Removed. - * Makefile (EXTRAFILES): Removed above files. - -2000-10-20 Per Abrahamsen - - * style/graphicx.el: Updated by author. - Ryuichi Arafune - -2000-10-19 Per Abrahamsen - - * style/graphics.el: New file. - * Makefile (STYLESRC): Added it. - * style/graphicx.el: Renamed from `style/graphicx.el'. - * Makefile (STYLESRC): Updated. - Reported by "Dr. Thomas Baumann" . - -2000-10-09 Per Abrahamsen - - * Version 9.10t released. - -2000-10-09 Per Abrahamsen - - * latex.el (LaTeX-outline-name): Don't escape `{' or `}' in - regexps. - Patch by "Stefan Monnier" . - - * tex-mik.el (TeX-command-list): Use `TeX-run-discard' for "View" - command. - Suggested by "Claus Dethlefsen" . - - * latex.el (LaTeX-common-initialization): `\bibitem' starts - paragraphs, just like `\item'. - Reported by Werner LEMBERG . - -2000-10-06 Per Abrahamsen - - * tex.el (TeX-current-line): Return a string, not a number. - Reported by Julia Habel . - Patch by Dirk.Ullrich@DaimlerChrysler.com. - -2000-06-15 Per Abrahamsen - - * tex-site.el: Require tex-mik after changing load-path. - Reported by "I. Jossang" . - -2000-06-13 Per Abrahamsen - - * IRIX: New file. - * Makefile (EXTRAFILES): Added it. - -2000-05-10 Per Abrahamsen - - * Version 9.10s released. - -2000-05-03 Per Abrahamsen - - * Version 9.10r released. - -2000-05-02 Per Abrahamsen - - * tex.el (TeX-mode-map): Don't bind `.' and `,' by default. - -2000-05-03 Peter Galbraith - - * font-latex.el: file was broken. Updated to 0.701 (30 Mar 2000). - * bib-cite.el: file was broken. Updated to 3.16 (20 Dec 99). - -2000-04-14 Per Abrahamsen - - * Version 9.10q released. - -2000-03-30 Per Abrahamsen - - * style/graphicsx.el: New file. - * Makefile (STYLESRC): Added it. - Donated by Ryuichi Arafune . - -2000-04-14 Per Abrahamsen - - * Version 9.10q released. - -2000-03-23 Per Abrahamsen - - * latex.el (LaTeX-math-keymap): Accept vector for - `LaTeX-math-abbrev-prefix'. - (LaTeX-math-insert-prefix): Better error message if - `LaTeX-math-abbrev-prefix' is not bound. - Reported by Jan Vroonhof . - -2000-02-23 Per Abrahamsen - - * tex-info.el (TeXinfo-environment-list): Added more missing - environments. Patch by Akim Demaille . - -2000-02-22 Per Abrahamsen - - * tex-info.el (TeXinfo-environment-list): Add `group'. - Patch by Akim Demaille . - -2000-01-28 Per Abrahamsen - - * tex.el (TeX-command-list): Add `makeinfo --html' support. - Suggested by Akim Demaille . - -2000-01-20 Per Abrahamsen - - * tex-info.el (TeXinfo-mode-map): Added "\e\r" binding for - `texinfo-insert-@item'. - Reported by Akim Demaille . - (TeXinfo-mode-menu, texinfo-mode): Changed menu name and mode name - to `Texinfo'. - Suggested by Akim Demaille . - -1999-12-21 Per Abrahamsen - - * bib-cite.el: Updated to 3.16 (20 Dec 99). - - * font-latex.el: Updated to 0.700 (20 December 1999). - -2000-03-30 Peter Galbraith - - * font-latex.el: Updated to 0.701 (30 Mar 2000). - -2000-01-14 Peter Galbraith - - * bib-cite.el: Updated to 3.16 (20 Dec 99). - * font-latex.el: Updated to 0.700 (20 Dec 99). - * hilit-LaTeX.el: Changed author email address. - -1999-12-20 Per Abrahamsen - - * Version 9.10p released. - -1999-12-20 Per Abrahamsen - - * bib-cite.el: Updated to 3.15 (20 Dec 99). - - * tex-mik.el (TeX-command-list): Fixed default PDF LaTeX command. - Reported by "Christian Schlauer" . - - * Version 9.10o released. - -1999-12-20 Per Abrahamsen - - * bib-cite.el: Updated to 3.13 (20 Dec 99). - -1999-12-11 Per Abrahamsen - - * style/danish.el ("danish"): Support Danish quotes. - Suggested by arne@daimi.au.dk (Arne Jørgensen). - -1999-12-03 Per Abrahamsen - - * tex-info.el (texinfo-mode): Added `kill-all-local-variables'. - Reported by Stefan Monnier . - - * Version 9.10n released. - -1999-12-03 Per Abrahamsen - - * tex-mik.el: Fixed typo. - Reported by Bernt Guldbrandtsen - -1999-12-01 Per Abrahamsen - - * Version 9.10m released. - -1999-12-01 Per Abrahamsen - - * Makefile (AUCSRC, AUCELC): Added `tex-mik.el'. - -1999-11-26 Per Abrahamsen - - * Version 9.10l released. - -1999-11-26 Per Abrahamsen - - * latex.el (LaTeX-env-figure): Use `\centering' instead of - `center' environment. - Patch by Stefan Monnier . - -1999-11-25 Per Abrahamsen - - * tex-mik.el (tex-mik): Add provide. - - * tex-site.el: Automatically require `tex-mik.el' under NT. - -1999-11-12 Per Abrahamsen - - * tex.el (TeX-current-file-name-nondirectory): New function. - (TeX-expand-list): Use it. - -1999-11-10 Per Abrahamsen - - * doc/auc-tex.texi: Fixed references. - Patch by Stefan Monnier . - * tex.el (TeX-lisp-directory): Use `locate-library' to find - default under Emacs. - Patch by Stefan Monnier . - (TeX-dwim-master): New function. - (TeX-master-file): Use it. - (TeX-master): Document it. - Patch by Stefan Monnier . - -1999-11-06 Per Abrahamsen - - * Version 9.10k released. - -1999-11-06 Per Abrahamsen - - * latex.el: Use `indent-according-to-mode' instead of - `LaTeX-indent-line'. - (LaTeX-mode-map): Don't remap `TAB'. - Patch by "Stefan Monnier ". - -1999-11-03 Per Abrahamsen - - * tex.el (TeX-command-list): Added `LaTeX PDF' command. - -1999-10-28 Per Abrahamsen - - * Version 9.10j released. - -1999-10-27 Per Abrahamsen - - * Makefile (dist): Create a .nosearch in the style directory. - (install-lisp): Ditto. - Suggested by Markus Rost . - -1999-10-26 Per Abrahamsen - - * Version 9.10i released. - -1999-10-26 Per Abrahamsen - - * tex.el (TeX-master-directory): Call `substitute-in-file-name'. - Patch by Alexander Holt . - - * style/ngerman.el: New style. - Suggested by Torsten Schuetze . - * Makefile (STYLESRC): Added it. - - * tex-buf.el (TeX-command-query): Added history argument. - Suggested by Werner LEMBERG . - - * latex.el (LaTeX-environment): Added history argument. - - * tex.el (TeX-add-style-hook): Don't add the same hook twice. - Suggested by Jarl Friis . - - * tex.el: Removed portability code for old Emacsen. - -1999-10-25 Per Abrahamsen - - * Version 9.10h released. - -1999-09-27 Per Abrahamsen - - * latex.el (LaTeX-auto-cleanup): Allow multiple packages for - `usepackage'. - Reported by Torsten Schuetze . - (LaTeX-auto-cleanup): Also add "unmangled" documentstyle. - Reported by Cyril Humbert . - -1999-09-09 Per Abrahamsen - - * style/mdwlist.el: New file. - Patch by Stephen Heilbronner . - * Makefile (STYLESRC): Added it. - -1999-08-20 Per Abrahamsen - - * Version 9.10g released. - -1999-08-20 Hidenobu Nabetani - - * tex.el (TeX-format-list): Add "JLATEX" and "JTEX" which is needed - to load tex-jp.el automatically. - * tex-jp.el (TeX-format-list): Remove "JLATEX" and "JTEX". - -1999-08-19 Per Abrahamsen - - * latex.el (LaTeX-hide-environment, LaTeX-show-environment): make - them work with new outline mode. - Reported by Thomas Schick . - - * tex.el (match-string): New compatibility function. - Reported by Andrew Edward Santosa . - -1999-08-18 Hidenobu Nabetani - - * tex-jp.el (TeX-command-list): Add "jLaTeX" and "pLaTeX". - (TeX-mode-menu): Fix the problem that menu "TeX" is unchanged. - (TeX-japanese-process-input-coding-system): Update for Emacs 20. - (TeX-japanese-process-output-coding-system): Update for Emacs 20. - (TeX-command-default): Change from "j-article" to "jarticle". - (LaTeX-fill-region-as-para-do): Fix the problem that fill mode - don't work in Emacs 20. - -1999-07-16 Per Abrahamsen - - * Version 9.10f released. - -1999-07-16 Per Abrahamsen - - * latex.el (LaTeX-auto-minimal-regexp-list): Recognize usepackage - options. - (LaTeX-auto-cleanup): Ditto. - -1999-07-15 Per Abrahamsen - - * tex.el (TeX-ignore-file): Ignore babel, it loads everything. - Reported by Mate Wierdl . - - * style/foils.el: Removed require 'latex. - * style/natbib.el: Ditto. - * style/harvard.el: Ditto. - * style/slides.el: Ditto. - * style/latexinfo.el: Ditto. - Reported by Mate Wierdl . - - * Makefile (infodir, lispdir, aucdir, EMACS): Use `standard' values. - Reported by Mate Wierdl . - - * tex-info.el (texinfo-mode): Fix doc string. - Reported by Bob Weiner . - -1999-05-17 Jerry James - - * tex.el: Fix two typos in comments. - (set-text-properties): Protect against possible XEmacs version - 21.13, 22.13, etc. - -1999-05-14 Per Abrahamsen - - * latex.el (LaTeX-indent-environment-list): Customized. - - * Version 9.10e released. - -1999-05-14 Per Abrahamsen - - * tex.el: (TeX-auto-generate): Reimplemented support for numeric - `TeX-file-recurse'. - (TeX-search-files): Ditto. - -1999-05-03 Rune Kleveland - - * style/amsart.el ("amsart"): Load `amsthm.el'. - * style/amsbook.el ("amsbook"): Ditto. - -1999-03-29 Per Abrahamsen - - * Version 9.10d released. - -1999-03-29 Per Abrahamsen - - * doc/changes.texi: Added extra `@'. - - * Version 9.10c released. - -1999-03-19 Carsten Dominik - - * tex.el (TeX-insert-dollar): Better error message when trying - to insert a dollar in math-mode. - - * texmathp.el (texmathp-tex-commands-default): Added more default - macros. - -1999-03-12 Carsten Dominik - - * latex.el (TeX-arg-index-tag): New function, to be used by the - index.el and multind.el style files. - (LaTeX-auto-index-regexp-list): Now matches both \index and - \glossary. - (TeX-arg-index): Renamed from TeX-arg-define-index. - (TeX-arg-define-index): Now an alias for `TeX-arg-index'. - (LaTeX-common-initialization): Added a regexp for index and - glossary to `TeX-complete-list'. Added entry for glossary with - `Tex-add-symbols'. - * style/index.el: New file. - * style/makeidx.el: New file. - * style/multind.el: New file. - * style/varioref.el: New file. - * style/fancyref.el: New file. - * Makefile (STYLESRC): Added `style/index.el', `style=makeidx.el', - `style/multind.el', `style/varioref.el', `style/fancyref.el'. - -1999-02-23 Per Abrahamsen - - * tex.el (TeX-search-files): `nconc' the result. - Reported by Berwin Turlach . - -1999-02-11 Per Abrahamsen - - * Version 9.10b released. - -1999-02-11 Per Abrahamsen - - * doc/changes.texi: Typo: @ldots -> @dots. - - * Version 9.10a released. - - * doc/auc-tex.texi: Changed version to 9.10. - * doc/history.texi: Ditto. - * doc/changes.texi: Ditto. - -1999-02-11 Per Abrahamsen - - * Version 9.9p released. - -1999-02-08 Per Abrahamsen - - * tex-jp.el (TeX-format-list): Fix JLATEX format. - Patch by Tsutomu OKUMURA . - - * style/foils.el (LaTeX-style-foils): Removed spurious `\n'. - Reported by Bernt Guldbrandtsen . - -1999-02-05 Per Abrahamsen - - * Makefile (install-contrib): Added `$(CONTRIBELC)' dependency. - Suggested by Nils Ackermann . - -1999-01-29 Per Abrahamsen - - * tex.el (TeX-search-files): `mapcar' instead of `mapcan'. - -1999-01-12 Per Abrahamsen - - * tex.el (TeX-font-replace-macro): Renamed from - `LaTeX2e-font-replace'. Use `TeX-esc'. - * latex.el (LaTeX-common-initialization): Use it. - * tex-info.el (texinfo-mode): Ditto. - (TeXinfo-font-list): Add `delete'. - Suggested by Christoph Wedler . - -1999-01-11 Per Abrahamsen - - * Version 9.9o released. - -1999-01-11 Per Abrahamsen - - * tex.el (TeX-insert-braces, TeX-command-list): Fixed custom types. - Patch by Markus Rost . - -1999-01-09 Christoph Wedler - - * latex.el (LaTeX2e-font-replace): Don't use hard-coded regexp for - font commands, use local `TeX-font-list', i.e., `LaTeX-font-list'. - -1999-01-05 Christoph Wedler - - * tex.el (TeX-load-style-file): Do not prevent .elc style files to - be loaded if `TeX-byte-compile' is nil, just prevent compilation. - (TeX-lisp-directory): Only use `locate-data-directory' if this - function is defined and AucTeX is installed as an XEmacs package. - -1998-12-12 Christoph Wedler - - * tex.el (load-path): Don't add `TeX-lisp-directory'. - (TeX-lisp-directory): Use `locate-data-directory' if present. - -1998-12-12 Per Abrahamsen - - * Version 9.9n released. - -1998-12-12 Per Abrahamsen - - * tex.el (TeX-file-recurse): Added right parenthesis. - Reported by Bernt Guldbrandtsen . - -1998-12-11 Per Abrahamsen - - * Version 9.9m released. - -1998-12-11 Per Abrahamsen - - * font-latex.el: Updated. - * bib-cite.el: Ditto. - - * Version 9.9l released. - -1998-12-01 Alastair Burt - - * doc/auc-tex.texi (Automatic): - - * lisp/tex.el: Extended the semantics of TeX-file-recurse - -- now accepts a positive integer as a bound on the recursion. - Functions TeX-search-files and TeX-auto-generate have been amended - appropriately. - -1998-11-23 Carsten Dominik - - * texmathp.el (texmathp): Added autoload cookie. - -1998-11-20 Per Abrahamsen - - * Version 9.9k released. - -1998-11-20 Per Abrahamsen - - * tex.el (TeX-load-style-file): Protect `byte-compile-file'. - Reported by Kurt Swanson . - - * latex.el (LaTeX-outline-name): New function. - (LaTeX-imenu-create-index-function): New function. - (LaTeX-common-initialization): Use it. - - * tex-buf.el (TeX-run-interactive): Make sure buffer is writable - (needed in Emacs 20.3). - Reported by many. - -1998-10-15 Per Abrahamsen - - * doc/auc-tex.texi (European): Removed references to obsolete - packages. - -1998-07-29 Per Abrahamsen - - * Version 9.9j released. - -1998-07-29 Per Abrahamsen - - * tex-buf.el (TeX-run-ispell-on-document, TeX-ispell-document): - New functions. - * tex.el (TeX-command-list): Use them. - Patch by Jason Stewart . - - * Version 9.9i released. - -1998-07-29 Per Abrahamsen - - * tex.el (TeX-parse-macro, TeX-arg-string, TeX-parse-argument): If - region is active, put it inside empty brackets. - Patch by Peter Thiemann . - -1998-07-16 Per Abrahamsen - - * tex.el (plain-TeX-auto-regexp-list): Add missing \\'es. - Reported by Markus Rost t4287 - . - -1998-07-14 Per Abrahamsen - - * Version 9.9h released. - -1998-07-14 Per Abrahamsen - - * tex.el (TeX-insert-dollar): Use `string-equal' to compare - strings. - Patch by Carsten Dominik . - -1998-06-25 Per Abrahamsen - - * Version 9.9g released. - -1998-06-25 Per Abrahamsen - - * latex.el (LaTeX-auto-index-regexp-list): Remove extra quote. - Patch by Carsten Dominik . - -1998-06-24 Per Abrahamsen - - * Version 9.9f released. - -1998-06-24 Per Abrahamsen - - * latex.el (LaTeX-auto-index-regexp-list): Fix parentheses. - * texmathp.el (texmathp): Use `if (not' instead of `unless'. - Patch by Carsten Dominik . - -1998-06-15 Per Abrahamsen - - * Version 9.9e released. - -1998-06-15 Per Abrahamsen - - * doc/Makefile (auc-tex.ps): Use `-o' to specify output file. - Suggested by Paul McJones . - -1998-06-12 Carsten Dominik - - * latex.el (LaTeX-font-list): Default value now contains special - math font commands. - (LaTeX2e-font-replace): Added support for math fonts. - - * tex.el (TeX-font-list): Docstring changed. Extra prefix and - suffix for math fonts allowed. - (TeX-describe-font-entry): Adapted to extended `TeX-font-list'. - (TeX-font): Detects math mode (using `texmathp') and inserts - special math font commands when available. - -1998-06-11 Carsten Dominik - - * tex.el: (TeX-insert-dollar): Rewritten with `texmathp'. - (TeX-dollar-verify, TeX-locate-delimiter, TeX-bouncing-point): - Obsolete functions removed. - -1998-06-11 Carsten Dominik - - * latex.el: Made index entries available for global completion - like labels and citation keys. - (TeX-arg-index, TeX-arg-define-index): New functions. - -1998-06-10 Carsten Dominik - - * natbib.el ("natbib"): Rewritten to allow for more flexible - control of optional note arguments. New macros in NatBib 6 - supported. Added support for RefTeX. - -1998-06-10 Per Abrahamsen - - * Version 9.9d released. - -1998-06-10 Per Abrahamsen - - * texmathp.el: New version from Dominik. - - * Version 9.9c released. - -1998-06-10 Per Abrahamsen - - * tex.el (texmathp): Added autoload. - (TeX-math-mode-p): Deleted. - (TeX-parse-macro): Use `texmathp' instead of `TeX-math-mode-p'. - - * texmathp.el: New file by Carsten Dominik - . - * Makefile (AUCSRC): Added. - (AUCELC): Added. - -1998-06-05 Per Abrahamsen - - * tex.el (TeX-expand-list): Add `%n' escape. - (TeX-current-line): New function. - Suggested by "Lee, Sang-Min" . - - * doc/auc-tex.texi: Doc fixes by Gustavo Chaves - . - * doc/intro.texi: Ditto. - * doc/install.texi: Ditto. - -1998-05-16 Per Abrahamsen - - * latex.el: Checkdoc'ed. - -1998-04-29 Per Abrahamsen - - * doc/README: Update iesd->sunsite in addresses. - -1998-04-03 Per Abrahamsen - - * doc/Makefile (auc-tex.ps): Cut of the first two lines. - -1998-03-29 Carsten Dominik - - * latex.el (LaTeX-section-section): When RefTeX is available, - notify it about the new section. - -1998-03-04 Per Abrahamsen - - * doc/math-ref.tex (section{Symbols}): Wrong keybindings. - Reported by "Ron Smith" . - -1998-02-27 Soren Dayton - - * tex.el (TeX-load-style): Also look in master directory. - -1998-02-27 Per Abrahamsen - - * tex.el (TeX-insert-punctuation): Only expand abbrevs when abbrev - mode is on. Suggested by Alastair Burt . - -1998-02-25 SL Baur - - * doc/auc-tex.texi: Add direntry section for automatic - installation. - -1998-02-25 Per Abrahamsen - - * Version 9.9b released. - -1998-01-02 John Griffith - - * latex.el (LaTeX-auto-regexp-list): Recognize empty optional - arguments and macros in optional arguments. - - * tex.el (TeX-parse-argument): minor spelling correction. - (TeX-argument-insert): ditto - -1998-02-25 Per Abrahamsen - - * tex.el (TeX-match-extension): Fold case when matching - extensions. - -1998-02-20 Per Abrahamsen - - * Version 9.9a released. - -1998-02-20 Per Abrahamsen - - * Version 9.8l released. - -1998-02-20 Per Abrahamsen - - * Version 9.8k released. - -1998-02-12 Per Abrahamsen - - * latex.el (LaTeX-math-list): Make tags match doc string. - -1998-01-28 Per Abrahamsen - - * Version 9.8j released. - -1998-01-28 Per Abrahamsen - - * tex-jp.el: Added credit. - Patch by KOBAYASHI Shinji . - -1997-12-10 Per Abrahamsen - - * tex-site.el: Added `defcustom' kludge to tex-site.el. - Suggested by "Ralph J. Hangleiter" . - -1997-10-27 Per Abrahamsen - - * latex.el (TeX-arg-input-file): Add trailing slash. - (TeX-arg-bibstyle): Ditto. - (TeX-arg-bibliography): Ditto. - Patch by Ching-Mo Chang . - -1997-10-20 Per Abrahamsen - - * Version 9.8i released. - -1997-10-20 Per Abrahamsen - - * Version 9.8h released. - -1997-10-20 Per Abrahamsen - - * Version 9.8g released. - -1997-10-20 Peter S Galbraith - - * font-latex.el: Updated to V0.504 (Oct 20 97) - - * bib-cite.el: Updated to 3.04 (Aug 25 97) - - * hilit-LaTeX.el: Updated to V1.17 (Sep 06 95) - -1997-10-01 kifer@CS.SunySB.EDU (Michael Kifer) - - * tex.el (TeX-insert-punctuation): Expand abbrevs in the - beginning. - -1997-09-11 Per Abrahamsen - - * tex-buf.el (TeX-run-silent): New function. - - * tex.el (TeX-command-list): Changed default for view from - `TeX-run-background' to `TeX-run-silent'. - -1997-09-10 "Dr. Werner Fink" - - * style/dinbrief.el: Updated. - -1997-09-08 karlheg@inetarena.com (Karl M. Hegbloom) - - * tex-info.el (texinfo-mode): Regexp fix. - -1997-08-29 David J. Rowe - - * latex.el (LaTeX-auto-regexp-list): Added support so newcommand*, - renewcommand*, providecommand*, newenvironment* and - renewenvironment* are recognized by TeX-auto-generate and - TeX-auto-generate-global. - (LaTeX-common-initialization): Added all of above "starred" - commands to symbol list and added providecommand to symbol list. - -1997-08-29 Per Abrahamsen - - * Version 9.8f released. - -1997-08-29 Carsten Dominik - - * amsmath.el ("amsmath"): Added environments xalignat and - xxalignat, and starred forms - -1997-08-22 Christoph Wedler - - * tex-buf.el (TeX-region-create): Also bind `orig-buffer' which - might be useful in `TeX-region-hook'. - -1997-07-14 Per Abrahamsen - - * Version 9.8e released. - -1997-07-14 Per Abrahamsen - - * Makefile (STYLESRC): Added `style/natbib.el'. - -1997-07-13 Berwin Turlach - - * Added style support for natbib.sty - -1997-07-11 Per Abrahamsen - - * Version 9.8d released. - -1997-07-11 Jan Vroonhof - - * latex.el (LaTeX-auto-regexp-list): More LaTeX2e support. - -1997-07-05 Berwin Turlach - - * latex.el (BibTeX-auto-store): make TeX-master a local variable - and set it to true. - -1997-07-03 Per Abrahamsen - - * Version 9.8c released. - -1997-07-03 Carsten Dominik - - * style/amsmath.el ("amsmath"): Use `TeX-arg-ref' for eqref. - -1997-06-29 Berwin Turlach - - * harvard.el: Updated the support for harvard.el - -1997-06-30 Per Abrahamsen - - * Version 9.8b released. - -1997-06-28 Per Abrahamsen - - * tex-buf.el (TeX-LaTeX-sentinel): `natbib' support. - Patch by Berwin Turlach . - -1997-06-27 Per Abrahamsen - - * Version 9.8a released. - -1997-06-24 Christoph Wedler - - * tex.el (TeX-update-style): `TeX-auto-update' could be unbound. - (TeX-auto-x-parse-length): New variable. Allows to use maximimum - = slow parsing for the beginning of a file and minimum = fast - parsing, e.g., just for labels, for the rest of the file. - (TeX-auto-x-regexp-list): Ditto. - (TeX-auto-parse-region): New function. - (TeX-auto-parse): Use them. - - * tex-buf.el (TeX-region-extra): New variable with a value which - redefines \cite for the region file in order get less - warnings. With value "", this variable has no effect. - (TeX-region-hook): New variable. - (TeX-region-create): Use them. - - * latex.el (LaTeX-indent-line): TeX commands are case sensitive. - (LaTeX-find-matching-end): Would not work correctly with more than - one \end in a line. - (LaTeX-find-matching-begin): Would not work correctly with more - than one \begin in a line. - - (LaTeX-menu-max-items): New variable with value 25. Split menu - if number of entries in a menu is larger than this value. If nil, - never split menu into submenus, which is the behaviour before the - introduction of this variable. - (LaTeX-submenu-name-format): New variable. - (LaTeX-split-long-menu): New function using the two new variables. - (LaTeX-menu-update): Use it. - - (LaTeX-document-regexp): New variable. Texts in environments - other than "document", e.g., "letter", could be without initial - indentation. - (LaTeX-verbatim-regexp): New variable. \begin and \end of - environments other than "verbatim\\*?", e.g., "program", could - start at column 0. - (LaTeX-begin-regexp): New variable similar to `LaTeX-item-regexp'. - Commands other than "begin", e.g, "if", could increase the - indentation. - (LaTeX-end-regexp): New variable similar to `LaTeX-item-regexp'. - Commands other than "end", e.g, "fi", could decrease the - indentation. - (LaTeX-indent-comment-start-regexp): New variable. Would allow - you to correct the automatic indentation with commands in special - comments. - (LaTeX-indent-calculate): Use them. - (LaTeX-indent-level-count): Use them. - (LaTeX-indent-calculate-last): Use them. - - (LaTeX-math-insert-function): New variable. - (LaTeX-math-insert): Use it. - -1997-06-11 Per Abrahamsen - - * latex.el (TeX-arg-ref): New alias. - (LaTeX-common-initialization): Use it. - Patch by Soren Dayton . - -1997-06-05 Per Abrahamsen - - * latex.el (LaTeX-auto-minimal-regexp-list): Added `usepackage'. - (LaTeX-auto-minimal-regexp-list): Ditto. - Patch by Carsten Dominik . - - * style/amsmath.el: New file. - * style/amstext.el: New file. - * style/amsbsy.el: New file. - * style/amsopn.el : New file. - * style/amsthm.el: New file. - * Makefile (STYLESRC): Added them. - Files provided by Carsten Dominik . - -1997-06-03 Per Abrahamsen - - * style/slovak.el: New file. - * style/czech.el: New file. - * Makefile (STYLESRC): Add them. - Files provided by Milan Zamazal . - -1997-04-17 Per Abrahamsen - - * Version 9.7p released. - -1997-04-12 Per Abrahamsen - - * tex.el: Added customize information. - * tex-buf.el: Ditto. - * latex.el: Ditto. - -1997-04-06 Per Abrahamsen - - * Version 9.7o released. - -1997-04-06 Per Abrahamsen - - * latex.el (LaTeX-equation-label): New variable. - (LaTeX-eqnarray-label): New variable. - (LaTeX-label): Support `figure*', `label*', `equation', and - `eqnarray'. - (LaTeX-env-figure): Support `table*'. - Patch by Joes Staal . - -1997-03-28 Per Abrahamsen - - * latex.el (LaTeX-down-section): Doc fix. - (LaTeX-section-heading): Ditto. - (LaTeX-section-title): Ditto. - (LaTeX-env-array): Ditto. - (TeX-braces-user-association): Ditto. - (LaTeX-fill-region-as-paragraph): Ditto. - (LaTeX-math-abbrev-prefix): Ditto. - (LaTeX-math-mode): Ditto. - (TeX-arg-right-insert-p): Ditto. - (latex-mode): Ditto. - -1997-03-26 Per Abrahamsen - - * Version 9.7n released. - -1997-03-26 Per Abrahamsen - - * latex.el (LaTeX-math-default): Fixed hebrew delimiters. - Patch by John Griffith . - -1997-03-26 Per Abrahamsen - - * latex.el (LaTeX-209-to-2e): Use `buffer-substring-no-properties'. - Reported by Graham Gough . - -1997-03-17 Per Abrahamsen - - * Version 9.7m released. - -1997-03-17 Per Abrahamsen - - * tex.el (TeX-auto-generate): Only generate when needed. - (TeX-auto-generate-global): Ditto. - Patch by Helmut Geyer . - - * Makefile (install-contrib): Don't move elc files twice. Patch - by Helmut Geyer . - -1997-03-13 Per Abrahamsen - - * style/danish.el: Copied from `style/dk.el'. - * Makefile (STYLESRC): Added `style/danish.el'. - Suggested by Lars Frellesen . - -1997-03-04 Per Abrahamsen - - * Version 9.7l released. - -1997-03-04 Per Abrahamsen - - * Makefile (some): Don't use `style/*.elc'. - -1997-02-27 Per Abrahamsen - - * tex.el (TeX-electric-macro): Default to space after dot. - -1997-02-26 Per Abrahamsen - - * Version 9.7k released. - -1997-02-26 Per Abrahamsen - - * tex.el (TeX-submit-bug-report): Fix address (sunsite, not iesd!). - -1997-02-25 Per Abrahamsen - - * Version 9.7j released. - -1997-02-21 Per Abrahamsen - - * Makefile (some): New target. - Suggested by Steven L Baur . - -1997-02-20 Per Abrahamsen - - * Version 9.7i released. - -1997-02-20 Per Abrahamsen - - * tex.el: Removed autoloads that conflicts with `tex-mode.el'. - (TeX-lisp-directory): Default to data-directory. - -1997-02-15 Per Abrahamsen - - * Version 9.7h released. - -1997-02-15 Per Abrahamsen - - * tex-buf.el (TeX-lisp-directory): Removed. - -1997-02-07 Per Abrahamsen - - * Version 9.7g released. - -1997-02-06 Karl Eichwalder - - * Makefile (install-lisp): Don't install $(aucdir)/lpath.el and - $(aucdir)/tex-site.el. - (contrib, install-contrib): New targets. - -1997-01-30 Per Abrahamsen - - * latex.el (LaTeX-math-default): uparow -> uparrow. Reported by - Kyeong Soo Kim . - -1997-01-29 Per Abrahamsen - - * Makefile (AUCSRC): Removed `ltx-help.el'. - -1997-01-27 Per Abrahamsen - - * Version 9.7f released. - -1997-01-27 Per Abrahamsen - - * latex.el (LaTeX-label-function): New variable. - (LaTeX-label): New function. - (LaTeX-section-label): Use it. - (LaTeX-env-figure): Ditto. - (LaTeX-env-label): Ditto. - Patch supplied by Carsten Dominik for - better RevTeX.el support. - - * latex.el (LaTeX-env-figure): Don't insert \leavevmode, at the - request of David Carlisle . - -1997-01-20 Per Abrahamsen - - * Version 9.7e released. - -1997-01-20 Per Abrahamsen - - * tex-buf.el (TeX-parse-error): Support LaTeX warnings. Patch by - Frederic Devernay . - (TeX-warning): Ditto. - -1997-01-17 Per Abrahamsen - - * Version 9.7d released. - -1997-01-17 Per Abrahamsen - - * tex-jp.el: XEmacs 20 support by Soren Dayton - . - -1997-01-13 Per Abrahamsen - - * Makefile (CP): Use `cp -p'. Suggested by Graham Gough - . - - * Version 9.7c released. - -1997-01-08 Per Abrahamsen - - * doc/intro.texi: Spelling fixes by Franklin Chen . - - * tex-buf.el (TeX-shell-command-option): Insitialize from - shell-command-switch. Suggested by Fabio@Colorado.EDU (Fabio - Somenzi). - - * latex.el (LaTeX-mode-menu): Added sans serif. Patch by Ralf - Fassel . - -1997-01-03 Per Abrahamsen - - * Makefile (install-lisp): Also install `.el' files. Requested by - several people. - -1996-12-11 Per Abrahamsen - - * Makefile (tex.elc): New entry. - (install-lisp): Use it. Trevor Jim - reported that `make install' wouldn't make the elc files. - -1996-12-10 Per Abrahamsen - - * Version 9.7b released. - -1996-12-10 Per Abrahamsen - - * tex-buf.el (TeX-run-format): Bind `buffer' before `process' to - avoid side effect. Suggested by Frederic Devernay - . - - * Version 9.7a released. - -1996-12-10 Per Abrahamsen - - * latex.el (LaTeX-fill-region-as-para-do): Minimal support for - `sentence-end-double-space'. - -1996-12-09 Per Abrahamsen - - * Version 9.6m released. - -1996-12-01 Per Abrahamsen - - * Version 9.6l released. - -1996-12-01 Per Abrahamsen - - * tex-jp.el: Patch from IKEMOTO Masahiro - . - -1996-11-29 Per Abrahamsen - - * Version 9.6k released. - -1996-11-22 Per Abrahamsen - - * latex.el (LaTeX-mode-menu): Made `LaTeX-math-mode' a toggle. - -1996-11-16 Per Abrahamsen - - * Version 9.6j released. - -1996-11-14 Per Abrahamsen - - * latex.el (LaTeX-common-initialization): Added eqref to - LaTeX-label-list. Suggested by Martin Hagstrom - . - -1996-11-13 Per Abrahamsen - - * tex-buf.el (TeX-region-create): Disable font lock. Suggested by - several, patch by Christoph Wedler . - -1996-11-05 Per Abrahamsen - - * tex.el (TeX-file-extensions): Added "texinfo". - -1996-09-30 Per Abrahamsen - - * latex.el (LaTeX-mode-map): Do not overwrite standard binding of - `M-g'. - - * tex.el (popup-mode-menu): Run `LaTeX-menu-update' if present. - Workaround for bug reported by Hendrik Visage - and othors. - - * latex.el (LaTeX-float): Allow nil. - (LaTeX-env-figure): Don't insert float if nil. Feature suggested - by Andre Eickler . - -1996-09-16 Per Abrahamsen - - * Version 9.6i released. - -1996-09-16 Per Abrahamsen - - * tex.el (TeX-mode-syntax-table): Made `$' have the syntax class - `$' at the suggestion of Mats Bengtsson . - -1996-08-31 Per Abrahamsen - - * latex.el (TeX-arg-cite): Use `multi-prompt' when asking for - entries. - (TeX-arg-bibliography): Ditto. - -1996-08-29 Per Abrahamsen - - * Makefile: Simplified installation (I hope). - -1996-08-28 Per Abrahamsen - - * Makefile: Removed lacheck. - -1996-08-23 Per Abrahamsen - - * tex-buf.el (TeX-run-command): Change to master directory before - executing command. - (TeX-region-file): Allow dummy second argument. - (TeX-run-background): Run in master directory. - (TeX-run-interactive): Run in master directory. - - * tex.el (TeX-master-file): Allow second argument `NONDIRECTOPRY'. - (TeX-expand-list): Set second argument `NONDIRECTORY' to file - entries. - (TeX-master-directory): New function. - * tex.el (TeX-auto-write): Write in master directory. - -1996-08-22 Per Abrahamsen - - * latex.el (LaTeX-current-environment): Ignore comments. Reported - by Stephen Eglen . - - * tex.el (TeX-directory-absolute-p): Added `windows-nt'. - - * tex-buf.el (TeX-shell): Added `windows-nt'. - (TeX-shell-command-option): Added `emx' and `windows-nt'. - Reported by Ulrich Poetter . - -1996-08-21 Per Abrahamsen - - * tex.el (VirTeX-common-initialization): Removed duplicate - initialization of `words-include-escapes'. Reperted by Mark Hovey - . - -1996-08-14 Per Abrahamsen - - * Makefile (CONTRIB): Added `font-latex.el'. - -1996-07-30 Per Abrahamsen - - * Makefile (aucdir): Changed `lib' to `share' per new emacs - conventions. Reported by "Edward J. Huff" - . - -1996-07-16 Per Abrahamsen - - * latex.el (LaTeX-fill-region-as-para-do): Make sure `.}' gets - two spaces at end of sentence when filling. - -1996-07-15 Per Abrahamsen - - * tex.el (TeX-parse-path): Ignore tralining //. Suggested by - Göran Uddeborg . - -1996-05-05 Per Abrahamsen - - * all: Use version number instead of CVS id. - - * tex.el (TeX-mode-map): Don't bind `del'. We aren't supposed to - have any tabs in the first place. - -1996-05-02 Per Abrahamsen - - * tex.el (TeX-mark-active, TeX-active-mark) [XEmacs]: The - definition of these two were swapped. Bug reported by - Vladimir Alexiev . - -1996-04-25 Per Abrahamsen - - * tex.el (TeX-update-style): Don't run parent style hooks for - files that doesn't match `TeX-one-master'. Suggested by many - people. - -1996-04-24 Per Abrahamsen - - * latex.el (LaTeX-close-environment): Bind - `next-line-add-newlines' to t. Patch by Fritz Knabe - . - -1996-04-01 Per Abrahamsen - - * latex.el (LaTeX-fill-region-as-para-do): Fill `.}' as a sentence - end. Patch by Fritz Knabe . - -1996-03-11 Per Abrahamsen - - * latex.el (LaTeX-math-cal): Use `\mathcal{}' under LaTeX2e. - Reported by Mate Wierdl . - -1996-03-05 Per Abrahamsen - - * tex-info.el (texinfo-mode): Rely on texinfo.el to provide the - outline regexp. - -1996-02-20 Per Abrahamsen - - * tex.el (TeX-command-menu-queue, TeX-command-menu-queue-entry): - New functions supporting printer queue queries from the menu. By - Ulrik Dickow - (TeX-command-menu-entry): Use them. - -1996-02-13 Per Abrahamsen - - * style/swedish.el: Support for Swedish quotation style by "G\vran - Uddeborg" . - -1995-12-21 Per Abrahamsen - - * latex.el (LaTeX-math-default): Added more definitions by Mehmet - Balcilar . - -1995-12-18 Per Abrahamsen - - * latex.el (LaTeX-fill-region-as-paragraph): Removed old version. - (LaTeX-math-menu): Redefined the math mode menu. - -1995-12-14 Per Abrahamsen - - * latex.el (LaTeX-math-menu): New variable. - (LaTeX-mode-menu): Use it. Suggested by Peter S Galbraith - . - -1995-11-13 Per Abrahamsen - - * tex.el (VirTeX-common-initialization): Set `comment-multi-line' - to nil. - -1995-10-13 Per Abrahamsen - - * PROBLEMS: Some easymenu explanations. - - * tex.el: Require easymenu.el instead of auc-menu.el. - * Makefile (AUCSRC): Removed easymenu.el and auc-menu.el. - (MINMAPSRC): Removed easymenu.el, column.el and cpp.el. - * easymenu.el: File deleted. - * column.el: File deleted. - * cpp.el: File deleted. - - * latex.el (LaTeX-math-insert): Don't check if `TeX-insert-macro' - is defined. - (LaTeX-close-environment): Work better when called on an empty - line. Fixed by David Aspinall . - -1995-10-12 Per Abrahamsen - - * tex.el ('LaTeX-math-mode): Autoload from latex.el instead of - ltx-math.el. Reported by Richard Brankin . - -1995-02-14 Per Abrahamsen - - * latex.el (LaTeX-fill-region-as-paragraph): Should now format \\ - correctly. Patch by michal@ellpspace.math.ualberta.ca (Michal - Jaegermann). - (LaTeX-fill-region-as-para-do): New function. - (LaTeX-fill-region-as-paragraph): Do not fill paragraphs inside - special environments. - -1995-02-12 Per Abrahamsen - - * tex.el (TeX-byte-compile): Make it default to nil. Suggested by - michal@ellpspace.math.ualberta.ca (Michal Jaegermann). - - * tex-buf.el (TeX-command-query): Also offer to save files when - started from a menu. Reported by wscoas@win.tue.nl (Anton - A. Stoorvogel). - (TeX-LaTeX-sentinel): Don't suggest BibTeX if there is no - bibliographies. Suggested by Piet van Oostrum . - -1995-02-11 Per Abrahamsen - - * tex-buf.el (TeX-run-format): Protect against being run from a - different buffer. Patch by Michael Kifer - . - - * latex.el (LaTeX-math-default): Moved `Phi' from V to F in - LaTeX-math-mode. Suggested by dak@ind.rwth-aachen.de (David - Kastrup). - * doc/math-ref.tex: Documented it. - -1995-02-02 Per Abrahamsen - - * tex-buf.el (TeX-home-buffer): Added interactive, reported by - edavid@lami.univ-evry.fr. - -1995-02-01 Per Abrahamsen - - * hilit-LaTeX.el: Upgraded to 1.06. - - * Makefile (CONTRIB, EXTRAFILES): Moved tex-jp.el to CONTRIB. - -1995-01-27 Per Abrahamsen - - * latex.el (LaTeX-paragraph-commands): Incorrectly placed - parenthesis. Reported by mic@cs.ucsd.edu (Michelangelo Grigni). - -1995-01-26 Per Abrahamsen - - * latex.el (LaTeX-fill-region): Use marker to mark end of region - instead of integer, as the formatting may change the size of the - region. - (LaTeX-common-initialization): Fixed bug in paragraph definitions. - Reported by Steve Anderson . - - * tex.el (save-match-data): Added by koba@flab.fujitsu.co.jp - (Kobayashi Shinji). - (bibtex-mode-hook): Don't use add-hook yet. Reported by - koba@flab.fujitsu.co.jp (Kobayashi Shinji). - -1995-01-25 Per Abrahamsen - - * tex.el (change-major-mode-hook): Also clear - `LaTeX-environment-list'. - - * Makefile (AUCSRC): Add `auc-menu.el'. - - * tex.el: Use auc-menu instead of easymenu. - - * tex.el: Inserted comment to mark end of site customization. - Suggested by john@minster.york.ac.uk (John A. Murdie). - - * tex.el (change-major-mode-hook): Forgot a set of parentheses. - Reported by Frederic Devernay . - - * tex-buf.el (TeX-current-pages): Removed extra parentheses. - Reported by mic@cs.ucsd.edu (Michelangelo Grigni). - -1995-01-24 Per Abrahamsen (abraham@iesd.auc.dk) - - * tex.el (change-major-mode-hook): Added workaround for error in - XEmacs 19.11's `kill-all-local-variables'. - -1995-01-23 Per Abrahamsen - - * latex.el (LaTeX-common-initialization): Removed unnecessary - regexp quotes of `TeX-esc'. - - * style/amsart.el: Move `eqref' definition to `style/amstex.el' - and load that style hook. - * style/amstex.el: New file. - * Makefile (STYLESRC): Added it. - Suggested by vb1890@PLAY.CS.NYU.EDU (Victor Boyko). - -1995-01-22 Per Abrahamsen - - * latex.el, ltx-math.el, Makefile: Integrated `ltx-math.el' in - `latex.el'. - * tex-site.el: Removed autoload for `LaTeX-math-mode'. - -1995-01-19 Per Abrahamsen - - * latex.el (latex-mode): Epoch fix by Martin Sjolin - . - -1995-01-17 Per Abrahamsen - - * bib-cite.el: New file contributed by Peter S. Galbraith - . - - * hilit-LaTeX.el: New file contributed by Peter S. Galbraith - . - - * Makefile (CONTRIB): New macro for user contributed emacs lisp - packages, initialized with `bib-cite.el' and `hilit-LaTeX.el'. - (EXTRAFILES): Added $(CONTRIB) to the list. - - * tex.el (TeX-directory-absolute-p): Moved definition before - `TeX-macro-private'. Reported by Frederic Devernay - . - - * latex.el (LaTeX-common-initialization): Remove extra and wrong - "\\\\par" from `paragraph-separate'. Bug reported by - nijhof@th.rug.nl (Jeroen Nijhof). - -1995-01-11 Per Abrahamsen - - * tex-buf.el (TeX-command-region): Comment fix. Patch by - wlang@rs6000.mri.akh-wien.ac.at (Willi Langenberger). - (TeX-region-create): More outline-mode safe. Patch by - wlang@rs6000.mri.akh-wien.ac.at (Willi Langenberger). - - * Makefile (dist): Put version number in WWW page. Suggested by - several people. - - * latex.el (LaTeX-auto-regexp-list): Ignore first optional - argument to newenvironment if there is a second. Problem reported - by schiotz@ltf.dth.dk (Jakob Schiotz). - - * style/amsbook.el: New file. Problem reported by Denby Wong - <3dw16@qlink.queensu.ca>. - -1995-01-04 Per Abrahamsen - - * tex-buf.el (TeX-TeX-sentinel-check): New function. Updates - `TeX-current-page' with regexp by dodd@roebling.poly.edu (Lawrence - R. Dodd) - (TeX-current-pages): New function. - (TeX-LaTeX-sentinel, TeX-TeX-sentinel): Use it. - (TeX-format-filter): Removed unnecessary check before assignment. - -1995-01-03 Per Abrahamsen - - * tex-buf.el (TeX-LaTeX-sentinel): Write number of pages even - when labels or citations are missing. Patch by - dodd@roebling.poly.edu (Lawrence R. Dodd). - -1994-12-07 Per Abrahamsen - - * tex.el (TeX-directory-absolute-p): New function. Should work on - both Unix and MS DOS. Problem reported by schiotz@ltf.dth.dk - (Jakob Schiotz). - (TeX-parse-path): Use it. - (TeX-auto-generate): Use it. - -1994-12-05 Per Abrahamsen - - * latex.el (BibTeX-auto-store): Set TeX-auto-parse-length to - 999999 locally. Problem reported by Christoph Wedler - . - -1994-12-02 Per Abrahamsen - - * tex-buf.el (TeX-LaTeX-sentinel): Check whether the ".bbl" file - need to be udpated before setting TeX-command-next to "BibTeX". - (TeX-command-query): Remove previous change. - -1994-11-28 Per Abrahamsen - - * latex.el (LaTeX-209-to-2e): New function by - Graham Gough . - - * latex.el (LaTeX-mode-menu): Move many commands to new - "Miscellaneous" submenu. - - * tex-buf.el (TeX-home-buffer): Don't take arg. - - * latex.el (LaTeX-left-right-indent-level): New variable - controling indentation for \left \right blocks. - (LaTeX-indent-level-count): New function. Previously only LaTeX - macros at the beginning of the line would affect indentation. - This problem was reported by many people. - (LaTeX-indent-calculate-last): Call `LaTeX-indent-level-count'. - Take into account that \end and \right at the beginning of the - line has immediate effect. - -1994-11-27 Per Abrahamsen - - * latex.el (TeX-global-input-files): New variable. Idea and - sample code by Christophe Mignot . - (TeX-arg-input-file): Use it. - (BibTeX-global-style-files): Mention how it is reset in - `TeX-normal-mode'. - (BibTeX-global-files): Ditto. - - * tex.el (TeX-normal-mode): Reset `BibTeX-global-style-files', - `BibTeX-global-files', and `TeX-global-input-files' if invoked - with an argument. - - * tex-site.el: Ignore trailing `/' when adding TeX-lisp-directory - to load-path. Patch by Michael Ernst - . - - * tex-buf.el (TeX-LaTeX-sentinel): Don't rerun LaTeX on missing - references, unless they have changed. Patch by schiotz@ltf.dth.dk - (Jakob Schiotz). - - * latex.el (LaTeX2e-font-replace): New function. - (LaTeX-common-initialization): Set TeX-font-replace-function to - LaTeX2e-font-replace when using latex2e. - - * tex.el (TeX-font-replace-function): New variable. - (TeX-font): Use it. - - TeX-font-replace-function and LaTeX2e-font-replace were - contributed by Peter Thiemann - . - - -1994-11-22 Per Abrahamsen - - * MSDOS: Added. Contributed by schiotz@ltf.dth.dk (Jakob - Schiotz). - - * OEMACS: Removed. - - * tex.el (VirTeX-common-initialization): Make - `words-include-escapes' a local variable before setting it. - Reported by Bo Nygaard Bai . - -1994-11-15 Per Abrahamsen - - * tex.el (TeX-auto-store): Change to functions that prevent the - auto file buffer from entering emacs-lisp-mode. - (TeX-auto-insert): Don't rely on emacs-lisp-mode for indentation. - Suggested by Stefan Schöf (schoef@informatik.uni-oldenburg.de). - -1994-11-11 Per Abrahamsen - - * tex.el (TeX-macro-global): Change to `standard' path. - -1994-11-09 Per Abrahamsen - - * tex-buf.el (TeX-command-query): Suggest TeX-command-default - again if bbl file is newer than dvi file. - -1994-11-07 Per Abrahamsen - - * tex.el (TeX-submit-bug-report): Indicate LaTeX-version. - Suggested by schiotz@ltf.dth.dk (Jakob Schiotz). - -1994-10-26 Per Abrahamsen - - * Makefile (dist): Automatically update AUC-TeX-version and - AUC-TeX-date in tex.el - - * tex.el (AUC-TeX-version): Added AUC-TeX-version and - AUC-TeX-date from auc-ver.el. - - * auc-ver.el: File removed. - - * tex.el: Added version specific code from seperate files. - - * tex-19.el, tex-18.el, tex-lcd.el: Files removed. - -1994-10-25 Per Abrahamsen - - * doc/auc-tex.texi (Projects): Removed an implemented item. - - * tex.el (TeX-command-current): New variable. - (TeX-command-select-master): New function. - (TeX-command-select-buffer): New function. - (TeX-command-select-region): New function. - (TeX-command-menu): Use TeX-command-current instead of explicit - file argument. - (TeX-command-menu-print): Remove file argument. - (TeX-command-menu-printer-entry): Don't pass file argument. - (TeX-command-create-menu): Removed. - (TeX-mode-menu): New menu. - (plain-TeX-mode-menu): Removed entries now in TeX-mode-menu. - (plain-TeX-mode-menu): Use `toggle' for bad boxes. - (plain-TeX-common-initialization): Enable TeX-mode-menu. - - * latex.el (LaTeX-mode-menu): Removed entries now in - TeX-mode-menu. - (LaTeX-mode-menu): Use `toggle' for bad boxes. - (LaTeX-common-initialization): Enable TeX-mode-menu. - - * tex-info.el (TeXinfo-command-menu): New menu. - (TeXinfo-mode-menu): Move commands to new menu. - (TeXinfo-mode-menu): Use `toggle' for bad boxes. - (texinfo-mode): Enable TeXinfo-command-menu. - -1994-10-24 Per Abrahamsen - - * Makefile (AUCSRC): Removed auc-menu.el from AUC TeX distribution. - (MINMAPSRC): Added easymenu.el temporarily to min-map distribution. - - * auc-menu.el: Just load easymenu.el when using GNU Emacs. - - * easymenu.el Try to use RMS's easymenu instead of auc-menu. - (easy-menu-define): Call `easy-menu-do-define' to do - the real work. Document XEmacs keyword arguments. - (easy-menu-do-define): New function. - (easy-menu-create-keymaps): Support XEmacs keyword arguments in - menu definition. - (easy-menu-remove): Make is a function instead of a macro. - (easy-menu-add): Ditto. - -1994-10-21 Per Abrahamsen - - * doc/auc-tex.texi (Completion): Less confusing BibTeX advice, I hope. - - * tex-jp.el: Added patch from koba@flab.fujitsu.co.jp (Kobayashi - Shinji). - - * latex.el (TeX-arg-insert-braces): Have \left and \right on - different lines. Patch by thiemann@informatik.uni-tuebingen.de - (Peter Thiemann). - - * Makefile (dist): Add CHANGES and ChangeLog files to the ftp - directory. Suggested by Frederic Devernay - . - - * latex.el (LaTeX-indent-calculate): Allow nil second element in - `LaTeX-indent-environment-list'. - (LaTeX-indent-environment-list): Added special environments - suggested by thiemann@informatik.uni-tuebingen.de (Peter - Thiemann). - -1994-10-20 Per Abrahamsen - - * tex.el (TeX-auto-list-information): Spelling error. - -1994-10-18 Per Abrahamsen - - * latex.el (LaTeX-common-initialization): Make "LaTeX2e" the - default command if you have set `LaTeX-version' to "2" and is - using "\documentclass". - -1994-10-06 Per Abrahamsen - - * latex.el (LaTeX-paragraph-commands): End each word with a "\\b" - to avoid accidentally matching longer macros. - - * tex.el (TeX-add-local-master): Use three %'s when adding buffer - local variables. Suggested by Raymond Toy . - - * tex.el (TeX-format-list): Added entry for AmSTeX by Ulf Juergens - . - - * tex.el (ams-tex-mode): Run AmS-TeX-mode-hook, not - plain-TeX-mode-hook. Reported by Ulf Juergens - . - - * tex-buf.el (TeX-format-filter): Add `save-match-data'. Patch by - David Aspinall . - -1994-09-14 Per Abrahamsen - - * cpp.el: Use RMS's version. - -1994-09-13 Per Abrahamsen - - * doc/history.texi, doc/auc-tex.texi: Fixes from Chris Fearnley - <@vm.uni-c.dk:FEARNLCJ@DUVM>. - -1994-09-09 Per Abrahamsen - - * latex.el (LaTeX-insert-environment): Don't fill environments - listed in `LaTeX-indent-environment-list'. Suggestion by Graham - Gough . - - * tex.el (LaTeX-command-style): Made latex2e first in the list. - Suggested by Frederic Devernay . - -1994-09-05 Per Abrahamsen - - * tex.el (TeX-file-extensions): Added LaTeX2 `cls' extension after - query by jmv@di.uminho.pt (Jose Manuel Valenca). - -1994-08-30 Per Abrahamsen - - * tex-jp.el: New version from koba@flab.fujitsu.co.jp (Kobayashi - Shinji). - - * tex.el (TeX-command-list): Fifth element is now ignored. - - * tex-buf.el (TeX-command-query): Check if region file is newer - than dvi file. - (TeX-command-region): Only query for command _after_ region file - is created. - (TeX-region-create): Only save file if the new content is - different than the original content. - -1994-08-29 Per Abrahamsen (abraham@research.att.com) - - * tex-buf.el (TeX-warning): Use offset for line end. Fixed by - ddw2@sunbim.be (Dominique de Waleffe). - -1994-08-26 Per Abrahamsen (abraham@iesd.auc.dk) - - * doc/auc-tex.texi (Projects): Removed preceding item from - wishlist. - - * latex.el (LaTeX-common-initialization): Fix to comments - separating paragraphs by koba@flab.fujitsu.co.jp (Kobayashi - Shinji). - - * tex-jp.el (LaTeX-fill-region-as-paragraph): New version for MULE - 2.0 by Tomotake FURUHATA . - - * tex.el (TeX-function-p): Spelling error in doc. - -1994-08-23 Per Abrahamsen (abraham@iesd.auc.dk) - - * doc/intro.texi (Contacts): Some reformulations. - -1994-08-21 Per Abrahamsen (abraham@iesd.auc.dk) - - * tex-jp.el (TeX-insert-punctuation): Japanese version from - koba@flab.fujitsu.co.jp (Kobayashi Shinji). - -1994-08-19 Per Abrahamsen (abraham@iesd.auc.dk) - - * doc/install.texi: The `site-lisp' directory is also available in - Lucide Emacs 19.10. Reported by Tim Geisler - . - -1994-08-18 Per Abrahamsen (abraham@iesd.auc.dk) - - * latex.el (TeX-arg-cite): Prompt for multiple keys. Suggested by - Masahiro Kitagawa . - -1994-08-17 Per Abrahamsen (abraham@iesd.auc.dk) - - * style/german.el ("german"): Use `TeX-quote-after-quote'. - Suggested by te@informatik.uni-hannover.de (Thomas Esser). - - * latex.el (LaTeX-common-initialization): Error in regexp for - multiple arguments to `\cite', reported by Masahiro Kitagawa - . - -1994-08-17 Per Abrahamsen (abraham@iesd.auc.dk) - - * latex.el (LaTeX-env-figure): Put caption inside center - environment. Suggested by Martin Wunderli . - - * tex.el (TeX-strip-extension): If NODIR is set to `path', remove - the directory part iff it is equal to the current directory, or is - a member of either `TeX-macro-global' or `TeX-macro-private'. - (TeX-master-file): Use `path' for NODIR when querying the user for - a file name. Reported finger@brachio.Informatik.Uni-Dortmund.DE - (Bernd Finger). - -1994-08-16 Per Abrahamsen (abraham@iesd.auc.dk) - - * latex.el (LaTeX-common-initialization): `eqnarray*' should not - have a label. Reported by dodd@roebling.poly.edu (Lawrence R. - Dodd). - -1994-08-11 Per Abrahamsen (abraham@iesd.auc.dk) - - * tex-buf.el (TeX-background-filter): Always show background - output. - -1994-08-10 Per Abrahamsen (abraham@iesd.auc.dk) - - * Makefile (MINMAPSRC): Added `all.el'. - - * all.el: New file. - - * tex-buf.el (TeX-LaTeX-sentinel): Write "some" if - TeX-current-page is nil. Reported by Michail Rozman - . - -1994-08-09 Per Abrahamsen (abraham@iesd.auc.dk) - - * auc-menu.el (easy-menu-add): Undid previous change. - (top level `cond'): Use Emacs 18 code if `window-system' is nil. - Patch by Patrice Belleville . - -1994-08-08 Per Abrahamsen (abraham@iesd.auc.dk) - - * tex.el (TeX-electric-macro): No electricity after `.' or `\'. - -1994-08-06 Per Abrahamsen (abraham@iesd.auc.dk) - - * latex.el (LaTeX-paragraph-commands): New variable. - (LaTeX-common-initialization): Use it. Suggested by - liyuan@allwise.research.att.com (Yuan P. Li). - - * auc-menu.el (easy-menu-add): Check that `x-popup-menu' is bound - and that we are running under X before calling it. Reported by - Adrian F. Clark - -1994-08-04 Per Abrahamsen (abraham@iesd.auc.dk) - - * tex-jp.el (LaTeX-fill-region-as-paragraph): Patch for Emacs 19 - regexps by koba@flab.fujitsu.co.jp (Kobayashi Shinji) reported by - Uenami Ken'ichi . - - * doc/auc-tex.texi (European): Mention `iso-cvt.el' as suggested - by mike@vlsivie.tuwien.ac.at (Michael Gschwind). - -1994-08-03 Per Abrahamsen (abraham@iesd.auc.dk) - - * doc/history.texi: New file. - - * doc/Makefile (HISTORY): Added rule. - - * Makefile (EXTRAFILES): Added `ChangeLog'. - (DOCFILES): Added `history.texi'. - - * doc/auc-tex.texi (History): Made ready for 9.2. Move history to - `history.texi'. - - * doc/changes.texi: Made ready for 9.2. Introduce ChangeLog. - - * Makefile (LispInstall): Use "/bin/pwd" instead of "pwd". - reported by mic@cs.ucsd.edu (Michelangelo Grigni). - - * ChangeLog: New file. - - * Version 9.1 released. - -;; Local Variables: -;; coding: iso-8859-1 -;; End: diff -Nru auctex-11.88/ChangeLog.1 auctex-11.90/ChangeLog.1 --- auctex-11.88/ChangeLog.1 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/ChangeLog.1 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,20809 @@ +2017-01-10 Mosè Giordano + + * Version 11.90 released. + +2017-01-10 Mosè Giordano + + Refresh RELEASE file + + * RELEASE: Update "Availability" and "Future development and additional + information" sections. + +2017-01-10 Mosè Giordano + + * Makefile.in (release-commit): Use UTF-8 coding for ChangeLog entry. + + * ChangeLog-preview: Change encoding to UTF-8. + + * Makefile.in (release-commit): Fix name of preview ChangeLog. + +2017-01-10 Arash Esbati + + Use RefTeX for multiple references in cleveref + + * style/cleveref.el (TeX-arg-cleveref-multiple-labels): Check if + RefTeX is enabled and use it for multiple referencing macros. + ("cleveref"): Use `TeX-arg-ref' instead of `TeX-arg-label'. + ("cleveref"): Remove call of (font-latex-set-syntactic-keywords). + +2017-01-10 Arash Esbati + + Skip macros and environments from tcolorbox and raster library + + * tex-ispell.el (TeX-ispell-sort-skip-cmds-list): Extract macros + with optional argument from `TeX-ispell-skip-cmds-list'. + (TeX-ispell-skip-cmds-opt-arg-regexp): New variable containing + macros where only the optional argument is skipped while spell + checking. + Add macros and environments from tcolorbox.el and + tcolorboxlib-raster.el. + +2017-01-10 Arash Esbati + + Advertise AUCTeX installation from ELPA + + * doc/quickstart.texi (Quick Start): Emphasize the necessity to + drop (load "auctex.el" nil t t) when installed from ELPA. + + * doc/install.texi (Installation): Advertise installation from + ELPA. + +2017-01-09 Mosè Giordano + + Prepare for upcoming release + + * RELEASE: Update AUCTeX version, the new features section, and + the list of contributors. + + * configure.ac: Update AUCTeX version. + + * doc/changes.texi: Reorder changes for 11.90 version section. + + * doc/tex-ref.tex: Update AUCTeX version and copyright years + across the file. + + * latex/preview.dtx: Manually update release version. + +2017-01-07 Mosè Giordano + + Adapt Makefile to new ChangeLog file name + + * Makefile.in (release-commit): Use `CHANGELOG_N' in place of + `ChangeLog'. + +2017-01-06 Tassilo Horn + + Don't use cl function copy-list + + * font-latex.el (font-latex--get-script-props): Use copy-sequence instead of + copy-list, the latter being a cl function. + +2017-01-05 Tassilo Horn + + Fix bug where font-latex-sub/superscript-face was not applied to ^_ + + * font-latex.el (font-latex-make-user-keywords): prepend + font-latex-script-char-face, don't replace existing specs. + +2017-01-05 Tassilo Horn + + Fontify script characters with a new face + + * doc/auctex.texi (Fontification of math): Document it. + * doc/changes.texi: Mention that. + * font-latex.el (font-latex-make-user-keywords): Adapt. + (font-latex-script-char-face): New face. + (font-latex-match-script-chars): Improve it so that double ^_ aren't + matched because such errors were hard to see with + font-latex-fontify-script set to invisible. + (font-latex-script-char): New function. + +2017-01-05 Arash Esbati + + Support biblatex cite format in all Emacsen + + * style/biblatex.el ("biblatex"): Check if biblatex is available + in `reftex-cite-format-builtin' and use it. If not, add entries + for older Emacsen manually. + +2017-01-05 Arash Esbati + + Check new custom option before activating RefTeX cite format + + * doc/changes.texi: Document new variable. + + * style/biblatex.el ("biblatex"): + * style/harvard.el ("harvard"): + * style/jurabib.el ("jurabib"): + * style/natbib.el ("natbib"): Set cite format provided by RefTeX + when `LaTeX-reftex-cite-format-auto-activate' is non-nil. + + * tex-style.el (LaTeX-reftex-cite-format-auto-activate): New + customizable variable. + +2017-01-04 Tassilo Horn + + Fix script unfontification bug + + * font-latex.el (font-latex-unfontify-region): Remove script-level + property and raise display property even though it's value is different + from what's specified in font-latex-script-display. + +2017-01-04 Tassilo Horn + + Improve completion docs + + * doc/auctex.texi (Completion): Improved docs. + * doc/changes.texi: Mention math completion, add link to Completion node + in the manual. + * tex.el (TeX-complete-list): Improve docstring. + +2017-01-04 Tassilo Horn + + Refactor normal completion and completion at point a bit + + * tex.el (TeX--complete-find-entry): New function. + (TeX-complete-symbol,TeX--completion-at-point): Use it. + +2017-01-04 Tassilo Horn + + Completion for math macros + + * latex.el (LaTeX--after-math-macro-prefix-p): New function. + (LaTeX-common-initialization): Use it for new TeX-complete-list entry. + * tex.el (TeX-complete-list): Also allow match-data setting predicates in + entries. + (TeX-complete-symbol,TeX--completion-at-point): Adapt to new possibility. + +2017-01-03 Tassilo Horn + + Add completion-at-point support + + * doc/auctex.texi (Completion): Document completion-at-point support. + * doc/changes.texi: Mention completion-at-point support. + * tex.el (TeX--completion-at-point): New function. + (VirTeX-common-initialization): Add TeX--completion-at-point to + completion-at-point-functions in TeX buffers if that's bound. + +2017-01-03 Mosè Giordano + + Use RefTeX for multiple citations in biblatex + + * style/biblatex.el (LaTeX-arg-biblatex-cites): Use RefTeX when + available. Suggested by Arash Esbati. + +2017-01-03 Tassilo Horn + + Simple docfix + + * font-latex.el (font-latex-fontify-script-max-level): Correct escaping of + \(...\) in the docstring. + +2017-01-03 Tassilo Horn + + Improve multi-level script fontification + + * doc/auctex.texi (Fontification of math): Update docs. + * doc/changes.texi: Add an item for the new script fontification + features. + * font-latex.el (font-latex-fontify-script): Update docstring. + (font-latex-fontify-script-max-level): New custom variable. + (font-latex--get-script-props): Apply script face only for levels up to + font-latex-fontify-script-max-level. + (font-latex-script): Adapt call to font-latex--get-script-props. + +2017-01-03 Arash Esbati + + Add a newline only if \label is inserted + + * style/caption.el (LaTeX-arg-caption-captionof): + * style/bicaption.el (LaTeX-arg-bicaption-bicaption): Save the + position before asking for a label. Add a newline only if a label + is inserted. + +2017-01-03 Tassilo Horn + + Bring back multi-level script font-locking + + * doc/auctex.texi (Fontification of math): Add documentation. + * font-latex.el (font-latex-script-display): Increase default raise level to + 0.5. + (font-latex-superscript-face,font-latex-subscript-face): Let scripts be a bit + larger (:height 0.85 instead of 0.8). + (font-latex--get-script-props): New function for incrementing/decrementing + raise display property values. + (font-latex-script): Use it. + +2017-01-03 Tassilo Horn + + Revert "Remove multi-level/invisible feature of font-latex-fontify-script" + + This reverts commit ccec8501960a448dd8faccaae54dfd9839a37c30. + +2017-01-02 Tassilo Horn + + Remove multi-level/invisible feature of font-latex-fontify-script + + * font-latex.el (font-latex-make-user-keywords,font-latex-script-display) + (font-latex-script): Remove multi-level/invisible feature of + font-latex-fontify-script. + (font-latex-doctex-preprocessor-face): Remove function. + * doc/auctex.texi (Fontification of math): Remove documentation for + font-latex-fontify-script's multi-level and invisible values. + +2016-12-31 Arash Esbati + + Set `reftex-set-cite-format' to biblatex or natbib + + * style/biblatex.el ("biblatex"): Set `reftex-set-cite-format' to + biblatex or natbib depending on package option. + +2016-12-30 Uwe Brauer + + Add new style/exam.sty + + * Makefile.in (STYLESRC): add exam.el + * style/exam.el: Add style file + * tex-style.el: Move defcustom from exam.el to tex-style.el + +2016-12-30 Arash Esbati + + Fix the names also in expert macros + + * style/cleveref.el ("cleveref"): Fix the names also in expert macros. + +2016-12-30 Arash Esbati + + Fix name of macros \lcnamecref and \lcnamecrefs + + * style/cleveref.el ("cleveref"): Fix name of macros \lcnamecref + and \lcnamecrefs. + +2016-12-30 Arash Esbati + + Add fontification for varioref's referencing macros + + * font-latex.el (font-latex-built-in-keyword-classes): Add starred + version to \vref macro. + + * style/varioref.el ("varioref"): Add fontification support for + referencing macros. + +2016-12-30 Arash Esbati + + Add starred version of \citeauthor and \Citeauthor + + * font-latex.el (font-latex-built-in-keyword-classes): + * style/biblatex.el ("biblatex"): Add starred version of + \citeauthor and \Citeauthor macros. + +2016-12-30 Arash Esbati + + Fix fontification for natbib compat macros + + * style/biblatex.el ("biblatex"): Fix fontification for natbib + compat macros which take 2 optional arguments. + +2016-12-29 Arash Esbati + + Add \switchcolumn to paragraph commands + + * style/paracol.el ("paracol"): Add \switchcolumn to paragraph + commands. + +2016-12-29 Arash Esbati + + Add new style/titletoc.el + + * style/titletoc.el: New file. + + * Makefile.in (STYLESRC): Add new style. + +2016-12-29 Arash Esbati + + Add new style/titlesec.el + + * Makefile.in (STYLESRC): Add new style. + + * style/titlesec.el: New file. + +2016-12-29 Arash Esbati + + Add new style/titleps.el + + * Makefile.in (STYLESRC): Add new style. + + * style/titleps.el: New file. + +2016-12-29 Arash Esbati + + Add new style/mdframed.el + + * Makefile.in (STYLESRC): Add new style. + + * style/mdframed.el: New file. + +2016-12-29 Arash Esbati + + Add new tcolorbox library style/tcolorboxlib-raster.el + + * Makefile.in (STYLESRC): Add new style. + + * style/tcolorboxlib-raster.el: New file. + +2016-12-29 Arash Esbati + + Update style/tcolorbox.el to package v3.96 + + * style/tcolorbox.el: Update style to package v3.96. + +2016-12-29 Arash Esbati + + Query for optional float position + + * style/newfloat.el (LaTeX-newfloat-auto-cleanup): Query for + optional float position. + +2016-12-29 Arash Esbati + + Improve inserting arguments of \captionof macro + + * style/caption.el (LaTeX-arg-caption-captionof): New function + improving query and insert of caption and label acc. to float + type. + ("caption"): Use it. + +2016-12-29 Mosè Giordano + + Fix documentation of TeX-arg-file + + * doc/auctex.texi (Adding Macros): `TeX-arg-file' does not strip + extension. Reported by Tyler Smith. Fixes bug#24444. + +2016-12-26 Uwe Brauer + + Make AUCTeX and RefTeX aware of file loading macro \subfile + + * style/subfiles.el ("subfiles"): Make subfile macro be recognized + as a paragraph command. For AUCTeX, add argument of subfile to + `TeX-auto-file'. For RefTeX, append subfile to + `reftex-include-file-commands' and run `reftex-compile-variables' + only once. Code rearrangement. + +2016-12-24 Mosè Giordano + + Print only first line of the message in error overview + + * tex-buf.el (TeX-error-overview-make-entries): Use `push' in place of + `add-to-list'. Print only the first line of the message. + +2016-12-23 Arash Esbati + + Mention improvements to `LaTeX-array-count-columns' in news + + * doc/changes.texi: Mention improvements to + `LaTeX-array-count-columns' in news since 11.89. + +2016-12-23 Arash Esbati + + Extend test for new column counting code with style files loaded + + * tests/latex/tabular-count-ampersands-out.tex: + * tests/latex/tabular-count-ampersands-in.tex: Add tests for + tabularx, tabulary, longtable, dcolumn, siunitx constructs. + + * tests/latex/latex-test.el + (LaTeX-count-ampersands-inserted-in-tabular): Set `TeX-parse-self' + to t in order to load style files in the test. Thanks to Mosè + Giordano for enabling this feature. + +2016-12-22 Arash Esbati + + Update style/minted.el to package version 2.4.1. + + * style/minted.el (LaTeX-minted-key-val-options): Add new key=vals + from package version 2.4.1. + (LaTeX-minted-key-val-options-local): New variable. + (LaTeX-minted-language-list): Set the variable + `LaTeX-minted-language-list' after the first call of function. + (LaTeX-minted-style-list): New variable. + (LaTeX-minted-style-list): New function analogous to + `LaTeX-minted-language-list' returning styles provided by + pymentize program. + (LaTeX-arg-minted-style): New function to insert styles provided + by pymentize program into buffer. + (LaTeX-minted-update-key-vals): New function to update key=vals in + `LaTeX-minted-key-val-options-local'. + (LaTeX-minted-auto-cleanup): Call `LaTeX-minted-update-key-vals'. + ("minted"): Use `LaTeX-minted-key-val-options-local' for all + key=val queries. Update macros incl. fontification. Run style + hook for `newfloat' when package option is given. + +2016-12-22 Tassilo Horn + + Uniform font-lock updates/don't break prettify (bug#25245) + + * font-latex.el (font-latex-update-font-lock): New function. + (font-latex-add-keywords): Use it. + (font-latex-after-hacking-local-variables): Use it. + * style/alltt.el: Use font-latex-update-font-lock. + * style/beamer.el: Ditto. + * style/comment.el: Ditto. + * style/expl3.el: Ditto. + * style/fancyhdr.el: Ditto. + * style/fancyvrb.el: Ditto. + * style/listings.el: Ditto. + * style/minted.el: Ditto. + * style/url.el: Ditto. + +2016-12-22 Mosè Giordano + + Fix to TeX-add-local-master + + * tex.el (TeX-add-local-master): Parse local variables again after + calling the mode function, which killed local variables. + +2016-12-21 Mosè Giordano + + Add style/ directory to TeX-style-path for tests + + * tests/latex/latex-test.el: Add our "style/" directory `TeX-style-path' + to make it possible to load style files inside tests. + +2016-12-20 Mosè Giordano + + * tex.el (TeX-add-local-master): Inherit major mode from master file. + +2016-12-19 Arash Esbati + + Mention that arguments to *-operator must be in braces + + * doc/auctex.texi (Tabular-like): Mention that the new code for + counting columns in *{num}{cols} expects num and cols to be + enclosed in braces. + +2016-12-19 Arash Esbati + + Add test for new column counting code + + * tests/latex/tabular-count-ampersands-out.tex: + * tests/latex/tabular-count-ampersands-in.tex: New files. + + * tests/latex/latex-test.el + (LaTeX-count-ampersands-inserted-in-tabular): Test new column + counting code in `LaTeX-array-count-columns'. + +2016-12-19 Arash Esbati + + Count *-operator in column specification + + * latex.el (LaTeX-array-count-columns): Detect *-operator in + column specification and count the arguments for final calculation + of columns. Thanks to Ikumi Keita for pointing out this + deficiency and code to fix it. + +2016-12-19 Arash Esbati + + Add new style/dcolumn.el + + * Makefile.in (STYLESRC): Add new style. + + * style/dcolumn.el: New file. + +2016-12-19 Arash Esbati + + Accept non-letter characters as column specifier + + * style/array.el (LaTeX-array-newcolumntype-regexp): Accept + non-letter characters as column specifier. + +2016-12-17 Arash Esbati + + Use `LaTeX-item-longtable' while inserting longtable's + + * style/longtable.el (LaTeX-longtable-skipping-regexp): New variable. + (LaTeX-item-longtable): New function. This function is a + variation of `LaTeX-item-array' which uses + `LaTeX-longtable-skipping-regexp' when inserting ampersands. + ("longtable"): Append longtable to `LaTeX-item-list'. + +2016-12-17 Arash Esbati + + Add "s" and "S" to `LaTeX-array-column-letters' + + * style/siunitx.el ("siunitx"): Add column specification letters + "s" and "S" to `LaTeX-array-column-letters'. + +2016-12-17 Arash Esbati + + Append tabular[xy] to `LaTeX-item-list' + + * style/tabulary.el ("tabulary"): + * style/tabularx.el ("tabularx"): Append tabularx and tabulary to + `LaTeX-item-list'. + +2016-12-06 Arash Esbati + + Support RefTeX with `reftex-add-index-macros' in style/splitidx.el + + * style/splitidx.el ("splitidx"): Support RefTeX with + `reftex-add-index-macros' and not by appending macros to + `reftex-index-macros'. + +2016-12-06 Arash Esbati + + Support RefTeX with `reftex-add-label-environments' in style/mathtools.el + + * style/mathtools.el (LaTeX-mathtools-auto-cleanup, "mathtools"): + Support RefTeX with `reftex-add-label-environments' and not by + appending environments to `reftex-label-alist'. + ("mathtools"): Add fontification support for referencing macros. + +2016-12-06 Arash Esbati + + Support RefTeX with `reftex-add-label-environments' in style/empheq.el + + * style/empheq.el ("empheq"): Support RefTeX with + `reftex-add-label-environments' and not by appending environments + to `reftex-label-alist'. + +2016-12-05 Arash Esbati + + Fix query for defined colors in style/textpos.el + + * style/textpos.el ("textpos"): Use `cond' to check which color + defining package is loaded and use the respective function for + `completing-read'. + +2016-12-05 Arash Esbati + + Fix query for defined colors in style/ntheorem.el + + * style/ntheorem.el ("ntheorem"): Use `cond' to check which color + defining package is loaded and use the respective function for + `completing-read'. + +2016-11-30 Arash Esbati + + Add support for LaTeX core command \textsubscript + + * font-latex.el (font-latex-built-in-keyword-classes): + * latex.el (LaTeX-common-initialization): Add entry for + "textsubscript" which is in LaTeX core since 2015/01/01. + +2016-11-28 Arash Esbati + + Do not spell-check arguments of \LTXtable + + * tex-ispell.el (TeX-ispell-skip-cmds-list): Add entry for + \LTXtable. + +2016-11-28 Arash Esbati + + Add \LTXtable to list of file-loading commands + + * style/ltxtable.el (LaTeX-ltxtable-file-regexp): New variable. + ("ltxtable"): Make AUCTeX and RefTeX aware of \LTXtable as file + loading command. + Add fontification support. + +2016-11-25 Arash Esbati + + Support new floats defined with newfloat package + + * style/caption.el (LaTeX-caption-update-key-val-options): Append + new floating environments defined with "newfloat.sty" as values to + "type*?" keys in `LaTeX-caption-key-val-options-local'. + +2016-11-25 Arash Esbati + + Append entry to `LaTeX-label-alist' for new "verbatim" floats + + * style/newfloat.el (LaTeX-newfloat-auto-cleanup): Append an entry + for parsed environments of "verbatim" type to `LaTeX-label-alist'. + +2016-11-24 Arash Esbati + + Insert \label inside the mandatory argument of \caption + + * style/longtable.el ("longtable"): Append \label at the end of + caption text inside the mandatory argument. + (LaTeX-longtable-package-options): New variable to suppress the + query for package options. + +2016-11-24 Uwe Brauer + + Add style file for subfiles package. + + * Makefile.in (STYLESRC): add subfiles.el entry + + * style/subfiles.el ("subfiles"): add new style. + +2016-11-23 Mosè Giordano + + Min fix to kpfonts package + + * style/kpfonts.el ("kpfonts"): Move setting of `TeX-font-list' inside + the hook. + +2016-11-23 Mosè Giordano + + Add style file for amsfonts package + + * style/amsfonts.el: New file. + * Makefile.in (STYLESRC): Install it. + * style/amssymb.el ("amssymb"): Run `amsfonts' hook. + +2016-11-21 Arash Esbati + + Add new style/bicaption.el + + * Makefile.in (STYLESRC): Add new style. + + * style/bicaption.el: New file. + +2016-11-21 Arash Esbati + + Add support for style/bicaption.el to style/caption.el + + * style/caption.el (LaTeX-caption-supported-float-types): Add + supported caption types available with bicaption.el. + ("caption"): Append key=vals from bicaption.el to + `LaTeX-caption-key-val-options-local'. + ("caption"): Query for a second optional argument with + \captionsetup*? if bicaption.el is loaded. Same for + fontification. + +2016-11-21 Arash Esbati + + Do not insert a new line if \label is omitted + + * style/subcaption.el (LaTeX-arg-subcaption-subcaption): Insert a + new line only if \label is given. + +2016-11-18 Arash Esbati + + Improve caption and label insertion in style/caption.el + + * style/caption.el (LaTeX-caption-key-val-options): Add key slc + which is an abbrev for singlelinecheck. + (LaTeX-arg-caption-captionbox): Delete unused prompt argument. + Ask for short caption acc. to the value of + `LaTeX-short-caption-prompt-length'. Use `LaTeX-label' instead of + `TeX-insert-macro' to insert a label. Use `TeX-argument-insert' + instead of conditional insert. + ("caption"): Do not fontify the last argument of \captionbox. + Fontification happens within \begin...\end{tabular} or + \includegraphics. + +2016-11-18 Arash Esbati + + Improve caption and label insertion in style/subcaption.el + + * style/subcaption.el (LaTeX-arg-subcaption-subcaption): Delete + unused prompt argument. Ask for short caption acc. to the value + of `LaTeX-short-caption-prompt-length'. Fill the inserted + sub-caption before using `LaTeX-label' to insert the label. + (LaTeX-arg-subcaption-subcaptionbox): Delete unused prompt + argument. Ask for short caption acc. to the value of + `LaTeX-short-caption-prompt-length'. Use `LaTeX-label' to insert + the label. Use `TeX-argument-insert' instead of conditional + insert. + ("subcaption"): Append package environments to `LaTeX-label-alist'. + ("subcaption"): Do not fontify the last argument of + \subcaptionbox. Fontification happens within + \begin...\end{tabular} or \includegraphics. + +2016-11-16 Arash Esbati + + Add new style/FiraSans.el + + * Makefile.in (STYLESRC): Add new style. + + * style/FiraSans.el: New file. + +2016-11-16 Arash Esbati + + Add new style/FiraMono.el + + * Makefile.in (STYLESRC): Add new style. + + * style/FiraMono.el: New file. + +2016-11-14 Mosè Giordano + + Suggest to display warnings when there are no errors in error overview + + * tex-buf.el (TeX-error-overview): When there are no errors, suggest to + display warnings and bad boxes, if present. Fixes bug #24877. + +2016-11-04 Tassilo Horn + + Refresh font-latex fontification if vars are modified + + Refresh font-latex fontification if variables such as + LaTeX-verbatim-*-local are set in a file-local variables block or as + directory-local variables (bug#24868). + + * font-latex.el (font-latex-after-hacking-local-variables): New function. + (font-latex-setup): Add it do hack-local-variables-hook. + * tex.el (TeX--list-of-string-p): New function. + * latex.el (LaTeX-verbatim-environments-local): + (LaTeX-verbatim-macros-with-braces-local): + (LaTeX-verbatim-macros-with-delims-local): Use it for + safe-local-variable property. + +2016-11-02 Arash Esbati + + Update style/natbib.el to package version 8.31b + + * style/natbib.el ("natbib"): Add missing macros to catch up with + package version 8.31b. Rearrange code. + (LaTeX-arg-natbib-notes): Remove redundant check if + `TeX-arg-cite-note-p' is non-nil. + +2016-10-17 Tassilo Horn + + Make Copyright headers conforming to convention + +2016-10-17 Arash Esbati + + Do not insert unnecessary brackets for citation macros + + * style/natbib.el (LaTeX-arg-natbib-notes): Rename function name + from `natbib-note-args'. + Improve the insertion of arguments in order not to have an empty + pair of brackets when both pre- and post-note are omitted. + ("natbib"): Replace occurrence of `natbib-note-args' with + `LaTeX-arg-natbib-notes'. + +2016-10-17 Arash Esbati + + Use `TeX-argument-insert' instead of conditional `insert' + + * style/biblatex.el (LaTeX-arg-biblatex-natbib-notes): Use + `TeX-argument-insert' instead of `insert' for arguments + insertion. + +2016-10-16 Arash Esbati + + Add support for natbib macros to style/biblatex + + * style/biblatex.el (LaTeX-arg-biblatex-natbib-notes): New + function. + ("biblatex"): Add completion and fontification support for natbib + compatibility macros. + +2016-10-14 Tassilo Horn + + Manually merge changes that were only on the elpa branch + +2016-10-13 Tassilo Horn + + Fix TeX--if-macro-fboundp edebug spec + + * tex.el (TeX--if-macro-fboundp): Fix broken edebug spec. + +2016-09-27 Mosè Giordano + + Fix to my previous commit + + * tex-buf.el (TeX-BibTeX-sentinel): Fix misplaced `setq', it was inside + the `cond' form while it should have been outside. + +2016-09-19 Tassilo Horn + + Improve docs added/changed in last commit + + * doc/auctex.texi (Display): Rewrite WYSIWYG paragraph and add + references. + (Fontification of math): Switch order in which multi-level and invisible + are introduced. Fix misplaced @xref. + +2016-09-19 Uwe Brauer + + Add information about prettify and semi WYSIWYG features. + + * doc/auctex.texi (Display): Add a sentence about + prettify-symbols-unprettify-at-point. + (Fontification of math): add `invisible' to + `font-latex-fontify-script'. + +2016-09-18 Tassilo Horn + + Don't require \end{env} is on a separate line + + * font-latex.el (font-latex-make-user-keywords): + (font-latex-set-syntactic-keywords): Don't require that \end{env} is on + a line of its own. Also allow empty mandatory argument in verbatim + environments. + +2016-09-18 Mosè Giordano + + Fix default command after running BibTeX with warnings + + * tex-buf.el (TeX-BibTeX-sentinel): Always set `TeX-command-next' to + `TeX-command-default'. As it was before, if BibTeX issued + warnings (or errors) the default next command would have been "View", + which is in no case what the user would expect. This is the same + logic used in Biber sentinel (which has, in addition, a fatal error + after which Biber is run again). + +2016-09-18 Tassilo Horn + + Improve font-locking of verbatim environments + + * font-latex.el (font-latex-set-syntactic-keywords): Handle case where + verbatim content immediately follows \begin{verb-env}. + +2016-09-17 Uwe + + Improve style/bidi and add make file entry. + + * Makefile.in (STYLESRC): add bidi.el + + * style/bidi.el ("bidi"): New file. + +2016-09-17 Arash Esbati + + Improve style/graphicx.el + + * doc/changes.texi: Document the changes about graphicx.el. + + * tex-style.el (LaTeX-includegraphics-options-alist): Remove the + now no-op variable. + + * style/graphics.el ("graphics"): Set + `LaTeX-graphics-package-options' after running hooks for + graphicx.el. + + * style/graphicx.el (LaTeX-graphicx-key-val-options) + (LaTeX-includegraphics-dvips-extensions) + (LaTeX-includegraphics-pdftex-extensions) + (LaTeX-includegraphics-xetex-extensions) + (LaTeX-graphicx-package-options): New variables. + (LaTeX-arg-graphicx-includegraphics-key-val): New function. + (LaTeX-includegraphics-extensions): Return extensions for input + files depending on the used engine. + (LaTeX-arg-includegraphics): Only query for the image file to + include. The query for the optional key-val argument is now done + by `LaTeX-arg-graphicx-includegraphics-key-val'. + ("graphicx"): Extend the query for commands \resizebox[*]. + Commands shared with graphics.el are guarded respectively. + Add missing commands \graphicspath, \DeclareGraphicsExtensions and + \DeclareGraphicsRule. + +2016-09-14 Stefan Monnier + + Cherry-pick 9c24759a96f41e288841ec2e815d62d58dc01e7a from elpa branch + + * tex-ispell.el (TeX-ispell-sort-skip-cmds-list): Drop symbol-value + + * tex-site.el.in (TeX-modes): Use #'. + +2016-09-04 Mosè Giordano + + Do not use a function from cl + + * tex-buf.el (TeX-parse-TeX): Do not use the `signum' function, provided + by `cl' library. + +2016-09-02 Mosè Giordano + + Fix type of ConTeXt-Mark-version option + + * context.el (ConTeXt-Mark-version): Fix the type, it was wrongly set + with a string in place of a symbol. Reported by Tobias Berndt. + +2016-09-01 Arash Esbati + + Add new style/menukeys.el + + * Makefile.in (STYLESRC): Add new style. + + * style/menukeys.el: New file. + +2016-09-01 Arash Esbati + + Add new style/paracol.el + + * Makefile.in (STYLESRC): Add new style. + + * style/paracol.el: New file. + +2016-09-01 Arash Esbati + + Add new style/framed.el + + * Makefile.in (STYLESRC): Add new style. + + * style/framed.el: New file. + +2016-08-31 Arash Esbati + + Use `TeX-ispell-skip-setcar' on user defined index macros + + * style/splitidx.el (LaTeX-splitidx-newindex-regex): Replace wrong + `^}' with `^]'. + (LaTeX-splitidx-auto-cleanup, "splitidx"): Use + `TeX-ispell-skip-setcar' on user defined index macros. + +2016-08-31 Arash Esbati + + Use `TeX-ispell-skip-setcdr' on user defined listing environments + + * style/listings.el (LaTeX-listings-auto-cleanup): Use + `TeX-ispell-skip-setcdr' on user defined lists. + +2016-08-31 Arash Esbati + + Use `TeX-ispell-skip-setcdr' on user defined list environments + + * style/enumitem.el (LaTeX-enumitem-auto-cleanup): Use + `TeX-ispell-skip-setcdr' on user defined lists. + ("enumitem"): Use `TeX-ispell-skip-setcdr' on user defined lists. + Use `TeX-argument-insert' instead of `insert'. + +2016-08-25 Ikumi Keita + + Revise document for Japanese TeX + + Revise document for Japanese TeX + * doc/auctex.texi (Language Support): Fix old statements. Mention + about (semi-)obsolete variables japanese-(La)TeX-command-default, + japanese-TeX-command-list and recommend to use + japanese-TeX-engine-default instead. + +2016-08-25 Ikumi Keita + + Add a Japanese error message translation + + * tex-jp.el (TeX-error-description-list): Add a Japanese error + message translation. + +2016-08-25 Ikumi Keita + + Set the right coding systems for Japanese TeX process + + Set the right coding systems for Japanese TeX process + + * tex-jp.el: + (LaTeX-command-style): Remove kanji option from uplatex and jlatex, + which was there by mistake. + (TeX-japanese-process-input-coding-system, + TeX-japanese-process-output-coding-system, + japanese-TeX-set-process-coding-system): The coding systems for + interacting with Japanese TeX vary with the OS and other + circumstances. So choose the suitable coding system at run time + rather than using the fixed values. + (japanese-TeX-use-kanji-opt-flag): Declare before the first use. + In addition, change default value and tailor doc string as per the + above change. + (japanese-TeX-coding-ejsu): Add coding system compatible for emacs + 21 and xemacs. + +2016-08-24 Mosè Giordano + + Make TeX-previous-error go backward + + * tex-buf.el (TeX-parse-TeX): Decrease `TeX-error-last-visited' when + `arg' is negative. This fixes the behavior of `TeX-previous-error'. + +2016-08-23 Arash Esbati + + Update style/mathtools.el to v1.18 of mathtools.sty + + * style/mathtools.el (LaTeX-mathtools-package-options): Add + "nonrobust" option. + (LaTeX-mathtools-key-val-options): Add missing key=vals. Insert a + period in doc string. + (LaTeX-mathtools-arg-mathstyle-completion) + (LaTeX-mathtools-arg-mathsize-completion) + (LaTeX-mathtools-arg-declarepaireddelimiter) + (LaTeX-mathtools-env-cases) + (LaTeX-mathtools-item-cases): New functions. + (LaTeX-mathtools-env-multlined): Add an empty pair of square + brackets if only the second optional argument is given. + ("mathtools"): Update commands and environments in style hook. + (LaTeX-mathtools-env-matrix-starred) + (LaTeX-mathtools-env-spreadlines): Delete functions. Use + ["string"] when adding environments in `LaTeX-add-environments'. + +2016-08-21 Mosè Giordano + + Fold environments with * in name + + * tex-fold.el (TeX-fold-item): Add asterisk to the regexp matching LaTeX + environment names. Fixes bug#24263. + +2016-08-21 Mosè Giordano + + Remove obsolete TeX-function-p function + + * tex.el (TeX-function-p): Remove this function. It was introduced here + in AUCTeX in 1994, but is present in Emacs since 1997 as well, under + the name `functionp'. Fixes bug#24245. + * tex-buf.el (TeX-command-expand): Replace `TeX-function-p' with + `functionp'. + +2016-08-14 Arash Esbati + + Add new style/empheq.el + + * Makefile.in (STYLESRC): Add new style. + + * style/empheq.el: New file. + +2016-08-10 Arash Esbati + + Add new style/commath.el + + * Makefile.in (STYLESRC): Add new style. + + * style/commath.el: New file. + +2016-08-02 Arash Esbati + + Add new style/pdflscape.el + + * Makefile.in (STYLESRC): Add new style. + + * style/pdflscape.el: New file. + +2016-07-22 Arash Esbati + + Document interaction with Ispell + + * doc/auctex.texi (Selecting a Command): Document interaction with Ispell. + +2016-07-18 Arash Esbati + + Add new spell checking dictionary tex-ispell.el + + * doc/todo.texi (Wishlist): Remove spell checking of macros from + wish list. + + * doc/changes.texi: Mention new file tex-ispell.el in news since + 11.89. + Fix typo. + + * Makefile.in (AUCSRC): Add tex-ispell.el. + + * latex.el (tex-ispell): Require tex-ispell.el. + + * tex.el (TeX-ispell-extend-skip-list): New customizable variable. + (TeX-ispell-skip-setcar, TeX-ispell-skip-setcdr): New functions. + (TeX-ispell-tex-arg-end): New function. + + * tex-ispell.el: Add new file. + +2016-07-08 Arash Esbati + + Reset `LaTeX-auto-xcolor-definecolorset' before parsing + + * style/xcolor.el (LaTeX-xcolor-auto-prepare): Reset + `LaTeX-auto-xcolor-definecolorset' before parsing. + Improve comments. + +2016-07-08 Arash Esbati + + Fix doc string for curve quoting style in Emacs 25 + + * style/theorem.el (LaTeX-theorem-env-label): + * style/ntheorem.el (LaTeX-ntheorem-env-label): + * style/amsthm.el (LaTeX-amsthm-env-label): Fix doc string for new + text quoting style in Emacs 25. + +2016-06-29 Arash Esbati + + Catch up with deletion of \commondummies in texinfo.tex + + * doc/macros.texi: Catch up with deletion of \commondummies in + texinfo.tex which is replaced with \definedummies. Check which + command is defined and add AUCTeX definitions respectively. + +2016-06-28 Masayuki Ataka (tiny change) + + Fix to doc/auctex.texi + + * doc/auctex.texi (Prettifying): Insert missing '{}'. + +2016-06-27 Mosè Giordano + + Change test for PDF Tools availability + + * tex.el (TeX-pdf-tools-sync-view): Change test for PDF Tools + availability, in order to make it possible to postpone loading of the + package, for example when using "use-package". Fixes bug#23803. + +2016-06-11 Tassilo Horn + + More about TeX-raise-frame-function + + * doc/auctex.texi (I/O Correlation): Improve TeX-raise-frame-function + docs. + * doc/changes.texi: Mention TeX-raise-frame-function. + * tex.el (TeX-raise-frame-function): Use raise-frame as default value. + +2016-06-11 Tassilo Horn + + Document TeX-raise-frame-function + + * doc/auctex.texi (I/O Correlation): Document TeX-raise-frame-function. + +2016-06-10 Tassilo Horn + + New defcustom TeX-raise-frame-function + + * tex.el (TeX-raise-frame-function): New defcustom. + (TeX-source-correlate-sync-source): Use it. + +2016-06-04 Uwe Brauer + + Document how to disable filling for specific environments + + * latex.el (LaTeX-indent-environment-list): Mention in docstring that + environments listed here are not filled. + (LaTeX-fill-region-as-paragraph): Add information to the docstring + concerning excluding enviroments from that function by using + `LaTeX-indent-environment-list'. Suggested by Uwe Brauer. + +2016-05-31 Mosè Giordano + + Fix compatibility with GNU Emacs < 24 + + * tex.el (TeX-source-correlate-sync-source): Call `x-focus-frame' only + when it is available. + +2016-05-29 Tassilo Horn + + Grab focus on Evince inverse search + + * tex.el (TeX-source-correlate-sync-source): Call `x-focus-frame'. + +2016-05-29 Tassilo Horn + + Don't use non-existing custom-buffer-done-function + + * tex-wizard.el (TeX-wizard): Use `kill-buffer-hook' and + `custom-buffer-done-kill' instead of `custom-buffer-done-function' which + has been removed from Emacs a long time ago. + +2016-05-27 Tassilo Horn + + Docs for prettification with Emacs 25+ + + * doc/auctex.texi (Prettifying): Document prettification. + +2016-05-27 Stefan Monnier + + Fix byte-compiler warnings. + + * context.el: Fix some byte-compiler warnings. + * tex-buf.el: Ditto. + * tex-jp.el: Ditto. + * tex-mik.el: Ditto. + * toolbar-x.el: Ditto. + +2016-05-24 Tassilo Horn + + Fix copyright header of tex-jp.el + + * tex-jp.el: Fix Copyright and Author headers. + +2016-05-22 Tassilo Horn + + Convert ChangeLog.1 to UTF-8 + + * ChangeLog.1: Convert to UTF-8 and adjust encoding cookie. + +2016-05-22 Tassilo Horn + + Make ChangeLog UTF-8 + + * ChangeLog-preview.1: Convert to UTF-8. + * build-aux/gitlog-to-auctexlog: Remove iconv call for converting + ChangeLog to ISO-8859-1. + +2016-05-21 Mosè Giordano + + Append environment indentation rules to LaTeX-indent-environment-list + + * style/alltt.el ("alltt"): Append indentation rule to + `LaTeX-indent-environment-list' in order not to override custom + settings. Reported by François Patte. + * style/beamer.el ("beamer"): Ditto. + * style/doc.el ("doc"): Ditto. + * style/fancyvrb.el ("fancyvrb"): Ditto. + * style/filecontents.el ("filecontents"): Ditto. + * style/hyperref.el ("hyperref"): Ditto. + * style/listings.el (LaTeX-listings-auto-cleanup, "listings"): Ditto. + * style/longtable.el ("longtable"): Ditto. + * style/minted.el (LaTeX-minted-auto-cleanup, "minted"): Ditto. + * style/tabularx.el ("tabularx"): Ditto. + * style/tabulary.el ("tabulary"): Ditto. + +2016-05-18 Arash Esbati + + Respect both "xcolor" and "color" for command queries + + * style/textpos.el ("textpos"): Remove "color" from + `TeX-run-style-hooks'. + ("textpos"): Respect both "xcolor" and "color" for query to + "textblockcolour" and "textblockrulecolour" commands. + +2016-05-18 Arash Esbati + + Respect both "xcolor" and "color" for query to "shadecolor" + + * style/ntheorem.el ("ntheorem"): Respect both "xcolor" and + "color" for query to "shadecolor" command. + +2016-05-18 Arash Esbati + + Adjust query commands for loading by xcolor.el + + * style/colortbl.el ("colortbl"): Run style hook for "color" only + if "xcolor" is not an active style. + ("colortbl"): Check if "xcolor" is an active style and run + (TeX-arg-xcolor) or (TeX-arg-color) respectively to query for the + arguments. + +2016-05-18 Arash Esbati + + Run `TeX-add-symbols' if "xcolor" is not an active style + + * style/color.el ("color"): Check if "xcolor" is an active style + and then run `TeX-add-symbols' on commands defined by "color.sty" + and add fontification support. + +2016-05-18 Arash Esbati + + Add new style/xcolor.el + + * Makefile.in (STYLESRC): Add new style xcolor.el. + + * style/xcolor.el: Add new file. + +2016-05-15 Tassilo Horn + + Make TeX-view work better with regions + + * tex-buf.el (TeX-region-update-point): New function which sets point in + the region buffer so that it matches the location of point in the + current buffer. + (TeX-view): Use it. + +2016-05-14 Arash Esbati + + Improve the insertation of "macro" environment + + * style/doc.el (LaTeX-env-no-comment): Check if argument + `environment' is "macro" and query/insert a name prefixed with + `TeX-esc'. + (LaTeX-doc-after-insert-macrocode): Add "macro" environment. + ("doc"): Run `LaTeX-env-no-comment' when "macro" environment is + inserted. + +2016-05-14 Mosè Giordano + + Use commit date for package date also in configure + + * aclocal.m4 (AC_DATE_VERSION_FROM_CHANGELOG): Use commit date rather + than author date. + +2016-05-14 Ikumi Keita + + Tweak mode name only when file local variable is enabled. + + * tex-jp.el (japanese-plain-tex-mode-initialization) + (japanese-latex-mode-initialization): Tweak mode name only + when `enable-local-variables' is non-nil. + +2016-05-12 Ikumi Keita + + Adapt for upLaTeX + + * tex-buf.el (TeX-LaTeX-sentinel): Accept banner line of upLaTeX. + * tex-jp.el (japanese-LaTeX-style-list): Add class file for upLaTeX. + * tex.el (TeX-format-list): Make upLaTeX class file names lead to + `japanese-latex-mode'. + +2016-05-09 Mosè Giordano + + Do not check TeX engine with ifluatex package + + * style/ifluatex.el ("ifluatex"): Set `TeX-check-engine-list' to nil so + that the engine is not checked when this package is loaded. + +2016-05-09 Mosè Giordano + + Check TeX engine only once + + * tex-buf.el (TeX-check-engine): If user does not want to change engine, + do not ask again. Suggested by Joost Kremers. + +2016-05-09 Mosè Giordano + + Use commit date to determine package date + + * autogen.sh (AUCTEXDATE): Use commit date, rather than author date, to + determine package date. + +2016-05-09 Arash Esbati + + Insert braces after some macros and \relax after \ProcessOptions + + * style/ltx-base.el ("ltx-base"): Insert a pair of braces after + "DeclareOption*", "AtEndOfPackage", "AtEndOfClass", + "AtBeginDocument" and "AtEndDocument". + Insert a "\relax" after "ProcessOptions". + +2016-05-09 Arash Esbati + + Improve style/doc.el + + * style/doc.el ("doc"): Do not indent the content inside the "macro" + environment. + Insert a pair of braces after "DoNotIndex", "StopEventually", + "MacroFont", "AltMacroFont". + Prefix the string read with TeX-esc when inserting + "DescribeMacro", "cmd". + Ask for an argument ("parg", "oarg", "marg", "meta"). + Add missing macro "cs". + Delete dups ("MacroFont", "AltMacroFont", "theCodelineNo"). + Ask for .fdd and .dtx files to input or include ("DocInput", + "DocInclude"). + Add lengths "MacrocodeTopsep", "MacroTopsep", "MacroIndent". + +2016-05-06 Mosè Giordano + + Allow for negative offsets in region backward search + + * tex.el (TeX-source-correlate-handle-TeX-region): Use the same regexp + used in `preview-parse-messages', that is also XEmacs compatible and + allows for negative offsets. This makes backward search work also + when using `TeX-command-buffer' and `LaTeX-command-section'. Reported + by Qiang Yin. + +2016-04-28 Ikumi Keita + + Enable directory local variables in japanese-{latex, plain-tex}-mode + + * tex-jp.el (japanese-latex-mode-initialization): Set + `major-mode' to `japanese-latex-mode' and reset it to + `latex-mode' after `hack-local-variables' is done. + (japanese-plain-tex-mode-initialization): Similar changes + for `japanese-plain-tex-mode'. + (japanese-TeX-reset-mode-name): New function. + (top-level) Make `latex-mode' is regarded as parent of + `japanese-latex-mode' in directory local variables. Similar + addition for `japanese-plain-tex-mode', too. + +2016-04-23 Ikumi Keita + + Make unloading of tex-site work on Emacs 24 + + * tex-site.el.in (tex-site-unload-hook): Run `TeX-modes-set' when + `advice-add' is defined. + +2016-04-20 Mosè Giordano + + Fix TeX-error-overview-make-entries + + * tex-buf.el (TeX-error-overview-make-entries): Add `active-buffer' + optional argument. If `TeX-error-overview-open-after-TeX-run' is + non-nil and there is an error, TeX sentinels run this function but + `TeX-error-overview-active-buffer' hadn’t been initialized yet. Fixes + bug#23318. + +2016-04-19 Mosè Giordano + + Call TeX-newline-function interactively + + * tex.el (TeX-newline): Replace `funcall' with `call-interactively'. + This makes `electric-indent-mode' work out-of-the-box. Suggested by + alex (http://comments.gmane.org/gmane.emacs.auctex.devel/4631). + +2016-04-19 Ikumi Keita + + Temporarily bind `TeX-insert-macro-default-style' to 'show-optional-args' + + * latex.el (LaTeX-item-argument): Temporarily bind + `TeX-insert-macro-default-style' to 'show-optional-args'. + This is necessary in description environment if the user customize the + option to `mandatory-args-only'. + +2016-04-17 Mosè Giordano + + Reword documentation of TeX-PDF-from-DVI + + * doc/auctex.texi (Processor Options): Make information about Japanese + documents more accurate. Suggested by Ikumi Keita. + +2016-04-16 Mosè Giordano + + Replace TeX-PDF-via-dvips-ps2pdf with TeX-PDF-from-DVI + + * tex.el (TeX-command-list): Add Dvipdfmx. + (TeX-expand-list-builtin): Use `TeX-PDF-from-DVI' in place of + `TeX-PDF-via-dvips-ps2pdf'. + (TeX-PDF-from-DVI): New safe buffer-local and customizable variable. + (TeX-PDF-via-dvips-ps2pdf): Mark as obsolete. + (TeX-toggle-PDF-via-dvips-ps2pdf): Remove function. + (TeX-PDF-from-DVI): New function. + (TeX-mode-specific-command-menu-entries): Update menu to convert DVI to + PDF. + * tex-buf.el (TeX-command-default, TeX-run-set-command, + TeX-TeX-sentinel, TeX-TeX-sentinel-check, TeX-LaTeX-sentinel, + TeX-dvips-sentinel, TeX-ps2pdf-sentinel): Use `TeX-PDF-from-DVI' in + place of `TeX-PDF-via-dvips-ps2pdf'. + (TeX-run-dvipdfmx, TeX-dvipdfmx-sentinel): New function. + (): + * doc/auctex.texi (Processor Options): Document `TeX-PDF-from-DVI' and + remove mentions to `TeX-PDF-via-dvips-ps2pdf' + * doc/changes.texi: Mention `TeX-PDF-from-DVI'. + +2016-04-16 Ikumi Keita + + Use customize option `TeX-region' instead of "_region_" + + * tex-buf.el (TeX-output-revert-buffer): Use customize option + `TeX-region' instead of string literal "_region_". + +2016-04-16 Ikumi Keita + + Use `deactivate-input-method' if defined + + * tex.el (TeX-math-input-method-off): Use `deactivate-input-method' + instead of obsolete function `inactivate-input-method' when possible. + +2016-04-16 Ikumi Keita + + Use `match-string-no-properties' + + * texmathp.el (texmathp, texmathp-match-environment): For better + consistency with other parts of the file, change `match-string' to + `no-properties' variant. + +2016-04-16 Ikumi Keita + + Fix small errors in doc string and comment + + * tex.el (TeX-auto-add-type): Change the word `function' to `macro' + and add an `s' to the verb `create'. + + * tex-buf.el (TeX-run-format): Correct a typo `debuger' to `debugger'. + +2016-04-14 Mosè Giordano + + Fix in TeX sentinels + + * tex-buf.el (TeX-TeX-sentinel, TeX-LaTeX-sentinel): Use + `TeX-error-overview-make-entries' to test presence of errors or + warnings. This is the same test carried in `TeX-master-directory' and + prevents from getting an error when + `TeX-error-overview-open-after-TeX-run' is non-nil but + `TeX-debug-warnings' and/or `TeX-debug-bad-boxes' are nil. + +2016-04-13 Matthew Leach + + Auto save `TeX-command-extra-options'. + + * tex.el (TeX-auto-store): Save the value of `TeX-command-extra-options' + so it is set project-wide. + +2016-04-13 Matthew Leach + + TikZ: Don't allow relative points with \coordinate. + + * style/tikz.el (TeX-TikZ-point-function-map): Revert back to simple + point alist. + (TeX-TikZ-relative-point-function-map): New. + (TeX-TikZ-draw-arg-function-map): Use + `TeX-TikZ-relative-point-function-map'. + +2016-04-13 Matthew Leach + + TikZ: Add the grid command. + + * style/tikz.el (TeX-TikZ-arg-grid): New. + (TeX-TikZ-draw-arg-function-map): Map the 'Grid' command to + `TeX-TikZ-arg-grid'. + +2016-04-13 Matthew Leach + + Fix a documentation type. + + * doc/auctex.texi (Automatic Local): Fix a documentation typo. + +2016-04-13 Mosè Giordano + + Prevent infinite loop in TeX-command-expand + + * tex.el (TeX-view-command-raw): This function should always return a + string. Throw an error if fails to do so. This prevents an infinite + loop in `TeX-command-expand' in the case in which `command' is nil + because of a malformed viewer specification. + * tests/tex/command-expansion.el (TeX-view-command-raw-errors): Add + tests to trigger errors in `TeX-view-command-raw'. + +2016-04-10 Ikumi Keita + + Integrate viewer support between tex.el and tex-jp.el + + * tex.el (TeX-view-program-list-builtin): Integrate viewer support + between tex.el and tex-jp.el. + * tex-jp.el : Ditto. + +2016-04-09 Mosè Giordano + + Do not use add-to-list for let-bound variable + + * style/tikz.el (TeX-TikZ-find-named-points): Replace add-to-list with + `push'. + +2016-04-09 Mosè Giordano + + Compatibility for XEmacs + + * style/tikz.el (TeX-TikZ-single-macro-arg): Pass `function-alist' to + `TeX-TikZ-get-arg-type` because XEmacs requires an alist as argument + to `completing-read'. + +2016-04-08 Matthew Leach + + TikZ: Remove unneeded function. + + * style/tikz.el (TeX-TikZ-arg-rect-point): Delete. + +2016-04-08 Matthew Leach + + TikZ: Add the 'sin' and 'cos' connectors. + + * style/tikz.el (TeX-TikZ-path-connector-function-map): Add 'sin' and + 'cos' mapping to `identity'. + +2016-04-08 Matthew Leach + + TikZ: Make '+' and '++' prefixes apply to TikZ points + + * style/tikz.el (TeX-TikZ-get-prefix-string): New. + (TeX-TikZ-arg-rect-point): Add optional argument `prefix'. + (TeX-TikZ-arg-polar-point): Likewise. + (TeX-TikZ-arg-named-point): Likewise. + (TeX-TikZ-single-macro-arg): Allow a variable number of arguments to + the argument name function map. + (TeX-TikZ-point-function-map): Prefix all point types with '+' and + '++'. + (TeX-TikZ-path-connector-function-map): Remove the '+' and '++' + suffixes. + +2016-04-04 Matthew Leach + + TikZ: Add parabola command. + + * style/tikz.el (TeX-TikZ-arg-bend): New. + (TeX-TikZ-arg-parabola): New. + (TeX-TikZ-draw-arg-function-map): Add mapping from "Parabola" to + `TeX-TikZ-arg-parabola'. + +2016-04-04 Matthew Leach + + TikZ: Add optional parameter to `TeX-TikZ-single-macro-arg'. + + * style/tikz.el (TeX-TikZ-single-macro-arg): New argument OPTIONAL. + (TeX-TikZ-macro-arg): Use OPTIONAL argument when calling + `TeX-TikZ-single-macro-arg'. + +2016-04-04 Matthew Leach + + TikZ: make `TeX-TikZ-single-macro-arg' prompt required. + + * style/tikz.el (TeX-TikZ-get-arg-type): Make prompt non-optional. + (TeX-TikZ-single-macro-arg): Likewise. + (TeX-TikZ-macro-arg): Make prompt explicit. + +2016-04-04 Matthew Leach + + TikZ: Add the arc command. + + * style/tikz.el (TeX-TikZ-arg-arc): New. + (TeX-TikZ-draw-arg-function-map): Map the 'Arc' command to + `Tex-TikZ-arg-arc'. + +2016-04-04 Matthew Leach + + TikZ: Add circle command. + + * style/tikz.el (TeX-TikZ-arg-circle): New. + (TeX-TikZ-draw-arg-function-map): Add mapping from 'Circle' to + `TeX-TikZ-arg-circle'. + +2016-04-04 Stefan Monnier + + * tex-buf.el: Address some compiler warnings + + Require `latex' since we refer to some of its variables. + Use #' to quote a function. Use _ prefix for unused vars. + (TeX-current-process-region-p, TeX-save-query, TeX-parse-function) + (TeX-sentinel-function, TeX-sentinel-default-function) + (compilation-in-progress, TeX-current-page) + (TeX-error-overview-open-after-TeX-run, TeX-error-list) + (TeX-parse-all-errors, TeX-command-buffer, TeX-region): Declare before + the first use. + (TeX-command-text, TeX-command-pos): Declare as dyn-bound + (TeX-command-expand): Strength reduce `eval' to `symbol-name'. + (TeX-run-TeX): Use let*. + (TeX-sentinel-function, TeX-sentinel-default-function): Put something + in the function's body. + (TeX-TeX-sentinel-check): Check ConTeXt-Mark-version exists before + using it. We could have (require 'context) instead. + (TeX-Biber-sentinel): Remove redundant `concat'. + (TeX-error-description-list): Move before first use. + (TeX-error-overview-mode-map): Remove unused var `menu-map'. + (TeX-output-revert-buffer): Remove unused var `command'. + +2016-04-02 Mosè Giordano + + Fix compatibility with older Emacs versions + + * tex.el: Dynamic determination of `delete-selection' behavior has been + introduced in Emacs 24.3. For previous versions leave + `TeX-insert-dollar' without that property. + +2016-04-01 Mosè Giordano + + Dinamically put delete-selection prop to TeX-insert-dollar + + * tex.el (TeX-insert-dollar): Put `delete-selection' property only when + `TeX-electric-math' is nil. Suggested by Roger Lipsett. Fixes + bug#23177. + +2016-03-30 Mosè Giordano + + Restore compatibility with XEmacs + + * tex-buf.el (TeX-format-filter): Use `memq' in place of `memql'. This + one is not available in XEmacs. + +2016-03-29 Mosè Giordano + + Fix previous commit + +2016-03-29 Mosè Giordano + + New function TeX-error-report-has-errors-p + + * tex-buf.el (TeX-error-report-has-errors-p): New function. + (TeX-error-report-switches): Update docstring. + (TeX-LaTeX-sentinel, TeX-command-sequence-sentinel): Use + `TeX-error-report-has-errors-p'. + * tex-bar.el (TeX-bar-TeX-button-alist, TeX-bar-LaTeX-button-alist): + Ditto. + +2016-03-29 Matthew Leach + + TikZ: Add more path connector types. + + * style/tikz.el (TeX-TikZ-path-connector-function-map): New. + (TeX-TikZ-draw-arg-function-map): Use + `TeX-TikZ-path-connector-function-map'. + +2016-03-29 Matthew Leach + + TikZ: Rename 'text' to 'label' to be consistent with TikZ terminology. + + * style/tikz.el (TeX-TikZ-arg-label): Rename from `TeX-TikZ-arg-text' + and prompt for a 'Label' rather than 'Text'. + (TeX-TikZ-arg-node): Use new function name. + (TeX-TikZ-node-arg): Likewise. + +2016-03-29 Matthew Leach + + TikZ: Ignore case when prompting for argument types. + + * style/tikz.el (TeX-TikZ-get-arg-type): Let-bind + `completion-ignore-case' to t when prompting the user. + +2016-03-29 Matthew Leach + + TikZ: Apply suggestions from checkdoc. + + * style/tikz.el (TeX-TikZ-point-function-map): Make documentation + consistent with checkdoc. + (TeX-TikZ-draw-arg-function-map): Likewise. + (TeX-TikZ-draw-arg): Likewise and rename parameter to '_ignored'. + (TeX-TikZ-coordinate-arg): Likewise. + (TeX-TikZ-node-arg): Likewise. + +2016-03-29 Mosè Giordano + + Fill environment content onley when auto-fill-mode is active + + * latex.el (LaTeX-insert-environment): Fill only when + `auto-fill-function' is non-nil, that means auto-fill-mode is active. + Reported by Florian Lindner. + +2016-03-29 Matthew Leach + + TikZ: Add 'Named Point' point type with completion. + + * style/tikz.el (TeX-TikZ-point-name-regexp): New. + (TeX-TikZ-find-named-points): New. + (TeX-TikZ-arg-named-point): New. + (TeX-TikZ-point-function-map): Add 'Named Point' element that maps to + `TeX-TikZ-arg-named-point'. + +2016-03-29 Matthew Leach + + TikZ: Add prompting for TikZ's \node macro. + + * style/tikz.el (TeX-TikZ-node-arg): New. + +2016-03-29 Matthew Leach + + TikZ: Add prompting for \coordinate macro. + + * style/tikz.el (TeX-TikZ-point-function-map): New. + (TeX-TikZ-draw-arg-function-map): Use `TeX-TikZ-point-function-map'. + (TeX-TikZ-coordinate-arg): New. + +2016-03-29 Matthew Leach + + TikZ: Extract the prompting of the next arg from TeX-TikZ-macro-arg. + + * style/tikz.el (TeX-TikZ-single-macro-arg): New. + (TeX-TikZ-macro-arg): Use `TeX-TikZ-single-macro-arg' for prompting + the user and calling the appropriate function. + +2016-03-29 Matthew Leach + + TikZ: allow arg type prompt to be specified. + + * style/tikz.el (TeX-TikZ-get-arg-type): Add a new optional argument, + prompt, and show that to the user when non-nil, instead of the + default. + +2016-03-29 Matthew Leach + + TikZ: split out the prompts to TeX-TikZ-arg-node & TeX-TikZ-macro-arg. + + * style/tikz.el (TeX-TikZ-arg-options): New. + (TeX-TikZ-arg-name): New. + (TeX-TikZ-arg-text): New. + (TeX-TikZ-arg-node): Use new TikZ arg functions for prompting the + user. + (TeX-TikZ-macro-arg): Use `TeX-TikZ-arg-options' when prompting for + the options. + +2016-03-29 Arash Esbati + + Add fontification support + + * style/environ.el ("environ"): Add fontification support. + +2016-03-29 Arash Esbati + + Fix a misplaced closing parenthesis + + * style/splitidx.el (LaTeX-splitidx-auto-cleanup): Fix a misplaced + closing parenthesis. + +2016-03-29 Arash Esbati + + Fix the name of argument in function body + + * style/currvita.el (LaTeX-currvita-env-with-label): Fix the name + of argument in the body of function. + +2016-03-29 Arash Esbati + + Delete redundant code + + * style/enumitem.el (LaTeX-arg-SetLabelAlign) + (LaTeX-arg-SetEnumitemKey, LaTeX-arg-SetEnumitemValue): Delete + redundant code which is part of the function + `LaTeX-enumitem-update-key-val-options'. + (LaTeX-enumitem-env-with-opts): Fix the name of argument in the + body of function. + +2016-03-28 Mosè Giordano + + Better control for presence of errors + + * tex-buf.el (TeX-LaTeX-sentinel): Use `TeX-error-report-switches' + instead of `TeX-error-list'. + +2016-03-27 Tassilo Horn + + Call TeX-after-compilation-finished-functions on warnings + + * tex-buf.el (TeX-LaTeX-sentinel): Skip calling + TeX-after-compilation-finished-functions only if there are real errors. + +2016-03-27 Matthew Leach + + Add the beginnings of TikZ support. + + * style/tikz.el: New + * doc/changes.texi: Document TikZ style. + * Makefile.in: Add TikZ style to the build. + +2016-03-26 Tassilo Horn + + Fix forward sync bug with multi-file documents + + * tex.el (TeX-pdf-tools-sync-view): Use the current file for the + sync-view call, not always the master file (bug#23083). + +2016-03-19 Mosè Giordano + + Temporarily bind gc-cons-threshold in time-consuming task + + * tex.el (TeX-search-files-by-type): Bind `gc-cons-threshold' to + 10000000 during the search, to reduce number of garbage collections + during the task. + +2016-03-17 Matthew Leach + + Prompt for optional short caption parameter. + + * latex.el (LaTeX-compose-caption-macro): New. + (LaTeX-short-caption-prompt-length): New. + (LaTeX-env-figure): Prompt for optional short caption parameter, when + the caption length is >= `LaTeX-short-caption-prompt-length', and pass + to `LaTeX-compose-caption-macro'. + * style/longtable.el ("longtable"): Likewise. + * style/psfig.el (LaTeX-env-psfigure): Likewise. + * doc/auctex.texi (Floats): Document short-caption prompting and + `LaTeX-short-caption-prompt-length'. + * doc/changes.texi: Likewise. + +2016-03-16 Matthew Leach + + Improve prompts when defining LaTeX macros. + + * latex.el (TeX-arg-default-argument-value): New. + (TeX-arg-define-macro-arguments): New. + (LaTeX-common-initialization): Use new LaTeX macro argument functions. + +2016-03-12 Matthew Leach + + Ensure LaTeX-indent-environment-list environments aren't filled + + * tests/latex/latex-filling-in.tex: Add a tabular environment to ensure + the body of the environment isn't filled as it is listed in + LaTeX-indent-environment-list. + * tests/latex/latex-filling-out.tex: Likewise. + +2016-03-08 Matthew Leach + + Remove "table" and "table*" from LaTeX-indent-environment-list + + * latex.el (LaTeX-indent-environment-list): Remove the "table" and + "table*" elements. + +2016-03-04 Mosè Giordano + + Use TeX-quote-after-quote in all language style files + + * style/icelandic.el ("icelandic"): + * style/polish.el ("polish"): + * style/polski.el ("polski"): Use value of `TeX-quote-after-quote' + instead of hard-coding t. + +2016-02-28 Mosè Giordano + + Improve word-string regexp in TeX-warning + + * tex-buf.el (TeX-warning): Match letters, numbers, colons, and hyphens, + not just word constituents. They may be preceeded by both grave + accent and apostrophe, not only grave accent. + * tests/tex/compilation-log.txt: Add test case. + * tests/tex/error-parsing.el: Update result. + +2016-02-27 Mosè Giordano + + Another fix for vertical bad box warnings + + * tex-buf.el (TeX-parse-error): Use different regexps for horizontal and + vertical bad boxes, they cannot be handled together. + (TeX-warning): Do not move point when a vertical bad box has been found. + * tests/tex/compilation-log.txt: Add a test where the parser used to + fail to find the file for warnings after a vertical bad box warning. + * tests/tex/error-parsing.el: Update result accordingly. + +2016-02-26 Mosè Giordano + + Fix parsing of vertical bad boxes context + + * tex-buf.el (TeX-warning): Use as context for vertical bad boxes the + warning itself and don't move point. + * tests/tex/compilation-log.txt: Add a test for vertical bad boxes, and + horizontal bad boxes ending with "at line NN". The two warnings are in + two consecutive lines, make sure the second one is correctly reported. + * tests/tex/error-parsing.el: Update result of the test accordingly. + +2016-02-26 Mosè Giordano + + Catch more bad box warnings + + * tex-buf.el (TeX-error-list): More information for some elements of the + list. + (TeX-parse-error): Change regexp to catch bad vertical boxes as well and + provide new argument to `TeX-warning'. + (TeX-warning): Require an additional mandatory argument, `bad-box'. + Improve regexp for detecting ending line of horizontal bad boxes in + order to cater for the case "...at line NN". + * tests/tex/error-parsing.el: Update result of the test. + +2016-02-23 Mosè Giordano + + Avoid checking duplicate directories in TeX-check-files + + * tex-buf.el (TeX-check-files): Delete duplicate directories in paths + list before performing the check. + +2016-02-21 Mosè Giordano + + Fix detection of line number in TeX-warning + + * tex-buf.el (TeX-warning): Require as additional mandatory argument the + position where the warning starts. Use it to limit + `re-search-backward' when looking for the line number. + (TeX-parse-error): Provide additional argument to `TeX-warning'. + * tests/tex/compilation-log.txt: Add another case where the line number + of the warning was mistaken. + * tests/tex/error-parsing.el: Update expected result of the test + accordingly. + +2016-02-21 Mosè Giordano + + Improve LaTeX-warnings-regexp + + * tex-buf.el (LaTeX-warnings-regexp): Catch also "LaTeX Font" warnings. + +2016-02-21 Mosè Giordano + + Another fix for TeX-parse-errro + + * tex-buf.el (TeX-parse-error): Improve regexp for polishing file name. + * tests/tex/compilation-log.txt: Add example to test file. + * tests/tex/error-parsing.el: Update the expected result of the test + accordingly. + +2016-02-21 Mosè Giordano + + Allow ignoring certain warnings + + * tex.el (TeX-ignore-warnings, TeX-suppress-ignored-warnings): New + customizable options. + (TeX-toggle-suppress-ignored-warnings): New function. + (TeX-mode-map): Add key-binding for `TeX-toggle-suppress-ignored-warnings'. + * tex-buf.el (TeX-error-list-skip-warning-p): Add new argument and use it. + (TeX-parse-TeX): Provide additional argument to + `TeX-error-list-skip-warning-p'. + (TeX-error-list): Document new information. + (TeX-find-display-help): Add new (ignored) argument. + (TeX-error): Add new element to `TeX-error-list' entry. + (TeX-warning): Set the "ignore" flag for `TeX-error-list' + (TeX-error-overview-make-entries): Provide additional argument to + `TeX-error-list-skip-warning-p'. + (TeX-error-overview-toggle-debug-bad-boxes): + (TeX-error-overview-toggle-debug-warnings): Determine + `TeX-master-directory' in `TeX-command-buffer'. + (TeX-error-overview-toggle-suppress-ignored-warnings): New function. + (TeX-error-overview-mode-map): Add key-binding for + `TeX-error-overview-toggle-suppress-ignored-warnings'. + (TeX-error-overview-menu): Add entry for + `TeX-error-overview-toggle-suppress-ignored-warnings'. + +2016-02-21 Mosè Giordano + + Show and hide warnings and bad boxes in error overview + + * tex-buf.el (TeX-error-list-skip-warning-p): New function. + (TeX-parse-TeX): Skip warnings or bad boxes if they are to be ignored. + (TeX-error-list): Describe information present in the list. + (TeX-parse-error): When storing warnings and bad boxes, add them to + `TeX-error-list' even if `TeX-debug-bad-boxes' and `TeX-debug-warnings' + are nil. + (TeX-error-overview-make-entries): Skip warnings or bad boxes if they + are to be ignored. + (TeX-error-overview-toggle-debug-bad-boxes): + (TeX-error-overview-toggle-debug-warnings): New functions. + (TeX-error-overview-mode-map, TeX-error-overview-menu): Add + `TeX-error-overview-toggle-debug-bad-boxes' and + `TeX-error-overview-toggle-debug-warnings'. + (TeX-error-overview): Make the list of entries for the overview before + creating the buffer and use this list to decide whether there is + something to show. + +2016-02-14 Mosè Giordano + + Fix TeX-check-files + + * tex-buf.el (TeX-check-files): Run the test in `TeX-master-directory' + as well. + +2016-02-14 Arash Esbati + + Add new style/splitidx.el + + * Makefile.in (STYLESRC): Add new style. + + * tex-style.el (LaTeX-splitidx-sindex-reftex-quick-id-key): Add + customizable variable. + + * style/splitidx.el: New file. + +2016-02-14 Arash Esbati + + Fix wrong usage of `TeX-auto-prepare-hook' + + * style/theorem.el (TeX-auto-cleanup-hook): + * style/ntheorem.el (TeX-auto-cleanup-hook): + * style/newfloat.el (TeX-auto-cleanup-hook): + * style/amsthm.el (TeX-auto-cleanup-hook): Use + `TeX-auto-cleanup-hook' instead of mistakenly used + `TeX-auto-prepare-hook'. + +2016-02-14 Arash Esbati + + Add support for missing macro \SetLabelAlign + + * style/enumitem.el ("enumitem-SetLabelAlign"): Plug + \SetLabelAlign into AUCTeX parser. + (LaTeX-enumitem-SetLabelAlign-regexp): New variable. + (LaTeX-enumitem-auto-prepare): Reset + `LaTeX-auto-enumitem-SetLabelAlign'. + (LaTeX-arg-SetLabelAlign): New function to query the arguments of + \SetLabelAlign. + ("enumitem"): Add \SetLabelAlign to style hook incl. fontification. + (LaTeX-arg-SetEnumitemValue): Use `completing-read' instead of + `TeX-read-key-val'. + +2016-02-13 Mosè Giordano + + Add support for Atril viewer + + Suggested by Antoine Levitt. + + * tex.el (TeX-evince-dbus-p): Take new arguments to specify desktop + environment and application names. + (TeX-evince-sync-view-1): Rename from `TeX-evince-sync-view'. Take new + arguments to specify desktop environment and application names. + (TeX-atril-sync-view, TeX-evince-sync-view): + (TeX-view-program-select-evince): New functions. + (TeX-view-program-list-builtin): Add Atril entry and use + `TeX-view-program-select-evince' for Atril and Evince. + (TeX-source-correlate-mode): Register for Atril DBUS signal. + * doc/changes.texi: Mention Atril support. + +2016-02-09 Arash Esbati + + Add support for dviout viewer + + * doc/changes.texi: Mention support for dviout on Windows. + + * tex.el (TeX-view-program-list-builtin): Add support for dviout + on Windows. This setup works for `TeX-source-correlate-method' + set to (dvi . source-specials). + Reorder " %o" in entry for SumatraPDF. + +2016-02-09 Arash Esbati + + Add support for SumatraPDF viewer + + * doc/changes.texi: Mention support for SumatraPDF on Windows. + Fix typos. + + * tex.el (TeX-view-program-list-builtin): Add support for + SumatraPDF on Windows. + +2016-02-08 Mosè Giordano + + Add support for Zathura viewer + + * tex.el (TeX-view-program-list-builtin): Add Zathura. + * doc/changes.texi: Mention Zathura support and reworked error parsing. + +2016-02-07 Mosè Giordano + + Minor fix in TeX-documentation-texdoc + + * tex.el (TeX-documentation-texdoc): Make it possible to run the + function in read-only buffers. + +2016-02-07 Mosè Giordano + + Improve parsing of certain warnings + + * tex-buf.el (TeX-warning): Get full context and line numbers for + warnings matching `LaTeX-warnings-regexp'. + * tests/tex/compilation-log.txt: Add example warnings for this case. + * tests/tex/error-parsing.el: Update result of test accordingly. + +2016-02-07 Mosè Giordano + + Catch LaTeX class warnings + + * tex-buf.el (LaTeX-warnings-regexp): New variable. This is the same + regexp used before by `TeX-LaTeX-sentinel-has-warnings' and + `TeX-parse-error', but now catches class warnings as well. + (TeX-LaTeX-sentinel-has-warnings, TeX-parse-error): Use + `LaTeX-warnings-regexp'. + +2016-02-07 Mosè Giordano + + Fix TeX-parse-error + + * tex-buf.el (TeX-parse-error): Remove from the file string pages of the + output file. + * tests/tex/compilation-log.txt: Add a warning containing such faulty + file name. + * tests/tex/error-parsing.el (TeX-error-parsing): Update result of the + test accordingly. + +2016-02-07 Mosè Giordano + + Add ERT test for error parsing + + * tests/tex/compilation-log.txt: Add minimal example of compilation log + that failed to be parsed correctly with the old parsing function. + * tests/tex/error-parsing.el: New ERT test. + +2016-02-07 Mosè Giordano + + Add script to update the ChangeLog + + * ChangeLog.1: Add copyright notice and information about included + commits. + * Makefile.in: Add ChangeLog-related variables and rules. + * build-aux/gitlog-to-auctexlog: New script, adapted from GNU Emacs. + +2016-02-03 Arash Esbati + + Another fix for file name regexp in TeX-documentation-texdoc + + * tex.el (TeX-documentation-texdoc): Add `space' and `()' + to file name regexp for Windows paths. + +2016-02-02 Arash Esbati + + Fix file name regexp in TeX-documentation-texdoc + + * tex.el (TeX-documentation-texdoc): Add backslash separator for Windows + paths. + +2016-02-02 Mosè Giordano + + Capture warnings from packages with hyphens in name + + * tex-buf.el (TeX-LaTeX-sentinel-has-warnings): Add hyphen to regexps. + (TeX-parse-error): Ditto. + +2016-02-02 Mosè Giordano + + New function for reading documentation with texdoc + + * tex.el (TeX-documentation-texdoc): New function. + (TeX-common-menu-entries): Replace `TeX-doc' with + `TeX-documentation-texdoc'. + (TeX-mode-map): Ditto. + * doc/auctex.texi (Documentation): Document `TeX-documentation-texdoc' + in place of `TeX-doc'. + * doc/changes.texi: Mention `TeX-documentation-texdoc'. + +2016-01-31 Tassilo Horn + + Capture message of LaTeX warnings + + * tex-buf.el (TeX-parse-error): Capture message of LaTeX warnings. + +2016-01-30 Mosè Giordano + + Use default argument of completing-read in ConTeXt-environment + + * context.el (ConTeXt-environment): Properly use default argument of + `completing-read'. Do not set `ConTeXt-default-environment' to + `environment' if the latter is equal to the current default + environment, like in `LaTeX-environment'. + +2016-01-30 Mosè Giordano + + Add completion for environments in ConTeXt + + * context.el (ConTeXt-language-variable-list): Document variable. Add + `ConTeXt-environment-list' so that now completion for environments + names in `ConTeXt-environment' function works. Suggested by Andrea De + Michele. + +2016-01-27 Mosè Giordano + + Change coding back to iso-8859-1, XEmacs doesn't support utf-8 + + * font-latex.el: Restore coding to iso-8859-1. + * style/alphanum.el: Ditto. + * style/dk-bib.el: Ditto. + * style/doc.el: Ditto. + * style/inputenc.el: Ditto. + * style/jura.el: Ditto. + * style/ltx-base.el: Ditto. + * style/ltxdoc.el: Ditto. + * tex-font.el: Ditto. + * tex.el: Ditto. + +2016-01-25 Mosè Giordano + + Code cleaning + + * latex.el (TeX-arg-document): Remove useless (mapcar 'identity ...). + Suggested by Marcin Borkowski. + * style/biblatex.el (LaTeX-biblatex-package-options): Ditto. + +2016-01-24 Arash Esbati + + Improve style/enumitem + + * style/enumitem.el (LaTeX-enumitem-newlist-list) + (LaTeX-enumitem-newlist-list-item-arg) + (LaTeX-auto-enumitem-newlist): Remove variables. + (LaTeX-enumitem-newlist-list-local): Fix docstring. + (LaTeX-enumitem-auto-cleanup): Plug \newlist into AUCTeX parser. + ("enumitem"): Offer only enumerated environments as completion for + \restartlist. + +2016-01-24 Arash Esbati + + Improve font related queries + + * style/theorem.el (LaTeX-theorem-fontdecl): Do not prefix the + elements with `TeX-esc'. + (LaTeX-arg-theorem-fontdecl): New function. + ("theorem"): Use `LaTeX-arg-theorem-fontdecl' for font related + queries. + +2016-01-24 Arash Esbati + + Improve font related queries + + * style/ntheorem.el (LaTeX-ntheorem-fontdecl): Do not prefix the + elements with `TeX-esc'. + (LaTeX-arg-ntheorem-fontdecl): New function. + ("ntheorem"): Use `LaTeX-arg-ntheorem-fontdecl' for font related + queries. + +2016-01-24 Arash Esbati + + Improve font related queries + + * style/amsthm.el (LaTeX-amsthm-fontdecl): Do not prefix the + elements with `TeX-esc'. + (LaTeX-arg-amsthm-fontdecl): New function. + ("amsthm"): Use `LaTeX-arg-amsthm-fontdecl' for font related + queries. + +2016-01-23 Mosè Giordano + + Write TeX-style-hook-dialect to parsed file + + * latex.el (BibTeX-auto-store): Run `TeX-bibtex-set-BibTeX-dialect'. + * tex.el (TeX-auto-store): Store `TeX-style-hook-dialect' from buffer + and write it to parsed file when present. + +2016-01-23 Mosè Giordano + + Add new dialects + + * context.el: Update copyright years. + (ConTeXt-dialect): New constant. + (ConTeXt-mode-common-initialization): Set `TeX-style-hook-dialect' to + `ConTeXt-dialect'. + * plain-tex.el: Update copyright years. + (plain-TeX-dialect): New constant. + (plain-TeX-common-initialization): Set `TeX-style-hook-dialect' to + `plain-TeX-dialect'. + * tex.el (TeX-style-hook-dialect): Document new dialects. + (TeX-style-hook-dialect-weight-alist): Add plain-tex and context dialects. + +2016-01-23 Mosè Giordano + + Convert tex-font.el to UTF-8 coding + + * tex-font.el: set coding to utf-8. + +2016-01-23 Mosè Giordano + + Move \iff macro to Arrows section of LaTeX-math-default + + * latex.el (LaTeX-math-default): \iff symbol is defined in base LaTeX, + move it to the "Arrows" section. + +2016-01-20 Mosè Giordano + + Fix bug in subfigure style file + + * style/subfigure.el ("subfigure"): Move `TeX-complete-list' inside + append argument. Fixes bug#22417. + +2016-01-17 Mosè Giordano + + Add some AMS arrows to LaTeX-math-default + + * latex.el (LaTeX-math-default): Add `impliedby', `implies', and `iff' + arrows. Suggested by Aiko Kyle. + +2016-01-10 Mosè Giordano + + url macro accepts only braces in hyperref + + * style/hyperref.el: Update copyright years. + ("hyperref"): Remove "url" from + `LaTeX-verbatim-macros-with-delims-local', it was added by url.el, but + in hyperref "\url" has a different syntax. + +2015-12-18 Ivan Andrus + + Fix bug in `preview-LaTeX-disable-pdfoutput' + + * preview.el.in (preview-LaTeX-disable-pdfoutput): Allow one or more + spaces between command line arguments. + +2015-12-04 Tassilo Horn + + Delete .cvsignore + + I'm pretty confident we won't switch back. ;-) + +2015-11-30 Arash Esbati + + Fix query prompt + + * style/ntheorem.el ("ntheorem"): + * style/theorem.el ("theorem"): Fix wrong query prompt. + +2015-11-30 Mosè Giordano + + Fix regex in texmathp + + * texmathp.el: Replace \t with \r. Reported by Marcin Borkowski. + +2015-11-24 Tassilo Horn + + Rename TeX-after-compilation-finished-hook to -functions + + * tex-buf.el (TeX-after-compilation-finished-functions): Rename from + -hook to -functions. + (TeX-LaTeX-sentinel): Adapt. + * context.el (TeX-ConTeXt-sentinel): Adapt. + +2015-11-23 Arash Esbati + + Add new style/ntheorem.el + + * Makefile.in (STYLESRC): Add new style. + + * style/ntheorem.el: New file. + +2015-11-23 Arash Esbati + + Add new style/theorem.el + + * Makefile.in (STYLESRC): Add new style. + + * style/theorem.el: New file. + +2015-11-23 Arash Esbati + + Improve style/amsthm.el + + * style/amsthm.el (LaTeX-amsthm-fontdecl): Cover all font changing + declarations. + ("amsthm"): Overrule the defintion for \newtheorem in `latex.el'. + ("amsthm"): Use `TeX-completing-read-multiple' for font related + queries. + +2015-11-23 Tassilo Horn + + Rename TeX-after-TeX-LaTeX-command-finished-hook + + * tex-buf.el (TeX-after-compilation-finished-hook): Rename from + TeX-after-TeX-LaTeX-command-finished-hook. + * context.el (TeX-ConTeXt-sentinel): Run + TeX-after-compilation-finished-hook when the compilation was successful. + * doc/auctex.texi (Modes and Hooks): Adapt docs. + +2015-11-21 Mosè Giordano + + Convert Elisp source files to UTF-8 + + * font-latex.el: Change coding to UTF-8 + * style/alphanum.el: Ditto. + * style/dk-bib.el: Ditto. + * style/doc.el: Ditto. + * style/inputenc.el: Ditto. + * style/jura.el: Ditto. + * style/ltx-base.el: Ditto. + * style/ltxdoc.el: Ditto. + * tex.el: Ditto. + +2015-11-19 Mosè Giordano + + Fix bug in TeX-command-sequence + + * tex-buf.el (TeX-command-sequence): Ask for TeX-master if unknown, + otherwise running this function on a file without a known `TeX-master' + will result in `TeX-master' being automatically set to "" at some + point. + (TeX-region-file): Add a third compatibility argument and update + docstring accordingly. + +2015-11-19 Mosè Giordano + + Remove support to "Master:" line + + * tex.el (TeX-convert-master): Remove now unused variable. + (TeX-master-file): Remove support to "Master:" line and update + documentation accordingly. + +2015-11-15 Mosè Giordano + + Activate RefTeX reference styles + + * tex-style.el (LaTeX-reftex-ref-style-auto-activate): New + customizable variable. + * style/cleveref.el ("cleveref"): Activate RefTeX reference style. + * style/fancyref.el ("fancyref"): Ditto. + * style/varioref.el ("varioref"): Ditto. + * style/hyperref.el ("hyperref"): Use + `LaTeX-reftex-ref-style-auto-activate'. + +2015-11-15 Mosè Giordano + + Determine AUCTEXDATE and AUCTEXVERSION from git + + * aclocal.m4 (AC_DATE_VERSION_FROM_CHANGELOG): if this is git + repository, use it to determine the variables. + * autogen.sh: Ditto. + +2015-11-14 Mosè Giordano + + Fix error in autogen.sh, configure, and Makefile + + * Makefile.in (doc/Makefile): Replace ChangeLog with ChangeLog.1. + * autogen.sh: Ditto. + * configure.ac: Ditto. + * doc/Makefile.in (version.texi): Ditto. + +2015-11-13 Mosè Giordano + + Drop ChangeLog + + * .gitignore: Add ChangeLog and auto dirs in tests. + * ChangeLog.1: Rename from ChangeLog. + * Makefile.in (EXCLUDEDFILES): Exclude build-aux directory. + * build-aux/gitlog-to-changelog: Copy script from gnulib. + +2014-05-02 Tassilo Horn + + Improve new-file regex. + + * tex-buf.el (TeX-parse-error): Improve new-file regex. + +2014-04-29 Tassilo Horn + + Fix Wrong type argument: characterp, nil error. + + * tex-buf.el (TeX-format-filter): Fix error caused by trying to + get char syntax from char after EOF. + +2014-04-27 Tassilo Horn + + Don't use TRIM arg of split-string. + + * tex-buf.el (TeX-parse-error): Don't use TRIM arg of + `split-string' which is new in emacs 24.4. + +2014-04-25 Tassilo Horn + + Improve line wrap removal heuristics. + + * tex-buf.el (TeX-format-filter): Remove linebreaks at columns 79 + and also column 80. Also remove linebreaks preceded by a period + that are followed by a word character to remove linebreaks in file + names that are wrapped just after the period starting the file + name extension. + +2014-04-24 Tassilo Horn + + Improve TeX error parsing. + + * tex-buf.el (TeX-error): Error if file containing the TeX error + doesn't exist instead of finding a new file. + (TeX-parse-error): Greatly simplify the new file and end of file + regexps. + +2015-11-13 Mosè Giordano + + * Version 11.89 released. + +2015-11-12 Mosè Giordano + + * RELEASE: Update AUCTeX version, the new features section, and + the list of contributors. + + * configure.ac: Update AUCTeX version. + + * doc/changes.texi: Mention PDF Tools and generic features for + 11.89 release. + + * doc/tex-ref.tex: Update AUCTeX version and copyright years + across the file. + + * latex.el: Update copyright year. + + * latex/preview.dtx: Manually update release version. + + * Makefile.in (WEMACSPACKAGE): Update for Emacs 24.5 + (www-doc): Download gendocs.sh patch from AUCTeX repository. + + * tex.el (TeX-view-predicate-list-bultin): For + `has-no-display-manager' predicate, use the current test only for + old Emacsen, otherwise employ `display-graphic-p'. Suggested by + Santiago Saavedra. + +2015-11-11 Mosè Giordano + + * tests/latex/latex-test.el (LaTeX-math-indent) + (LaTeX-change-environment-with-esc): New tests. + + * tests/latex/math-indent-in.tex: New test file. + + * tests/latex/math-indent-out.tex: Ditto. + +2015-11-10 Mosè Giordano + + * latex.el (LaTeX-fill-break-at-separators): Change default value + to opening only inline and display math switches. + + * tests/latex/latex-filling-in.tex: New test file. + + * tests/latex/latex-filling-out.tex: Ditto. + + * tests/latex/latex-test.el (LaTeX-indent-tabular-test/in) + (LaTeX-indent-tabular-test/out): Remove variables defined with + `defvar'. + (AUCTeX-set-ert-path): New function for setting the path of the + ERT test files. + (LaTeX-filling): New ERT test. + +2015-11-10 Tassilo Horn + + * tex-buf.el (TeX-revert-document-buffer): New function. + (TeX-after-TeX-LaTeX-command-finished-hook): Mention it in docstring. + * doc/auctex.texi (Modes and Hooks): Mention it in manual. + +2015-11-10 Santiago Saavedra (tiny change) + + * tex.el (TeX-command-list, TeX-view-program-list-builtin) + (TeX-view-program-selection): Add dvi2tty as a first-class + command, removing it from a load-time quasiquotation so that the + strategy for selecting it or evince goes down to the frame + performing the View command. Fixes bug#21873. + +2015-11-09 Mosè Giordano + + * tex-info.el: Update copyright years. + (Texinfo-nodename-de-escape, Texinfo-nodename-escape): Use + `TeX-assoc-string' in place of `assoc-string'. + +2015-11-08 Mosè Giordano + + * tex-info.el (TeX-texinfo-mode): Set `TeX-output-extension'. + Remove compatibility code with old Emacsen. + +2015-11-06 Mosè Giordano + + * tex-buf.el (TeX-check-TeX, TeX-check-TeX-command-not-found): New + customizable options. + (TeX-command): Do a better check for the presence of a TeX + distribution. Run `call-process' instead of `executable-find', + like `TeX-run-command' actually does. The point is that + `call-process' and `start-process' use `PATH' environment + variable, `executable-find' uses `exec-path' variable and they do + not need to match, but we should check what `TeX-run-command' will + really do. + + * doc/auctex.texi (Processor Options): Document `TeX-check-TeX'. + + * doc/changes.texi: Mention `TeX-check-TeX'. + +2015-11-03 Mosè Giordano + + * doc/auctex.texi (Processor Options): Document + `ConTeXt-Mark-version'. + (Multifile): Mention `dwim' value for `TeX-master'. + + * doc/changes.texi: Mention `ConTeXt-Mark-version'. + +2015-11-02 Mosè Giordano + + * latex.el (TeX-arg-document): When `TeX-arg-input-file-search' is + nil, use `LaTeX-style-list' to complete document classes. Fixes + bug#21814. + +2015-10-31 Arash Esbati + + * Makefile.in (STYLESRC): Add new style. + + * style/hologo.el: New file. + +2015-10-28 Tassilo Horn + + * latex.el (LaTeX-fill-break-at-separators): Default to nil + because many users don't like that special filling. + + * tex-info.el (Texinfo-make-node-list): Warn about duplicate + nodes. Return nodes in order instead of reversed. + +2015-10-25 Vincent Belaïche + + * tex-info.el (Texinfo-nodename-de-escape): New defun. + (Texinfo-nodename-escape): New defun. + (Texinfo-make-node-list): New defun, code taken from + Texinfo-insert-node into this function for the sake of code + factorization. In addition, (1) allow node name not to be + followed by a comma --- i.e. next node etc. unspecified --- (2) + trim trailing blanks after node name, and (3) de-escape @comma{} + before insertion of node name into the list. + (Texinfo-insert-node): (1) Use new function + `Texinfo-make-node-list', and (2) escape node names for commas. + (Texinfo-arg-nodename): New defun. + (TeX-texinfo-mode): (1) Remove `group' from list of commands, + `group' is an environment, not a command. (2) Add + `guillemetleft', `guillemetright', `guilsinglleft', + `guilsinglright', `quotedblbase' and `quotesinglbase' to the list + of commands. (3) For commands `pxref', `ref' and `xref', use new + function `Texinfo-arg-nodename' to read node name with completion. + +2015-10-24 Arash Esbati + + * style/enumitem.el (LaTeX-enumitem-auto-cleanup): Move some + operations from style hook into this function. + (LaTeX-enumitem-newlist-list-item-arg-local): Delete now unused + variable. + + * style/amsthm.el (LaTeX-amsthm-theoremstyle-list): New variable + replacing the deleted function + `LaTeX-amsthm-complete-theoremstyle'. + (LaTeX-amsthm-env-label): New function to insert user defined + environments. + ("amsthm"): Improve handling of "newtheorem*" and + "newtheoremstyle". + + * style/AlegreyaSans.el ("AlegreyaSans"): Remove SmallCaps + font declaration command. + + * style/Alegreya.el ("Alegreya"): Remove SmallCaps + font declaration command. + + * style/caption.el (LaTeX-arg-caption-captionbox): Fix doctring. + + * style/subcaption.el (LaTeX-arg-subcaption-subcaption): Fix + doctring. + (LaTeX-arg-subcaption-subcaptionbox): ditto. + +2015-10-19 Mosè Giordano + + * tex-buf.el (TeX-command): Check that AUCTeX can find a working + TeX distribution before running some *TeX commands. + +2015-10-18 Mosè Giordano + + * tex.el (fboundp): Define a `TeX-completing-read-multiple' + version for GNU Emacs >= 24.4. Fixes bug#19504. + +2015-10-13 Mosè Giordano + + * style/pstricks.el ("pstricks"): Do not disable PDF mode if XeTeX + engine is used. Suggested by Mandar Mitra. + +2015-10-09 Tassilo Horn + + * latex.el (LaTeX-fill-move-to-break-point): Fill $...$ like + \(...\) (bug#21645) + +2015-10-08 Mosè Giordano + + * tex.el (TeX-expand-list-builtin): New variable. + (TeX-expand-list): Move all entries to `TeX-expand-list-builtin' + and update docstring. + (TeX-expand-list): New function. + + * tex-buf.el (TeX-command-expand): Use `TeX-expand-list' function. + + * doc/auctex.texi (Starting Viewers): Mention + `TeX-expand-list-builtin'. + + * doc/changes.texi: Mention change to `TeX-expand-list'. + +2015-10-08 Arash Esbati + + * style/longtable.el ("longtable"): Use `LaTeX-add-counters' on + "LTchunksize" and not `TeX-add-symbols'. + + * style/enumitem.el (LaTeX-arg-SetEnumitemKey): Remove unused + `prompt' from arguments list. + (LaTeX-arg-SetEnumitemValue): ditto. + + * style/listings.el (LaTeX-listings-key-val-options-local): New + variable used for all key-val queries. + ("listings-lstdefinestyle"): Add parsing support for + "\lstdefinestyle". + (LaTeX-listings-lstnewenvironment-regexp): Add missing "s" to + "listing". + (LaTeX-listings-update-style-key): New function adding newly + defined values to "style" key in + `LaTeX-listings-key-val-options-local'. + ("listings"): Extend "lstdefinestyle". + + * style/wrapfig.el ("wrapfig"): Check for new floating + environments definded through "newfloat.el" and offer them as + completion to "wrapfloat" environment. + +2015-10-05 Mosè Giordano + + * context.el (TeX-ConTeXt-sentinel): Parse ConTeXt Mark IV output. + + * tex-buf.el (TeX-TeX-sentinel-check): Ditto. + +2015-10-05 Arash Esbati + + * style/newfloat.el (LaTeX-newfloat-auto-cleanup): Check if + `LaTeX-caption-supported-float-types' from caption.el is bound and + update it accordingly. Fix docstring. + ("newfloat"): Fix wrong check with (LaTeX-largest-level). + ("newfloat"): Use `LaTeX-newfloat-key-val-options-local' and + delete redundant code. + +2015-10-04 Mosè Giordano + + * context.el (ConTeXt-Mark-version): New customizable and + safe-local variable. + (ConTeXt-expand-command): New function. + (ConTeXt-expand-options): Use `ConTeXt-Mark-version'. + + * tex.el (TeX-command-list): Use %(cntxcom) expander in all + ConTeXt programs. Remove MkIV entry. + (TeX-expand-list): Add %(cntxcom). + +2015-10-04 Tassilo Horn + + * font-latex.el (font-latex-math-environments): Add math + environment. + +2015-10-04 Mosè Giordano + + * tex.el (TeX-command-list): Add MkIV to `TeX-command-list'. + +2015-09-29 Mosè Giordano + + * style/newfloat.el (LaTeX-newfloat-auto-cleanup): Replace another + `pushnew' with `add-to-list', previously overlooked. + +2015-09-28 Mosè Giordano + + * style/newfloat.el: Do not require cl at loading time. + (LaTeX-newfloat-auto-cleanup): Append elements to + `LaTeX-label-alist' in order not to override possible custom + values. + +2015-09-27 Arash Esbati + + * Makefile.in (STYLESRC): Add new style. + + * style/newfloat.el: New file. + + * style/longtable.el ("longtable"): Make package lengths available + through `LaTeX-add-lengths' and not `TeX-add-symbol'. + +2015-09-26 Mosè Giordano + + * tex.el (TeX-search-files-kpathsea): Remove duplicates + directories. + +2015-09-26 Tassilo Horn + + * tex.el (TeX--prettify-symbols-compose-p): New function. + (VirTeX-common-initialization): Use it. + +2015-09-25 Arash Esbati + + * Makefile.in (STYLESRC): Add new style. + + * style/subcaption.el: New file. + + * style/caption.el (LaTeX-caption-key-val-options): Fix values of hypcap-key. + (LaTeX-caption-update-key-val-options): Add support for + subcaption.el if loaded. + (LaTeX-arg-caption-captionbox): Do not query for the third + optional arg. if the second one is empty. + ("caption"): Add support for all lowercase \continuedfloat*?. + ("caption"): Fix fontification for \captionof. + + * style/hyperref.el ("hyperref"): Make + `LaTeX-indent-environment-list' local before adding new env's. + + * style/filecontents.el ("filecontents"): Make + `LaTeX-indent-environment-list' local before adding new env's. + + * style/fontenc.el: Fix mail address in Maintainer-header. + +2015-09-25 Mosè Giordano + + * latex.el (LaTeX-common-initialization): Remove "abstract" + environment, it is not defined in latex.ltx. + + * style/amsart.el ("amsart"): Add "abstract" environment. + + * style/amsbook.el ("amsbook"): Ditto. + + * style/article.el ("article"): Ditto. + + * style/memoir.el ("memoir"): Ditto. + + * style/report.el ("report"): Ditto. + + * style/scrartcl.el ("scrartcl"): Ditto. + + * style/scrreprt.el ("scrreprt"): Ditto. + +2015-09-24 Mosè Giordano + + * tex.el (TeX-doc): Use default argument of `completing-read'. + +2015-09-22 Tassilo Horn + + * latex.el (LaTeX-find-matching-end): Find correct end when point + is already on the name in \end{name}. + +2015-09-20 Mosè Giordano + + * .gitignore: Do not ignore auto.el. + + * Makefile.in (install-metadata): auto.el is not there anymore, + we do not need to test if preview is enabled here. + +2015-09-19 Tassilo Horn + + * tex-buf.el (TeX-error-overview): Fix typo in error message. + (TeX-TeX-sentinel): Fix error parsing. + +2015-09-13 Arash Esbati + + * style/eso-pic.el (LaTeX-eso-pic-package-options-list): Rename + from `LaTeX-eso-pic-package-options'. + (LaTeX-eso-pic-package-options): Use renamed variable. + + * style/AlegreyaSans.el: New file. + + * Makefile.in (STYLESRC): Add new style. + + * style/Alegreya.el: New file. + + * Makefile.in (STYLESRC): Add new style. + + * style/fontenc.el: New file. + +2015-09-10 Mosè Giordano + + * style/gloss-italian.el ("gloss-italian"): Fix "textitalian" + macro and "italian" environment arguments. + + * style/polyglossia.el (LaTeX-polyglossia-prepare): Clear + `LaTeX-polyglossia-lang-list'. + (LaTeX-polyglossia-cleanup): Remove clearing of + `LaTeX-polyglossia-lang-list'. + (TeX-update-style-hook): Append + `LaTeX-polyglossia-load-languages'. + ("polyglossia"): Remove `LaTeX-polyglossia-load-languages' from + here. + +2015-09-09 Mosè Giordano + + * style/polyglossia.el: Remove + `LaTeX-polyglossia-italian-options-list', moved to + gloss-italian.el. + (LaTeX-polyglossia-setkeys-regexp): Fix regexp. + (LaTeX-polyglossia-cleanup): Remove useless let-bound variables + and set `LaTeX-polyglossia-lang-list'. + (LaTeX-polyglossia-active-languages) + (LaTeX-polyglossia-lang-option-member): Use + `LaTeX-polyglossia-lang-list' variable instead of function. + (LaTeX-polyglossia-load-languages): New function. + ("polyglossia"): Use it. + + * style/gloss-italian.el: New style file. + + * Makefile.in (STYLESRC): Activate it. + + * style/polyglossia.el: New style file. + + * Makefile.in (STYLESRC): Activate it. + +2015-09-08 Arash Esbati + + * style/hyperref.el ("hyperref"): Add completion for starred + version of `\autoref' incl. fontification. + ("hyperref"): Add fontification support for `\hypersetup'. + +2015-09-08 Tassilo Horn + + * tex-buf.el (TeX-command-default): Fix bug where wrong command + was guessed for region files. + +2015-09-07 Mosè Giordano + + * tex-buf.el (LaTeX-idx-md5-alist, LaTeX-idx-changed-alist): New + variables. + (TeX-command-sequence): Call file function without optional + arguments. + (TeX-command-default): Suggest "Index" when appropriate. + (TeX-run-TeX): Store value of `LaTeX-idx-md5-alist'. + (TeX-run-index): New function. + (TeX-LaTeX-sentinel): Set `LaTeX-idx-changed-alist'. + (TeX-index-sentinel): New function. + + * tex.el (TeX-command-list): Mention "makeindex" in "Index" help. + Suggested by Arash Esbati. + + * doc/changes.texi: Mention ability to suggest makeindex when + needed. + + * doc/todo.texi (Wishlist): Remove reference to makeindex. + + * doc/tex-ref.tex: Update copyright years. + Mention C-c C-a key binding. + +2015-09-05 Tassilo Horn + + * font-latex.el (font-latex-unfontify-region): Also remove the + `invisible' text properties. + +2015-09-04 Mosè Giordano + + * doc/auctex.texi (Starting a Command): Update references to + `TeX-command-run-all' and C-c C-a key binding. + + * doc/changes.texi: Ditto. + + * doc/quickstart.texi (Processing Facilities): Ditto. + + * tex-buf.el (TeX-command-run-all): Use `universal-argument' to + reference C-u. + +2015-09-04 Tassilo Horn + + * tex-buf.el (TeX-command-sequence-file-function): New variable. + (TeX-command-sequence): Use it. + (LaTeX-command-section-boundaries): Recognize end of document as + ultimate boundary. + (LaTeX-command-section): Signal an error if not in a LaTeX buffer. + (LaTeX-command-run-all-section): Ditto. + + * tex.el: Add autoloads for the new commands. + + * tex-buf.el (TeX-region-update): New function. + (TeX-command-region): Use it. + (LaTeX-command-section-boundaries): New function. + (LaTeX-command-section): Use it. + (TeX-command-run-all-region): New command. + (LaTeX-command-run-all-section): New command. + (TeX-command-run-all): Move it here from tex.el. + + * tex.el (TeX-command-run-all): Rename from TeX-update. + (TeX-mode-map): Bind TeX-command-run-all to C-c C-a. + +2015-09-03 Tassilo Horn + + * font-latex.el (font-latex-fontify-script): Add possible value + `multi-level' to allow raising/lowering scripts of scripts, and + another value `invisible' which in addition hides the ^ and _ + characters in scripts. + (font-latex-match-script): Use it. + (font-latex-make-user-keywords): Add font-lock entry for script + signs. + (font-latex-match-script-chars): New function. + + * tex.el (TeX-tex-mode): Don't ignore case when matching the + TeX-format-list regexes. + (TeX-expand-list): Add expansion of %(PDFout) to -output-format + option for AmS-TeX. + (TeX-command-list): Use it instead of calling the non-existing + pdfamstex command. + +2015-09-02 Tassilo Horn + + * font-latex.el: Remove code which set up font-latex for use with + stock latex-mode on load. + +2015-09-01 Tassilo Horn + + * tex-buf.el (TeX-command-sequence): Add argument for processing + the region file instead of the master file. + + * tex.el (TeX--if-macro-fboundp): New portability macro. + (VirTeX-common-initialization): Use it. + +2015-08-31 Mosè Giordano + + * tex-buf.el (TeX-previous-error): Delete point in error message. + (TeX-command-default) + (TeX-run-set-command): Take care of `TeX-PDF-via-dvips-ps2pdf'. + (TeX-run-dvips, TeX-run-ps2pdf): New functions. + (TeX-TeX-sentinel, TeX-TeX-sentinel-check, TeX-LaTeX-sentinel): + Take care of `TeX-PDF-via-dvips-ps2pdf'. + (TeX-dvips-sentinel, TeX-ps2pdf-sentinel): New functions. + (TeX-parse-command, TeX-output-revert-buffer): Delete point in + error message. + + * tex.el (TeX-command-list): Add "Dvips" and "Ps2pdf" entries. + (TeX-expand-list): Take care of `TeX-PDF-via-dvips-ps2pdf'. + (TeX-PDF-via-dvips-ps2pdf): New customizable and safe-local + variable. + (TeX-toggle-PDF-via-dvips-ps2pdf): New function. + (TeX-mode-specific-command-menu-entries): Add "PDF via dvips + + ps2pdf" entry. + + * doc/auctex.texi (Processor Options): Document + `TeX-PDF-via-dvips-ps2pdf' and fix a typo. + + * doc/changes.texi: Mention `TeX-PDF-via-dvips-ps2pdf'. + + * doc/quickstart.texi (Processing Facilities): Mention + `TeX-PDF-via-dvips-ps2pdf'. + + * tex-buf.el: Update copyright year. + (TeX-command-sequence-max-runs-same-command) + (TeX-command-sequence-max-runs): New customizable variables. + (TeX-command-sequence-count-same-command) + (TeX-command-sequence-count, TeX-command-sequence-last-command) + (TeX-command-sequence-sentinel, TeX-command-sequence-command): New + variables. + (TeX-command-sequence): New function. + (TeX-command-default): New function, stripped off from + `TeX-command-query'. + (TeX-command-query): Use `TeX-command-default'. + (TeX-command-sequence-sentinel): New function. + + * tex.el (TeX-update): New function. + (TeX-mode-map): Add key binding for `TeX-update'. + (TeX-mode-specific-command-menu-entries): Add entry for + `TeX-update'. + + * doc/auctex.texi: Update copyright year. + (Starting a Command): Document `TeX-update'. + + * doc/changes.texi: Update copyright year. + Mention `TeX-update'. + + * doc/quickstart.texi (Processing Facilities): Mention + `TeX-update' and `TeX-error-overview'. + + * doc/todo.texi: Update copyright year. + (Wishlist): Remove entry for `TeX-update'. + +2015-08-30 Arash Esbati + + * style/caption.el ("caption"): Add support for undocumented + macros `\captionbox[*]'. + (LaTeX-arg-caption-captionbox): New function. + + * Makefile.in (STYLESRC): Add new style. + + * style/transparent.el: New file. + + * style/filecontents.el ("filecontents"): Do not indent the + content of `filecontents[*]' environment. + + * style/hyperref.el ("hyperref"): Do not indent the content of + `Form' environment. + + * style/array.el ("array"): Add fontification for + `\newcolumntype'. + +2015-08-28 Tassilo Horn + + * tex.el (TeX-mode-syntax-table): Use punctuation syntax for + character | (bug#21366). + +2015-08-24 Tassilo Horn + + * tex.el (VirTeX-common-initialization): Add support for + `prettify-symbols-mode'. + +2015-08-21 Mosè Giordano + + * tex-buf.el (TeX-check-engine): New customizable variable. + (TeX-check-engine-list): New variable. + (TeX-check-engine-add-engines): New function. + (TeX-check-engine): New function. + (TeX-command): Use `TeX-check-engine' and update docstring + accordingly. + + * style/fontspec.el ("fontspec"): Add engine restrictions. + + * doc/auctex.texi (Processor Options): Document + `TeX-check-engine'. + + * doc/changes.texi: Mention `TeX-check-engine'. + +2015-08-20 Mosè Giordano + + * tex-buf.el (TeX-error-overview-jump-to-source) + (TeX-error-overview-goto-log): New functions. + (TeX-error-overview-mode-map): Add + `TeX-error-overview-jump-to-source' and + `TeX-error-overview-goto-log'. + (TeX-error-overview-menu): Define menu for TeX error overview. + (TeX-error-overview-mode): Add menu. + + * doc/auctex.texi (top) + (Debugging): Add section for error overview. + (Error overview): Document new functions and keys. + +2015-08-19 Mosè Giordano + + * latex.el (LaTeX-label): Mention in the docstring the returned + value. Let-bind `TeX-read-label-prefix' and use `TeX-read-label' + to read the label. + (TeX-read-label-prefix): New variable. + (TeX-read-label): New function. + (TeX-arg-label): Use `TeX-read-label' and mention + `TeX-read-label-prefix' in docstring. + (TeX-arg-define-label): Mention `TeX-read-label-prefix' in + docstring. + +2015-08-14 Arash Esbati + + * latex.el (LaTeX-common-initialization): Fix the subgroup number + in the regex for `\\(this\\)?pagestyle' + +2015-08-10 Tassilo Horn + + * latex.el (TeX-latex-mode): Call LaTeX-preview-setup only if its + bound. + + * preview.el.in (LaTeX-preview-setup): Setup menu and keymap only + once. + +2015-08-09 Arash Esbati + + * style/enumitem.el ("enumitem"): Cater for the starred version of + `\AddEnumerateCounter'. + + * style/ragged2e.el ("ragged2e"): Make package lengths available + through `LaTeX-add-lengths' and not `TeX-add-symbol'. + +2015-08-07 Tassilo Horn + + * latex.el (TeX-latex-mode): Call `LaTeX-preview-setup' + unconditionally instead of calling it from `LaTeX-mode-hook' which + breaks things if that hook is customized (bug#21188). + + * preview.el.in: Don't add `LaTeX-preview-setup' to + `LaTeX-mode-hook'. + +2015-07-21 Arash Esbati + + * style/nameref.el ("nameref"): Add missing commands `\nameref*' + and `\Nameref'. + + * style/textpos.el ("textpos"): Fix the name of the provided env's + which is `textblock' and not `textpos'. + +2015-07-18 Arash Esbati + + * latex.el (LaTeX-common-initialization): Query for the default + value of first arg when (re-)defining new environments. + + * Makefile.in (STYLESRC): Add new style. + + * style/vwcol.el: New file. + + * Makefile.in (STYLESRC): Add new style. + + * style/textpos.el: New file. + + * Makefile.in (STYLESRC): Add new style. + + * style/environ.el: New file. + + * style/tabulary.el ("tabulary"): Add `LCRJ' to + `LaTeX-array-column-letters'. + + * style/tabularx.el ("tabularx"): Add `X' to + `LaTeX-array-column-letters'. + + * style/array.el: Parse user-defined new column types and add them + to `LaTeX-array-column-letters'. + +2015-07-09 Mosè Giordano + + * latex/README: restore file deleted by mistake when preview/ + directory has been moved to top level. + + * Makefile.in: Use everywhere $(MAKE) in place of make. + +2015-06-21 Mosè Giordano + + * tex-buf.el (TeX-LaTeX-sentinel): Add support for hf-tikz + messages. + + * style/mnras.el: New style file. + + * Makefile.in (STYLESRC): Activate it. + +2015-06-14 Arash Esbati + + * style/pdfpages.el ("pdfpages"): Restrict suggested files to + *.pdf files. File name should be relative to master file + directory. + +2015-06-13 Mosè Giordano + + * tex-buf.el (TeX-LaTeX-sentinel-has-warnings, TeX-parse-error): + Cater for packages with digits in their names (e.g., fixltx2e, + which emits a warning from TeX Live 2015). + +2015-06-09 Tassilo Horn + + * tex.el (TeX-evince-dbus-p): Explicitly bind dbus-debug to nil in + order to really ignore dbus errors with dbus-ignore-errors. + +2015-06-05 Arash Esbati + + * Makefile.in (STYLESRC): Add new style. + + * style/pdfpages.el: New file. + + * style/listings.el (LaTeX-listings-auto-cleanup): Add support for + the optional argument of env's defined with `\lstnewenvironment'. + (LaTeX-listing-lstnewenvironment-regexp): Ditto. + +2015-06-05 Ikumi Keita + + * tex.el (featurep): Restore compatibility with emacs versions + which don't have `activate-mark' (Emacs <= 22). + +2015-06-02 Arash Esbati + + * latex.el (LaTeX-auto-cleanup): Prepare so that an optional + environment arg is also queried. + +2015-06-01 Tassilo Horn + + * latex.el (LaTeX-auto-env-args-with-opt): New variable for + collecting environments with an optional argument. + (LaTeX-auto-regexp-list): Use it. + (LaTeX-auto-cleanup): Initialize \newenvironment{foo}[n][d]{}{} + with the n-1 remaining mandatory arguments. + +2015-05-29 Nicolas Richard + + * latex.el (LaTeX-backward-paragraph): Make it work in narrowed + buffers. Fixes bug#20685. + +2015-05-18 Orlando Iovino (tiny change) + + * style/beamer.el ("beamer"): Add `subtitle' to the `slide-title' + class. + +2015-05-16 Arash Esbati + + * Makefile.in (STYLESRC): Add new styles. + + * style/newpxmath.el: New file. + + * style/newpxtext.el: New file. + + * font-latex.el (font-latex-set-syntactic-keywords): Allow for + multiple mandatory argument for a verbatim environment. + + * style/listings.el ("listings"): Add support for parsing new + env's defined with `\lstnewenvironment' command. + +2015-05-08 Tassilo Horn + + * tex.el (TeX-mode-syntax-table): Use paired delimiter syntax for + character |. + (TeX-tree-expand): Fix docstring. + +2015-05-07 Mosè Giordano + + * tex.el: Update copyright years. + (TeX-view-program-list): Fix type. (Bug#20513) + +2015-05-05 Mosè Giordano + + * style/italian.el: Evaluate `TeX-quote-after-quote'. + +2015-05-01 Tassilo Horn + + * tex.el (TeX-tree-expand): Expand all given vars in just one + single call of kpsewhich. Users reported that on some windows and + mac systems, kpsewhich is extremely slow leading to auctex startup + times of several seconds. + +2015-04-29 Tassilo Horn + + * tex.el (TeX-string-divide-number-unit): Fix docstring. + + * style/mathtools.el ("mathtools"): Fix typos. + +2015-04-25 Tassilo Horn + + * tex.el (TeX-parse-macro): Improve docstring. + +2015-04-19 Tassilo Horn + + * tex.el (TeX-clean): Also regexp-quote TeX-region-file. + +2015-04-17 Tassilo Horn + + * preview.el.in (preview-datadir, preview-lispdir): Delete these + two variables. + (preview-filter-specs): Use TeX-data-directory in place of + preview-datadir. + + * configure.ac: Remove auto.el from AC_OUTPUT. + + * Makefile.in (auto.el): Delete target. + +2015-04-11 Tassilo Horn + + * style/mathtools.el (LaTeX-mathtools-env-multlined): Don't call + newline-and-indent after inserting environment. + +2015-04-11 Arash Esbati + + * Makefile.in (STYLESRC): Add new style. + + * style/attachfile.el: New file. + + * style/fbb.el: Update style to LaTeX package v1.07 from + 2015/04/06. + + * style/erewhon.el ("erewhon"): Update style to LaTeX package + v1.04 from 2015/04/07. + + * style/baskervaldx.el ("baskervaldx"): Update style to LaTeX + package v1.07 from 2015/04/06. + + * style/newtxtext.el ("newtxtext"): Update style to LaTeX package + v1.434 from 2015/04/07. + + * style/enumitem.el ("enumitem"): Fix typos. + + * style/everysel.el ("everysel"): Fix typo (AtNextSelect_f_ont). + + * style/color.el: Replace `read-string' with `TeX-read-string'. + + * style/currvita.el: Replace `read-string' with `TeX-read-string'. + + * style/wrapfig.el: Replace `read-string' with `TeX-read-string'. + + * style/MyriadPro.el ("MyriadPro"): Add missing lenghts + `MdSlantfracSpacingBeforeSlash' and `MdSlantfracSpacingAfterSlash'. + + * style/caption.el (LaTeX-caption-key-val-options): Delete wrong + values for `margin'-key. + (LaTeX-arg-caption-command): Use `TeX-argument-insert' and do not + rely on `TeX-arg-eval' anymore. + (LaTeX-arg-caption-DeclareCaption): Ditto. + +2015-04-02 Mosè Giordano + + * doc/auctex.texi (Indenting): Document indentation of "\[...\]". + + * doc/changes.texi: Mention it. + +2015-03-30 Mosè Giordano + + * latex.el (LaTeX-begin-regexp): Add "\[". + (LaTeX-indent-calculate): Remove indentation of "\[...\]" from + here, it is automatically done in `LaTeX-indent-level-count' now + that `LaTeX-begin-regexp' has "\[". (Bug#20227) + +2015-03-28 Mosè Giordano + + * style/acro.el: + + * style/acronym.el: + + * style/caption.el: + + * style/color.el: + + * style/enumitem.el: + + * style/geometry.el: + + * style/minted.el: + + * style/pst-plot.el: + + * style/pstricks.el: + + * style/siunitx.el: Update copyright years and add + `TeX-auto-parse' to `TeX-update-style-hook'. + +2015-03-28 Arash Esbati + + * Makefile.in (STYLESRC): Add new style. + + * style/colortbl.el: New file. + + * style/ltxtable.el ("ltxtable"): Ask for a `Width' and not for a + `Length' in minibuffer. + + * latex.el (LaTeX-common-initialization): Add standard LaTeX + lengths `arraycolsep', `arrayrulewidth' and `doublerulesep'. + +2015-03-23 Tassilo Horn + + * tex.el (TeX-run-style-hooks): Apply style hooks in reverse + order. With that, a local style can modify a private or a global + style, and a private style can modify a global one. + +2015-03-17 Mosè Giordano + + * doc/wininstall.texi: Fix a broken link. + + * style/mn2e.el: New style file. + + * Makefile.in (STYLESRC): Activate new style. + +2015-03-15 Arash Esbati + + * Makefile.in (STYLESRC): Add new style. + + * style/ltxtable.el: New file. + +2015-03-15 Arash Esbati + + * Makefile.in (STYLESRC): Add new style. + + * style/ltablex.el: New file. + +2015-03-15 Arash Esbati + + * style/enumitem.el (LaTeX-enumitem-SetEnumitemKey-regexp): Delete + match for the second argument. + (LaTeX-enumitem-SetEnumitemValue-regexp): Delete match for the + third argument. + (LaTeX-arg-SetEnumitemValue): Replace the randomly generated + number with something human-readable. + + * style/caption.el (LaTeX-caption-DeclareCaption-regexp): Delete + match for the second argument. + (LaTeX-arg-caption-DeclareCaption): Replace the randomly generated + number with something human-readable. + +2015-03-10 Tassilo Horn + + * tex.el (TeX-style-path): Replace `pushnew' with equivalent code + since defcustom init-forms don't seem to get compiled. + + * doc/auctex.texi (Modes and Hooks): Document + TeX-after-TeX-LaTeX-command-finished-hook. + + * tex-buf.el (TeX-after-TeX-LaTeX-command-finished-hook): New + hook. + (TeX-LaTeX-sentinel): Call it. + +2015-03-09 Mosè Giordano + + * tex-buf.el (TeX-find-display-help): Display the help also when + the file cannot be determined. + + * latex.el (LaTeX-end-regexp): Add "\]". + (LaTeX-indent-calculate): Indent "\[...\]" display math as a + regular environment. + +2015-03-08 Arash Esbati + + * Makefile.in (STYLESRC): Add new style. + + * style/geometry.el: New file. + +2015-03-08 Arash Esbati + + * Makefile.in (STYLESRC): Add new style. + + * style/caption.el: New file. + +2015-03-08 Arash Esbati + + * Makefile.in (STYLESRC): Add new style. + + * style/enumitem.el: New file. + +2015-03-08 Tassilo Horn + + * tex.el (TeX-style-path): Replace add-to-list on local with + pushnew. + + * style/bidibeamer.el: New style. + + * Makefile.in (STYLESRC): Activate new bidibeamer style. + +2015-03-07 Mosè Giordano + + * doc/install.texi: Mention uninstallation in menus. + (Build/install and uninstall): Add "Uninstallation" index entry. + Document uninstallation process. + + * Makefile.in: Update copyright years. + (.PHONY): Add uninstall rule. + (uninstall): New rule. + + * doc/Makefile.in: Update copyright years. + (.PHONY): Add uninstall rule. + (uninstall): New rule. + + * latex/Makefile.in: Update copyright years. + (.PHONY): Declare phony targets. + (install-texmf-doc): Do not ignore errors in this rule. + (uninstall): New rule. + +2015-03-03 Tassilo Horn + + * doc/auctex.texi (Filling): Document LaTeX-fill-excluded-macros. + + * latex.el (LaTeX-fill-excluded-macros): New defcustom for + excluding macro arguments from filling. + (LaTeX-fill-region-as-paragraph): Use it. + +2015-03-02 Tassilo Horn + + * font-latex.el (font-latex-match-command-with-arguments): Fix + error introduced in the last change. + +2015-02-24 Tassilo Horn + + * style/expl3.el: New style for the wrapper package for + experimental LaTeX 3. + + * Makefile.in (STYLESRC): Activate new style. + + * font-latex.el (font-latex-match-simple-command) + (font-latex-match-command-with-arguments): Use \s_ and \sw regexp + classes instead of hard-coding [A-Za-z@] as LaTeX macro chars. + +2015-02-17 Tassilo Horn + + * latex.el (LaTeX-after-insert-env-hook): Rename from + `LaTeX-after-insert-env-hooks' which is now an obsolete variable + alias. + (LaTeX-after-modify-env-hook): New hook. + (LaTeX-modify-environment): Run `LaTeX-after-modify-env-hook'. + +2015-02-13 Tassilo Horn + + * tex.el (TeX-pdf-tools-sync-view, TeX-PDF-mode): Move addition of + `TeX-source-correlate-handle-TeX-region' to + `pdf-sync-backward-redirect-functions' from `TeX-PDF-mode' to + `TeX-pdf-tools-sync-view'. + +2015-02-09 Tassilo Horn + + * tex.el (TeX-pdf-tools-sync-view): Make it work with + `TeX-command-region'. + +2015-02-09 Tassilo Horn + + * tex.el (TeX-pdf-tools-sync-view): Simplify function. + +2015-02-09 Arash Esbati + + * Makefile.in (STYLESRC): Add new style. + + * style/color.el: New style. + +2015-02-08 Tassilo Horn + + * tex.el (TeX-source-correlate-handle-TeX-region): Fix + void-variable error. + +2015-02-07 Tassilo Horn + + * tex.el (TeX-pdf-tools-sync-view) + (TeX-source-correlate-handle-TeX-region) + (TeX-source-correlate-sync-source, TeX-PDF-mode): Adapt PDF Tools + forward/backward search to latest PDF Tools changes. + +2015-02-06 Mosè Giordano + + * tex.el (TeX-source-correlate-handle-TeX-region): Replace + `file-name-base', introduced in GNU Emacs 24, with + `file-name-sans-extension'+`file-name-nondirectory'. + +2015-02-06 Tassilo Horn + + * tex.el (TeX-source-correlate-handle-TeX-region): New function. + (TeX-source-correlate-sync-source): Use it. + (TeX-PDF-mode): Set `pdf-sync-correlate-tex-refine-function' to + `TeX-source-correlate-sync-source'. + +2015-02-05 Tassilo Horn + + * tex.el (TeX-pdf-tools-sync-view): New function to use PDF Tools + `pdf-view-mode' as a viewer. + (TeX-view-program-list-builtin): Add PDF Tools entry calling + `TeX-pdf-tools-sync-view'. + +2015-02-04 Tassilo Horn + + * Makefile.in (STYLESRC): Add new style. + + * style/tcolorbox.el: New style. + +2015-01-31 Arash Esbati + + * Makefile.in (STYLESRC): Add new style. + + * style/currvita.el: New file. + +2015-01-27 Tassilo Horn + + * tex.el (TeX-view-program-list-builtin): Remove "start" as + executable entry because it's no executable but a Windows system + command. + (TeX-view-program-list-builtin): Also remove "start" as executable + from the "dvips and start" entry. + +2015-01-25 Tassilo Horn + + * latex.el (LaTeX-section-heading): Use default parameter of + completing-read. Fixes bug#19675. + +2015-01-19 Tassilo Horn + + * tex.el (TeX-auto-store): Fix indentation in auto files. + +2015-01-16 Arash Esbati + + * style/minted.el: Update copyright year. + (LaTeX-minted-auto-cleanup): Fix the name of the new langcode + environment. + +2014-12-30 Arash Esbati + + * style/multirow.el ("multirow"): Fix a typo in the name of a + variable. + + * Makefile.in (STYLESRC): Add new styles. + + * style/relsize.el: New file. + + * style/wrapfig.el: New file. + + * style/hyperref.el ("hyperref"): Add `Form' environment needed + for PDF and HTML forms. + (LaTeX-hyperref-forms-options): New variable for key-val options + used in form related macros (`TextField', `CheckBox', + `ChoiceMenu', `PushButton', `Submit', `Reset'). + +2014-12-22 Tassilo Horn + + * doc/changes.texi: Document addition of LaTeX-command-section and + forward/backward search enhancements with Evince. + + * latex.el (auto-mode-alist): Add latex-mode association for HeVeA + files. + +2014-12-21 Tassilo Horn + + * tex.el (TeX-parse-macro): Enclose arg in + LaTeX-default-verb-delimiter if macro is in + LaTeX-verbatim-macros-with-delims and there's only one argument. + (TeX-auto-store): Check if LaTeX-verbatim-environments, + LaTeX-verbatim-macros-with-delims, and + LaTeX-verbatim-macros-with-braces are bound before using them. + + * style/minted.el (LaTeX-minted-newminted-regexp) + (LaTeX-minted-newmint-regexp, LaTeX-minted-newmintinline-regexp) + (LaTeX-minted-newmintedfile-regexp, LaTeX-minted-auto-cleanup): + Extend to recognize optional env/macro name. + ("minted"): Add \newminted, \newmint, \newmintinline, and + \newmintedfile macros. + +2014-12-20 Tassilo Horn + + * tex.el (TeX-auto-store): Write LaTeX-verbatim-*-local variables + to auto file to make them document-local. + + * style/minted.el (LaTeX-minted-auto-cleanup): Recognize macros + generated by \newmint, \newmintinline, and \newmintedfile, too. + + * tex.el (TeX-evince-sync-view): Encode URI with `url-encode-url'. + +2014-12-19 Tassilo Horn + + * style/minted.el: New style. + + * Makefile.in (STYLESRC): Add style/minted.el. + + * latex.el (LaTeX-env-args): Bind exit-mark if its not bound + already. + (LaTeX-verbatim-regexp): Make variable obsolete. + (LaTeX-verbatim-regexp): New function which computes a regexp of + verbatim environments from LaTeX-verbatim-environments. + (LaTeX-indent-calculate, LaTeX-indent-calculate-last): Use the + function LaTeX-verbatim-regexp instead of the variable. + + * style/listings.el ("listings"): Don't modify the now obsolete + LaTeX-verbatim-regexp. + + * style/fancyvrb.el ("fancyvrb"): Don't modify the now obsolete + LaTeX-verbatim-regexp. + + * style/beamer.el ("beamer"): Don't modify the now obsolete + LaTeX-verbatim-regexp. + + * style/alltt.el ("alltt"): Don't modify the now obsolete + LaTeX-verbatim-regexp. + +2014-12-18 Tassilo Horn + + * tex.el (TeX-evince-sync-view): Don't URL-encode commas in the + file name (bug#19398). + +2014-12-12 Mosè Giordano + + * latex.el (LaTeX-environment-name-regexp): New function. + (LaTeX-modify-environment): Use it. + (LaTeX-find-matching-end): Use `TeX-grop' instead of the + hard-coded "{". Search for the closing of the environment with + `re-search-forward' instead of `search-forward' and use + `LaTeX-environment-name-regexp': this allows to consider + environments with macros in their names. (Bug#19281) + (LaTeX-find-matching-begin): Use `TeX-grop' instead of the + hard-coded "{". + +2014-12-09 Mosè Giordano + + * style/babel.el (LaTeX-babel-active-languages): Move `nreverse' + call inside `let'. + +2014-12-08 Stefan Monnier + + * tex.el (TeX-mode-specific-command-menu): Remove Emacs 20 + compatibility code. + + * style/shortvrb.el ("shortvrb"): Use mapcar instead of + dolist/add-to-list. + + * style/pstricks.el (LaTeX-pst-point-in-parens) + (LaTeX-pst-macro-psarc, LaTeX-pst-macro-pscircle) + (LaTeX-pst-macro-rput, LaTeX-pst-macro-uput) + (LaTeX-pst-macro-multirputps, LaTeX-pst-macro-psline) + (LaTeX-pst-macro-psdots, LaTeX-pst-macro-parabola) + (LaTeX-pst-macro-pnt-twolen, LaTeX-pst-macro-psbezier) + (LaTeX-pst-macro-pspolygon, LaTeX-pst-macro-psframe) + (LaTeX-pst-macro-psgrid, LaTeX-pst-macro-newpsobject): Rename + unused arg to silence the byte-compiler. + (LaTeX-pst-parameters-add): Remove unused var beg. + + * style/pst-plot.el (LaTeX-pst-macro-psaxes): Rename unused arg to + silence the byte-compiler and fix indentation. + ("pst-plot"): Use mapc instead of mapcar for side-effects only. + + * style/pst-node.el (LaTeX-pstnode-macro-nput) + (LaTeX-pstnode-macro-cnodeput, LaTeX-pstnode-macro-nc) + (LaTeX-pstnode-macro-pc, LaTeX-pstnode-macro-tnabcput): Rename + unused arg to silence the byte-compiler. + + * style/psfig.el (TeX-arg-psfig, LaTeX-env-psfigure): Rename + unused arg to silence the byte-compiler. + + * style/prosper.el: Fix comment style. + (LaTeX-prosper-insert-title, LaTeX-prosper-arg-pdftransition) + (LaTeX-prosper-insert-options, LaTeX-prosper-insert-slide): Rename + unused arg to silence the byte-compiler. + + * style/pdfsync.el (LaTeX-pdfsync-output-page): Remove unused + sync-line variable. + + * style/natbib.el (natbib-note-args): Rename unused arg to silence + the byte-compiler. + + * style/inputenc.el (LaTeX-arg-inputenc-inputenc): Rename unused + arg to silence the byte-compiler. + + * style/harvard.el (LaTeX-env-harvardbib): Rename unused arg to + silence the byte-compiler. + + * style/graphicx.el (LaTeX-arg-includegraphics): Rename unused arg + to silence the byte-compiler. + + * style/fancyref.el (TeX-arg-fancyref-format): Rename unused arg + to silence the byte-compiler. + + * style/epsf.el (TeX-arg-epsfsize): Rename unused arg to silence + the byte-compiler. + + * style/emp.el (LaTeX-env-empfile): Rename unused arg to silence + the byte-compiler. + + * style/dinbrief.el (LaTeX-dinbrief-sender): Add a FIXME. + + * style/bigstrut.el (TeX-arg-bigstrut): Rename unused arg to + silence the byte-compiler. + + * style/beamer.el + (LaTeX-beamer-after-insert-env, TeX-arg-beamer-overlay-spec) + (TeX-arg-beamer-frametitle, TeX-arg-beamer-note) + (LaTeX-arg-beamer-theme, LaTeX-arg-beamer-inner-theme) + (LaTeX-arg-beamer-outer-theme, LaTeX-arg-beamer-color-theme) + (LaTeX-arg-beamer-font-theme): Rename unused arg to silence the + byte-compiler. + + * style/babel.el (require): Require cl at compile-time. + (LaTeX-babel-active-languages): Use pushnew/nreverse instead of + add-to-list. + + * bib-cite.el (bib-cite--kind): New function. + (bib-display, bib-find): Use it. + (featurep): Use with-current-buffer instead of set-buffer. + (bib-cite--fontify-help): New function. + (bib-cite-fontify-help-as-bibtex, bib-cite-fontify-help-as-latex): + Use it. + (bib-highlight-mouse, bib-label-help): Make comment conform to the + commenting conventions. + (bib-label-prompt-map): Derive from + minibuffer-local-completion-map instead of copying that. + (bib-display-this-environment): Fix comment. + (bib-document-TeX-files): Don't doubly-declare the-file. + +2014-12-08 Mosè Giordano + + * style/mathtools.el ("mathtools"): Fix closing bracket + placement. (Bug#19301) + +2014-12-08 Arash Esbati + + * Makefile.in (STYLESRC): Add new styles. + + * style/newtxttt.el: New file. + + * style/newtxtext.el: New file. + + * style/newtxsf.el: New file. + + * style/newtxmath.el: New file. + + * style/fbb.el: New file. + + * style/erewhon.el: New file. + + * style/baskervaldx.el: New file. + +2014-12-04 Mosè Giordano + + * tex.el (TeX-Omega-command): Add aleph and omega choices. + (LaTeX-Omega-command): Add lamed and lambda choices. (Bug#19260) + +2014-12-03 Mosè Giordano + + * README.GIT: Describe branches of the repository. + +2014-12-02 Vladimir Lomov (tiny change) + + * latex/Makefile.in (MKINSTALLDIRS): Fix MKINSTALLDIRS path. + +2014-11-29 Mosè Giordano + + * tests/latex/latex-test.el (latex): Require latex.el. + (LaTeX-indent-tabular-test/in): Expand file name in load + directory, for automated tests. + (LaTeX-indent-tabular-test/out): Ditto. + + * tests/Makefile: New Makefile. + + * Makefile.in (.PHONY): Add new check target. + (check): New rule. Suggest in comments to run it before a new + release. + +2014-11-28 Stefan Monnier + + * tex.el (TeX-view-program-list-builtin): Fix up paren typo. + +2014-11-28 Mosè Giordano + + * tex.el (TeX-view-program-list-builtin): Add the new third + element to each item. + (TeX-view-program-list): Document new third element of items in + doc string. Adapt the type. + (TeX-view-command-raw): Check whether the viewer executable + exists. (Bug#19121) + + * doc/auctex.texi (Starting Viewers): Document change to + `TeX-view-program-list'. + + * doc/changes.texi: Mention it. + +2014-11-28 Stefan Monnier + + * style/siunitx.el (tex): Require tex because its indispensable + when compiling the call to TeX-auto-add-type. + + * style/acronym.el (tex): Ditto. + + * style/acro.el (tex): Ditto. + +2014-11-27 Mosè Giordano + + * latex.el (LaTeX-label-alist): Expand doc string. + (LaTeX-label): Make second argument optional to restore backward + compatibility and update doc string accordingly. (Bug#19178) + +2014-11-27 Matthew Leach + + * configure.ac: Merge from preview/configure.ac. + + * .gitignore: Merge from preview/.gitignore. + + * autogen.sh: Don't run autoconf in the preview direcotry. + + * Makefile.in (subdirs): Remove. + (DESCEND): Remove. + (EXCLUDEDFILES): Remove 'preview/' prefix. + (preview-ball): Likewise and decrement stip-components in tar. + (previewstartfile): Adapt from preview/Makefile.in. + (PREVIEW_AUTOLOAD): Likewise. + (texmf): Likewise. + (preview-latex.el): Likewise. + (latex/Makefile): Likewise. + (auto.el): Likewise. + (install-startup): Likewise. + (install-texmf): Likewise. + (release-commit): Likewise. + (DISTCLEANFILES): Likewise. + (CLEANFILES): Add preview files. + (install-el): Likewise. + (install-lisp): Likewise. + (all): Add texmf dependency and remove DESCEND. + (clean): Remove DESCEND action. + (distclean): Likewise. + (maintainer-clean): Likewise. + + * doc/Makefile.in (preview-dtxdoc.texi): Update path of + preview.dtx. + + * preview/ChangeLog: Move to ChangeLog-preview + + * preview/ChangeLog.1: Move to ChangeLog.1-preview + + * preview/auto.el.in: Move to top-level. + + * preview/circ.tex: Move to top-level. + + * preview/preview.el.in: Move to top-level. + + * preview/*.el: Move to top-level. + + * preview/images/: Move to images/. + + * preview/latex/: Move to latex/. + + * preview/Makefile.in: Remove. + + * preview/configure.ac: Remove. + + * preview/.gitignore: Remove. + + * preview/COPYING: Remove. + +2014-11-21 Tassilo Horn + + * doc/auctex.texi (Starting a Command): Document + LaTeX-command-section and friends. + + * style/book.el ("book"): Set LaTeX-largest-level to part instead + of chapter. + + * tex-buf.el (LaTeX-command-section-level): New variable. + (LaTeX-command-section-level): New function. + (LaTeX-command-section-change-level, LaTeX-command-section): New + commands. + + * latex.el (LaTeX-mode-map): Bind C-c C-z to LaTeX-command-section + and C-c M-z to LaTeX-command-section-change-level. + + * tex.el (TeX-evince-sync-view): Use line/col information from the + TeX-region buffer if the View command is made on a region. + + * tex-buf.el (TeX-region-create): Position point in the same + line/col as in the original buffer to make forward search work. + +2014-11-20 Mosè Giordano + + * latex.el (LaTeX-env-figure): Fix indentation when there is the + \centering macro and no caption is inserted. + + * style/fontspec.el ("fontspec"): Fix fontification of + "newfontfamily" and "newfontface". + +2014-11-19 Tassilo Horn + + * tex.el (TeX-source-correlate-sync-source): Make backward/inverse + search form PDF to tex work also for TeX-regions. + + * tex-buf.el (TeX-region-orig-buffer): New variable. + (TeX-region-create): Set TeX-region-orig-buffer. + + * tex.el (TeX-submit-bug-report): Adapt bug report intro text to + mention debbugs url. + +2014-11-18 Arash Esbati + + * style/zlmtt.el (font-latex-add-keywords): Use more consistent + fontification. + + * style/textcomp.el (font-latex-add-keywords): Ditto. + + * style/fontaxes.el (font-latex-add-keywords): Ditto. + + * style/XCharter.el (font-latex-add-keywords): Ditto. + +2014-11-18 Tassilo Horn + + * tex-buf.el (TeX-region-create): Disable finding of appropriate + major-mode for region file. Also disable file-local vars, and + don't run find-file-hook functions. Also, make the region file + read-only to prevent accidental editing where actually the real + file should have been edited (happens easily with source + correlation mode). + +2014-11-16 Mosè Giordano + + * Makefile.in (WEMACSDATAROOTDIR, WEMACSSITELISP): New variables. + (WPACKAGEFILES): Update accordingly. + (windows-package): Fix structure of the package for Emacs 24.4. + Reported by Uwe Siart. Remove the zip package before creating it, + otherwise it would be updated instead of recreated. + Mention that bash shell is required for windows-package and + release-upload recipes due to some bashisms in them. Reported by + José Carlos Santos. + +2014-11-15 Mosè Giordano + + * Makefile.in (WEMACSPACKAGE, WEMACSEXTRACTDIR): New variables. + (windows-package): Adapt rule to new Emacs 24.4 package for + Windows. Use `WEMACSPACKAGE' and `WEMACSEXTRACTDIR'. + +2014-11-15 Davide G. M. Salvetti + + * Makefile.in (STYLESRC): Add `ifluatex.el', `luatextra.el'. + + * style/luatextra.el: New style. + + * style/ifluatex.el: New style. + + * doc/faq.texi: Update the `Why does 'TeX-next-error' ('C-c `') + fail?' entry, taking into account the `TeX-file-line-error' + option. Update copyright range. + + * doc/auctex.texi (Selecting a Command): Fix typo. + (Automatic Local): Update description of `TeX-style-path', + `TeX-style-global', `TeX-style-local', and `TeX-auto-local' + variables: there is no need to end directories and directories + lists items with a slash. + + * doc/quickstart.texi (Editing Facilities): Fix documentation: to + change font attributes of existing text, it has to be marked as an + _active_ region. + +2014-11-10 Davide G. M. Salvetti + + * context.el: Replace `read-string' with `TeX-read-string'. + + * latex.el: Replace `read-string' with `TeX-read-string'. + + * style/CJK.el: Replace `read-string' with `TeX-read-string'. + + * style/amsmath.el: Replace `read-string' with `TeX-read-string'. + + * style/amsthm.el: Replace `read-string' with `TeX-read-string'. + + * style/beamer.el: Replace `read-string' with `TeX-read-string'. + + * style/csquotes.el: Replace `read-string' with `TeX-read-string'. + + * style/dinbrief.el: Replace `read-string' with `TeX-read-string'. + + * style/dk-bib.el: Replace `read-string' with `TeX-read-string'. + + * style/emp.el: Replace `read-string' with `TeX-read-string'. + + * style/epsf.el: Replace `read-string' with `TeX-read-string'. + + * style/filecontents.el: Replace `read-string' with `TeX-read-string'. + + * style/foils.el: Replace `read-string' with `TeX-read-string'; + add copyright notice. + + * style/graphicx.el: Replace `read-string' with `TeX-read-string'. + + * style/inputenc.el: Replace `read-string' with `TeX-read-string'. + + * style/letter.el: Replace `read-string' with `TeX-read-string'. + + * style/longtable.el: Replace `read-string' with `TeX-read-string'. + + * style/mathtools.el: Replace `read-string' with `TeX-read-string'. + + * style/natbib.el: Replace `read-string' with `TeX-read-string'. + + * style/paralist.el: Replace `read-string' with `TeX-read-string'. + + * style/plext.el: Replace `read-string' with `TeX-read-string'. + + * style/prosper.el: Replace `read-string' with `TeX-read-string'. + + * style/psfig.el: Replace `read-string' with `TeX-read-string'. + + * style/pstricks.el: Replace `read-string' with `TeX-read-string'. + + * style/scrbase.el: Replace `read-string' with `TeX-read-string'. + + * style/scrlttr2.el: Replace `read-string' with `TeX-read-string'. + + * tex-info.el: Replace `read-string' with `TeX-read-string'. + + * tex.el: Replace `read-string' with `TeX-read-string'. + +2014-11-04 Tassilo Horn + + * tex.el (VirTeX-common-initialization): Define a variable alias + for find-file-hook on XEmacs. + +2014-11-04 Stefan Monnier + + * toolbar-x.el: Adjust copyright years. + (require): Require cl at compile-time. + (toolbarx-good-option-list-p): Use pushnew instead of add-to-list. + + * tex.el (url-unreserved-chars): Declare to silence byte-compiler. + (TeX-tree-expand): Use pushnew instead of add-to-list. Iterate + path-list in reversed order. + (TeX-style-path): Use mapc instead of mapcar for side-effects. + (TeX-file-extensions, BibTeX-file-extensions) + (TeX-Biber-file-extensions): Declare to silence byte-compiler. + (TeX-tree-roots): Use pushnew instead of add-to-list. + (TeX-search-files-by-type): Use setq/pushnew instead of + dolist/add-to-list. + (TeX-doc): Use pushnew instead of add-to-list. + + * tex-info.el (require): Require cl at compile-time. + (Texinfo-insert-node): Use pushnew instead of add-to-list. + (reftex-section-levels-all, reftex-level-indent) + (reftex-label-menu-flags, reftex-tables-dirty): Always + forward-declare (not only at compile-time). + (when): declare-function only at compile-time. + + * tex-fold.el: Adjust copyright years. + (require): Require cl at compile-time. + (TeX-fold-region-macro-or-env, TeX-fold-update-at-point): Use + pushnew instead of add-to-list. + (TeX-fold-hide-item): Use setq instead of add-to-list. + + * tex-buf.el (font-lock-mode-enable-list) + (font-lock-auto-fontify, font-lock-defaults-alist): Declare vars + to silence byte-compiler. + + * multi-prompt.el: Adjust copyright years. + (multi-prompt): Don't let-bind unused var done. + (multi-prompt-next-must-match): Use minibuffer-completion-table + instead of dynamically bound table. + + * latex.el (require): Require cl at compile-time. + (title, name, level, done-mark, toc): Declare dynamic vars. + (LaTeX-env-document, TeX-arg-index-tag, TeX-arg-document) + (LaTeX-arg-usepackage, TeX-arg-verb, ): Rename unused arg. + (LaTeX-listify-package-options): Use setq instead of add-to-list + to add to local var. + (reftex-ref-macro-prompt, TeX-arg-item-label-p) + (TeX-arg-right-insert-p): Declare to silence byte-compiler. + (LaTeX-indent-line): Use pushnew instead of add-to-list. + (LaTeX-fill-move-to-break-point): Don't let-bind unused math-sep. + (LaTeX-section-enable-symbol): Downcase arg. + (LaTeX-indent-tabular): Use mapc instead of mapcar for + side-effects. + + * context.el (done-mark, reference, title, name, level): Declare + dynamic vars without global nil value. + (ConTeXt-section): let-bind reference. Remove binding of unused + var toc. + (ConTeXt-numbered-section-hook, ConTeXt-unnumbered-section-hook): + Improve docstring. + (ConTeXt-find-matching-stop): Don't let-bind pos. + (ConTeXt-optional-argument-insert) + (ConTeXt-required-argument-insert, ConTeXt-indent-line): Rename + unused arg. + (ConTeXt-mode-common-initialization): Use fboundp to check if + make-local-hook is defined. + + * bib-cite.el: Expand copyright years. + (bib-cite-is-XEmacs): Remove. + (bib-cite-minor-mode, bib-cite-setup-highlight-mouse-keymap) + (bib-etags, bib-highlight-mouse, bib-toggle-highlight) + (bib-etags-find-noselect): Check for XEmacs with featurep. + (bib-cite-setup-mouse-function): Rename unused arg. + (bib-apropos): Use mapc instead of mapcar for side effects. + (bib-cite-fontify-help-xemacs): Define only on XEmacs. + (bib-cite-fontify-help-as-bibtex, bib-cite-fontify-help-as-latex): + Check for XEmacs with featurep. Fix fontification code. + (bib-display-this-ref): Use point-min instead of 1. + (TeX-auto-save, TeX-auto-update, TeX-auto-regexp-list): Declare to + silence the byte-compiler. + +2014-11-03 Arash Esbati + + * style/zlmtt.el: New file. + + * style/XCharter.el: New file. + + * style/textcomp.el: New file. + + * style/MyriadPro.el: New file. + + * style/mdsymbol.el: New file. + + * style/fontaxes.el: New file. + + * style/eso-pic.el: New file. + + * style/AnonymousPro.el: New file. + +2014-11-02 Arash Esbati + + * style/MinionPro.el (TeX-add-symbols): Remove `figureversion', + `textsw', `textssc', `sscshape' and `swshape'. + (TeX-run-style-hooks): Added "fontaxes". + + * style/MinionPro.el (LaTeX-MinionPro-package-options): Added + additional options from v2.3 of `MinionPro.sty', available from + + +2014-11-01 Davide G. M. Salvetti + + * tex.el (TeX-file-line-error): New customizable option. + (TeX-expand-list): New expander "$(file-line-error)". + (TeX-command-list): Use it. + (LaTeX-command-style): Use it. + + * doc/auctex.texi (Processor Options): Document + `TeX-file-line-error'. + + * doc/changes.texi: Mention `TeX-file-line-error'. + +2014-10-31 Mosè Giordano + + * Makefile.in (CTANDIR): New variable. + (preview-ball): Create a top level directory "preview/" in the + preview tarball, as required by CTAN. Save the tarball to + $(CTANDIR) instead of $(FTPDIR). + +2014-10-29 Mosè Giordano + + * Version 11.88 released. + +2014-10-29 Matthew Leach + + * latex.el (LaTeX-indent-environment-list): Remove setter + lambda. + (LaTeX--tabular-like-end): Remove variable. + (LaTeX-indent-tabular): Move setter function from + LaTeX-indent-environment-list to generate tabular-end regex when + called. + +2014-10-29 Mosè Giordano + + * latex.el (LaTeX-largest-level-set): Set `outline-heading-alist' + only if it is bound. + + * .gitignore: Ignore preview/preview.el. + + * Makefile.in (DISTCLEANFILES): Add preview/preview.el. + (release-commit): Write new version announcement also into + preview/ChangeLog. + + * aclocal.m4: Add a third argument to + `AC_DATE_VERSION_FROM_CHANGELOG' specifying the ChangeLog file. + + * configure.ac: Use new third argument of + `AC_DATE_VERSION_FROM_CHANGELOG'. Retrieve preview date and + version from its ChangeLog. Add preview/preview.el to output + files. + +2014-10-22 Mosè Giordano + + * RELEASE: Update AUCTeX version, the new features section, and + the list of contributors. + + * configure.ac: Update AUCTeX version. + + * doc/changes.texi: Mention generic bug fixes for 11.88 release. + + * doc/tex-ref.tex: Update AUCTeX version and copyright years + across the file. + Add now working `TeX-previous-error' key-binding. + + * tex.el: Update copyright year. + + * doc/Makefile.in: Make it possible to build the HTML doc with + `makeinfo' if `texi2html' is not available. Add new + `TEXI2HTML_TOC' variable. + (extradist): Use `TEXI2HTML_TOC'. + (html/$(TEXI2HTML_TOC)): Use `TEXI2HTML_TOC'. Fix splitting + option to HTML engine. Suggested by Norbert Preining. + + * latex.el (LaTeX-newline): Fix for when + `comment-auto-fill-only-comments' is non-nil. Suggested by Piet + van Oostrum. + +2014-10-13 Matthew Leach + + * style/cleveref.el: New file. + +2014-10-02 Ikumi Keita + + * tex.el (featurep): Activate mark in the GNU Emacs version of + TeX-activate-mark instead of being a no-op. + (TeX-insert-dollar): Use set-mark instead of push-mark in order to + avoid duplicate marks. + +2014-10-02 Ikumi Keita + + * texmathp.el (texmathp-tex-commands-default): Move equation* + environment to AMS-LaTeX section. + (texmathp-why): Fix docstring. + +2014-10-02 Ikumi Keita + + * style/amstext.el (LaTeX-amstext-package-options): Rename from + `LaTeX-amstext-package-option'. + +2014-10-02 Ikumi Keita + + * tex-info.el (Texinfo-mark-environment, Texinfo-mark-section) + (Texinfo-mark-node): Use `push-mark' instead of `set-mark'. + + * latex.el (LaTeX-mark-environment): Ditto. + + * context.el (ConTeXt-mark-environment): Ditto. + +2014-09-25 Tassilo Horn + + * latex.el (LaTeX-insert-environment): Pass correct \end buffer + position to hooks in LaTeX-after-insert-env-hooks. + +2014-09-13 Vincent Belaïche + + * latex.el (LaTeX-dialect): Correct doctstring for consistency + with definition of function TeX-add-style-hook. + + * doc/auctex.texi (Simple Style): modify example with + 'TeX-add-style-hook', so that 3rd argument is added. Modify @defun + of 'TeX-add-style-hook' also to document addition of 3rd argument. + +2014-09-11 Vincent Belaïche + + * doc/changes.texi: Add information about style hook labelling by dialect. + + * doc/todo.texi (Bugs): Update Bug #1 about style hook clash. + + * style/xspace.el ("xspace"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/xparse.el ("xparse"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/virtex.el ("virtex"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/verbatim.el ("verbatim"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/varioref.el ("varioref"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/url.el ("url"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/units.el ("units"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/unicode-math.el ("unicode-math"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/ulem.el ("ulem"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/tabulary.el ("tabulary"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/tabularx.el ("tabularx"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/swedish.el ("swedish"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/subfigure.el ("subfigure"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/slovak.el ("slovak"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/slides.el ("slides"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/siunitx.el ("siunitx"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/shortvrb.el ("shortvrb"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/setspace.el ("setspace"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/scrreprt.el ("scrreprt"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/scrpage2.el ("scrpage2"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/scrlttr2.el ("scrlttr2"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/scrbook.el ("scrbook"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/scrbase.el ("scrbase"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/scrartcl.el ("scrartcl"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/ruby.el ("ruby"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/report.el ("report"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/ragged2e.el ("ragged2e"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/pstricks.el ("pstricks"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/pst-slpe.el ("pst-slpe"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/pst-plot.el ("pst-plot"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/pst-node.el ("pst-node"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/pst-grad.el ("pst-grad"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/psfig.el ("psfig"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/prosper.el ("prosper"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/polski.el ("polski"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/polish.el ("polish"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/plhb.el ("plhb"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/plfonts.el ("plfonts"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/plext.el ("plext"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/placeins.el ("placeins"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/pdfsync.el ("pdfsync"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/paralist.el ("paralist"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/nomencl.el ("nomencl"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/nicefrac.el ("nicefrac"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/ngerman.el ("ngerman"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/naustrian.el ("naustrian"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/natbib.el ("natbib"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/nameref.el ("nameref"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/multirow.el ("multirow"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/multind.el ("multind"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/multido.el ("multido"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/multicol.el ("multicol"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/mflogo.el ("mflogo"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/metalogo.el ("metalogo"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/memoir.el ("memoir"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/mdwlist.el ("mdwlist"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/mathtools.el ("mathtools"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/makeidx.el ("makeidx"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/luacode.el ("luacode"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/ltxdoc.el ("ltxdoc"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/ltx-base.el ("ltx-base"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/lscape.el ("lscape"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/longtable.el ("longtable"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/listings.el ("listings"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/lipsum.el ("lipsum"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/lettrine.el ("lettrine"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/letter.el ("letter"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/latexinfo.el ("latexinfo"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/kpfonts.el ("kpfonts"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/kantlipsum.el ("kantlipsum"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/jurabib.el ("jurabib"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/jura.el ("jura"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/jsbook.el ("jsbook"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/jsarticle.el ("jsarticle"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/jreport.el ("jreport"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/jbook.el ("jbook"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/jarticle.el ("jarticle"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/j-report.el ("j-report"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/j-book.el ("j-book"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/j-article.el ("j-article"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/italian.el ("italian"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/inputenc.el ("inputenc"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/index.el ("index"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/imakeidx.el ("imakeidx"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/icelandic.el ("icelandic"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/hyperref.el ("hyperref"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/harvard.el ("harvard"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/graphicx.el ("graphicx"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/graphics.el ("graphics"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/german.el ("german"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/frenchb.el ("frenchb"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/french.el ("french"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/francais.el ("francais"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/footmisc.el ("footmisc"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/fontspec.el ("fontspec"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/foils.el ("foils"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/flashcards.el ("flashcards"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/filecontents.el ("filecontents"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/fancyvrb.el ("fancyvrb"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/fancyref.el ("fancyref"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/fancynum.el ("fancynum"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/fancyhdr.el ("fancyhdr"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/exercise.el ("exercise"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/everysel.el ("everysel"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/epsf.el ("epsf"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/epigraph.el ("epigraph"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/english.el ("english"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/emp.el ("emp"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/dutch.el ("dutch"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/doc.el ("doc"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/dk.el ("dk"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/dinbrief.el ("dinbrief"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/danish.el ("danish"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/czech.el ("czech"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/csquotes.el ("csquotes"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/comment.el ("comment"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/captcont.el ("captcont"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/bulgarian.el ("bulgarian"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/booktabs.el ("booktabs"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/book.el ("book"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/bm.el ("bm"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/bigstrut.el ("bigstrut"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/bigdelim.el ("bigdelim"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/biblatex.el ("biblatex"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/beamer.el ("beamer"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/babel.el ("babel"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/austrian.el ("austrian"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/article.el ("article"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/array.el ("array"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/amsthm.el ("amsthm"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/amstext.el ("amstext"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/amstex.el ("amstex"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/amssymb.el ("amssymb"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/amsopn.el ("amsopn"): Add LaTeX-dialect to + TeX-add-style-hook call. Update header with correct filename. + + * style/amsmath.el ("amsmath"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/amsbsy.el ("amsbsy"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/amsbook.el ("amsbook"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/amsart.el ("amsart"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/alphanum.el ("alphanum"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/alltt.el ("alltt"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/afterpage.el ("afterpage"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/acronym.el ("acronym"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/acro.el ("acro"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/MinionPro.el ("MinionPro"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/CJKutf8.el ("CJKutf8"): Add LaTeX-dialect to TeX-add-style-hook call. + + * style/CJK.el ("CJK"): Add LaTeX-dialect to TeX-add-style-hook call. + + * bib-cite.el (eval-after-load "bibtex"): Add hook + TeX-bibtex-set-BibTeX-dialect to BibTex mode, this will set + 'TeX-style-hook-dialect' to :bibtex for BibTeX files so that + Mosè's problem should be solved. + + * latex.el (LaTeX-common-initialization): set + 'TeX-style-hook-dialect' to :latex for LaTeX files, and those in + LaTeX derived modes. Add LaTeX-dialect as DIALECT argument to all + calls of TeX-add-style-hook. + + * tex.el (TeX-style-hook-list): Update docstring to make clear + that style hooks can also be in the form '[TeX-style-hook HOOK-FUN + DIALECT-SET]'. + (TeX-bibtex-set-BibTeX-dialect): New defun. + (TeX-style-hook-dialect-weight-alist): New defconst. + (TeX-shdex-eval): New defun. + (TeX-shdex-or TeX-shdex-and TeX-shdex-nor TeX-shdex-not) + (TeX-shdex-in-p TeX-shdex-listify): New defsubst. + (TeX-style-hook-dialect): New defvar, used to have style hooks + called only in corresponding context. + (TeX-add-style-hook): Add optional argument context for marking + hooks that must run only in non default (aka nil) dialect. + (TeX-keep-hooks-in-dialect): New defun, used for unloading only + those hooks in a dialect list. + (TeX-unload-style): Add optional argument context-list for + unloading only those hooks marked for contexts in that + context-list. + (TeX-run-style-hooks): Run style hook only when current style hook + context matches context for which hook is marked. + + * tex-info.el (Texinfo-environment-list): Add 'html' and 'float' + environments. + (TeX-texinfo-mode): set 'TeX-style-hook-dialect' to :texinfo for + Texinfo files. Add macro '@caption'. + +2014-09-08 Tassilo Horn + + * tex.el (TeX-assoc-string): Remove docstring from defalias since + that's not supported with XEmacs. + +2014-08-25 Florent Rougon (tiny change) + + * tex-buf.el (TeX-command-expand): Fix possible endless loop in + file name expansion. + +2014-08-24 Mosè Giordano + + * tests/tex/command-expansion.el: New test file. + +2014-08-24 Florent Rougon (tiny change) + + * tex.el (TeX-expand-list): Add the previous position to the + lenght of the expanded string to get the current position in the + %' expander. + +2014-08-18 Vincent Belaïche + + * font-latex.el (font-latex-add-quotes): Code optimization: use + '(add-to-list (make-local-variable (quote foo)) some-value)' + instead of '(make-local-variable (quote foo)) (add-to-list 'foo + some-value)' wherever possible. + + * bib-cite.el (bib-cite-minor-mode) + (bib-cite-setup-highlight-mouse-keymap): Code optimization: use + '(set (make-local-variable (quote foo)) some-value)' instead of + '(make-local-variable (quote foo)) (setq foo some-value)' wherever + possible. + + * latex.el (BibTeX-auto-store) + (LaTeX-common-initialization): Ditto. + + * tex-info.el (TeX-texinfo-mode): Code optimization: use '(set + (make-local-variable (quote foo)) some-value)' instead of + '(make-local-variable (quote foo)) (setq foo some-value)' wherever + possible. Add in style Texinfo standard macros '@acronym' and + '@tie'. + + * tex.el (TeX-assoc-string) new defalias to work-around missing + assoc-string in XEmacs. + (TeX-unload-style): Code optimization: use 'TeX-assoc-string' + instead of 'assoc' to search style in 'TeX-style-hook-list', and + use delq on returned value of assoc-string for removing the style + --- on the one hand delq will go through the whole list rather + than stop after the first match like in original code, but on the + other hand comparison are faster because eq instead of equal is + used and we are working on assoc cell rather than on key, so less + indirection, furthermore delq is C code. Anyway that make the code + much smaller and easier to understand. + (TeX-file-extensions): Add txi amongst extension of texinfo files, + for consistency with info node '(texinfo) Minimum' + (TeX-run-style-hooks): Code optimization: use 'TeX-assoc-string' + instead of 'assoc' to search style in 'TeX-style-hook-list'. + (VirTeX-common-initialization): Code optimization: use '(set + (make-local-variable (quote foo)) some-value)' instead of + '(make-local-variable (quote foo)) (setq foo some-value)' wherever + possible. + +2014-08-18 Tassilo Horn + + * font-latex.el (font-latex-set-syntactic-keywords): Allow for a + mandatory argument for a verbatim environment. + +2014-08-15 Vladimir Lomov + + * style/mathtools.el ("mathtools"): Don't use the removed + `LaTeX-amsmath-env-aligned' function. + +2014-08-14 Mosè Giordano + + * latex.el (LaTeX-insert-label): Remove. + (LaTeX-label): Add a new mandatory argument. Do not use + `LaTeX-insert-label'. Determine the prefix at the beginning of + the function and insert the label only if the prefix is non nil. + (LaTeX-section-label, LaTeX-env-figure, LaTeX-env-label): Use the + second mandatory argument of `LaTeX-label'. + + * style/amsmath.el: Update copyright years. + ("amsmath"): Append the environments to `LaTeX-label-alist' + instead of prepeding them. Use the second mandatory argument of + the `LaTeX-label' function. + + * style/longtable.el: Update copyright years. + ("longtable"): Move addition of "longtable" environment to + `LaTeX-label-alist' inside the style hook. Append the environment + to the alist instead of prepending it. Use the second mandatory + argument of the `LaTeX-label' function. + + * doc/auctex.texi (Sectioning, Environments): Remove references to + `LaTeX-insert-label'. + (Environments): Document `LaTeX-label-alist'. + + * doc/changes.texi: Remove references to `LaTeX-insert-label'. + +2014-08-12 Mosè Giordano + + * latex.el (LaTeX-insert-label): Rename from + `LaTeX-auto-insert-label' and mention sections in the doc-string. + (LaTeX-label): Update accordingly. + + * doc/auctex.texi (Sectioning): Mention `LaTeX-insert-label'. + (Environments): Update `LaTeX-insert-label' name and document use + for sectioning commands. + (Environments, Completion): Prettify + `TeX-complete-expert-commands' documentation by using a table + environment. + + * doc/changes.texi: Rename `LaTeX-auto-insert-label' to + `LaTeX-insert-label' and mention sections too. + +2014-08-11 Mosè Giordano + + * tex-buf.el (TeX-command): Keep the frame and the buffer + associate to the error overview if the command to be run is View. + + * latex.el (LaTeX-auto-insert-label): New customizable variable. + (LaTeX-label): Use it. + + * doc/auctex.texi (Environments): Document + `LaTeX-auto-insert-label'. + + * doc/changes.texi: Mention `LaTeX-auto-insert-label'. Fix a + couple of bad-boxes in the PDF output of the manual. + +2014-07-25 Tassilo Horn + + * latex.el (LaTeX-largest-level-set): Adapt + `outline-heading-alist' according to largest level in order to + make `outline-promote' (and others) work correctly. + +2014-07-25 Mosè Giordano + + * doc/auctex.texi (Adding Macros): Document `TeX-date-format'. + + * doc/changes.texi: Mention `TeX-date-format'. + + * latex.el (TeX-date-format): New customizable option. + Suggested by Uwe Brauer. + (TeX-arg-date): Use it. + +2014-07-17 Mosè Giordano + + * Makefile.in: Update copyright years. + (EXCLUDEDFILES): Rename from GITFILES. Remove also .cvsignore and + tests from the release tarball. + (release-commit): More precise suggestion to push tag and release + commit. + (tar-ball): Use EXCLUDEDFILES in place of GITFILES. + +2014-07-15 Ikumi Keita + + * latex.el: Enhance array and tabular(*) environments support. + (LaTeX-env-array): Add call to `LaTeX-item-array'. + (LaTeX-env-tabular*): Add call to `LaTeX-item-tabular*'. + (LaTeX-array-skipping-regexp): New variable. + (LaTeX-tabular*-skipping-regexp): Ditto. + (LaTeX-item-array): New function. Put line break macro on the + last line and insert suitable number of ampersands. + (LaTeX-item-tabular*): Ditto. + (LaTeX-insert-ampersands): New function. Insert suitable number + of ampersands. + (LaTeX-array-column-letters): New variable. Column letters for + array-like environments. + (LaTeX-array-count-columns): New function. Count number of + ampersands to be inserted. + (LaTeX-common-initialization): Add entries to LaTeX-item-list to + use `LaTeX-item-array' and `LaTeX-item-tabular*'. + + * style/amsmath.el: Enhance alignat-like environments support + as well as some cleanups. + (LaTeX-item-equation-alignat): New function. Insert contents to + terminate a line in multi-line equations environment. + (LaTeX-amsmath-env-alignat): Use it. Add doc string. + (LaTeX-amsmath-env-alignedat): Ditto. + (LaTeX-amsmath-env-aligned): Removed. Just specifying a prompt + string for an optional argument is enough. + (LaTeX-item-equation): Take over the job of + `LaTeX-item-equations'. Add an optional `suppress' argument: + when it is non-nil skip putting line break macro. Add doc string. + (LaTeX-item-equations): Removed. Its task is now covered by + `LaTeX-item-equation'. + (LaTeX-item-equation-alignat): New function. Insert ampersands + according to the columns number, as well as calling + `LaTeX-item-equation'. + (LaTeX-amsmath-alignat-number-of-ampersands): New function. + ("amsmath"): Arrange setups of variables to adopt the above + changes. + + * style/array.el ("array"): Change `LaTeX-array-column-letters' + locally to include addtional letters extended in array.sty. + + * style/plext.el: New style file. Add support for extended + format for array-like environments. + + * Makefile.in (STYLESRC): Include style/plext.el. + + * doc/auctex.texi: Add documentation for the above enhancements. + + * doc/changes.texi: Ditto. + +2014-07-14 Mosè Giordano + + * tex-buf.el (TeX-next-error): Do not pass `reparse' argument to + `next-error' in XEmacs as it is not supported. + (TeX-error-overview-frame, TeX-error-overview-buffer-name): Move + before their first use in order to prevent a runtime error in + XEmacs and GNU Emacs 21. Reported by Ikumi Keita. + (TeX-parse-TeX): Manually set `item' to nil when + `TeX-error-last-visited' is negative. + (TeX-error-description-error, TeX-error-description-warning) + (TeX-error-description-tex-said): Set to nil in XEmacs and GNU + Emacs 21. Reported by Ikumi Keita. + +2014-07-13 Mosè Giordano + + * latex.el (TeX-latex-mode): Add second argument to + `local-variable-p', mandatory in XEmacs. Suggested by Ikumi + Keita. + + * preview/preview.el (preview-dump-state): Ditto. + + * style/biblatex.el ("biblatex"): Ditto. + + * tex.el (TeX-how-many): Make the function return a number also in + XEmacs and Emacs 21. Suggested by Ikumi Keita. + +2014-07-12 Mosè Giordano + + * tex-buf.el (TeX-error-description-error): Do not use the + `default' display, not supported by GNU Emacs 21 and XEmacs 21.4. + (TeX-error-description-warning): Ditto. + +2014-07-11 Mosè Giordano + + * tex-buf.el (TeX-error-description-error): Make face definition + XEmacs compatible. + (TeX-error-description-tex-said): Ditto. + (TeX-error-description-help): Ditto. + + * tex.el (nil): Handle the case of a non-available crm.el with a + `condition-case', instead of using the third argument of + `require', not recognized by XEmacs 21.4. + (and): Check whether dbus support is available before requiring + dbus.el. + +2014-07-02 Mosè Giordano + + * tex.el (TeX-expand-list): Set + `TeX-source-correlate-output-page-function' when necessary, in the + "%(outpage)" expander. + (TeX-source-correlate-method): Add an alist as a possible value + and change the default. + (TeX-source-correlate-method-active): Convert to a function. + (TeX-source-correlate-expand-options): Use the + `TeX-source-correlate-method-active' function. + (TeX-source-correlate-mode): Remove setting of the + `TeX-source-correlate-output-page-function' variable and of the + now deleted `TeX-source-correlate-method-active' variable. + (TeX-source-specials-view-expand-options): Use the + `TeX-source-correlate-method-active' function. + (TeX-mode-specific-command-menu-entries): Hide "Previous Error" + and "Error Overview" entries when not available. + + * context.el: Update copyright years. + (ConTeXt-expand-options): Use the + `TeX-source-correlate-method-active' function. + + * doc/auctex.texi (I/O Correlation): Update documentation of + `TeX-source-correlate-method'. + + * doc/changes.texi: Mention change to the default value of + `TeX-source-correlate-method'. + +2014-06-29 Mosè Giordano + + * doc/todo.texi (Mid-term Goals): Remove "More flexible option and + command handling" item: we now have `TeX-command-extra-options'. + (Wishlist): Remove "Poor man's Source Specials": AUCTeX supports + source specials and SyncTeX. + (Wishlist): Remove "multiple completion for \bibliography" item: + "\bibliography" does complete multiple arguments. + +2014-06-28 Mosè Giordano + + * tex-buf.el (TeX-command): Kill the frame and buffer associated + to the error overview before running commands. + (TeX-TeX-sentinel): Open error overview if + `TeX-error-overview-open-after-TeX-run' is non-nil and there are + errors or warnings to show. + (TeX-LaTeX-sentinel): Ditto. + (TeX-find-display-help): Set `runbuf' to `TeX-active-buffer' since + this function may be called also from the error overview buffer. + (TeX-error-description-faces): Change group to more appropriate + `TeX-output'. + (TeX-error-overview-active-buffer): New variable. + (TeX-error-overview-orig-frame): Ditto. + (TeX-error-overview-orig-window): Ditto. + (TeX-error-overview-frame): Ditto. + (TeX-error-overview-setup): New customizable variable. + (TeX-error-overview-setup): New function. + (TeX-error-overview-goto-source): Ditto. + (TeX-error-overview-make-entries): Ditto. + (TeX-error-overview-next-error): Ditto. + (TeX-error-overview-previous-error): Ditto. + (TeX-error-overview-quit): Ditto. + (TeX-error-overview-mode-map): New variable. + (TeX-error-overview-list-entries): Ditto. + (TeX-error-overview-mode): New major mode. + (TeX-error-overview-buffer-name): New constant. + (TeX-error-overview-frame-parameters): New customizable variable. + (TeX-error-overview-open-after-TeX-run): Ditto. + (TeX-error-overview): New function. + (TeX-find-display-help): Expand the name of the file to be visited + starting from the directory of the master file. + (TeX-error-overview-make-entries): Add optional `master-dir' + argument, to shorten file names when they are relative. + (TeX-error-overview): Pass `TeX-master-directory' as argument to + `TeX-error-overview-make-entries'. + + * tex.el (TeX-error-overview): Autoload `TeX-error-overview'. + (TeX-mode-specific-command-menu-entries): Add an entry for the + error overview. + + * doc/auctex.texi (Debugging): Document error overview. + + * doc/changes.texi: Mention error overview. Add local variables + to the end of the file. + + * doc/todo.texi: Add local variables to the end of the file. + (Wishlist): Update entry about error reporting. + +2014-06-21 Mosè Giordano + + * tex-buf.el (TeX-parse-TeX): Use `TeX-find-display-help' in place + of `TeX-error-list-find-display-help'. + (TeX-error-list-find-display-help): Removed, replaced by more + general `TeX-find-display-help'. + (TeX-find-display-help): New function. + (TeX-error): Append nils to the `TeX-error-list' entry to make + each entry of the same lenght for both errors and warnings. + Append also `TeX-error-point'. This fixes a bug occurring when + `TeX-display-help' is set to `expert'. Use + `TeX-find-display-help' to display the help. + (TeX-warning): Append `TeX-error-point' to the `TeX-error-list' + entry to fix the above mentioned bug. Use `TeX-find-display-help' + to display the help. + +2014-06-04 Mosè Giordano + + * tex-buf.el (TeX-parse-TeX): Use + `TeX-error-list-find-display-help'. + (TeX-error-list-find-display-help): New function. + (TeX-warning): Use `bad-box' when there is a bad box. + (TeX-warning--find-display-help): Cater for bad boxes. + (TeX-help-error): Ditto. + +2014-06-02 Mosè Giordano + + * tex-buf.el (TeX-error--find-display-help): Use new fourth + argument of `TeX-help-error'. + (TeX-warning): Rename mandatory argument to `warning'. Do not add + leading "** " to warning string. + (TeX-warning--find-display-help): Use new fourth argument of + `TeX-help-error'. + (TeX-error-description-faces): New group. + (TeX-error-description-error): New face. + (TeX-error-description-warning): Ditto. + (TeX-error-description-tex-said): Ditto. + (TeX-error-description-help): Ditto. + (TeX-help-error): Add new `type' argument. Color help messages + using the new faces. + (TeX-warning): Preserve point when searching backward. In some + cases this prevents infinite loops in `TeX-parse-all-errors' and + fixes wrong detection of context string. + +2014-05-27 Mosè Giordano + + * tex.el (TeX-mode-specific-command-menu-entries): Add + `TeX-previous-error'. + + * tex-buf.el (TeX-error-list): Fix typo. + (TeX-parse-all-errors): Ditto. + +2014-05-23 Stefan Monnier + + Backport from ELPA repository. + * tex-site.el (TeX-modes-set): Use advice-add if available. + * font-latex.el (font-latex-make-sectioning-faces): Don't rely on + dynamic scoping for `num'. + (font-latex-make-built-in-keywords): Don't use `eval' needlessly. + (font-latex-doctex-syntactic-keywords): Declare before first use. + (font-latex-match-command-with-arguments): + Stay away from `add-to-list' on let-bound variables. + (font-latex-match-command-in-braces): Remove unused var `end'. + +2014-05-20 Mosè Giordano + + * tex-buf.el: Update copyright years. + (TeX-error-last-visited): New buffer-local variable. + (TeX-get-parse-function): New function. + (TeX-next-error): Add `apt' argument and make all arguments + optional. Use `TeX-get-parse-function'. + (TeX-previous-error): Use `TeX-get-parse-function'. Use + `TeX-parse-TeX' to move between errors when possible. + (TeX-TeX-sentinel): Parse the output log when + `TeX-parse-all-errors' is non-nil. + (TeX-LaTeX-sentinel): Ditto. + (TeX-parse-reset): Add an optional `reparse' argument and reparse + the output log when it is non-nil. Reset also `TeX-error-list' + and `TeX-error-last-visited'. + (TeX-parse-command): Add `arg' argument. + (TeX-parse-TeX): Add `arg' argument. When `TeX-parse-all-errors' + is non-nil, use `TeX-error-list' to move to the error point. + (TeX-error-list): New buffer-local variable. + (TeX-parse-all-errors): New customizable variable. + (TeX-parse-all-errors): New function. + (TeX-parse-error): Add an optional `store' argument. Make the + function return non-nil when an error or a warning is found. + (TeX-error): Add an optional `store' argument: when it is non-nil + store the relevant information about the error in + `TeX-error-list'. Use `TeX-error--find-display-help'. + (TeX-error--find-display-help): New function. + (TeX-warning): Add an optional `store' argument: when it is + non-nil store the relevant information about the warning in + `TeX-error-list'. Use `TeX-warning--find-display-help'. + (TeX-warning--find-display-help): New function. + (TeX-output-mode-map): Bind `p' to the now working + `TeX-previous-error'. + + * doc/auctex.texi (Debugging): Document `TeX-previous-error' and + `TeX-parse-all-errors'. Update `TeX-next-error'. + + * doc/changes.texi: Update copyright years. Mention + `TeX-next-error' and `TeX-previous-error' changes and the new + `TeX-parse-all-errors'. + + * doc/todo.texi: Update copyright years. + (Wishlist): Update a couple of items related to error parsing. + +2014-05-17 Mosè Giordano + + * font-latex.el: Update copyright years. + (font-latex-update-sectioning-faces): Make sure + `height-scale' is a floating point number. + (font-latex-make-sectioning-faces): Ditto. + +2014-05-10 Mosè Giordano + + * style/siunitx.el: Update copyright years and specify last + `siunitx' version supported. Hard wrap lines longer than 80 + columns. + (LaTeX-siunitx-regexp): Move the escape character out of the group + matching the unit name. + (LaTeX-arg-siunitx-unit): Add `prefix' argument. Replace the + space with `TeX-esc' as the completion separator. + (LaTeX-arg-define-siunitx-unit): Define a default prompt; set + `initial-input' to nil; use `TeX-esc' as prefix to the given + input. + ("siunitx"): Remove the escape character from the unit names. + +2014-05-02 Jobst Hoffmann (tiny change) + + * style/listings.el ("listings"): Fix typo. + +2014-05-01 Mosè Giordano + + * font-latex.el (font-latex-set-syntactic-keywords): Fix + fontification of the optional argument to a verbatim-like + environment. + +2014-04-16 Tassilo Horn + + * tex-buf.el (TeX-parse-error): Add another exception. + +2014-04-06 Tassilo Horn + + * tex-info.el (TeX-texinfo-mode): Use `texinfo-current-defun-name' + in `C-x 4 a'. + +2014-04-04 Mosè Giordano + + * latex.el (LaTeX-add-environments): Move advising of + `LaTeX-add-environments' after definition of + `LaTeX-environment-menu' and `LaTeX-environment-modify-menu' + variables to fix assignment to free variable warnings. + + * tex-style.el: Update coyright years. + (LaTeX-biblatex-use-Biber): New variable. Mark as + safe-local-variable. + + * latex.el (TeX-latex-mode): Add setting of `LaTeX-using-Biber' to + `TeX-update-style-hook'. + + * style/biblatex.el ("biblatex"): Use `LaTeX-biblatex-use-Biber' + value to set `LaTeX-using-Biber' when it is set locally. + + * tex-bar.el: Update copyright years. + (LaTeX-install-toolbar): Append toolbar refresh to + `TeX-update-style-hook' instead of prepending it. + + * doc/auctex.texi: Update copyright years. + (Selecting a Command): Document `LaTeX-biblatex-use-Biber'. + + * doc/changes.texi: Mention `LaTeX-biblatex-use-Biber' change. + +2014-04-02 Mosè Giordano + + * style/biblatex.el: Update copyright years and specify last + `biblatex' version supported. + (LaTeX-biblatex-executebibliographyoptions-options): Update. + (LaTeX-biblatex-language-list): Ditto. + (LaTeX-arg-biblatex-cites): Fix condition on `items' variable to + adapt to the `TeX-completing-read-multiple' return value change. + +2014-03-17 Nicolas Richard + + * style/exercise.el: New file. + +2014-03-18 Tassilo Horn + + * doc/auctex.texi: Mention that `TeX-PDF-mode' is enabled by + default. + + * tex.el (TeX-PDF-mode): Enable TeX PDF mode by default. + + * tex-buf.el (TeX-command-master): Ask for TeX-master if it cannot + be determined otherwise. + +2014-03-15 Mosè Giordano + + * tex.el (TeX-view-command-raw): Throw an error when `spec' is + nil, otherwise when the function returns nil `TeX-command-expand' + enters an infinite loop. + + * style/paralist.el: Update copyright years. + ("paralist"): Use `LaTeX-provided-package-options-member' to + conditionally define environments. + +2014-03-12 Tassilo Horn + + * multi-prompt.el (multi-prompt): Return nil on empty input. + + * tex.el (TeX-completing-read-multiple): Define it so that empty + input results in nil across different emacs versions (<= 24.3 + vs. later versions). + + * style/biblatex.el ("biblatex"): Use + `TeX-completing-read-multiple' instead of + `completing-read-multiple'. + (LaTeX-arg-biblatex-cites): Use `TeX-completing-read-multiple' and + adapt handling of return value. + + * style/pstricks.el (LaTeX-package-parameters): Adapt to + `TeX-completing-read-multiple' change. + +2014-03-11 Tassilo Horn + + * latex.el (LaTeX-arg-usepackage-read-packages-with-options): Fix + bug that caused AUCTeX to query for packages infinitely. + + * context.el (ConTeXt-add-environments): Advice instead of + renaming and redefining generated function. + + * latex.el (LaTeX-close-environment): Remove non-interactive + `next-line' usage compile warning. + (LaTeX-add-bibliographies): Advice instead of renaming and + redefining generated function. + (LaTeX-add-environments): Ditto. + +2014-03-10 Tassilo Horn + + * latex.el (LaTeX-fill-break-at-separators): Default to opening + and closing math switches. + +2014-03-06 Mosè Giordano + + * doc/auctex.texi (Processor Options): Add missing pair of braces. + +2014-02-22 Mosè Giordano + + * latex.el (LaTeX-environment): Do not set + `LaTeX-default-environment' to `environment' if the latter is + equal to the current default environment. + +2014-02-21 Mosè Giordano + + * latex.el (LaTeX-arg-usepackage-read-packages-with-options): New + function. Now options are requested only if at least one package + has been provided. + (LaTeX-arg-usepackage-insert): New function. + (LaTeX-arg-usepackage): Use + `LaTeX-arg-usepackage-read-packages-with-options' and + `LaTeX-arg-usepackage-insert'. + (LaTeX-insert-usepackages): New function. + (LaTeX-env-document): Use it. + + * doc/auctex.texi (Environments): Document new behavior of + `LaTeX-env-document'. + + * doc/changes.texi: Mention it. + +2014-02-20 Mosè Giordano + + * tex.el (TeX-command-extra-options): New customizable variable. + (TeX-expand-list): New `%(extraopts)' expander. + (TeX-command-list): Use `%(extraopts)'. + + * doc/auctex.texi (Processor Options): Document + `TeX-command-extra-options'. + + * doc/changes.texi: Document it. + +2014-02-10 Tassilo Horn + + * style/english.el: New style for english documents so that + `TeX-language-en-hook' gets run. + + * Makefile.in (STYLESRC): Activate it. + + * doc/auctex.texi (languages): Document it. + +2014-02-04 Tassilo Horn + + * tex.el (TeX-auto-add-type): Convert to macro. + + * lpath.el: Don't silence byte-compiler. + + * latex.el (LaTeX-auto-style, LaTeX-auto-arguments) + (LaTeX-auto-optional, LaTeX-auto-env-args): Defvar explicitly + before use. + +2014-01-29 Tassilo Horn + + * tex-buf.el (TeX-command-query): Use default parameter of + `completing-read'. + + * tex.el (TeX-insert-macro): Use default parameter of + `completing-read'. + + * latex.el (LaTeX-environment, TeX-arg-document): Use default + parameter of `completing-read'. + +2014-01-22 Tassilo Horn + + * style/shortvrb.el (LaTeX-shortvrb-chars): Move from + tex-style.el. Set default value to nil because just loading + shortvrb does not make | a shortvrb char. One needs to define it + using \MakeShortVrb{\|}. Extend the docstring so that it tells + that one should usually set this variable only buffer-locally. + (LaTeX-shortvrb-chars): Declare it as safe local variable. + + * font-latex.el (font-latex-add-to-syntax-alist): Call + `font-latex-setup' to make syntactic font-lock changes effective. + +2014-01-21 Berend de Boer + + * context.el: distinguish between numbered and unnumbered sections. + +2014-01-15 Mosè Giordano + + * style/babel.el: Update copyright years and specify last `babel' + version supported. + (LaTeX-babel-language-list): Expand language list to all languages + mentioned in the last version of the manual. + (LaTeX-babel-active-languages): Update in order to parse the + `main' option and ignore the modifiers. + (LaTeX-babel-package-options): Turn the variable into a function + because now requires `TeX-read-key-val'. + +2014-01-11 Mosè Giordano + + * latex.el (LaTeX-current-environment): Make search for `\begin' + and `\end' case sensitive. + (docTeX-in-macrocode-p): Ditto. + (LaTeX-indent-calculate): Ditto. + (LaTeX-find-matching-end): Ditto. + (LaTeX-find-matching-begin): Ditto. + +2014-01-06 Vincent Belaïche + + * tex-info.el (Texinfo-reftex-hook): Replace use of + reftex-tables-dirty by that of reftex-default-label-alist-entries + to trigger call to reftex-compile-variables in a standard way. + The problem was that generating a TOC for a Texinfo file and then + for a LaTeX file was not working for the LaTeX file because the + Texinfo file was using LaTeX label style and as such + reftex-ensure-compiled-variables was not calling + reftex-compile-variables, which caused wrong + reftex-everything-regexp for sections. + +2014-01-06 Mosè Giordano + + * latex.el (LaTeX-math-insert): Use `TeX-electric-math' for + consistency with `TeX-insert-dollar'. + (LaTeX-math-cal): Ditto. + +2013-12-24 Mosè Giordano + + * tex-style.el (LaTeX-fontspec-arg-font-search): New customizable + variable. + (LaTeX-fontspec-font-list-default): Ditto. + + * style/fontspec.el (LaTeX-fontspec-arg-font): New function. + ("fontspec"): Use it. + + * doc/changes.texi: Mention `LaTeX-fontspec-arg-font-search' and + `LaTeX-fontspec-font-list-default'. + +2013-12-20 Mosè Giordano + + * style/imakeidx.el ("imakeidx"): Move addition of options to + `LaTeX-imakeidx-indexsetup-options' inside the hook. + + * Makefile.in (STYLESRC): Activate new styles. + + * style/fontspec.el: New style. + + * style/luacode.el: Ditto. + + * style/metalogo.el: Ditto. + + * style/unicode-math.el: Ditto. + +2013-12-18 Tassilo Horn + + * tex-buf.el (TeX-parse-error): Don't confuse ) in package + messages with EOF. + +2013-12-01 Tassilo Horn + + * latex.el (LaTeX-common-initialization): Move disabling of + `electric-pair-mode' from `VirTeX-common-initialization'. Disable + it only if `LaTeX-electric-left-right-brace' is non-nil. + + * tex.el (VirTeX-common-initialization): See above. + +2013-11-29 Tassilo Horn + + * tex.el (VirTeX-common-initialization): Disable + `electric-pair-mode' (a global minor mode) in auctex buffers + because it interferes with auctex's pairing feature. + +2013-11-23 Mosè Giordano + + * latex.el (LaTeX-common-initialization): + + * tex.el (VirTeX-common-initialization): Move + `LaTeX-narrow-to-environment' and `TeX-narrow-to-group' bindings + to the AUCTeX maps because `narrow-map' is not defined in GNU + Emacs < 22.2 and XEmacs. Reported by Giacomo Boffi. + +2013-11-13 Mosè Giordano + + * style/biblatex.el ("biblatex"): Declare expert macros and + environments. + +2013-11-11 Tassilo Horn + + * tex-buf.el (TeX-next-error, TeX-previous-error): Call + `next-error' also if last TeX command was a compile command (e.g., + Check, ChkTeX). + (TeX-run-compile): Save compilation buffer in + `TeX-command-buffer'. + +2013-11-10 Ralf Angeli + + * bib-cite.el (bib-highlight-mouse): Change regexp to cope with + multiple optional arguments of a macro. + +2013-11-09 Tassilo Horn + + * tex.el (TeX-complete-make-expert-command-functions): Change + signature of declare-expert functions. + + * doc/auctex.texi: Document it. + +2013-11-08 Tassilo Horn + + * tex.el (TeX-complete-expert-commands): New defcustom. + (TeX-complete-make-expert-command-functions): New macro. + (TeX-insert-macro): Restrict completion depending on + `TeX-complete-expert-commands'. + (VirTeX-common-initialization): Ditto. + + * latex.el (LaTeX-environment, LaTeX-common-initialization): + Restrict completion depending on `TeX-complete-expert-commands'. + + * tex-info.el (TeX-texinfo-mode): Restrict completion depending on + `TeX-complete-expert-commands'. + + * doc/auctex.texi: Document normal vs. expert commands for users + and style file authors. + + * doc/changes.texi: Mention normal vs. expert commands. + + * latex.el (LaTeX-common-initialization): Fix void-function + LaTeX-symbol-list error. + +2013-11-05 Mosè Giordano + + * doc/auctex.texi (Folding): Document `TeX-fold-auto' and + `TeX-fold-unfold-around-mark'. + + * latex.el (TeX-arg-bibliography): Run style files associated to + the bibliography database files. + + * style/biblatex.el ("biblatex"): Do not quote at all + `TeX-arg-key-val' arguments. + (LaTeX-arg-addbibresource): Run style file associated to the + bibliography database file. + +2013-11-03 Mosè Giordano + + * style/biblatex.el ("biblatex"): Quote `TeX-arg-key-val' + arguments with `quote' special form istead of apostrophe. + +2013-11-02 Mosè Giordano + + * latex.el (LaTeX-narrow-to-environment): New function, disabled + by default. + (LaTeX-common-initialization): Add key binding for + `LaTeX-narrow-to-environment'. + + * tex.el (VirTeX-common-initialization): Add key binding for + `TeX-narrow-to-group'. + (TeX-narrow-to-group): New function, disabled by default. + + * doc/auctex.texi (Narrowing): Document narrowing commands. + + * doc/changes.texi: Mention narrowing commands. + +2013-10-19 Mosè Giordano + + * latex.el (TeX-arg-file-name): New function. + (TeX-arg-file-name-sans-extension): Ditto. + (TeX-arg-version): Ditto. + (LaTeX-common-initialization): Add completion for + `ProvidesPackage', `ProvidesClass', and `ProvidesFile'. + + * doc/auctex.texi (Adding Macros): Document `TeX-arg-version', + `TeX-arg-file-name', and `TeX-arg-file-name-sans-extension'. + +2013-10-14 Tassilo Horn + + * doc/changes.texi: Mention the enhanced tabular indentation. + + * style/longtable.el ("longtable"): Use `LaTeX-indent-tabular' + also for longtable environment. + + * style/tabularx.el ("tabularx"): Use `LaTeX-indent-tabular' also + for tabularx environment. + + * style/tabulary.el ("tabulary"): Use `LaTeX-indent-tabular' also + for tabulary environment. + + * latex.el (LaTeX-indent-environment-list): Use + `LaTeX-indent-tabular' also for array and eqnarray environments. + +2013-10-14 Oleh Krehel + + * latex.el: `LaTeX-indent-tabular' now indents tabular-like + environments. + (LaTeX--tabular-like-end): new variable. + (LaTeX-indent-environment-list): added `LaTeX-indent-tabular' as + indenter for "tabular" and "align", added a setter that recomputes + `LaTeX--tabular-like-end' + (LaTeX-env-beginning-pos-col): new function. + (LaTeX-hanging-ampersand-position): new function. + (LaTeX-indent-tabular): new function. + + * tests/latex/latex-test.el : added an ERT test for + `LaTeX-indent-tabular' + (LaTeX-indent-tabular-test/in): input filename variable + (LaTeX-indent-tabular-test/out): output filename variable + + * tests/latex/tabular-in.tex: input to latex-test.el + + * tests/latex/tabular-out.tex: input to latex-test.el + + * tex.el (TeX-how-many): added for compatibility with XEmacs. + +2013-10-11 Mosè Giordano + + * doc/auctex.texi (Quotes): Fix typo. + + * doc/changes.texi: Ditto. + +2013-10-10 Ikumi Keita + + * doc/changes.texi: Document enhanced paired braces feature. + + * doc/auctex.texi: Ditto. + +2013-10-06 Mosè Giordano + + * tex.el (TeX-insert-macro-default-style): Add new possible value + `show-all-optional-args' and update doc-string accordingly. + (TeX-parse-arguments): Use it. + + * doc/auctex.texi (Completion): Document `show-all-optional-args'. + + * doc/changes.texi: Mention `show-all-optional-args'. + + * tex.el (TeX-insert-braces-alist): New customizable variable. + (TeX-insert-braces): Mention it in doc-string. + (TeX-parse-macro): Use `TeX-insert-braces-alist'. + + * style/booktabs.el: Update copyright years. + (LaTeX-booktabs-arg-paren): Let-bind `TeX-arg-opening-brace' and + `TeX-arg-closing-brace' instead of `<' and `>'. + ("booktabs"): Add `toprule', `midrule', and `bottomrule' macros to + `TeX-insert-braces-alist'. + ("booktabs"): Add a dummy `ignore' in `cmidrule' macro in order to + reset `last-optional-rejected' to nil. + + * doc/auctex.texi (Completion): Document + `TeX-insert-braces-alist'. + + * doc/changes.texi: Mention `TeX-insert-braces-alist'. + +2013-09-27 Mosè Giordano + + * latex.el (TeX-arg-insert-braces): : Move + `indent-according-to-mode' after `save-excursion' because + `LaTeX-newline' (used in `save-excursion') deletes trailing + whitespaces. + + * tex-buf.el (TeX-LaTeX-sentinel): Add support for hyperref "Rerun + to get outlines right" messages. + +2013-09-26 Ikumi Keita + + * latex.el: Enhance brace pairing feature. + (TeX-arg-insert-braces): Extend to be used with \bigl and its + friends. + (TeX-arg-insert-right-brace-maybe): New function. + (LaTeX-insert-left-brace): New function. + (LaTeX-insert-corresponding-right-macro-and-brace): New function. + (LaTeX-find-preceeding-left-macro-name): New function. + (LaTeX-electric-left-right-brace): New customization option. + (LaTeX-left-right-macros-association): New variable. + + * style/amsmath.el ("amsmath"): Make use of the above change. + \lvert and \lVert are paired with \rvert and \rVert, respectively. + +2013-09-19 Mosè Giordano + + * style/siunitx.el ("siunitx"): Fix `radian' unit name. + +2013-09-17 Fabrice Ben Hamouda (tiny change) + + * tex-buf.el (TeX-next-error, TeX-active-buffer): Fix a problem + with `TeX-next-error' in multi-file documents. + +2013-09-16 Tassilo Horn + + * tex-info.el (TeX-texinfo-mode): Set + `TeX-sentinel-default-function' to `TeX-TeX-sentinel'. + +2013-09-09 Tassilo Horn + + * tex-buf.el (TeX-check-files): Handle buffers that haven't been + saved yet. + +2013-09-02 Tassilo Horn + + * tex.el (TeX-electric-math): Fix defcustom choices. + + * bib-cite.el (bib-cite-minor-mode): Call `make-local-hook' only + on XEmacs. + +2013-08-03 Mosè Giordano + + * latex.el (TeX-arg-ref): New function. + + * doc/auctex.texi: Replace occurrences of `TeX-arg-label' with + `TeX-arg-ref'. + (Adding Macros): Document `TeX-arg-ref'. + + * style/fancyref.el ("fancyref"): Use `TeX-arg-ref' instead of + `TeX-arg-label'. + + * style/latexinfo.el ("latexinfo"): Ditto. + + * style/nameref.el ("nameref"): Ditto. + + * style/varioref.el ("varioref"): Ditto. + + * style/subfigure.el ("subfigure"): Use `TeX-arg-ref' instead of + `TeX-arg-label' and fix parentheses. + +2013-07-31 Tassilo Horn + + * latex.el (LaTeX-math-initialize): Refactor top-level code into + function. + (LaTeX-math-list): Call `LaTeX-math-initialize' when setting the + value in order to update the key bindings. + Also shuffle around several definitions in order to get a + declaration-before-use order. + +2013-07-29 Mosè Giordano + + * doc/changes.texi: Add other changes. + + * doc/auctex.texi (Environments): Fix typo. + +2013-07-27 Mosè Giordano + + * latex.el (BibTeX-auto-regexp-list): Remove `TeX-token-char' from + the regexp since cite keys can start with non-letter characters, + e.g., bibcodes start with year of publication. + +2013-07-24 Tassilo Horn + + * latex.el (LaTeX-math-menu-unicode): Enable also on windows + systems as it seems to work there, too. + +2013-07-23 Mosè Giordano + + * tex.el (TeX-clean-default-intermediate-suffixes): Add `.fls', + files created by TeX processors with `-recorder' option, and + `-blx.bib', files created by `bibtex' when using the `biblatex' + package. + + * doc/changes.texi: Document some changes for next release. + +2013-07-22 Mosè Giordano + + * Makefile.in: Update copyright years. + (GITFILES): Rename from `CVSFILES', adapt to Git. + (COMMITTER): Get user name and email from Git configuration; + escape `<', `>' and spaces. + (install-el): Update reference to Git in comment. + (release-commit): Adapt to Git; make sure committer name and email + are encoded with ISO-8859-1 using the `iconv' program. + (tar-ball): Adapt to Git. + (preview-ball): Ditto. + + * auctex.spec (Provides): Update reference to Git in comment. + + * bib-cite.el: Update AUCTeX repository link in comment. + + * font-latex.el (font-latex-built-in-keyword-classes): Fix + fontification of some biblatex macros. Reported by Christian + Knüpfer. + (font-latex-built-in-keyword-classes): Revert changes made with + commit 7531cca, they were useless. + +2013-07-15 Mads Jensen + + * style/tabulary.el: New style. + + * Makefile.in (STYLESRC): Activate new style tabulary. + +2013-07-12 Mosè Giordano + + * doc/auctex.texi (Processor Options): Move + `TeX-source-correlate-method' to `I/O Correlation' section. + +2013-07-11 Mosè Giordano + + * doc/auctex.texi (Processor Options): Document + `TeX-source-correlate-method'. + +2013-07-09 Tassilo Horn + + * latex.el (LaTeX-default-tabular-environment): New variable. + (LaTeX-env-figure): Use it instead of hard-coding "tabular". + + * style/tabularx.el ("tabularx"): Set + `LaTeX-default-tabular-environment' to "tabularx". + +2013-06-29 Mosè Giordano + + * bib-cite.el: Replace `save-excursion'+`set-buffer' with + `with-current-buffer'. + + * tex-bar.el: Ditto. + + * tex-buf.el: Ditto. + + * tex.el: Replace `save-excursion'+`set-buffer' with + `with-current-buffer'. Delete trailing whitespaces. + + * tex-buf.el (TeX-error-file): Fix spelling error. + (TeX-error): Ditto. + + * doc/install.texi (Configure): Update for Git. + + * doc/preview-readme.texi (Availability): Ditto. + + * doc/wininstall.texi: Ditto. + +2013-06-26 Tassilo Horn + + * doc/preview-problems.texi: Rename "Known problems" section to + "Known problems with preview-latex" in rawfile export. Delete + sections "Problems with Ghostscript" and "Emacs problems" because + those are basically ruled out when using the prerequisites + documented in the manual. + + * doc/install.texi: Don't link to ghostscript specific + preview-latex problems section because that has been removed. + + * doc/Makefile.in (DISTTEXTS, ../PROBLEMS.preview): Rename + PROBLEMS to PROBLEMS.preview since it only deals with + preview-latex problems. + + * Makefile.in (DISTTEXTS): Use PROBLEMS.preview instead of + PROBLEMS. + +2013-06-24 Tassilo Horn + + * doc/Makefile.in (DISTTEXTS): Add ../PROBLEMS. + + * Makefile.in (DISTTEXTS): Add PROBLEMS. + + * tex.el (TeX-evince-dbus-p): Require dbus at compile-time. + +2013-06-21 Tassilo Horn + + * tex.el (TeX-evince-dbus-p): Improved DBUS availability check. + +2013-06-21 Rüdiger Sonderfeld + + * tex.el (TeX-doc-backend-alist): Remove unnecessary `info' check. + +2013-06-14 Tassilo Horn + + * tex-jp.el: Change to `coding: iso-2022-jp-unix'. + +2013-06-12 Tassilo Horn + + * tex-jp.el: Add `coding: iso-2022-7bit-unix' file local variable. + +2013-06-11 Tassilo Horn + + * tex-buf.el (TeX-help-error): Let-bind `inhibit-read-only' when + updating the *TeX Help* buffer. + +2013-06-11 Mosè Giordano + + * latex.el (TeX-after-document-hook): New hook. + (TeX-arg-document): Use it. + (LaTeX-after-usepackage-hook): New hook. + (LaTeX-arg-usepackage): Use it, remove babel specific code. + + * style/babel.el: Update copyright years. + (LaTeX-env-babel-lang): New function. + ("babel"): Add `LaTeX-env-babel-lang' to + `LaTeX-after-usepackage-hook'. + +2013-06-08 Mosè Giordano + + * tex.el (TeX-math-close-double-dollar): Remove. + (TeX-math-close-single-dollar): Ditto. + (TeX-electric-dollar): Ditto. + (TeX-electric-math): New customizable variable, supersedes + variables above. + (TeX-insert-dollar): Adapt to `TeX-electric-math'. See + http://thread.gmane.org/gmane.emacs.auctex.devel/3070 + + * doc/auctex.texi (Quotes): Document `TeX-electric-math'. + (Environments): Document `LaTeX-find-matching-begin' and + `LaTeX-find-matching-end'. + +2013-06-02 Mosè Giordano + + * tex-buf.el: Shorten copyright year ranges and update with + missing years. Delete trailing whitespaces. + (TeX-run-compile): Let-bind `default-directory' to + `TeX-master-directory'. + +2013-05-31 Tassilo Horn + + * autogen.sh: Set LC_ALL=C when looking into ChangeLog for + AUCTEXDATE. + +2013-05-31 Mosè Giordano + + * latex.el (LaTeX-env-figure): Simplify using `save-excursion' + instead of regexp searches. Fill the caption when + `auto-fill-mode' is on. + +2013-05-30 Mosè Giordano + + * tex.el (TeX-expand-list): Add new expander "%a", it returns the + quoted absolute path of the file visiting current buffer. + (TeX-view-program-list-builtin): Use "%a" expander for forward PDF + search. + +2013-05-28 Tassilo Horn + + * tex.el (TeX-source-correlate-sync-source): Fix docstring. + +2013-05-23 Mosè Giordano + + * font-latex.el: Update copyright years, there have been + non-trivial changes in 2010, and 2011. + (font-latex-built-in-keyword-classes): Fontify Biblatex multicites + macros up to three mandatory arguments. + + * style/biblatex.el (LaTeX-biblatex-entrytype): New variable. + (LaTeX-biblatex-executebibliographyoptions-options): New variable. + (LaTeX-biblatex-language-list): New variable. + (LaTeX-arg-biblatex-cites): New function. + ("biblatex"): Always set `LaTeX-using-Biber'. Add citation + macros. + (LaTeX-biblatex-package-options-list): Move preamble options to + `LaTeX-biblatex-executebibliographyoptions-options'. + +2013-05-22 Mosè Giordano + + * latex.el: Replace `delete-backward-char' with `delete-char'. + + * tex.el: Ditto. + + * tex-buf.el: Replace `goto-line' with `goto-char' and + `forward-line'. + +2013-05-19 Mosè Giordano + + * doc/.gitignore: Rename from .cvsignore. + + * preview/.gitignore: Ditto. + + * preview/latex/.gitignore: Ditto. + +2013-05-18 Mosè Giordano + + * latex.el: Update copyright years, there have been non-trivial + changes in 1998, 2001, 2002. + (TeX-arg-index-tag): Use `TeX-argument-prompt'. + (TeX-arg-cite): Ditto. + + * tex.el: Update copyright years, there have been non-trivial + changes in 1995, 1998. + (TeX-parse-arguments): Move skipping of optional + arguments inside loop over all arguments, because optional + arguments may not be the first ones. Remove unused let-bound + variable `skip-opt'. + (TeX-arg-literal): Remove FIXME comment, `optional' is the first + argument passed to all functions by `TeX-parse-argument'. + +2013-05-13 Mosè Giordano + + * style/fancyvrb.el: New style. + + * style/xparse.el: Ditto. + + * Makefile.in (STYLESRC): Add style/fancyvrb.el and + style/xparse.el. + +2013-05-12 Mosè Giordano + + * tex.el (TeX-insert-dollar): Insert just a single dollar when the + point is in a verbatim-like construct. + + * font-latex.el (font-latex-jit-lock-force-redisplay): Don't rely + on existing `jit-lock-force-redisplay' because recent bzr Emacs + broke compatibility changing the number of arguments. Reported by + Robert Goldman. + +2013-05-08 Mosè Giordano + + * doc/auctex.texi (Environments): Document + `LaTeX-default-document-environment'. + +2013-05-07 Mosè Giordano + + * tex.el (TeX-electric-dollar): New variable. + (TeX-insert-dollar): Use it. + + * doc/auctex.texi (Quotes): Document `TeX-electric-dollar'. + +2013-04-28 Mosè Giordano + + * tex-bar.el: Update copyright range. + (TeX-bar-LaTeX-button-alist): Change BibTeX button to Biber when + `LaTeX-using-biber' is non-nil. + (LaTeX-install-toolbar): Refresh toolbar after styles update. + +2013-04-25 Mosè Giordano + + * latex.el (LaTeX-default-document-environment): New buffer-local + variable. + (LaTeX-default-environment): Mention + `LaTeX-default-document-environment' in doc-string. + (LaTeX-environment): Use `LaTeX-default-document-environment'. + + * style/beamer.el ("beamer"): Use + `LaTeX-default-document-environment' instead of + `LaTeX-default-environment'. + + * style/letter.el ("letter"): Ditto. + + * style/slides.el ("slides"): Ditto. + +2013-04-24 Mosè Giordano + + * style/acro.el (LaTeX-acro-acronym-history): New variable. + (LaTeX-arg-acro-acronym): Use it. + + * style/acronym.el (LaTeX-acronym-acronym-history): New variable. + (LaTeX-arg-acronym-acronym): Use it. + + * style/beamer.el (LaTeX-beamer-frametitle-history): New variable. + ("beamer"): Use it. + (TeX-arg-beamer-frametitle): Ditto. + + * style/siunitx.el (LaTeX-siunitx-unit-history): New variable. + (LaTeX-arg-siunitx-unit): Use it. + +2013-04-21 Mosè Giordano + + * style/beamer.el ("beamer"): Set `frame' as default environment. + Set `section' as largest sectioning level. Add fontification for + `title', `author', and `date'. + + * style/letter.el ("letter"): Set `letter' as default environment. + Add some macros and fontification. + + * style/slides.el ("slides"): Set `slide' as default environment. + + * latex.el (TeX-arg-insert-braces): Move + `indent-according-to-mode' after `save-excursion' because + `LaTeX-newline' (used in `save-excursion') deletes trailing + whitespaces. + +2013-04-19 Mosè Giordano + + * style/amsthm.el (LaTeX-amsthm-package-options): New variable. + ("amsthm"): Remove `newtheorem' macro, already defined in + `latex.el'. Use `TeX-arg-define-environment' in `newtheorem*' + macro. Add `qedhere', `swapnumbers', and `newtheoremstyle' + macros. Add `newtheorem*' regexp to match new environments. Add + fontification. + + * style/article.el ("article"): Add counters and pagestyles. + + * style/beamer.el ("beamer"): Ditto. + + * style/book.el ("book"): Ditto. + + * style/letter.el (LaTeX-letter-class-options): New variable. + ("letter"): Add pagestyles. + + * style/report.el ("report"): Add counters and pagestyles. + + * style/slides.el (LaTeX-slides-class-options): New variable. + ("slides"): Add counters and pagestyles. + +2013-04-18 Mosè Giordano + + * style/beamer.el: Update copyright years and remove trailing + whitespaces. + ("beamer"): Run style hooks for loaded packages. + (LaTeX-beamer-class-options): New function. + + * style/hyperref.el (LaTeX-hyperref-package-options-list): Rename + from `LaTeX-hyperref-package-options' to avoid clash with the + function with the same name. + ("hyperref"): Use it. + (LaTeX-hyperref-package-options): Ditto. + +2013-04-17 Mosè Giordano + + * plain-tex.el (plain-TeX-common-initialization): Fix typo in + abbrev table name. + +2013-04-16 Mosè Giordano + + * latex.el (LaTeX-default-author): New customizable variable. + (LaTeX-arg-author): New function. + (LaTeX-common-initialization): Use `LaTeX-arg-author' for the + \author macro. + (LaTeX-default-author): Change default to 'user-full-name (quoted) + and add a new possible value. + (LaTeX-arg-author): Change accordingly. + + * doc/auctex.texi (Itemize-like): Document `TeX-arg-item-label-p' + option. + (Tabular-like): Document `LaTeX-default-width' option. + (Modes and Hooks): Add modes and hooks to indices. + (Adding Macros): Document `TeX-arg-index-tag', `TeX-arg-index', + `TeX-arg-document', `LaTeX-arg-usepackage', `TeX-arg-bibstyle', + `TeX-arg-bibliography', `LaTeX-arg-author', `TeX-read-key-val', + and `TeX-arg-key-val' functions. Mention `TeX-arg-cite-note-p' + and `LaTeX-default-author' options. + (Adding Environments): Use in example code actually present in + `listings.el' file. + +2013-04-16 Tassilo Horn + + * tex.el (TeX-source-correlate-sync-source): Use `raise-frame' + instead of the external wmctrl command to raise the emacs frame. + +2013-04-15 Mosè Giordano + + * latex.el (TeX-read-key-val): Add `prompt' optional argument. + (TeX-arg-key-val): Ditto. + + * tex.el (fboundp): Use `crm-separator' as separator in XEmacs + `TeX-completing-read-multiple' implementation. + + * style/acro.el (LaTeX-arg-acro-key-val): Let-bind keymap with SPC + key binding removed, instead of defining a new key binding for + SPC. Use `TeX-arg-key-val' instead of `multi-prompt-key-value' + and `TeX-argument-insert'. + + * style/pst-node.el (LaTeX-pstnode-env-psmatrix): Replace + `completing-read-multiple' with `TeX-completing-read-multiple'. + + * style/pstricks.el (LaTeX-package-parameters): Ditto. + + * style/siunitx.el (LaTeX-arg-siunitx-unit): Let-bind keymap with + SPC key binding removed, instead of defining a new key binding for + SPC. Replace `completing-read-multiple' with + `TeX-completing-read-multiple'. + +2013-04-15 Tassilo Horn + + * tex.el (TeX-source-correlate-sync-source): Raise frame when + placing point on the source location. + +2013-04-12 Mosè Giordano + + * Makefile.in (STYLESRC): Add style/acro.el and style/acronym.el. + + * style/acro.el: New style. + + * style/acronym.el: Ditto. + +2013-04-10 Tassilo Horn + + * tex.el (TeX-evince-sync-view): URL-escape pdf file path when + calling evince via DBUS. + (TeX-evince-sync-view): Use 0 as timestamp. + (TeX-source-correlate-sync-source): URL-decode tex file name. + +2013-04-10 Nicolas Richard (tiny change) + + * style/mathtools.el (LaTeX-mathtools-key-val-options): Fix defvar + syntax. + +2013-04-10 Jobst Hoffmann (tiny change) + + * style/lscape.el ("lscape"): Fix typo and parentheses. + +2013-04-09 Tassilo Horn + + * README.GIT: Rename from README.CVS; update contents to Git. + +2013-04-09 Leo Liu + + * latex.el (LaTeX-outline-level): Make it work for customized + `outline-regexp'. See bug report + http://permalink.gmane.org/gmane.emacs.auctex.bugs/1648. + + * tex.el (TeX-view-program-list-builtin) + (TeX-view-program-selection): Enable commented code to support + darwin system. + + * tex.el (TeX-math-input-method-off-regexp): Improve and fix typo. + See bug http://permalink.gmane.org/gmane.emacs.auctex.devel/2468. + + * font-latex.el (font-latex-add-to-syntax-alist): Fix a bug in + `font-latex-add-to-syntax-alist' where it modified both the buffer + local and global value of `font-latex-syntax-alist'. + +2013-04-08 Tassilo Horn + + * latex.el (LaTeX-style-list): Correct docstring. + +2013-04-06 Mosè Giordano + + * latex.el (LaTeX-provided-class-options-member): Fix typo. + (LaTeX-arg-usepackage): Provide completion for more than one + package in mandatory argument. + +2013-04-05 Mosè Giordano + + * latex.el (LaTeX-global-class-files): New variable. + (TeX-arg-document): Provide completion for class options, based on + `LaTeX-arg-usepackage'. Use `LaTeX-global-class-files'. + (LaTeX-style-list): Mention that if `TeX-arg-input-file-search' is + set to `t' this variable will be ignored. + + * tex.el (TeX-normal-mode): Reset `LaTeX-global-class-files' when + ARG is non-nil. + + * style/article.el (LaTeX-article-class-options): New variable. + + * style/book.el (LaTeX-book-class-options): New variable. + + * style/report.el (LaTeX-report-class-options): New variable. + +2013-04-03 Mosè Giordano + + * latex.el (LaTeX-provided-class-options): New buffer-local + variable. + (LaTeX-provided-class-options-member): New function. + (LaTeX-provided-package-options): New buffer-local variable. + (LaTeX-provided-package-options-member): New function + (LaTeX-auto-cleanup): Rewrite to support + `LaTeX-provided-{class,package}-options' variables. + (LaTeX-arg-usepackage): Ditto. + + * tex.el (TeX-auto-store): Write to parsed file values of + `LaTeX-provided-{class,package}-options' variables. + (TeX-auto-insert): Fix indentation of inserted lines. + (TeX-search-files-by-type): Fix typo in doc-string. + (TeX-add-to-alist): New function. + (TeX-quote-language-alist): Fix typo in doc-string. + + * style/babel.el (LaTeX-babel-package-options): Add missing + languages. + (LaTeX-babel-package-options): Add options other than + languages. + (LaTeX-babel-active-languages): Use + `LaTeX-provided-{class,package}-options'. Loop over actually + used options instead of all babel languages. + ("babel"): Run styles of active languages. + + * style/biblatex.el ("biblatex"): Use + `LaTeX-provided-package-options-member'. + (LaTeX-biblatex-package-options): Consider the `ask' value for + 'TeX-arg-input-file-search'. + + * style/kpfonts.el ("kpfonts"): Use + `LaTeX-provided-package-options-member'. + + * style/siunitx.el: Rename `TeX-siunitx-*' functions to + `LaTeX-siunitx-*' for consistency. + ("siunitx"): Use `LaTeX-provided-package-options-member'. + +2013-03-29 Mosè Giordano + + * latex.el (TeX-arg-document): Search for LaTeX classes. + +2013-03-28 Mosè Giordano + + * style/biblatex.el (LaTeX-biblatex-package-options): Correct name + of `TeX-read-key-val' argument. + + * latex.el (LaTeX-common-initialization): Remove `addbibresource' + macro. + + * style/biblatex.el (LaTeX-biblatex-addbibresource-options): New + variable. + (LaTeX-arg-addbibresource): New function, based on current + `TeX-arg-bibliography'. + ("biblatex"): Add `addbibresource' macro. + (LaTeX-biblatex-package-options): Use `TeX-read-key-val'. + + * latex.el (TeX-arg-bibliography): Remove `addbibresource' + support. + +2013-03-27 Mosè Giordano + + * tex.el (TeX-add-local-master): Remove trailing spaces from + inserted lines. + +2013-03-07 Tassilo Horn + + * latex.el (TeX-read-key-val): New function. + (TeX-arg-key-val): Use `TeX-read-key-val'. + + * style/hyperref.el (LaTeX-hyperref-package-options): Use + `TeX-read-key-val' instead of `TeX-arg-key-val' which caused args + to be inserted twice. + + * style/siunitx.el (LaTeX-siunitx-package-options): Ditto. + +2013-03-06 Mads Jensen + + * style/amsopn.el: Add GPL copyright notice. + ("amsopn"): Add regex for \DeclareMathOperator to + `LaTeX-auto-regexp-list'. Use `TeX-arg-define-macro' for + \DeclareMathOperator. + +2013-03-06 Mads Jensen + + * tex.el (TeX-command-list): Add support for xindy. + +2013-03-06 Mads Jensen + + * latex.el (LaTeX-common-initialization): Add regular expression + for thispagestyle and pagestyle to `TeX-complete-list'. + +2013-03-04 Tassilo Horn + + * latex.el (TeX-arg-date): New function. + (LaTeX-common-initialization): Use `TeX-arg-date' for \date macro. + + * doc/auctex.texi: Document `TeX-arg-date'. + + * style/doc.el ("doc"): Use `TeX-arg-date' for the \changes macro. + +2013-02-26 Tassilo Horn + + * tex.el (TeX-run-style-hooks): Guard running style hooks in a + `condition-case' in order not to error in cases the auto file + contains calls to functions that are defined by a style that has + been deactivated in the meantime. + +2013-02-25 Werner Fink + + * style/dinbrief.el ("dinbrief"): Update dinbrief style. + (LaTeX-dinbrief-insert): New macro. + (LaTeX-dinbrief-style): New function. + (LaTeX-dinbrief-env-recipient): Rename from + `LaTeX-recipient-hook'. + (LaTeX-dinbrief-sender): New function. + (LaTeX-dinbrief-recipient): New function. + (LaTeX-dinbrief-today): Rename from `LaTeX-today'. + +2013-02-25 Tassilo Horn + + * tex.el (TeX-parse-macro): Add TeX group characters also in math + environments if there is an active region that should probably + used as argument. + + * latex.el (LaTeX-paragraph-commands-internal): Add \clearpage and + \newpage. + + * style/scrbase.el ("scrbase"): Add \minisec macro to + `LaTeX-paragraph-commands' locally. + +2013-02-23 Mosè Giordano + + * style/kpfonts.el: New style file. + + * Makefile.in (STYLESRC): Add style/kpfonts.el. + +2013-02-20 Mosè Giordano + + * latex.el (LaTeX-math-default): Move `digamma' and `varkappa' to + `AMS > Greek Lowercase' menu. + +2013-02-18 Mads Jensen + + * Makefile.in (STYLESRC): Activate new style array.el. + + * style/array.el: New style. + + * style/tabularx.el: Expand copyright range. + ("tabularx"): The package relies on the array package, so run its + style hook. + +2013-02-18 Tassilo Horn + + * tex.el (require): Require crm. + + * multi-prompt.el (multi-prompt-key-value): Don't require crm here + because it has already been required in tex.el. + +2013-02-16 Mosè Giordano + + * style/biblatex.el ("biblatex"): Add hooks for loaded packages. + (LaTeX-biblatex-package-options): New function. + (LaTeX-biblatex-package-options-list): Renamed from + `LaTeX-biblatex-package-options' to avoid clash with the function + with the same name. + + * latex.el (LaTeX-search-files-type-alist): Add `bbxinputs'. + (BibLaTeX-global-style-files): New variable. + + * tex.el (BibLaTeX-style-extensions): New variable. + (TeX-normal-mode): Make ARG argument optional. + (TeX-normal-mode): Reset `BibLaTeX-global-style-files' when ARG is + non-nil. + +2013-02-14 Mosè Giordano + + * style/siunitx.el (LaTeX-siunitx-package-options): New function. + + * style/hyperref.el (LaTeX-hyperref-package-options): New + function. + +2013-02-13 Mads Jensen + + * style/subfigure.el: Expanded copyright range. + ("subfigure"): Collapsed the two regular expressions for + completion. Added lengths, and commands for fonts. + +2013-02-14 Tassilo Horn + + * style/fancyhdr.el (TeX-arg-fancyhdr-position): Document the + OPTIONAL argument. + +2013-02-14 Mads Jensen + + * Makefile.in (STYLESRC): Activate new style fancyhdr.el. + + * style/fancyhdr.el: New style. + +2013-02-13 Mosè Giordano + + * doc/auctex.texi (Quotes): Document + `TeX-math-close-single-dollar'. + (Selecting a Command): Remove reference to + `LaTeX-biblatex-use-Biber'. + (Parsing Files): Document `LaTeX-auto-index-regexp-list', + `LaTeX-auto-class-regexp-list', + `LaTeX-auto-pagestyle-regexp-list', + `LaTeX-auto-counter-regexp-list', `LaTeX-auto-length-regexp-list', + `LaTeX-auto-savebox-regexp-list'. + + * tex.el (TeX-math-close-single-dollar): New variable. + (TeX-insert-dollar): Use it. + +2013-02-13 Tassilo Horn + + * Makefile.in (STYLESRC): Activate new style filecontents.el. + +2013-01-23 Mads Jensen + + * style/filecontents.el: New style. + +2013-02-13 Tassilo Horn + + * Makefile.in (STYLESRC): Activate new style fancynum.el. + +2013-02-08 Mads Jensen + + * style/fancynum.el: New style. + +2013-02-13 Tassilo Horn + + * Makefile.in (STYLESRC): Activate new style nameref.el. + +2013-02-13 Mads Jensen + + * doc/auctex.texi (Adding Macros): Mention that `TeX-arg-savebox' + now supports completion. + + * style/nameref.el: New style. + + * style/hyperref.el ("hyperref"): Run nameref style hook because + hyperref activates nameref. + +2013-02-10 Mosè Giordano + + * style/siunitx.el ("siunitx-unit"): New type for the parser. + (LaTeX-siunitx-regexp): New variable. + (LaTeX-auto-siunitx-unit): New variable. + (LaTeX-siunitx-prepare): New function. + (LaTeX-siunitx-cleanup): New function. + (TeX-auto-prepare-hook): Add `LaTeX-siunitx-prepare' function. + (TeX-auto-cleanup-hook): Add `LaTeX-siunitx-cleanup' function. + (TeX-arg-siunitx-unit): New function. + (TeX-arg-define-siunitx-unit): New function. + ("siunitx"): Add `LaTeX-siunitx-regexp' to list of regexps used + for parsing. + ("siunitx"): Use `TeX-arg-siunitx-unit' and + `TeX-arg-define-siunitx-unit' functions. + ("siunitx"): Use `LaTeX-add-siunitx-units' for adding siunitx unit + macros to the list of known units. + +2013-02-08 Mosè Giordano + + * style/biblatex.el: Update copyright range. + ("biblatex"): Check `backend' option value in + `TeX-active-styles'. + + * tex-style.el: Update copyright years. + (LaTeX-biblatex-use-Biber) Remove unused variable. + + * tex.el: Update copyright range. + (TeX-auto-add-type): Append new type to `TeX-auto-parser' instead + of prepending it. + (TeX-auto-store): Fix indentation of first lines of parsed file. + + * latex.el (LaTeX-auto-cleanup): Append options and styles to + `TeX-auto-file' instead of prepending them. + +2013-01-28 Mads Jensen + + * doc/todo.texi (Wishlist): Remove "Completion for sboxes". + +2013-01-27 Mads Jensen + + * latex.el (LaTeX-env-contents): Replaced regular expression with + `LaTeX-header-end', i.e., filecontents environments must go + somewhere in the preamble but not necessarily before the + \documentclass. + +2013-01-26 Mads Jensen + + * latex.el (LaTeX-auto-savebox-regexp-list): New variable. + (LaTeX-auto-regexp-list): Use `LaTeX-auto-savebox-regexp-list'. + ("savebox"): New type for the parser. + (TeX-arg-savebox): Use `LaTeX-savebox-list' for completion and + `definition' argument. + (LaTeX-common-initialization): Added makeatletter, makeatother, + and jobname macros. + (LaTeX-default-options): Changed documentstyle to documentclass in + docstring. + +2013-01-25 Mosè Giordano + + * style/siunitx.el ("siunitx"): Add `\gram' and + `\SendSettingsToPgf'. + +2013-01-25 Tassilo Horn + + * tex-buf.el (TeX-output-mode): Make revert-buffer-function buffer + local before setting it to TeX-output-revert-buffer. + +2013-01-24 Ivan Andrus + + * auctex.texi: Updated documetation about ChkTeX and lacheck. + Fixed typos. + +2013-01-24 Ivan Andrus + + * tex-buf.el (TeX-output-revert-buffer): New function. + (TeX-special-mode, TeX-output-mode): New major modes. + (TeX-special-mode-map, TeX-output-mode-map): New variables. + +2013-01-21 Tassilo Horn + + * Makefile.in (STYLESRC): Activate new style placeins.el. + +2013-01-21 Ivan Andrus + + * texmathp.el (texmathp-tex-commands-default): Add \shortintertext. + +2013-01-19 Mads Jensen + + * style/placeins.el: New style. + +2013-01-17 Tassilo Horn + + * doc/todo.texi: Remove the todo concerning completion for + counters that was implemented by Mosè Giordano on 2013-01-15. + + * doc/auctex.texi: Document `TeX-arg-length' and + `TeX-arg-define-length'. + +2013-01-16 Mosè Giordano + + * latex.el (LaTeX-auto-length-regexp-list): New variable. + (LaTeX-auto-regexp-list): Use `LaTeX-auto-length-regexp-list'. + ("length"): New type for the parser. + (TeX-arg-length): New function. + (TeX-arg-define-length): New function. + (LaTeX-common-initialization): Initialize some standard LaTeX + lengths and use `TeX-arg-length' and `TeX-arg-define-length' for + completion of some macros. + +2013-01-15 Tassilo Horn + + * doc/auctex.texi: Document that `TeX-arg-counter' does completion + now. + +2013-01-15 Mosè Giordano + + * latex.el (LaTeX-auto-pagestyle-regexp-list): Fix typo. + (LaTeX-auto-counter-regexp-list): New variable. + (LaTeX-auto-regexp-list): Use `LaTeX-auto-counter-regexp-list'. + ("counter"): New type for the parser. + (TeX-arg-counter): Use `LaTeX-counter-list' function for + completion and `definition' argument. + (TeX-arg-pagestyle): Use `definition' argument. + (LaTeX-common-initialization): Initialize counters. + +2013-01-14 Tassilo Horn + + * style/ulem.el (LaTeX-arg-fontdecl, LaTeX-arg-fontcmd): Fix + declarations. + +2013-01-13 Mads Jensen + + * style/pstricks.el (LaTeX-pstricks-package-options): New + variable. + + * style/varioref.el: Update copyright range. + ("varioref"): Add more definitions. + (LaTeX-varioref-package-options): Reformat. + + * style/listings.el: Update copyright range. + (LaTeX-listings-key-val-options, "listings") + (LaTeX-listings-package-options): Update to recent listings + version. + +2013-01-14 Tassilo Horn + + * Makefile.in (STYLESRC): Enable memoir.el style. + +2013-01-14 Mads Jensen + + * style/memoir.el: New style. + +2013-01-14 Mosè Giordano + + * latex.el (TeX-arg-environment): Fix typo. + +2013-01-10 Mosè Giordano + + * latex.el: Update copyright range. + (LaTeX-auto-pagestyle-regexp-list): New variable. + (LaTeX-auto-regexp-list): Use `LaTeX-auto-pagestyle-regexp-list'. + ("pagestyle"): New type for the parser. + (LaTeX-pagestyle-list): Remove. + (TeX-arg-pagestyle): Use `LaTeX-pagestyle-list' function for + completing. + (LaTeX-common-initialization): Initialize pagestyles. + + * style/imakeidx.el: Use `LaTeX-pagestyle-list' function to set + `firstpagestyle' option values. + +2013-01-11 Ivan Andrus + + * tex.el (TeX-command-list): Add command to run ChkTeX. + +2013-01-11 Tassilo Horn + + * Makefile.in (STYLESRC): Add new style files kantlipsum.el, + lipsum.el, and longtable.el. + +2013-01-10 Mosè Giordano + + * style/kantlipsum.el: New style. + + * style/lipsum.el: Ditto. + + * style/longtable.el: Ditto + +2013-01-10 Mads Jensen + + * latex.el (LaTeX-env-document): Only insert \documentclass in + case the document does not already contain one. + +2013-01-09 Ralf Angeli + + * style/epigraph.el ("epigraph"): Do not quote list entries for + `font-latex-add-keywords'. + +2013-01-07 Ralf Angeli + + * style/mathtools.el ("mathtools"): Prevent amsmath options from + being added multiple times. + + * style/footmisc.el ("footmisc"): Remove fontification settings + for length macros. + +2013-01-06 Ralf Angeli + + * style/mathtools.el ("mathtools"): Append amsmath options to + mathtools option after the amsmath style file has been loaded. + Remove `function' wrapper. + +2013-01-05 Ralf Angeli + + * Makefile.in (STYLESRC): Activate new style files. + + * ChangeLog: Move name of style file contributors to head of + ChangLog entries. + +2013-01-02 Tassilo Horn + + * style/everysel.el: Fix typos. + +2013-01-02 Mads Jensen + + * style/afterpage.el: New style. + +2012-12-30 Mosè Giordano + + * latex.el (LaTeX-pagestyle-list): New variable. + (TeX-arg-pagestyle): Use it. + + * style/imakeidx.el: New style. + +2012-12-29 Ikumi Keita + + * doc/tex-ref.tex: Fix apparent errors and add keybind entries for + C-c ? and `:' (in math mode). + +2012-12-28 Mads Jensen + + * style/multirow.el: New style. + +2012-12-27 Mosè Giordano + + * style/siunitx.el (LaTeX-siunitx-package-options): New variable. + ("siunitx"): Use it. + + * style/hyperref.el (LaTeX-hyperref-href-options): New variable. + (LaTeX-hyperref-package-options, "hyperref"): Use it. + +2012-12-27 Mads Jensen + + * style/mflogo.el: New style. + + * style/epigraph.el: Ditto. + +2012-12-27 Ikumi Keita + + * amsmath.el ("amsmath"): Add support for the alignedat + and subarray environments. Also, add support for the shoveright + and shoveleft macros. + * font-latex.el (font-latex-math-environments): Add "xxalignat" + and "flalign". + +2012-12-26 Mads Jensen + + * style/lscape.el: New style. + + * style/amssymb.el: Ditto. + + * style/ragged2e.el: Ditto. + + * style/mathtools.el: Ditto. + + * style/everysel.el: Ditto. + + * style/bigstrut.el: Ditto. + + * style/bigdelim.el: Ditto. + +2012-12-25 Mads Jensen + + * style/ulem.el: New style. + +2012-12-25 Ikumi Keita + + * latex.el (LaTeX-math-default): Added unicode character position + to some entries and "mathring" entry. + (LaTeX-common-initialization): Added support for accent macros + \hat, \dot etc and \textasteriskcentered. + +2012-12-24 Mads Jensen + + * style/footmisc.el: New style. + +2012-12-21 Mosè Giordano + + * style/bm.el: New style. + + * style/siunitx.el: Ditto. + +2012-12-20 Tassilo Horn + + * tex-bar.el (TeX-bar-LaTeX-buttons, TeX-bar-LaTeX-button-alist): + Also add spell button. + + * images/spell.xpm: New image, copied from Emacs. + + * tex-bar.el (TeX-bar-TeX-button-alist): Use it for the spell + button. + +2012-12-20 Tassilo Horn + + * tex-bar.el (TeX-bar-TeX-button-alist, TeX-bar-TeX-buttons): Add + `spell' button to run spell-checker. + +2012-12-04 Tassilo Horn + + Merge revno 314 (Stefan Monnier) from emacs elpa branch: Shorten + copyright year ranges. + + * context.el: + + * doc/auctex.texi: + + * doc/changes.texi: + + * doc/install.texi: + + * font-latex.el: + + * latex.el: + + * style/letter.el: + + * tex-fold.el: + + * tex-jp.el: + + * tex.el: + +2012-11-30 Ralf Angeli + + * Version 11.87 released. + +2012-11-30 Ralf Angeli + + * tex.el (TeX-evince-dbus-p): Make last change a little more + conventional. + +2012-11-30 Tassilo Horn + + * tex.el (TeX-evince-dbus-p): Check for feature emacs in order not + to signal an error on XEmacs. + +2012-11-29 Ralf Angeli + + * RELEASE, configure.ac, doc/auctex.texi, doc/changes.texi, + doc/install.texi, doc/tex-ref.tex: Update for upcoming release. + +2012-11-26 Ralf Angeli + + * latex.el (LaTeX-split-bibs): Add doc string and use variable for + Biber file extensions. + (LaTeX-search-files-type-alist): Add entry for Biber. + (BibTeX-Biber-global-files): Remove. + (BibTeX-global-files): Reintroduce. + (TeX-Biber-global-files): New variable. + (TeX-arg-bibliography): Check if Biber or BibTeX is used and react + accordingly. + + * tex-buf.el (TeX-check-files): Do not check duplicate extensions. + (TeX-command-query, TeX-LaTeX-sentinel): Use separate variables + for BibTeX and Biber file extensions. + (TeX-synchronous-sentinel): Use `let' instead of `let*'. + + * tex.el (TeX-clean-default-intermediate-suffixes): Add suffixes + for biblatex. + (TeX-auto-generate, TeX-auto-generate-global): Use separate + variables for BibTeX and Biber file extensions. + (TeX-Biber-file-extensions): New variable. + (BibTeX-Biber-file-extensions): Remove. + (BibTeX-file-extensions): Reintroduce. + (TeX-search-files-type-alist): Use `BibTeX-file-extensions'. + (TeX-normal-mode): Use separate variables for BibTeX and Biber + global files. + +2012-07-17 Vincent Belaïche + + * tex-info.el (Texinfo-reftex-hook): Added function. + (TeX-texinfo-mode): Added RefTeX plugging. + +2012-11-23 Tassilo Horn + + * doc/quickstart.texi (Quick Start): Document that one mustn't + load auctex.el if AUCTeX is installed from ELPA. + + * doc/install.texi (Installation): Mention installation from ELPA. + +2012-11-20 Davide G. M. Salvetti + + * doc/tex-ref.tex (column{preview-latex}): Fix typo. Reported by + Sébastien Villemot. Update copyright information. + +2012-11-14 Ralf Angeli + + * latex.el (LaTeX-auto-regexp-list): Remove entries for Biber. + (LaTeX-biber): Remove. + (LaTeX-listify-package-options): Rewrite so that the function can + deal with key=value pairs. + (LaTeX-always-use-Biber): Remove. + (LaTeX-using-Biber): Add doc string and make buffer-local. + + * tex-style.el (LaTeX-biblatex-use-Biber): New variable. + + * doc/auctex.texi (top): Remove reference to + `LaTeX-always-use-Biber'. + (Selecting a Command): Mention Biber and + `LaTeX-biblatex-use-Biber'. + + * Makefile.in (STYLESRC): Add style/biblatex.el. + + * style/biblatex.el: New file. + +2012-11-05 Tassilo Horn + + * tex.el (TeX-doc-extensions): Fix typo. This variable was + formerly named TeX-doc-extenstions. + +2012-10-04 Masayuki Ataka + + * tex-jp.el: Repair coding from iso-2022-7bit to iso-2022-jp. + +2012-10-03 Ralf Angeli + + * tex-jp.el: Repair coding. + +2012-10-02 Ikumi Keita + + * tex-jp.el (japanese-TeX-engine-default) + (TeX-engine-alist-builtin, japanese-TeX-use-kanji-opt-flag): New + defcustoms. + (japanese-TeX-coding-ejsu, japanese-TeX-get-encoding-string): New + functions. + (japanese-TeX-command-list): Support %(kanjiopt). + (TeX-expand-list): Support new option kanjiopt, bibtex, makeindex, + mendexkopt, xdvi. + (TeX-view-predicate-list-builtin): Judge paper. + (TeX-view-program-list): Support dviout paper size, and other DVI + previewers in Mac and others. + (TeX-view-program-selection): Add Dviout, TeXworks and Preview. + (LaTeX-command-style): Support uplatex. + (japanese-plain-tex-mode-initialization): Use TeX-engine-set. + (japanese-latex-mode-initialization): Ditto. + + * tex-jp.el: Comment fix. + (TeX-error-description-list): Doc fix. + +2012-09-27 Joost Kremers (tiny change) + + * tex-buf.el (TeX-check-files): Use mapcar instead of cl's map. + +2012-09-16 Philip Kime (tiny change) + + * tex-buf.el (TeX-LaTeX-sentinel): Detect generic rerun message + from biblatex + +2012-09-14 Ken Brown (tiny change) + + * doc/auctex.texi (top): Mention LaTeX-always-use-Biber. + + * doc/tex-ref.tex: Add Biber. + +2012-09-13 Tassilo Horn + + Merge Biber support developed by Philip Kime + . + * doc/changes.texi: Mention Biber support. + + * tex.el (TeX-command-list, TeX-auto-generate) + (TeX-auto-generate-global, TeX-search-files-type-alist) + (TeX-normal-mode): Adapt. + (TeX-command-Biber): New defcustom. + (BibTeX-Biber-file-extensions): Renamed from + BibTeX-file-extensions. + + * tex-buf.el (TeX-save-document, TeX-check-files) + (TeX-command-query, TeX-LaTeX-sentinel): Adapt. + (TeX-Biber-sentinel, TeX-run-Biber): New functions. + + * latex.el (LaTeX-auto-regexp-list, LaTeX-auto-cleanup) + (TeX-arg-bibliography, LaTeX-common-initialization): Adapt. + (LaTeX-biber, LaTeX-split-bibs, LaTeX-using-Biber) + (LaTeX-always-use-Biber): New functions and vars. + (BibTeX-Biber-global-files): Renamed from BibTeX-global-files. + + * font-latex.el (font-latex-built-in-keyword-classes) + (font-latex-add-keywords): Adapt. + +2012-06-21 Patrice Dumas (tiny change) + + * doc/preview-latex.texi (The preview images): Place index command + `@pindex dvipng' on a line of its own. + + * doc/macros.texi: Replace user macro `@sans' by user macro + `@sansserif' and make definition conditional against flag + no-sansserif as `@sansserif' is a Texinfo macro and does not need + to be redefined. + + * doc/macros.texi: Suppress user macro `@LaTeX' as this macro is + already defined in Texinfo. + + * doc/quickstart.texi (Editing Facilities): Use texinfo + `@sansserif' macro rather than user macro `@sans'. + + * doc/auctex.texi (Font Specifiers): Use texinfo `@sansserif' + macro rather than user macro `@sans'. + +2012-08-14 Ralf Angeli + + * tex.el (TeX-source-correlate-determine-method): Match --synctex + as well as -synctex. + +2012-07-04 Tassilo Horn + + * doc/changes.texi: Mention Evince forward/backward search + changes. + +2012-07-03 Tassilo Horn + + * font-latex.el (byte-code-function-p): Reference the generated + functions with font-latex-match prefix. See Emacs bug 11837. + +2012-06-22 Tassilo Horn + + * tex.el (TeX-evince-dbus-p): Add check for + `dbus-register-signal', which might be unavailable if emacs was + configured with --without-dbus. + +2012-04-26 Tassilo Horn + + * tex.el (TeX-engine-set): Fix docstring leading to a misplaced + interactive spec warning. + +2012-04-25 Tassilo Horn + + * tex.el (TeX-evince-dbus-p): Improve check for emacs's dbus + support. + +2012-04-11 Tassilo Horn + + * tex.el (TeX-evince-sync-view): Work around emacs integer limits. + Also provide the current column to Evince. + (TeX-evince-dbus-p): Also check the signature of Evince's + FindDocument DBUS method, which is only stable since evince 3.0. + +2012-04-10 Tassilo Horn + + * tex.el (TeX-evince-sync-view): Fix arithmetic range error. + (TeX-evince-dbus-p): Add parameter to extend the check depending + on wanted features (e.g., forward search). + (TeX-view-program-list-builtin): Use it. + +2012-04-08 Tassilo Horn + + * tex.el (TeX-evince-dbus-p): New function. + (TeX-evince-sync-view): New function. + (TeX-view-program-list-builtin): Use Evince's DBUS interface for + forward search if available. + (TeX-source-correlate-mode): Use TeX-evince-dbus-p. + +2012-01-11 Ralf Angeli + + * style/setspace.el ("setspace"): Correct quoting. + +2011-09-18 Ralf Angeli + + * doc/auctex.texi (Marking): Make a few corrections throughout the + section. + (Adding Macros): Document special values for numbers used together + with `TeX-add-symbols'. + +2011-09-18 Vincent Belaïche + + * doc/auctex.texi: Add documentation for functions + LaTeX-mark-section, LaTeX-mark-environment, Texinfo-mark-section, + Texinfo-mark-environment and Texinfo-mark-node. + +2011-08-24 Tassilo Horn + + * tex.el (TeX-synctex-output-page): TeXLive 2011's synctex wants + absolute file names with dot indicating the master, like + /foo/bar/./baz/chap1.tex. So add this as another variant. + (TeX-view-program-list-builtin): Use evince's -i,--page-index + switch instead of -p,--page-label if that evince version supports + it (>=3.0.x). + +2011-08-07 Ralf Angeli + + * latex.el (LaTeX-fill-move-to-break-point): Take characters after + closing dollar sign into account when deciding to break before + inline math. + +2011-07-12 Ralf Angeli + + * tex.el (TeX-search-files-kpathsea): Check if directories are + accessible. + +2011-07-11 Vincent Belaïche + + * tex-info.el (Texinfo-mark-environment, Texinfo-mark-section) + (Texinfo-mark-node): New defun. + (Texinfo-mode-map): added key bindings for + Texinfo-mark-environment, Texinfo-mark-section, and + Texinfo-mark-node. + +2011-06-19 Ralf Angeli + + * tex.el (TeX-engine-alist-builtin): Add --jobname to luatex and + lualatex calls. + (TeX-engine-alist-builtin): Remove --jobname again for luatex but + not for lualatex. + +2011-06-05 Tassilo Horn + + * tex.el (TeX-source-correlate-sync-source): Restore Emacs 21 + compatibility. + +2011-05-26 Tassilo Horn + + * tex.el (TeX-source-correlate-sync-source): Adapt to handle + file:// URLs. + +2011-05-15 Ralf Angeli + + * Makefile.in (STYLESRC): Add style/setspace.el. + + * tex.el (TeX-expand-list): Add a safeguard to the %(outpage) + expander for when an output page function returns nil. + +2011-05-09 Tassilo Horn + + * tex.el (TeX-synctex-output-page-1): New function for calling + synctex. + (TeX-synctex-output-page): Use it, and try relative file names + with and without leading ./ when calling synctex before falling + back to page 1. + (TeX-source-correlate-sync-source): Add &rest parameter, because + Evince 3 sends an additional (ignored) parameter via dbus. + +2011-05-01 Ralf Angeli + + * tex.el (TeX-tree-expand): Use a different test to check for an + absolute path on Windows. + + * font-latex.el (font-latex-built-in-keyword-classes): Add + definition for \rule and remove the one for \sbox. + +2011-04-25 Ralf Angeli + + * style/setspace.el: Add support for changing \displayskipstretch. + +2011-04-25 Mads Jensen + + * style/setspace.el: New file. + +2011-04-25 Ralf Angeli + + * latex.el (LaTeX-style-list): Add memoir. + +2011-04-20 Ralf Angeli + + * tex-fold.el (TeX-fold-expand-spec): Make sure the expansion of a + placeholder is not processed again. + +2011-04-15 Ralf Angeli + + * font-latex.el (font-latex-built-in-keyword-classes): Make a few + additions and corrections. + + * latex.el (LaTeX-common-initialization): Prompt for file + extension instead of name when inserting \addcontentsline or + \addtocontents. + +2011-04-10 Ralf Angeli + + * tex.el (TeX-source-correlate-mode): Check for D-Bus session. + +2011-04-10 Antoine Levitt (tiny change) + + * tex.el (TeX-source-correlate-sync-source): Do not use + `goto-line'. + +2011-04-03 Ralf Angeli + + * Makefile.in (STYLESRC): Add style/xspace.el. + + * style/xspace.el: Add copyright notice and license blurb. + Correct a few things. + +2011-04-03 Mads Jensen + + * style/xspace.el: New file. + +2011-03-27 Tassilo Horn + + * tex.el (TeX-source-correlate-mode): Add support for I/O + correlation mode inverse search for the Evince document viewer. + +2011-03-23 Ralf Angeli + + * style/bulgarian.el, style/czech.el, style/danish.el, + style/frenchb.el, style/icelandic.el, style/polish.el, + style/polski.el, style/slovak.el, style/swedish.el: Do not set + `TeX-quote-language' if `override' is in effect. + +2011-03-20 Ralf Angeli + + * tex-buf.el (TeX-synchronous-sentinel): Strip directory part of + master file because we are already in the master directory. + +2011-03-13 Ralf Angeli + + * Makefile.in (STYLESRC): Add style/lettrine.el and + style/multicol.el. + + * style/lettrine.el: Add copyright notice and license blurb. + Correct a few things. + + * style/multicol.el: Add copyright notice and license blurb. + Simplify environment definitions. Provide completion for lengths + the package defines. Get rid of indentation and filling barrier. + Remove fontification definitions. + +2011-03-13 Mads Jensen + + * style/lettrine.el: New file. + + * style/multicol.el: New file. + +2011-02-27 Ralf Angeli + + * latex.el (LaTeX-common-initialization): Add support for + \ProvidesPackage. + +2011-02-06 Ralf Angeli + + * style/letter.el (LaTeX-env-recipient): Use \renewcommand instead + of \def to set date. + +2011-01-30 Ralf Angeli + + * tex.el (TeX-parse-macro): Do not insert braces if the argument + is 0 or less. + (TeX-parse-argument): Put both the macro and the marked region in + a TeX group if the argument is less than 0. + + * latex.el (LaTeX-common-initialization): Give macros that change + font size a -1 argument so that braces are added around them if + if there is an active region. + + * doc/auctex.texi (Adding Macros): Document special options 0 and + -1 for number-type specs. + +2011-01-29 Ralf Angeli + + * tex.el (TeX-complete-symbol): Get rid of the window with the + completions when possible. + +2011-01-23 Ralf Angeli + + * tex-fold.el (TeX-fold-post-command): Add `forward-char' and + `backward-char' to commands on which to open an overlay. + + * doc/auctex.texi (Adding Macros): Mention + `TeX-arg-input-file-search'. + +2011-01-22 Ralf Angeli + + * tex.el (TeX-tree-expand): Make `subdirs' parameter optional. Do + not try to call kpsewhich with --expand-braces anymore and adapt + code for handling of results accordingly. + (TeX-doc-extenstions): New variable. + (TeX-tree-roots): New function. + (TeX-tree-roots): New user option. + (TeX-kpathsea-format-alist): Remove. + (TeX-search-files-kpathsea): Add and use `extensions' and `scope' + parameters. + (TeX-search-files): Do not call `TeX-search-files-kpathsea' + anymore. + (TeX-search-files-type-alist): New variable. + (TeX-search-files-by-type): New function. + + * latex.el (LaTeX-arg-usepackage): Let-bind + `TeX-input-file-search'. + (LaTeX-search-files-type-alist): New user option. + (TeX-arg-input-file-search): Doc fix. + (TeX-arg-input-file, TeX-arg-bibstyle, TeX-arg-bibliography): Use + `TeX-search-files-by-type' instead of `TeX-search-files'. + (LaTeX-common-initialization): Set `TeX-search-files-type-alist'. + +2011-01-09 Ralf Angeli + + * latex.el (LaTeX-common-initialization): Add support for + \settoheight and \settodepth. + +2010-12-26 Ralf Angeli + + * doc/auctex.texi (Simple Style): Add a note about the naming of + the style file and the style hook. + +2010-12-12 Ralf Angeli + + * latex.el (LaTeX-env-args): Add the optional argument at the + right position when wrapping the environment around existing text. + +2010-12-05 Ralf Angeli + + * context.el: Set up abbrev table. + (ConTeXt-mode-common-initialization): Set `local-abbrev-table'. + + * latex.el: Set up abbrev table for LaTeX and docTeX mode. + (docTeX-mode): Set abbrev table. + (LaTeX-common-initialization): Set `local-abbrev-table'. + + * plain-tex.el: Set up abbrev table. + (plain-TeX-common-initialization): Set `local-abbrev-table'. + + * tex.el (TeX-mode-prefix): Add mode parameter. + (VirTeX-common-initialization): Do not set `local-abbrev-table' + anymore. + (TeX-abbrev-mode-setup): New function. + + * doc/changes.texi: Mention change of abbrev handling. + +2010-12-04 Ralf Angeli + + * latex.el (LaTeX-verbatim-macro-boundaries): Support verbatim + macros with braces. + +2010-12-04 Augusto Ritter Stoffel (tiny change) + + * latex.el (LaTeX-math-keymap): Define a key for the math prefix + only if it has not been used as a prefix after the prefix. + +2010-11-16 Ralf Angeli + + * tex.el (TeX-view-program-list-builtin): Add Okular. + +2010-10-17 Ralf Angeli + + * latex.el (TeX-arg-input-file-search): New user option. + (TeX-arg-input-file): Use it. + +2010-10-11 Ralf Angeli + + * tex.el (TeX-synctex-output-page): Return "1" if no page number + can be found to prevent an infinite loop in command expansion. + +2010-10-02 Ralf Angeli + + * style/beamer.el ("beamer"): Prompt for block title. + +2010-09-28 Ralf Angeli + + * context.el (ConTeXt-extra-paragraph-commands): Remove. + (ConTeXt-language-variable-list): Add + `ConTeXt-extra-paragraph-commands'. + + * context-en.el (ConTeXt-extra-paragraph-commands-en): New + variable. + + * context-nl.el (ConTeXt-extra-paragraph-commands-nl): New + variable. + +2010-09-18 Ralf Angeli + + * context.el (ConTeXt-expand-options): Eval value from engine + alist. + +2010-09-12 Ralf Angeli + + * tex-fptex.el: Remove. + + * Makefile.in (AUCSRC): Reflect removal of tex-fptex.el. + + * doc/wininstall.texi: Reflect removal of tex-fptex.el. + + * style/virtex.el: Mention author. Do not unnecessarily protect + `lambda' with `function'. + + * font-latex.el (font-latex-keyword-matcher): Refine last change + to work properly with lists of face symbols. + +2010-09-11 Ralf Angeli + + * style/natbib.el: Update copyright information. + + * style/letter.el: Update copyright information. + + * style/harvard.el: Update copyright information. + + * style/doc.el: Do not unnecessarily protect `lambda' with + `function'. + +2010-09-06 Arne Jørgensen + + * style/danish.el: Changed font-latex-add-quotes from french to + german. + +2010-08-30 Ralf Angeli + + * style/ngerman.el: Prevent "| from leading to color bleed. + + * style/german.el: Prevent "| from leading to color bleed. + +2010-08-29 Ralf Angeli + + * doc/preview-dtxdoc.pl: Use explicit variable with split instead + of implicit split to @_ which does not work anymore in Perl 5.12. + +2010-07-11 Ralf Angeli + + * tex-info.el: Delete trailing whitespace. + +2010-07-04 Ralf Angeli + + * doc/faq.texi: Update infos about Emacs versions. Add FAQ entry + for file:line:error messages in case `TeX-next-error' fails due to + unbalanced parens. + + * tex.el (TeX-print-command, TeX-queue-command) + (TeX-printer-list): Switch back to Berkeley-style commands. + +2010-06-24 Ralf Angeli + + * doc/auctex.texi (Texinfo mode): Make a few corrections. + +2010-06-19 Berend de Boer + + * context.el: proper indent of all macros that can appear inside + an itemize list such as \sym. + +2010-06-12 Ralf Angeli + + * tex-info.el (Texinfo-find-env-end, Texinfo-find-env-start): + Enable the commands to be used repeatedly without getting stuck at + an environment start or end respectively. + +2010-05-27 Ralf Angeli + + * autogen.sh: Set LANG=C when looking into ChangeLog for + AUCTEXDATE. + +2010-05-24 Vincent Belaïche + + * doc/auctex.texi (Texinfo mode): New section. + +2010-05-17 Ralf Angeli + + * tex.el (TeX-math-input-method-off-regexp): Fix regexp. + +2010-04-25 Ralf Angeli + + * tex.el (TeX-print-command): Support printing of Postscript and + PDF files. Doc fix. + (TeX-queue-command): Use lpstat instead of lpq. Doc fix. + (TeX-printer-list): Support printing of Postscript and PDF files. + Make use of System V style commands (lp, lpstat) instead of + Berkeley style (lpr, lpq). + (TeX-printer-default): Doc fix. + +2010-04-17 Ralf Angeli + + * tex-buf.el (TeX-warning): Throw an error with a sensible message + if the file for the warning could not be determined. + +2010-04-13 Ralf Angeli + + * tex-buf.el (TeX-format-filter): Calculate the current column as + difference between line start and end instead of using + `current-column' in order to do the right thing when octal codes + are present. + +2010-04-11 Ralf Angeli + + * font-latex.el (font-latex-keyword-matcher): Quote a list of face + properties but do not to quote a face symbol. + +2010-04-05 Ralf Angeli + + * tex-buf.el (TeX-parse-error): Allow `TeX-error-file' to become + empty. + +2010-03-28 Ralf Angeli + + * plain-tex.el: New file. + + * tex.el: Move code related to plain TeX to plain-tex.el. + + * Makefile.in (AUCSRC): Add plain-tex.el. + + * context.el: Require `plain-tex'. + +2010-03-27 Ralf Angeli + + * tex.el (TeX-view-program-selection): Doc fix. + (TeX-clean): Regexp-quote the master file name. + +2010-03-20 Ralf Angeli + + * style/french.el: New file. + + * Makefile.in (STYLESRC): Add style/french.el. + +2010-03-07 Ralf Angeli + + * latex.el (TeX-arg-key-val): Hint at key=value format in prompt. + (LaTeX-fill-region-as-para-do): Match whitespace without comment + starter at beginning of line when dealing with code comments. + +2010-03-06 Ralf Angeli + + * Makefile.in (DIST_PREFIX): Use the working directory for the + folder with distribution files. + (FTPDIR, WWWDIR): Make them subdirectories of `DIST_PREFIX'. + (COMMITTER_NAME, COMMITTER_EMAIL): Remove. + (COMMITTER): New variable. + (.PHONY): Update. + (tar-ball-clean): Use `check-tag'. + (check-tag): New name for `check-dist'. + (dist): Do not call `release-commit' anymore. + (snapshot): Now an alias for `dist'. + (release-commit): Use `COMMITTER'. + (release-sign): New name for `full-release' target. Generate + version 1.1 directive files. + (xemacs-package): Depend on `check-tag'. + (WPACKAGEFILES): Include info files with a numerical supplement to + the .info extension. Depend on `check-tag'. Check for presence + of `WEMACSVER' variable. Try to find a local AUCTeX tar ball + before downloading one. Use `TAG' instead of `WAUCVER'. Put ZIP + archive into `FTPDIR'. + (WAUCVER, WEMACSVER): Remove. + (release-upload): New target. + (www-doc): Depend on `check-tag'. Update URLs for Emacs manuals. + +2010-02-21 Ralf Angeli + + * Version 11.86 released. + +2010-02-21 Ralf Angeli + + * RELEASE: Update for upcoming release. + + * doc/install.texi (Prerequisites): Update information about Emacs + distributions. + + * doc/tex-ref.tex: Bump version number. Update section on TeXing + options. + + * configure.ac: Bump version number. + + * auctex.spec (Version): Bump version number. + + * doc/fdl.texi: Switch to GFDL 1.3. + + * doc/auctex.texi: Switch to GFDL 1.3. + + * doc/preview-latex.texi: Switch to GFDL 1.3. + + * doc/changes.texi: Update for next release. + +2010-02-20 Ralf Angeli + + * tex.el (TeX-doc): Add a fallback in case nothing is found via + the backend list, e.g. when using MiKTeX 2.8. + + * doc/auctex.texi (Documentation): Document change in `TeX-doc'. + +2010-02-14 Ralf Angeli + + * doc/changes.texi: Mention preview.sty supporting XeTeX. + +2010-02-13 Ralf Angeli + + * tex.el (TeX-XeTeX-command, LaTeX-XeTeX-command): Remove. + (ConTeXt-engine): Doc fix. + (ConTeXt-Omega-engine): Doc fix. Make obsolote. + (TeX-expand-list): Add support for LuaTeX. Adapt to new engine + handling. + (AUC-TeX-version, AUC-TeX-date): Remove. + (TeX-engine-alist-builtin): New variable. + (TeX-engine-alist): Adapt to new engine handling and make it a + defcustom. + (TeX-engine-alist): New function. + (TeX-engine): Adapt to new engine handling and make it + buffer-local. + (LaTeX-engine-alist): Remove. + (TeX-engine-set): Adapt to new engine handling and take care of + TeX PDF mode. + (TeX-clean-default-output-suffixes): Add .xdv. + (TeX-mode-specific-command-menu-entries): Construct list of + engines from `TeX-engine-alist'. + + * context.el (ConTeXt-expand-options): Adapt to new engine + handling. + + * doc/auctex.texi (Processor Options): Document options and + functions of new engine handling. + +2009-12-30 Ralf Angeli + + * tex.el (TeX-view-command-raw): Abort if no matching viewer is + found. + + * doc/preview-faq.texi (Troubleshooting): Add some hints about + preview-latex overwriting output files. + +2009-12-28 Ralf Angeli + + * style/austrian.el: New file. + + * style/naustrian.el: New file. + + * Makefile.in (STYLESRC): Add style/austrian.el and + style/naustrian.el. + +2009-12-26 Ralf Angeli + + * doc/auctex.texi (Known problems): New subsection on dealing with + font locking problems. + + * font-latex.el (font-latex-syntax-alist): New variable. + (font-latex-add-to-syntax-alist): New function. + (font-latex-setup): Use `font-latex-syntax-alist'. + + * style/shortvrb.el: New file. + + * Makefile.in (STYLESRC): Add style/shortvrb.el. + + * tex-style.el (LaTeX-shortvrb-chars): New variable. + + * doc/changes.texi: Document changes after 11.85. + + * context.el (ConTeXt-expand-options): Check for XeTeX engine, not + for mode which does not exist anymore. + + * tex.el (plain-TeX-common-initialization): Let commented lines be + matched by `paragraph-separate' in order for commented and + non-commented paragraphs to be filled separately. + +2009-12-12 Ralf Angeli + + * tex-buf.el (TeX-parse-error): Also find quoted file names with + newlines. Remove the newlines from the matched string if + necessary. + +2009-12-07 Ralf Angeli + + * tex-buf.el (TeX-parse-error): Add an alternative in the parser + regexp for quoted file names. Strip the quotation marks if a file + name was found with the alternative. + +2009-12-06 Ralf Angeli + + * tex-fold.el (TeX-fold-command-prefix): New variable. + (TeX-fold-mode): Use it. + (TeX-fold-keymap): Remove prefix strings. + + * tex.el (TeX-fold-menu): Remove hard-coded key binding labels. + + * doc/auctex.texi (Folding): Mention `TeX-fold-command-prefix'. + +2009-11-22 Ralf Angeli + + * doc/wininstall.texi: Do not refer to Emacs 22 anymore. Improve + the paragraphs about PNG support. + +2009-11-01 Ralf Angeli + + * style/pstricks.el: Disable key bindings for macro parameter + addition and change. + (LaTeX-pst-color-list, LaTeX-pst-boolean-list) + (LaTeX-pst-fillstyle-list): Remove information for completion + mechanism. + (LaTeX-pst-trimode-list, LaTeX-pst-linestyle-list): Remove. + Handled directly in `LaTeX-pst-basic-parameters-list'. + (LaTeX-pst-basic-parameters-list): New variable. + (LaTeX-pst-parameters): Call `TeX-arg-key-val' instead of + `LaTeX-package-parameters' and thereby use a different completion + mechanism. + (LaTeX-pst-macro-psdots): Do not add a dotstyle parameter. + (LaTeX-pst-env-pspicture): Handle optional parameter via + `multi-prompt-key-value'. + ("pstricks"): Handle arguments of \psdot and \psdots correctly. + +2009-10-31 Ralf Angeli + + * tex.el (TeX-verbatim-p-function): New variable. + (TeX-verbatim-p): New function. + (TeX-in-comment): Use it. + (TeX-brace-count-line): Use `TeX-in-comment' instead of just + checking for a comment character. + + * latex.el (LaTeX-common-initialization): Set + `TeX-verbatim-p-function'. + +2009-10-25 Ralf Angeli + + * doc/auctex.texi (Starting Viewers): Describe new viewer + selection options. + (Folding): Add some hints on how to do automatic folding. + + * tex.el (TeX-view-predicate-list-builtin) + (TeX-view-predicate-list, TeX-view-program-list): Doc fix. + (TeX-view-program-list-builtin, TeX-view-program-selection): + Conditionalize default value based on system type. Doc fix. + (TeX-synctex-output-page): Do not return random stuff if there was + no match. + (TeX-clean-default-intermediate-suffixes): Remove SyncTeX files as + well. + +2009-10-21 Ralf Angeli + + * tex.el (TeX-synctex-output-page): Handle files in subdirectories + correctly. + +2009-10-18 Ralf Angeli + + * tex-buf.el (TeX-run-discard): Doc fix. + (TeX-run-discard-or-function): New function. + + * tex.el (TeX-command-list): Use `TeX-run-discard-or-function' as + hook for View command and provide it as a customization option. + (TeX-view-program-list): Add the possibility to use a function to + call the viewer. + (TeX-view-command-raw): Support the use of a function to call the + viewer. + +2009-10-11 Ralf Angeli + + * tex.el (TeX-view-predicate-list-builtin): Remove combined + predicates for paper properties and add new predicates testing + only one property. + (TeX-view-program-list-builtin): Use new predicates. + (TeX-view-program-list): Provide the possibility to use a list of + predicates. + +2009-10-10 Ralf Angeli + + * tex.el (TeX-view-program-list): Shave off extra closing paren. + +2009-10-04 Ralf Angeli + + * tex.el (LaTeX-command-style, TeX-print-style, TeX-view-style): + Doc fix. + (TeX-view-predicate-list-builtin, TeX-view-program-list-builtin): + New variables. + (TeX-view-predicate-list, TeX-view-program-list) + (TeX-view-program-selection): New user options. + (TeX-match-style, TeX-view-match-predicate) + (TeX-view-command-raw): New functions. + (TeX-expand-list): Use `TeX-view-command-raw' for %V expander. + +2009-09-13 Ralf Angeli + + * tex-buf.el (TeX-error): Cater for case of file:line:error + messages without context. + (TeX-parse-error): Add support for quoted file names with + backslashes as path separators. Those might be emitted by MiKTeX + 2.8. + +2009-06-14 Ralf Angeli + + * doc/auctex.texi (Indenting): Mention `LaTeX-item-regexp'. + (Fontification of math): New section replacing and extending + `Subscript and superscript'. + +2009-04-26 Ralf Angeli + + * tex.el (TeX-source-correlate-mode): Clean `custom-requests' + property. + (VirTeX-common-initialization): Call `TeX-source-correlate-mode' + minor mode function when initializing the mode instead of when + loading the file. + +2009-04-13 Ralf Angeli + + * latex.el (TeX-arg-key-val): Eval `key-val-alist' argument if it + is a symbol. + + * style/listings.el ("listings"): Do not eval arguments of + `TeX-arg-key-val'. + + * multi-prompt.el (multi-prompt-expand-completion-table): New + function. + (multi-prompt-key-value): Use it. + + * style/pstricks.el: Correct header info. + (LaTeX-pst-input-int, LaTeX-pst-point, LaTeX-pst-angle) + (LaTeX-pst-extdir, LaTeX-pst-arrows, LaTeX-pst-dotstyle-list) + (LaTeX-pst-refpoint-list, LaTeX-pst-refpoint) + (LaTeX-pst-macro-multirputps, LaTeX-pst-env-pspicture): Improve or + correct prompt. + ("pstricks"): Move to the bottom of the file. Do not use + `function' to quote `lambda'. Turn off TeX PDF mode. Use `mapc' + instead of `mapcar'. + +2009-04-05 Ralf Angeli + + * tex-buf.el (TeX-help-error): Make search for help text in log + file more robust. + +2009-04-04 Ralf Angeli + + * style/listings.el ("listings"): Remove redundant list when + calling `TeX-arg-key-val'. Use `LaTeX-env-args' for lstlisting + environment. + + * latex.el (LaTeX-env-args): New function. + (TeX-arg-conditional, TeX-arg-eval, TeX-arg-label) + (TeX-arg-index-tag, TeX-arg-index, TeX-arg-macro) + (TeX-arg-environment, TeX-arg-cite, TeX-arg-counter) + (TeX-arg-savebox, TeX-arg-file, TeX-arg-define-label) + (TeX-arg-define-macro, TeX-arg-define-environment) + (TeX-arg-define-cite, TeX-arg-define-counter) + (TeX-arg-define-savebox, TeX-arg-document, LaTeX-arg-usepackage) + (TeX-arg-input-file, TeX-arg-bibstyle, TeX-arg-bibliography) + (TeX-arg-corner, TeX-arg-lr, TeX-arg-tb, TeX-arg-pagestyle) + (TeX-arg-verb, TeX-arg-pair, TeX-arg-size, TeX-arg-coordinate) + (TeX-arg-insert-braces): Doc fix. + + * multi-prompt.el (multi-prompt-separator): Remove. + (multi-prompt-key-value-collection-fn): Do not search for + `multi-prompt-separator'. + (crm-local-must-match-map, crm-local-completion-map): Silence the + byte compiler. + (multi-prompt-key-value): Require crm.el here and not at + top-level. + + * tex-info.el (TeX-texinfo-mode): Add @lowersections and + @raisesections. + + * doc/auctex.texi (Adding Environments): Document hooks for + `LaTeX-add-environments'. + +2009-03-29 Ralf Angeli + + * style/listings.el (LaTeX-listings-key-val-options): New + variable. + ("listings"): Use it. Check for font-latex function, not feature. + + * latex.el (TeX-arg-key-val): New function. + + * multi-prompt.el: Require crm.el. + (multi-prompt-separator, multi-prompt-key-value-sep) + (multi-prompt-completion-table): New variables. + (multi-prompt-key-value-collection-fn, multi-prompt-key-value): + New functions. + +2009-03-22 Ralf Angeli + + * tex-site.el.in: Revitalize support for completion in \cite + macros via `BibTeX-auto-store'. + +2009-03-02 Holger Sparr + + * Makefile.in (STYLESRC): Add style/multido.el; + style/pst-{grad|node|plot|slpe}.el + +2009-03-01 Ralf Angeli + + * latex.el (LaTeX-verbatim-macro-boundaries): Do step backwards at + beginning of buffer. + (LaTeX-search-forward-comment-start): Treat find of comment at + limit correctly. + + * tex-fold.el (TeX-fold-comment-do): Abort backward search for + comment start at beginning of buffer. Do not fold empty comment. + +2009-02-24 Holger Sparr + + * style/multido.el: New file. + + * style/pst-grad.el: New file. + + * style/pst-node.el: New file. + + * style/pst-plot.el: New file. + + * style/pst-slpe.el: New file. + +2009-02-23 Holger Sparr + + * style/pstricks.el: Actually implement support for writing + PSTricks code. + +2009-02-22 Ralf Angeli + + * doc/auctex.texi (Multi-line fontification): Remove. + + * doc/todo.texi (Wishlist): Fix typo. Remove entry which is + already supported. + + * style/tabularx.el: New file. + + * Makefile.in (STYLESRC): Add style/tabularx.el + +2009-02-15 Ralf Angeli + + * style/natbib.el ("natbib"): Check for font-latex function rather + than feature. Add fontification spec for \cite. + + * doc/auctex.texi (Simple Style): Bring example in line with + reality. + +2009-01-24 Ralf Angeli + + * tex.el (TeX-source-correlate-method): Doc fix. + (TeX-source-correlate-mode): Call minor mode function after file + is loaded. + +2009-01-14 Ralf Angeli + + * latex.el (LaTeX-babel-insert-hyphen): Put `delete-selection' + property on function symbol. + +2009-01-04 Ralf Angeli + + * style/CJK.el: New file. + + * style/ruby.el: New file. Correct argument numbers of \rubysize + and \rubysep. + + * style/CJKutf8.el: New file. + + * Makefile.in (STYLESRC): Add style/CJK.el and style/ruby.el. Add + style/CJKutf8.el. + +2009-01-03 Ralf Angeli + + * style/flashcards.el ("flashcards"): Test for font-latex function + instead of feature. Reflect that \cardbackstyle has an optional + argument. + +2008-12-29 Ralf Angeli + + * style/hyperref.el ("hyperref"): Test for font-latex function + instead of feature. Activate hyperref referencing style if + possible. + +2008-12-28 Ralf Angeli + + * tex-buf.el (TeX-current-pages): Get rid of trailing periods. + (TeX-LaTeX-sentinel): Add support for longtable warning. Use only + one search per condition. Call `message' like `format'. + +2008-12-22 Ralf Angeli + + * tex.el (TeX-doc-backend-alist): Call `TeX-tree-expand' instead + of `TeX-macro-global-internal'. + + * tex-jp.el (TeX-macro-global): Call `TeX-tree-expand' instead of + `TeX-macro-global-internal'. + + * latex.el (LaTeX-env-item): Deactivate the mark before inserting + \item. + (LaTeX-insert-item): Swap point and mark when mark if necessary. + Insert newline only when not at beginning of line. + + * tex.el (TeX-deactivate-mark): New function. + (TeX-parse-argument): Use it. + +2008-12-21 Ralf Angeli + + * tex.el (TeX-auto-private, TeX-style-private): Per default + propose a place in the user's Emacs directory, not in the TeX + tree. + (TeX-style-path): Add values to the end of the list. Doc fix. + + * doc/auctex.texi (Automatic Private): Adjust descriptions of + `TeX-macro-private', `TeX-auto-private', and `TeX-style-private'. + +2008-12-16 Ralf Angeli + + * tex.el (TeX-tree-expand): New name for + `TeX-macro-global-internal'. Adapt parameter list to make it more + flexible. Update doc string. Do not return removed default + argument. + (TeX-macro-global): Change to accomodate new interface of + `TeX-tree-expand'. + (TeX-macro-private): New function. + (TeX-macro-private): Use it to determine variable value. + +2008-12-13 Ralf Angeli + + * tex.el (plain-TeX-clean-intermediate-suffixes) + (plain-TeX-clean-output-suffixes): New variables. + +2008-12-01 Ralf Angeli + + * tex.el (VirTeX-common-initialization): Revert last change. + +2008-11-30 Ralf Angeli + + * tex.el (VirTeX-common-initialization): Do not add call to + `TeX-update-style' to `find-file-hooks' but call it directly. + +2008-11-23 Ralf Angeli + + * tex.el (TeX-source-correlate-determine-method): Use configured + LaTeX command and find -synctex switch even if there are spaces in + front of it, as e.g. with MiKTeX. + (TeX-format-list): Use \subsection and \subsubsection as well to + identify a LaTeX file. + +2008-11-02 Ralf Angeli + + * font-latex.el (font-latex-match-math-env) + (font-latex-extend-region-backwards-math-env): Do not match + \\[...]. + + * tex-fold.el (TeX-fold-expand-spec): Do not treat `\' special in + replacement text. + +2008-10-26 Ralf Angeli + + * tex.el (plain-TeX-common-initialization): Respect double dollar, + i.e. "$$", as a paragraph separator. + +2008-10-14 Ralf Angeli + + * latex.el (LaTeX-current-environment): Fix handling of commented + parts. + + * tex.el (TeX-comment-prefix): Save match data. + +2008-10-13 Ralf Angeli + + * doc/changes.texi, doc/install.texi, doc/intro.texi, + doc/preview-readme.texi, doc/quickstart.texi: Make some + corrections and updates. + +2008-10-12 Ralf Angeli + + * tex-buf.el (TeX-warning): Fix regexp for detecting bad boxes. + +2008-10-11 Ralf Angeli + + * tex.el (TeX-set-mode-name): Indicate TeX PDF mode as a trailing + flag. + (TeX-engine): Doc fix. + + * doc/auctex.texi: Restructure some parts. Update and extend it a + bit to reflect the recent changes of functionality. + +2008-10-07 Ralf Angeli + + * tex.el (TeX-interactive-mode): Add to `minor-mode-alist'. + ("desktop"): Remove `TeX-interactive-mode' from + `desktop-locals-to-save'. + +2008-10-06 Ralf Angeli + + * latex.el (LaTeX-paragraph-commands-regexp-make): Make it work + for the case that `LaTeX-paragraph-commands' is set. + +2008-10-05 Ralf Angeli + + * tex.el (TeX-engine): New variable. + (TeX-expand-list): Use it instead of XeTeX and Omega mode + variables. + (hack-one-local-variable): Remove references to XeTeX and Omega + mode variables. + (TeX-set-mode-name): Remove lighters for XeTeX and Omega mode. + (TeX-engine-alist, LaTeX-engine-alist): New variables. + (TeX-engine-set): New function. + (TeX-Omega-mode): Mark as obsolete. Remove defcustom. + (TeX-PDF-mode): Use `TeX-engine' instead of mode variables. + (TeX-XeTeX-mode): Remove. + (TeX-mode-map): Remove key bindings for toggling XeTeX and Omega + mode. + (TeX-mode-specific-command-menu-entries): Use new facilities for + switching TeX engines. + ("desktop"): Remove reference to TeX Omega mode. + + * context.el (ConTeXt-expand-options): Use `TeX-engine' instead of + XeTeX and Omega mode variables. + +2008-09-07 Ralf Angeli + + * tex.el (TeX-PDF-mode): Add to `minor-mode-alist'. Use "" as + lighter. + ("desktop"): Remove `TeX-PDF-mode' from `desktop-locals-to-save'. + + * latex.el (LaTeX-mark-environment): Swap beg and end. + +2008-08-02 Ralf Angeli + + * tex-bar.el (TeX-bar-TeX-buttons, TeX-bar-LaTeX-buttons): Mimic + the default tool bars more closely. + +2008-08-02 Reiner Steib + + * toolbar-x.el (toolbarx-default-toolbar-meaning-alist): Provide + different defaults for different Emacs and XEmacs versions. + Conditionally add a `new-file' entry. + +2008-07-28 Ralf Angeli + + * toolbar-x.el (toolbarx-image-path): Protect against load-path + items being nil. + + * style/foils.el (LaTeX-style-foils): Silence the byte compiler. + + * style/epsf.el (TeX-arg-epsfsize): Silence the byte compiler. + + * tex.el (TeX-source-specials-view-start-server): Alias only if + `defvaralias' is available. + (TeX-master, TeX-convert-master): Move upwards to prevent some + compiler warnings. + +2008-07-27 Ralf Angeli + + * tex.el (TeX-synctex-tex-flags): New variable. + (TeX-source-correlate-expand-options): Use it. + (TeX-source-specials-tex-flags): Remove possibility to create + lists. + + * context.el (ConTeXt-expand-options): Support TeX XeTeX mode and + TeX Source Correlate mode. + +2008-07-24 Ralf Angeli + + * tex.el (TeX-source-specials-mode): Fix last change. + +2008-07-23 Ralf Angeli + + * tex.el (TeX-expand-list): Prevent "%(PDF)" expander from + returning "pdf" if `TeX-XeTeX-mode' is active. Make "%(tex)" and + "%(latex)" expanders aware of the XeTeX commands. + (hack-one-local-variable): Cater for `TeX-XeTeX-mode'. + (TeX-set-mode-name): Cater for `TeX-XeTeX-mode'. + (TeX-source-specials-mode): Mark as obsolete. + (TeX-PDF-mode): Disable TeX XeTeX mode if TeX PDF mode is + disabled. + (TeX-Omega-mode): Disable TeX XeTeX mode if TeX Omega mode is to + be enabled. + (TeX-XeTeX-command, LaTeX-XeTeX-command): New variables. + (TeX-XeTeX-mode): New minor mode. + (TeX-mode-map): Define key for TeX XeTeX mode. + (TeX-mode-specific-command-menu-entries): Add entry for TeX XeTeX + mode. Make the engine-related options exclusive by using radio + buttons. Refine the wording for some options. + +2008-07-19 Ralf Angeli + + * tex.el (TeX-source-correlate-determine-method): Do not error out + if calling the engine fails. + + * latex.el (LaTeX-mark-environment): Keep point upon unsuccessful + search. + +2008-07-19 Vincent Belaïche (tiny change) + + * latex.el (LaTeX-mark-environment): Support marking of multiple + nested environments. + +2008-07-17 Ralf Angeli + + * latex.el (LaTeX-paragraph-commands-regexp-make): Take + `LaTeX-paragraph-commands' into account. + (LaTeX-paragraph-commands-regexp): Move behind + `LaTeX-paragraph-commands' definition. + +2008-07-14 Ralf Angeli + + * style/pdfsync.el ("pdfsync"): Use + `TeX-source-correlate-output-page-function' rather than + `TeX-sync-output-page-function'. + + * tex.el (TeX-command-list): Remove SyncTeX expanders. + (TeX-expand-list): Adapt function calls. Remove SyncTeX expander. + (hack-one-local-variable, TeX-set-mode-name): Remove + `TeX-synctex-mode' and `TeX-source-specials-mode'. Add + `TeX-source-correlate-mode'. + (TeX-source-correlate-method): New variable. + (TeX-source-correlate-method-active): New variable. + (TeX-source-correlate-output-page-function): Renamed from + `TeX-sync-output-page-function'. + (TeX-source-correlate-start-server): Renamed from + `TeX-view-start-server'. + (TeX-source-correlate-start-server-asked): Renamed from + `TeX-view-start-server-asked'. + (TeX-source-correlate-start-server-flag): Renamed from + `TeX-view-start-server-flag'. + (TeX-source-correlate-gnuserv-p): Renamed from + `TeX-view-gnuser-p'. + (TeX-source-correlate-server-enabled-p): Renamed from + `TeX-view-server-enabled-p'. + (TeX-source-correlate-start-server-maybe): Renamed from + `TeX-view-start-server-maybe'. + (TeX-source-specials): Remove custom group. + (TeX-source-correlate-determine-method): New function. + (TeX-source-correlate-expand-options): Renamed from + `TeX-source-specials-expand-options'. Support SyncTeX as well. + (TeX-source-correlate-map): Renamed from + `TeX-source-specials-map'. + (TeX-source-correlate-mode): Renamed from + `TeX-source-specials-mode'. Support SyncTeX as well. + (TeX-source-specials-mode): Now an alias for + `TeX-source-specials-mode'. + (TeX-source-specials-tex-flags, TeX-source-specials-places) + (TeX-source-specials-view-position-flags) + (TeX-source-specials-view-editor-flags) + (TeX-source-specials-view-gnuclient-flags) + (TeX-source-specials-view-emacsclient-flags): Put into `TeX-view' + rather than `TeX-command' group. + (TeX-source-specials-view-expand-options): Adapt for new function + names and distinction between source specials and SyncTeX. + (TeX-synctex-mode): Remove. + (TeX-mode-map): Remove binding for TeX SyncTeX mode. + (TeX-mode-specific-command-menu-entries): Remove menu entry for + TeX SyncTeX mode. Use Source Correlate moniker instead of Source + Specials. + +2008-07-07 Ralf Angeli + + * doc/auctex.texi (Folding): Fix last change. + +2008-07-06 Ralf Angeli + + * doc/auctex.texi (Folding): Document folding of math constructs + and the possibilities of providing expanders and alternatives in + replacement specifiers. + + * tex.el (TeX-command-list): Add expanders for SyncTeX. + (TeX-expand-list): Start server if necessary when viewing. Define + expander for SyncTeX. + (hack-one-local-variable): Cater for TeX SyncTeX mode. + (TeX-set-mode-name): Add lighter for TeX SyncTeX mode. + (TeX-view): New customization group. + (TeX-view-start-server): Renamed from + `TeX-source-specials-view-start-server'. + (TeX-source-specials-view-start-server): Rename to + `TeX-view-start-server' and define alias. + (TeX-view-start-server-asked): Renamed from + `TeX-source-specials-view-start-server-asked'. + (TeX-source-specials-view-start-server-asked): Rename to + `TeX-view-start-server-asked'. + (TeX-view-start-server-flag): New variable. + (TeX-view-gnuserv-p): Renamed from + `TeX-source-specials-view-gnuserv-p'. + (TeX-source-specials-view-gnuserv-p): Rename to + `TeX-view-gnuserv-p'. + (TeX-view-server-enabled-p): New function. + (TeX-view-start-server-maybe): New function. + (TeX-source-specials-mode): Set `TeX-view-start-server-flag'. + (TeX-source-specials-view-expand-client): Adapt call to new + function name. + (TeX-source-specials-view-expand-options): Do not try to start the + server here anymore. + (TeX-synctex-mode): New minor mode. + (TeX-synctex-output-page): New function. + (TeX-mode-map): Add key for toggling TeX SyncTeX mode. + (TeX-mode-specific-command-menu-entries): Add menu entry for TeX + SyncTeX mode. + (TeX-math-input-method-off-regexp): New variable. + (TeX-toggle-off-input-method): Remove. + (TeX-math-input-method-off): Do without + `TeX-toggle-off-input-method'. + +2008-07-04 Berend de Boer + + * context.el, context-en.el: added a few more entries to the menu + to select ConTeXt macro's from. + +2008-06-29 Ralf Angeli + + * style/bulgarian.el ("bulgarian"): Use value of + `TeX-quote-after-quote' for default quote insertion behavior. + +2008-06-28 Ralf Angeli + + * font-latex.el (font-latex-find-matching-close): Simplify. There + is no need for a general mechanism if the supported chars are + limited at another place. + + * tex.el (TeX-search-syntax-table): Support (...) and <...>. + + * tex-fold.el (TeX-fold-macro-spec-list): New spec for \item. + Adapt doc string to reflect new functionality. + (TeX-fold-macro-nth-arg): New `delims' parameter which can be used + to find other macro args than those enclosed by braces. + (TeX-fold-expand-spec): New function. + (TeX-fold-hide-item): Use it. + + * doc/auctex.texi (European): Document `bulgarian' language + option. + + * Makefile.in (STYLESRC): Add style/bulgarian.el. + + * style/bulgarian.el: New file. + +2008-06-21 Ralf Angeli + + * style/hyperref.el: New file. + + * Makefile.in (STYLESRC): Add style/hyperref.el. + +2008-06-07 Ralf Angeli + + * font-latex.el (font-latex-make-built-in-keywords): Distinguish + command-type keyword classes from others when creating the + respective variables. + + * doc/auctex.texi (Font Locking): Structure with nodes. + (Fontification of macros): Describe format specifiers for macros + with arguments. + +2008-05-30 Ralf Angeli + + * tex-fold.el (TeX-fold-macro-spec-list): Add some documentation. + (TeX-fold-hide-item): Support replacement of argument specifiers + like "{1}" by the respective argument value in the display string. + +2008-05-30 Joost Kremers (tiny change) + + * tex-fold.el (TeX-fold-macro-spec-list): Add function choice. + (TeX-fold-hide-item): If specifier is a function, call it with all + mandatory arguments of macro. + +2008-05-25 Ralf Angeli + + * latex.el (docTeX-mode): Add regexp group to value of + `TeX-comment-start-regexp'. + + * style/doc.el (LaTeX-doc-after-insert-macrocode): New function. + ("doc"): Add it to `LaTeX-after-insert-env-hooks'. + + * latex.el: Get rid of some compiler warnings. + (LaTeX-after-insert-env-hooks): New variable. + (LaTeX-insert-environment): Remove docTeX-specific code. + Run `LaTeX-after-insert-env-hooks' + + * style/beamer.el (LaTeX-beamer-after-insert-env): New function. + ("beamer"): Add it to `LaTeX-after-insert-env-hooks'. Get rid of + some compiler warnings. Support the semiverbatim environment. + + * style/dinbrief.el: Get rid of some compiler warnings. + + * style/dk-bib.el: Get rid of some compiler warnings. + + * style/emp.el: Get rid of some compiler warnings. + + * style/epsf.el: Get rid of some compiler warnings. + + * style/foils.el: Get rid of some compiler warnings. + + * style/graphicx.el: Get rid of some compiler warnings. + + * style/letter.el: Get rid of some compiler warnings. + + * style/prosper.el: Get rid of some compiler warnings. + + * style/psfig.el: Get rid of some compiler warnings. + + * texmathp.el: Get rid of some compiler warnings. + + * tex.el: Get rid of some compiler warnings. + + * tex-jp.el: Get rid of some compiler warnings. + + * tex-buf.el: Get rid of some compiler warnings. + + * font-latex.el: Get rid of some compiler warnings. + + * context.el: Get rid of some compiler warnings. + + * context-en.el: Get rid of some compiler warnings. + + * context-nl.el: Get rid of some compiler warnings. + +2008-05-22 Ralf Angeli + + * tex-buf.el (TeX-command-sentinel): Use `TeX-master-file' instead + of `TeX-active-master' for `TeX-transient-master'. + +2008-05-17 Ralf Angeli + + * doc/auctex.texi (Font Specifiers): Correct argument list of + `TeX-font'. + +2008-05-13 Ralf Angeli + + * doc/auctex.texi (Font Specifiers): Document `LaTeX-font-list'. + +2008-05-10 Reiner Steib + + * tex-bar.el (TeX-bar-TeX-buttons, TeX-bar-LaTeX-buttons): Add + standard Emacs buttons to custom set. + (TeX-bar-TeX-buttons): Use `tex' instead of `latex' in custom set. + +2008-05-04 Ralf Angeli + + * tex-site.el.in (AUCTeX): Move customization group here from + tex.el and load the main files defining customization options. + + * tex.el (AUCTeX): Move customization group to tex-site.el.in. + (TeX-expand-list): Make %(outpage) default to "1". + +2008-05-01 Ralf Angeli + + * toolbar-x.el (toolbarx-xemacs-refresh): Only activate the tool + bar if it is already visible. Remove redundant if clause. + + * tex-buf.el (TeX-format-filter): Do not remove linebreak if the + following line starts with an opening parenthesis. + +2008-04-28 Ralf Angeli + + * doc/Makefile.in (install-auctex): Do not use `-' to suppress + errors within command. + +2008-04-28 David Kastrup + + * tex-buf.el (TeX-run-command): disable undo in run buffer + +2008-03-12 Ralf Angeli + + * style/pdfsync.el (LaTeX-pdfsync-output-page): Kill buffer with + pdfsync file if it was loaded by us. + +2008-03-02 Ralf Angeli + + * tex-info.el (texinfo-environment-regexp): Terminate. + +2008-03-01 Matan Ninio (tiny change) + + * style/pdfsync.el (LaTeX-pdfsync-output-page): Include + subdirectories relative to master file in file names. Searching + for the file entry in the .pdfsync file allows for an optional + `.tex' extension in the filename. Find further p lines if the + current context does not contain any more. + +2008-02-24 Ralf Angeli + + * Makefile.in: Add windows-package target and related variables. + +2008-02-23 Ralf Angeli + + * tex.el (TeX-common-menu-entries): Add exception for docTeX mode + when extending the customization menu. + +2008-02-17 Ralf Angeli + + * doc/auctex.texi: Repeat direntry after each category as per + recommendation of Karl Berry. + + * doc/preview-latex.texi: Repeat direntry after each category as + per recommendation of Karl Berry. + +2008-02-11 Ralf Angeli + + * font-latex.el (font-latex-make-match-defun) + (font-latex-keyword-matcher): Recognize old-style type specs which + could be lists. Prevents "void-function nil" error during font + locking. + +2008-02-10 Ralf Angeli + + * Makefile.in (maintainer-clean): Do not depend on distclean. How + did this ever work? + (www-doc): Use release files. Update URLs. Make gendocs.sh use + texi2html. + + * doc/Makefile.in (extradist): Re-add tex-ref.pdf dependency. + (install-auctex): Do not install reference card when producing an + XEmacs package. + +2008-02-10 Ralf Angeli + + * Version 11.85 released. + +2008-02-10 Ralf Angeli + + * RELEASE: Update for upcoming release. + + * auctex.spec (Version): Bump version number. + + * configure.ac: Bump version number. + + * doc/todo.texi: Add copyright notice. + (Bugs): Remove entry about XEmacs bug since AUCTeX now helps + XEmacs in doing multi-line font locking. + + * doc/tex-ref.tex: Bump version number. Updated references to + toggles for bad boxes and warning. Mention `Clean' and `Clean + All' commands. + + * doc/install.texi: Add copyright notice. + (Prerequisites): Update information about Emacs 22. + + * doc/wininstall.texi: Update information about requirements, + esp. availability of Emacs 22. + +2008-02-09 Ralf Angeli + + * tex-buf.el (TeX-error, TeX-warning): Handle `expert' option of + `TeX-display-help'. + (TeX-warning): Find error file in same window. + + * tex.el (TeX-display-help): Add `expert' option. + + * doc/auctex.texi (Commands): Add some explanatory text for TeXing + options. Document `TeX-show-compilation'. + (Debugging): Reflect new option of `TeX-display-help'. + + * doc/changes.texi: Add changes for 11.85. Add copyright notice. + +2008-02-08 Reiner Steib + + * tex-bar.el (LaTeX-symbols-toolbar-visible-flag): Improve doc string. + + * toolbar-x.el (toolbarx-image-path): Improve doc string. + +2008-02-07 Ralf Angeli + + * tex-buf.el (TeX-parse-TeX): Do not pop to output buffer. + (TeX-warning): Since we do not pop to the output buffer, find the + source file in the original window. + +2008-02-05 Ralf Angeli + + * font-latex.el (font-latex-built-in-keyword-classes): Add syntax + alternatives for some commands. + (font-latex-setup): Give ?@ word syntax for font locking. + (font-latex-syntax-error-modes): New variable. + (font-latex-match-command-with-arguments): Use it. + +2008-02-04 Ralf Angeli + + * font-latex.el (font-latex-set-syntactic-keywords): Revert change + from 2007-04-09 because the unbalanced treatment of \begin and + \end may lead to color bleeding. + +2008-02-03 Ralf Angeli + + * Relicense all "GPLv2 or later" files to "GPLv3 or later". + + * COPYING: Switch to GPLv3. + + * doc/Makefile.in, doc/preview-dtxdoc.pl: Add coypright and + license notices. + + * style/beamer.el, style/scrbook.el: Add license notices. + +2008-02-03 Ikumi Keita + + * tex-info.el (Texinfo-insert-node): Correct name of let-bound + variable. + +2008-02-03 Ralf Angeli + + * tex-info.el: Make sure the Texinfo mode of AUCTeX is still used + after loading texinfo.el. + +2008-02-02 Ralf Angeli + + * Makefile.in, auctex.spec, autogen.sh, configure.ac: Add + copyright and license notices. + + * texmathp.el, style/amsmath.el, style/amsthm.el, + style/fancyref.el, style/index.el, style/makeidx.el, + style/multind.el, style/varioref.el: Reflect copyright assignment + of Carsten Dominik to FSF in coypright notices and adapt licence + notice accordingly. + +2007-12-28 Ralf Angeli + + * tex-buf.el (TeX-command-expand): Do not evaluate `file' as a + function. + +2007-12-25 Ralf Angeli + + * latex.el (LaTeX-fill-move-to-break-point): Ignore whitespace + when checking if verbatim macro starts at beginning of line. + +2007-12-08 David Kastrup + + * texmathp.el (defgroup, defcustom): Remove compatibility cruft. + +2007-11-20 Reiner Steib + + * doc/install.texi (Prerequisites): Add openSUSE. + +2007-11-20 David Kastrup + + * doc/install.texi (Prerequisites): Update to reflect current + realities. + +2007-11-03 Reiner Steib + + * tex-buf.el (TeX-record-buffer): New variable, only in Emacs. + (TeX-pop-to-buffer): New function. + (TeX-recenter-output-buffer, TeX-background-filter) + (TeX-parse-TeX, TeX-parse-error, TeX-help-error): Use + `TeX-pop-to-buffer'. + +2007-10-30 Reiner Steib + + * toolbar-x.el (toolbarx-find-image): Rename argument. Improve + doc string. + +2007-10-11 Ralf Angeli + + * latex.el (TeX-arg-verb): Honor active region. + +2007-10-10 Ralf Angeli + + * style/MinionPro.el ("MinionPro"): Run style hook for amsmath + which is loaded via MnSymbol. + +2007-10-09 Ralf Angeli + + * style/nomencl.el: New file. + + * Makefile.in (STYLESRC): Add style/nomencl.el. + +2007-10-03 Ralf Angeli + + * font-latex.el (font-latex-user-keyword-classes): Doc fix. + +2007-08-26 Ralf Angeli + + * font-latex.el (font-latex-command-with-args-default-spec): + Default to nil. + +2007-08-24 Ralf Angeli + + * font-latex.el (font-latex-match-command-with-arguments): Show + error indicator only in LaTeX mode. + +2007-08-23 Ralf Angeli + + * style/nicefrac.el ("nicefrac"): Fix last change. + +2007-08-22 Ralf Angeli + + * style/jurabib.el ("jurabib"): Use `font-latex-add-keywords'. + Add syntax information. + +2007-08-21 Ralf Angeli + + * style/scrreprt.el: Add licence text. + ("scrreprt"): Use `font-latex-add-keywords'. Add syntax + information. + + * style/scrpage2.el: Add licence text. + ("scrpage2"): Use `font-latex-add-keywords'. Add syntax + information. + + * style/scrlttr2.el: Add licence text. + ("scrlttr2"): Use `font-latex-add-keywords'. Add syntax + information. + + * style/scrbook.el ("scrbook"): Use `font-latex-add-keywords'. + Add syntax information. + + * style/scrbase.el ("scrbase"): Use `font-latex-add-keywords'. + Add syntax information. + +2007-08-20 Ralf Angeli + + * style/url.el ("url"): Use `font-latex-add-keywords'. + Add syntax information. + + * style/subfigure.el ("subfigure"): Use `font-latex-add-keywords'. + Add syntax information. + + * style/csquotes.el ("csquotes"): Update for version 3.7. Use + `font-latex-add-keywords'. Add syntax information. + + * style/MinionPro.el ("MinionPro"): Use `font-latex-add-keywords'. + Add syntax information. + + * font-latex.el (font-latex-built-in-keyword-classes): Correct + syntax spec for \subsubparagraph. + +2007-08-19 Ralf Angeli + + * style/units.el ("units"): Use `font-latex-add-keywords'. + Add syntax information. + + * style/nicefrac.el ("nicefrac"): Use `font-latex-add-keywords'. + Add syntax information. + + * style/listings.el ("listings"): Use `font-latex-add-keywords'. + Add syntax information. + + * style/flashcards.el ("flashcards"): Use `font-latex-add-keywords'. + Add syntax information. + + * style/comment.el ("comment"): Use `font-latex-add-keywords'. + Add syntax information. + + * style/booktabs.el ("booktabs"): Use `font-latex-add-keywords'. + Add syntax information. + + * style/babel.el ("babel"): Use `font-latex-add-keywords'. + Add syntax information. + + * style/paralist.el ("paralist"): Use `font-latex-add-keywords'. + Add syntax information. + + * style/natbib.el ("natbib"): Use `font-latex-add-keywords'. + Add syntax information. + + * style/mdwlist.el ("mdwlist"): Use `font-latex-add-keywords'. + Add syntax information. + + * style/graphicx.el ("graphicx"): Use `font-latex-add-keywords'. + Add syntax information. + + * style/fancyref.el ("fancyref"): Use `font-latex-add-keywords'. + Add syntax information. + + * style/captcont.el ("captcont"): Use `font-latex-add-keywords'. + Add syntax information. + + * style/beamer.el ("beamer"): Use `font-latex-add-keywords'. + + * font-latex.el (font-latex-add-keywords): New function. + (font-latex-command-with-args-opt-arg-delims): Add parentheses. + +2007-08-14 David Kastrup + + * tex.el (TeX-insert-backslash): put delete-selection property on. + +2007-08-13 David Kastrup + + * Makefile.in (all): make new target "docs" as well. Descend for + docs, info and dvi. + Before regenerating extradist documentation, copy version info + from checked-out version (can we do that saner?). + On various targets, replace set -x with a somewhat more elaborate + version that echoes more for make -n. + +2007-08-10 Ralf Angeli + + * tex.el (TeX-doc-backend-alist): Delete buffers used for checking + availability of info files. + +2007-08-08 Ralf Angeli + + * tex-buf.el (TeX-TeX-sentinel-check): Shave off quotation marks + from file name if present. + +2007-08-04 Ralf Angeli + + * tex.el (TeX-run-style-hooks): Set `default-directory' to the + directory of the master file. + +2007-07-11 Ralf Angeli + + * style/pstricks.el ("pstricks"): Do not disable TeX PDF mode if + pst-pdf is used. + +2007-07-10 Ralf Angeli + + * tex-buf.el (TeX-format-filter): Remove line breaks at column 79. + +2007-07-09 Ralf Angeli + + * tex.el (TeX-comment-forward): Call `comment-normalize-vars' if + available. + +2007-07-01 Ralf Angeli + + * style/verbatim.el: Add copyright notice and licence info. + + * style/paralist.el: Add copyright notice and licence info. + + * style/booktabs.el: Add copyright notice and licence info. + + * style/scrbase.el: Change copyright notice of Mark Trettin to FSF + to reflect the assignment. Add licence info to header. + + * style/subfigure.el: Change copyright notice of Reiner Steib to + FSF to reflect the assignment. Add licence info to header. + + * style/captcont.el: Change copyright notice of Reiner Steib to + FSF to reflect the assignment. Add licence info to header. + + * latex.el (LaTeX-auto-minimal-regexp-list): Match optional + arguments of document style or class macro even if they contain + periods, e.g. in case of "BCOR8.25mm" in KOMA Script classes. Get + rid of superfluous escapes in complemented character alternatives. + + * tex.el (TeX-insert-dollar): Show matching start only if + `blink-matching-paren' is non-nil. + +2007-06-20 Ralf Angeli + + * latex.el (LaTeX-common-initialization): Turn TeX PDF mode on + when pst-pdf.sty is used. + +2007-06-10 Ralf Angeli + + * latex.el (LaTeX-common-initialization): Do not add pstricks to + style hooks. + + * style/pstricks.el: New file. + + * Makefile.in (STYLESRC): Add style/pstricks.el. + +2007-05-25 Ralf Angeli + + * font-latex.el (font-latex-match-command-with-arguments): Check + if `match-beg' is set. + +2007-05-20 Ralf Angeli + + * style/beamer.el ("beamer"): Use new syntax in format specifier + for frametitle macro. + + * font-latex.el (font-latex-built-in-keyword-classes): Use new + syntax for format specifiers. + (font-latex-user-keyword-classes): Describe new syntax for format + specifiers. + (font-latex-command-with-args-default-spec): Use new syntax for + format specifiers. + (font-latex-command-with-args-opt-arg-delims): New variable. + (font-latex-match-command-with-arguments): Use it. Change format + specifier parsing to support new syntax. + (font-latex-match-mandatory-arg): Remove. + +2007-05-05 Ralf Angeli + + * doc/faq.texi: Add entry about programs not being found by + ./configure when PATH is not set correctly. + +2007-04-29 Ralf Angeli + + * tex-buf.el (TeX-parse-error): Match any closing parenthesis. + +2007-04-28 Ralf Angeli + + * font-latex.el (font-latex-fontify-region): Force redisplay + instead of setting `jit-lock-context-unfontify-pos'. + (font-latex-command-with-args-default-spec): New variable. + (font-latex-match-command-with-arguments): Use it. + (font-latex-built-in-keyword-classes): Correct some syntax + specifiers. + (font-latex-jit-lock-force-redisplay): New function. + (font-latex-fontify-region): Use it. + (font-latex-doctex-preprocessor-face): Make DocStrip guards stand + out on Emacs 21. + +2007-04-23 Ralf Angeli + + * latex.el (LaTeX-environment-menu): Support optional arguments + specified by vectors. + + * style/flashcards.el: New file. + + * Makefile.in (STYLESRC): Add style/flashcards.el. + + * doc/auctex.texi (Adding Environments): Document possibility to + specify optional arguments in `LaTeX-add-environments'. + +2007-04-22 Reiner Steib + + * doc/changes.texi: Add index entries for auctex.el and + tex-site.el. Add references to INSTALL or manual. + + * doc/install.texi (Loading the package): Add index entries for + auctex.el and tex-site.el. + + * doc/wininstall.texi: Add index entries for tex-mik.el and + tex-fptex.el. Clarify loading. + +2007-04-22 Ralf Angeli + + * font-latex.el (font-latex-fontify-region): Force context-related + unfontification only if the region has to be extended. + (font-latex-find-matching-close): Do not look up syntax-table + properties. + (font-latex-extend-region-backwards-command-with-args) + (font-latex-extend-region-backwards-command-in-braces) + (font-latex-extend-region-backwards-math-env) + (font-latex-extend-region-backwards-math-envII) + (font-latex-extend-region-backwards-quotation): Doc fix. Return + nil if no content requiring region extension was found. + +2007-04-16 Ikumi Keita + + * latex.el (LaTeX-math-default): Add various Greek uppercase + macros provided by amsmath.sty. + +2007-04-15 Ralf Angeli + + * font-latex.el (font-latex-match-math-envII): Regexp-quote the + string used to look for the environment end in order for starred + environments to be found. + +2007-04-13 Mark Trettin + + * style/scrbase.el ("scrbase"): Fix typo in prompt. + (TeX-arg-KOMA-fontelements): Add \dictum, \pagination, + \disposition, and \minisec macros. + +2007-04-13 Ralf Angeli + + * style/beamer.el ("beamer"): Specify syntax of \frametitle macro + for font locking. + +2007-04-12 Ralf Angeli + + * style/amsmath.el ("amsmath"): Call `reftex-add-to-label-alist' + only if function is bound. + +2007-04-09 Ralf Angeli + + * tex.el (TeX-doc-backend-alist): Add --view parameter to texdoc + call since texdoc in MiKTeX fires up a web page not useful for our + purposes otherwise. + + * tex-mik.el: Set `TeX-kpathsea-path-delimiter' to nil since + kpsewhich in MiKTeX (aka findtexmf) does not emit any useful + information if fed with kpathsea-related variables anyway. This + change makes `TeX-doc' work again on MiKTeX. + + * font-latex.el (font-latex-set-syntactic-keywords): Match the + \begin macro of verbatim environments in case it is preceded by + other content than whitespace. + +2007-04-04 Ralf Angeli + + * latex.el (LaTeX-backward-paragraph): Fix grouping in order to + return the right value when no paragraph command is found. + +2007-04-01 Ralf Angeli + + * tex-buf.el (TeX-help-error): Correct regexp for matching line + indicator. + +2007-03-31 Ralf Angeli + + * latex.el (LaTeX-verbatim-environments): Fix typo. + (LaTeX-backward-paragraph): Special-case verbatim environments in + order to prevent leading brackets or braces from being interpreted + as part of the \begin macro. Clean up a bit. + +2007-03-24 David Kastrup + + * context.el (ConTeXt-find-indent): Use `condition-case' rather + than `ignore-errors', and don't barf if at the end of file (like + with an empty file). + +2007-03-23 David Kastrup + + * context.el (TeX-ConTeXt-sentinel): Fix end-of-run detection. + +2007-03-19 Ralf Angeli + + * style/comment.el: New file. + + * Makefile.in (STYLESRC): Add style/comment.el. + + * font-latex.el (font-latex-syntactic-keywords-extra): New + variable. + (font-latex-set-syntactic-keywords): Use it. + + * tex-style.el (LaTeX-comment-env-list): New variable. + +2007-03-18 Ralf Angeli + + * doc/auctex.texi (Commands): Remove dependency on software du + jour from description of `TeX-DVI-via-PDFTeX'. + +2007-03-12 Ralf Angeli + + * font-latex.el (font-latex-quotes): Add nil option. + (font-latex-match-quotation) + (font-latex-extend-region-backwards-quotation): Do nothing if + `font-latex-quotes' is nil. + + * doc/auctex.texi (Font Locking): Document nil option of + `font-latex-quotes'. + +2007-03-11 Ralf Angeli + + * latex.el (LaTeX-fold-math-spec-list): `decode-char' is not + autoloaded in XEmacs. Only use it when it is defined. + + * doc/auctex.texi (European): Document `icelandic' language + option. + + * Makefile.in (STYLESRC): Add style/icelandic.el. + + * style/icelandic.el: New file. + +2007-03-11 David Kastrup + + * RELEASE (Footnotes): Update Emacs CVS locations. + +2007-03-10 Ralf Angeli + + * tex-fold.el (TeX-fold-auto): Default to nil. + +2007-03-09 Ralf Angeli + + * tex.el (TeX-clean): Catch error on Emacs 21 when only one file + is to be deleted. + +2007-03-06 Ralf Angeli + + * tex.el (TeX-search-syntax-table): Set syntax of ?\( and ?\) + explicitely to whitespace for Emacs 21. + (TeX-search-syntax-table): Clean the syntax table more thoroughly. + +2007-03-04 Ralf Angeli + + * tex.el (TeX-find-macro-boundaries): Make it possible to restrict + the search with new argument `lower-bound'. + (TeX-find-macro-start): Make it possible to restrict the search + with new argument `limit'. + + * font-latex.el: Merge from multiline-font-lock branch. + (font-latex-do-multi-line, font-latex-use-cache): Remove. + (font-latex-multiline-boundary): New variable. + (font-latex-built-in-keyword-classes): Add information about + syntax of macros. Quote face names. + (font-latex-deactivated-keyword-classes): Adapt type to new form + of `font-latex-built-in-keyword-classes'. + (font-latex-make-match-defun): Accept `face' argument. + (font-latex-keyword-matcher): Support up to 8 slots for faces. + (font-latex-make-built-in-keywords): Support new form of keywords + classes. + (font-latex-user-keyword-classes): Provide possibility to specify + macro syntax. + (font-latex-make-user-keywords): Add warning face in relevant + matchers. + (font-latex-extend-region-functions): New variable. + (font-latex-setup): Use it. Clean up. + (font-latex-fontify-region): New function. + (font-latex-unfontify-region): Cater for XEmacs. + (font-lock-after-change-function): Advise function for challenged + editors. + (font-latex-find-matching-close): Use `TeX-search-syntax-table'. + (font-latex-not-on-same-line-as): New function. + (font-latex-set-cache, font-latex-get-cache) + (font-latex-check-cache): Remove. + (font-latex-put-multiline-property-maybe): New function. + (font-latex-match-command-cache): Remove. + (font-latex-matched-faces): New variable. + (font-latex-matched-face): New function. + (font-latex-match-command-with-arguments): Use them. Set warning + face when syntax not correct. + (font-latex-match-in-braces-cache): Remove. + (font-latex-match-mandatory-arg): New function. + (font-latex-extend-region-backwards-command-with-args): New + function. + (font-latex-match-command-in-braces): Set multiline property if + necessary. + (font-latex-extend-region-backwards-command-in-braces): New + function. + (font-latex-match-math-env): Set multiline property if necessary. + (font-latex-extend-region-backwards-math-env): New function. + (font-latex-math-environments): New variable. + (font-latex-match-math-envII): Use it. Set multiline property if + necessary. + (font-latex-extend-region-backwards-math-envII): New function. + (font-latex-update-quote-list): New function. + (font-latex-match-quotation): Use it. Set multiline property if + necessary. + (font-latex-extend-region-backwards-quotation): New function. + +2007-02-25 David Kastrup + + * tex.el (TeX-read-string): Add new function that will inherit the + input method if feasible. TODO: replace calls of `read-string' + with this wherever it may be appropriate. + +2007-02-20 Ikumi Keita + + * tex-buf.el (TeX-region-file): Doc fix. + +2007-02-15 Masayuki Ataka + + * tex.el (TeX-after-insert-macro-hook): New hook. + (TeX-insert-macro): Use it. + + * tex-fold.el (TeX-fold-auto): New variable. + (TeX-fold-mode): Append auto fold stuff to the end of + `TeX-after-insert-macro-hook'. + +2007-02-13 Ralf Angeli + + * tex.el (TeX-clean): Fix last change. + +2007-02-10 Ralf Angeli + + * tex-fold.el (TeX-fold-macro-spec-list-internal) + (TeX-fold-env-spec-list-internal) + (TeX-fold-math-spec-list-internal): New variables. + (TeX-fold-region-macro-or-env, TeX-fold-item): Use them. + (TeX-fold-comment-do): Doc fix. + (TeX-fold-mode): Set TeX-fold-*-spec-list-internal variables. Use + -fold-*-spec-list variables if bound. + + * latex.el (LaTeX-fold-macro-spec-list) + (LaTeX-fold-env-spec-list, LaTeX-fold-math-spec-list): New + variables. + + * tex.el (TeX-mode-prefix): New function. + (TeX-clean): Use it. + +2007-02-10 Masayuki Ataka + + * tex-jp.el (TeX-japanese-process-input-coding-system) + (TeX-japanese-process-output-coding-system): Use system-type + instead of window-system. Suggested by Ikumi Keita + . + +2007-02-09 Masayuki Ataka + + * tex-jp.el (TeX-japanese-process-input-coding-system) + (TeX-japanese-process-output-coding-system): Do not use + default-coding-system to set process-coding-system, anymore. The + value is set to shift_jis or euc-jp depending on window-system. + + * tex-bar.el: Fix typo. Reported by Ikumi Keita + . + +2007-02-09 Ikumi Keita + + * tex-jp.el (japanese-TeX-command-list): Add + `TeX-run-discard-foreground' and `TeX-run-function' for + function-item. + (japanese-TeX-set-process-coding-system): New function. + (TeX-after-start-process-function): Use it. Cater for the + accidental case that no-Japanese loads tex-jp.el and his + coding-system is set to unexpected one. + +2007-02-05 Ralf Angeli + + * tex.el (TeX-submit-bug-report): Remove unnecessary code. + Include a plea for upgrading into introductory blurb. + +2007-02-01 Ikumi Keita + + * latex.el: Move (provide 'latex) to the end of buffer. + (TeX-global-input-files, BibTeX-global-style-files) + (BibTeX-global-files): checkdoc cleaning. + (LaTeX-fill-paragraph, LaTeX-fill-code-comment): Use function + TeX-match-buffer instead of buffer-substring-*. + (LaTeX-209-to-2e): Likewise. + + * tex-buf.el (TeX-command-region, TeX-command-buffer) + (TeX-next-error, TeX-check-files, TeX-command-next) + (TeX-output-extension, TeX-run-set-command, TeX-run-interactive) + (TeX-sentinel-default-function, TeX-region-create, TeX-region) + (TeX-error-file, TeX-error-offset, TeX-parse-TeX) + (TeX-error-description-list): checkdoc cleaning. + (TeX-run-command, TeX-TeX-sentinel-check, TeX-BibTeX-sentinel): + Use substitute-command-keys to message key binding. + (TeX-current-pages): Add doc string. + + * tex.el (TeX-print-command, TeX-queue-command) + (TeX-command-list, TeX-printer-list, TeX-set-mode-name) + (TeX-regexp-group-count): checkdoc cleaning. + (plain-TeX-mode-hook): Declare user option explicitly using + defcustom. + (TeX-search-files-kpathsea): Use TeX-kpathsea-path-delimiter + instead of kpathsea-path-delimiter. + +2007-01-23 Ralf Angeli + + * doc/auctex.texi (Quotes): Document + `TeX-math-close-double-dollar'. Add subheadings. + +2007-01-22 Ralf Angeli + + * autogen.sh: Define PDFTEX if empty and pass it to `make dist' in + `doc' directory for documentation generation. + + * doc/Makefile.in (docdir, PACKAGE_TARNAME): New variables. + (dist): Add tex-ref.pdf target. + (extradist): Remove tex-ref.pdf target. + (install-auctex): Add tex-ref.pdf target. Install tex-ref.pdf + into $(docdir). + +2007-01-21 Ralf Angeli + + * tex-fptex.el: Make calls of start.exe work with quoted file + names. + + * tex-mik.el: Make calls of start.exe work with quoted file names. + +2007-01-21 Masayuki Ataka + + * tex-fold.el (TeX-fold-type-list): New new type 'math. + (TeX-fold-math-spec-list): New variable. + (TeX-fold-dwim, TeX-fold-region, TeX-fold-region-macro-or-env) + (TeX-fold-item): Try to fold math macros as well. + (TeX-fold-buffer, TeX-fold-paragraph, TeX-fold-make-overlay) + (TeX-fold-item-end): Mention new type 'math. + (TeX-fold-math): New function. + +2007-01-20 David Kastrup + + * auctex.spec: Remove unused `%{extraconfig}' argument. + +2007-01-20 Masayuki Ataka + + * tex-fold.el (TeX-fold-macro-spec-list): Fold marginpar, eqref, + glossary, copyright, textregistered and texttrademark macros as + well. + +2007-01-18 Masayuki Ataka + + * tex-jp.el: Update maintainer email address. + + * style/verbatim.el: Update author email address. + +2007-01-17 Reiner Steib + + * tex.el (TeX-clean-default-intermediate-suffixes): Add beamer + suffixes. + +2007-01-16 Masayuki Ataka + + * tex-jp.el (japanese-TeX-command-list): Use "%`" and "%'" magic + to allow file names with spaces. See also change log for + TeX-command-list in tex.el on 2006-10-10. + Reported by Ikumi Keita . + +2007-01-14 Ralf Angeli + + * doc/wininstall.texi: Add copyright notice and licence reference. + Mention --infodir. Some clean-ups. + +2007-01-13 Ralf Angeli + + * Makefile.in (www-doc): Generate AUCTeX and preview-latex manuals + in single directory. Patch gendocs.sh to use texi2html instead of + makeinfo (patch not included). + +2007-01-12 Ralf Angeli + + * Version 11.84 released. + +2007-01-12 Ralf Angeli + + * RELEASE: Update for release. + + * doc/changes.texi: Update for release. + + * auctex.spec (Version): Bump version number. + + * configure.ac: Bump version number. + + * doc/tex-ref.tex: Bump version number. + +2007-01-11 Ralf Angeli + + * Makefile.in (STYLESRC): Add style/polski.el. + + * RELEASE: Mention support for `polski' LaTeX package. + + * style/polski.el: New file. + + * doc/auctex.texi (European): Mention `polski' language option. + +2007-01-08 Ralf Angeli + + * RELEASE: Document some new features. + + * style/polish.el: New file. + + * Makefile.in (STYLESRC): Add style/polish.el. + + * doc/auctex.texi (European): Remove references to `plfonts' and + `plhb' styles for typesetting Polish text because they seem to be + out of use. Refer to the `polish' option for the babel LaTeX + package instead. + + * tex.el (TeX-quote-language-alist): Replace references to + `plfonts' and `plhb' by `polish'. + +2007-01-07 Ralf Angeli + + * doc/wininstall.texi: Refer to up-to-date versions of CVS Emacs. + + * doc/install.texi (Prerequisites): Refer to up-to-date versions + of CVS Emacs. + +2007-01-05 Reiner Steib + + * doc/auctex.texi (European): Improve TeX-quote-language-alist. + + * tex.el (TeX-command-default): Mark as safe-local-variable. + (TeX-quote-language-alist): Improve custom type. Add links to the + manual. Improve doc string. + +2006-12-30 Ralf Angeli + + * doc/auctex.texi (Folding): Document user-visible changes in the + folding functionality. + +2006-12-29 Ralf Angeli + + * tex-info.el (TeX-texinfo-mode): Set `comment-use-syntax'. + + * tex-fold.el: Update author email address. + (TeX-fold-type-list): New variable. + (TeX-fold-keymap): Add key binding for `TeX-fold-comment'. + (TeX-fold-dwim): Try to fold comment as well. + (TeX-fold-region): Move implementation of region folding for + macros and environments out into the new function + `TeX-fold-region-macro-or-env' and cater for comments as well. + (TeX-fold-region-macro-or-env, TeX-fold-region-comment) + (TeX-fold-comment, TeX-fold-comment-do): New functions. + + * latex.el (LaTeX-common-initialization): Set + `TeX-search-forward-comment-start-function'. + (LaTeX-fill-region-as-para-do, LaTeX-fill-paragraph) + (LaTeX-fill-code-comment): Call `TeX-search-forward-comment-start' + instead of `LaTeX-search-forward-comment-start'. + + * tex.el (VirTeX-common-initialization): Set `comment-end-skip' + and `comment-use-syntax'. + (TeX-fold-menu): Add entry for folding comments. + (TeX-comment-forward): New compatibility function. + (TeX-comment-or-uncomment-region): Use it. + (TeX-search-forward-comment-start-function): New variable. + (TeX-search-forward-comment-start): New function. + +2006-12-10 David Kastrup + + * latex.el (LaTeX-section-hook): Place into `LaTeX-macro' group. + (LaTeX-verbatim-macros-with-delims) + (LaTeX-verbatim-macros-with-braces): Same here. + (LaTeX-verbatim-environments): Place into `LaTeX-environment' + group. + +2006-12-07 Ralf Angeli + + * tex-bar.el (TeX-install-toolbar, LaTeX-install-toolbar): Add + `toolbarx-refresh' to `TeX-PDF-mode-hook' in the current buffer + only. + +2006-12-06 Ralf Angeli + + * context-nl.el (ConTeXt-nl-mode-initialization): Use correct + syntax for prompting for an optional argument in case of \items + macro. + + * context-en.el (ConTeXt-en-mode-initialization): Use correct + syntax for prompting for an optional argument in case of \items + macro. + + * context.el (ConTeXt-arg-setup): Capitalize prompt. + +2006-12-04 Miguel Frasson + + * toolbar-x.el (toolbarx-emacs-add-button): + Insert buttons in KEYMAP (new arg). + Unnecessary &optional removed. + Removed broken code for fake-button `:new-line'. + (toolbarx-emacs-refresh-process-button-or-insert-list): + New arg KEYMAP inserted. + Unnecessary &optional removed. + (toolbarx-emacs-refresh): + Fixed bug with `tool-bar-map' let-bound and made local variable. + (toolbarx-xemacs-refresh-process-button-or-insert-list): + Docstring improved.. + (toolbarx-xemacs-refresh): + Using `nreverse' directly inside `let'. + `nreverse' is applied to lists generated from actual + data-structures, leaving such data-structures alone. + +2006-11-26 Ralf Angeli + + * context.el (ConTeXt-texexec-option-nonstop): New variable. + (ConTeXt-expand-options): Use it. + +2006-11-24 Ralf Angeli + + * tex.el (plain-TeX-enable-toolbar): Rename from + `TeX-enable-toolbar'. + (plain-TeX-maybe-install-toolbar): Rename from + `TeX-maybe-install-toolbar'. + (TeX-plain-tex-mode): Use new names. + + * doc/auctex.texi (Running TeX and friends): Explicitely mention + `plain-TeX-enable-toolbar' and `LaTeX-enable-toolbar'. + +2006-11-16 Ralf Angeli + + * latex.el (LaTeX-fill-region-as-para-do): Do not break before + code comments if at a commented beginning of a line. + +2006-10-21 Reiner Steib + + * doc/preview-latex.texi: Fix @node commands. + +2006-10-20 David Kastrup + + * doc/auctex.texi (top): Mention reference card. + + * doc/Makefile.in (PREVIEWTEXIFILES): Add `version.texi'. + + * doc/auctex.texi: Add formatting emergencystretch. Move macros + input. + (top): Rearrange somewhat. Avoid duplicate contents (?). + + * doc/preview-latex.texi: Restructure and relicense taking + auctex.texi as an example. + + * doc/auctex.texi (top): In the user-visible part of the info + file, move the copying info completely to the "Copying this + manual" section in order to reduce clutter. + +2006-10-19 David Kastrup + + * RELEASE: Mention previous XEmacs package problems. + +2006-10-16 David Kastrup + + * tex-buf.el (TeX-parse-error, TeX-error, TeX-warning): Replace + the error parser basically by what we have in preview-latex. + However, this does not yet do the fine-grained hackery around + possible TeX quote characters that preview-latex employs in order + to get the correct character position in a line even under adverse + conditions. + +2006-10-11 David Kastrup + + * tex-buf.el (TeX-error-description-list): Add preview-latex error + pattern here. + + * tex.el (TeX-expand-list): Add "%m" pattern from preview. + (TeX-add-local-master): Make a local variable wrapper more + suitable for docstrip. + +2006-10-10 David Kastrup + + * RELEASE: Mention space in file names, PostScript stack + tolerance. + + * tex-buf.el (TeX-command-expand): Make `file' self-quoting in + expansion, and trick around with `TeX-command-pos' and other junk + in order to make the quoting stuff of "%`" and "%'" work. + (TeX-view-output-file): Became pretty pointless. Remove. + + * tex.el (TeX-command-list): Use "%`" and "%'" magic to allow file + names with spaces. + (TeX-output-view-style): Don't quote "%s", that's the job of + `TeX-command-expand'. + (TeX-expand-list): Use the `-interaction' option. Define "%`", + " \"\\", "\"" and "%'" patterns. Somebody should probably rather + turn this into external functions in `tex-buf.el': the stuff + really has no business here and does not get byte-compiled. Use + `file' for "%o". + +2006-10-07 Ralf Angeli + + * latex.el (LaTeX-fill-region-as-paragraph): Match "foo\ %" as + well. + +2006-10-04 Ralf Angeli + + * tex.el (TeX-find-macro-boundaries): Prevent `up-list' and + friends from finding parens in comments if point is not in a + comment and vice versa. + +2006-10-02 David Kastrup + + * doc/auctex.texi: Change the licensing terms to require no front + and back cover texts, and explicitly exclude the GFDL from being + licensed under the GFDL. + (top): Give a synopsis for the license section in the top menu. + Remove redundant version mentions, remove the explicit exclusion + of the GFDL from GFDL licensing: RMS says it is unnecessary. + +2006-09-29 David Kastrup + + * autogen.sh: Use `=' instead of `==' in tests. + + * doc/Makefile.in (version.texi): Let version.texi depend rather + on ChangeLog in order not to disturb pregenerated documentation. + + * autogen.sh: Prepare `AUCTEXDATE' and `AUCTEXVERSION' for `make + dist'. + + * Makefile.in (tar-ball): Pass version and date into autogen.sh + + * doc/Makefile.in (AUCTEXDATE, AUCTEXVERSION): get from configure. + (AUCTEXTEXIFILES): Add fdl.texi and version.texi + (version.texi): create depending on Makefile. + (maintainer-clean): Remove version.texi. Should this be in the + distclean target instead? + + * doc/fdl.texi: Add it. + + * Makefile.in (DOCFILES): Remove, unused. + (doc/Makefile): Add target. + (info, dvi, install-man, install-docs, clean, distclean) + (tar-ball): depend on doc/Makefile + + * doc/.cvsignore: Add version.texi, remove unused auto.texi. + + * doc/auctex.texi: Rearrange header material, put under GFDL, add + license, take version numbers from version.texi. + +2006-09-21 David Kastrup + + * RELEASE: Adapt to upcoming release. + + * doc/install.texi (Configure): Remove reference to + `--with-kpathseasep' option. + + * tex-mik.el (TeX-kpathsea-path-delimiter): initialize to ";". + + * tex-fptex.el (TeX-kpathsea-path-delimiter): initialize to ";". + +2006-09-20 David Kastrup + + * tex-buf.el: Let `TeX-active-buffer' return nil if there is no + command buffer. Change copyright notice from Kresten Krab Thorup + to reflect assignment to FSF. + + * latex.el: Change copyright notice. + + * tex.el: Change copyright notice. + + * doc/tex-ref.tex: Change copyright notice. + + * doc/auctex.texi: Change copyright notice. + +2006-09-17 Reiner Steib + + * doc/faq.texi: Fix syntax error. + +2006-09-16 Ralf Angeli + + * doc/faq.texi: Explain the abbreviation AUC. + +2006-09-13 Reiner Steib + + * toolbar-x.el (toolbarx-emacs-refresh): Don't modify global value + of `tool-bar-map'. + +2006-09-11 Reiner Steib + + * latex.el (LaTeX-math-default): Remove X2ABB for \Pr. Suggested + by Adam Johnson . + +2006-09-08 Reiner Steib + + * latex.el: Use read-kbd-macro instead of kbd for LaTeX-math-mode. + (LaTeX-math-default): Add bindings for \var... symbols. + (LaTeX-math-default): Change binding for \vartheta. + +2006-09-08 David Kastrup + + * latex.el: Allow strings for keys in LaTeX-math-mode. + (LaTeX-math-list): Allow string for key. + +2006-09-06 Ralf Angeli + + * doc/auctex.texi (Mathematics): Align description of + `LaTeX-math-list' with reality. + +2006-08-25 David Kastrup + + * doc/preview-faq.texi (Requirements, Installation Trouble) + (Customization): Update and remove stuff, mostly because + preview-latex is integrated with AUCTeX now. + +2006-08-30 Ralf Angeli + + * latex.el (TeX-latex-mode): Check if `tool-bar-mode' is bound. + + * tex.el (TeX-plain-tex-mode): Check if `tool-bar-mode' is bound. + +2006-08-26 Ralf Angeli + + * doc/auctex.texi (European): Make replacement of + language-specific hyphen strings more obvious. + +2006-08-25 Ralf Angeli + + * style/csquotes.el: Bring up to par with version 3.5. + +2006-08-17 David Kastrup + + * doc/auctex.texi (Viewing): Type fix. + +2006-08-05 Berend de Boer + + * context-en.el: quite a few more English ConTeXt macros made + available in menu. + + * context-nl.el: few more Dutch ConTeXt macros made available in menu. + + * context.el: more ConTeXt macros made available in menu. + +2006-08-02 Reiner Steib + + * tex-bar.el (TeX-bar-TeX-button-alist, TeX-bar-LaTeX-button-alist): + Make `file' invisible in TeX-PDF-mode. Add clean. + (TeX-bar-TeX-buttons, TeX-bar-LaTeX-buttons): Improve custom type. + +2006-07-27 Reiner Steib + + * tex-bar.el (TeX-bar-TeX-buttons, TeX-bar-LaTeX-buttons): Improve + wording. + + * doc/changes.texi: Add bug fixes. Add TeX tool bar. + + * doc/auctex.texi (Running TeX and friends): Add + TeX-enable-toolbar. + + * tex-bar.el: Copy of tool bar stuff from LaTeX-*. + (TeX-bar-TeX-buttons, TeX-bar-TeX-all-button-alists) + (TeX-bar-TeX-button-alist): New variables. + (TeX-bar-TeX-buttons, TeX-install-toolbar): New funtions. + (TeX-tool-bar-button-definitions): New custom group + + * tex.el (TeX-enable-toolbar): New variable. + (TeX-maybe-install-toolbar): New function. + (TeX-plain-tex-mode): Add `TeX-maybe-install-toolbar'. + +2006-07-27 David Kastrup + + * doc/wininstall.texi: Add explanation of how to augment `PATH'. + + * doc/todo.texi (Mid-term Goals): Typo. + +2006-07-25 David Kastrup + + * style/doc.el ("doc"): Add macrocode and macrocode* to + indentation-neutral environment list. + + * latex.el (LaTeX-insert-environment): Leave mark at start of + content when inserting around active region. + +2006-07-11 David Kastrup + + * latex.el (LaTeX-font-list): Add `\mathbb' on C-c C-f C-s. + +2006-07-25 Ralf Angeli + + * font-latex.el (font-latex-match-script): Don't match groups + spanning more than one line in order to avoid visually wrong + indentation in subsequent lines. + (font-latex-match-quotation): Do not match escaped quotation + marks. + +2006-07-23 Ralf Angeli + + * bib-cite.el, tex-mik.el, doc/changes.texi, doc/history.texi, + doc/wininstall.texi: Fix spelling of MiKTeX. + +2006-07-21 Ralf Angeli + + * font-latex.el (font-latex-match-script): Fix last check-in. + +2006-07-18 Ralf Angeli + + * font-latex.el (font-latex-match-script): Apply subscript and + superscript highlighting only once in order to prevent the font + size becoming too small. + +2006-07-15 Ralf Angeli + + * latex.el (LaTeX-maybe-install-toolbar): Enable tool bar in LaTeX + mode only. + (LaTeX-maybe-install-toolbar): Revert last change. + (TeX-latex-mode): Set `tool-bar-mode-on-hook' buffer-locally + instead. + +2006-07-12 Ralf Angeli + + * latex.el (LaTeX-fill-move-to-break-point): Fix regexp for + matching whitespace and comment characters at the start of a line. + Simplify forward search. + +2006-07-11 Ralf Angeli + + * tex.el (TeX-find-macro-boundaries, TeX-find-macro-start): Remove + unused argument. + (TeX-find-macro-end-helper): Handle macros at the end of the + buffer correctly. + +2006-07-10 Ralf Angeli + + * tex.el (TeX-math-close-double-dollar): New variable. + (TeX-insert-dollar): Use it. + + * Makefile.in, doc/Makefile.in (datarootdir): New variable used by + autoconf 2.59e. + +2006-07-09 Ralf Angeli + + * aclocal.m4 (EMACS_CHECK_MULE): Check for EMACS_UNIBYTE + environment variable and do not set MULESRC if it is present. + +2006-07-07 Ralf Angeli + + * tex.el (TeX-normal-mode): Force update of style list. + +2006-07-02 Ralf Angeli + + * tex.el (TeX-doc-backend-alist): Explicitely supply doc directory + for non-kpathsea-based TeX systems. + +2006-06-29 Ralf Angeli + + * latex.el (LaTeX-fill-region-as-paragraph): Fix treatment of code + comments in case of something like "\%}%". + +2006-06-24 Ralf Angeli + + * tex.el (TeX-clean): Delete files in directory of master file. + +2006-06-23 Joshua Buhl + + * doc/tex-ref.tex (title{Outlining TeX Documents}): new section. + +2006-06-19 Ralf Angeli + + * style/amsmath.el ("amsmath"): Prompt for alignment option with + subarray environments. + +2006-06-18 Ralf Angeli + + * tex.el (TeX-doc-backend-alist): Preserve window configuration + when checking for info backends. + +2006-06-17 Ikumi Keita + + * tex.el (TeX-parse-arguments): Makes to work with proper value of + TeX-insert-macro-default-style. + (TeX-insert-braces): Place braces with right direction with active + region, (related to the case when the region is being marked + backwards). + +2006-06-17 Masayuki Ataka + + * tex.el (TeX-clean): Delete generated files associated with + `TeX-region-file'. Suggested by Ikumi Keita . + +2006-06-12 Ralf Angeli + + * tex.el (Info-find-file): Do not autoload. + (TeX-doc-backend-alist): Use a method for checking the presence of + an info file which works in Emacs 21 as well. + +2006-06-11 Ralf Angeli + + * tex.el (TeX-doc-backend-alist): Don't error out if + `Info-find-file' is not available. + (TeX-doc): Use `interactive-p' instead of `called-interactively-p' + which is not available in Emacs 21. + +2006-06-11 Ikumi Keita + + * style/amsmath.el ("amsmath"): Docfix for 'uproot'. + (LaTeX-amsmath-env-alignat): Fix typo. + +2006-06-08 David Kastrup + + * Makefile.in (PREVIEW_BUILD_DIR): New variable for building the + preview standalone bundle. + (preview-ball): New target for creating the preview standalone + bundle for CTAN. + +2006-06-08 Reiner Steib + + * auctex.spec (%post, %postun): Use mktexlsr instead of texhash. + Only update the relevant ls-R file. + (%install): Add comment about preview.cfg. + (%install, %files): prauctex.cfg is the config file, not + preview.cfg. + +2006-06-07 Ralf Angeli + + * latex.el (LaTeX-set-paragraph-start): New function. + (LaTeX-paragraph-commands-add-locally) + (LaTeX-common-initialization): Use it. + +2006-06-07 Reiner Steib + + * Version 11.83 released. + +2006-06-07 Reiner Steib + + * Makefile.in (full-release): Remove duplicate pass phrase prompt. + (release-commit): Only commit ChangeLog. + + * Makefile.in (rpm-packages): Rename from rpm-builds. + + * RELEASE: Fix typo. + + * Makefile.in (rpm-builds): Add preview-tetex. + + * auctex.spec: Add "-n" for preview-tetex. + (%install): Create preview.cfg. + +2006-06-07 David Kastrup + + * RELEASE: Add info about preview RPM. + + * doc/install.texi (Advice for package providers): Adapt package + advice to what we actually do for RPM files. + + * auctex.spec: attempt to add preview-tetex package. + +2006-06-07 Reiner Steib + + * Makefile.in (XEMACS_BUILD_DIR): New variable. + (xemacs-package): Use it. + (tar-ball-clean): Add XEMACS_BUILD_DIR. + (CP): New variable. + (tar-ball, www-doc): Use it. + + * RELEASE: Update RPM stuff. + + * tex.el (TeX-line-number-at-pos): New compatibility function. + + * style/pdfsync.el (LaTeX-pdfsync-output-page): Use it. + + * auctex.spec (Obsoletes): Remove preview-latex-common. + +2006-06-06 Ralf Angeli + + * style/pdfsync.el (LaTeX-pdfsync-output-page): Initialize + `sync-record' with a non-nil value. + + * doc/auctex.texi (Viewing): Fix reference to Commands node + looking ugly in info output. Slightly rearrange forward/inverse + search section. Document pdfsync support a bit more in detail. + +2006-06-06 Reiner Steib + + * RELEASE: Use "SUSE" instead of "SuSE". + + * auctex.spec (Release): Bump to 1. + (%changelog): Add 11.83. + + * doc/changes.texi: Add @xref for pdfsync. + + * doc/auctex.texi (Viewing): Mention pdfsync. + + * doc/todo.texi (Wishlist): Add newline. Mention pdfsync. + +2006-06-06 David Kastrup + + * RELEASE: Add details about downloadable packages. Beg harder. + +2006-06-05 Reiner Steib + + * RELEASE: Mention LaTeX tool bar. + +2006-06-05 Ralf Angeli + + * font-latex.el (font-latex-quote-regexp-beg) + (font-latex-quotes-control): Make buffer-local. + (font-latex-add-quotes): Revert last change and do not make + `font-latex-quotes-control' buffer-local which it now already is. + +2006-06-04 Ralf Angeli + + * font-latex.el (font-latex-add-quotes): Make + `font-latex-quote-regexp-beg' buffer-local. + +2006-06-04 Reiner Steib + + * Makefile.in (rpm-builds): New target. + (full-release): Use gpg-agent if available. + (RPM_SIGN): New variable. + (rpm-builds): Use it. + + * doc/install.texi (Advice for non-privileged users): Reword to + avoid underfull hbox. + +2006-06-03 Ralf Angeli + + * doc/auctex.texi (top): Update master menu. + (Running TeX and friends): Update menu. + (Miscellaneous Commands): Remove. + (Cleaning, Documentation): New nodes. + + * doc/changes.texi: Update references to documentation about + cleaning and documentation access. + +2006-06-02 Reiner Steib + + * doc/auctex.texi (Miscellaneous Commands): New node. + + * doc/changes.texi: Add @xref-s. + +2006-06-02 David Kastrup + + * doc/changes.texi: Change one ref to xref. + +2006-05-31 Reiner Steib + + * doc/changes.texi: Conditionalize reference. + + * doc/Makefile.in (MAKEINFO_PLAIN): Remove --no-validate. + + * auctex.spec (%files emacs): Remove %exclude. + +2006-05-30 Reiner Steib + + * doc/Makefile.in (MAKEINFO_PLAIN): New. Add --no-validate. + + * doc/changes.texi: Add tool bar. + + * doc/auctex.texi (top): Remove tool bar. + (Running TeX and friends): Add tool bar here. Adjust. + +2006-05-25 David Kastrup + + * RELEASE: Mention file-line-error style messages. + Mention XyMTeX fix. + + * doc/changes.texi: The same. + + +2006-05-25 Ralf Angeli + + * tex.el (TeX-update-style-hook): New variable. + (TeX-update-style): Use it. + (TeX-remove-style): Fix typo. + + * font-latex.el (font-latex-quotes-internal): New variable. + (font-latex-quotes-set-internal): New function. + (font-latex-match-quotation): Use it. Use + `font-latex-quotes-internal' instead of `font-latex-quotes'. + (font-latex-setup): Remove code for figuring out type of + language-specific quotation mark matching which is now in + `font-latex-quotes-set-internal'. + + * RELEASE: Update for 11.83. + + * auctex.spec, configure.ac, doc/auctex.texi, doc/changes.texi, + doc/preview-latex.texi, doc/tex-ref.tex: Bump version number. + + Update address of FSF in GPL notices. + +2006-05-22 Ralf Angeli + + * font-latex.el (font-latex-quotes-fallback) + (font-latex-quote-style-list-french) + (font-latex-quote-style-list-german): New variables. + (font-latex-quotes): Add `auto' option. + (font-latex-setup): Try to derive type of quotation mark matching + from document properties. + + * tex.el (TeX-elt-of-list-member): New function. + + * doc/auctex.texi (Font Locking): Document `auto' option of + `font-latex-quotes'. + +2006-05-21 Ralf Angeli + + * tex.el (TeX-source-specials-mode): Mark as safe. + (TeX-PDF-mode): Use `TeX-booleanp'. + (TeX-booleanp): New function. + + * font-latex.el (font-latex-quotes): Mark as safe. + (font-latex-fontify-script): Use `TeX-booleanp'. + +2006-05-17 Ralf Angeli + + * latex.el (LaTeX-forward-paragraph): Make regexp more efficient. + +2006-05-15 Reiner Steib + + * tex.el (TeX-PDF-mode): Rewrite safe-local-variable property for + Emacs 21 compatibility. + + * font-latex.el (font-latex-fontify-script): Ditto. + +2006-05-10 Reiner Steib + + * tex.el (TeX-master): Quote safe-local-variable lambda expression + to avoid byte compilation. + +2006-05-08 Reiner Steib + + * font-latex.el (font-latex-fontify-script): Mark as + safe-local-variable. + +2006-05-07 Reiner Steib + + * tex.el (TeX-PDF-mode): Mark as safe-local-variable. + (TeX-master): Don't use t in safe-local-variable declaration. + (TeX-doc): Clarify. + +2006-05-07 Ralf Angeli + + * font-latex.el (font-latex-match-quotation): Do not match + quotation marks in math constructs. + +2006-05-05 Berend de Boer + + * context.el (ConTeXt-mode-common-initialization): Previous fix + still wrong. Problem is that all local variables were killed, so + added a save/restore around the common initialisation. + +2006-05-04 Berend de Boer + + * context-nl.el (context-nl-mode) and context-en.el + (context-en-mode): can now assume that ConTeXt-current-interface + is buffer local. + + * context.el (ConTeXt-current-interface): this variable should + always be buffer local. With this and above two changes having + buffers with two interfaces at the same time works correctly + (again?). + +2006-04-26 Ralf Angeli + + * tex-buf.el (TeX-TeX-sentinel-check, TeX-parse-error): Support + file-line-error error indicators. + +2006-04-22 Ralf Angeli + + * tex.el (TeX-format-list): Extend regexp for ConTeXt mode. + +2006-04-21 Ralf Angeli + + * latex.el (docTeX-mode): Make filling and indentation aware of + DocStrip guards. + +2006-04-20 David Kastrup + + * tex-buf.el (TeX-warning): Don't balk if `string' is nil. + +2006-04-17 Ralf Angeli + + * font-latex.el (font-latex-match-script): Fix matching of nested + braces. + +2006-04-12 Ralf Angeli + + * latex.el (LaTeX-babel-insert-hyphen): Do not error out at + beginning of buffer. + +2006-03-28 Ralf Angeli + + * Makefile.in (install-metadata): Do not use an inline test for + checking if preview is enabled. Just to be on the safe side. + +2006-03-27 David Kastrup + + * doc/intro.texi (Introduction): refer to `below' instead of + probably non-existing `preview/README'. + + * tex.el: tiny typo. + + * latex.el (LaTeX-close-environment): Allow prefix argument to + reopen the environment. + +2006-03-22 Ralf Angeli + + * Makefile.in (install-metadata): Append preview/auto.el to start + file if configured with preview-latex. + +2006-03-20 Ralf Angeli + + * latex.el (LaTeX-insert-environment): Do not polute the kill + ring. + +2006-03-15 Ralf Angeli + + * latex.el (TeX-latex-mode): Set up tool bar correctly for XEmacs + and activate it for every buffer in Emacs. Run mode hooks as late + as possible. + +2006-03-14 Ralf Angeli + + * configure.ac: Check for `make' and abort if not present. Use + `AC_PROG_MAKE_SET' instead of deprecated `AC_SET_MAKE'. + + * latex.el (LaTeX-common-initialization): Add \dots to supported + TeX symbols. + +2006-03-13 Ralf Angeli + + * tex.el (TeX-mode-map): Change `C-c ?' binding from + `describe-mode' to `TeX-doc'. + (TeX-common-menu-entries): Add `Find Documentation...' entry for + `TeX-doc'. + (plain-TeX-menu-entries): Remove space before ellipsis. + (TeX-doc-backend-alist): Make texdoc backend available in all + modes. + + * latex.el (LaTeX-mode-menu): Remove space before ellipsis. + + * doc/changes.texi: Advertise cleaning and documentation finding + functionality. + +2006-03-07 Ralf Angeli + + * tex-buf.el (TeX-next-error, TeX-active-buffer): Get master from + the command buffer. + (TeX-error, TeX-warning): Do not set `TeX-master' but set + `TeX-command-buffer' to the right value instead. + +2006-02-17 Masayuki Ataka + + * tex-buf.el (TeX-error-description-list): Fix error messages. + Changed from `documentstyle' to `documentclass'. The duplicated + entries `counter too large' are combined. Add the name of + referenced book and the section number to the entry `Missing \\$ + inserted'. + + * tex-jp.el (TeX-error-description-list): Likewise. + +2006-02-16 Ralf Angeli + + * tex.el (TeX-master): Mark as safe. + +2006-02-09 Ralf Angeli + + * doc/wininstall.texi: Intersperse some information about PATH. + +2006-02-08 Reiner Steib + + * tex.el (TeX-clean-default-intermediate-suffixes): Add .brf and + .out for hyperref. + +2006-02-08 Ralf Angeli + + * tex.el (TeX-kpathsea-format-alist): Add search specs for + documentation. + (Info-find-file, info-lookup->completions): Autoload. + (TeX-doc-backend-alist): New variable. + (TeX-doc): New function. + + * doc/todo.texi (Wishlist): Add a few words about documentation + lookup for macros. + +2006-02-07 Ralf Angeli + + * tex-buf.el (TeX-run-ispell-on-document): Reintroduce for + compatibility reasons. + + * tex.el (TeX-command-list): Use `TeX-run-function' instead of + `TeX-run-ispell-on-document' for "Spell" option. Remove + `TeX-run-ispell-on-document' as option for the third element of an + item. + (TeX-ispell-document): Move here from tex-buf.el. + + * tex-buf.el (TeX-run-ispell-on-document): Remove. + (TeX-ispell-document): Move to tex.el. + +2006-02-07 Ralf Angeli + + * tex.el (TeX-command-list): Remove "ConTeXt Clean". Add general + "Clean" and "Clean All" options. Add `TeX-run-function' as an + option for the third element of an item and document it. + (TeX-clean-default-intermediate-suffixes) + (TeX-clean-default-output-suffixes, TeX-clean-confirm): New + variables. + (dired-mark-pop-up): Autoload. + (TeX-clean): New function. + + * tex-buf.el (TeX-run-function): New function. + + * tex-info.el (Texinfo-clean-intermediate-suffixes) + (Texinfo-clean-output-suffixes): New variables. + + * latex.el (docTeX-clean-intermediate-suffixes) + (docTeX-clean-output-suffixes) + (LaTeX-clean-intermediate-suffixes, LaTeX-clean-output-suffixes): + New variables. + + * context.el (ConTeXt-clean-intermediate-suffixes) + (ConTeXt-clean-output-suffixes): New variables. + +2006-02-04 Ralf Angeli + + * font-latex.el (font-latex-make-sectioning-faces): Set the face + size for XEmacs again after `set-face-parent' was called which + erroneously overwrites the original size. Without this fix + sectioning faces may be unscaled after starting XEmacs. + +2006-02-03 Ralf Angeli + + * doc/auctex.texi (top): Add detailed menu for better + accessibility. Fix formatting/usage of references to RefTeX and + preview-latex manuals. + +2006-02-03 Reiner Steib + + * latex.el (LaTeX-enable-toolbar): New variable. + (LaTeX-maybe-install-toolbar): New function. + (TeX-latex-mode): Add LaTeX-maybe-install-toolbar to + tool-bar-mode-on-hook. + +2006-01-31 Ralf Angeli + + * aclocal.m4: Check for {late,last,early}-package-hiearchies if + `late-packages' is not bound (which indicates we are dealing with + XEmacs 21.5). + +2006-01-28 Masayuki Ataka + + * tex-jp.el (TeX-command-list): Use function ignore insted of nil + for the third element of `separator for command menu' because + defcustom of TeX-command-list requires the third element function. + Reported by Ikumi Keita . + +2006-01-28 Ikumi Keita + + * tex-buf.el (TeX-run-discard-foreground): Renamed from + TeX-run-dviout. + (TeX-run-dviout): alias to TeX-run-discard-foreground. + + * tex.el (TeX-command-list): Use TeX-run-discard-foreground + instead of TeX-run-dviout. + +2006-01-25 Ralf Angeli + + * style/csquotes.el (LaTeX-csquotes-insert-environment): Set + prompt for mandatory arguments. + ("csquotes"): Bring up to par with csquotes 3.2. + + * style/url.el ("url"): Support the \path macro. + +2006-01-25 Masayuki Ataka + + * tex-buf.el (TeX-run-dviout): Undo previous change. + + * tex.el (TeX-command-list): Ditto. + +2006-01-24 Ralf Angeli + + * latex.el (LaTeX-verbatim-macros-with-delims) + (LaTeX-verbatim-macros-with-delims-local) + (LaTeX-verbatim-macros-with-braces) + (LaTeX-verbatim-macros-with-braces-local): Doc fix. + (LaTeX-verbatim-environments, LaTeX-verbatim-environments-local): + Doc fix. Make the correct variable buffer-local. + (LaTeX-verbatim-macros-with-delims) + (LaTeX-verbatim-macros-with-braces, LaTeX-verbatim-environments): + New functions. + (LaTeX-verbatim-macro-boundaries): Find macro in case point is + just in front of it. + (LaTeX-verbatim-p): Doc fix. Correct macro lookup. + (LaTeX-fill-move-to-break-point): Do not break verbatim macros + with braces across lines (in addition to macros with delimiters). + For example in case of \lstinline{...} this would result in an + error and in case of \url{...} spaces would be messed up (in + conjunction with the `obeyspaces' package option). + + * font-latex.el (font-latex-set-syntactic-keywords): Instead of + appending lists of verbatim macros and environments manually use + new LaTeX-verbatim-* functions. + +2006-01-24 Ikumi Keita + + * latex.el (LaTeX-fill-move-to-break-point): Fix previous change. + +2006-01-23 Reiner Steib + + * Makefile.in: Add CP_A. Add coment on maintainer-only targets. + (xemacs-package): Use CP_A. + +2006-01-22 Ikumi Keita + + * latex.el (LaTeX-fill-move-to-break-point): Use TeX-espaced-p to + check TeX escape char. + + * tex.el (TeX-command-list): Removed TeX-run-dviout because dviout + here is only work with Emacs on MS-DOS. + + * tex-buf.el (TeX-run-dviout): Removed. + + * tex-jp.el (japanese-TeX-command-list): Remove TeX-run-dviout. + Commented out easy-menu-define (plain-TeX|LaTeX)-mode-command-nemu. + (japanese-TeX-mode, japanese-plain-tex-mode) + (japanese-latex-mode): Doc fix. + (japanese-TeX-self-insert-command): Renamed from + tex-jp-self-insert-command. + (TeX-insert-punctuation): Follow the change. + (TeX-error-description-list): Doc fix. + +2006-01-22 Ralf Angeli + + * tex-fold.el (TeX-fold-macro-spec-list): Fold pageref macro as + well. + +2006-01-16 David Kastrup + + * Makefile.in (xemacs-package): Don't clean up after building so + that we have a chance for debugging. + +2006-01-14 David Kastrup + + * configure.ac: Don't check for INSTALL_INFO if already set. + +2006-01-14 Ralf Angeli + + * doc/changes.texi: Advertize pdfsync support. + + * latex.el (LaTeX-header-end, LaTeX-trailer-start): Do not pick up + commented header end or trailer start respectively. + +2006-01-13 David Kastrup + + * Makefile.in (xemacs-package): Don't run `install-info' and + `texhash' + +2006-01-11 Reiner Steib + + * Makefile.in (tar-ball): Fix use of TAG_EXPORT. + +2006-01-04 Reiner Steib + + * tex-fold.el (TeX-fold-mode): Autoload as an interactive + function. + +2005-12-28 Ralf Angeli + + * style/pdfsync.el: New file. + + * Makefile.in (STYLESRC): Add style/pdfsync.el. + + * tex.el (TeX-output-view-style): Add %(outpage) expander to xpdf + call. Start xpdf in server mode. + (TeX-expand-list): New %(outpage) expander. + (TeX-sync-output-page-function): New variable. + +2005-12-28 Reiner Steib + + * Makefile.in (tar-ball): Use TAG_EXPORT for snapshots. + + * auctex.spec (description): Add preview-latex. + (install, files): Don't create preview directory. + +2005-12-21 Ikumi Keita + + * latex.el (LaTeX-mark-section): Remove read-only mark `*' from + interactive. + (LaTeX-fill-move-to-break-point): Use `*' instead of `+' for + looking back Japanese Macro in order to prevent breaking line just + after TeX-esc, in other words, not to break TeX command `\JJJ' + into `\' and `JJJ'. Use variable linebeg instead of function + line-beginning-position. + +2005-12-17 Reiner Steib + + * auctex.spec (Provides): Make emacs/site-lisp/preview. + (Release): Bump to 1. + +2005-12-17 Ralf Angeli + + * Version 11.82 released. + +2005-12-17 Ralf Angeli + + * Makefile.in (COMMITTER_NAME, COMMITTER_EMAIL): New variables. + (release-commit): Use them. + + * auctex.spec, configure.ac, doc/auctex.texi, + doc/preview-latex.texi, doc/tex-ref.tex: Bump version number. + + * doc/changes.texi: Minor rewordings for 11.82. + +2005-12-08 Reiner Steib + + * tex.el (TeX-completing-read-multiple): Mention the availability + of crm.el in recent XEmacs packages. + +2005-12-07 Ralf Angeli + + * tex.el (TeX-macro-history): New variable. + (TeX-insert-macro): Use it. + +2005-12-05 Ralf Angeli + + * tex-info.el (TeX-texinfo-mode): Do not add braces around + arguments of commands which do not expect them. + + * latex.el (TeX-arg-free): Move to tex.el. + + * tex.el (TeX-arg-free): Move here from latex.el. + (TeX-insert-dollar): Do not abort with an error with an error if a + dollar is inserted in a math construct not started with a dollar. + Issue a message about the mismatch instead and insert the dollar. + + * font-latex.el (font-latex-quote-list): Add default quotes. + (font-latex-add-quotes): New function. + (font-latex-match-quotation): Remove hard-coded quotation mark + lists and adapt `font-latex-quote-list' to the active quote style + instead. Babel-specific quotation mark strings are now added to + `font-latex-quote-list' by style files. + + * style/slovak.el, style/ngerman.el, style/italian.el, + style/german.el, style/danish.el: Add fontification support for + quotation mark strings provided by babel. + +2005-11-30 Ralf Angeli + + * texmathp.el: Revert last change because it makes math + switch/toggle matching tricks harder to use. + + * latex.el (LaTeX-listify-package-options): New function. + (LaTeX-auto-cleanup): Use it. + (LaTeX-arg-usepackage): Add \usepackage options to style list. + + * tex.el (TeX-insert-quote): Turn opening/closing quotation mark + into "" if <"> is typed with point behind it and insert " with any + following <"> key type. + +2005-11-29 Ralf Angeli + + * texmathp.el (texmathp-in-commented-line, texmathp-in-comment): + New functions. + (texmathp-match-environment): Use them. + (texmathp-match-switch): Make aware of comments. + +2005-11-27 Ralf Angeli + + * style/MinionPro.el: New file. Contributed by Mark Trettin. + + * Makefile.in (STYLESRC): Add style/MinionPro.el. + + * doc/changes.texi: Advertise support for MinionPro.sty. + + * RELEASE (IMPORTANT): Add Mark. + +2005-11-25 David Kastrup + + * doc/todo.texi (Wishlist): Add suggestion about longlines.el. + +2005-11-24 Ralf Angeli + + * tex.el (TeX-toggle-debug-warnings): Use correct variable for + state indication. + (TeX-kpathsea-format-alist): Add entry for "sty". Prevents + kpathsea-based search from failing e.g. in case of \usepackage + insertion. + + * doc/changes.texi: Document removal of + `font-latex-title-fontify' alias. + + * font-latex.el: Remove alias for `font-latex-title-fontify'. + (font-latex-make-user-keywords): Use hack from tex-mode.el to + fontify the backslash in "\end{verbatim}" and similar correctly. + (font-latex-set-syntactic-keywords): Use the backslash of + "\end{verbatim}" and similar for the syntax property, not the + newline character which led to fontification going wild when text + at the end of the environment was inserted. + +2005-11-22 Ralf Angeli + + * doc/changes.texi: Mention completion support for LaTeX packages. + + * RELEASE: Update for 11.82. + +2005-11-19 Ralf Angeli + + * tex-site.el.in (tex-site-unload-hook): Don't let it fail on + Emacs 21. + +2005-11-18 Ralf Angeli + + * doc/changes.texi: Fix key binding for + `TeX-toggle-debug-bad-boxes'. + + * doc/auctex.texi (Quotes): Document change of + `TeX-insert-braces'. + (Filling): `M-g' for `LaTeX-fill-region' has been deactivated for + a long time. Reflect that in the documentation. + + * tex.el (TeX-token-char): Doc fix. + (TeX-insert-braces): Do something more sensible if region is + activated. + +2005-11-17 Ralf Angeli + + * tex-buf.el (TeX-parse-error): Do not match empty strings. + +2005-11-12 Ralf Angeli + + * tex-buf.el (TeX-toggle-debug-boxes): Move to tex.el. + (TeX-LaTeX-sentinel-has-warnings) + (TeX-LaTeX-sentinel-has-bad-boxes): New functions. + (TeX-LaTeX-sentinel): Check for warnings and bad boxes and inform + the user is the respective options are non-nil. + (TeX-parse-error): Conditionalize checking for warnings and bad + boxes. Find warnings without line numbers as well. + (TeX-warning): Doc fix (no need to return nil anymore). Support + warnings without line numbers. + + * tex.el (TeX-toggle-debug-boxes): Do not autoload. + (TeX-debug-bad-boxes): Doc fix. + (TeX-debug-warnings): New variable. + (TeX-toggle-debug-bad-boxes): Moved here from tex-buf.el. + (TeX-toggle-debug-warnings): New function. + (TeX-mode-map): Define new key bindings for + `TeX-toggle-debug-bad-boxes' and `TeX-toggle-debug-warnings'. + (TeX-mode-specific-command-menu-entries): Add or change menu + entries for `TeX-toggle-debug-bad-boxes' and + `TeX-toggle-debug-warnings'. + + * doc/auctex.texi (Debugging): Document debugging support for + warnings and changes of debugging bad boxes. + + * doc/changes.texi: Advertise debugging support for warnings and + changes of debugging bad boxes. + + * font-latex.el (font-latex-set-syntactic-keywords): Doc fix. + Check if LaTeX-specific variables are bound which may be unbound + if font-latex is being used in ConTeXt mode. + +2005-11-07 Ralf Angeli + + * tex.el (TeX-insert-backslash): Use regular function call instead + of `funcall'. + +2005-11-05 Ralf Angeli + + * tex.el (TeX-electric-sub-and-superscript): New variable. + (TeX-insert-sub-or-superscript): New function. + (TeX-mode-map): Use `TeX-insert-sub-or-superscript' for `_' and + `^' keys. + (TeX-insert-backslash): New function. + (TeX-mode-map): Use `TeX-insert-backslash' for `\'. + (TeX-electric-escape): Adapt doc string. + + * doc/auctex.texi (Mathematics): Document + `TeX-electric-sub-and-superscript'. + + * doc/changes.texi: Advertise `TeX-electric-sub-and-superscript'. + +2005-10-31 Masayuki Ataka + + * latex.el (LaTeX-fill-move-to-break-point): Do not break lines in + the Japanese Macros. Suggested by Ikumi Keita . + +2005-10-30 Ralf Angeli + + * doc/install.texi (Prerequisites): Update information about + development version of Emacs for Debian. + Update information about development version of Emacs for + Mac OS X and Windows. + +2005-10-29 Ralf Angeli + + * style/frenchb.el, style/francais.el: Clean up. + +2005-10-28 Ralf Angeli + + * tex.el (TeX-quote-language-alist, TeX-insert-quote): Support + functions as opening and closing quotation marks. + + * style/frenchb.el: New file. + + * style/francais.el: New file. + + * doc/auctex.texi (European): Document support of French. + + * doc/changes.texi: Advertise support of French. + + * Makefile.in (STYLESRC): Add style/frenchb.el and + style/francais.el. + +2005-10-24 Ralf Angeli + + * doc/install.texi (Configure): Document --with-kpathseasep. + + * doc/auctex.texi (Commands): Add index entry for PDF mode. + + * configure.ac (preview_enabled): Export `TEX' in unquoted form. + +2005-10-23 David Kastrup + + * style/babel.el (LaTeX-babel-package-options): Only use 2 + argument form of defvaralias in order not to make XEmacs barf. + +2005-10-23 Arne Jørgensen + + * style/amstext.el (LaTeX-amstext-package-option): New variable. + + * style/amstex.el (LaTeX-amstex-package-options): New variable. + + * style/amsopn.el (LaTeX-amsopn-package-options): New variable. + + * style/amsmath.el (LaTeX-amsmath-package-options): New variable. + + * style/amsbsy.el (LaTeX-amsbsy-package-options): New variable. + + * style/fancyref.el (LaTeX-fancyref-package-options): New + variable. + + * style/harvard.el: Updated GPL to version 2. Fixed FSF address. + (LaTeX-harvard-package-options): New variable. + + * style/index.el (LaTeX-index-package-options): New variable. + + * style/listings.el (LaTeX-listings-package-options): New + variable. + + * style/makeidx.el (LaTeX-makeidx-package-options): New variable. + + * style/mdwlist.el (LaTeX-mdwlist-package-options): New variable. + + * style/multind.el (LaTeX-multind-package-options): New variable. + + * style/natbib.el (LaTeX-natbib-package-options): New variable. + + * style/nicefrac.el (LaTeX-nicefrac-package-options): New + variable. + + * style/paralist.el (LaTeX-paralist-package-options): New + variable. + + * style/units.el (LaTeX-units-package-options): New variable. + + * style/scrpage2.el (LaTeX-scrpage2-package-options): New + variable. + +2005-10-21 Reiner Steib + + * toolbar-x.el (toolbarx-find-image): Fix previous commit. + +2005-10-21 Ralf Angeli + + * tex-mik.el (tex-site): Require 'tex-site no more. + + * doc/changes.texi: Document removal of 'tex-site requirement from + `tex-mik.el'. + + * configure.ac (packagedir): Quote value of `infodir'. + +2005-10-20 David Kastrup + + * toolbar-x.el: Revert mostly to 2005-05-02 state, but add a + fallback to find-image. + +2005-10-20 Reiner Steib + + * toolbar-x.el (toolbarx-find-image): Use image-search-load-path + and image-load-path when available. + (toolbarx-find-image): Revert previous fix. Instead, rely on + find-image whenever possible and don't abuse locate-library. + +2005-10-20 Ralf Angeli + + * font-latex.el (font-latex-make-user-keywords): Append string + face in order to make string fontification of ``foo $bar$ baz'' + constructs work. + +2005-10-19 Arne Jørgensen + + * latex.el (LaTeX-arg-usepackage): If + `LaTeX--package-options' is bound and nil don't ask for + package options. + + * style/verbatim.el (LaTeX-verbatim-package-options): New + variable. + + * style/varioref.el (LaTeX-varioref-package-options): New + variable. + + * style/url.el (LaTeX-url-package-options): New variable. + + * style/subfigure.el (LaTeX-subfigure-package-options): New + variable. + + * style/inputenc.el (LaTeX-arg-inputenc-inputenc): Doc fix. + (LaTeX-inputenc-package-options): Doc fix. + + * style/dk-bib.el (LaTeX-dk-bib-package-options): Doc fix. + + * style/captcont.el (LaTeX-captcont-package-options): New + variable. + + * style/booktabs.el (LaTeX-booktabs-package-options): New + variable. + + * style/babel.el: Add doc string to `LaTeX-babel-package-options' + and use `defvar' instead of `setq'. + + * style/alltt.el (LaTeX-alltt-package-options): New variable. + +2005-10-13 Reiner Steib + + * style/dk-bib.el, style/inputenc.el: Add coding cookie. Delete + trailing whitespace. Reindent. + +2005-10-13 Ralf Angeli + + * style/dk-bib.el (LaTeX-dk-bib-package-options): Define only + once. + +2005-10-13 Jan-Ake Larsson + + * tex-buf.el: Change defcustom group from TeX-commands to TeX-command + +2005-10-12 Arne Jørgensen + + * tex.el: Provide a `TeX-completing-read-multiple' either by + defalias'ing `completing-read-multiple' or defining a wrapper + around `multi-prompt'. + + * latex.el (LaTeX-arg-usepackage): New function. Asks about what + package to use, loads the AUCTeX style file, and asks about + package options (possibly based on definitions in the AUCTeX + style file). + (LaTeX-common-initialization): Use it. + + * style/babel.el: Define `LaTeX-babel-package-options' to be a + list of languages/options for the babel package. + + * style/inputenc.el: New file. + + * style/dk-bib.el: New file. + + * Makefile.in (STYLESRC): Added style/inputenc.el and + style/dk-bib.el. + +2005-10-10 Arne Jørgensen + + * latex.el (LaTeX-auto-regexp-list): Removed spurious characters + in variable definition. + +2005-10-10 Reiner Steib + + * doc/auctex.texi (top): Index "tool bar" and "toolbar". Use + "tool bar" in the text. + + * doc/changes.texi: Use "tool bar". + + * auctex.spec: Install auctex.el and preview-latex.el for SuSE + too. Don't use extraconfig. + +2005-10-07 Reiner Steib + + * Makefile.in (tar-ball): Re-add fixed spec file. + +2005-10-07 Masayuki Ataka + + * tex.el (TeX-token-char): New variable. + (plain-TeX-auto-regexp-list): Use it. + Suggested by Ikumi Keita . + + * latex.el (LaTeX-auto-regexp-list, BibTeX-auto-regexp-list): Use + it. + + * tex-jp.el (LaTeX-auto-regexp-list, plain-TeX-auto-regexp-list) + (BibTeX-auto-regexp-list): Removed. + +2005-10-06 Reiner Steib + + * auctex.spec: Fixes for Fedora. Create site-start.d and add + files. + +2005-10-02 Ralf Angeli + + * tex-buf.el (TeX-BibTeX-sentinel): Shorten message in case of + errors. + + * Makefile.in (install-lisp): Use MULESRC instead of MULEELC + because a `c' is already being appended by the installation code. + + * tex-jp.el (japanese-TeX-command-list): Remove obsolete + `TeX-run-LaTeX' option. + + * tex.el (TeX-current-macro): New function. + + * latex.el (LaTeX-verbatim-macros-with-delims) + (LaTeX-verbatim-macros-with-delims-local) + (LaTeX-verbatim-macros-with-braces) + (LaTeX-verbatim-macros-with-braces-local) + (LaTeX-verbatim-environments, LaTeX-verbatim-environments-local): + New variables. + (LaTeX-verbatim-macro-boundaries, LaTeX-current-verbatim-macro) + (LaTeX-verbatim-p, LaTeX-search-forward-comment-start): New + functions. + (LaTeX-verbatim-macros): Remove. + (LaTeX-fill-region-as-para-do): Simplify. + (LaTeX-fill-move-to-break-point): Use + `LaTeX-verbatim-macros-with-delims'. + (LaTeX-fill-paragraph, LaTeX-fill-code-comment): Handle comment + starters in verbatim constructs correctly. + + * font-latex.el (font-latex-verbatim-environments) + (font-latex-verbatim-environments-local) + (font-latex-verb-like-commands) + (font-latex-verb-like-commands-local) + (font-latex-verbatim-macros, font-latex-verbatim-macros-local): + Remove. + (font-latex-set-syntactic-keywords): Use new `LaTeX-verbatim-*' + instead of `font-latex-verb*' variables. + + * doc/auctex.texi (Font Locking): Document change of + verbatim-related variables. + + * doc/changes.texi: Document change of verbatim-related variables. + + * style/alltt.el ("alltt"): Use new variables for verbatim + constructs. + + * style/listings.el ("listings"): Use new variables for verbatim + constructs. + + * style/url.el ("url"): Use new variables for verbatim constructs. + + * latex.el (LaTeX-insert-environment): Mostly rewritten. Improve + handling of macrocode environments. + +2005-10-02 Christian Schlauer + + * tex-buf.el (TeX-BibTeX-sentinel): Check whether BibTeX reports + any warnings or errors. + + * doc/changes.texi: Mention it. + +2005-10-02 Ralf Angeli + + * texmathp.el (texmathp-match-environment): Make aware of + comments. + +2005-09-29 Masayuki Ataka + + * doc/install.texi (Customizing): Removed "Contributed files" + section. + Suggested by Ikumi Keita . + +2005-09-29 Ikumi Keita + + * texmathp.el (texmathp-tex-commands-default): Remove "xxalignat*" + and add "boxed". + +2005-09-27 Reiner Steib + + * auctex.spec: Add files in %{_datadir}/emacs/site-lisp. + Suggested by Jan-Ake Larsson. Added startfiles. Exclude + %{_infodir}/dir. + +2005-09-27 Ralf Angeli + + * configure.ac: Document option for specifying AUCTeX startfile as + --with-auctexstartfile, not --with-auctex-startfile which does not + work. Note that changing the internal name from `auctexstartfile' + to `auctex-startfile' is not an option because of the `-' in the + name which gives the shell headaches. + + * auctex.spec: Adapt to --with-auctexstartfile and + --with-preview-startfile. + + * doc/install.texi (Configure): Document change from + --with-auctex-startfile to --with-auctex-startfile and + --with-preview-startfile to --with-previewstartfile. + +2005-09-26 Reiner Steib + + * auctex.spec: Bump version number. Remove install-contrib, use + install-docs. Don't install preview/* because these are not + generated. + +2005-09-25 Ralf Angeli + + * Makefile.in (tar-ball): Don't create WWW directory and don't + copy HTML files. + (www-doc): New target. + +2005-09-25 David Kastrup + + * Version 11.81 released. + +2005-09-25 Ralf Angeli + + * RELEASE, configure.ac, font-latex.el, doc/auctex.texi, + doc/changes.texi, doc/preview-latex.texi, doc preview-readme.texi, + doc/tex-ref.texi, doc/todo.texi: Bump version number. + + * Makefile.in (DISTCLEANFILES): Add tex-site.el.out. + +2005-09-24 Ralf Angeli + + * Makefile.in (tar-ball): Remove dysfunctional spec file from + distribution. + (full-release): Disable RPM creation. + + * doc/auctex.texi: Bump version number. + + * configure.ac: Bump version number. + +2005-09-24 David Kastrup + + * doc/install.texi (Advice for package providers): Suggest + "anytex" instead of "notex" for without-texmf compilations. + +2005-09-23 Reiner Steib + + * tex-site.el.in (TeX-modes-set): Add custom group. + +2005-09-19 Ralf Angeli + + * tex.el (TeX-auto-parse-length, TeX-auto-x-parse-length) + (TeX-auto-x-regexp-list): Doc fix. + +2005-09-17 Ralf Angeli + + * texmathp.el (texmathp-tex-commands-default): Add "minipage" as + `env-off' and "\framebox" as `arg-off'. + +2005-09-13 Ralf Angeli + + * RELEASE: Update for upcoming release. + + * doc/changes.texi: Mention `font-latex-slide-title-face' and + `font-latex-match-slide-title-keywords'. + + * doc/auctex.texi (Font Locking): Document + `font-latex-slide-title-face' and + `font-latex-match-slide-title-keywords'. + +2005-09-10 Ralf Angeli + + * font-latex.el (font-latex-make-match-defun): Fontify only if + `font-latex-match-*-keywords' and + `font-latex-match-*-keywords-local' are non-empty. + (font-latex-make-match-defun): Revert. + (font-latex-make-built-in-keywords): Do not set + `font-latex-match-*' if there are no keywords. (Nicer solution + than the original change in `font-latex-make-match-defun'.) + +2005-09-08 Ralf Angeli + + * font-latex.el (font-latex-built-in-keyword-classes): New + `slide-title' class. + (font-latex-slide-title-face): New face. + Specify :size for XEmacs. + + * style/beamer.el ("beamer"): Fontify \frametitle with + `font-latex-slide-title-face'. + +2005-09-05 Ralf Angeli + + * tex-buf.el (TeX-command): Doc fix. + +2005-09-02 Ralf Angeli + + * texmathp.el (texmathp-tex-commands-default): Add "\textrm" as + `arg-off'. + +2005-08-30 Ralf Angeli + + * tex.el (TeX-font-replace-macro): Compute syntax table. + +2005-08-26 Ralf Angeli + + * latex.el (LaTeX-common-initialization): Remove redundant call to + `make-local-variable' for `outline-heading-alist'. Set + `outline-heading-alist' only if it is already defined. + +2005-08-26 Matthieu Moy (tiny change) + + * latex.el (LaTeX-common-initialization): Set + `outline-heading-alist'. + +2005-08-24 Ralf Angeli + + * latex.el (LaTeX-mark-section): Now marks subsections as well. + Former behavior is available via prefix argument. + + * doc/changes.texi: Mention change of `LaTeX-mark-section'. + +2005-08-23 Ralf Angeli + + * font-latex.el (font-latex-script): Return face symbols, not + names of non-existent variables. + + * tex.el (TeX-font-replace-macro): Do not use `TeX-find-macro-end' + for it may look too far in cases like "\emph{foo}{}". Use + `forward-sexp' with a stripped syntax table instead. + +2005-08-19 Ralf Angeli + + * doc/wininstall.texi: New "In a Nutshell" section. + +2005-08-18 Ralf Angeli + + * configure.ac: Quotify `packagelispdir' and `packagedatadir'. + (preview_enabled): Export unquoted variables. + Declare/initialize and export variables separately. + + * Makefile.in (DESCEND): Quote $$OLDPWD. + +2005-08-17 Ralf Angeli + + * doc/auctex.texi (Adding Macros): Remove superfluous entry for + `TeX-arg-file' and correct entry for `TeX-arg-input-file'. + + * latex.el (TeX-arg-input-file): Doc fix. + + * tex.el (TeX-command-list): Remove `TeX-run-LaTeX'. Add + `TeX-run-ispell-on-document' in order to prevent mismatch in + customization buffer. + +2005-08-05 David Kastrup + + * font-latex.el (font-latex-doctex-preprocessor-face): Remove + `list' from already quoted list. + +2005-08-02 Ralf Angeli + + * tex-fold.el (TeX-fold-region): In case of single-char non-letter + macros there does not have to be checked for a partial match. + This allows for folding of stuff like \,. + +2005-08-01 Berend de Boer + + * context-en.el (ConTeXt-setup-list-en): typo fixed. + +2005-07-21 Ralf Angeli + + * font-latex.el (font-latex-set-syntactic-keywords): Set and + update `font-latex-doctex-syntactic-keywords' here. + (font-latex-doctex-syntactic-keywords): Default to nil. + + * doc/auctex.texi (Japanese): Remove references to contrib make + targets. Minor clean-ups. + + * aclocal.m4 (library): Replace COMPILE_MULE and CONTRIB_MULEELC + with MULESRC and MULEELC. + + * Makefile.in (CONTRIB, CONTRIBELC, CONTRIB_MULE, COMPILE_MULE) + (CONTRIB_MULEELC): Remove. + (MULESRC, MULEELC): New variables. + (AUCSRC): Add bib-cite.el and tex-fptex.el. + (CLEANFILES): Remove CONTRIBELC and CONTRIB_MULEELC. Use MULEELC + instead. + (.PHONY): Remove contrib, install-contrib and install-contrib-el + targets. + (lisp): Depend on STYLESRC and MULESRC. Compile MULESRC as well. + (auto-loads.el): Use MULESRC. + (contrib, install-contrib-el, install-contrib): Remove. + (install-el): Install MULESRC. + (install-lisp): Install MULEELC. + + * style/csquotes.el: Bring up to par with csquotes 3.0. + (LaTeX-csquotes-insert-environment): New function. + +2005-07-15 David Kastrup + + * doc/preview-todo.texi: Mention that preview.dtx is not a + showpiece for AUCTeX. + +2005-07-15 Ralf Angeli + + * tex.el (TeX-run-style-hooks): Adjust `default-directory' to + match the directory of the style. + +2005-07-14 David Kastrup + + * doc/install.texi (Configure): explain about --without-packagedir. + (Advice for package providers): Same here. + + * aclocal.m4 (EMACS_PATH_LISPDIR): Allow packagedir=no with XEmacs. + + * configure.ac: protect against packagedir starting with `-' + +2005-07-12 Ralf Angeli + + * font-latex.el (font-latex-match-math-envII): Match environment + begin and end with whitespace between macro and argument as well. + + * doc/install.texi (Configure): Add `file' macro. + + * texmathp.el (texmathp-match-environment): Match environment + begin and end with whitespace between macro and argument as well. + +2005-07-12 David Kastrup + + * doc/wininstall.texi: + + * doc/install.texi (Configure): Explain prefix a bit more. + + * doc/Makefile.in (install-man): include tex-ref.tex. + +2005-07-08 Ralf Angeli + + * tex.el (TeX-insert-quote): Do not inhibit special quote + insertion in docTeX documentation parts. + + * font-latex.el (font-latex-match-command-with-arguments) + (font-latex-match-command-in-braces): Remove call to + `font-latex-commented-outp'. + (font-latex-match-quotation): Do not consider matches in comments + or verbatim-like constructs. Fix typo. + +2005-07-07 Ralf Angeli + + * latex.el (LaTeX-fill-move-to-break-point): Make non-MULE + XEmacsen happy. + (LaTeX-fill-paragraph): Don't treat trailing comment starters as + code comments. + + * font-latex.el (font-latex-match-quotation): Always use multibyte + strings for comparison. + + * doc/auctex.texi (top): Make the summary notes appear as + "Executive Summary" in printed output. + + * doc/intro.texi: Main heading in rawtext case should not be + numbered. Main heading in printed output has to be chapter, not + section, in order to fit into the rest of the sectioning + hierarchy. + (Introduction): Add two intermediate headings in order to make the + structure clearer. + + * doc/.cvsignore: Add auto directory. + +2005-07-06 David Kastrup + + * doc/tex-ref.tex: Rearrange and add information for preview-latex. + +2005-07-05 David Kastrup + + * doc/preview-latex.texi (Simple customization): Document new + option `preview-preserve-counters'. + + * doc/auctex.texi (top): Mention RefTeX, `LaTeX-install-toolbar' + and preview-latex. + +2005-07-01 Ralf Angeli + + * tex.el (TeX-submit-bug-report): Mention FAQ section. + + * doc/changes.texi: Advertise inclusion of preview-latex and + overhaul of installation procedures. + + * doc/install.texi (Advice for package providers): Refer to + preview-latex.el file. + + * doc/quickstart.texi (Quick Start): Use (load "auctex.el" nil t + t) instead of (require 'tex-site). + + * doc/faq.texi: Use (load "auctex.el" nil t t) instead of (require + 'tex-site). + + * doc/intro.texi (Introduction): Use (load "auctex.el" nil t t) + instead of (require 'tex-site). + +2005-06-30 Ralf Angeli + + * doc/auctex.texi (Folding): Do not quote `lambda' function. + +2005-06-29 Ralf Angeli + + * font-latex.el (font-latex-quotes): Get rid of :set function and + move most of its content to `font-latex-match-quotation'. + (font-latex-quotes-control): New variable. Initialize with nil. + (font-latex-match-quotation): Use it. + The whole changeset lets quote matching recognize automatically + when the value of `font-latex-quotes' changed while making sure + that the regexp only has to be rebuilt when a change actually + occured. + + * doc/todo.texi (Mid-term Goals): Update text about integration of + preview-latex. + + * doc/auctex.texi (Floats): Clarify use of + `LaTeX-top-caption-list'. + (Display, Internationalization): Make node and heading clearer. + (European): Describe insertion of multiple consecutive hyphens. + +2005-06-24 David Kastrup + + * RELEASE: Minor change. + + * configure.ac: Move checks and export for PERL here (needed for + doc of preview-latex). + (preview_enabled): Don't export Info-related variables, as they + are not needed in preview. + + * Makefile.in (AUCTEXVERSION): import. + (info, dvi): No subshell needed. + (auctex.el): Depend on config.status + (install-metadata): pass upstream version into prv-install.el + +2005-06-21 Ralf Angeli + + * tex-info.el (TeX-texinfo-mode): Use `TeX-run-mode-hooks'. + + * latex.el (TeX-latex-mode): Use `TeX-run-mode-hooks'. + + * context.el (ConTeXt-mode-common-initialization): Use + `TeX-run-mode-hooks'. + + * configure.ac: Make info about configuration clearer (in + connection with the message for preview-latex). + + * tex.el (TeX-master-file): `TeX-default-extension' is a variable, + not a function. + (TeX-run-mode-hooks): New function. + (TeX-plain-tex-mode, ams-tex-mode): Use it. + +2005-06-21 David Kastrup + + * Makefile.in (xemacs-package): reorder args. + + * configure.ac: disable INSTALL_INFO for XEmacs package. + + * doc/Makefile.in (install-man): Use $$i instead of $i. + +2005-06-20 David Kastrup + + * doc/install.texi (Advice for package providers): Propose package + structure. + + * doc/Makefile.in (install-man): Install sources for texinfo + files. + (.PHONY): Add install-man. + + * Makefile.in (.PHONY): Add install-man and xemacs-package + (install-man): Just descend into doc directory. + (xemacs-package): Try building some XEmacs package. + + * autogen.sh: Don't run distclean, that seems unexpected. + + * RELEASE: Further fold in stuff from preview/RELEASE which is now + deleted. + +2005-06-20 Ralf Angeli + + * font-latex.el (font-latex-superscript-face) + (font-latex-subscript-face): Add to correct customization group. + (font-latex-match-command-with-arguments) + (font-latex-match-command-in-braces, font-latex-match-math-env): + Don't set a dummy match. Remove unnecessary throw..catch clauses. + +2005-06-18 David Kastrup + + * RELEASE: Well, the merge with preview-latex is no longer + "planned". + +2005-06-16 Ralf Angeli + + * doc/preview-faq.texi (Requirements): Denastify. + + * tex.el (TeX-master-file): Don't override existing master with + `TeX-transient-master'. + + * tex-style.el (LaTeX-includegraphics-read-file): Doc fix. + +2005-06-15 Ralf Angeli + + * doc/install.texi (Prerequisites): Denastify. + + * doc/auctex.texi (Font Locking): Fix typo. + + * configure.ac: Use correct variable for --disable-preview switch. + +2005-06-15 Masayuki Ataka + + * Makefile.in (auto-loads.el): Auto-load COMPILE_MULE, too. + +2005-06-14 Ralf Angeli + + * RELEASE: Update stuff about fixed bugs and new features. + +2005-06-14 David Kastrup + + * doc/wininstall.texi: Spell out file names more explicitly. + Remove any hint of a version that might lead Windows users to + assume this documentation is for some reason more outdated than + year-old stuff they find via Google. + + * Makefile.in (install-docs): Make exit status of test bad-shell + safe. + +2005-06-14 Ralf Angeli + + * Makefile.in (all): Do not depend on `docs' target. + (.PHONY): Remove `docs'. Add `info' and `dvi'. + (docs): Remove. + (info, dvi): New targets. + (tar-ball): Make sure `dist' stuff is up-to-date. + Revert, as it is superfluous. + + * doc/Makefile.in (dist): Correct file name for + preview-latex.info. + (info, dvi): New targets. + (.PHONY): Add them and remove `auctex' and `preview'. + (auctex, preview): Remove. + +2005-06-14 David Kastrup + + * RELEASE: Adapt RELEASE notes to include preview-latex info. + + * README.CVS: Adapt to reality. + + * doc/Makefile.in (all): Same as dist. + (dist): Just create DISTTEXTS and info files. + (extradist): Additional stuff for ftp site. + (disttexts): Remove target. + (clean): Don't remove info files. + (maintainer-clean): Remove info files. + + * autogen.sh: Add error messages, run autoconf in preview + subdirectory. Heed MAKE variable if set. + + * Makefile.in (CVSFILES): Define files not to use in tarball. + (tar-ball): Remove them. + (tar-ball): Make extradist for additional doc files on ftp. + +2005-06-12 Ralf Angeli + + * tex-buf.el (TeX-ispell-document): Cater for the case where the + master file is located in a different directory. + (TeX-run-ispell-on-document, TeX-ispell-document): Doc fix. + +2005-06-11 Ralf Angeli + + * tex.el (TeX-master-file): Check `TeX-transient-master' not only + in the shared case. + + * tex-buf.el (TeX-region-create): Let-bind `TeX-transient-master'. + +2005-06-10 Ralf Angeli + + * doc/auctex.texi (Parsing Files): Fix display of reference. + Get rid of references to \documentstyle. + (Simple Style, Adding Macros, Adding Environments) + (Hacking the Parser): Clean up code examples. + + * tex.el (TeX-master-file-ask): Get rid of "" string as + default for `read-file-name'. Fixes unresponsiveness of Emacs on + Windows and fallback to minibuffer if file is opened via menu and + prevents file history from being cluttered. Use relative file + name for master file. + (TeX-master-file): Get rid of "this file" string as default for + `read-file-name'. + +2005-06-09 Ralf Angeli + + * tex-fold.el (TeX-fold-ellipsis): New variable. + (TeX-fold-hide-item): Use it. + + * Makefile.in (DESCEND): Make MSYS happy if $(subdirs) is null, + e.g. when --disable-preview is used. + Make the change more safe with regard to the exit code. + +2005-06-09 David Kastrup + + * doc/wininstall.texi: Change line endings blurb. Write drive: + everywhere in the example strings. + + * doc/preview-readme.texi (Introduction): Some cosmetic changes to + account for the merge. + + * mkinstalldirs: + + * install-sh: Replace `#/bin/sh' with `:' as this should be more + portable when called from a Bourne shell (which is what the + Makefiles do). + +2005-06-08 David Kastrup + + * doc/preview-dtxdoc.pl: Replicate possible CR line endings + faithfully, and don't use multiline strings. + +2005-06-08 Ralf Angeli + + * doc/.cvsignore: Ignore all *.info, *.info-*, and *.pgs files. + + * Makefile.in (preview_enabled): New variable. + (all): Depend on `docs' target. + (.PHONY): Add `docs' target. + (docs): New target. + (install): Depend on `install-docs' instead of `install-info'. + (install-info): Remove. + (install-docs): New target. + + * autogen.sh: Generate preview-latex docs as well. + + * configure.ac: Substitute preview_enabled variable in output + files. + + * doc/.cvsignore: Add relevant preview-latex files. + + * doc/Makefile.in (TEXIFILES): Rename to AUCTEXTEXIFILES. + (PERL, PREVIEWTEXIFILES): New variables. + (all): Now depends on `auctex' and `preview' targets. Move + AUCTeX-specific targets from original to `auctex'. + (install): Now depends on `install-auctex' and `install-preview' + targets. Move AUCTeX-specific targets and content from original + to `install-auctex'. + (.PHONY): Add `auctex', `preview', `install-auctex', and + `install-preview'. + (auctex, install-auctex, preview, install-preview): New targets. + (auctex.dvi, auctex.pdf, auctex.info): Depend on + $(AUCTEXTEXIFILES) instead of $(TEXIFILES). + (preview-latex/index.html, html-docs, preview-dtxdoc.texi) + (preview-latex.dvi, preview-latex.ps, preview-latex.pdf) + (preview-latex.info, ../PROBLEMS): New targets (from + preview/doc/Makefile.in). + (../README, ../TODO, ../FAQ): Create output combined from + respective AUCTeX and preview-latex files. + (clean, maintainer-clean): Cater for preview-latex files. + + * doc/todo.texi (Development): More specific heading for plain + text output. + + * doc/preview-todo.texi: Move here from preview/doc/todo.texi. + + * doc/preview-readme.texi: Move here from preview/doc/readme.texi. + + * doc/preview-problems.texi: Move here from + preview/doc/problems.texi. + + * doc/preview-faq.texi: Moved here from preview/doc/faq.texi. + + * doc/copying.texi, doc/preview-dtxdoc.pl, doc/preview-latex.texi: + Moved here from preview/doc/. + +2005-06-07 David Kastrup + + * tex.el (TeX-regexp-group-count): New function. + (TeX-auto-parse-region): Rewrite to use hashes and to save overuse + of `looking-at'. We really should keep the relevant information + complete in hashes instead of moving them forward and back between + hashes and lists, but at least this change removes most of the + really evil quadratic behavior while keeping the original API. + Yet. + +2005-06-07 Ralf Angeli + + * font-latex.el (font-latex-fontify-sectioning): Doc fix. + + * doc/auctex.texi (Font Locking): Document the nature of the + `color' option for `font-latex-fontify-sectioning'. + +2005-06-06 David Kastrup + + * configure.ac: Remove call of MAKEINFO_CHECK_MACROS: we expect a + recent enough makeinfo version if you want to bootstrap, anyway. + +2005-06-06 Ralf Angeli + + * tex-bar.el (TeX-bar-LaTeX-button-alist) + (menu-strings-buttons-alist): help-echo functions are called with + arguments. + +2005-06-06 David Kastrup + + * doc/Makefile.in (TEXINFOINCLUDES): Remove. + (MAKEINFO_MACROS): Remove. + + * tex-buf.el (TeX-format-filter): Don't let match-data generate + markers. This is a terrible performance hog! + (TeX-format-filter): Actually, we don't need to save any + match-data inside of a filter function with current versions of + Emacs and XEmacs. + +2005-06-05 Ralf Angeli + + * style/scrbase.el, style/scrbook.el, style/scrreprt.el: Use + `sectioning' instead of `title' for sectioning fontification. + + * doc/changes.texi: Mention change of `title' to `sectioning' for + keyword variables. + + * font-latex.el (font-latex-fontify-sectioning) + (font-latex-built-in-keyword-classes) + (font-latex-keyword-matcher): Use `sectioning' instead of `title'. + (font-latex-deactivated-keyword-classes): New variable. + Don't do extra quoting. + (font-latex-make-built-in-keywords): Remove unnecessary `let'. + Check `font-latex-deactivated-keyword-classes' in generated + `font-latex-match-*-make' functions. + + * tex.el (TeX-quote-language-alist): Do not use `alist' widget + because XEmacs 21.4 does not provide it. Do not use a cons cell + for opening and closing quotation marks in order to simplify + structure. + (TeX-quote-language): Describe structure as in + `TeX-quote-language-alist'. + (TeX-insert-quote): Adapt to new structure of `TeX-quote-language' + and `TeX-quote-language-alist'. + + * doc/auctex.texi (European): Describe new structure of + `TeX-quote-language-alist'. + (Font Locking): Use `sectioning' instead of `title'. + Describe deactivation of built-in keyword classes. + + * style/csquotes.el, style/czech.el, style/danish.el, + style/german.el, style/italian.el, style/ngerman.el, + style/slovak.el, style/swedish.el: Reflect new structure of + `TeX-quote-language'. + +2005-06-04 David Kastrup + + * doc/Makefile.in (TEXINFOINCLUDES): macros.texi has moved here + from ../preview/doc + (../INSTALL, ../INSTALL.windows, ../README, ../CHANGES, ../TODO) + (../FAQ): Change dependencies accordingly. + + * configure.ac: Rearrange checks for MAKEINFO. + Export more stuff into preview's configure. Maybe this is better + done with use of caches? + + * autogen.sh: Don't look in preview subdirectory. + + * Makefile.in (configure): Depend on local aclocal.m4 + +2005-06-03 David Kastrup + + * doc/Makefile.in (TEXINFOINCLUDES, TEXIFILES, ../INSTALL) + (../INSTALL.windows, ../README, ../CHANGES, ../TODO, ../FAQ): Move + ../preview/doc/macros.texi to here again. + +2005-06-02 Ralf Angeli + + * tex.el (VirTeX-common-initialization): Explicitely make + `find-file-hooks' buffer-local in XEmacs 21.4 which fails to do + this via `add-hook'. + +2005-06-01 Ralf Angeli + + * latex.el (LaTeX-backward-paragraph): Use catch..throw instead of + an indicator variable. Don't refer to a saved match data. + Check for `TeX-esc', not specific char. + + * style/babel.el ("babel"): Disable font locking of macros not + handled correctly. + +2005-05-30 Ralf Angeli + + * style/babel.el: New file. + + * Makefile.in: Add style/babel.el. + + * doc/changes.texi: Mention babel support. + +2005-05-28 Ralf Angeli + + * tex-buf.el (TeX-next-error): Call `next-error' as fallback. + (TeX-previous-error): New function. + + * tex.el (TeX-mode-map): Remap bindings of `next-error' and + `previous-error' to `TeX-next-error' and `TeX-previous-error' + respectively. + +2005-05-24 Ralf Angeli + + * tex.el (TeX-command-list): Remove chktex comment. + + * doc/auctex.texi (Checking): A user should not (have to) edit + tex.el to switch from lacheck to chktex. + + * font-latex.el (font-latex-make-match-defun) + (font-latex-make-built-in-keywords): Do not byte-compile generated + functions here but at the end of font-latex.el. Prevents + byte-compiler warnings due to possibly undefined functions. + +2005-05-24 David Kastrup + + * configure.ac: Recurse into preview _before_ starting any + AC_SHELL_QUOTIFY business to avoid double quoting. + + * doc/tex-ref.tex (\title{RefTeX (long)}) + (\title{RefTeX (short)}): New columns. One will have to go. + +2005-05-22 David Kastrup + + * tex.el (TeX-PDF-mode): Use the standard minor mode function + instead of redefining it. + (TeX-PDF-mode-parsed): New function replacing the previous extra + functionality in `TeX-PDF-mode'. + (TeX-PDF-mode-on, TeX-PDF-mode-off): Warn in docstring. Use + `TeX-PDF-mode-parsed'. + +2005-05-21 Ralf Angeli + + * doc/install.texi, doc/wininstall.texi: Small corrections. + + * tex-bar.el (TeX-bar-LaTeX-button-alist): Reenable mode-specific + images for View button. + (LaTeX-install-toolbar): Add `toolbarx-refresh' to + `TeX-PDF-mode-hook'. + + * tex.el (TeX-PDF-mode): Run `TeX-PDF-mode-hook'. + +2005-05-21 David Kastrup + + * autogen.sh: Remove argument to preview/autogen.sh + + * doc/install.texi: Integrate the installation instructions for + preview-latex. + +2005-05-20 David Kastrup + + * doc/tex-ref.tex (section{Greek Letters}): Add \Xi. + +2005-05-18 Ikumi Keita + + * style/amsmath.el (LaTeX-label-alist): Add "multline" environment. + + * Makefile.in: + * configure.ac: + * preview/Makefile.in: Change "==" to "=" in the argument of + "test" for Bourne shell compatibility. + +2005-05-19 David Kastrup + + * doc/wininstall.texi: Rearrange to make suitable for standalone + installation including preview-latex. Adapt to a few + changes (like tex-fptex and tex-mik not being in load-path by + default). + +2005-05-19 Ralf Angeli + + * tex-site.el.in (tex-site-unload-hook, TeX-modes): Do not use + `dolist'. Prevents console pop-ups with XEmacsen on Windows. + + * latex.el (LaTeX-fill-move-to-break-point): Check for + `charset-after' to make non-MULE XEmacsen happy. Some + reformatting. + +2005-05-18 David Kastrup + + * latex.el (LaTeX-math-default): Add Xi (reported by Uli + Fahrenberg). + +2005-05-17 David Kastrup + + * Makefile.in (EXTRAFILES): remove. No longer needed. + (auto-loads.el): Undo previous change. Properly group statements. + (install-el): Rewrite condition for some non-Posix shells. + (install-metadata): Rewrite condition for non-Posix. + (tar-ball): Change owner and group to root. This is not portable, + but will be needed only by the maintainers, anyway. + (auto-loads.el): ignore errors also for braindead make. + (install-metadata): Same here. + (clean): Burp if cd doc fails. + (distclean): Same here. + (tar-ball): rewrite for braindead shells. + (tar-ball): make sure doc exists. Why do I bother, actually, the + tarball target is not for public consumption, anyway. + +2005-05-17 Ralf Angeli + + * Makefile.in (auto-loads.el): Don't stop on non-zero exit code. + +2005-05-16 Ralf Angeli + + * tex.el (TeX-transient-master): New variable. + (TeX-master-file): Use it. + + * tex-buf.el (TeX-command-sentinel): Bind `TeX-transient-master'. + +2005-05-14 Ralf Angeli + + * latex.el (LaTeX-babel-hyphen): Doc fix. + (LaTeX-common-initialization): Call `easy-menu-add' as late as + possible. + +2005-05-15 Ikumi Keita + + * Makefile.in (CLEANFILES): Add $(CONTRIBELC) and + $(CONTRIB_MULEELC). + (DISTCLEANFILES): Add auctex.el and auto-loads.el. + (auto-loads.el): Add $(COMPILE_MULE) + +2005-05-14 Ikumi Keita + + * style/amsopn.el: + * style/amsmath.el: Move "mode"-like entries from amsopn.el to + amsmath.el. + + * style/amsmath.el: Edit entries in TeX-add-symbols. + Remove duplicate entry "raisetag". + Add some new entries. + Make arrow macros like "overleftarrows" to take argument. + Remove accents macros like "Hat" because they are obsolate in + amsmath v2. + (LaTeX-item-list): Add "multline*", "matrix", "pmatrix", + "bmatrix", "Bmatrix", "vmatrix" and "Vmatrix" environment. + (LaTeX-label-alist): Remove "aligned" environment. + + * tex-style.el (LaTeX-amsmath-label): Fix doc. + + * latex.el: (LaTeX-math-default): Remove duplicate entry + "nabla". Remove AMS Accents like "Hat" because they are obsolate + in amsmath v2. + (LaTeX-babel-hyphen): Fix doc. + (LaTeX-common-initialization): Edit some entries in TeX-add-symbols. + +2005-05-13 Ralf Angeli + + * doc/changes.texi: Small corrections. + +2005-05-12 Ralf Angeli + + * tex-fold.el (TeX-fold-make-overlay): Calculate priority before + the overlay is instantiated. + + * font-latex.el (font-latex-match-command-with-arguments): Make + XEmacs happy. + + * latex.el (LaTeX-fill-newline-hook): New hook. + (LaTeX-fill-newline): Use it. + + * tex-fold.el (TeX-fold-keymap): Remove deprecated key bindings. + (TeX-fold-region, TeX-fold-item): Use `TeX-fold-item-end'. Do not + compute display string (now done in `TeX-fold-hide-item'). + (TeX-fold-make-overlay): Do not mess with display string anymore. + Thereby remove it from list of function arguments. + (TeX-fold-item-end, TeX-fold-overfull-p) + (TeX-fold-update-at-point): New functions. + (TeX-fold-buffer-substring): Get 'display property instead of + 'TeX-fold-display-string which is not used anymore. + (TeX-fold-hide-item): Computation of display string and faces as + well as provisions for overfull lines are done only in this + function now. The 'display property is now set for XEmacs as + well. + (TeX-fold-mode): Add and remove `TeX-fold-update-at-point' to + `LaTeX-fill-newline-hook' respectively. + + * tex.el (TeX-overlay-prioritize): Fix oversight in XEmacs version + of the function. + +2005-05-11 Reiner Steib + + * Makefile.in (tar-ball): Allow YYYYMMDD-a TAG for snapshots. + +2005-05-11 Ralf Angeli + + * font-latex.el (font-latex-set-syntactic-keywords): Don't freak + out if there is whitespace in front of the \begin/\end pair of + verbatim and verbatim-like environments. + + * latex.el (LaTeX-auto-cleanup): Discard only options which + actually include a "=". + + * Makefile.in: Whitespace cleanup. + + * tex.el (TeX-overlay-prioritize): Fix calculation of priority for + in-between overlay. + (TeX-insert-quote): Insert TeX quote if point is just before math, + comment, or verbatim content. + +2005-05-11 David Kastrup + + * doc/Makefile.in (TEXINFOINCLUDES): Add directory modifier + TEXIPWD. This is ugly. + (html/auctex_toc.html): Use it. + + * Makefile.in (tar-ball): Make tar-ball from exporting, and allow + for TAG being a date specification. + (full-release): Omit release tag check. + +2005-05-10 Ralf Angeli + + * font-latex.el (font-latex-forward-comment): New function. + Prevent infinite loops and repair regexp. + Simplify. Code mainly by David Kastrup. + (font-latex-match-command-with-arguments): Use it. Set + fontification start of optional argument to opening bracket. + Apply restriction of region more globally. Fix handling of + multiple optional arguments. Break if the end of the first + mandatory argument could not be found. + +2005-05-09 Ralf Angeli + + * tex.el (TeX-normal-mode): Ask for master file in 'shared case. + + * font-latex.el (font-latex-built-in-keyword-classes): Doc + fix (typo). + (font-latex-match-command-with-arguments): Set macro end before + any comments. Do not move forward over comments if point is over + the limit. + +2005-05-09 David Kastrup + + * doc/Makefile.in (dist): Use DISTTEXTS instead of explicit list + in this directory. + +2005-05-07 Ralf Angeli + + * tex.el (VirTeX-common-initialization): Remove Emacs 20 + compatibility code. Call `TeX-master-file' during load of shared + files as well. + +2005-05-06 Reiner Steib + + * Makefile.in (DOCFILES): Remove macros.texi to make "tar-ball" + work again. + +2005-05-06 David Kastrup + + * tex.el (TeX-load-style): Fix typo `expand-filename'. + +2005-05-06 Ralf Angeli + + * tex.el (TeX-local-master-p): Limit search. + + * doc/Makefile.in (TEXINFOINCLUDES): New variable used for file + inclusion with makeinfo, texi2dvi and texi2pdf. + (MAKEINFOINC): Remove. + + * doc/intro.texi (Introduction): Make package activation clearer. + +2005-05-05 Ralf Angeli + + * doc/intro.texi (Introduction): Be consistent with the display of + commands in the rest of the manual. + + * tex-fold.el (TeX-fold-mode): Improve doc string and add its + first line to the autoload form. + +2005-05-04 David Kastrup + + * tex-fold.el (TeX-fold-mode): Change autoload cookie because of + XEmacs. + +2005-05-03 David Kastrup + + * auctex.spec: First attempt + +2005-05-02 David Kastrup + + * doc/install.texi: + + * doc/intro.texi: + + * doc/wininstall.texi: overhaul. + + * autogen.sh: adapt to auto.texi scheme. + + * toolbar-x.el (toolbarx-install-toolbar): Remove overlong doc + string from autoload. + + * tex-site.el.in (tex-site-unload-hook): Define to remove the + after-load hooks and load-path entry. + (TeX-modes-set): Use defalias instead of fset to allow unloading. + + * README.CVS: Change instructions. + +2005-05-02 David Kastrup + + * bib-cite.el: Revert 2005-04-19 change: autoloads are not + extracted from CONTRIB packages. + +2005-05-02 David Kastrup + + * Makefile.in (tex-site.el.out, auctex.el, configure) + (Makefile, config.status): Add targets to get reconfiguration if + necessary. + + * style/url.el: + + * style/ltx-base.el: + + * style/units.el: + + * style/alltt.el: + + * style/alphanum.el: + + * style/jura.el: + + * style/emp.el: + + * style/doc.el: + + * style/slides.el: + + * style/csquotes.el: + + * style/listings.el: + + * style/nicefrac.el: + + * style/ltxdoc.el: + + * style/jurabib.el: + + * style/mdwlist.el: + + * style/amstex.el: Change maintainer address. + + * doc/intro.texi (Introduction): Changes, cleanup, corrections. + +2005-05-01 David Kastrup + + * doc/install.texi (Prerequisites): Shorten. + (Prerequisites): Mention that one can survive without texinfo. + (Configure): Add prefix information. + (Configure): Sync with preview-latex docs. Mention the + disable-preview option and preview-specific options. + + * configure.ac: Don't use have-preview macro. Conflicts with the + idea of pregenerated docs. + +2005-05-01 Ralf Angeli + + * font-latex.el (font-latex-make-match-defun) + (font-latex-make-built-in-keywords): Byte-compile generated + functions. + + * Makefile.in (clean, distclean): Descend. + +2005-05-01 David Kastrup + + * tex.el (TeX-load-style): Properly expand file names, and fix a + terrible order-of-arguments bug. + + * configure.ac: fix syntax error with MAKEINFO_MACROS + + * tex-site.el.in (TeX-mode-alist): Use correct file name for + texinfo-mode. + + * Makefile.in (AUCSRC): Move tex-style.el before latex.el + + * configure.ac: Add have-preview to macros if we have preview + enabled. + + * doc/Makefile.in (MAKEINFOINC): Use macros.texi in preview/doc + directory. + (auctex.dvi, auctex.pdf, auctex.info, ../INSTALL) + (../INSTALL.windows, ../README, ../CHANGES, ../TODO, ../FAQ): Use + MAKEINFOINC + + * doc/macros.texi: Remove in lieu of version in preview/doc. + + * doc/intro.texi (Introduction): Reorganize, use more of rawfile. + Mention preview-latex. + + * tex-buf.el: + + * tex-fold.el: + + * tex-font.el: + + * tex-fptex.el: + + * tex-info.el: + + * tex-mik.el: Change maintainer to auctex-devel@gnu.org + +2005-04-30 David Kastrup + + * Makefile.in (install-metadata): Correct version number. + (DESCEND): different quoting. + (install): Same here. + (install-metadata): Don't depend on some exit values. + + * configure.ac: substitute auctexstartfile. Export auctexdir as + `..'. + If installing info into XEmacs package, disable install-info. If + makeinfo is disabled, don't check for macros. + + * Makefile.in (auctexstartfile): autoconf variable. + (subdirs): autoconf variable. + (PACKAGE, PACKAGE_INFO): macros. + (DESCEND): For rebuilding stuff and installing. + (all): descend. + (tex-site.el): don't include autoloads when XEmacs. + (install): descend. + (install-startup): new target + (install-el): don't install tex-site on XEmacs. + (install-el): don't fail on .nosearch not installed. + (install-metadata): new target for XEmacs. + +2005-04-29 Ralf Angeli + + * tex.el: Remove `TeX-doc' for `ams-tex-mode'. + +2005-04-29 David Kastrup + + * auctex.el.in: + + * context.el: + + * latex.el: + + * tex-jp.el: + + * tex-site.el.in: + + * tex.el: + + * tex-info.el: Remove TeX-doc. + + * tex-info.el (Texinfo-mode): Fix type in alias. + + * tex-site.el.in (tex-site): Provides are added by Makefile. + Remove them here. + + * configure.ac: Generate tex-site.el.out instead of tex-site.el. + + * Makefile.in (AUTOLOAD): New form for autoloads from rest of line. + (all): Make depend on tex-site.el + (lisp): Depend on tex-site.el + (tex-site.el, auto-loads.el): New targets. + +2005-04-28 Reiner Steib + + * tex-site.el.in (TeX-mode-alist): Exchange value and doc string. + (TeX-modes-set): Check if mode is fbound. + + * doc/changes.texi: Mention changes in sectioning fontification. + + * doc/auctex.texi (Font Locking): Adjust to new sectioning + fontification. + + * font-latex.el: Rename most *-title* stuff to *-sectioning*. Old + names: font-latex-title-%s-face, font-latex-title-fontify, + font-latex-update-title-faces, font-latex-make-title-faces + font-latex-title-max. New names: font-latex-sectioning-%s-face, + font-latex-fontify-sectioning, font-latex-update-sectioning-faces, + font-latex-make-sectioning-faces, font-latex-sectioning-max. + (font-latex-fontify-sectioning): Fix typos in doc string. + +2005-04-28 Ralf Angeli + + * doc/auctex.texi (Development): New name replacing "ToDo". + + * doc/faq.texi, doc/todo.texi: Fix for raw output. + +2005-04-28 David Kastrup + + * tex-site.el.in (TeX-doc): Use AUCTeX-version. + + * configure.ac: fiddle with relative paths. + + * Makefile.in: several changes to buld structure. + + * auctex.el.in (TeX-doc): Startup file source. + + * doc/wininstall.texi: + + * doc/intro.texi: + + * doc/install.texi: + + * doc/faq.texi: + + * doc/changes.texi: Make the stuff compile cleanly. + + * doc/Makefile.in (DISTTEXTS): list plain text files in parent dir. + (.PHONY): everything needed here. + (auctex.info): don't ignore errors. + (../INSTALL, ../INSTALL.windows, ../README, ../CHANGES) + (../TODO, ../FAQ, disttexts): New targets. + (INSTALL, INSTALL.windows, README, CHANGES, HISTORY, TODO, FAQ): + Remove. + (clean): Don't remove files in this directory. + (maintainer-clean): New target, removes files in parent, too. + + * autogen.sh: Create info files and distribution texts like + preview-latex does, and recurse into preview directory to do the + same. + +2005-04-27 David Kastrup + + * tex.el (TeX-lisp-directory, TeX-auto-global): Don't + `file-name-as-directory'fy. + (TeX-style-global, TeX-auto-local, TeX-style-local) + (TeX-macro-global, TeX-macro-private): Same here. + (TeX-auto-private): Use expand-file-name. + (TeX-style-private): Same here. + (TeX-check-path): Same. + (TeX-load-style): Adapt. + + * tex-buf.el (TeX-check-files): Be robust against non-slashed + directory names. + (TeX-ispell-document): Same here. + + * tex.el (AUC-TeX-version, AUC-TeX-date): Protect + `make-obsolete-variable' against obsolete Emacsen. + +2005-04-28 Masayuki Ataka + + * doc/changes.texi: Mention the fix of Japanese fill problems. + +2005-04-27 David Kastrup + + * configure.ac: Correct bug reporting address and move stuff over + from preview. + * aclocal.m4: remove, we want the one in preview instead. + + * tex-site.el.in (AUCTeX-version, AUCTeX-date): get via configure. + + * tex.el (info): Add "docTeX" to info prefixes. + (AUCTeX-version, AUCTeX-date): removed to tex-site.el. + (AUC-TeX-version, AUC-TeX-date): Use `make-obsolete-variable'. Is + version 11.50 correct? + + * tex-bar.el (LaTeX-install-toolbar): Adjust toolbarx-image-path. + + * autogen.sh: Use aclocal.m4 from preview subdirectory. + + * tex.el (TeX-submit-bug-report): Add `TeX-command-list' to bug + reports. + +2005-04-23 David Kastrup + + * tex-buf.el (TeX-command): Let it accept `TeX-active-master' as + well, by not touching `TeX-current-process-region-p' unless + `TeX-region-file' or `TeX-master-file' have been identified + explicitly. + (TeX-view): Simplify. + (TeX-active-process, TeX-active-buffer): Simplify. + +2005-04-22 David Kastrup + + * tex-buf.el (TeX-help-error): Create the correct log file + name corresponding to the current run. + (TeX-error, TeX-warning): Pass runbuffer info into the routines to + get the correct log file name in all circumstances. + +2005-04-20 David Kastrup + + * configure.ac: don't bother about pre-2.50 autoconf. Check + version more fine-grainedly. + +2005-04-19 David Kastrup + + * texmathp.el (texmathp-match-switch): Add autoload cookie. + + * tex.el (no-doc): Remove: not needed because autoloads are + documented by the cookie extraction process. + (bibtex-mode-hook): Remove. This will be done by an autoload + cookie from latex.el instead. + (BibTeX-auto-store, LaTeX-math-mode, japanese-plain-tex-mode) + (japanese-latex-mode, texinfo-mode, latex-mode, multi-prompt) + (texmathp, texmathp-match-switch): Remove autoloads since this is + done by cookies extracted into auctex.el. + (TeX-region-create, TeX-save-document, TeX-home-buffer) + (TeX-pin-region, TeX-command-region, TeX-command-buffer) + (TeX-command-master, TeX-command, TeX-kill-job) + (TeX-recenter-output-buffer, TeX-next-error) + (TeX-toggle-debug-boxes, TeX-region-file, TeX-current-offset) + (TeX-process-set-variable, TeX-view): Make comment nil instead of + no-doc. + (font-latex-setup, tex-font-setup): Remove autoloads. Should be + done by cookies instead. + (TeX-tex-mode): rename from tex-mode. + (TeX-plain-tex-mode): rename from plain-tex-mode. + (ams-tex-mode): Change autoload cookie. + + * tex-jp.el (japanese-plain-tex-mode, japanese-latex-mode): Change + autoload cookies. + + * tex-font.el (tex-font-setup): Add autoload cookie. + + * tex-fold.el (TeX-fold-mode, tex-fold-mode): Add autoload + cookies. + + * multi-prompt.el (multi-prompt): Add autoload cookie. + + * latex.el (auto-mode-alist): Add .drv to latex-mode. + (TeX-latex-mode): Changed name from latex-mode. + (TeX-doctex-mode): Same here for doctex-mode. Explicitly set + major-mode to doctex-mode: we don't want different modes. + + * tex-info.el (texinfo): Alias texinfo-mode to Texinfo-mode for + symmetry. + (Texinfo-mode): Autoload. + + * context.el (ConTeXt-mode, context-mode): Add definitions and + aliases and autoload cookies. + + * bib-cite.el: Remove autoload from instructions. + + * toolbar-x.el (toolbarx-image-path): New variable. + (toolbarx-make-string-from-symbol) + (toolbarx-make-symbol-from-string, toolbarx-good-option-list-p) + (toolbarx-separate-options, toolbarx-merge-props) + (toolbarx-make-command, toolbarx-emacs-mount-popup-menu) + (toolbarx-xemacs-mount-popup-menu, toolbarx-mount-popup-menu) + (toolbarx-option-value, toolbarx-eval-function-or-symbol) + (toolbarx-test-image-type, toolbarx-test-button-type) + (toolbarx-test-any-type, toolbarx-test-string-or-nil) + (toolbarx-test-toolbar-type, toolbarx-test-dropdown-type) + (toolbarx-test-symbol, toolbarx-test-dropdown-default) + (toolbarx-test-dropdown-save) + (toolbarx-process-group-without-insert, toolbarx-process-group) + (toolbarx-process-symbol, toolbarx-process-dropdown-group) + (toolbarx-find-image, toolbarx-emacs-add-button) + (toolbarx-emacs-refresh-process-button-or-insert-list) + (toolbarx-emacs-refresh, toolbarx-xemacs-image-properties) + (toolbarx-xemacs-button-properties, toolbarx-xemacs-refresh): + Remove autoload cookies. + (toolbarx-find-image): Use `toolbarx-image-path'. + +2005-04-26 Reiner Steib + + * font-latex.el (font-latex-update-title-faces): Remove unused + variable. Don't call when loading the file. + (font-latex-title-fontify): Document that faces set outside of + customize might be modified. + (font-latex-make-title-faces): Set height or size so that + customize won't complain. + +2005-04-24 Ralf Angeli + + * tex-buf.el (TeX-interactive-goto-prompt): New function. + (TeX-run-interactive): Use it instead of setting + `comint-scroll-to-bottom-on-output'. Use `add-hook'. + +2005-04-23 Ralf Angeli + + * font-latex.el (font-latex-update-title-faces): Do not touch + customized faces. + (font-latex-title-fontify): Use `custom-initialize-default'. + (font-latex-make-title-faces): Check for value of `saved-face' + property for determining face customization. + + * tex.el (TeX-find-macro-boundaries): Reimplement. Now handles + \foo{\bar}{ba-!-z} case correctly. + (TeX-find-macro-start-helper): Remove. + +2005-04-22 Reiner Steib + + * font-latex.el (font-latex-make-title-faces): Define the face, + don't set size. Set parent/inherit conditionally. + (font-latex-update-title-faces): New function. + (font-latex-title-fontify): Add :initialize and :set. Using + `font-latex-update-title-faces' allows changing the height within + an Emacs session. + (font-latex-title-5-face): Renamed from title-4-face. + (font-latex-built-in-keyword-classes): Use title-0 and title-5 + faces. + +2005-04-22 Ralf Angeli + + * tex-buf.el (TeX-run-interactive): Make output buffer scroll. + +2005-04-18 Ralf Angeli + + * tex-fold.el (TeX-fold-region): Get rid of \_> for matching + macros. It prevents macros immediately followed by numbers from + being found. + +2005-04-17 Masayuki Ataka + + * style/amsmath.el (LaTeX-item-equation): just-one-space before + `\\' at the end of line. + +2005-04-15 Ralf Angeli + + * style/harvard.el ("harvard"): Activate harvard citation format + in RefTeX. + +2005-04-14 Ralf Angeli + + * tex-fold.el (TeX-fold-force-fontify): New variable. + (TeX-fold-buffer): Use it. Make sure the buffer is fontified + before folding is done. + + * doc/auctex.texi (Folding): Mention `TeX-fold-force-fontify'. + + * doc/changes.texi: Mention `TeX-fold-force-fontify'. + +2005-04-14 Ikumi Keita + + * style/amsmath.el: Fix comment. + ("amsmath"): Removed duplicate settings of "alignat*" and + "xalignat*" from LaTeX-add-environments. Add "xalignat", + "xalignat*", and "xxalignat" to LaTeX-item-list. + (LaTeX-amsmath-env-alignat): Do not ask label if the tail of ENV + is "*". + +2005-04-14 Masayuki Ataka + + * latex.el (LaTeX-fill-move-to-break-point): Refactoring. Set + third argument of re-search-backward to 'move instead of using + skip-chars-backward. + +2005-04-13 Ralf Angeli + + * latex.el (LaTeX-math-abbrev-prefix): Offer only string type for + customization. Add proper :initialize and :set functions to allow + the value to be changed without having to restart Emacs. + + * doc/auctex.texi (Mathematics): Document only the string-nature + of `LaTeX-math-abbrev-prefix'. + +2005-04-12 Ralf Angeli + + * latex.el (LaTeX-math-abbrev-prefix): Can now be a string to be + used with `kbd'. + (LaTeX-math-abbrev-prefix): New function. + (LaTeX-math-keymap, LaTeX-math-mode): Use it. + + * doc/auctex.texi (Mathematics): Explain + `LaTeX-math-abbrev-prefix' more verbosely. + +2005-04-12 Reiner Steib + + * tex-site.el.in (TeX-lisp-directory): Avoid open-parenthesis at + beginning of a line. + + * tex-style.el (LaTeX-beamer-inner-themes) + (LaTeX-beamer-outer-themes, LaTeX-beamer-color-themes) + (LaTeX-beamer-font-themes): New variables for style/beamer.el. + + * style/beamer.el (LaTeX-arg-beamer-inner-theme) + (LaTeX-arg-beamer-outer-theme, LaTeX-arg-beamer-color-theme) + (LaTeX-arg-beamer-font-theme): New functions. + +2005-04-10 Ralf Angeli + + * tex.el (TeX-parse-argument): Another stab at fixing this + function. The last change from 2005-03-23 broke the insertion of + macros like \footnote with a marked region. This is pure + guesswork. *sigh* + + * latex.el (LaTeX-section-heading): Shorten prompt. + (LaTeX-section-title): Simplify. Shorten prompt. + (LaTeX-auto-minimal-regexp-list): "\" and "." are not special in a + complemented character alternative. + (LaTeX-math-keymap): Define key for prefix insertion inside + defvar. + (math): Use `LaTeX-math-keymap' only. + (LaTeX-math-mode-menu): Use `LaTeX-math-mode-map' (defined by + `define-minor-mode'). + (LaTeX-math-mode): Assign `LaTeX-math-keymap' to + `LaTeX-math-abbrev-prefix'. Use `LaTeX-math-mode-menu' with + `LaTeX-math-mode-map'. + (LaTeX-math-insert-prefix): Remove. + +2005-04-08 Ralf Angeli + + * font-latex.el (font-latex-match-command-with-arguments): Skip + over comments as well as whitespace. + + * tex.el (TeX-output-extension): Default to nil. + +2005-04-07 Ralf Angeli + + * tex.el (TeX-output-extension): Set correct default depending on + the value of `TeX-PDF-mode'. + (TeX-output-extension): Revert. + (VirTeX-common-initialization): Set `TeX-output-extension' here. + +2005-04-05 Christian Schlauer + + * tex.el (TeX-submit-bug-report): Fix typo in doc string, fill doc + string. + + * latex.el: Change maintainer address. + (LaTeX-section): Fix typo in doc string. Remove code that almost + always inserts a new line. + (LaTeX-section-section): Fix doc string. Add code that + conditionally inserts a new line (which also bundles the + modification of the buffer in this function). + (LaTeX-section-hook): Fix typo in doc string. + (LaTeX-default-position): Use `do not' instead of `don't' in doc + string and customize value menu (as in `LaTeX-float). + (LaTeX-item-list): Fix typo in doc string. + +2005-04-05 Ralf Angeli + + * tex.el (TeX-PDF-mode, TeX-interactive-mode, TeX-Omega-mode): Set + customization group. + + * latex.el (LaTeX-math-default): New entry and key for \colon. + New "Punctuation" category. Get rid of some entries in + "delimiters" category already defined in "Arrows". Get rid of + "delimiters" category and merge entries defined there into + "Delimiters.". + (LaTeX-math-menu): Remove "delimiters" and add "Punctuation". + +2005-04-04 Ralf Angeli + + * font-latex.el (font-latex-make-user-keywords): Make XEmacs + happy. + + * doc/changes.texi: Fix @xref. + + * doc/auctex.texi (Quotes): Fix @xref. + (European): Be more verbose. + + * tex-info.el (texinfo-mode): Get rid of hyphens in prompts. + Add @xref command. + + * latex.el (LaTeX-babel-hyphen, LaTeX-babel-hyphen-after-hyphen): + Doc fix. + (LaTeX-babel-hyphen-language-alist): Use t as default value for + insertion behavior. + + * tex.el (TeX-quote-language-alist): Use t as default value for + insertion behavior. + + * doc/auctex.texi: New tag line. + (Quotes): Replace description about (n)german.sty-specific quote + insertion by a generalized one and refer to section about European + languages. + (European): Add subsections. Add information about new + functionality and customization options for language-specific + quote and hyphen insertion. + (Folding): Add information about help echo. + (Viewing): Add subsection heading. A single one does not really + make sense. + + * doc/changes.texi: Add some news. + +2005-04-03 Ralf Angeli + + * tex-fold.el (TeX-fold-help-echo-max-length): New variable. + Add :type and :group specs. + (TeX-fold-make-help-echo): New function. + No space before ellipsis. + Okay, color does not look too bad. + (TeX-fold-make-overlay): Use it. + Remove call to `TeX-fold-make-help-echo' again as we have to + recompute the string anyway. + (TeX-fold-hide-item): Set help-echo property. + Recompute help echo string. + (TeX-fold-show-item): Invalidate help-echo property. + +2005-04-02 Ralf Angeli + + * doc/faq.texi (Frequently Asked Questions About AUCTeX): Minor + enhancements in wording. + + * tex.el (TeX-open-quote, TeX-close-quote) + (TeX-quote-after-quote): Doc fix. + (TeX-quote-language-alist, TeX-quote-language): New variables. + (TeX-insert-quote): Use them. + (TeX-submit-bug-report): Doc fix. + + * latex.el (LaTeX-mode-map): Map "-" to + `LaTeX-babel-insert-hyphen'. + (LaTeX-babel-hyphen, LaTeX-babel-hyphen-after-hyphen) + (LaTeX-babel-hyphen-language-alist, LaTeX-babel-hyphen-language): + New variables. (Moved from tex-style.el and style/german.el + respectively and generalized.) + (LaTeX-babel-insert-hyphen): New function. (Moved from + syle/german.el). + + * tex-style.el (LaTeX-csquotes-open-quote) + (LaTeX-csquotes-close-quote): Doc fix. + (LaTeX-german-quote-after-quote, LaTeX-german-open-quote) + (LaTeX-german-close-quote, LaTeX-german-hyphen) + (LaTeX-german-hyphen-after-hyphen): Remove. + + * style/csquotes.el ("csquotes"): Use `TeX-quote-language'. + + * style/italian.el (LaTeX-italian-open-quote) + (LaTeX-italian-close-quote): Remove. + ("italian"): Use `TeX-quote-language'. + + * style/ngerman.el (LaTeX-german-quote-after-quote) + (LaTeX-german-open-quote, LaTeX-german-close-quote): Remove. + ("ngerman"): Use `TeX-quote-language' and + `LaTeX-babel-hyphen-language'. + + * style/german.el: Move definition of "-" key to latex.el. + (LaTeX-german-hyphen-internal): Move to latex.el as + `LaTeX-babel-hyphen-language'. + (LaTeX-german-insert-hyphen): Move to latex.el as + `LaTeX-babel-insert-hyphen'. + ("german"): Use `TeX-quote-language' and + `LaTeX-babel-hyphen-language'. + + * style/czech.el, style/danish.el, style/slovak.el, + style/swedish.el: Use `TeX-quote-language' and + `LaTeX-babel-hyphen-language' where appropriate. + +2005-03-31 Ralf Angeli + + * doc/faq.texi (Frequently Asked Questions About AUCTeX): Add + general information about how to deal with bugs. Adapt version + numbers for Emacs. + +2005-03-31 Masayuki Ataka + + * latex.el (LaTeX-fill-move-to-break-point): Skip non-space chars + backward if re-search-backward does not find white spaces or + LaTeX-nospace-between-char-regexp. Add mule check before line + break between 2-byte and 1-byte chars. + Reported by Ikumi Keita . + Do not move point if re-search-backward didn't find proper line + break point. + +2005-03-30 Ralf Angeli + + * tex.el (TeX-submit-bug-report): Insert AUCTeX version into mail + subject. + +2005-03-30 Ikumi Keita + + * latex.el (LaTeX-env-label): Remove `TeX-toggle-off-input-method' + because `TeX-math-input-method-off' is already called in + `LaTeX-insert-environment'. + +2005-03-29 Ralf Angeli + + * tex-style.el (LaTeX-german-hyphen): Doc fix. Fix :type. + + * style/german.el (LaTeX-german-insert-hyphen): Do not add "= + repeatedly but stick to - after the first swapping. + +2005-03-28 Ralf Angeli + + * style/german.el (LaTeX-mode-map): Bind `-' to + `LaTeX-german-insert-hyphen'. + (LaTeX-german-quote-after-quote, LaTeX-german-open-quote) + (LaTeX-german-close-quote): Move to tex-style.el. + (LaTeX-german-hyphen-internal): New variable. + (LaTeX-german-insert-hyphen): New function. + ("german"): Set `LaTeX-german-hyphen-internal'. + + * tex-style.el (LaTeX-german-quote-after-quote) + (LaTeX-german-open-quote, LaTeX-german-close-quote): Move here + from style/german.el. + (LaTeX-german-hyphen, LaTeX-german-hyphen-after-hyphen): New + variables. + + * doc/auctex.texi (Font Locking): References are now fontified + with `font-lock-constant-face' because `font-lock-reference-face' + is deprecated. + + * font-latex.el: Change maintainer address. + (font-latex-quotes, font-latex-make-built-in-keywords) + (font-latex-user-keyword-classes): Doc fix. (Mention that setting + the variable directly does not take effect.) + (font-latex-make-match-defun, font-latex-make-built-in-keywords) + (font-latex-make-user-keywords): Doc strings of generated + variables and functions now refer to the creating functions. + (font-latex-warning-face, font-latex-sedate-face) + (font-latex-italic-face, font-latex-bold-face) + (font-latex-math-face, font-latex-string-face) + (font-latex-verbatim-face, font-latex-superscript-face) + (font-latex-subscript-face, font-latex-title-1-face) + (font-latex-title-2-face, font-latex-title-3-face) + (font-latex-title-4-face): Remove these face variables. + (font-latex-title-fontify): Remove :set function. + (font-latex-built-in-keyword-classes): Use + `font-lock-constant-face' instead of `font-lock-reference-face' + because the latter is deprecated in Emacs (and only an alias for + the former which will not work if the quoted face name is used). + Use new `title' specifier as type of keyword for the titling + keywords and mention it in the doc string. + (font-latex-keyword-matcher): Quote face specifiers in any case. + (font-latex-make-user-keywords) + (font-latex-syntactic-face-function): Quote face specifiers. + (font-latex-setup): Remove obsolete method for fontifying strings + or math respectively. + +2005-03-28 David Kastrup + + * tex.el: Change maintainer address. + (TeX-submit-bug-report): Change bug reporting address. + + * doc/wininstall.texi: Change contact info. + + * doc/intro.texi (Introduction): Change contact info. + + * doc/auctex.texi (top): Change contact info. + +2005-03-27 Ralf Angeli + + * font-latex.el (font-latex-match-simple-command): New function. + (font-latex-make-user-keywords): Use it instead of specifying the + regexp directly. Prevents stuff like "\foo\foo\foo\foo" from + being fontified like a zebra. + (font-latex-match-command-with-arguments): Check for limit when + looking at optional and mandatory arguments. Prevents an infinite + loop in XEmacs when typing the "n" of \begin in "\begi\n[foo]". + (font-latex-user-keyword-classes): Specify a default value for the + list. + +2005-03-24 Ralf Angeli + + * Makefile.in (AUCELC): Derive from AUCSRC. + (STYLEELC, CLEANFILES, DISTCLEANFILES, DISTTEXTS): New variables. + (some): Use STYLEELC. + (clean): Use CLEANFILES. + (distclean): Use CLEANFILES and DISTCLEANFILES. Call distclean + target in doc directory. + (maintainer-clean, extraclean): New targets. + +2005-03-23 Ralf Angeli + + * tex.el (TeX-parse-argument): Deactivate mark after insertion of + first mandatory argument. Fixes insertion of braces at wrong + places for multi-argument macros like \parbox and \multicolumn. + See also change from 2004-12-01 which obviously did not suffice. + +2005-03-22 Masayuki Ataka + + * latex.el (LaTeX-fill-move-to-break-point): Prevent line break + between 2-byte char an 1 byte-char. + + * latex.el (LaTeX-fill-move-to-break-point): Do not skip + LaTeX-nospace-between-char-regexp. + Reported by Ikumi Keita . + +2005-03-19 Ralf Angeli + + * tex-fold.el (TeX-fold-buffer-substring): Better safe than sorry. + +2005-03-18 Ralf Angeli + + * font-latex.el (font-latex-make-title-faces): According to + upstream `font-size' is likely to vanish. So back to + `face-height' but scale it down a bit to better match actual font + size. + +2005-03-17 David Kastrup + + * tex.el (TeX-overlay-priority-step): New variable, previously in + tex-fold.el under different name. + (TeX-overlay-prioritize): new function in Emacs and XEmacs + variants. + + * tex-fold.el (TeX-fold-make-overlay): Use `TeX-overlay-prioritize'. + (TeX-fold-priority-step, TeX-fold-prioritize): Renamed and moved + to tex.el. + + * tex-buf.el (TeX-region-create): Transfer + `buffer-file-coding-system' from master buffer to region. + +2005-03-17 Ralf Angeli + + * latex.el (LaTeX-section-list-add-locally) + (LaTeX-largest-level-set): New functions. + (LaTeX-add-environments): Invalidate menu variables instead of + setting `LaTeX-menu-changed'. + (LaTeX-section-menu-entry): Do not enable symbol. + (LaTeX-section-menu-create, LaTeX-menu-changed) + (LaTeX-menu-update): Remove. + (LaTeX-section-menu, LaTeX-environment-menu) + (LaTeX-environment-modify-menu): New variables. + (LaTeX-section-menu-filter, LaTeX-environment-menu-filter): New + functions. + (LaTeX-mode-menu): Use them. + (LaTeX-common-initialization): Move setting of + `LaTeX-largest-level' upwards because it is needed when the menu + is being generated. Do not use `activate-menubar-hook' and + `activate-popup-menu-hook' anymore. + + * tex.el (VirTeX-common-initialization): Force update of style + information. + + * style/scrreprt.el, style/scrbook.el, style/scrbase.el, + style/scrartcl.el, style/report.el, style/jsbook.el, + style/jsarticle.el, style/jreport.el, style/jbook.el, + style/jarticle.el, style/j-report.el, style/j-book.el, + style/j-article.el, style/book.el, style/article.el, + style/alphanum.el: Use new functions for setting + `LaTeX-largest-level' or `LaTeX-section-list' respectively. + +2005-03-16 Ikumi Keita + + * latex.el (LaTeX-fill-move-to-break-point): Limit the max number + of characters to look backward for `TeX-looking-at-backward'. + +2005-03-16 Masayuki Ataka + + * latex.el (LaTeX-nospace-between-char-regexp): Changed from + defcustom to defvar. + +2005-03-15 Ralf Angeli + + * font-latex.el (font-latex-make-title-faces): Deal with the case + that `font-size' returns a number. Or nil. + + * tex.el (TeX-view-style): Remove support for "a4" and "a5". + +2005-03-14 David Kastrup + + * latex.el (docTeX-indent-inner-fixed) + (LaTeX-indent-calculate-last): Add support for macrocode*, macro*, + environment and environment* environment. + +2005-03-14 Ralf Angeli + + * context.el (ConTeXt-indent-item-re): Do not treat + \setup... commands like \item. + +2005-03-14 Masayuki Ataka + + * tex-fold.el (TeX-fold-prioritize): Cater for preview-latex. + +2005-03-11 Ralf Angeli + + * latex.el (LaTeX-paragraph-commands-regexp-make): New function. + (LaTeX-paragraph-commands-regexp, LaTeX-paragraph-commands): Use + it. + (LaTeX-paragraph-commands-add-locally): New function. + + * style/beamer.el ("beamer"): Use it. Newline not needed anymore + because \frametitle is now a paragraph command and will not be + filled together with the other content. + + * context.el (ConTeXt-find-indent): Correct indentation of + environments. + + * latex.el (LaTeX-fill-region-as-para-do): Use + `remove-text-properties' instead of + `remove-list-of-text-properties' because the latter is not + available in Emacs 21. + +2005-03-10 Ralf Angeli + + * style/beamer.el ("beamer"): Find the correct start of + environment in case a frame environment is inserted with point on + a non-empty line. Insert an additional newline to set off title + and content. + + * font-latex.el (font-latex-make-title-faces): Use `font-size' + instead of `face-height' to determine the font size because the + latter (as the sum of the face's ascent and descent) returns + inappropriate values. Suggested by Steven E. Harris + . + +2005-03-09 Ralf Angeli + + * tex.el (TeX-comment-prefix): New function. + + * latex.el (LaTeX-current-environment, LaTeX-find-matching-end) + (LaTeX-find-matching-begin): Rather than using the start or end of + a commented region as a boundary, look further for other commented + regions with the same prefix possibly containing an environment + start or end respectively. + (LaTeX-mode-menu): An empty help string is useless and may lead to + an empty tooltip. + +2005-03-09 Masayuki Ataka + + * style/amsmath.el ("amsmath"): Fixed typo: "dotssc" -> "dotsc". + Added symbol "dots" and "dotsi". + + * latex.el (LaTeX-insert-environment): Call + `TeX-math-input-method-off'. + * style/amsmath.el (LaTeX-amsmath-env-alignat) + (LaTeX-amsmath-env-aligned): Do not call + `TeX-math-input-method-off' from here. + Reported by Ikumi Keita . + +2005-03-08 Ralf Angeli + + * latex.el (LaTeX-current-environment): Doc fix. + + * font-latex.el (font-latex-make-built-in-keywords): Make doc + string of `font-latex-match-*-keywords' more clear. + +2005-03-08 Masayuki Ataka + + * tex.el (TeX-toggle-off-input-method): Turn off input method iff + `current-input-method' starts one of "chinese", "japanese", and + "korean". Use `inactivate-input-method' instead of + `toggle-input-method'. Doc fix. + Suggested by Ikumi Keita . + +2005-03-07 Reiner Steib + + * tex-style.el: New file. defcustoms for style/*.el should go + here. + + * latex.el (LaTeX-includegraphics-extensions) + (LaTeX-includegraphics-options-alist) + (LaTeX-includegraphics-strip-extension-flag) + (LaTeX-includegraphics-read-file, LaTeX-beamer-themes): Moved to + tex-style.el. + (tex-style): Require. + + * style/amsmath.el (LaTeX-amsmath-label): Moved to tex-style.el. + + * style/beamer.el: Remove install instructions. Won't work + properly outside current AUCTeX anymore. Removed CVS Id. + (LaTeX-beamer-section-labels-flag) + (LaTeX-beamer-item-overlay-flag): Moved to tex-style.el. + + * style/csquotes.el (LaTeX-csquotes-quote-after-quote) + (LaTeX-csquotes-open-quote, LaTeX-csquotes-close-quote): Moved to + tex-style.el. + + * style/emp.el (LaTeX-write18-enabled-p): Moved to tex-style.el. + + * Makefile.in (AUCSRC): Added tex-style.el. + +2005-03-07 Masayuki Ataka + + * tex-jp.el (japanese-TeX-command-list) + (japanese-TeX-error-messages): Change from defvar to defcustom. + +2005-03-06 Masayuki Ataka + + * doc/auctex.texi (I18n): Comment fix. + + * latex.el: Set fill-space nonsticky. + (LaTeX-fill-delete-newlines): Check text property 'fill-space. + +2005-03-04 David Kastrup + + * Organizational: preview-latex development has been moved from + into the + AUCTeX CVS Archive on + in subdirectory + auctex/preview. + +2005-03-04 Reiner Steib + + * doc/auctex.texi (I18n): Try to make text more clear. + + * style/beamer.el (LaTeX-beamer-search-themes) + (LaTeX-arg-beamer-theme): New functions adding completion for + \usetheme. + + * latex.el (LaTeX-beamer-themes): New variable. + +2005-03-05 Ikumi Keita (tiny change) + + * tex-jp.el (japanese-TeX-command-list): Doc fix. + +2005-03-03 Ikumi Keita + + * tex.el (TeX-macro-global-internal): New function. + (TeX-macro-global): Use it. + (TeX-kpathsea-format-alist): Removed duplicate line. + + * tex-jp.el: Use `TeX-macro-global-internal' and append path for + Japanese TeX into TeX-macro-global. Do not override + `TeX-expand-list', no more. + (japanese-TeX-command-list): Add :help string. Change + `TeX-run-LaTeX' to `TeX-run-TeX'. + (japanese-TeX-command-default, japanese-LaTeX-command-default): + Quote symbol TeX-command in doc string. + +2005-03-03 Thomas Baumann + + * style/beamer.el (LaTeX-beamer-item-overlay-flag): New variable. + Used for controling the insertion of overlays in + `LaTeX-item-beamer'. + (LaTeX-item-beamer): Use it. + +2005-03-02 Reiner Steib + + * doc/auctex.texi (I18n): Fix some markup errors. + +2005-03-02 Ralf Angeli + + * font-latex.el (font-latex-make-title-faces) + (font-latex-title-4-face): Use yellow on terminals with dark + background and blue4 on terminals with light background. + +2005-03-02 Masayuki Ataka + + * doc/auctex.texi (Floats): Document `LaTeX-top-caption-list'. + +2005-03-01 Masayuki Ataka + + * doc/auctex.texi (I18n): Revised. + +2005-02-28 Masayuki Ataka + + * tex-jp.el (TeX-japanese-process-input-coding-system) + (TeX-japanese-process-output-coding-system): Fix comment. + +2005-02-27 Masayuki Ataka + + * latex.el (LaTeX-fill-move-to-break-point): Cater for kinsoku, + especially for Japanese. + +2005-02-24 Ralf Angeli + + * latex.el (LaTeX-common-initialization): Update LaTeX menu when a + popup menu in XEmacs is opened. + +2005-02-23 Ralf Angeli + + * bib-cite.el: Some doc fixes in the commentary section. + +2005-02-23 Ikumi Keita (tiny change) + + * doc/auctex.texi (I18n): Removed FIXME comment. + +2005-02-22 Ikumi Keita (tiny change) + + * latex.el (LaTeX-fill-delete-newlines): Call search-forward, + which is copied from `fill-delete-newlines', with BOUND TO. + +2005-02-21 Reiner Steib + + * doc/auctex.texi (Japanese): Fix bogus macro. + +2005-02-21 Masayuki Ataka + + * doc/auctex.texi (Japanese): Doc fix. + Suggested by Ikumi Keita . + +2005-02-20 Ralf Angeli + + * tex-fold.el (TeX-fold-macro-nth-arg): Doc fix. + Do not skip more than one closing brace backwards. + Use `TeX-fold-buffer-substring'. + (TeX-fold-prioritize): Doc fix. + (TeX-fold-buffer-substring): New function. + Do not use `dolist' which uses an unwanted local binding of the + list variable. + +2005-02-19 Ralf Angeli + + * latex.el (LaTeX-current-environment): New variable. + (LaTeX-indent-calculate, LaTeX-fill-region-as-para-do): Use it. + Improves filling performace by caching current environment. + +2005-02-19 Masayuki Ataka + + * tex-jp.el (TeX-japanese-process-input-coding-system): Remove + garbage code. + Reported by Ikumi Keita . + + * latex.el (LaTeX-nospace-between-char-regexp): New variable. + (LaTeX-fill-delete-newlines): Use it. + (LaTeX-fill-move-to-break-point): Ditto. Fix comment. + +2005-02-18 Masayuki Ataka + + * latex.el (LaTeX-fill-delete-newlines): New function. + (LaTeX-fill-region-as-para-do): Use it. + +2005-02-16 Ralf Angeli + + * font-latex.el (font-latex-set-syntactic-keywords): Give an + escape char at the end of a verbatim construct punctuation syntax. + Prevents wrong fontification of stuff like "\verb|foo\|". + +2005-02-16 Masayuki Ataka + + * tex-jp.el (TeX-after-start-process-function): Removed code for + XEmacs. `set-process-coding-system' is available in XEmacs 21.1. + (TeX-japanese-process-input-coding-system) + (TeX-japanese-process-output-coding-system): Change from defvar to + defcustom. Use `default-process-coding-system'; Old XEmacs + doesn't have the variable? + Suggested by Ikumi Keita . + +2005-02-15 Masayuki Ataka + + * latex.el (LaTeX-fill-move-to-break-point): Simplify. + (LaTeX-fill-region-as-para-do): Cater for the situation where + there is a line ending with Japanese characters and the following + line starts with a non-Japanese character. + +2005-02-14 David Kastrup + + * aclocal.m4 (AC_LISPIFY_DIR): new function. + (AUCTEX_AUTO_DIR): Use it. + + * tex-site.el.in (TeX-lisp-directory, TeX-auto-global): put + autoconfed expression on a line of its own. + +2005-02-14 Masayuki Ataka + + * latex.el (LaTeX-fill-region-as-para-do): Get rid of a space at + eol if the last character of the line is Japanese (e.g. short + Japanese lines). + (LaTeX-fill-move-to-break-point): Do not skip characters if the + text is written in Japanese (e.g. long Japanese line). + Reported by Ikumi Keita . + +2005-02-14 Ikumi Keita (tiny change) + + * tex-jp.el (LaTeX-auto-regexp-list): Use + `LaTeX-auto-class-regexp-list'. + +2005-02-13 Ralf Angeli + + * tex-info.el (Texinfo-environment, Texinfo-modify-environment): + New functions. + (Texinfo-insert-environment): Not interactive anymore as it is now + called by `Texinfo-environment'. + (Texinfo-mode-map): `C-c C-e' now calls `Texinfo-environment'. + +2005-02-12 Masayuki Ataka + + * tex.el (TeX-add-local-master): Insert "japanese-" before mode + name if buffer local variable `japanese-TeX-mode' is non-nil. + Suggested by Ikumi Keita . + (japanese-slitex-mode): Removed obsolete autoload of slitex. + + * doc/auctex.texi (Japanese): Doc fix to follow the latest + tex-jp.el. + +2005-02-12 Ralf Angeli + + * tex.el (TeX-find-macro-boundaries): Return an alist instead of a + list. + (TeX-find-macro-end): With `TeX-find-macro-boundaries' returning + an alist `cdr' is now sufficient. + (TeX-find-macro-end-helper): Save match data. + (TeX-font-replace-macro): Use `TeX-find-macro-end' instead of + `forward-sexp'. Fixes errors e.g. when trying to remove the font + spec of a string like "\textbf{(}". + +2005-02-11 Ralf Angeli + + * latex.el (LaTeX-env-figure): Make function aware of active + selections. There are still some indentation issues left. + + * style/epsf.el ("epsf"): Do not add epsffig environment. Fixes + error if latex.el(c) is not loaded. + (LaTeX-env-epsffigure): Remove. + +2005-02-11 David Kastrup + + * tex-site.el.in (TeX-lisp-directory): Use `@lispauctexdir' + instead of `"@auctexdir@"' and `@lispautodir' instead of + `"@auctexdir_expanded"'. + + * configure.ac (lispauctexdir): create version of `$(auctexdir)' + that is Lisp-quoted, not shell-quoted. + (lispautodir): Similarly. + + * doc/Makefile.in (prefix): Append $(null) to some assignments to + save quoted backslashes at line ends. + + * Makefile.in (prefix): Append $(null) to some variable + assignments to let quoted backslashes at their end remain quoted. + (auctexdir): Get from configure. + +2005-02-10 Masayuki Ataka + + * tex-jp.el: Fix bug that once japanese-plain-tex-mode entered, + plain-tex-mode do as japanese-plain-tex-mode. + Reported by Ikumi Keita . + (japanese-TeX-mode): Doc fix. Make variable buffer local and + permanent-local. + (japanese-plain-tex-mode-initialization) + (japanese-latex-mode-initialization): Do not initialize + japanese-TeX-mode. Use `when' instead of `if'. + +2005-02-09 Peter S Galbraith + + * bib-cite.el (bib-master-file): Apply patch from Peter Heslin. + TeX-master can now have symbol values (other than t or nil). + +2005-02-09 Masayuki Ataka + + * tex-jp.el (LaTeX-auto-regexp-list): Removed `usepackage' because + it is defined in `LaTeX-auto-minimal-regexp-list'. + (plain-TeX-auto-regexp-list): Fix regexp; Use `\\|' instead of `|'. + Fill lines in the same way in tex.el. + (TeX-japanese-process-input-coding-system) + (TeX-japanese-process-output-coding-system): Use if-statement in + defvar instead of outside of defvar. Change default value of FSF + Emacs to 'euc-jp. + (TeX-after-start-process-function): Add code for FSF Emacs. + +2005-02-08 Masayuki Ataka + + * style/alphanum.el: Added `Local Variables'. + Suggested by Ikumi Keita . + + * font-latex.el: Fix typo in `Local Variables'. + Reported by Ikumi Keita . + +2005-02-07 Reiner Steib + + * doc/faq.texi (Frequently Asked Questions About AUCTeX): Fix typo + in previous commit. + +2005-02-07 Masayuki Ataka + + * style/jarticle.el ("jarticle"): Use `LaTeX-section-level'. + +2005-02-07 Ralf Angeli + + * latex.el (LaTeX-fill-code-comment): Compute the end of the + region to be filled _after_ indentation happened. + +2005-02-07 David Kastrup + + * doc/faq.texi (Frequently Asked Questions About AUCTeX): Be quite + more verbose about Emacs/XEmacs and versions. + +2005-02-04 David Kastrup + + * 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 + + * RELEASE: Some more Emacspeak blurb. + +2005-02-04 Ralf Angeli + + * RELEASE: Make description of changes clearer. + +2005-02-04 David Kastrup + + * RELEASE (Warning): warn about XEmacs 21.4.16. + +2005-02-01 Ralf Angeli + + * 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 + + * 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 + + * 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 + + * style/jsarticle.el: New file. + + * style/jsbook.el: New file. + + * Makefile.in (STYLESRC): Add them. + +2005-01-29 Masayuki Ataka + + * tex-jp.el (LaTeX-fill-region-as-para-do): Removed. + +2005-01-28 Reiner Steib + + * 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 + + * tex.el: Do not use whitespace syntax for ?~. Prevents these + characters from being deleted during filling. + +2005-01-25 Ralf Angeli + + * 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 + + * auctex.spec (Conflicts): Mention the outdated emacspeak from + FC3. + +2005-01-20 Ralf Angeli + + * 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 + + * aclocal.m4, configure.ac: A few small changes to allow sync with + preview-latex' aclocal.m4 + +2005-01-19 Ralf Angeli + + * 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 + + * 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 + + * doc/auctex.texi (European): Document all TeX-language-*-hook + variables. Don't document obsolete `dk.sty'. + +2005-01-14 David Kastrup + + * 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 + + * 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 + + * Version 11.54 released. + +2005-01-12 Ralf Angeli + + * style/beamer.el: Update copyright information. General + clean-up. + ("beamer"): Support frame environment. + The overprint has an optional "area width" argument, not a + mandatory "overlay" argument. + +2005-01-09 Reiner Steib + + * RELEASE: Addition to contributors section. + + * tex-bar.el (TeX-bar-LaTeX-button-alist): Use generic "view" + image instead of mode specific. + +2005-01-09 Ralf Angeli + + * RELEASE: Added information about fixed bugs and added features + in AUCTeX 11.54. + + * auctex.spec (Version): Bump to 11.54. + + * configure.ac: Bump version info to 11.54. + + * doc/auctex.texi: Bump version info to 11.54. + + * doc/tex-ref.tex: Bump version info to 11.54. + +2005-01-07 Ralf Angeli + + * latex.el (LaTeX-forward-paragraph): Allow finding paragraph + commands even if they are preceded by whitespace and comment + starters. + +2005-01-06 Ralf Angeli + + * tex.el (TeX-forward-comment-skip): Differentiate prefixes with + whitespace between comment starters. + + * latex.el: Update copyright information. + (LaTeX-indent-calculate-last, LaTeX-fill-region-as-para-do): Do + not widen. + (LaTeX-fill-region-as-paragraph, LaTeX-fill-region-as-para-do): + Use a marker instead of narrowing the region. + (LaTeX-indent-line, LaTeX-indent-inner-do) + (LaTeX-current-indentation, LaTeX-back-to-indentation): Handle + prefixes with whitespace between comment starters correctly. + +2005-01-05 Reiner Steib + + * style/graphicx.el: Added completion of boxing macros. Fontify + some macros. + + * font-latex.el (font-latex-built-in-keyword-classes): Fixed typo + in doc string. + +2005-01-02 Reiner Steib + + * toolbar-x.el (toolbarx-default-toolbar-meaning-alist): Some + checkdoc related fixes. Still not checkdoc clean. + + * tex-bar.el (Commentary): Don't mention stuff done by + configure/make in the instructions. + (TeX-bar-help-from-command-list): Quote symbols in doc string. + File is checkdoc clean now. + + * doc/auctex.texi: Update copyright. + (Mathematics): Explain how to enable LaTeX-math-mode by default. + Suggested by Chris Wallace . + (Filling, Outline): Markup fixes: Use @lisp instead of @example + where appropriate. + +2004-12-30 Ralf Angeli + + * tex-fold.el (ConTeXt-find-matching-start): Require 'tex and add + autoloads to make the compiler happy. + + * doc/changes.texi: Add and tweak some stuff for 11.54. + +2004-12-28 Ralf Angeli + + * tex.el (TeX-auto-parse-region): Do not add element to `symbol' + if it is already contained. + +2004-12-23 Ralf Angeli + + * latex.el (LaTeX-indent-outer-do): Remove redundant code. + +2004-12-20 Ralf Angeli + + * font-latex.el: Add coding cookie. + (font-latex-quote-end-list): Remove. + (font-latex-quote-list): New variable. + (font-latex-quotes, font-latex-match-quotation): Use it for + generalization. + (font-latex-keyword-matcher): Revert last change. + (font-latex-make-built-in-keywords): Match the empty string only + at the end of multi-char macros. + (font-latex-make-user-keywords): Make sure sedate face is not used + for words right after a "\\". + (font-latex-set-syntactic-keywords): Do not match linebreaks as + delimiters of `verb-like-commands'. + +2004-12-19 Ralf Angeli + + * font-latex.el (font-latex-keyword-matcher): Highlight only first + matched group. + (font-latex-make-built-in-keywords): Set up grouping for warning + keywords and mark its end with "[^A-Za-z@*]". + +2004-12-17 Ralf Angeli + + * latex.el (LaTeX-fill-paragraph): Do not narrow region when code + comments are filled. Fixes wrong indentation if a line with a + code comment following an indented line is filled. + Mark end of current line, not beginning of next. + Jump to start of code comment line after regular filling. + +2004-12-16 Ralf Angeli + + * font-latex.el (font-latex-built-in-keyword-classes): Move + warning keywords up in order to save them from being covered by + less important faces. Include "include" in warning keywords. + + * aclocal.m4 (TEX_INPUT_DIRS): Change `IFS' temporarily for + tokenizing the string instead of inserting newlines. The latter + did not work anyway because there was one backslash too much in + "\\n". Strip trailing slashes of determined directories before + concatenation. + + * doc/install.texi (Configure): Quote value for + --with-tex-input-dirs. + + * doc/wininstall.texi: Quote value for --with-tex-input-dirs. + + * tex.el (TeX-arg-opening-brace, TeX-arg-closing-brace): New + variables. + (TeX-parse-arguments, TeX-parse-argument, TeX-argument-insert): + Use them. + + * latex.el (TeX-arg-free): Temporarily bind + `TeX-arg-opening-brace' and `TeX-arg-closing-brace'. + +2004-12-15 Ralf Angeli + + * tex.el (TeX-source-specials-view-position-flags): Fix syntax for + xdvi. + +2004-12-14 Ralf Angeli + + * doc/auctex.texi (top): Duplicate top node and wrap it in @ifinfo + and @ifhtml environments respectively. + +2004-12-13 Ralf Angeli + + * context.el (ConTeXt-paragraph-commands-regexp): Match any + command starting with "\start" or "\stop" and the respective + language variants. + +2004-12-11 Ralf Angeli + + * tex-fold.el (TeX-fold-keymap): Change key bindings for clearout + commands. + (TeX-fold-item, TeX-fold-remove-overlays): Doc fix. + + * tex.el (TeX-fold-menu): Change display of key bindings for + clearout commands. + + * doc/auctex.texi (Folding): Document new key bindings for + clearout commands. + +2004-12-10 Ralf Angeli + + * tex-fold.el (TeX-fold-keymap): Add key binding for + `TeX-fold-dwim'. + (TeX-fold-dwim): New function. + Add support for folding regions. + (TeX-fold-macro, TeX-fold-env): Call `message' here instead of in + `TeX-fold-item' to get the right return value for the latter. + (TeX-fold-item): Move `message' out to get the right return value. + (TeX-fold-remove-overlays): Signal if an overlay was deleted with + the return value. + + * tex.el (TeX-fold-menu): Add menu entry for `Tex-fold-dwim'. + + * doc/auctex.texi (Folding): Document `TeX-fold-dwim'. + Mention support for folding regions with `TeX-fold-dwim'. + + * doc/changes.texi: Advertise folding and unfolding of regions as + well as DWIM functionality. + + * tex-fold.el (TeX-fold-keymap): Add key bindings for + `TeX-fold-region and `TeX-fold-clearout-region'. + (TeX-fold-region): Make interactive. + + * tex.el (TeX-fold-menu): Add menu entries for folding and + unfolding of regions. + + * doc/auctex.texi (Folding): Document folding and unfolding of + regions. + Document `TeX-fold-dwim'. + + * latex.el (LaTeX-fill-code-comment): Do not hardcode tab width. + +2004-12-09 Ralf Angeli + + * tex-fold.el (TeX-fold-keymap): Add key bindings for + `TeX-fold-paragraph' and `TeX-fold-clearout-paragraph'. + (TeX-fold-buffer): Now calls new `*-region' functions. + (TeX-fold-paragraph): New function. + (TeX-fold-buffer-type): Remove. + (TeX-fold-region): New function. Basically encloses contents of + `TeX-fold-buffer-type' but type parameter is not mandatory + anymore. + (TeX-fold-clearout-buffer): Now calls `TeX-fold-clearout-region'. + (TeX-fold-clearout-paragraph, TeX-fold-clearout-region): New + functions. + + * tex.el (TeX-fold-menu): Add menu entries for folding and + unfolding of paragraphs. + + * doc/auctex.texi (Folding): Document folding and unfolding of + paragraphs. + + * doc/changes.texi: Advertise folding and unfolding of + paragraphs. + + * tex.el (TeX-comment-start-regexp): New variable. + (TeX-comment-or-uncomment-region, TeX-uncomment) + (TeX-forward-comment-skip, TeX-find-macro-end-helper): Use it. + + * latex.el (LaTeX-newline, LaTeX-insert-environment) + (LaTeX-env-item, LaTeX-indent-line, LaTeX-current-indentation) + (LaTeX-fill-region-as-paragraph, LaTeX-fill-region-as-para-do) + (LaTeX-fill-move-to-break-point, LaTeX-fill-paragraph) + (LaTeX-fill-code-comment, LaTeX-fill-region) + (LaTeX-forward-paragraph, LaTeX-backward-paragraph): Use + `TeX-comment-start-regexp' instead of `comment-start'. + (LaTeX-backward-paragraph, LaTeX-indent-line): Simplify. + + * style/mdwlist.el ("mdwlist"): Use `TeX-comment-start-regexp' + instead of `comment-start'. + + * style/doc.el (LaTeX-env-no-comment): Use + `TeX-comment-start-regexp' instead of `comment-start'. + +2004-12-07 Ralf Angeli + + * tex-fold.el (TeX-fold-buffer-type): Do not ignore case during + search. + + * context.el (ConTeXt-paragraph-commands-regexp): New name for + `ConTeXt-paragraph-commands'. Doc fix. Match escape character at + front as well. + (ConTeXt-mode-common-initialization): Use it. Set + `LaTeX-paragraph-commands-regexp' instead of + `LaTeX-paragraph-commands'. Adapt definition of + `paragraph-start'. + +2004-12-05 Ralf Angeli + + * tex.el (hack-one-local-variable): Advise it in order to call + minor mode functions for AUCTeX minor modes activated by + file-local minor mode variables. + + * latex.el (LaTeX-math-mode): Define using `define-minor-mode'. + Make it compatible with older Emacsen. + +2004-12-02 Ralf Angeli + + * style/csquotes.el (LaTeX-csquotes-quote-after-quote): Avoid + interference with (n)german.el. + +2004-12-01 Ralf Angeli + + * Makefile.in (distclean): Remove generated `configure' file. + And revert again as it does not comply with the definition of + standard targets in the GNU make manual. + + * style/jurabib.el ("jurabib"): Add further macros. + + * tex.el: Add coding cookie. + Use punctuation syntax for "«" and "»" characters. + (TeX-parse-argument): Deactivate mark after insertion of first + pair of braces. Fixes problems with the insertion of macros with + more than one brace and an active selection. + + * style/csquotes.el (LaTeX-csquotes-open-quote) + (LaTeX-csquotes-close-quote): Doc fix. + ("csquotes"): Repair quoting. Use completing-read where + possible. Use a stricter test for usage of quotes. + + * doc/auctex.texi (Quotes): Document csquotes.el. + +2004-11-29 Ralf Angeli + + * style/csquotes.el: New file. + + * Makefile.in (STYLESRC): Add style/csquotes.el. + + * doc/changes.texi: Advertise support for csquotes.sty. + +2004-11-29 Reiner Steib + + * tex.el (TeX-auto-insert): Added SKIP argument. + (TeX-auto-store): Use it to avoid circular dependencies. + + * style/graphicx.el (LaTeX-arg-includegraphics): Add "page". + + * latex.el (LaTeX-includegraphics-options-alist): Ditto. + +2004-11-29 Ralf Angeli + + * doc/auctex.texi: Use "auctex.info" instead of "auctex" as info + file name. + + * doc/Makefile.in: Adapt to suit change in info file name from + "auctex" to "auctex.info". + + * doc/.cvsignore: Adapt to suit change in info file name from + "auctex" to "auctex.info". + + * doc/changes.texi: Advertise use of "auctex.info" info file name. + +2004-11-29 Jan-Ake Larsson + + * configure.ac: Add @command macro test + + * configure.in: Moved to configure.ac + + * configure.ac: Moved from configure.in + + * doc/macros.texi: Add @command macro + + * doc/auctex.texi: Change order of @top and @ifnottex, error + message otherwise. + + * doc/Makefile.in: Add MAKEINFO environment variable for texi2... + usage. Remove old (confusing) messages. + +2004-11-28 Ralf Angeli + + * doc/intro.texi (Introduction): @/ unfortunately is only + available since Texinfo 4.6. Remove it for now. + + * doc/auctex.texi: Correct some references. + +2004-11-27 Ralf Angeli + + * doc/auctex.texi: Remove RCS keyword. + Correct subtitle. + Various corrections of filling and capitalization. + Move up installation instructions. + (Display): New node and chapter holding display-related content. + (Font Locking): New node and section. + (Folding): Now a section. Remove the silly first paragraph. + (Outline): Now a section. + + * doc/macros.texi: Add `@fontlatex' macro. + + * doc/install.texi: Specify node unconditionally in the file. + + * doc/intro.texi (Introduction): Use `@email' instead of `@url' + for email addresses. + + * doc/quickstart.texi (Processing): Better heading. + + * font-latex.el: Clean up comments. + (font-latex-built-in-keyword-classes): Add explanation of the + variable structure. + (font-latex-match-command-with-arguments): Change "asterix" to + "asterisk". + +2004-11-25 Ralf Angeli + + * latex.el (LaTeX-backward-paragraph): Jump to macro start. D'oh. + + * texmathp.el: Rearrange variable and function definitions in + order to get as few compiler warnings as possible due to the + reintroduction of the :set function in `texmathp-tex-commands'. + Add a dummy `defvar' for `texmathp-tex-commands' to silence the + compiler. + (texmathp-tex-commands): Reintroduce a :set function as advertised + in `texmathp-compile'. + (texmathp): Remove the conditional call to `texmathp-compile' as + this is handled by the :set function in `texmathp-tex-commands' on + load of the file. + + * tex.el: Autoload `texmathp-match-switch'. + +2004-11-24 Ralf Angeli + + * font-latex.el (font-latex-bold-face, font-latex-italic-face) + (font-latex-math-face, font-latex-string-face) + (font-latex-warning-face, font-latex-verbatim-face): Inherit from + suitable base faces if possible. Doc fix. + (font-latex-sedate-face): Doc fix. + + * latex.el (LaTeX-paragraph-commands): Doc fix. + (LaTeX-backward-paragraph): Do not unnecessarily jump to a (wrong) + position after the macro start. + + * tex.el: Move (nearly all) autoloads to a single place. Remove + redundant autoload for `TeX-region-file'. Add autoload for + `TeX-view'. + (TeX-parse-macro): Doc fix. + Do not add braces for macros defined as `("foo" 0)'. + (TeX-parse-arguments): Do not bind `<' and `>'. + (TeX-parse-argument, TeX-argument-insert): Do not use `<' and `>' + formerly bound by `TeX-parse-arguments'. Fixes some compiler + warnings. + (TeX-auto-list-information): Use `message' correctly. + + * tex-info.el (texinfo-mode): Add `@email' macro. + +2004-11-22 Berend de Boer + + * context.el (ConTeXt-mode-common-initialization): ConTeXt does + not need italics correction. + +2004-11-20 Christian Schlauer + + * doc/auctex.texi (Floats): Update. + + * doc/changes.texi: Mention change of `LaTeX-float'. + + * latex.el (LaTeX-float, LaTeX-env-figure): Implement "do not + prompt" option. `LaTeX-float' has the same customize value menu + like `LaTeX-default-position' now. This implies that the old + meaning nil corresponds to `""' now, while nil means "do not + prompt". + (LaTeX-env-figure): Ask for `Float position' instead of `Float + to'. + (LaTeX-float): New default value "" instead of "htbp" (after a + discussion on the mailing list). + (LaTeX-default-format, LaTeX-default-width) + (LaTeX-default-position): Omit `Specifies the' in doc-string. + +2004-11-19 Miguel Frasson + + * tex-buf.el (TeX-run-TeX): Improve comments. + +2004-11-18 Ralf Angeli + + * tex-buf.el (TeX-TeX-sentinel-check): Use only the letters after + the last dot of a file name for the file extension. + +2004-11-16 Ralf Angeli + + * latex.el (LaTeX-fill-move-to-break-point): Search backward for + \verb|...| constructs rather than forward. Fixes cases with more + than one constructs per line. Reported by Christan Schlauer. + +2004-11-16 David Kastrup + + * doc/wininstall.texi: Clarify --with-xemacs. + +2004-11-15 Ralf Angeli + + * latex.el (LaTeX-paragraph-commands): Now is a customizable list + instead of a regular expression. + (LaTeX-paragraph-commands-internal) + (LaTeX-paragraph-commands-regexp): New variables. + (LaTeX-forward-paragraph, LaTeX-backward-paragraph) + (LaTeX-common-initialization): Use + `LaTeX-paragraph-commands-regexp' instead of + `LaTeX-paragraph-commands'. + +2004-11-12 Ralf Angeli + + * latex.el (LaTeX-close-environment): Insert a newline at the end + of the environment if an uncommented line follows a commented one. + +2004-11-11 Ralf Angeli + + * latex.el (docTeX-in-macrocode-p): Search backward for an + environment beginning rather than forward for its end. + +2004-11-08 David Kastrup + + * latex.el (doctex-mode): Set the mode name. + +2004-11-04 Ralf Angeli + + * tex-info.el (texinfo-mode): Add `@command' macro. + + * doc/auctex.texi (Commands): Correct key binding for + `TeX-Omega-mode'. Add index entry. Use `@command' instead of + `@code' where appropriate. + + * font-latex.el (font-latex-built-in-keyword-classes): Use correct + face for `font-latex-match-title-3'. + +2004-11-04 Miguel Frasson + + * images/amstex.xpm: Added. Contains symbolic color + 'backgroundToolBarColor', required by (GNU/Linux) XEmacs. + +2004-11-03 Christian Schlauer + + * latex.el (LaTeX-env-figure, LaTeX-env-minipage) + (LaTeX-env-tabular*): Do always accept the user's input as the new + buffer-local values for `LaTeX-float' and `LaTeX-default-width', + even if the user entered the empty string. + (LaTeX-env-minipage): Do not ask for the (optional) position if + `LaTeX-default-position' is set to `nil'. Behaviour agrees with + LaTeX-env-array and LaTeX-env-tabular* now. + (LaTeX-env-array, LaTeX-env-tabular*): Changed `setq'-assignment + of `LaTeX-default-position' so that it works not only the first + time in buffers with `LaTeX-default-position' set to `nil'. + (LaTeX-env-array, LaTeX-env-minipage, LaTeX-env-tabular*): Use + `LaTeX-optop', `TeX-grop', etc. instead of `{', `['. + (LaTeX-env-picture): Don't delete whitespace after inserting the + environment. Cursor position corresponds to proper indentation + now. + +2004-11-03 Ralf Angeli + + * tex.el (TeX-delete-dups-by-car): New name for `TeX-delete-dups'. + (TeX-delete-duplicate-strings, TeX-sort-strings): New functions. + Contributed by Reiner Steib and David Kastrup. + + * font-latex.el: Require 'tex. + (font-latex-user-keyword-classes): Enhance :set function to tell + user which entry is duplicated. + + * latex.el (TeX-arg-input-file): Use new name + `TeX-delete-dups-by-car' instead of `TeX-delete-dups'. + + * style/graphicx.el (LaTeX-includegraphics-read-file-TeX): Use + new name `TeX-delete-dups-by-car' instead of `TeX-delete-dups'. + +2004-11-02 Ralf Angeli + + * font-latex.el (font-latex-make-user-keywords): Add the "fixed" + matchers here rather than in `font-latex-make-built-in-keywords'. + + * latex.el (LaTeX-math-default, LaTeX-math-menu): Use "Greek + Uppercase" instead of "Greek" and "Greek Lowercase" instead of + "greek". + +2004-11-02 David Kastrup + + * latex.el (LaTeX-paragraph-commands): Make `\maketitle' a + paragraph starter. + +2004-11-01 Ralf Angeli + + * font-latex.el (font-latex-make-built-in-keywords) + (font-latex-make-user-keywords): Append rather than prepend + matchers. + +2004-11-01 Miguel Frasson + + * toolbar-x.el + (toolbarx-make-command): Code clean up. + +2004-11-01 Ralf Angeli + + * font-latex.el: Change maintainer information. + (font-latex-keywords): New customization group. + (font-latex-built-in-keyword-classes): New variable. + (font-latex-make-match-defun, font-latex-keyword-matcher): New + functions. + (font-latex-make-built-in-keywords): New name for + `font-latex-make-keywords'. + Move default keyword definitions from + `font-latex-match-*-keywords' to + `font-latex-match-*-keywords-local'. + Integrate `font-latex-match-*-keywords-set' function into + `font-latex-match-*-keywords' defcustom. + (font-latex-keywords-1, font-latex-keywords-2): Default to nil. + All matchers are now added in `font-latex-make-built-in-keywords' + and `font-latex-make-user-keywords'. + (font-latex-user-keyword-classes): New variable. + (font-latex-make-user-keywords): New function. + + * doc/changes.texi: Remove duplicate word. + Mention possibility to add new keyword classes. + + * doc/quickstart.texi: Some rewordings, corrections and + enhancements. + +2004-10-29 Ralf Angeli + + * tex.el (TeX-auto-symbol-check): Use `add-to-list' instead of + `cons' in order to avoid duplicates. + + * latex.el (LaTeX-auto-minimal-regexp-list): Use non-greedy + operators for getting the end of a TeX group. + (LaTeX-auto-cleanup): Use `add-to-list' instead of `cons' in order + to avoid duplicates. + +2004-10-29 Miguel Frasson + + * tex-buf.el: Add simple error report system. + (TeX-error-report-switches): New variable (plist). + (TeX-run-TeX), + (TeX-TeX-sentinel-check): Use it, updating error state, + where property is (intern (TeX-master-file)). + + * tex-bar.el: Remove defadvice's to TeX-run-TeX and + TeX-TeX-sentinel-check. + (TeX-bar-error-handling-switches): Removed. + (TeX-bar-LaTeX-button-alist): next-error updated. + +2004-10-28 Reiner Steib + + * tex-bar.el (TeX-bar-LaTeX-button-alist): Add `TeX-save-document'. + + * doc/changes.texi: Renamed function `LaTeX-install-toolbar'. + + * tex-site.el.in: Ditto. + +2004-10-28 Miguel Frasson + + * tex-bar.el: Now requires tex-buf.el, for error handling. + Renamed symbols: + (LaTeX-install-toolbar): New name for `latex-install-toolbar'. + (tex-bar-latex-buttons): New name for `tex-bar-latex-buttons'. + (tex-bar-img-filename): New name for `tex-bar-img-filename'. + (TeX-tool-bar): New name for `tex-tool-bar' group. + (TeX-bar-LaTeX-buttons): New name for `tex-bar-latex-buttons'. + (TeX-bar-LaTeX-all-button-alists): New name for + `tex-bar-latex-all-button-alists'. + (TeX-tool-bar-button-definitions): New name for + `tex-tool-bar-button-definitions'. + (LaTeX-symbols-toolbar-switch-contents): New name for + `latex-symbols-toolbar-switch-contents'. + (LaTeX-symbols-toolbar-contents): New name for + `latex-symbols-toolbar-contents' + (LaTeX-install-toolbar): New name for `latex-install-toolbar'. + + Use separator only in Emacs, while buildin separator is not + implemented for XEmacs. + (TeX-bar-help-from-command-list): New function, that returns the + :help string for ITEM from TeX-command-list. + (TeX-bar-error-handling-switches): New variable. + (TeX-run-TeX [tex-buf.el]): before-adviced to reset error + internals. + (TeX-TeX-sentinel-check [tex-buf.el]): after-adviced to set error + internals when error happens. + (TeX-bar-LaTeX-button-alist): New button next-error, which is + resp. visible/active when error detected on Emacs/XEmacs. All + buttons received :help from TeX-command-list. + (TeX-bar-LaTeX-buttons): next-error is default, and file is no + longer default. + +2004-10-27 Ralf Angeli + + * latex.el (LaTeX-auto-class-regexp-list): New variable. + Match "\DeclareRobustCommand\foo" besides + "\DeclareRobustCommand{\foo}" as well. + (LaTeX-auto-regexp-list): Use it. + (LaTeX-auto-cleanup): Do not consider key=value options. Check + for "Package" in addition to "package". + +2004-10-26 Reiner Steib + + * tex.el (TeX-auto-generate-global): Only parse cls and sty files. + +2004-10-26 Ralf Angeli + + * font-latex.el (font-latex-match-command-in-braces): Remove + references to non-existent variables. + +2004-10-26 Reiner Steib + + * latex.el (LaTeX-math-list): Improve doc string and custom type. + (LaTeX-math-default): Added doc string. + +2004-10-26 Frank Küster + + * doc/quickstart.texi: Don't use so many nodes. Several fixes. + +2004-10-26 Reiner Steib + + * Makefile.in (tar-ball): Don't include CVS stuff. + + * doc/changes.texi: Mention experimental tool bar support. + + * Makefile.in (tar-ball): Include tex-bar images. + +2004-10-25 David Kastrup + + Toolbar patches by Reiner Steib + * Makefile.in (aucteximagedir): Define. + (AUCSRC, AUCELC): Add toolbar files. + (install-images): new target. + + * tex-site.el.in (TeX-image-directory): Define. + + * tex-bar.el (toolbar-x): require toolbar and latex at runtime. + +2004-10-24 Reiner Steib + + * Makefile.in (DOCFILES): Added doc/quickstart.texi. + +2004-10-23 Miguel Frasson + + * toolbar-x.el: + (toolbarx-emacs-mount-popup-menu): Nil cannot be a menu key + anymore (fixed). + (toolbarx-test-image-type): Improve comments. Add support for + variables defined with `defimage', which are considered a simple + value for the :image property. + (toolbarx-emacs-refresh): Nil cannot be a toolbar (menu) key + anymore (fixed). + (toolbarx-install-toolbar): Improved documentation for the :image + property. + +2004-10-22 Miguel Frasson + + * tex-bar.el: Improve comments. Symbol-toolbar code moved to the + bottom of the file. + (tex-bar-latex-buttons): Improve comments. Add custom :type. + (tex-bar-latex-buttons): New command -- display a list of defined + buttons. + (tex-bar-available-meaning-alists): Removed (renamed). + (tex-bar-latex-all-button-alists): New name of + `tex-bar-available-meaning-alists'. Add custom :type. + (tex-bar-meaning-alist): Removed (renamed). + (tex-bar-latex-button-alist): New name of `tex-bar-meaning-alist'. + Add custom :type. Renamed `latex-symbols' button to + `latex-symbols-experimental'. + + * toolbar-x.el: Improve comments. + (toolbarx-process-group-without-insert): Become autoloaded. + (toolbarx-process-group): Code cleanup. + (toolbarx-process-symbol): Code cleanup. + (toolbarx-default-toolbar-meaning-alist): Separator button label + renamed from `:sep' to `separator'. + +2004-10-22 Reiner Steib + + * doc/auctex.texi (European): Adjust to change of + `LaTeX-italian-open-quote'. + +2004-10-20 Ralf Angeli + + * aclocal.m4 (TEX_INPUT_DIRS): Do not use -e command line option + for grep. + +2004-10-18 Reiner Steib + + * doc/quickstart.texi: Fix markup. + +2004-10-18 Frank Küster + + * doc/quickstart.texi: New chapter. + + * doc/changes.texi: Mention `Quick Start'. + + * doc/auctex.texi (Font Specifiers): Add \textrm and \textsf + (Commands): Add TeX-Omega-mode + (top): Print contents near at the beginning. + + * doc/macros.texi: New macro @sans. + + * doc/intro.texi (Introduction): Removed sections obsoleted by + `Quick Start' (Indentation and filling, Completion, Editing your + document, Outlines). + +2004-10-18 Reiner Steib + + * doc/todo.texi, doc/install.texi, doc/history.texi, + doc/changes.texi, doc/auctex.texi: Remove optional arguments of + all @node commands. + + * doc/Makefile.in (TEXIFILES): Added quickstart.texi. + +2004-10-18 Frank Küster + + * doc/Makefile.in (TEXIFILES): Add macros.texi. + (auctex.dvi, auctex.pdf): Depend on TEXIFILES. + +2004-10-18 Christian Schlauer + + * latex.el (LaTeX-env-figure, LaTeX-env-minipage): Point out to + the user that the placement (figure) and position (minipage) + specifiers are optional arguments. + (LaTeX-env-figure): Simplified. Do not insert the (optional) + placement specifier `LaTeX-float' into the buffer if the user + entered the empty string when asked for `float'. + +2004-10-18 Ralf Angeli + + * font-latex.el (font-latex-make-keywords): Correctly evaluate + keywords when making `font-latex-match-*-keywords' defcustom. + +2004-10-17 Ralf Angeli + + * doc/todo.texi (Bugs): Document some bugs related to font locking + and folding. + + * latex.el (LaTeX-insert-environment): Partial rewrite. Stay in + comments. Do not comment uncommented following lines. Get rid of + redundant comment prefix. + (LaTeX-indent-calculate): Check for beginning of buffer. + (LaTeX-indent-calculate-last): Do not check for beginning of + buffer. Fixes wrong indentation of environments at the top of the + buffer. + +2004-10-16 Ralf Angeli + + * tex-fold.el (TeX-fold-macro-nth-arg): Use + `TeX-find-closing-brace' instead of `forward-sexp'. Fixes + problems with comment characters in \url macros. + + * latex.el (LaTeX-paragraph-commands): Use `regexp-opt' to + generate the regexp. + (LaTeX-common-initialization): Add support for "$$" to + `paragraph-start'. + + * context.el (ConTeXt-mode-common-initialization): Add support for + "$$" to `paragraph-start'. + + * font-latex.el: Remove change log. + (font-latex-make-keywords): New function. + (font-latex-match-variable-keywords-local) + (font-latex-match-variable-make) + (font-latex-match-variable-keywords-set) + (font-latex-match-variable-keywords, font-latex-match-variable) + (font-latex-match-reference-keywords-local) + (font-latex-match-reference-make) + (font-latex-match-reference-keywords-set) + (font-latex-match-reference-keywords) + (font-latex-match-reference) + (font-latex-match-function-keywords-local) + (font-latex-match-function-make) + (font-latex-match-function-keywords-set) + (font-latex-match-function-keywords, font-latex-match-function) + (font-latex-match-title-1-keywords-local) + (font-latex-match-title-1-make) + (font-latex-match-title-1-keywords-set) + (font-latex-match-title-1-keywords, font-latex-match-title-1) + (font-latex-match-title-2-keywords-local) + (font-latex-match-title-2-make) + (font-latex-match-title-2-keywords-set) + (font-latex-match-title-2-keywords, font-latex-match-title-2) + (font-latex-match-title-3-keywords-local) + (font-latex-match-title-3-make) + (font-latex-match-title-3-keywords-set) + (font-latex-match-title-3-keywords, font-latex-match-title-2) + (font-latex-match-title-4-keywords-local) + (font-latex-match-title-4-make) + (font-latex-match-title-4-keywords-set) + (font-latex-match-title-4-keywords, font-latex-match-title-2) + (font-latex-match-textual-keywords-local) + (font-latex-match-textual-make) + (font-latex-match-textual-keywords-set) + (font-latex-match-textual-keywords, font-latex-match-textual) + (font-latex-match-warning-keywords-local) + (font-latex-match-warning-make) + (font-latex-match-warning-keywords-set) + (font-latex-match-warning-keywords, font-latex-match-warning) + (font-latex-match-warning-function): Now generated by + `font-latex-make-keywords'. + (font-latex-match-bold-command-keywords-local) + (font-latex-match-bold-command-keywords) + (font-latex-match-bold-command) + (font-latex-match-italic-command-keywords-local) + (font-latex-match-italic-command-keywords) + (font-latex-match-italic-command) + (font-latex-match-math-command-keywords-local) + (font-latex-match-math-command-keywords) + (font-latex-match-math-command) + (font-latex-match-type-command-keywords-local) + (font-latex-match-type-command-keywords) + (font-latex-match-type-command) + (font-latex-match-bold-declaration-keywords-local) + (font-latex-match-bold-declaration-keywords) + (font-latex-match-bold-declaration) + (font-latex-match-italic-declaration-keywords-local) + (font-latex-match-italic-declaration-keywords) + (font-latex-match-italic-declaration) + (font-latex-match-type-declaration-keywords-local) + (font-latex-match-type-declaration-keywords) + (font-latex-match-type-declaration): New variables generated by + `font-latex-make-keywords'. + (font-latex-match-bold-command) + (font-latex-match-bold-command-make) + (font-latex-match-bold-command-keywords-set) + (font-latex-match-italic-command) + (font-latex-match-italic-command-make) + (font-latex-match-italic-command-keywords-set) + (font-latex-match-math-command) + (font-latex-match-math-command-make) + (font-latex-match-math-command-keywords-set) + (font-latex-match-type-command) + (font-latex-match-type-command-make) + (font-latex-match-type-command-keywords-set) + (font-latex-match-bold-declaration) + (font-latex-match-bold-declaration-make) + (font-latex-match-bold-declaration-keywords-set) + (font-latex-match-italic-declaration) + (font-latex-match-italic-declaration-make) + (font-latex-match-italic-declaration-keywords-set) + (font-latex-match-type-declaration) + (font-latex-match-type-declaration-make) + (font-latex-match-type-declaration-keywords-set): New functions + generated by `font-latex-make-keywords'. + (font-latex-keywords-1): Use new functions. + (font-latex-bold-command-keywords) + (font-latex-italic-command-keywords) + (font-latex-math-command-keywords) + (font-latex-type-command-keywords) + (font-latex-bold-declaration-keywords) + (font-latex-italic-declaration-keywords) + (font-latex-type-declaration-keywords): Remove. + (font-latex-match-command-with-arguments): New name for + `font-latex-match-command-outside-arguments'. Third argument now + is an integer instead of a binary. It specifies the number of + mandatory arguments of a LaTeX macro. Simplify the function. + (font-latex-match-font-cache) + (font-latex-match-font-outside-braces): Remove. + (font-latex-match-in-brace-cache): New name for + `font-latex-match-infont-cache'. + (font-latex-match-command-in-braces): New name for + `font-latex-match-font-inside-braces'. Generalize, so that it can + be used for any command and does not return a special, complex + match. + (font-latex-set-syntactic-keywords): Try to minimize false + fontifications of macros which may look like \foo{bar} and + \foo{bar{. + (font-latex-commented-outp): Do not consider comment characters in + verbatim content. + +2004-10-15 Reiner Steib + + * latex.el (LaTeX-default-format, LaTeX-default-width) + (LaTeX-default-position): Fix doc strings. + +2004-10-14 Reiner Steib + + * latex.el (LaTeX-default-width): Make it buffer local. + (LaTeX-env-minipage): Pick up new value of LaTeX-default-width. + +2004-10-14 Ralf Angeli + + * tex-fold.el (TeX-fold-macro-spec-list): Add starred sectioning + commands. + + * latex.el (LaTeX-fill-region-as-paragraph): Do not add linebreaks + after "$$ " at the end of paragraph filling. + (LaTeX-fill-move-to-break-point): Simplify. Add support for + $$...$$ type display math. + + * style/jurabib.el: New file. + + * Makefile.in (STYLESRC): Add jurabib.el. + + * doc/changes.texi: Mention support for the jurabib package. + +2004-10-14 Miguel Frasson + + * auctb.el: Removed (renamed to tex-bar.el) + + * tex-bar.el: Added; (new name of auctb.el). Added support for + buttons and customization. + (install-auctex-toolbar): removed. + (tex-tool-bar): New custom group, inside AUCTeX group. + (tex-tool-bar-button-definitions): New custom group, inside + tex-tool-bar group. + (tex-bar-latex-buttons): New custom variable: buttons in LaTeX + mode. + (tex-bar-meaning-alist): New custom variable. + (tex-bar-available-meaning-alists): New custom variable: + collection of variables for meaning-alists. + (latex-install-toolbar): New function: install the toolbar for + LaTeX mode. + (latex-symbols-toolbar-contents): added separator between symbol + switches and symbols. + + * toolbarx.el: Removed (renamed to toolbar-x.el) + + * toolbar-x.el: Added; (new name of toolbarx.el). + (toolbarx-default-toolbar-meaning-alist) Added `:sep' button. + (toolbarx-emacs-add-button): clean up. + +2004-10-13 Reiner Steib + + * latex.el (LaTeX-default-width): New variable. + (LaTeX-env-minipage, LaTeX-env-tabular*): Use it. + (LaTeX-environment): Mention it in the doc string. + (LaTeX-env-label): Reindent. + + * tex.el (TeX-delete-dups): Use our own (faster) version. + + * latex.el (LaTeX-env-array, LaTeX-env-minipage) + (LaTeX-env-tabular*): Don't delete whitespace after inserting the + environment. Cursor position corresponds to proper indentation + now. From Christian Schlauer with some + modifications. + +2004-10-12 Reiner Steib + + * doc/auctex.texi (Completion): Mention `C-c RET' for + `TeX-insert-macro'. Fixed typo. + (Parsing Files): Fixed typo. + (European): Improved. + From Frank Küster , slightly modified. + + * latex.el (LaTeX-common-initialization): Use `LaTeX-env-tabular*' + for "tabular*". + +2004-10-12 Ralf Angeli + + * tex-info.el (Texinfo-insert-node): Emacs 21.3 and earlier + expect a list of lists. + + * tex.el: Cater for `delete-selection-mode'. + `eval-after-load' (used for support of desktop.el) in Emacs 21.3 + and earlier expects a string, not a symbol. + (TeX-point-is-escaped): Remove. Implementation of + `TeX-escaped-p', which does the same, is slightly nicer. + (TeX-insert-dollar): Use `TeX-escaped-p'. + +2004-10-11 Ralf Angeli + + * font-latex.el: Small clean-ups and rearrangements. + (font-latex-match-variable-keywords) + (font-latex-match-reference-keywords) + (font-latex-match-function-keywords) + (font-latex-match-title-1-keywords) + (font-latex-match-title-2-keywords) + (font-latex-match-title-3-keywords) + (font-latex-match-title-4-keywords) + (font-latex-match-textual-keywords) + (font-latex-match-warning-keywords): Remove redundant defvars. + (font-latex-match-variable, font-latex-match-reference) + (font-latex-match-function, font-latex-match-title-1) + (font-latex-match-title-2, font-latex-match-title-3) + (font-latex-match-title-4, font-latex-match-textual) + (font-latex-match-warning): Set default values and make + buffer-local. + (font-latex-match-reference): Add doc string. + (font-latex-set-syntactic-keywords): Do not set comment syntax. + +2004-10-10 Ralf Angeli + + * style/booktabs.el, style/captcont.el, style/fancyref.el, + style/mdwlist.el, style/natbib.el, style/nicefrac.el, + style/paralist.el, style/scrbase.el, style/scrbook.el, + style/scrlttr2.el, style/scrpage2.el, style/scrreprt.el, + style/subfigure.el, style/units.el (TeX-add-style-hook): Do not + set up font-latex variables if font-latex is not loaded and + enabled. + + * style/alltt.el, style/listings.el, style/url.el + (TeX-add-style-hook): Do not set up font-latex variables if + font-latex is not loaded and enabled. Reinitialize font-lock + defaults. + + * font-latex.el: Do not autoload `texmathp'. + (font-latex-fontify-script): Doc fix. + (font-latex-script): Do without `texmathp'. + (font-latex-syntactic-keywords): Default to nil. + Make buffer-local. + (font-latex-setup): Set syntactic keywords. + +2004-10-08 Reiner Steib + + * tex.el (TeX-update-style, TeX-parse-arguments) + (TeX-parse-argument, VirTeX-common-initialization) + (TeX-auto-parse-region): Simplify code by using `unless'. + +2004-10-08 Ralf Angeli + + * tex.el (TeX-search-forward-unescaped) + (TeX-search-backward-unescaped, TeX-re-search-forward-unescaped) + (TeX-search-unescaped, TeX-escaped-p): New functions. + (TeX-find-macro-boundaries): Use `TeX-escaped-p'. + + * latex.el (LaTeX-newline, LaTeX-current-indentation) + (LaTeX-fill-region-as-para-do, LaTeX-fill-move-to-break-point): + Use new search functions from tex.el. + + * tex-fold.el (TeX-fold-make-overlay, TeX-fold-hide-item) + (TeX-fold-show-item): Respect `font-lock-mode'. + + * style/amstex.el: Add copyright and license information. + ("amstex"): Do not load amsmath.el in `plain-tex-mode' or + `ams-tex-mode'. + +2004-10-06 Ralf Angeli + + * texmathp.el (texmathp): Limit environment search with result of + macro search if possible. + + * font-latex.el (font-latex-verb-like-commands): New variable. + (font-latex-set-syntactic-keywords): Use it. + (font-latex-match-command-outside-arguments) + (font-latex-match-font-outside-braces) + (font-latex-match-font-inside-braces): Check face at the beginning + of the match to make keyword fontification possible even if a + macro's argument was already fontified due to syntactic keyword + fontification. + + * style/listings.el (TeX-add-style-hook): Suppress indentation in + lstlisting environments. Fontify both \lstinline|...| and + \lstinline{...}. Add lstlisting environment to + `LaTeX-verbatim-regexp'. + + * style/url.el (TeX-add-style-hook): Treat arguments \url|...| and + \url{...} as verbatim. + + * style/alltt.el (TeX-add-style-hook): Use buffer-local variable + `font-latex-verbatim-environments-local'. + +2004-10-05 Miguel Frasson + + * toolbarx.el (toolbarx-default-toolbar-meaning-alist): New + constant, providing a MEANING-ALIST for the insertion of the + default buttons and some extra ones in Emacs and XEmacs. + +2004-10-05 Ralf Angeli + + * tex.el (TeX-output-view-style): Move more special items upwards. + Remove "a4" and "a5" styles. + +2004-10-04 Miguel Frasson + + * toolbarx.el: + (toolbarx-emacs-add-button) + (toolbarx-test-image-type): Add Emacs `image descriptor' as valid + image specification (Emacs only). + (toolbarx-emacs-add-button): "transp-strip" is new `tranparent + strip' image file. + + * images/bibtex.xpm, images/dvipdf.xpm, images/dvips.xpm, + * images/error.xpm, images/exec.xpm, images/execbibtex.xpm, + * images/execdvips.xpm, images/execerror.xpm, + * images/execpdftex.xpm, images/exectex.xpm, + * images/execviewdvi.xpm, images/execviewpdf.xpm, + * images/execviewps.xpm, images/gv.xpm, images/jumpdvi.xpm, + * images/pdftex.xpm, images/pspdf.xpm, images/sep.xpm, + * images/tex.xpm, images/view.xpm, images/viewdvi.xpm, + * images/viewpdf.xpm, images/viewps.xpm: Add symbolic color + 'backgroundToolBarColor' to make pics work in (GNU/Linux) XEmacs + +2004-10-02 Ralf Angeli + + * font-latex.el: Some clean-ups, rearrangements and performance + improvements. + (font-latex-verbatim-face): XEmacs does not like :inherit. + (font-latex-setup): Activate `font-latex-syntactic-face-function'. + (font-latex-faces-present-p): New function. + (font-latex-match-command-outside-arguments): Use it. + (font-latex-bold-command-keywords) + (font-latex-italic-command-keywords) + (font-latex-math-command-keywords) + (font-latex-type-command-keywords): New variables. + (font-latex-match-font-outside-braces): Use them. + Check for comment and verbatim faces. + (font-latex-bold-declaration-keywords) + (font-latex-italic-declaration-keywords) + (font-latex-type-declaration-keywords): New variables. + (font-latex-match-font-inside-braces): Use them. + Check for comment and verbatim faces. + (font-latex-script): Use `font-latex-faces-present-p'. + + * doc/changes.texi: Add some new features and fixed bugs. + +2004-09-29 Miguel Frasson + + * images/bibtex.xpm, images/dvipdf.xpm, images/dvips.xpm, + * images/error.xpm, images/exec.xpm, images/execbibtex.xpm, + * images/execdvips.xpm, images/execerror.xpm, + * images/execpdftex.xpm, images/exectex.xpm, + * images/execviewdvi.xpm, images/execviewpdf.xpm, + * images/execviewps.xpm, images/gv.xpm, images/jumpdvi.xpm, + * images/pdftex.xpm, images/pspdf.xpm, images/sep.xpm, + * images/tex.xpm, images/view.xpm, images/viewdvi.xpm, + * images/viewpdf.xpm, images/viewps.xpm: Add designed images for + toolbar buttons. + +2004-09-29 Ralf Angeli + + * font-latex.el (font-latex-do-multi-line): Add new option and use + it as default value. + (font-latex-use-cache): New variable. + (font-latex-match-command-outside-arguments) + (font-latex-match-font-outside-braces) + (font-latex-match-font-inside-braces): Use it. + (font-latex-check-cache): Do not check if cache is to be used. + (font-latex-setup): Set up multi-line font locking. + +2004-09-28 Miguel Frasson + + * toolbarx.el: Support for grouping `:insert' clauses in the 3 + engines (performance improvement.) Better comments and + docstrings. + (toolbarx-process-symbol): Fix `nreverse'-missing bug. + + * auctb.el: Fix Copyright notice (to FSF). Remove "AMS Special" + from ppup menu. Simplify. Remove garbage comments from end. + (auctb-img-filename): Remove "symb-pics/" from return. Add + "symb-pics/" explicitly where it is needed in the defconst's. + + * images, images/dropdown.xpm, images/ltx-symb-turn-off.xpm, + * images/ltx-symb-turn-on.xpm: Add designed images for symbol + toolbar. + +2004-09-28 Ralf Angeli + + * font-latex.el: Add change log entries and bump version. + (font-latex-find-matching-close): Fix typo in last commit. + (font-latex-match-font-inside-braces): Set actual numbers in the + match, not nil. Fixes errors with `font-lock-multiline' enabled. + +2004-09-27 David Kastrup + + * font-latex.el (font-latex-find-matching-close): Simplify. + + * latex.el (LaTeX-math-default): Use `W in math mode for the Omega + letter. + + * tex.el (TeX-find-macro-start-helper): Simplify. + (TeX-find-macro-end-helper): Simplify. + (TeX-find-macro-end-helper): Stop if `forward-sexp' fails. + + * doc/todo.texi (Wishlist): Macro spell checking mentioned. + +2004-09-26 Miguel Frasson + + * toolbarx.el: Add to cvs (first version). + + * auctb.el: Add to cvs (first version); features only a symbol + toolbar. + +2004-09-24 Davide G. M. Salvetti + + * configure.in: Add `--(en|dis)able-build-dir-test' switch to + allow disabling `VALID_BUILD_DIR'. + +2004-09-22 Ralf Angeli + + * tex.el (VirTeX-common-initialization): Revert last change. + + * font-latex.el (font-latex-keywords-2): Use function + `font-latex-match-script' instead of regexp directly. + (font-latex-fontify-script): Doc fix. + (font-latex-match-script): Reintroduce. + +2004-09-19 Ralf Angeli + + * latex.el (LaTeX-verbatim-macros): New variable. + (LaTeX-fill-move-to-break-point): Do not break inside of macros + defined in `LaTeX-verbatim-macros'. + (LaTeX-fill-newline): Do not trigger auto-fill. + + * style/listings.el (TeX-add-style-hook): Add "lstinline" to + `LaTeX-verbatim-macros'. + + * font-latex.el (font-latex-set-syntactic-keywords): "*" is not + allowed as a \verb delimiter. + + * doc/todo.texi (Bugs): Another bug gone the way of the poodle. + +2004-09-18 Ralf Angeli + + * latex.el (LaTeX-indent-line): Use XEmacs' functions to deal with + extents/overlays. Avoids dependence on overlay.el. + (LaTeX-fill-region-as-paragraph): Inhibit filling of "Local + Variables" section, if to be filled as a paragraph. + + * style/url.el: Add some (low-level) symbols for completion and + fontification. + (TeX-arg-urlstyle): New function. + + * doc/todo.texi (Bugs): Remove some obsolete bug descriptions. + +2004-09-17 Ralf Angeli + + * font-latex.el (font-latex-verbatim-environments): Change from + defvar to defcustom. + (font-latex-verbatim-environments-local) + (font-latex-verbatim-macros) + (font-latex-verbatim-macros-local): New variables. + (font-latex-set-syntactic-keywords): Use them. + + * style/listings.el: New file. + + * Makefile.in (STYLESRC): Add it. + + * doc/changes.texi: Mention support for listings.sty. + +2004-09-16 Reiner Steib + + * doc/changes.texi: Mention built fixes. + +2004-09-16 Ralf Angeli + + * font-latex.el (font-latex-commented-outp): Reimplement for + better performance. + + * doc/changes.texi: Streamline documentation of performance + changes. + + * tex.el (TeX-search-syntax-table): Make XEmacs happy. + (VirTeX-common-initialization): Append our stuff to the end of + `find-file-hooks'. Fixes problems with `auto-insert-mode'. + +2004-09-15 Jan-Ã…ke Larsson + + * aclocal.m4 (EMACS_LISP): quote ${emacs}, Windows.... + +2004-09-13 Ralf Angeli + + * doc/changes.texi: Add changes from 11.51 up to now. + + * style/url.el: New file. + + * Makefile.in (STYLESRC): Add style/url.el. + +2004-09-12 Ralf Angeli + + * font-latex.el (font-latex-keywords-1): Add highlighter for math + macros. + (font-latex-keywords-2): Use regexp for matching instead of + `font-latex-match-script'. + (font-latex-match-font-outside-braces): Add support for math, esp. + "\ensuremath". + (font-latex-match-script): Remove. + (font-latex-script): Fix check for present faces. Add `texmathp' + check in case there is no math face present. + +2004-09-09 Reiner Steib + + * aclocal.m4 (texinputdirs): Strip leading "!!". + +2004-09-08 Reiner Steib + + * latex.el (TeX-arg-input-file): Remove duplicates from the + completion list. Simplify code by using `unless'. + +2004-09-08 Ralf Angeli + + * tex-info.el (Texinfo-insert-node): New function. + (Texinfo-mode-map): Use it. + +2004-09-07 Davide G. M. Salvetti + + * aclocal.m4 (EMACS_LISP): Sync echo output with real emacs + invocation. + +2004-09-07 Ralf Angeli + + * tex-info.el (Texinfo-insert-environment): Add a space between + inserted "@end" and environment name in case of active region. + +2004-09-05 Ralf Angeli + + * tex.el (TeX-search-syntax-table): New function and variable. + (TeX-find-balanced-brace): New function. + (TeX-find-closing-brace): Use `TeX-find-balanced-brace'. + (TeX-find-opening-brace): Ditto. + (TeX-find-macro-boundaries): Add `lower-bound' argument. + (TeX-find-macro-start-helper): Add `limit' argument. + (TeX-find-macro-start): Ditto. + +2004-08-31 Reiner Steib + + * doc/changes.texi: Add `LaTeX-includegraphics-read-file'. + Mention use of `start' for MikTeX and fpTeX. + + * latex.el (LaTeX-includegraphics-read-file): New variable. + + * tex.el (TeX-delete-dups): New defun or defalias. + + * style/graphicx.el (LaTeX-includegraphics-read-file-TeX): Renamed + from `LaTeX-includegraphics-read-file'. Remove duplicates using + `TeX-delete-dups'. + (LaTeX-includegraphics-read-file-relative): Insert relative + filename. From Dan Nicolaescu . + (LaTeX-arg-includegraphics): Use funcall for image-file. + +2004-08-28 David Kastrup + + * Version 11.53 released. + +2004-08-28 David Kastrup + + * doc/tex-ref.tex: Bump version. + + * configure.in: Bump version number. + + * auctex.spec (Version): bump to 11.53. + + * doc/auctex.texi: Bump version to 11.53. + +2004-08-28 Ralf Angeli + + * Makefile.in (install-el): Fix typos. + +2004-08-27 Reiner Steib + + * tex.el (TeX-kpathsea-format-alist): Added + LaTeX-includegraphics-extensions. + (TeX-search-files): Fix non-kpathsea case. + + * style/graphicx.el (LaTeX-includegraphics-read-file): Use + completion based on TeX-search-files. + +2004-08-27 Ralf Angeli + + * tex-fold.el (TeX-fold-preserve-comments): New variable. + (TeX-fold-buffer-type): Use it. + + * font-latex.el (font-latex): Add to AUCTeX's customization group. + (font-latex-find-matching-close): Correctly recognize multiple + escape characters. Add missing paren. + +2004-08-26 Masayuki Ataka + + * tex-site.el.in (japanese-slitex-mode): Removed obsolete autoload + of slitex. + + * tex-jp.el (japanese-plain-tex-mode, japanese-latex-mode): Use + `TeX-defun' for getting version info into mode doc. + +2004-08-26 Ralf Angeli + + * tex-mik.el: Use `start' instead of the respective executable for + PostScript, PDF and HTML files. + + * tex-fptex.el: Ditto. + +2004-08-25 Ralf Angeli + + * tex.el (TeX-find-macro-boundaries): Detect the start of any + macro, not just those consisting of [A-Za-z@]. + Remove some superfluous `goto-char' calls. + (TeX-find-macro-start-helper): Reimplement once again. Original + patch by David Kastrup; slightly modified. Doc fix. + (TeX-find-macro-end-helper): Doc fix. Handle macros not + consisting of [A-Za-z@] correctly. + (TeX-find-opening-brace): Improve performance. + +2004-08-25 Reiner Steib + + * tex.el: Autoload `TeX-process-set-variable' and `TeX-region-file'. + +2004-08-25 Jan-Ã…ke Larsson + + * aclocal.m4: EMACS_PATH_LISPDIR: Expand lispdir if relative to + binary. Quote lispdir, and deal with exec_prefix, add missing + bracket. + + * aclocal.m4: Fix xemacs<->emacs mistake, restore path searching + when --without-packagedir is given + + * configure.in: enable --without-packagedir + + * aclocal.m4: Barf if packagedir not found, don't bother with + load-path on xemacs' lispdir + +2004-08-25 David Kastrup + + * tex-buf.el (TeX-command): Call `TeX-process-set-variable' with + correct options, so that the viewer command is next unless + overridden. + + * tex.el (TeX-set-mode-name): Set `TeX-command-next' in the + buffers where they actually count. + +2004-08-24 David Kastrup + + * latex.el (LaTeX-math-default): Correctly code "jmath" and + "Bbbk". + +2004-08-24 Reiner Steib + + * doc/auctex.texi (Mathematics): Add `LaTeX-math-menu-unicode'. + (Changes): Refer to `history.texi' _after_ the newer changes. + + * doc/changes.texi: Added versions 11.51-11.53. + +2004-08-24 Ralf Angeli + + * tex.el (VirTeX-common-initialization): Use "%" instead of + `comment-start' for `comment-start-skip'. + (TeX-find-opening-brace): Do not use an inverse matcher but negate + the whole expression. + (TeX-find-macro-start-helper): Reimplement. Should be much faster + now. + + * latex.el (LaTeX-current-environment): Use + `buffer-substring-no-properties'. + (LaTeX-indent-line): Revert last change. Only multi-line overlays + at the start of a line are affected by the XEmacs bug. + + * tex-info.el (Texinfo-environment-list): Add "command" macro. + +2004-08-24 Reiner Steib + + * doc/install.texi (Prerequisites): Add `easy-mmode.el' update for + XEmacs. + +2004-08-23 David Kastrup + + * latex.el (LaTeX-indent-line): Get all overlays, not just one. + (LaTeX-math-default): Add iota. + (LaTeX-math-default): Use different symbol for triangle. + (LaTeX-math-default): Don't use `?\S-e' for `?E'. + + * tex.el (TeX-match-buffer): Use `buffer-substring-no-properties' + (TeX-in-commented-line): Use `skip-chars-forward' and `forward-line'. + (TeX-in-line-comment): Use `forward-line'. + (TeX-brace-count-line): Use `skip-chars-forward'. + + * RELEASE: Some updates. + + * latex.el (LaTeX-section): Use an active region as title if available. + (LaTeX-section-title): Prompt with title if present. Should we + ask at all? + (LaTeX-math-list): Add Unicode code point. + (LaTeX-math-menu-unicode): New customization variable for unicode + in math menu. Only set in GTK Emacs for now. Does not work on + XEmacs. Use it for initializing the menus. Also prefix menu + points with backslash. + + * Makefile.in (.PHONY): Declare a bunch of phony targets to + protect against users making files/directories with that name (in + particular "lisp"). + +2004-08-22 David Kastrup + + * style/italian.el ("italian"): Don't overwrite existing local + variable settings. + + * style/ngerman.el ("ngerman"): Don't overwrite existing local + variable settings. + + * style/german.el ("german"): Don't overwrite existing local + variable settings. + + * tex.el (TeX-set-mode-name, TeX-PDF-mode): XEmacs needs two + arguments for `local-variable-p'. + +2004-08-20 David Kastrup + + * tex.el (desktop): Save TeX-Omega-mode, too. + + * Makefile.in (full-release): Source rpm is auctex, not + auctex-emacs. + + * auctex.spec (Provides): Provide auctex as well to satisfy + preview-latex. create package emacs nevertheless. + + * Version 11.52 released. + +2004-08-20 David Kastrup + + * tex.el (AUCTeX-version): move to front and also eval when + compiling. Other version info moved, too. + (TeX-defun): Macro for putting version info into definition. + (plain-tex-mode): Use `TeX-defun'. + (ams-tex-mode): Use `TeX-defun'. + + * tex-info.el (texinfo-mode): Use `TeX-defun' for getting version + info into mode doc. + + * latex.el (latex-mode): Use `TeX-defun' for getting version info + into mode doc. + + * context.el (context-mode): Use `TeX-defun' for getting version + info into mode doc. + + * auctex.spec (BuildRoot): New naming scheme. + + * RELEASE: Add `DESTDIR' blurb. + +2004-08-19 David Kastrup + + * auctex.spec: Change `tex-site.el' to overwriting config file + mode. + + * tex.el (plain-tex-mode): Move menu initializiation here instead + of `plain-TeX-common-initialization'. We don't want "TeX" menus + in `ConTeXt-mode' or `AmSTeX-mode'. + (plain-TeX-common-initialization): remove `easy-menu-add' here. + (TeX-common-menu-entries): Change "Customize" strategy again. + (plain-TeX-menu-entries): Move from `plain-TeX-menu'. + (plain-TeX-mode-menu): Use `plain-TeX-menu-entries'. + (AmSTeX-mode-map): Derive from `TeX-mode-map' not + `plain-TeX-mode-map'. + (AmSTeX-mode-menu): Define menu for `AmSTeX-mode'. + (ams-tex-mode): Add menus in proper order. + + * tex-info.el (texinfo-mode): Swap order of `easy-menu-add'. + + * latex.el (LaTeX-common-initialization): Swap order of + `easy-menu-add'. + + * context.el (ConTeXt-mode-common-initialization): Swap order of + `easy-menu-add', move `major-mode' init to front. + + * latex.el (LaTeX-common-initialization): Exchange order of + `easy-menu-add' to get better menu layout in XEmacs. + +2004-08-19 Reiner Steib + + * auctex.spec (description): Overhauled. + + * doc/install.texi: Markup fixes, see "(texinfo)command". + + * doc/wininstall.texi: Ditto. + +2004-08-19 David Kastrup + + * latex.el (LaTeX-mode-menu): Use `TeX-common-menu-entries'. + + * tex-info.el (Texinfo-mode-menu): Use `TeX-common-menu-entries'. + + * tex.el (ams-tex-mode): Add `plain-TeX-mode-menu' here. Doh. + + * context.el (ConTeXt-mode-menu): Use `TeX-menu-with-help' instead + of `TeX-maybe-remove-help'. + (ConTeXt-mode-menu): Use `TeX-common-menu-entries'. + + * tex.el (TeX-customization-menu): Save the customization menu + here when generated, so that we have it available in all modes. + (TeX-common-menu-entries): The common menu entries for TeX modes. + (plain-TeX-mode-menu): Use `TeX-common-menu-entries'. + + * configure.in: export `localstatedir'. + + * Makefile.in (localstatedir): import `localstatedir'. + +2004-08-19 Ralf Angeli + + * doc/install.texi (Customizing): tex-site.el should be edited no + more. Customize should be used instead. Relevant variables are + determined during configuration now. + Mention build/installation commands for contributed files. + +2004-08-19 Reiner Steib + + * auctex.spec: Fixes for SuSE. + +2004-08-19 David Kastrup + + * aclocal.m4: `putative-existing-lisp-dir' is not a package + directory if `lisp' is not a path component. Normalize + whitespace. + Remove trailing slash from packagedir. + + * tex-site.el.in (TeX-macro-global): Don't quote texinputdirs + additionally. + + * aclocal.m4: Really remove trailing slashes/backslashes. + Don't expand `lispdir'. + (library): Surround `texinputdirs' with quotes. Output it + enclosed in parens. + (library): Let `autodir' refer unexpanded to `localstatedir'. + Add some quoting in patterns. + + * doc/Makefile.in (DESTDIR): introduce `DESTDIR' into installation + targets. + + * Makefile.in (DESTDIR): introduce `DESTDIR' into installation + targets. + +2004-08-18 David Kastrup + + * tex-fold.el (TeX-fold-buffer-type): Don't use `end-of-buffer' as + it plays around with the current window point. + + * Makefile.in (auctexdir, styledir): Use `${...}' for symmetry + with aclocal.m4 + + * aclocal.m4: Use `${...}' instead of `$(...)' everywhere. + +2004-08-18 Jan-Ã…ke Larsson + + * aclocal.m4 (EMACS_LISPDIR): Output expanded lispdir + +2004-08-18 David Kastrup + + * configure.in: Shell-quote autodir. + + * RELEASE: Some minor changes. + +2004-08-18 Ralf Angeli + + * RELEASE: Change version to 11.52. Replace old feature/bug + information. + + * font-latex.el (font-latex-script): Disable raising of characters + for older Emacsen. Original patch by Reiner Steib. + Bump version and add change log entry. + + * tex-fold.el (TeX-fold-unfolded-face): Make it look more blueish + on displays with 24bit color depth. + (TeX-fold-buffer-type): Use either a complemented character + alternative to be on the safe side or "\\_>" on Emacsen which + support it. + +2004-08-17 Reiner Steib + + * texmathp.el (texmathp-tex-commands-default): Added \label. + Various checkdoc-related fixes. + +2004-08-17 Ralf Angeli + + * tex-fold.el (TeX-fold-buffer-type): Use alternative way to + determine end of search pattern. Fixes problem with starred + macros. + Fix compile errors and add further match alternatives. + (TeX-fold-item): Recognize starred macros as well. + XEmacs does not know `match-string-no-properties'. + (TeX-fold-make-overlay): Do not alter `display-string' before + `face' is set. + (TeX-fold-hide-item): Get only the string part of + `display-string'. + + * tex.el (TeX-fold-menu): Wrap value in `TeX-menu-with-help'. + Fixes XEmacs start-up error. + + * tex-mik.el: Fix typo in comment. + + * auctex.spec (Version): Change to 11.52. + + * configure.in: Change AUCTeX version to 11.52. + + * doc/tex-ref.tex: Change AUCTeX version to 11.52. + + * doc/auctex.texi: Change AUCTeX version to 11.52. + +2004-08-17 David Kastrup + + * Makefile.in (full-release): Fix a few things. + + * Version 11.51 released. + +2004-08-17 David Kastrup + + * aclocal.m4: Quote when expanding and remove trailing backslash, + too. + (library): Don't check for $PWD but for default-directory. + +2004-08-16 David Kastrup + + * doc/wininstall.texi: move --prefix description up, since it + might be the only needed option. + + * doc/tex-ref.tex (section{Font Selection}): Add italic + corrections and small-caps entry. + + * tex.el (info): Add more prefixes to `Info-file-list-for-emacs'. + + * tex-jp.el (japanese-TeX-command-list): Comment addition. + + * RELEASE: Add availability and update release notes. + + * Makefile.in (RPMROOT): New variable. + (tar-ball): Clean up `$(FTPDIR)' and `$(WWWDIR/doc)' before + installation. + (full-release): New target that does RPM building, signing and + other stuff for upload. + (patch): gzip the patch. + + * auctex.spec: Add definition stuff for SuSE. + (BuildRoot): Don't specify infodir when it is not used. + + * bib-cite.el: Fix refTeX link. + +2004-08-16 Jan-Ã…ke Larsson + + * aclocal.m4 (EMACS_PROG_EMACS): Add "${prefix}/bin" for Windows users + + * aclocal.m4 (EMACS_LISPDIR): Remove trailing slash from lispdir_expanded elisp string + +2004-08-16 Ralf Angeli + + * aclocal.m4 (VALID_BUILD_DIR): New function. + + * configure.in: Use it. + Change AUCTeX version to 11.51. + + * doc/tex-ref.tex: Change AUCTeX version to 11.51. + + * doc/auctex.texi: Change AUCTeX version to 11.51. + + * auctex.spec (Version): Change to 11.51. + + * Makefile.in (distclean): Get rid of autom4te.cache. + +2004-08-15 David Kastrup + + * tex-info.el: Change Copyright notice to FSF + + * tex-mik.el: Change Copyright notice to FSF + + * tex.el: Change Copyright notice to FSF + + * font-latex.el: Change Copyright notice to FSF + + * multi-prompt.el: Change Copyright notice to FSF + + * tex-buf.el: Change Copyright notice to FSF + + * tex-site.el.in: Change Copyright notice to FSF + + * style/scrartcl.el: Change Copyright notice to FSF + + * style/scrbook.el: Change Copyright notice to FSF + + * style/scrlttr2.el: Change Copyright notice to FSF + + * style/scrreprt.el: Change Copyright notice to FSF + + * latex.el: Change Copyright notice to FSF + + * tex-info.el: Change Copyright notice to FSF + + * tex-mik.el: Change Copyright notice to FSF + + * tex.el: Change Copyright notice to FSF + + * bib-cite.el: Change Copyright notice and URLs. + +2004-08-15 Dan Nicolaescu + + * latex.el (LaTeX-common-initialization): Don't set + `selective-display'. + +2004-08-15 David Kastrup + + * doc/tex-ref.tex: Add Omega entry, rearrange. + + * tex.el (TeX-print-command): Use `%(o?)'. + (TeX-command, TeX-Omega-command, LaTeX-command) + (LaTeX-Omega-command, ConTeXt-engine, ConTeXt-Omega-engine): New + customization strings to implement various expanders. + (TeX-command-list): Use them. + (LaTeX-command-style): Same here. + (TeX-printer-list, TeX-view-style, TeX-output-view-style): Use + `%(o?)'. + (TeX-expand-list): New entries. + (TeX-PDF-mode): Don't switch on in Omega mode. + (TeX-Omega-mode): New minor mode. + (tex-omega-mode): alias for it. + (TeX-mode-map): Keybinding for it. + (TeX-mode-specific-command-menu-entries): Add quick viewer entry. + (TeX-mode-specific-command-menu-entries): Add Omega toggle and + inactivate PDF when Omega is on. + + * context.el (ConTeXt-expand-options): New function for generating + `texexec' options. + +2004-08-15 Ralf Angeli + + * tex.el (TeX-fold-menu): New variable. + (plain-TeX-mode-menu): Use it. + + * context.el (ConTeXt-mode-menu): Use `TeX-fold-menu'. + + * latex.el (LaTeX-mode-menu): Use `TeX-fold-menu'. + + * tex-info.el: Change every occurence of "TeXinfo" to "Texinfo". + (Texinfo-environment-list): Add some missing environments. + (Texinfo-find-env-end, Texinfo-find-env-start): New functions. + (Texinfo-mode-menu): Use `TeX-fold-menu'. + + * tex-fold.el (TeX-fold-buffer-type): Support folding of + environments in texinfo-mode. + (TeX-fold-item): Ditto. + (TeX-fold-hide-item): Display an error string if the macro + argument cannot be found. + +2004-08-14 David Kastrup + + * tex.el (TeX-command-list): rename `%(execmode)' to `%(execopts)' + since it has gotten quite fatter. + (TeX-expand-list): Implement `TeX-PDF-mode', + `TeX-interactive-mode', `TeX-source-specials-mode' for ConTeXt and + pass on `ConTeXt-current-interface'. + +2004-08-14 Ralf Angeli + + * tex-mik.el: Change `TeX-source-specials-viewer-flags' to + `TeX-source-specials-view-position-flags' as the latter is now + used in tex.el. + Set `TeX-source-specials-view-editor-flags'. + + * tex-fptex.el: Ditto. + +2004-08-13 Ralf Angeli + + * doc/auctex.texi (top): We want the introduction to appear in + HTML output as well. + +2004-08-13 David Kastrup + + * Version 11.50 released. + +2004-08-13 Jan-Ã…ke Larsson + + * aclocal.m4: Add another alternative for lispdir + +2004-08-13 David Kastrup + + * auctex.spec (Source0): Change source URL. + + * Makefile.in (EXTRAFILES): Add RELEASE and auctex.spec. + (tar-ball): Don't create CHANGES-$(TAG), just CHANGES (as it is + always a longer history). But create RELEASE-$(TAG) instead: + that's release-specific. + +2004-08-13 David Kastrup + + * doc/wininstall.texi: Changes to --prefix and --with-auto-dir, + partly by Christian Schlauer. + Add a few words of my own after suggestions. + + * doc/changes.texi, style/units.el, style/nicefrac.el, + Makefile.in: Add contributed styles for units.sty and + nicefrac.sty from Christian Schlauer. + +2004-08-13 Ralf Angeli + + * tex-fold.el (TeX-fold-unspec-use-name): New variable. + (TeX-fold-item): Use it. + + * RELEASE: Add warning about `TeX-command-list'. + + * doc/auctex.texi (Commands): Add "be". + (Folding): Document `TeX-fold-unspec-use-name'. + +2004-08-13 David Kastrup + + * Makefile.in (tar-ball): copy only one auctex, add pdf manual and + reference card. + + * doc/Makefile.in (dist): Add tex-ref, and both pdf and ps + (tex-ref.ps, auctex.ps): Use -Ppdf option for better quality. + + * auctex.spec (BuildRoot): Add CHANGES. + + * Makefile.in (release-commit): There are no Version: strings + anymore, don't replace them. + + * tex-fptex.el: customize Queue and Print commands appropriately. + + * tex-mik.el: customize Queue and Print commands appropriately. + + * tex.el (TeX-expand-list): Call TeX-printer-query differently. + (TeX-command-menu-print, TeX-command-menu-printer-entry) + (TeX-command-menu-entry): Implement stuff differently, add "Other" + menu entry. + + * tex-buf.el (TeX-printer-query): Change arguments here. + Reorganize, too. + + * doc/auctex.texi (Commands): Fix a warning. + + * tex-info.el (TeXinfo-mode-menu): Other quoting. + (texinfo-mode): Set `TeX-mode-p', `TeX-base-mode-name', call + `TeX-set-mode-name'. + + * context.el (ConTeXt-mode-menu): Add the environments back to + folding. + + * doc/auctex.texi, doc/faq.texi, doc/install.texi, doc/intro.texi, + doc/todo.texi: various changes and smaller typos corrected. + + * doc/macros.texi fix problems with PDF links and indexing. + + * configure.in: Check for pdftex, dvips, texi2html, texi2dvi, + texi2pdf. + + * doc/Makefile.in (TEXI2HTML, TEXI2DVI, TEXI2PDF): new variables + entered by configure. + (auctex.dvi): Use texi2dvi. + (auctex.pdf): New target. + (clean): Remove PDF files. + +2004-08-12 David Kastrup + + * tex-jp.el (japanese-TeX-command-list): Fixed this to new style. + (LaTeX-command-style): Same here. Hey, this should even make + preview-latex work mostly with Japanese files and PDFTeX. + +2004-08-12 Ralf Angeli + + * tex-buf.el (TeX-view-extension): Remove. + (TeX-view-output-file): Use the function `TeX-output-extension' + instead of `TeX-view-extension'. + (TeX-run-set-command): Setting `TeX-view-extension' not necessary + anymore. + + * tex.el (TeX-view-extension): Remove. + +2004-08-11 David Kastrup + + * doc/wininstall.texi: explain about tex-mik.el and tex-fptex.el + + * tex-fptex.el: require tex-site. Only set `TeX-lisp-directory' + if it has not been customized. Construct `TeX-command-list' from + its default value. + + * tex-mik.el: same here. + + * tex.el (TeX-mode-specific-command-menu): Tiny optimization. + (TeX-mode-specific-command-menu-entries): Make it legal for + `TeX-command-mode-menu-entry' to return nil for indicating no menu + entry at all (so that entries like "Print" or "Queue" may be + dynamically removed). + +2004-08-11 Reiner Steib + + * doc/auctex.texi (Commands): Adjust references. + (Viewing): Make source specials a subsection. Adjust references. + + * tex.el (TeX-source-specials-mode): Remove bogus :link. Refer to + viewing node of the manual. + + * doc/changes.texi: Added references. + + * doc/todo.texi (Wishlist): Markup fix. + +2004-08-11 Ralf Angeli + + * doc/auctex.texi (Viewing): Add some information about forward + and inverse search. + + * tex-mik.el: Synchronize `TeX-command-list' with tex.el. + Use gsview32 in `TeX-output-view-style'. + + * tex-fptex.el: Synchronize `TeX-command-list' with tex.el. + +2004-08-11 David Kastrup + + * doc/tex-ref.tex: Move papersize stuff to the front. Fiddle + somewhat with the sizes, too. + + * auctex.spec (Version): Change version, web sites, some build + stuff (this is not yet finished). + + * auc-old.el: remove. + + * doc/Makefile.in (TEXIFILES): refer to auctex.texi instead of + auc-tex.texi. Change all dependent stuff, too. + + * Makefile.in (DOCFILES): refer to doc/auctex.texi instead of + doc/auc-tex.texi + + * doc/auc-tex.texi: renamed into doc/auctex.texi. + + * doc/auc-tex.texi (Commands): Some rewording. + + * doc/todo.texi (Wishlist): Some rearrangements and additions. + +2004-08-10 David Kastrup + + * latex.el (LaTeX-math-default): Reorder and complete Greek + letters, use Babel transcription conventions for them. + + * doc/tex-ref.tex: Add \sl definition. + (section{Miscellaneous}): Use \string~ for tilde. + (section{Greek Letters}): Reorder and complete Greek letters. + + * tex.el (TeX-PDF-mode): Set `TeX-output-extension' too. + (ams-tex-mode): Move `TeX-set-mode-name' after running hooks. + + * tex-ref.tex: merge math-ref.tex, update a few things, format + stuff. + + * math-ref.tex: removed. + + * doc/Makefile.in (all): Remove math-ref.tex + + * Makefile.in (DOCFILES): Remove math-ref.tex + +2004-08-10 Reiner Steib + + * RELEASE: Add `volunteers welcome'. + + * doc/auc-tex.texi (Completion): TeX-insert-macro-default-style. + + * tex.el (TeX-source-specials-mode): Add manual link. + + * doc/auc-tex.texi (Commands): Say how to enable + TeX-source-specials-mode permanently. + (Viewing): Describe TeX-view. + +2004-08-10 David Kastrup + + * tex.el (TeX-maybe-remove-help): convert Emacs' :visible into + XEmacs' :included. + + * latex.el (LaTeX-mode-menu): Change bug submit menu entry. + + * context.el (ConTeXt-mode-menu): Same. + + * tex.el (plain-TeX-mode-menu): Same. + + * tex-info.el (TeXinfo-mode-menu): Same. + + * latex.el (LaTeX-mode-menu): A few changed help strings and other + small fry. + + * context.el (ConTeXt-mode-menu): Rework menu, reorganize it, add + help strings. + +2004-08-10 Ralf Angeli + + * tex-info.el (TeXinfo-mode-menu): Capitalize menu entries. + + * context.el (ConTeXt-project-structure-menu-name) + (ConTeXt-section-block-menu-name, ConTeXt-mode-menu): Capitalize + menu entries. + + * tex-info.el (TeXinfo-mode-menu): Add help strings. + + * tex.el (TeX-command-list): Set a default value which will not + lead to an inactive menu entry. + (plain-TeX-mode-menu): Add some help strings. + Capitalize menu entries. + (tex-source-specials-mode): New alias for + `TeX-source-specials-mode'. + + * latex.el (LaTeX-mode-menu): Rearrange and insert help strings. + Capitalize menu entries. + + * tex-fold.el (tex-fold-mode): New alias for `TeX-fold-mode' used + in tex.el. + (TeX-fold-buffer-type): Support folding of environments in ConTeXt + mode as well. + (TeX-fold-item): Ditto. + + * doc/auc-tex.texi (Commands): Change `TeX-source-specials' to + `TeX-source-specials-mode' where appropriate. + + * RELEASE: Include contributors. (Hopefully I got everybody.) + +2004-08-10 David Kastrup + + * tex.el (TeX-set-mode-name, TeX-source-specials-map) + (TeX-source-specials-mode, TeX-source-specials-expand-options) + (TeX-source-specials-view-expand-options): Rename + `TeX-source-specials' to `TeX-source-specials-mode'. + (TeX-PDF-mode): Make first arg optional (actually, not sure this + is a good idea). + (tex-pdf-mode): alias for `TeX-PDF-mode'. + (tex-interactive-mode): alias for `TeX-interactive-mode' + (tex-fold-mode): add autoload. + (TeX-mode-map, TeX-mode-specific-command-menu-entries): rename + `TeX-source-specials' to `TeX-source-specials-mode'. + (TeX-command-list): Add help strings. + (TeX-command-menu-entry): Splice help into command entries. + (TeX-mode-specific-command-menu-entries): Remove help in XEmacs. + (TeX-mode-specific-command-list): Save unnecessary copies and + conses. + +2004-08-09 David Kastrup + + * tex.el (TeX-set-mode-name): Add LOCAL argument. + (TeX-source-specials, TeX-mode-set, TeX-global-PDF-mode) + (TeX-PDF-mode, TeX-interactive-mode): Use it. + (plain-tex-mode): Move `TeX-set-mode-name' to after running the + hooks. + + * latex.el (latex-mode): Move setting the mode name to after + running the hooks. + + * tex.el (TeX-maybe-remove-help): new function (noop on Emacs). + (TeX-menu-with-help): new macro (noop on Emacs). + (TeX-mode-specific-command-menu-entries): Add a lot of help strings. + (plain-TeX-mode-menu): Same here. + + * latex.el (LaTeX-mode-menu): `:visible' is not known in XEmacs, + and I don't want to clutter the menu with "Convert 209 to 2e" when + not necessary. + + * RELEASE (Requirements): some additions. + Incorporate some suggestions from Ralf. + + * tex.el (TeX-set-mode-name): Actually use `reset' (patch by Ralf + Angeli). + + * latex.el (LaTeX-common-initialization): There is no "LaTeX2e" + command anymore, so don't set it. Don't do anything on + "DVIoutput". doc fixes. + + * doc/auc-tex.texi (Commands): Explain `TeX-command-buffer', + `TeX-pin-region', `TeX-PDF-mode', `TeX-interactive-mode', + `TeX-source-specials'. + +2004-08-09 Berend de Boer + + * context.el (ConTeXt-current-environment): now properly skips + nested environments instead of always returning the last + environment just above the cursor. + +2004-08-08 David Kastrup + + * tex-buf.el (TeX-run-set-command): Initialize + `TeX-output-extension' based on `TeX-PDF-mode'. + + * tex.el (TeX-command-output-list): Don't look at pdf* commands. + Don't have default mode "dvi". + (VirTeX-common-initialization): Don't add to + desktop-locals-to-save locally: that's broken. + (desktop): Add stuff into appropriate variables for proper desktop + save/restore. + (TeX-mode-specific-command-menu-entries, plain-TeX-mode-menu): + Reorganize menus. Add font commands into plain TeX menu. + + * tex-info.el (TeXinfo-mode-menu): Reorganize menu. + + * latex.el (LaTeX-mode-menu): Reorganize menu. + + * context.el (ConTeXt-mode-menu): Reorganize menu. + +2004-08-07 David Kastrup + + * tex.el (TeX-base-mode-name): Make buffer-local (Doh). + (TeX-set-mode-name): Doc fix. + + * doc/todo.texi (Mid-term Goals): Use @previewlatex macro. + (Mid-term Goals): New entries. Should some of them be moved to + wishlist? Remove a few fixed bugs. + + * doc/macros.texi: move @ConTeXt macro out of info-only section. + Typeset @previewlatex differently. + +2004-08-06 Reiner Steib + + * font-latex.el: Use "gnu.org" instead of "nongnu.org". + + * bib-cite.el: Ditto. Use "AUCTeX", not "auc-tex". + + * lpath.el: Use "AUCTeX". + +2004-08-05 Reiner Steib + + * doc/macros.texi: New @ConTeXt macro. + + * doc/auc-tex.texi, doc/changes.texi, doc/history.texi, + doc/todo.texi, doc/wininstall.texi: Use macros @AUCTeX, @ConTeXt, + @LaTeX everywhere. + + * doc/auc-tex.texi (European): Mention Emacs 21. Fixed typo. + + * doc/todo.texi: Help for documentation wanted. + + * doc/changes.texi: Some additions: captcont and subfigure, + `LaTeX-includegraphics-options-alist', `LaTeX-default-position', + kpathsea based completion, `TeX-insert-macro-default-style'. + Refer to installation nodes (autoconf installation). + + * tex.el (TeX-submit-bug-report): Added more explanations. + + * latex.el (LaTeX-style-list): Improve doc-string. + + * font-latex.el (font-latex-script-display): New variable. Make + raise of sub-/superscripts customizable. + (font-latex-unfontify-region, font-latex-script): Use it. + +2004-08-05 Ralf Angeli + + * RELEASE: Improve sectioning and add some more information. + +2004-08-05 David Kastrup + + * tex-site.el.in: don't require 'tex-mik on Windows, let the user + load it instead of tex-site if he wants to. + + * tex.el (TeX-command-list): Add `%(PDFout)', `%(mode)' and + `%(execmode)'. Remove `TeX Interactive', `LaTeX Interactive' and + `ConTeXt Interactive'. + (LaTeX-command-style): Don't provide a default for a + `LaTeX-version' of "2": people can customize this if necessary + themselves, we would not know a sane default, anyway. + (TeX-expand-list): Support `TeX-DVI-via-PDFTeX', `%(PDFout)', + `%(mode)' and `%(execmode)'. + (TeX-set-mode-name): Add `reset' flag to indicate that the next + step should again be TeXing. Add "I" flag. + (TeX-source-specials): Call `TeX-set-mode-name' with `reset' flag. + (TeX-mode-set): Variable setter for TeX modes. + (TeX-PDF-mode): Make the default value a global mode. + (TeX-global-PDF-mode): Toggle function to change default + `TeX-PDF-mode'. + (TeX-PDF-mode): Remove local binding of `TeX-PDF-mode' in case of + conflicts. Call `TeX-set-mode-name' with `reset' flag. + (TeX-DVI-via-PDFTeX): New customizable variable. + (TeX-interactive-mode): New mode. + (TeX-mode-map): Add binding for `TeX-interactive-mode'. + (TeX-mode-specific-command-menu-entries): Add menu entry for it. + + * tex-buf.el (TeX-command-expand): Document `%%'. + (TeX-run-TeX): If `TeX-interactive-mode' is set, run + `TeX-run-interactive' instead. + +2004-08-04 Reiner Steib + + * font-latex.el (font-latex-fontify-script): Default to nil in + XEmacs. + +2004-08-04 David Kastrup + + * tex.el (TeX-base-mode-name, TeX-set-mode-name): Move to front, + add catering for global mode switches. + (TeX-source-specials, global-TeX-PDF-mode): Use this. + + * latex.el (LaTeX-common-initialization): Add style hook for + "ifpdf". + +2004-08-04 Ralf Angeli + + * font-latex.el (font-latex-unfontify-region): New function. + (font-latex-setup): Use it. + +2004-08-04 David Kastrup + + * tex-fptex.el (TeX-command-list): Remove PDFTeX calls. + + * tex-mik.el (TeX-command-list): Remove PDFTeX calls. + + * tex.el (TeX-command-list): Use %(PDF) where necessary, drop + PDFTeX entries. + (LaTeX-command-style): Add %(PDF) here. + (TeX-expand-list): Expand %(PDF). + (TeX-mode-p): Moved. + (TeX-PDF-mode, global-TeX-PDF-mode): New minor modes. + (TeX-PDF-mode-on, TeX-PDF-mode-off): Shortcuts for calling. + (TeX-PDF-mode-parsed): New variable. + (TeX-set-mode-name): Simplify. + (TeX-mode-map): Add C-c C-t C-p for TeX-PDF-mode. + (TeX-mode-specific-command-menu-entries): Add menu entry for it. + + * latex.el (LaTeX-math-mode): Refresh modeline after generating + it, not before. + (LaTeX-common-initialization): Add style-hooks fo pdftex, dvips + and others. + + * tex.el (TeX-view-style, TeX-output-view-style): Place dvi file + name last. + +2004-08-03 Ralf Angeli + + * tex.el (TeX-source-specials): New customization group. + (TeX-source-specials, TeX-source-specials-tex-flags) + (TeX-source-specials-places) + (TeX-source-specials-view-start-server): Use it + (TeX-source-specials-view-position-flags) + (TeX-source-specials-view-gnuclient-flags) + (TeX-source-specials-view-emacsclient-flags): Change defvar to + defcustom. + (TeX-source-specials-view-editor-flags): New customize option. + (TeX-source-specials-view-expand-client): Return not only client + but options as well. + (TeX-source-specials-view-expand-options): Use + `TeX-source-specials-view-editor-flags'. + +2004-08-03 Reiner Steib + + * tex.el (TeX-source-specials-places): Change comment. + +2004-08-03 David Kastrup + + * latex.el (LaTeX-mode-menu): Add "Close Environment" + + * tex.el (TeX-source-specials-view-gnuserv-p): replaces + `TeX-source-specials-view-guess-server'. + (TeX-source-specials-view-expand-client) + (TeX-source-specials-view-expand-options): Use this. + +2004-08-03 Reiner Steib + + * style/alphanum.el, style/doc.el, style/jura.el, + style/ltx-base.el, style/ltxdoc.el: Added coding cookies. + +2004-08-03 David Kastrup + + * RELEASE: Change Source Special description and a few other + things. + +2004-08-03 Ralf Angeli + + * tex.el (TeX-expand-list): New %cS expander for + `TeX-source-specials-view-expand-client'. + (TeX-source-specials-view-start-server): New customize option. + (TeX-source-specials-view-start-server-asked): New variable. + (TeX-source-specials-view-position-flags): New name. Formerly + known as `TeX-source-specials-viewer-flags'. + (TeX-source-specials-view-gnuclient-flags): New variable. + (TeX-source-specials-view-emacsclient-flags): New variable. + (TeX-source-specials-view-expand-client): New function. + (TeX-source-specials-view-expand-options): Expand options for + inverse search as well. + Correct return value. + Use `TeX-source-specials-view-guess-server'. + (TeX-forward-comment-skip): Only consider consecutive comment + characters when comparing the comment prefix. + (TeX-source-specials-view-guess-server): New function. + + * doc/changes.texi: Avoid email addresses. + + * doc/tex-ref.tex: Update to 11.50. + +2004-08-02 Ralf Angeli + + * doc/changes.texi: Advertise support for toggling source + specials. Mention macro completion in docTeX mode and fix for + filling in XEmacs with preview-latex and activated previews. + +2004-08-01 David Kastrup + + * doc/wininstall.texi: Remove info about manual installation. + Explain about preferred path syntax. + + * doc/install.texi: Move info dor INSTALL.Windows. + +2004-08-01 Ralf Angeli + + * tex-fptex.el: Do not overwrite customized variables. + + * tex-mik.el: Ditto. + + * Makefile.in (STYLESRC): Add new style files. + + * aclocal.m4: Synchronize with preview-latex. + + * tex-fold.el (TeX-fold-macro-spec-list): Add references to + default. + (TeX-fold-buffer-type): Additionally pass display string + specification and type to `TeX-fold-make-overlay' + (TeX-fold-item): Ditto. + (TeX-fold-make-overlay): Accept display string specification and + type as arguments and set them accordingly in the overlay. + Do not signal overfullness if the dispay string contains a + linebreak. + (TeX-fold-macro-nth-arg): Make `macro-start' mandatory so that + macro boundaries may be determined even if point is not inside of + a macro. + (TeX-fold-hide-item): Recompute display string on closure if + display string specification is an integer. + + * style/alphanum.el: Add header and reformat. + + * style/jura.el: Add header. + + * style/doc.el: New file. Contributed by Frank Küster + . + (TeX-add-style-hook): Remove bogus `LaTeX-add-index-entries' call. + + * style/ltx-base.el: New file. Contributed by Frank Küster + . + + * style/ltxdoc.el: Ditto. + +2004-07-31 Ralf Angeli + + * font-latex.el: Autoload `texmathp'. + (font-latex-keywords-2): Add `font-latex-match-script'. + (font-latex-script-keywords): Remove. + (font-latex-fontify-script): Remove :set function. + (font-latex-match-script): New function. + + * tex-mik.el (TeX-view-style): Remove unconditional source + specials option for yap. + (TeX-output-view-style): Set it. + (TeX-source-specials-viewer-flags): Ditto. + + * tex-fptex.el (TeX-view-style): Adapt options to WinDVI + documentation. + (TeX-output-view-style): Set it. + (TeX-source-specials-viewer-flags): Ditto. + +2004-07-30 Ralf Angeli + + * Makefile.in (tar-ball): Remove warning which often confuses + users. + + * aclocal.m4 (EMACS_MAJOR_VERSION): New test and variable. + + * configure.in: Fix AUCTeX version. + + * tex-site.el.in: At least (X)Emacs 21 is required. + + * tex.el: Ditto. + + * doc/Makefile.in (install): Remove warning which often confuses + users. + + * doc/auc-tex.texi: Fix version numbers. + (Changes): New name. Formerly known as "History". + (ToDo): New heading. + + * doc/changes.texi: Add heading for `rawfile'. Change `section' + to `heading'. + + * doc/faq.texi (Frequently Asked Questions About AUCTeX): At + least (X)Emacs 21 is needed. + + * doc/install.texi (Prerequisites): Ditto. + +2004-07-29 Ralf Angeli + + * tex-fold.el (TeX-fold-macro-spec-list): Extend default. Add + specification for argument number. + (TeX-fold-env-spec-list): Ditto. + (TeX-fold-folded-face): Renamed from + `TeX-fold-display-string-face'. + (TeX-fold-unfolded-face): New face and variable. + (TeX-fold-buffer-type): Move through buffer from bottom to top in + a single run in order to allow easier prioritization of nested + overlays. + (TeX-fold-item): Compute display string via + `TeX-fold-macr-nth-arg'. + (TeX-fold-make-overlay): Consider the length of the display string + as well when judging if a line is overfull. Let priority be + computed by `TeX-fold-macr-nth-arg'. Do not call + `TeX-fold-hide-item'. + (TeX-fold-macro-nth-arg): New function. + (TeX-fold-priority-step): New variable. + (TeX-fold-prioritize): New function. + (TeX-fold-hide-item): Set mouse-face. + (TeX-fold-show-item): Ditto. Do not set face twice. + (TeX-fold-post-command): Recognize mouse clicks as well. + + * tex.el (TeX-find-macro-boundaries): New function. + (TeX-find-macro-end-helper): Find macro arguments with a preceding + linebreak as well. + + * doc/auc-tex.texi (Folding): Document new functionality. + + * latex.el (LaTeX-fill-region): Improve performance by avoiding + unnecessary calls to `LaTeX-forward-paragraph'. + + * font-latex.el (font-latex-fontify-script): Doc fix. + +2004-07-23 Ralf Angeli + + * tex-fold.el (TeX-fold-make-overlay): New function. + Remove superfluous `let'. + (TeX-fold-buffer-type, TeX-fold-item): Use it. + (TeX-fold-mode): Call `TeX-fold-clearout-buffer' after clearing + `post-command-hook'. + +2004-07-22 Ralf Angeli + + * latex.el (LaTeX-indent-line): Temporarily make invisible + overlays visible in XEmacs. + + * tex.el (TeX-comment-region): Use a real function instead of an + `fset' and temporarily change `comment-start' for certain XEmacs + releases. + (TeX-comment-or-uncomment-region): Use it. + (TeX-comment-or-uncomment-paragraph): Ditto. + + * doc/changes.texi: Remove warning about TeX-fold not working + correctly on XEmacs. + +2004-07-21 Ralf Angeli + + * tex-fold.el (TeX-fold-display-string-face): Remove `min-colors' + spec as XEmacs does not like them. + (TeX-fold-hide-item): Set face on the glyph and not on the + overlay/extent in XEmacs. + (TeX-fold-post-command): Do not check detached extents in XEmacs. + + * context.el (ConTeXt-mode-menu): Check if variable is defined. + Necessary for XEmacs compatibility. + (ConTeXt-menu-update): Fix creation of environment menus. + + * latex.el (LaTeX-mode-menu): Check if variable is defined. + Necessary for XEmacs compatibility. + + * tex-info.el (TeXinfo-mode-menu): Ditto. + +2004-07-20 Reiner Steib + + * font-latex.el (font-latex-set-title-face): New function. + (font-latex-title-fontity): Use it to make customization work + during a session. + (font-latex-title-*-face): Use it to simplify the initialization. + +2004-07-20 Ralf Angeli + + * tex-fold.el (TeX-fold-macro-spec-list): New name for + `TeX-fold-spec-list'. More unobtrusive default. + (TeX-fold-env-spec-list) + (TeX-fold-unspec-macro-display-string) + (TeX-fold-unspec-env-display-string): New variables. + (TeX-fold-keymap): New key bindings which are more mnemonic and + orient at preview-latex's bindings instead of outline.el. + (TeX-fold-buffer): Transfer contents to `TeX-fold-buffer-type' + which can be used for both macros and environments. + (TeX-fold-buffer-type): New function. + (TeX-fold-macro): Transfer contents to `TeX-fold-item' which can + be used for both macros and environments. + (TeX-fold-env): New function. + (TeX-fold-item): New function. Prioritize overlays. + (TeX-fold-clearout-item): New name for `TeX-fold-clearout-macro'. + (TeX-fold-hide-item, TeX-fold-show-item): Adapt doc string. + + * latex.el (LaTeX-hide-environment): Remove. Functionality is now + provided by TeX-fold. + (LaTeX-show-environment): Ditto. + (LaTeX-mode-map): Remove key bindings for `LaTeX-hide-environment' + and `LaTeX-show-environment'. + (LaTeX-mode-menu): Adapt key bindings for folding. Remove menu + entries for `LaTeX-hide-environment' and `LaTeX-show-environment'. + + * context.el (ConTeXt-mode-menu): Adapt key bindings for folding. + + * tex-info.el (TeXinfo-mode-menu): Ditto. + + * doc/auc-tex.texi (Folding): Document new and changed functions + and variables related to folding environments (new) and macros. + + * doc/changes.texi: Advertise support for folding environments. + +2004-07-18 Ralf Angeli + + * tex.el (TeX-source-specials): Do not set a lighter in + `minor-mode-alist' but use `TeX-set-mode-name' instead. + (TeX-base-mode-name): New variable. + (TeX-set-mode-name): New function. + (plain-tex-mode): Set `TeX-base-mode-name' instead of `mode-name' + and use `TeX-set-mode-name'. + (ams-tex-mode): Ditto. + + * context-en.el (context-en-mode): Ditto. + + * context-nl.el (context-nl-mode): Ditto. + + * latex.el: Do not add a lighter for `LaTeX-math-mode' in + `minor-mode-alist'. + (LaTeX-math-mode): Use `TeX-set-mode-name'. + (latex-mode): Set `TeX-base-mode-name' instead of `mode-name' and + use `TeX-set-mode-name'. + + * tex-fold.el (TeX-fold-mode): Do not set a lighter in + `minor-mode-alist' but use `TeX-set-mode-name' instead. + +2004-07-17 Ralf Angeli + + * tex.el (TeX-find-macro-start): Fix handling of nested macros. + (TeX-find-macro-start-helper): New function. + (TeX-find-macro-end-helper): New function. + + * tex-info.el (TeXinfo-mode-menu): Fix extension of customize + menu. + + * latex.el (LaTeX-env-figure): Prevent superfluous blank lines and + give RefTeX a chance to generate a label in environments with a + bottom caption. Patch by Christian Schlauer . + (LaTeX-style-list): Add entry for beamer class. + + * context.el (ConTeXt-mode-menu): Add "Show/Hide" submenu. + + * doc/auc-tex.texi (Folding): Document key binding for + `TeX-fold-mode'. + +2004-07-14 Ralf Angeli + + * tex-info.el (TeXinfo-mode-map): Inherit from `TeX-mode-map'. + (texinfo-mode): Enable TeX-master functionality. + + * tex.el (TeX-one-master): Include .texi files. + (TeX-add-local-master): Use "@c " as comment prefix in Texinfo + mode. + + * tex-fold.el (TeX-fold): Move customization group from `LaTeX' to + `AUCTeX'. + + * doc/changes.texi: Advertise folding functionality. + +2004-07-12 Ralf Angeli + + * tex-fold.el (TeX-fold-display-string-face): Cater for display + devices with few colors. + (TeX-fold-keymap): Add key bindings for showing and hiding + individual macros. + (TeX-fold-macro): New function. + (TeX-fold-clearout-buffer): New name for + `TeX-fold-remove-all-overlays'. + (TeX-fold-clearout-macro): New function. + (TeX-fold-remove-overlays): New function. + + * latex.el (LaTeX-mode-menu): Add entries for showing and hiding + individual macros. + + * tex-info.el (TeXinfo-mode-menu): Update and rearrange. Add + entries for "Show/Hide" functionality. + + * doc/auc-tex.texi (Show/Hide): New section. + (Folding): New subsection. + (Outline): Moved under "Show/Hide". + +2004-07-10 Ralf Angeli + + * tex.el: Do not require tex-fold.el. + Autoload `TeX-fold-mode'. + (TeX-mode-map): Add keybinding for `TeX-fold-mode'. + + * tex-fold.el: Do not add keybinding for `TeX-fold-mode' with + `TeX-mode-hook'. + (TeX-fold-post-command): Do not hijack other overlays. + +2004-07-09 Ralf Angeli + + * tex-fold.el: New file. + + * Makefile.in (AUCSRC): Add tex-fold.el. + (AUCELC): Add tex-fold.elc. + + * latex.el (LaTeX-find-macro-start): Move to tex.el and rename to + `TeX-find-macro-start'. + (LaTeX-find-macro-end): Analogous. + (LaTeX-forward-paragraph): Change call to `LaTeX-find-macro-*' to + `TeX-find-macro-*'. + (LaTeX-backward-paragraph): Ditto. + (LaTeX-mode-menu): Add submenu "Show/Hide". Add entries for + relevant functions in tex-fold.el and add the show/hide + environment entries which were in "Formatting and Marking" before. + + * tex.el: Require tex-fold.el. + (TeX-find-macro-start): New function. Formerly known as + `LaTeX-find-macro-start' in latex.el. + (TeX-find-macro-end): New function. Formerly known as + `LaTeX-find-macro-end' in latex.el. + +2004-07-08 Ralf Angeli + + * texmathp.el (texmathp-match-environment): Let environments be + added more than once. + + * font-latex.el (font-latex-superscript-face) + (font-latex-subscript-face): New faces. + (font-latex-script-keywords): New constant. + (font-latex-fontify-script): New customize option. + (font-latex-script): New function. + +2004-07-02 Ralf Angeli + + * tex-buf.el (TeX-view): Inform the user if the output file is + not present. + + * tex.el (TeX-forward-comment-skip): Fix `count' functionality. + Stop as well at places where the prefix of commented lines + changes. Simplify and improve efficiency by saving current + prefix before while-loop starts. Adapt documentation string. + (TeX-backward-comment-skip): Adapt documentation string. + +2004-06-24 Ralf Angeli + + * context.el (ConTeXt-environment-menu-name): Make name distinct + from `LaTeX-environment-menu-name'. + (ConTeXt-environment-modify-menu-name): Analogous. + +2004-06-17 Reiner Steib + + * Makefile.in (tar-ball): Change permissions of auctex-$(TAG). + + * tex.el (TeX-source-specials-expand-view-options): New function. + (TeX-expand-list): Added new specifier (%dS) for + `TeX-source-specials-expand-view-options'. + (TeX-view-style, TeX-output-view-style): Add %dS for source + specials in all xdvi calls. + (TeX-expand-list): Remove useless lambda. + + * tex-buf.el (TeX-output-style-check): Remove addition of source + specials. + +2004-06-17 Ralf Angeli + + * tex.el (TeX-one-master): Add "dtx" extension. + (TeX-add-local-master): Insert \iffalse...\fi in docTeX mode. + (TeX-file-extensions): Add "dtx" extension. + (docTeX-default-extension): New variable. + + * latex.el (LaTeX-find-macro-start): Use next whitespace if the + end of an opened macro cannot be determined. + (doctex-mode): Set `TeX-default-extension' to + `docTeX-default-extension'. + + * doc/changes.texi: Add information about `TeX-newline-function'. + +2004-06-16 Ralf Angeli + + * style/mdwlist.el (TeX-add-style-hook): Change variables only + locally. + + * latex.el (LaTeX-default-verb-delimiter): New variable. + (TeX-arg-verb): Use it. + +2004-06-15 Ralf Angeli + + * style/mdwlist.el: New header. + (TeX-add-style-hook): Add support for \makecompactlist, \suspend, + and \resume. + +2004-06-14 David Kastrup + + * tex-buf.el (TeX-pin-region): Don't balk at unpinning if there + is no pinned region. + + * tex.el (TeX-mode-specific-command-menu-entries): Be more + meticulous about when the pin-region menu entry can be used. + +2004-06-13 David Kastrup + + * tex.el (TeX-pin-region): Add autoload form. + (TeX-mode-map): Add keybinding for TeX-pin-region. + (TeX-mode-specific-command-menu-entries): Add menu entry for it. + + * tex-buf.el (TeX-command-master, TeX-command-region) + (TeX-command-buffer): Add `override-confirm' prefix argument. + (TeX-pin-region): New function to replace previous interactive + prefix for TeX-command-region. Change TeX-region semantics + accordingly. + +2004-06-13 Ralf Angeli + + * doc/faq.texi: New file. + + * doc/auc-tex.texi (Filling): Add information about activating + `auto-fill-mode'. + (FAQ): Add node. + + * doc/todo.texi (Bugs): Add bug when fontifying unmatched math + toggles in verbatim-like environments. + + * doc/.cvsignore: Add `FAQ'. + + * doc/Makefile.in (TEXIFILES): Add `faq.texi'. + (FAQ): New target. + (dist): Add `FAQ'. + (clean): Ditto. + + * .cvsignore: Add `FAQ'. + + * Makefile.in (DOCFILES): Add `doc/faq.texi'. + (EXTRAFILES): Remove `PROBLEMS'. + (tar-ball): Add `FAQ'. + + * autogen.sh: Activate creation of `FAQ' from `doc/faq.texi'. + +2004-06-11 Ralf Angeli + + * tex-fptex.el (TeX-command-list): Use correct expander for + "View PDF". + + * latex.el (LaTeX-fill-region-as-para-do): Fix removal of trailing + whitespace. + (LaTeX-fill-move-to-break-point): Prevent infinite loop in + commented regions. + (LaTeX-fill-newline): Fix compatibility with XEmacs, i.e. use + code related to text properties only for Emacs and reintroduce + insertion of a potential fill prefix for XEmacs. + +2004-06-10 Ralf Angeli + + * doc/changes.texi: Add some news regarding upcoming release. + Try to match former news with actual releases. + +2004-06-07 Ralf Angeli + + * tex.el (TeX-comment-padding-string): New function. + + * latex.el (LaTeX-newline): Do something sensible if point is + at the start of a commented line or inside of one and right at + the start of another one in the same line. + (LaTeX-insert-environment): Fix insertion of environments if + point is inside or right before a commented line. + (LaTeX-indent-line): Use `TeX-comment-padding-string'. + +2004-06-05 Ralf Angeli + + * font-latex.el (font-latex-make-title-faces): New function. + (font-latex-title-1-face, font-latex-title-2-face) + (font-latex-title-3-face): Now generated by + `font-latex-make-title-faces' and compatible with XEmacs. + (font-latex-title-4-face): Add face specification for XEmacs. + +2004-06-04 David Kastrup + + * tex-buf.el (TeX-view-mouse): New function. + + * tex.el (TeX-source-specials-map): Outcomment madcap mouse + bindings. + (minor-mode-map-alist): Remove TeX-source-specials manually, as I + can't figure out how to not get it placed there by + define-minor-mode. + (TeX-split-string): Correct docs. Simplify. + (TeX-parse-path): Fix pattern. + +2004-06-03 Ralf Angeli + + * tex.el (TeX-newline): New function. + (TeX-mode-map): Use it. + + * latex.el: Various checkdoc-related fixes. + (LaTeX-forward-paragraph): Check for and cope with multi-line + paragraph commands not only those with a single line. + Check for LaTeX macro at the end of a paragraph command. + (LaTeX-backward-paragraph): Check for and cope with multi-line + paragraph commands not only those with a single line. + (LaTeX-paragraph-command-p): Remove. + (LaTeX-find-macro-start): Find macro start even if point is + already at the start. + + * doc/auc-tex.texi (Marking and formatting): Split into + `Indenting' and `Filling'. + (Indenting): New section. + (Filling): New section. + + * doc/intro.texi: Fix key representations and reference to + `fill-paragraph'. + +2004-06-02 David Kastrup + + * tex-buf.el (TeX-format-filter): Don't use split-string which + appears to trigger an XEmacs bug. + +2004-06-02 Reiner Steib + + * tex.el (TeX-insert-macro-default-style): Fixed typo in doc-string. + +2004-06-01 Reiner Steib + + * tex.el (TeX-no-braces-modes): Removed. Revert unintened + addition from 2004-04-19 commit. + (TeX-insert-macro-default-style): New variable. + (TeX-parse-arguments): Use it. + (TeX-insert-macro): Document dependence on + `TeX-insert-macro-default-style' and prefix. Fix typo in comment. + +2004-05-29 Ralf Angeli + + * tex.el (TeX-source-specials-map): Fix key binding for XEmacs. + +2004-05-27 Ralf Angeli + + * aclocal.m4 (TEX_INPUT_DIRS): Quote regexps with square brackets. + + * tex.el (TeX-newline-function): Rename. Formerly known as + `TeX-newline'. + (TeX-mode-map): Use new name. + + * doc/auc-tex.texi (Marking and formatting): Rename `TeX-newline' + to `TeX-newline-function'. + +2004-05-26 Reiner Steib + + * style/graphicx.el (LaTeX-arg-includegraphics): Rewrite. + Optional macro arguments can be controlled by + `LaTeX-includegraphics-options-alist' now. + (LaTeX-includegraphics-extensions) + (LaTeX-includegraphics-read-file): New functions. + (TeX-include-graphics-simple): Removed; use + `LaTeX-includegraphics-options-alist' instead. + (TeX-string-divide-number-unit, TeX-default-unit-for-image): Moved + to `tex.el'. + + * latex.el (LaTeX-includegraphics-extensions) + (LaTeX-includegraphics-options-alist) + (LaTeX-includegraphics-strip-extension-flag): New options for + `style/graphicx.el'. + + * tex.el (TeX-kpathsea-path-delimiter): Fix doc-string. + (TeX-insert-macro, TeX-parse-arguments): Skip optional macro + arguments when called with a prefix. + (TeX-string-divide-number-unit, TeX-default-unit-for-image): From + `style/graphicx.el'. + (TeX-arg-maybe): New function. + + * latex.el (LaTeX-common-initialization): Added additional + arguments for \parbox. + +2004-05-26 Ralf Angeli + + * tex.el (TeX-newline): New name for `TeX-indent-on-newline'. It + now holds function definitions and not mere symbols anymore. + (TeX-mode-map): Use it. + + * doc/auc-tex.texi (Marking and formatting): Remove documentation + for `TeX-indent-on-newline' and document `TeX-newline'. + +2004-05-26 Ralf Angeli + + * tex.el (TeX-indent-on-newline): New option. + (TeX-mode-map): Use it. + + * doc/auc-tex.texi (Marking and formatting): Document + `TeX-indent-on-newline' plus small corrections. + +2004-05-25 David Kastrup + + * tex-buf.el (TeX-command): Add `override-confirm' argument. + (TeX-view): New function, without confirmation. + + * context.el (ConTeXt-mode-map): Inherit keymap instead of + copying. + + * latex.el (LaTeX-mode-map): Inherit keymap instead of copying. + + * tex.el (TeX-source-specials-map): New variable. + (TeX-source-specials): Make a minor mode. Replaces + `TeX-toggle-source-specials' and + `TeX-source-specials-active-flag'. + (TeX-source-specials-expand-options): Adapt to that. + (TeX-electric-macro-map): inherit from + `minibuffer-local-completion-map' instead of copying. + (plain-tex-mode): Help string uses `plain-TeX-mode-map'. + (TeX-mode-p): New variable, set in TeX modes. + (VirTeX-common-initialization): Set it. + (TeX-mode-map): Proper defvar. Add keybindings for + `TeX-source-specials' and `TeX-view'. + (plain-TeX-mode-map): Inherit instead of copy. + (AmSTeX-mode-map): Same here. + + * doc/auc-tex.texi: Change info dir formatting, adapt copyrights + according to the assignment process. + +2004-05-25 Ralf Angeli + + * doc/install.texi (Configure): Remove unused option + `--with-texmf-dir'. Document new option `--with-tex-input-dirs'. + + * doc/wininstall.texi: Ditto. Add information about new option + `--with-auto-dir'. + + * latex.el (LaTeX-backward-paragraph): Revert check-in of + 2004-05-24. + +2004-05-24 Ralf Angeli + + * latex.el (LaTeX-backward-paragraph): Recognize if point is at + the end of a line when the test for a macro following a paragraph + command is carried out. + +2004-05-23 Ralf Angeli + + * font-latex.el (font-latex-doctex-^^A): Add mistakenly deleted + space again. + +2004-05-21 Reiner Steib + + * style/graphicx.el (TeX-string-divide-number-unit): Renamed from + misspelled `TeX-string-divide-nuber-unit'. Reformat file. Fix + some doc-strings and comments. + +2004-05-20 Ralf Angeli + + * aclocal.m4 (TEX_INPUT_DIRS): New help string. Better error + handling. + +2004-05-19 David Kastrup + + * aclocal.m4: Comment EMACS_LISP. + (EMACS_TEST_LISPDIR): remove both trailing backslash and slash. + +2004-05-19 Ralf Angeli + + * latex.el (LaTeX-fill-move-to-break-point): Prevent infinite loop + in lines starting with whitespace. + (LaTeX-forward-paragraph): Don't consider paragraph commands + followed directly by a TeX macro as part of an adjacent paragraph. + (LaTeX-backward-paragraph): Ditto. + +2004-05-18 Davide G. M. Salvetti + + * aclocal.m4 (AUCTEX_AUTO_DIR): Change `autodir' default to + `${localstatedir}/auctex' to conform to the GNU Coding Standards. + Add `autodir_expanded' as the properly expanded version of + `autodir'. Inform the user about the check in progress. + * tex-site.el.in (TeX-lisp-directory): Use `@autodir_expanded@'. + +2004-05-17 Reiner Steib + + * aclocal.m4 (AUCTEX_AUTO_DIR): Avoid AS_HELP_STRING for + compatibility with autoconf < 2.58. + +2004-05-17 Ralf Angeli + + * aclocal.m4 (TEX_INPUT_DIRS): Use `--expand-braces' instead of + `--show-path' in the kpsewhich calls. Use `--expand-path' as a + fallback e.g. for MikTeX. Assume that we are dealing with a + TDS-compliant TeX system and add "/tex/" and "/bibtex/bst/" + subdirectories to the output of the kpsewhich calls accordingly. + + * latex.el (LaTeX-fill-newline): Don't use code specific to GNU + Emacs for XEmacs. Call `newline-and-indent' instead. + +2004-05-15 Davide G. M. Salvetti + + * aclocal.m4 (AUTO_DIR): Code cleaned; renamed to + `AUCTEX_AUTO_DIR'. + * configure.in: Change `AUTO_DIR' to `AUCTEX_AUTO_DIR'. + +2004-05-14 Davide G. M. Salvetti + + * style/italian.el (LaTeX-italian-open-quote) + (LaTeX-italian-close-quote): Use standard babel syntax rather than + latin1 characters. Patch by David Kastrup . + +2004-05-14 Ralf Angeli + + * latex.el (LaTeX-indent-calculate-last): Ignore commented lines + when called in a non-comment line. + + * style/scrbase.el (TeX-add-style-hook): Fontify \minisec like a + sectioning command. + +2004-05-14 Reiner Steib + + * tex.el (TeX-auto-generate): Bind `enable-local-eval'. + +2004-05-13 Davide G. M. Salvetti + + * doc/auc-tex.texi (European): Sort languages list alphabetically. + + * doc/install.texi (Configure): Document `--with-auto-dir'. + + * Makefile.in (DOCFILES): Added `doc/macros.texi'. + + * doc/Makefile.in (distclean): New. + +2004-05-13 Ralf Angeli + + * latex.el (LaTeX-env-item): Don't eat non-empty lines when + called on a marked region unless they only consist of whitespace + and comment characters. Fill the paragraph of a potentially + outdented line after insertion of \item. + + * aclocal.m4 (TEX_INPUT_DIRS): Repair quoting. + + * tex.el (TeX-kpathsea-format-alist): Rename. Formerly known as + `TeX-kpathsea-directory-alist'. Add information to every format + about the file extensions to be found. + (TeX-search-files-kpathsea): Adapt to new information in + `TeX-kpathsea-format-alist'. + (TeX-mode-specific-command-menu-entries): Move source specials + toggle up to first level of command menu. + +2004-05-12 Davide G. M. Salvetti + + * aclocal.m4 (AUTO_DIR): New function. + * configure.in: Use `AUTO_DIR' to expand `@autodir@' in + `tex-site.el.in'. + * Makefile.in (autodir): Use `@autodir@'. + * tex-site.el.in (TeX-auto-global): Definition moved from + `tex.el'. Use `@autodir@'. + * tex.el (TeX-auto-global): Definition moved to `tex-site.el.in'. + * lpath.el: Bind `TeX-auto-global'. + + * style/italian.el: New file. + * doc/auc-tex.texi (Font Specifiers): Removed two sentences + referring to the old behavior of the short-cuts for easy + insertions of fonts changing macros. (At that time they added + things like `{\it --!--}', now they add things like + `\textit{--!--}'.) + (Marking and formatting): Reflect renaming of + `LaTeX-format-comment-syntax-aware' to `LaTeX-syntactic-comments'. + (European): Document `italian.el'. + * Makefile.in (STYLESRC): Added `italian.el'. + + * lpath.el: Bind `TeX-macro-global'. + * tex.el: No need to `(require 'tex-site)' at compilation time, + see `lpath.el'. + +2004-05-12 David Kastrup + + * tex.el (TeX-source-specials-active-flag) + (TeX-source-specials-check-function, TeX-source-specials-xdvi-p) + (TeX-source-specials-check-xdvi) + (TeX-mode-specific-command-menu-entries) + (TeX-maybe-set-source-specials, TeX-toggle-source-specials): + Remove all checks for validity of the Source Special options. + Just assume that the user knows what he is asking for. + +2004-05-12 Ralf Angeli + + * aclocal.m4 (TEX_INPUT_DIRS): Don't use `findtexmf' but a + universal call of `kpsewhich' and unify paths separated by `;' + or `:'. + + * context.el (ConTeXt-mode-menu): Show `TeX-comment-or-uncomment-*' + functions in the menu instead of the comment and uncomment + functions which don't have a key binding. + + * tex.el (plain-TeX-mode-menu): Ditto. + (TeX-mode-map): Move definitions of `C-c ;' and `C-c %' downwards + so that they become visible in the menu. + + * latex.el (LaTeX-fill-region-as-para-do): Remove extra spaces + between words. + (LaTeX-mode-menu): Show `TeX-comment-or-uncomment-*' + functions in the menu instead of the comment and uncomment + functions which don't have a key binding. + +2004-05-11 David Kastrup + + * style/beamer.el: Updates from Thomas Baumann checked in. + +2004-05-10 Ralf Angeli + + * font-latex.el (font-latex-doctex-^^A): Add compatibility code + for Emacs 20 and XEmacs to fix compile error. + (font-latex-verbatim-face): Add parentheses to fix error with + Emacs 20. + (font-latex-doctex-preprocessor-face): Ditto. + (font-latex-doctex-documentation-face): Ditto. + + * style/prosper.el (LaTeX-prosper-insert-slide): Don't stay in + comment upon inserting a slide in an overlay. + +2004-05-09 Reiner Steib + + * tex.el (TeX-source-specials-check-function): Added "Always on" + choice. + +2004-05-09 Ralf Angeli + + * font-latex.el (font-latex-doctex-syntactic-keywords): Moved to + the right place and corrected quoting. + + * context.el (ConTeXt-indent-syntax-table): Create with + `make-syntax-table' instead of `easy-mode-defsyntax' to allow + compilation with Emacs 20. + + * aclocal.m4 (TEX_INPUT_DIRS): New function. + + * configure.in: Use `TEX_INPUT_DIRS' for the expansion of + `@texinputdirs@' in `tex-site.el.in'. + + * tex-site.el.in: Updated header. + (TeX-macro-global): Moved here from `tex.el'. Use + `@texinputdirs@'. + + * tex.el: Require `tex-site' at compile time. + (TeX-macro-global): Moved to `tex-site.el.in'. + +2004-05-09 Reiner Steib + + * tex.el (TeX-toggle-source-specials): Added missing call to + `TeX-maybe-set-source-specials' in last commit. + +2004-05-08 Ralf Angeli + + * font-latex.el (font-latex-verbatim-face) + (font-latex-doctex-preprocessor-face) + (font-latex-doctex-documentation-face): New variables and faces. + (font-latex-verbatim-environments, font-latex-syntactic-keywords) + (font-latex-doctex-syntactic-keywords) + (font-latex-doctex-keywords): New variables. + (font-latex-set-syntactic-keywords) + (font-latex-syntactic-face-function, font-latex-doctex-^^A) + (font-latex-doctex-syntactic-face-function): New functions. + (font-latex-setup): Set special `font-lock-defaults' for docTeX + mode. + (font-latex-commented-outp): Don't classify line comments in + docTeX mode as "real" comments. + + * latex.el (doctex-mode): Call `TeX-install-font-lock' to + activate special fontification in docTeX mode. + + * style/alltt.el (TeX-add-style-hook): Added "alltt" to + `font-latex-verbatim-environments'. + + * context.el: Updated header. + + * context-nl.el: Updated header. + + * context-en.el: Updated header. + (context-en-mode): Set `ConTeXt-current-interface' to "en". + +2004-05-06 Reiner Steib + + * tex.el (TeX-toggle-source-specials): Simplify the code. + +2004-05-06 Ralf Angeli + + * Makefile.in (DOCFILES): Added `todo.texi'. + +2004-05-05 Reiner Steib + + * tex.el (TeX-command-list, TeX-source-specials-expand-options) + (plain-tex-mode, TeX-view-extension, ams-tex-mode): Doc fixes. + + * tex.el (TeX-mode-hook, AmS-TeX-mode-hook): Have always been run, + but were not declared with defcustom (or defvar). + + * latex.el (LaTeX-mode-hook): Ditto. + + * Makefile.in (tar-ball-clean): New. + + * autogen.sh: Create README and TODO. + + * .cvsignore, doc/.cvsignore: Add TODO. + +2004-05-04 Ralf Angeli + + * tex.el (TeX-expand-list): Inserted new expander `%S' for source + specials command line option. + (TeX-command-list): Inserted `%S' for source specials support + where appropriate. + (LaTeX-command-style): Ditto. + (TeX-source-specials-expand-options): New function. + + * tex-buf.el: Updated header. + (TeX-style-check): Remove code specific to source specials and + thereby revert to state before 2004-04-27. + + * tex-jp.el: Updated header. + (japanese-TeX-command-list): Inserted `%S' for source specials + support where appropriate. + + * tex-fptex.el: Updated header. + (TeX-command-list): Inserted `%S' for source specials support + where appropriate. + (LaTeX-command-style): Setting removed. + + * tex-mik.el: Updated header. + (TeX-command-list): Inserted `%S' for source specials support + where appropriate. + (LaTeX-command-style): Setting removed. + + * doc/auc-tex.texi (Checking): Updated URL's for lacheck and + chktex. + +2004-05-02 Ralf Angeli + + * tex.el: Header updated. + (TeX-master-file): Removed bogus test for `TeX-header-end'. + + * doc/auc-tex.texi (ToDo): New name for node/section formerly + known as `Projects' or `Wishlist' respectively. + Removed items not relevant anymore and moved the rest to the new + file `doc/todo.texi'. + Removed `Credits' section. + + * doc/Makefile.in (TEXIFILES): New constant. + (auctex): Use it. + (dist): Added `TODO'. + (TODO): New target. + (clean): Added `TODO'. + Some formattig changes. + + * doc/todo.texi: New file. + + * Makefile.in (tar-ball): Added `TODO'. + + * doc/changes.texi: Advertise support for `beamer.cls'. + +2004-04-30 David Kastrup + + * tex-buf.el (TeX-command-expand): Add "%%" expansion, make order + of TeX-expand-list irrelevant, make the whole junk work + efficiently. + +2004-04-30 Ralf Angeli + + * latex.el: New header. + (LaTeX-indent-environment-list): Remove `alltt' and add support + for it in `alltt.el' instead. + + * Makefile.in (STYLESRC): Added `alltt.el'. + + * style/alltt.el: New file. + + * doc/changes.texi: Describe changes in quote insertion if + `german.sty' or `ngerman.sty' is used. + Advertise new style files. + +2004-04-29 Reiner Steib + + * tex-buf.el (TeX-style-check): New optional argument. This fixes + an error in the last commit. + + * tex.el (TeX-expand-list): Use it. + +2004-04-27 Reiner Steib + + * tex-buf.el (TeX-style-check, TeX-output-style-check): Check for + source special stuff here instead of `TeX-expand-list'. Honor + `TeX-source-specials-places'. + + * tex.el (AUCTeX): Fix URL. + (TeX-default-mode, TeX-force-default-mode, TeX-install-font-lock) + (TeX-source-specials-active-flag): Changed custom group. + (TeX-expand-list): Move source special stuff to `TeX-style-check' + and `TeX-output-style-check'. + (TeX-source-specials-tex-flags): Make it customizable. + (TeX-source-specials-places): New variable. + (TeX-source-specials-viewer-flags): No IFS needed anymore. + +2004-04-26 Reiner Steib + + * context.el (context-guess-current-interface): Simplify code. + +2004-04-25 Ralf Angeli + + * tex-info.el (texinfo-mode): Make last change in + `font-lock-defaults' compatible with Emacs 20. + + * latex.el (LaTeX-fill-region-as-paragraph): Indent lines ending + with `\\' upon filling a region. + (LaTeX-fill-region): Prevent infinite loop at end of buffer. + +2004-04-24 David Kastrup + + * style/natbib.el ("natbib"): Add fontification for regexps. + Patch by Thomas Baumann. + +2004-04-24 Ralf Angeli + + * tex-info.el (texinfo-mode): Set `font-lock-defaults' as in + `texinfo.el'. This way we get e.g. syntax-highlighting of + comments in Texinfo mode. + +2004-04-24 Reiner Steib + + * tex.el (TeX-toggle-source-specials) + (TeX-maybe-set-source-specials, TeX-source-specials-check-xdvi): + New (renamed) functions. + (TeX-source-specials-active-flag, TeX-source-specials-tex-flags) + (TeX-source-specials-viewer-flags) + (TeX-source-specials-check-function, TeX-source-specials-xdvi-p): + New (renamed) variables. Tried to clarify doc-strings and + variable names. + +2004-04-23 David Kastrup + + Source special support by Dan Nicolaescu : + * tex.el (TeX-command-list): start viewer with TeX-run-discard + (TeX-expand-list): Add source special flags to viewer call. + (TeX-expand-list): Add source special flags to LaTeX call. + Various new functions. + (TeX-current-file-name-master-relative): New function replacing + TeX-current-file-name-nondirectory (which is not really needed, I + guess). This change sole fault of dak. + (TeX-mode-specific-command-menu-entries): Source Special entry. + +2004-04-23 Ralf Angeli + + * latex.el (LaTeX-fill-region-as-paragraph): Fix call to + `indent-region' for "older" Emacsen. + (LaTeX-mode-menu): Fix menu extension for customization. + + * context.el (ConTeXt-mode-menu): Fix menu extension for + customization. + + * tex-info.el (TeXinfo-insert-environment): Support enclosure of + a selected region by the environment to be inserted. + Don't eat newline at the end of the environment. + (TeXinfo-mode-map): Bind `C-c C-e' to `TeXinfo-insert-environment' + analogous to LaTeX mode. + +2004-04-21 Ralf Angeli + + * style/slides.el: Remove obsolete SliTeX-related code and + replace it by minimal support for slides.cls. + + * latex.el: Change spaces to tabs in indentation. + (LaTeX-fill-region-as-paragraph): Filling is disabled for + environments listed in `LaTeX-indent-environment-list'. To be + consistent with filling of other environments where indentation + occurs, at least indent those environments. + + * tex.el: Change spaces to tabs in indentation. + +2004-04-20 Reiner Steib + + * tex.el (TeX-output-view-style): Move "dvips && gv" element to + the top of the list (not shadowed by a4paper anymore). Added + "pst-" in this element. + +2004-04-20 Ralf Angeli + + * latex.el (LaTeX-current-environment): Respect value of + `LaTeX-syntactic-comments' and mode by narrowing the region if + necessary and checking necessary conditions. Use + `TeX-forward-comment-skip' and `TeX-backward-comment-skip' for + narrowing. + (LaTeX-find-matching-end): Ditto. + (LaTeX-find-matching-begin): Ditto. + (docTeX-in-macrocode-p): New function. + + * tex.el: More checkdoc-related fixes. + +2004-04-20 David Kastrup + + * style/natbib.el: Patch from Thomas Baumann for \bibpunct. + + * Makefile.in (STYLESRC): Add style/beamer.el. + + * style/beamer.el: Support file contributed by Thomas Baumann. + +2004-04-19 Reiner Steib + + * tex.el, latex.el: Make almost checkdoc clean. See "FIXME" for + remaining issues. + + * context.el, context-en.el, context-nl.el: Reindent. Coding + conventions fixes (but files are still far from being checkdoc + clean). + +2004-04-19 Berend de Boer + + * context-en.el (ConTeXt-default-environment-en): added default + environment for en interface. + + * context-nl.el (ConTeXt-default-environment-nl): added default + environment for nl interface. + + * context.el (ConTeXt-default-environment): now depends on language. + +2004-04-16 Ralf Angeli + + * tex.el (TeX-view-style): Enhance documentation string. + (TeX-output-view-style): Ditto. + +2004-04-16 Reiner Steib + + * tex-info.el (TeXinfo-command-menu): Use + `TeX-mode-specific-command-menu'. + + * tex-jp.el (plain-TeX-mode-command-menu) + (LaTeX-mode-command-menu): Ditto. + +2004-04-16 David Kastrup + + * Makefile.in (STYLESRC): Add jura.el and alphanum.el + style/jura.el, style/alphanum.el: contributed by Frank Küster. + +2004-04-16 Berend de Boer + + * context.el (context-guess-current-interface): support for + recognizing interface=XX in comment to determine language to use. + + * tex.el (TeX-format-list): recognize ConTeXt dutch interface. + + * Makefile.in: AUCSRC includes the new context-en.el and context-nl.el. + Ditto fo AUCELC. + + * context.el: English interface macro's moved to context-en.el. + All defmacro's are now replaced by defvars which are set to the + proper language dependent interface as a local buffer variable. + Some changes to make the context mode actually multi-lingual. + (ConTeXt-mode-common-initialization): new routine with + initialization common to all ConTeXt modes. + (context-mode): guesses current interface for en and nl interfaces. + (context-guess-current-interface): new routine that determines + what ConTeXt language interface is in use. + + * context-nl.el: new file containing Dutch interfaces macro's + previously in context.el. Use context-nl-mode to activate. + + * context-en.el: new file containing English interfaces macro's + previously in context.el. Use context-en-mode to activate. + +2004-04-15 Ralf Angeli + + * tex.el (TeX-mode-specific-command-menu): Now holds the logic for + returning a Command menu definition suitable for different Emacs + versions. Its original content is now in the function + `TeX-mode-specific-command-menu-entries'. + (TeX-mode-specific-command-menu-entries): New function. + (plain-TeX-mode-command-menu): Simply use + `TeX-mode-specific-command-menu' instead of the logic which now + is part of it. + (AmSTeX-mode-command-menu): Ditto. + + * latex.el (LaTeX-mode-command-menu): Ditto. + + * context.el (ConTeXt-mode-command-menu): Ditto. + +2004-04-14 Reiner Steib + + * doc/Makefile.in (clean): Remove *.tmp (created with auc-tex.ps). + + * doc/.cvsignore: Added *.tmp. + + * .cvsignore: Revert 2004-04-12 change. Added README. + + * Makefile.in (tar-ball): .nosearch is not useful here. + +2004-04-13 David Kastrup + + * aclocal.m4: Try something in AC_FULL_EXPAND that does not + require bash. + Replace ' with quote in EMACS_LISP + Correct a few instances of misspelled AUCTeX. + +2004-04-13 Reiner Steib + + * Makefile.in (DOCFILES, EXTRAFILES): Added files needed for the + configure based installation. + +2004-04-12 Reiner Steib + + * Makefile.in (dist): Split into `check-dist', `release-commit' + and `tar-ball'. + (snapshot): New. Use `check-dist' and `tar-ball'. + (release-commit): Fix mail address. + (REMOVE, MINMAPSRC, min-map): Removed. + (DIST_PREFIX): Derive FTPDIR and WWWDIR from this. + + * doc/Makefile.in (dist): Use INSTALL and INSTALL.windows instead + of INSTALLATION. + + * doc/.cvsignore: Added INSTALL, INSTALL.windows, auc-tex.ps + + * .cvsignore: Removed INSTALL, INSTALL.windows. + +2004-04-12 Ralf Angeli + + * latex.el (LaTeX-syntactic-comments): New name. Formerly known + as `LaTeX-format-comment-syntax-aware'. This should better + reflect the meaning the variable will receive eventually. + (LaTeX-indent-line): Use new name. + (LaTeX-current-indentation): Ditto. + (LaTeX-back-to-indentation): Ditto. + (LaTeX-fill-paragraph): Ditto. + (doctex-mode): Ditto. + + * context.el (context-mode): Use `LaTeX-syntactic-comments' + instead of `LaTeX-format-comment-syntax-aware'. + +2004-04-10 Ralf Angeli + + * doc/auc-tex.texi (Japanese): Refer to `INSTALL' instead of + `INSTALLATION'. + + * doc/intro.texi: Refer to `INSTALL' and `INSTALL.windows' + instead of `INSTALLATION'. + + * IRIX: Removed. + + * Makefile.in (EXTRAFILES): Removed IRIX. + + * COPYING: Updated to current incarnation. + +2004-04-09 Reiner Steib + + * Makefile.in (install-el, dist): Add .nosearch in style/ and + auto/. + +2004-04-09 Ralf Angeli + + * context.el (ConTeXt-current-interface): eval-and-compile instead + of eval-when-compile seems to solve the undefined error message. + +2004-04-08 Peter S Galbraith + + * font-latex.el (font-latex-setup): Bug Fix; was overriding + font-latex-string-face. Thanks to Reuben Thomas for finding the bug. + +2004-04-08 Jan-Ã…ke Larsson + + * configure.in: Remove sole reference to texmfdir + + * aclocal.m4: Fix --with-lispdir + +2004-04-08 Ralf Angeli + + * latex.el (LaTeX-fill-paragraph): Fix check for code comment. + (LaTeX-fill-code-comment): Ditto. + + * tex.el (TeX-in-commented-line): Don't alter match data. Fixes + problems with `LaTeX-find-matching-end'. + (TeX-in-line-comment): Ditto. (Prophylactic.) + +2004-04-08 Berend de Boer + + * latex.el (LaTeX-outline-name): could reach past end of buffer + when an imenu was created and LaTeX-outline-regexp contained a + macro that either didn't take a argument between braces or a macro + was found in the document and the user forgot to specify the + argument. And that macro was after the last 20 characters of the + buffer. + + * context.el (ConTeXt-current-interface): eval-when-compile this + variable fixed another reported compiliation error. + +2004-04-07 Reiner Steib + + * latex.el (LaTeX-default-position, LaTeX-env-array) + (LaTeX-env-tabular*): Implement "don't prompt" option. + + * doc/auc-tex.texi (Tabular-like): Added `LaTeX-default-format' + and `LaTeX-default-position'. + +2004-04-07 Ralf Angeli + + * latex.el (LaTeX-fill-break-at-separators): New name. Formerly + known as `LaTeX-fill-distinct-contents'. + Changed 'braced and 'math options to various symbols for opening + and closing separators (braces, brackets, math switches) which + can be activated independently. + (LaTeX-fill-move-to-break-point): Use it. + + * doc/auc-tex.texi (Marking and formatting): Reflect change of + `LaTeX-fill-distinct-contents' to + `LaTeX-fill-break-at-separators'. + Describe `LaTeX-fill-break-before-code-comments'. + +2004-04-07 David Kastrup + + * tex-buf.el (TeX-run-command): Turn off line number mode in the + run-buffer effectively by setting line-number-display-limit + locally to 0. + (TeX-format-filter): Use a more sophisticated procedure for + fishing out page numbers in order to have fast matches. + +2004-04-07 Berend de Boer + + * Lots of enhancements to context.el. There is now a ConTeXt + specific menu which lists ConTeXt specific macro's for inserting + start/stop pairs, project structure and setup of things. Menu also + let's you jump to the etexshow definition if you have that + installed. Querying for macro parameters is non-existent or + flaky. outline and imenu support added. You can close an XML tag + if you're editing XML in ConTeXt with C-c /. + List of environments is now complete. + Paragraph formatting works in certain cases, but is really slow or + doesn't work in certain cases. + Indenting the same: works sometimes, but still flaky. + Bugs fix: start/stop insertion works now. + + * documentation now mentions ConTeXt sometimes. + + * context.el (ConTeXt-current-interface): make now doesn't complain + anymore when byte compiling ConTeXt. + + * tex.el now recognizes ConTeXt dutch interface. + +2004-04-05 Ralf Angeli + + * latex.el (LaTeX-fill-code-comment): Respect `indent-tabs-mode'. + Fix partially taken from GNU Emacs' fill.el. + + * tex.el (TeX-mode-specific-command-list): New function. + (TeX-mode-specific-command-menu): Use it. + + * tex-buf.el (TeX-command-query): Use + `TeX-mode-specific-command-list' to get a command list specific + to the current mode for command completion. + +2004-04-04 Ralf Angeli + + * latex.el (docTeX-indent-inner-fixed): New var. + (LaTeX-indent-calculate): Use it. + (LaTeX-indent-calculate-last): Reset indentation to zero after + macrocode environments. + + * style/booktabs.el (TeX-add-style-hook): Add fontification + support. + +2004-04-04 David Kastrup + + * latex.el (LaTeX-find-matching-end, LaTeX-find-matching-end): Try + to keep track of in-comment-ness + +2004-04-03 David Kastrup + + * Makefile.in (STYLESRC): Add emp.el. + + * style/emp.el: New file contributed from Yvon Hevel. + +2004-04-02 Ralf Angeli + + * latex.el (LaTeX-back-to-indentation): Use `beginning-of-line' + instead of `move-to-left-margin' as it is faster and we don't use + the margin anyway. + (LaTeX-fill-region-as-para-do): Use `point-max' for correctly + determining the end of the filling loop in case of a code comment. + Narrow to region in any case to simplify this determination in + case there is no code comment. + (LaTeX-fill-move-to-break-point): Fix compatibility code for + getting the initial break point. In case there is no valid break + point on the way towards the beginning of the line, look down the + line. + +2004-03-28 Ralf Angeli + + * tex.el (TeX-output-view-style): Remove option for landscape in + case of PDF output. + +2004-03-26 David Kastrup + + * latex.el (LaTeX-fill-region): Correct percentage display. + + * tex-buf.el (TeX-format-filter): Strictly restrict backward + searches for page number patterns. + +2004-03-26 Davide G. M. Salvetti + + * bib-cite.el, latex.el, tex-buf.el, tex-jp.el, tex.el: + Map (function (lambda ...)) to (lambda ...) for better + readability. + + * doc/.cvsignore: Added CHANGES, HISTORY, README, auc-tex*.html. + + * doc/intro.texi: Minor fix. + +2004-03-26 Ralf Angeli + + * latex.el (LaTeX-indent-line): Use `looking-at' instead of + `re-search-forward'. Pass indent amount to + `LaTeX-indent-{inner,outer}-do' functions. + (LaTeX-indent-inner-do, LaTeX-indent-outer-do): Let them be called + with an explicit parameter for the indent amount. + (LaTeX-indent-calculate-last): Distinguish a commented and an + uncommented line when skipping backwards to the preceding line. + Move tests for comment skips into the `cond' statement for better + readability. + (LaTeX-fill-break-before-code-comments): New customize option. + (LaTeX-fill-region-as-paragraph): Change the regular expression + which is used for searching for special line ends so that it is + not such a performance hog. Code for determining the region to + fill was adapted accordingly. + (LaTeX-fill-region-as-para-do): Remove trailing whitespace after + newlines were changed to spaces. Reported by Reiner Steib + . + Use `narrow-to-region' for keeping track of potential code comment + starts. + Break a line at the last non-comment word before a code comment. + This can be configured with + `LaTeX-fill-break-before-code-comments'. + (LaTeX-fill-move-to-break-point): Use `LaTeX-back-to-indentation' + for going to the right start of a line. + (LaTeX-fill-paragraph): `LaTeX-backward-paragraph' does not skip + forward over empty lines itself anymore, so do it here. + (LaTeX-fill-region): Use `LaTeX-forward-paragraph' and + `LaTeX-backward-paragraph' instead of the old code which + determined paragraph boundaries manually. + (LaTeX-forward-paragraph, LaTeX-backward-paragraph): Improve + handling of paragraph commands. + (LaTeX-paragraph-command-p): Get rid of the test for the opening + brace because there doesn't have to be one. + (LaTeX-find-macro-start): New function. + (LaTeX-find-macro-end): New function. + + * .cvsignore: Added `tex-site.el'. + +2004-03-23 David Kastrup + + * tex.el (VirTeX-common-initialization): Back out last change + about sentence-end-double-space. + +2004-03-22 Jan-Ã…ke Larsson + + * aclocal.m4, configure.in: Fix bug for the case $prefix=NONE + + * Makefile.in: distclean target removes tex-site.el + +2004-03-22 David Kastrup + + * latex.el (LaTeX-fill-distinct-contents): Simplify customization + type: nil is a complete list. + +2004-03-21 David Kastrup + + * tex.el (VirTeX-common-initialization): Set + sentence-end-double-space and sentence-end to more appropriate + values for TeX. + +2004-03-21 Ralf Angeli + + * latex.el (LaTeX-fill-region-as-paragraph): Fix separation of + lines with code comments looking like " {%". + (LaTeX-fill-move-to-break-point): Fix determination of break point + for an opening brace where there is no break point immediately + after the respective closing brace. + (LaTeX-fill-region-as-para-do): Fix determination of code comment + begin in filling loop. + +2004-03-20 Ralf Angeli + + * latex.el (LaTeX-fill-region-as-para-do): Fix compatibility code + for older Emacsen. + +2004-03-19 David Kastrup + + * tex-site.el.in (texinfo-mode): Autoload tex-info again. I + suppose we will get to know why it was disabled when someone + complains. + +2004-03-19 Davide G. M. Salvetti + + * doc/Makefile.in (clean): Add HISTORY. + + * tex.el (TeX-lisp-directory): Removed, it's already defined in + tex-site.el.in. + +2004-03-19 Ralf Angeli + + * latex.el (LaTeX-current-environment): Use correct regexp for + determination of a comment. + (LaTeX-format-comment-syntax-aware): Renamed from + `LaTeX-fill-comment-syntax-aware' because it affects both filling + and indentation. + (LaTeX-indent-line): Add support for doing outer and inner + indentation. + (LaTeX-current-indentation): Ditto. + (LaTeX-back-to-indentation): Ditto. + (LaTeX-indent-calculate): Ditto. + (LaTeX-indent-calculate-last): Ditto. Fix indentation for + environments mentioned in `LaTeX-document-regexp' which use an + unclosed brace in the first line. + (LaTeX-indent-inner-do): New function. + (LaTeX-indent-outer-do): New function. + (LaTeX-fill-region-as-paragraph): Include lines with code comments + in regions to be filled. Recognize lines ending with `\par' as + boundaries for filling. + (LaTeX-fill-region-as-para-do): Better handling of code comments. + (LaTeX-fill-paragraph): Make function more readable by selecting + different filling methods by a `cond' statement and putting code + for the determination of the region to fill in case of + syntax-aware filling into the separate functions + `LaTeX-forward-paragraph' and `LaTeX-backward-paragraph'. Better + handling of code comments. + (LaTeX-fill-code-comment): New function. + (LaTeX-forward-paragraph): New function. + (LaTeX-backward-paragraph): New function. + (LaTeX-paragraph-command-p): New function. + (LaTeX-common-initialization): Let `paragraph-start' handle + comments preceded by whitespace as well. + (LaTeX-fill-move-to-break-point): Support `\[' and `\]' as well + if `LaTeX-fill-distinct-contents' is activated. + + * tex.el (tex-mode): `comment-start-skip' shouldn't match line + beginnings. + (VirTeX-common-initialization): Ditto. + (TeX-in-line-comment): New function. + (TeX-forward-comment-skip): Use correct regexp for determination + of a comment. Fix case where `count' is less than zero, i.e. if + a backward search is performed. + (TeX-backward-comment-skip): New function. + + * doc/auc-tex.texi: Reflect name change of + `LaTeX-fill-comment-syntax-aware' to + `LaTeX-format-comment-syntax-aware'. + +2004-03-18 Jan-Ã…ke Larsson + + * Makefile.in, configure.in, tex-site.el, tex-site.el.in: + Move tex-site.el to tex-site.el.in, generate tex-site.el at configure + time rather than at install time + +2004-03-18 Ralf Angeli + + * tex.el (TeX-output-view-style): Use `%f' instead of `%s.ps' for + PostScript files. + (TeX-mode-map): Change key binding of `TeX-master-file-ask' to + `C-c_' because `C-c-' is already taken by RefTeX. + + * doc/auc-tex.texi: Change "Formatting" node to "Running TeX and + friends" and use a respective heading. + Adapt key binding for `TeX-master-file-ask'. + + * doc/intro.texi: Correct URLs. + +2004-03-14 David Kastrup + + * tex.el (TeX-command-list): Change interactive calls to use + \input, so that pdflatex \pdfoutput=0 becomes a legal way to call + LaTeX. + (VirTeX-common-initialization): Save TeX-master if desktop + package is used. + +2004-03-14 Ralf Angeli + + * tex.el (TeX-output-view-style): Fix it after it was accidently + and incorrectly changed with the last check-in. Patch by David + Kastrup . + (TeX-view-style): Ditto. + +2004-03-11 Ralf Angeli + + * tex.el (TeX-find-opening-brace): Don't match the char before the + brace. This returns the correct position and fixes the handling + of the limit parameter. + + * latex.el (LaTeX-fill-move-to-break-point): Don't match the char + before the char to find in case of backward searches. + (LaTeX-fill-region-as-paragraph): Make the regular expression, + which serves searching for lines with code comments, match the + whole line. + +2004-03-10 Ralf Angeli + + * latex.el (LaTeX-fill-move-to-break-point): Use `TeX-esc' in + other, similar places not covered by the last check-in as well. + + * doc/auc-tex.texi: Document `LaTeX-indent-environment-list', + `LaTeX-fill-comment-syntax-aware' and + `LaTeX-fill-distinct-contents' as well as slightly improve some + other parts in the section about `Marking and formatting'. + +2004-03-10 David Kastrup + + * latex.el (LaTeX-fill-move-to-break-point): Use TeX-esc in + regexps to accommodate Texinfo better. + (LaTeX-fill-move-to-break-point): no regexp-quote within braces. + (LaTeX-common-initialization): Correct \multicolumn prompt + +2004-03-09 Ralf Angeli + + * latex.el (LaTeX-fill-move-to-break-point): Cope with unmatched + closing braces when `LaTeX-fill-distinct-content' is enabled for + braced content. + +2004-03-09 Jan-Ã…ke Larsson + + * Makefile.in: Add separate target for .el files to cater for debian + +2004-03-07 Ralf Angeli + + * style/booktabs.el: New file. + + * Makefile.in (STYLESRC): Add `booktabs.el'. + + * doc/changes.texi: Advertise support for `booktabs.sty'. + +2004-03-06 Ralf Angeli + + * doc/auc-tex.texi: Small corrections in `Viewing' section. + +2004-03-02 Jan-Ã…ke Larsson + + * doc/Makefile.in: Add packagedir + +2004-03-02 Ralf Angeli + + * latex.el (LaTeX-insert-environment): Fix insertion of newlines + for the case where `LaTeX-insert-into-comments' is activated but + point is not inside a comment. + +2004-02-28 David Kastrup + + * Makefile.in (install-lisp): Overwrite old tex-site.el if it has + the "Don't edit" comment in it. Rename it otherwise. Use + $(auctexdir) instead of $(lispdir) for replacing @AUCTEX. + + * tex-buf.el (TeX-command-query): Allow doctex-mode for .bbl file + checking. + + * tex-site.el: Discourage customization in-file. + + * latex.el (LaTeX-outline-regexp, LaTeX-environment) + (LaTeX-document-style-hook): Change docs to refer to document + classes instead of document style. + (LaTeX-env-document): Don't insert anything but document class. + (LaTeX-menu-update): Check for doctex-mode. + (doctex-mode): Make it a major mode derived from latex-mode. + +2004-02-28 Ralf Angeli + + Merge with new-fill branch. + +2004-02-27 Jan-Ã…ke Larsson + + * configure.in: Respect --infodir even if using xemacs. + + * aclocal.m4: Add yes/no answer for the MULE check. + + * Makefile.in: Correct xemacs-install. + + * Makefile.in, aclocal.m4, configure.in: If there is a wrongly + installed tex-site.el, use the proper install directory anyway + (i.e., don't be side-tracked), and remove the wrongly installed + tex-site.el. These things are only needed for CVS users who have + used the erroneous xemacs-installation. + +2004-02-27 Ralf Angeli + + * latex.el (LaTeX-mode-menu): Insert customize option and + rearrange. + (LaTeX-fill-move-to-break-point): Bandaid for not breaking inside + square brackets where the content fits into one line. + + * tex.el (plain-TeX-mode-menu): Insert customize option. + + * doc/auc-tex.texi: Document options for inserting quotes in files + where `(n)german.sty' is used and the invocation of external + viewers. + +2004-02-26 Ralf Angeli + + * latex.el (LaTeX-fill-break-before-macro) + (LaTeX-fill-break-after-macro): Unused, so removed. + (LaTeX-fill-distinct-contents): New name for defcustom + `LaTeX-fill-break-before-and-after'. + (LaTeX-fill-move-to-break-point): Fix filling of nested braces and + math. + (TeX-find-closing-brace, TeX-find-opening-brace) + (TeX-forward-comment-skip): Moved to `tex.el'. + + * tex.el (TeX-find-closing-brace, TeX-find-opening-brace) + (TeX-forward-comment-skip): Moved from `latex.el'. + +2004-02-26 David Kastrup + + * latex.el (doctex-mode): Make a minor mode. + + * tex-site.el (doctex-mode): Add autoloads and file extensions. + + * tex.el (TeX-master-file): Don't overwrite TeX-master when not + asking the question. + +2004-02-22 David Kastrup + + * latex.el (LaTeX-newline): New function. Spread it throughout + the code in order to stay in comments for completion and + insertion commands. + (doctex-mode): New function. + +2004-02-19 David Kastrup + + * latex.el (LaTeX-fill-paragraph): Back out changes from + 2003-12-29. + Create separate new-fill branch for Ralf's code. + +2004-02-17 Reiner Steib + + * font-latex.el (font-latex-title-4-face): Added missing :weight + and :inherit for color displays. + +2004-02-15 Peter S Galbraith + + * bib-cite.el (bib-cite-fontify-help-as-bibtex) + (bib-cite-fontify-help-as-latex): Check existence of + font-lock-unset-defaults; no longer defined in CVS Emacs. + Thanks to Adrian Lanz for reporting the problem. + +2004-02-15 Reiner Steib + + * font-latex.el (font-latex-title-4-face): Use different colors + depending on background. + +2004-02-03 Ralf Angeli + + * tex.el (TeX-comment-region): Map to `comment-region' instead of + `TeX-comment-or-uncomment-region'. + (TeX-uncomment-region): New name for `TeX-un-comment-region'. Not + mapped to `TeX-comment-or-uncomment-region' anymore. + (TeX-uncomment): New name for `TeX-un-comment'. Use + `TeX-uncomment-region' instead of `uncomment-region' which is not + available in Emacs 20. + (TeX-comment-or-uncomment-paragraph): New name for + `TeX-comment-paragraph' which explains its function better. Use + new name `TeX-uncomment'. + (TeX-mode-map): Bind key chains to `TeX-comment-or-uncomment-*' + functions. + (plain-TeX-mode-menu): Adapt function calls in menu entries. + + * tex-info.el (TeXinfo-mode-map): Bind key chains to + `TeX-comment-or-uncomment-*' functions. + (TeXinfo-mode-menu): Adapt function calls in menu entries. + + * latex.el (LaTeX-mode-menu): Adapt function calls in menu + entries. Small enhancements. + + * doc/auc-tex.texi (Commenting): Adapt documentation to reflect + changes in commenting interface. + +2004-01-31 Ralf Angeli + + * tex.el (TeX-comment-or-uncomment-region): New function or alias + respectively introduced to obtain compatibility with GNU Emacsen + before 21.4. + (TeX-uncomment-region): New function or alias respectively + introduced to obtain compatibility with GNU Emacsen before + 21(.1?). + (TeX-comment-region): Bound to `TeX-comment-or-uncomment-region'. + (TeX-un-comment-region): Bound to `TeX-comment-or-uncomment-region'. + +2004-01-27 Masayuki Ataka + + * tex-jp.el (TeX-command-list): Fixed previous change. + +2004-01-25 Masayuki Ataka + + * tex-jp.el (japanese-TeX-command-list): Remove dummy code for + command menu. + +2004-01-23 Masayuki Ataka + + * tex-jp.el (japanese-TeX-command-list): Change single quotes to + double. We get reasonable results under both Windows and Unix. + See also log of TeX-command-list in tex.el on 2002-12-19. + + * tex.el (TeX-toggle-off-input-method): Removed some Japanese + input methods (Canna, Wnn, SKK) because their code is copied from + YaTeX, which is not GPL program. Toggle off CJK (Chinese, Japanese, + Korean) input methods in LEIM. + (TeX-math-toggle-off-input-method): Doc fix. + +2004-01-13 Ralf Angeli + + * latex.el (LaTeX-mode-menu): Removed menu filters in the submenus + for inserting and modifying environments which call + `LaTeX-menu-update'. + (LaTeX-common-initialization): Add `LaTeX-menu-update' to + `activate-menubar-hook' instead. + +2004-01-12 Ralf Angeli + + * tex.el (TeX-view-style, TeX-output-view-style): Use a regexp + which matches `a5', `a5comb' and `a5paper' instead of the old + which matches only `a5'. + +2004-01-12 Ralf Angeli + + * tex.el (TeX-command-menu-name): New constant. + (TeX-mode-specific-command-menu): Reimplemented the loop which + builds the menu. + (TeX-mode-command-menu): Use new constant and call + `TeX-mode-specific-command-menu' via `:filter'. + (AmSTeX-mode-command-menu): Ditto. + + * context.el (ConTeXt-mode-command-menu): Use new constant + `TeX-command-menu-name' and call `TeX-mode-specific-command-menu' + via `:filter'. + + * latex.el (LaTeX-mode-command-menu): Ditto. + + * tex-info.el (TeXinfo-mode-command-menu): Ditto. + + * tex-jp.el (plain-TeX-mode-command-menu) + (LaTeX-mode-command-menu): Ditto. + +2004-01-10 Ralf Angeli + + * doc/changes.texi: Added further news. + +2004-01-09 Ralf Angeli + + * doc/auc-tex.texi: AUC TeX to AUCTeX. Use `%%%' instead of a + single `%' character in examples for Local Variables. Add + information about new behavior in respect to the query for the + master file. Explain new function `TeX-master-file-ask'. + + * doc/changes.texi: Advertise new master file behavior. Remove + news about new commenting behavior which is not true anymore. + + * doc/intro.tex.: AUC TeX to AUCTeX. + + * tex.el (TeX-local-master-p): Removed one `%' character in regexp + to let it find "% TeX-master:" as well. + +2004-01-07 Ralf Angeli + + * tex.el (TeX-command-list): Changed defcustom definition to one + which allows the specification of several modes for one command + and adapted the defaults to it. Thanks to David Kastrup for most + of the code. + (plain-TeX-command-menu): Adapted the call to + `TeX-mode-specific-command-menu'. + (AmSTeX-mode-command-menu): Ditto. + + * latex.el (LaTeX-mode-command-menu): Adapted the call to + `TeX-mode-specific-command-menu'. + + * context.el (ConTeXt-mode-command-menu): Ditto. + + * tex-info.el (TeXinfo-mode-command-menu): Ditto. + + * tex-jp.el (japanese-TeX-command-list): Adapted list entries + according to defcustom changes in `tex.el'. + (plain-TeX-mode-command-menu): Adapted the call to + `TeX-mode-specific-command-menu'. + (LaTeX-mode-command-menu): Ditto. + + * tex-mik.el (TeX-command-list): Adapted list entries + according to defcustom changes in `tex.el'. + + * tex-fptex.el (TeX-command-list): Ditto. + +2004-01-06 Ralf Angeli + + * tex.el (TeX-command-list): Get rid of the superfluous sixth + element in the defcustom and menu/command definitions. + + * tex-jp.el (japanese-TeX-command-list): Ditto. + + * tex-mik.el (TeX-command-list): Ditto. + + * tex-fptex.el (TeX-command-list): Ditto. + +2004-01-05 David Kastrup + + * latex.el (LaTeX-common-initialization): Add \item to the + paragraph starters. + +2004-01-05 Ralf Angeli + + * tex.el (TeX-mode-specific-command-menu): New function to be used + for generating a mode-specific command menu. + (plain-TeX-mode-map): New map to be used by plain-tex-mode. + (plain-TeX-mode-command-menu): New menu used instead of + `TeX-mode-menu' which utilizes `TeX-mode-specific-command-menu'. + (TeX-mode-menu): Removed in favor of + `plain-TeX-mode-command-menu'. + (AmSTeX-mode-map): New map to be used by ams-tex-mode. + (AmSTeX-mode-command-menu): New menu. + (ams-tex-mode): Moved and grouped with other AmSTeX-related code. + Added code to use new menu. + (TeX-command-list): Added new choice for the selection of the mode + for the respective command. Adapted doc string. Added respective + symbols to command definitions. Rearranged command definitions. + Changed `LaTeX PDF' to `PDFLaTeX'. + + * latex.el (LaTeX-mode-command-menu): New menu used instead of + `TeX-mode-menu'. + (LaTeX-common-initialization): Activate it. + + * context.el (ConTeXt-mode-command-menu): New menu used instead of + `TeX-mode-menu'. + (context-mode): Activate it. + + * tex-info.el (TeXinfo-command-menu): Adapted for using + `TeX-mode-specific-command-menu'. + + * tex-jp.el (japanese-TeX-command-list): Added symbols to command + definitions needed for assigning them to the respective mode. + (TeX-mode-menu): Removed. + (plain-TeX-mode-command-menu): New menu utilizing + `TeX-mode-specific-command-menu'. + (LaTeX-mode-command-menu): New menu utilizing + `TeX-mode-specific-command-menu'. + (LaTeX-mode-map): Removed key definition for `TeX-mode-menu'. + + * tex-fptex.el (TeX-command-list): Added symbols to command + definitions needed for assigning them to the respective mode. + Changed `LaTeX PDF' to `PDFLaTeX'. + + * tex-mik.el (TeX-command-list): Ditto. + + * doc/changes.texi: Mention the change to a mode-specific command + menu and the need for the deletion of any former customization of + `TeX-command-list'. + +2004-01-03 Ralf Angeli + + * tex.el (TeX-mode-map): Use `C-c -' as a key binding for + `TeX-master-file-ask' as `C-c !' is already used in `context.el'. + +2004-01-02 David Kastrup + + * latex.el (LaTeX-left-comment-regexp) + (LaTeX-right-comment-regexp, LaTeX-ignore-comment-regexp): revert + an inadvertant change two checkins ago. I was just experimenting + with something that did not yet work (as if the original did) and + did not intend checking it in. + +2003-12-30 Ralf Angeli + + * tex.el (TeX-master-file): Added new parameter `ask' which is + to be used if the user shall be asked when the function is + called. Took out the code which provides the functionality for + asking the respective question and added it to the newly created + function `TeX-master-file-ask'. + (TeX-master-file-ask): New function. + (TeX-local-master-p): New function. + (tex-mode): Removed the call of `TeX-master-file' via the hook + `hack-local-variables-hook'. + (VirTeX-common-initialization): Added the call to + `TeX-master-file' via the hook `find-file-hooks'. Additionally + `TeX-update-style' will be called to activate the respective style + files. + (TeX-mode-map): Added key binding for calling + `TeX-master-file-ask'. This is a temporary solution. + (TeX-mode-menu): Took out redundant entry for `TeX-home-buffer'. + Added entry "Set Master File" for `TeX-master-file-ask'. Grouped + menu entries relevant for multifile handling. + + * latex.el (LaTeX-mode-menu): Changed analogously to + `TeX-mode-menu'. + +2003-12-29 David Kastrup + + * latex.el: Fix AUCTeX URL. + (LaTeX-fill-paragraph): Skip from inline comments to either line + comments or something that is not merely an inline comment. I am + not even sure that this skipping makes good sense, in particular + since it is followed by `forward-paragraph'. + (LaTeX-common-initialization): Change the definitions of + `paragraph-start' and `paragraph-separate' to something that + makes things like `forward-paragraph' and its ilk behave more + sensibly when in comments. The previous behavior is just awful, + and caused a lot of inadvertant damage when using things like + `fill-paragraph' within comments. + (LaTeX-common-initialization): Remove syntax error, sorry. + +2003-12-29 David Kastrup + + * latex.el: Fix AUCTeX URL. + (LaTeX-fill-paragraph): Skip from inline comments to either line + comments or something that is not merely an inline comment. I am + not even sure that this skipping makes good sense, in particular + since it is followed by `forward-paragraph'. + (LaTeX-common-initialization): Change the definitions of + `paragraph-start' and `paragraph-separate' to something that + makes things like `forward-paragraph' and its ilk behave more + sensibly when in comments. The previous behavior is just awful, + and caused a lot of inadvertant damage when using things like + `fill-paragraph' within comments. + +2003-12-26 Ralf Angeli + + * style/scrbase.el (TeX-add-symbols): Remove redundant entries. + + * style/scrlttr2.el (TeX-add-symbols): Remove redundant entry. + + * style/scrpage2.el: Remove unnecessary coding cookie and text in + introductory comment. + +2003-08-02 Mike Sperber + + * latex.el (latex-mode): Really turn off filladapt. It just + doesn't work with `LaTeX-fill-paragraph'. + +2003-12-02 Ralf Angeli + + * tex.el (tex-mode): Let `TeX-master-file' be called upon opening + a file. This shall restore the behaviour before the last change + regarding the question for `TeX-master'. Thanks to Peter + Galbraith for setting the patch right. + +2003-11-28 David Kastrup + + * tex.el (LaTeX-update): Advice removed because of the following: + + * latex.el (LaTeX-menu-update): Now called via :filter predicate + of menus. + +2003-11-27 Ralf Angeli + + * style/paralist.el: Removed coding cookie in first line. + Removed obsolete comment regarding placement of file. + (LaTeX-paralist-env-item-opt-label): Renamed from + `pl-LaTeX-env-item-opt-label' and changed references accordingly. + Added docstring. + Let `itemize' and `enumerate' environments use this function. + Thanks to Reiner Steib for these suggestions. + +2003-11-26 Reiner Steib + + * latex.el (LaTeX-section-label): Added "part" and + "subsubsection". Sync "chapter" with fancyref.sty. + + * style/fancyref.el ("fancyref"): Added font-lock keywords. + +2003-11-25 Reiner Steib + + * latex.el (LaTeX-math-default): Added greek \var... symbols. + (LaTeX-common-initialization): Removed "SLiTeX", added spacing + commands and "appendix". + + * font-latex.el (font-latex-match-function-keywords): Added + spacing commands, "nonumber", "centering", "TeX", and "LaTeX". + (font-latex-match-textual-keywords): Added textsuperscript. + +2003-11-17 Ralf Angeli + + * Makefile.in (STYLESRC): Added scrpage2.el. + +2003-11-17 Peter S Galbraith + + * font-latex.el (font-latex-keywords-2): Had forgotten to set + LAXMATCH on all title matches. Thanks to Ralf Angeli for + reporting the bug. + + * bib-cite.el (bib-cite-file-directory-p): New functions. I had + introduced a call to code from ff-paths.el by mistake. + +2003-11-17 Ralf Angeli + + * style/scrbase.el (TeX-add-style-hook): Added further symbols to + `TeX-add-symbols' and rearranged them alphabetically. + Added macros with parameters to + `font-latex-match--keywords-local'. + Added `addsec' and `addpart' to + `font-latex-match-title--keywords-local'. + + * style/scrbook.el (TeX-add-style-hook): Analogous. + + * style/scrlttr2.el (TeX-add-style-hook): Analogous. + + * style/scrreprt.el (TeX-add-style-hook): Analogous. + + * style/scrpage2.el: New file. + +2003-11-16 Ralf Angeli + + * tex.el (VirTeX-common-initialization): Disabled lines which set + `comment-add' to 1 to restore commenting with a single `%'. + (TeX-un-comment-region): Function code removed and function name + mapped to `comment-dwim'. + (TeX-un-comment): Allow searching for commented lines with + potential white space at the beginning. + (TeX-comment-paragraph): Partially rewritten to allow it to be + used for both commenting and uncommenting. + (TeX-in-commented-line): New function used in + `TeX-comment-paragraph'. + + * doc/auc-tex.texi (Commenting): Reflect changes in `tex.el'. + +2003-11-13 Ralf Angeli + + * style/paralist.el: New file. + + * Makefile.in (STYLESRC): Added paralist.el. + +2003-10-18 Peter S Galbraith + + * font-latex.el: checkdoc cleaning (almost clean now). + +2003-09-18 Peter S Galbraith + + * font-latex.el (font-latex-quotes): New defcustom to fontify + either french or german quotes. + (font-latex-quote-regexp-beg): New variable. Holds the regexp to + match the beginning of a quote. + (font-latex-quote-end-list): New variable. Holds the list of + strings to end a matched quote. + (font-latex-match-quotation): Fixed to use above variables. + +2003-09-18 Peter S Galbraith + + * bib-cite.el: bib-cite-aux-inputs: new defcustom. + Minor code cleanup for `match-string'. + +2003-09-15 Reiner Steib + + * tex.el (TeX-master-file): Fix 'shared case. + Tiny patch from Shiro Takeda . + +2003-09-08 Peter S Galbraith + + * bib-cite.el: Ripping out off-topic imenu code. + +2003-09-07 Peter S Galbraith + + * font-latex.el: Bug fix when font-lock-multiline is set to t. + +2003-08-21 Reiner Steib + + * Changelog: Added coding cookie. + + * doc/Makefile.in (install): Check if auctex-* exists. Needed + because default split size changed in texinfo 4.6. + +2003-07-25 Peter S Galbraith + + * font-latex.el: Make & highlighted in font-latex-warning-face. + Better document font-latex-match-*-keywords-local variables. + +2003-07-20 Masayuki Ataka + + * configure.in: Use mule support check. + + * Makefile.in (CONTRIB_MULE, COMPILE_MULE, CONTRIB_MULEELC): New macros. + (contrib): Compile CONTRIB and COMPILE_MULE. + (install-contrib): Install CONTRIB_MULE and CONTRIB_MULEELC, too. + + * aclocal.m4 (EMACS_CHECK_MULE): Check (X)Emacs mule supported. + + * Makefile.in (clean): Remove Emacs auto-save files. Remove elc + files in the current and style directory. + +2003-06-21 Masayuki Ataka + + * Makefile.in: Delete trailing whitespaces. + + * tex.el (TeX-near-bobp): Undo last change. + + * tex-jp.el: Fix some document. + (AUCTeX-jp): New custom group. + (japanese-TeX-command-default, japanese-LaTeX-command-default) + (japanese-LaTeX-default-style, japanese-LaTeX-style-list): + Support for defcustoms. + +2003-06-14 David Kastrup (tiny patch from Stephen Gildea) + + * tex.el (TeX-auto-untabify): Change default to nil. + + * doc/auc-tex.texi (Parsing Files): document this. + +2003-06-07 David Kastrup + + * tex.el (TeX-lisp-directory, TeX-auto-global, TeX-style-global) + (TeX-auto-local, TeX-style-local, TeX-macro-private) + (TeX-load-style, TeX-parse-path, TeX-run-style-hooks) + (TeX-auto-write, TeX-auto-generate, TeX-auto-generate-global) + (TeX-ignore-file, TeX-search-files): try catering with Windows + file names. + (TeX-directory-absolute-p): removed, since file-name-absolute-p + serves the same purpose. + +2003-06-06 Jan-Ã…ke Larsson + + * Makefile.in: Added datadir + +2003-06-05 Masayuki Ataka + + * latex.el (LaTeX-env-label): Toggle off input method when + entering math mode. + * style/amsmath.el (LaTeX-amsmath-env-alignat) + (LaTeX-amsmath-env-aligned): Ditto. + + * tex.el (TeX-toggle-off-input-method): Removed interactive. + (TeX-math-input-method-off): New function. + (TeX-insert-dollar): Use it. Do not call function + TeX-toggle-off-input-method directly. + +2003-06-03 Masayuki Ataka + + * tex.el (TeX-macro): Set group 'AUCTeX. + +2003-06-03 David Kastrup + + * latex.el (LaTeX-mode-menu): Replace "Change Font" with "Replace + Font" + + * tex-info.el (TeXinfo-mode-menu): Same here. + + * doc/tex-ref.tex (section{Font Selection}): Same here. + +2003-06-03 Masayuki Ataka + + * tex.el (TeX-math-toggle-off-input-method): New user option. + (TeX-toggle-off-input-method): New function. + (TeX-insert-dollar): Use it. + +2003-06-02 Masayuki Ataka + + * tex.el (TeX-near-bobp): Fixed typo in doc-string. + +2003-05-27 Piet van Oostrum + + * latex.el (LaTeX-auto-minimal-regexp-list): Changed regexp to + allow \documentclass[]{someclass}. + +2003-05-02 Patrick Gundlach + + * context.el: ConTeXt-environment can now modify the current + environment. Added preliminary functionality for calling a + function on an environment. ConTeXt-mark-environment, + ConTeXt-find-matching-stop and ConTeXt-find-matching-start + (similar to the ones in latex.el) added. + +2003-04-15 Reiner Steib + + * doc/wininstall.texi: Fixed typos in configure options. + +2003-04-15 Patrick Gundlach + + * tex.el (TeX-command-list): Changed %v to %V in View. Now + TeX-output-view-style is used for setting viewer preferences. See + changes from 2003-02-06 below. + +2003-04-15 Reiner Steib + + * .cvsignore: Added INSTALL and INSTALL.windows + + * Makefile.in (STYLESRC): Added captcont.el and subfigure.el + +2003-04-15 Jan-Ã…ke Larsson + + * doc/wininstall.texi: Corrected download info for GNU Emacs + +2003-04-14 Peter S Galbraith + + * font-latex.el (font-latex-match-*-keywords): New user + customizable variables to add fontification keywords. + See `M-x customize-group [RET] font-latex'. + (font-latex-match-*-keywords-local): New buffer-local variables to + be used by elisp style file writers. + (font-latex-match-*-keywords-set): Support for defcustoms. + (font-latex-match-*-make): Build the actual font-lock variables + from the `font-latex-match-*-keywords' defcustoms. + +2003-04-14 David Kastrup + + * doc/install.texi (Customizing): hilit-LaTeX.el deleted. + +2003-04-14 Jan-Ã…ke Larsson + + * autogen.sh: Generate INSTALL and INSTALL.windows + + * doc/Makefile.in: Use the configure compatibility test results + + * doc/macros.texi: Compatibility macros, initial version + + * configure.in: Do the makeinfo tests, for compatibility with + texinfo 3.12, test for tex + + * doc/install.texi: Changed to document the autoconf stuff + + * doc/wininstall.texi: Added + +2003-04-10 David Kastrup + + * tex.el (AUCTeX): Fix URLs. + + * context.el: Fix AUCTeX URL. + Make modification date RCS tag. + +2003-04-09 Patrick Gundlach + + * tex.el (TeX-command-list): Changed ConTeXt Clean from purge to + purgeall; I guess this behaves as users would expect. + + * context.el: minor cleanups, switched to the name "AUCTeX" where + not done yet. Made ConTeXt-add-environments able to + byte-compile. Added new copyright statement. + + * Makefile.in: Added context.el(c) + +2003-04-09 Jan-Ã…ke Larsson + + * aclocal.m4: More sane emacs-macro path-searching. + +2003-04-07 David Kastrup + + * tex.el (TeX-kpathsea-directory-alist): Fix bad kpathsea + searchpath name for LaTeX files. + +2003-04-03 Jan-Ã…ke Larsson + + * aclocal.m4: Make the emacs-macro path-searching tests run, and + make EMACS_PROG_EMACS fail gracefully when no binary executable is + found. + + +2003-03-29 David Kastrup + + * tex-buf.el (TeX-run-discard): Use `call-process' instead of + `start-process' in order to completely detach a process. + (TeX-region-extra): Make empty by default since code was not + working with plain or ConTeXt. + +2003-03-24 Masayuki Ataka + + * Makefile.in (CONTRIB): Remove hilit-LaTeX.el because it is + obsolete. + (contrib): Remove compile code for hilit-LaTeX.el. + +2003-03-13 David Kastrup + + * style/german.el (LaTeX-german-quote-after-quote) + (LaTeX-german-open-quote, LaTeX-german-close-quote): New + variables to initialize quote stuff from. If you set these in + file local variables, they will propagate accordingly to + `TeX-quote-after-quote' et al. + + * style/ngerman.el (LaTeX-german-quote-after-quote) + (LaTeX-german-open-quote, LaTeX-german-close-quote): the same. + +2003-02-25 David Kastrup + + * Makefile.in (dist): Version info in tex.el gets automatically + calculated from CVS tags. + + * tex.el: Some changes for dir slashiness. + (TeX-master-directory): return a proper directory name, not a + file name. + + * tex-buf.el (TeX-quote-filename): Return the changed file! + Yikes! How could this ever have worked? + +2003-02-24 David Kastrup + + * tex.el (AUCTeX-version): Generate automatically from CVS + variables. + (TeX-master-directory): somewhat more defensive version (final + goal is to be able to make a TeX minor mode). + +2003-02-22 David Kastrup + + * tex-wizard.el: A first sketch of the idea. + +2003-02-17 Piet van Oostrum + + * tex.el (TeX-arg-literal): Remove illegal and superfluous &optional. + + * latex.el (TeX-arg-free): Remove illegal and superfluous &optional. + +2003-02-17 David Kastrup + + * font-latex.el (font-latex-find-matching-close): Remove a very + complicated way of doing nothing since the byte compiler warns + about it. + +2003-02-15 David Kastrup + + * tex.el (LaTeX): Change :prefix field to LaTeX. + (TeX-auto-add-type): Make more readable and place doc string + indicating the origin into generated functions. + + * font-latex.el (font-latex-setup): Try to behave better when the + interesting newlines in verbatim environments get moved. + Probably not the ultimate solution. + + * tex-site.el: AUC TeX to AUCTeX, new header. + + * Makefile.in: AUC TeX to AUCTeX. + + * latex.el: AUC TeX to AUCTeX, new header. + + * tex-buf.el (TeX-quote-filename): New function. + (TeX-region-create): Use it so that Windows can talk about its + master files properly. + (TeX-help-error): Try not to have "log file has changed" + messages. AUC TeX to AUCTeX, new header. + + * tex.el: AUC TeX to AUCTeX, new header. + + * auc-old.el: AUC TeX to AUCTeX, new header. + + * README.CVS: Check in a first version. Ok, it currently + contains a few lies, but the basics are not wrong, and hopefully + we will have soon what it takes to make it true. + + * doc/auc-tex.texi: Name change of AUC TeX to AUCTeX. A few + other cleanups. + + * configure.in, Makefile.in, doc/Makefile.in: everything moves to + autoconf, fix a few things. + + * Makefile, doc/Makefile: deleted. + +2003-02-14 Patrick Gundlach + + * context.el: Added basic environment support (insert-envrionment + and close-environment). Added basic interface support. + + * tex.el, latex.el : moved TeX-arg-literal and TeX-near-bopb from + latex.el to tex.el. More will follow. + +2003-02-13 David Kastrup + + * Makefile.in (clean): Remove .elc files. + (distclean): new target. + + * aclocal.m4 (EMACS_EXAMINE_PACKAGEDIR): make this work properly + more or less. + (EMACS_CHECK_AUCTEX): use auctexdir instead of AUCTEXDIR (synch + with preview-latex aclocal.m4) and strip trailing slash. + +2003-02-11 Peter S Galbraith + + * hilit-LaTeX.el: Removed. It's obsolete. Use font-latex.el instead. + +2003-02-11 Patrick Gundlach + + * tex.el (TeX-command-list): Changed TeX-run-LaTeX to + TeX-run-TeX. + + * tex-buf.el (TeX-run-TeX): TeX-run-TeX gets the + TeX-sentinel-function from the major mode, so TeX-run-LaTeX and + alike won't be needed if they don't need to do something + fancy. Defaliased TeX-run-LaTeX to TeX-run-TeX. + (TeX-run-interactive): Uses TeX-sentinel-default-function + instead of TeX-sentinel-function. + + * latex.el (latex-mode): Sets TeX-sentinel-default-function + instead of TeX-sentinel-function. + + * tex-mik.el (TeX-command-list): Changed TeX-run-LaTeX to + TeX-run-TeX. + + * tex-fptex.el (TeX-command-list): Changed TeX-run-LaTeX to + TeX-run-TeX. + +2003-02-08 Patrick Gundlach + + * tex-site.el: Added simple ConTeXt support. + + * latex.el (latex-mode): Added explicit set of + TeX-sentinel-function to be used in TeX-run-interactive. + + * tex-buf.el: Added TeX-run-ConTeXt. Removed explicit call to + TeX-LaTeX-sentinel in TeX-run-interactive. The sentinel-function + is now inherited from the buffer calling + TeX-run-interactive. Hopefully this won't break anything. + + * tex.el: Adapted TeX-command-list for ConTeXt + support. Interfaces for texexec and texutil added. Nonstopmode + (texexec) and purge (texutil) won't work right with current + ConTeXt versions. This will be fixed in ConTeXt versions later + than Feb 2003. + + * context.el: basic support for ConTeXt added. New + sentinel-functiont that is different from the LaTeX one. + + +2003-02-08 pvoostrum + + * tex.el: Added missing semicolon in TeX-command-output-list. + + * tex.el: Changed defcustom to defvar. + +2003-02-08 Piet van Oostrum + + * tex.el (TeX-output-extension, TeX-view-extension): Changed + defcustom into defvar, as these are intermediate variables. + +2003-02-07 Piet van Oostrum + + * tex.el (TeX-command-output-list): Corrected customization widget. + +2003-02-06 Piet van Oostrum + + * tex-buf.el + (TeX-save-document, TeX-command-query) + (TeX-output-style-check, TeX-run-format, TeX-TeX-sentinel-check): + Added support for pdftex (and others) + (TeX-run-set-command, TeX-output-extension) + (TeX-view-extension, TeX-view-output-file): new functions. + + * tex.el (TeX-output-extension, TeX-view-extension) + (TeX-output-view-style, TeX-command-output-list): new variables + (TeX-expand-list): adapted for pdf output. + +2003-01-31 Jan-Ã…ke Larsson + + * configure.in: Use new lispdir check. + + * aclocal.m4: Some cleaning of macro names. Windows quoting by + David Kastrup . Also, lispdir now checks (x)emacs + load-path instead of physical disk content. + + * Makefile.in: Fix infodir + +2003-01-30 Piet van Oostrum + + * tex-buf.el (TeX-parse-error): Exclude { and } from filenames to + improve parsing of error messages from pdftex. + +2003-01-24 Reiner Steib + + * tex.el (TeX-kpathsea-path-delimiter, TeX-search-files-kpathsea): + Fixed braces. + +2003-01-22 David Kastrup + + * tex.el (TeX-search-files): Check in first version of kpathsea + support. This implementation does not yet cooperate properly + with TeX-auto-generate-* + +2003-01-18 David Kastrup + + * configure.in: Announce AUC TeX, not preview. + +2003-01-16 Reiner Steib + + * style/varioref.el ("varioref"): Fixed typo. + + * Makefile.in (ELCC): `-no-init-file' is the same as `-q' + +2003-01-15 Jan-Ake Larsson + + * configure.in, aclocal.m4: Compatibility fix + + * aclocal.m4 (AC_PROG_EMACS): New. File is now identical to that + of preview-latex. + + * configure.in: Use it + +2003-01-08 Jan-Ake Larsson + + * Makefile.in: From Makefile + + * configure.in, aclocal.m4, autogen.sh: Initial version + + * mkinstalldirs, install-sh: Prepare for autoconf + +2002-12-29 David Kastrup + + * tex.el: Add support for Info-goto-emacs-command-node and + similar. + +2002-12-19 David Kastrup + + * tex-buf.el (TeX-home-buffer): Don't home to deleted buffers. + + * tex.el (TeX-command-list): Change single quotes to double. + That way, we will get reasonable results under both Windows and + Unix. File names with double quotes in them will break stuff, + just like file names with single quotes in them did so + previously. Tough. + +2002-12-18 David Kastrup + + * tex-buf.el (TeX-run-shell): Start shell from TeX process buffer + in order to inherit environment from there (like cwd). + (TeX-run-discard): Same here. + (TeX-run-shell, TeX-run-discard): Rather let default-directory + temporarily: we may not have a TeX process buffer! + +2002-12-17 Masayuki Ataka + + * all.el: Removed. unrelated to TeX mode. + OBSOLETE files (all.el, auc-menu.el, maniac.el, and outln-18.el) + are available at: + + +2002-12-15 David Kastrup + + * Makefile (dist): Correct zip file name. + +2002-12-15 Masayuki Ataka + + * Makefile (MINMAPSRC): Remove auc-menu.el, maniac.el, and + outln-18.el. + +2002-12-15 David Kastrup + + * auctex.spec (Release): Well, change version number. retag. + + * Version 11.14 released. + +2002-12-15 Masayuki Ataka + + * auc-menu.el: Removed. Taken into Emacs and unused. + + * maniac.el: Ditto. + + * outln-18.el: Ditto. + +2002-12-15 David Kastrup + + * Makefile: some changes for my setup. + +2002-12-14 David Kastrup + + * graphicsx.el: removed. superseded by graphicx.el and unused. + +2002-12-13 Reiner Steib + + * latex.el (LaTeX-label): Added completing for labels. Avoid + inserting an empty label. + +2002-12-12 Reiner Steib + + * style/amsopn.el ("amsopn"): Added \operatorname. + +2002-12-12 David Kastrup + + * doc/auc-tex.texi (top): Change "version 12" to "almost 12". + This is beta, after all. + +2002-12-12 Masayuki Ataka + + * tex-jp.el (japanese-LaTeX-style-list): Remove styles overlapped + with LaTeX-style-list. Append values to LaTeX-style-list instead + of overwriting. + (japanese-latex-mode-initialization): Do not overwrite + LaTeX-style-list. + +2002-12-11 Reiner Steib + + * bib-cite.el: Updated URLs. + + * doc/intro.texi: Ditto. + + * font-latex.el: Ditto. + + * latex.el: Ditto. + + * tex.el: Ditto. + + * style/amsmath.el (LaTeX-amsmath-label): Improved doc-string. + + * doc/auc-tex.texi (Equations): New @subsection documenting + LaTeX-equation-label, LaTeX-eqnarray-label and LaTeX-amsmath-label. + +2002-12-11 Masayuki Ataka + + * tex-jp.el (japanese-LaTeX-default-style) + (japanese-LaTeX-style-list): remove buffer-local declarations + where they don't make sense. + +2002-12-10 David Kastrup + + * doc/changes.texi: Some more news. + + * doc/auc-tex.texi: Start talking about version 12 (which will be + the next stable release). + (European): Talk a bit about LaTeX2e stuff, and don't talk about + too ancient XEmacsen. Also mention X-Symbol. + + * doc/Makefile (install): Create infodir if not existent. + +2002-12-10 Reiner Steib + + * font-latex.el (font-latex-match-textual): Fixed typo in doc-string. + + * latex.el (LaTeX-section-label): Fixed typos in doc-string. + +2002-12-10 David Kastrup + + * latex.el (LaTeX-label): Fix a thinko/type where label would be + non-nil in cases where a label should not be asked for. + +2002-12-10 Reiner Steib + + * style/amsmath.el (LaTeX-amsmath-label): New variable. + ("amsmath"): Add environments to LaTeX-label-alist. + +2002-12-10 Masayuki Ataka + + * tex-jp.el: Remove if statement for Emacs 19. + Fix lots of white spaces. + +2002-12-09 David Kastrup + + * latex.el (LaTeX-optop, LaTeX-optcl, LaTeX-default-options, + LaTeX-figure-label, LaTeX-table-label, LaTeX-equation-label, + LaTeX-eqnarray-label, LaTeX-style-list): remove buffer-local + declarations where they don't make sense. + +2002-12-09 Reiner Steib + + * latex.el (LaTeX-style-list): Added some supported classes. + Fixed a typo. + + * style/amsmath.el ("amsmath"): environment "xxalignat*" doesn't + exist. + (LaTeX-amsmath-env-alignat): environment "xxalignat" should not + get a \label. + + * Makefile (BATCH): Added `-no-site-file' to batch options. + +2002-12-07 David Kastrup + + * font-latex.el (font-latex-setup): Better stab at verbatim + handling. + + * tex-buf.el (TeX-region-create): Make file name in !name + messages relative to master file directory. + +2002-12-06 David Kastrup + + * latex.el: Lots of doc fixes/white space. Did the mistake of + running checkdoc. Not clean yet, but different. + (LaTeX-label-alist): New buffer-local variable for label prefixes + lookup. + (LaTeX-label): Use it. + +2002-11-25 David Kastrup + + * latex.el (TeX-arg-define-index): correct typo. + +2002-11-25 Per Abrahamsen + + * Version 11.13 released. + +2002-11-25 Per Abrahamsen + + * tex.el: Fixed CVS merge error. + + * Version 11.12 released. + +2002-10-28 David Kastrup + + * Makefile (prefix): Revert accidental change to + /usr/local/emacs-21 (sorry folks). + +2002-10-26 David Kastrup + + * Makefile (STYLESRC): Add style/scrlttr2.el + +2002-10-26 Mark Trettin + + * style/scrbase.el: Added optional Argument "Pagenumber" to + \maketitle. Changed \textsubscript from `t' to "Text". + + * style/scrlttr2.el: Initial version. + + * style/scrbase.el: Added additional clearpage commands: + \cleardoublestandardpage \cleardoubleplainpage and + \cleardoubleemptypage + +2002-10-24 Masayuki Ataka + + * latex.el (LaTeX-env-contents): New function. + (LaTeX-common-initialization): Added 26 LaTeX commands, 2 LaTeX2e + environments, and 41 LaTeX2e commands. + +2002-10-08 David Kastrup + + * style/scrreprt.el, style/scrbase.el, style/scrartcl.el, + style/scrbook.el: header comments refer to COPYING. + +2002-10-02 David Kastrup + + * Makefile (STYLESRC): Add compilation targets for Komascript + support. + + * Check in Komascript support by Mark Trettin. See below. + +2002-09-28 Mark Trettin + + * scrbase.el: + First attempt on implementing the `captionbeside'-Environment. I'm not + really satisfied by now. + +2002-09-27 Mark Trettin + + * scrreprt.el, scrbook.el: Reformatted code. + + * scrbase.el: + Fixed Typos in comments and escape characters in function docstrings. + Thanks to Reiner Steib. + Reformatted code. + + * scrbase.el: + Changed `uppertitleback', `lowertitleback' from asking to just `t' + + * scrbase.el: + Changed `addpart', `addsec' and `minisec' from Macro to sectioning + command. + + * scrreprt.el, scrbook.el: + Changed `addchap' from Macro to sectioning command. + +2002-09-26 Mark Trettin + + * scrartcl.el: LaTeX-section-list removed. + + * scrartcl.el: Initial version. Testing LaTeX-section-list. + + * scrbase.el: Initial version of the base file. + + * scrreprt.el, scrbook.el: Initial version. + + * scrbook.el, scrbase.el, scrreprt.el, scrartcl.el: + +2002-09-22 David Kastrup + + * tex.el: Apply spelling fixes from "Davide G. M. Salvetti" + to tex.el. + +2002-03-24 David Kastrup + + * tex-buf.el (TeX-parse-TeX): Make subordinate files without + major mode default to that of the calling file when doing error + processing. + +2002-03-21 Per Abrahamsen + + * tex-site.el (eamcs-major-version): Changed if to when. + Suggested by Martin Thornquist . + +2002-03-15 David Kastrup + + * tex.el (TeX-master-file): Don't make C-c ` bomb out in files + like xxx.gls. Probably a more elaborate way would be to export + the TeX-master variable into files visited by error parsing. + Could be incorrect, however, if more than one file included them. + +2002-02-15 Per Abrahamsen + + * tex.el (TeX-auto-generate): Expand file name. + Suggested by "Dr. Mark A. Friedman" . + + * latex.el (LaTeX-common-initialization): Set + `fill-paragraph-function'. + (LaTeX-mode-map): Don't bind M-q. + Suggested by Nils Klarlund . + + * tex.el (TeX-printer-list): Fixed spelling. + Reported by Nils Klarlund . + +2002-02-14 Per Abrahamsen + + * tex.el: Fixed some spelling errors. + Patch by "Davide G. M. Salvetti" . + +2002-01-24 Per Abrahamsen + + * Version 11.11 released. + +2002-01-24 Masayuki Ataka + + * tex.el (TeX-format-list): Support t(article|report|book) class file. + Reported by Atsuhito Kohda + + * tex-jp.el (japanese-TeX-command-list): Undo last change. + (LaTeX-command-style): Support t(article|report|book) class file. + (japanese-LaTeX-style-list): Ditto. + Reported by Atsuhito Kohda + +2002-01-21 Peter S Galbraith + + * font-latex.el: Updated to V0.800. + Added font-lock-syntactic-keywords to font-lock-defaults to handle + verbatim environment, as suggested by Stefan Monnier 5 years ago (!) + * bib-cite.el: Updated to V3.17. + XEmacs has imenu after all. + +2002-01-21 Masayuki Ataka + + * tex.el (TeX-format-list): Fix problem that AUC TeX switch to + JLATEX mode if the class file starts with the letter `j'. + Reported by Joe Reinhardt . + + * tex-jp.el (LaTeX-command-style): Support js(article|book). + +2002-01-21 Atsuhito Kohda (tiny change) + + * tex-jp.el (japanese-TeX-command-list): Use `%l' instead + of [pj]latex command. + +2002-01-18 Per Abrahamsen + + * tex.el (LaTeX-command-style): Fix comment. + Reported by Atsuhito Kohda + via. Debian. + + * latex.el (LaTeX-outline-name): Allow longer names. + Reported by "Michael Soulier" + via. Debian. + +2001-12-22 Per Abrahamsen + + * latex.el (LaTeX-imenu-create-index-function): Strip text + properties. + Reported by Venkatesh Prasad Ranganath . + +2001-12-13 Per Abrahamsen + + * style/prosper.el: New file. + Contributed by Phillip Lord . + * Makefile (STYLESRC): Added it. + +2001-11-27 Per Abrahamsen + + * Version 11.10 released. + +2001-11-26 Per Abrahamsen + + * Version 11.09 released. + +2001-11-26 Per Abrahamsen + + * auc-old.el (insert-mode-line): Use `insert' instead of + `insert-string'. + +2001-10-27 Per Abrahamsen + + * latex.el (LaTeX-ignore-comment-regexp): Doc fix. + Reported by Reuben Thomas . + +2001-11-16 David Kastrup + + * tex-buf.el (TeX-process-check): We didn't catch the case where + during the question a different process got started in the + buffer. In that case, we just ask again. + +2001-11-06 David Kastrup + + * tex-buf.el (TeX-command-sentinel): insert post-mortem info + before any markers in order to keep markers/point at end of file. + +2001-11-02 Masayuki Ataka + + * style/graphicx.el (TeX-arg-includegraphics): Accept prefix + argument and find all files. dvipdfm image file support. + +2001-10-19 Masayuki Ataka + + * tex-jp.el (japanese-TeX-command-list): Fixed for mendex. + * doc/auc-tex.texi (Japanese): Doc fix. + +2001-10-17 Per Abrahamsen + + * Version 11.08 released. + +2001-10-17 Per Abrahamsen + + * doc/intro.texi, doc/install.texi: Updated contact info. + Reported by Henrik Holm . + +2001-10-16 Per Abrahamsen + + * Version 11.07 released. + +2001-10-16 Per Abrahamsen + + * tex.el (VirTeX-common-initialization): Set `comment-add' in + order to get "%%" by default by comment region like Lisp mode. + Suggested by "Davide G. M. Salvetti" . + Change `comment-indent-hook' to `comment-indent-function'. + + +2001-10-15 Peter S Galbraith + + * font-latex.el: Remove self-installation to LaTeX-mode-hook now + that TeX-install-font-lock does it. + +2001-10-15 Per Abrahamsen + + * Version 11.06 released. + +2001-10-15 Per Abrahamsen + + * tex.el: Removed font lock support. + (TeX-install-font-lock): New option. + (VirTeX-common-initialization): Call it. + + * tex-font.el: New file. + +2001-10-13 David Kastrup + + * tex-buf.el (TeX-current-offset): The number of things that can + go wrong for a simple task like determining the current line + number is simply amazing. count-lines skips over newlines in + intangible text-properties or overlays. Fixed for GNU Emacs, + don't know whether XEmacs has problems with it. + +2001-10-13 Per Abrahamsen + + * Version 11.05 released. + +2001-10-12 David Kastrup + + * tex-buf.el (TeX-run-command): Let the TeX-process-buffer acquire + a buffer-local value of TeX-command-buffer so that its sentinel + will still refer to the right buffer even if another compilation + has been started. + (TeX-run-interactive): Same here. + (TeX-process-check): Don't bomb out when user does not want to + kill a process that has died on its own in the meantime. + +2001-10-11 Per Abrahamsen + + * tex.el (TeX-auto-local, TeX-style-local): Doc fix: Mention that + these should be relative. + Suggested by . + +2001-10-09 Per Abrahamsen + + * Version 11.04 released. + +2001-10-09 Per Abrahamsen + + * tex.el (TeX-view-style): New option. + (TeX-expand-list): Use it. + (TeX-command-list): Use it. + +2001-10-05 Per Abrahamsen + + * Version 11.03 released. + +2001-10-05 Per Abrahamsen + + * style/amsmath.el ("amsmath"): More items. + Patch by Masayuki Ataka . + +2001-10-04 Per Abrahamsen + + * tex-buf.el (TeX-LaTeX-sentinel): Use `with-current-buffer'. + + * tex-buf.el (TeX-LaTeX-sentinel): Use the value of + `TeX-command-BibTeX' in `TeX-command-buffer'. + Patch by Katsuaki KAWACHI . + + * tex-fptex.el: New file. + Contributed by Fabrice Popineau . + * Makefile (CONTRIB): Added it. + +2001-10-04 Peter S Galbraith + + * multi-prompt.el (multi-prompt-next): fixed for emacs-21. + Use minibuffer-contents-no-properties to get minibuffer contents + if it exists. + +2001-10-03 Per Abrahamsen + + * Version 11.02 released. + +2001-10-03 Per Abrahamsen + + * latex.el (LaTeX-top-caption-list): New option. + (LaTeX-env-figure): Use it. + Patch by ataka@milk.freemail.ne.jp (Masayuki Ataka). + + * style/graphicx.el (TeX-string-numberp): New function. + (TeX-arg-includegraphics): Call it. + Patch by ataka@milk.freemail.ne.jp (Masayuki Ataka). + + * style/verbatim.sty: New file. + Contributed by ataka@milk.freemail.ne.jp (Masayuki Ataka). + + * tex-info.el (texinfo-mode): Comment out cindex. + Reported by Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) + + * style/amsmath.el (LaTeX-item-equation, LaTeX-item-equations): + New functions. + ("amsmath"): Add new item types. + Patch by ataka@milk.freemail.ne.jp (Masayuki Ataka). + +2001-10-02 Per Abrahamsen + + * Version 11.01 released. + +2001-10-01 Per Abrahamsen + + * latex.el (LaTeX-submenu-name-format): Fixed spelling error. + Reported by Martin.Quinson@ens-lyon.fr. + +2001-10-01 David Kastrup + + * tex-buf.el (TeX-region-create): + Oops, broke more than I fixed. Offset calculation must be for the + line following the offset message. This worked before since we always + were in the middle of a line (only the offset calculation for the C-c + C-r command itself was definitely sometimes wrong). Corrected that. + + * style/graphicx.el (TeX-arg-includegraphics): + Fixed an obvious typo complained about by the byte-compiler. checkdoc + removed a few spaces. + + * auc-old.el (TeX-region): Correct offset calculation. + + * tex.el (TeX-current-line): + Correct line number calculation when at beginning of line for %n + flag. Autoload TeX-current-offset for that if necessary. + + * tex-buf.el (TeX-current-offset, TeX-command-region, + TeX-region-create): + Correct offset calculations when not at start of line. New function + TeX-current-offset for that. + +2001-04-11 Per Abrahamsen + + * Version 10.0g released. + +2001-04-11 Per Abrahamsen + + * tex-site.el: Don't enable tex-info.el by default. + + * latex.el (LaTeX-hide-environment): Disabled by default. + Suggested by Christopher Allen . + +2001-03-27 Per Abrahamsen + + * Version 10.0f released. + +2001-03-27 Per Abrahamsen + + * tex.el (unless): Don't enable Emacs 21 font-lock for Emacs 20. + (VirTeX-common-initialization): Ditto. + +2001-03-26 Per Abrahamsen + + * Version 10.0e released. + +2001-03-26 Per Abrahamsen + + * tex.el (TeX-expand-list): Changed default to lazy evaluation of + `TeX-view-style' and `LaTeX-command-style'. + Suggested by Peter Neergaard . + + * latex.el (LaTeX-indent-calculate, LaTeX-indent-calculate-last): + Backindent when brace is at the start of a line. + Patch by Masashi Shimbo . + + * doc/auc-tex.texi: Fixed dir entry. + Reported by David Masterson . + + * tex-info.el (TeXinfo-mode-map): "\e\r" bound to `map', not + `TeXinfo-mode-map'. + Patch by Dan Nicolaescu . + +2001-03-01 Hidenobu Nabetani + + * tex-jp.el: Don't work correctly in current AucTeX. + Patch by Masayuki Ataka + and Yuzo Furukawa . + Removed support for NEmacs and Mule1,2 which are based + on Emacs 18 and 19. + Created new variable japanese-TeX-command-list and + added support for mendex. + Updated LaTeX-auto-regexp-list variable. + +2001-01-09 Per Abrahamsen + + * all: Changed `sunsite.auc.dk' to `sunsite.dk'. + +2001-01-02 Per Abrahamsen + + * Version 10.0d released. + +2001-01-02 Per Abrahamsen + + * tex-mik.el (TeX-command-list): Don't prompt for view. + +2000-12-04 Per Abrahamsen + + * Version 10.0c released. + +2000-12-04 Per Abrahamsen + + * tex.el: Avoid :inherit font property with Emacs 20. + Reported by Damien WYART . + +2000-12-01 Per Abrahamsen + + * Version 10.0b released. + +2000-11-30 Per Abrahamsen + + * Version 10.0a released. + +2000-11-30 Per Abrahamsen + + * tex.el: Copied Emacs 21 font-lock defs here. + (VirTeX-common-initialization): Activate them. + +2000-10-25 Per Abrahamsen + + * PROBLEMS: Updated. + + * WIN-NT: Removed. + * MSDOS: Removed. + * VMS: Removed. + * OS2: Removed. + * Makefile (EXTRAFILES): Removed above files. + +2000-10-20 Per Abrahamsen + + * style/graphicx.el: Updated by author. + Ryuichi Arafune + +2000-10-19 Per Abrahamsen + + * style/graphics.el: New file. + * Makefile (STYLESRC): Added it. + * style/graphicx.el: Renamed from `style/graphicx.el'. + * Makefile (STYLESRC): Updated. + Reported by "Dr. Thomas Baumann" . + +2000-10-09 Per Abrahamsen + + * Version 9.10t released. + +2000-10-09 Per Abrahamsen + + * latex.el (LaTeX-outline-name): Don't escape `{' or `}' in + regexps. + Patch by "Stefan Monnier" . + + * tex-mik.el (TeX-command-list): Use `TeX-run-discard' for "View" + command. + Suggested by "Claus Dethlefsen" . + + * latex.el (LaTeX-common-initialization): `\bibitem' starts + paragraphs, just like `\item'. + Reported by Werner LEMBERG . + +2000-10-06 Per Abrahamsen + + * tex.el (TeX-current-line): Return a string, not a number. + Reported by Julia Habel . + Patch by Dirk.Ullrich@DaimlerChrysler.com. + +2000-06-15 Per Abrahamsen + + * tex-site.el: Require tex-mik after changing load-path. + Reported by "I. Jossang" . + +2000-06-13 Per Abrahamsen + + * IRIX: New file. + * Makefile (EXTRAFILES): Added it. + +2000-05-10 Per Abrahamsen + + * Version 9.10s released. + +2000-05-03 Per Abrahamsen + + * Version 9.10r released. + +2000-05-02 Per Abrahamsen + + * tex.el (TeX-mode-map): Don't bind `.' and `,' by default. + +2000-05-03 Peter Galbraith + + * font-latex.el: file was broken. Updated to 0.701 (30 Mar 2000). + * bib-cite.el: file was broken. Updated to 3.16 (20 Dec 99). + +2000-04-14 Per Abrahamsen + + * Version 9.10q released. + +2000-03-30 Per Abrahamsen + + * style/graphicsx.el: New file. + * Makefile (STYLESRC): Added it. + Donated by Ryuichi Arafune . + +2000-04-14 Per Abrahamsen + + * Version 9.10q released. + +2000-03-23 Per Abrahamsen + + * latex.el (LaTeX-math-keymap): Accept vector for + `LaTeX-math-abbrev-prefix'. + (LaTeX-math-insert-prefix): Better error message if + `LaTeX-math-abbrev-prefix' is not bound. + Reported by Jan Vroonhof . + +2000-02-23 Per Abrahamsen + + * tex-info.el (TeXinfo-environment-list): Added more missing + environments. Patch by Akim Demaille . + +2000-02-22 Per Abrahamsen + + * tex-info.el (TeXinfo-environment-list): Add `group'. + Patch by Akim Demaille . + +2000-01-28 Per Abrahamsen + + * tex.el (TeX-command-list): Add `makeinfo --html' support. + Suggested by Akim Demaille . + +2000-01-20 Per Abrahamsen + + * tex-info.el (TeXinfo-mode-map): Added "\e\r" binding for + `texinfo-insert-@item'. + Reported by Akim Demaille . + (TeXinfo-mode-menu, texinfo-mode): Changed menu name and mode name + to `Texinfo'. + Suggested by Akim Demaille . + +1999-12-21 Per Abrahamsen + + * bib-cite.el: Updated to 3.16 (20 Dec 99). + + * font-latex.el: Updated to 0.700 (20 December 1999). + +2000-03-30 Peter Galbraith + + * font-latex.el: Updated to 0.701 (30 Mar 2000). + +2000-01-14 Peter Galbraith + + * bib-cite.el: Updated to 3.16 (20 Dec 99). + * font-latex.el: Updated to 0.700 (20 Dec 99). + * hilit-LaTeX.el: Changed author email address. + +1999-12-20 Per Abrahamsen + + * Version 9.10p released. + +1999-12-20 Per Abrahamsen + + * bib-cite.el: Updated to 3.15 (20 Dec 99). + + * tex-mik.el (TeX-command-list): Fixed default PDF LaTeX command. + Reported by "Christian Schlauer" . + + * Version 9.10o released. + +1999-12-20 Per Abrahamsen + + * bib-cite.el: Updated to 3.13 (20 Dec 99). + +1999-12-11 Per Abrahamsen + + * style/danish.el ("danish"): Support Danish quotes. + Suggested by arne@daimi.au.dk (Arne Jørgensen). + +1999-12-03 Per Abrahamsen + + * tex-info.el (texinfo-mode): Added `kill-all-local-variables'. + Reported by Stefan Monnier . + + * Version 9.10n released. + +1999-12-03 Per Abrahamsen + + * tex-mik.el: Fixed typo. + Reported by Bernt Guldbrandtsen + +1999-12-01 Per Abrahamsen + + * Version 9.10m released. + +1999-12-01 Per Abrahamsen + + * Makefile (AUCSRC, AUCELC): Added `tex-mik.el'. + +1999-11-26 Per Abrahamsen + + * Version 9.10l released. + +1999-11-26 Per Abrahamsen + + * latex.el (LaTeX-env-figure): Use `\centering' instead of + `center' environment. + Patch by Stefan Monnier . + +1999-11-25 Per Abrahamsen + + * tex-mik.el (tex-mik): Add provide. + + * tex-site.el: Automatically require `tex-mik.el' under NT. + +1999-11-12 Per Abrahamsen + + * tex.el (TeX-current-file-name-nondirectory): New function. + (TeX-expand-list): Use it. + +1999-11-10 Per Abrahamsen + + * doc/auc-tex.texi: Fixed references. + Patch by Stefan Monnier . + * tex.el (TeX-lisp-directory): Use `locate-library' to find + default under Emacs. + Patch by Stefan Monnier . + (TeX-dwim-master): New function. + (TeX-master-file): Use it. + (TeX-master): Document it. + Patch by Stefan Monnier . + +1999-11-06 Per Abrahamsen + + * Version 9.10k released. + +1999-11-06 Per Abrahamsen + + * latex.el: Use `indent-according-to-mode' instead of + `LaTeX-indent-line'. + (LaTeX-mode-map): Don't remap `TAB'. + Patch by "Stefan Monnier ". + +1999-11-03 Per Abrahamsen + + * tex.el (TeX-command-list): Added `LaTeX PDF' command. + +1999-10-28 Per Abrahamsen + + * Version 9.10j released. + +1999-10-27 Per Abrahamsen + + * Makefile (dist): Create a .nosearch in the style directory. + (install-lisp): Ditto. + Suggested by Markus Rost . + +1999-10-26 Per Abrahamsen + + * Version 9.10i released. + +1999-10-26 Per Abrahamsen + + * tex.el (TeX-master-directory): Call `substitute-in-file-name'. + Patch by Alexander Holt . + + * style/ngerman.el: New style. + Suggested by Torsten Schuetze . + * Makefile (STYLESRC): Added it. + + * tex-buf.el (TeX-command-query): Added history argument. + Suggested by Werner LEMBERG . + + * latex.el (LaTeX-environment): Added history argument. + + * tex.el (TeX-add-style-hook): Don't add the same hook twice. + Suggested by Jarl Friis . + + * tex.el: Removed portability code for old Emacsen. + +1999-10-25 Per Abrahamsen + + * Version 9.10h released. + +1999-09-27 Per Abrahamsen + + * latex.el (LaTeX-auto-cleanup): Allow multiple packages for + `usepackage'. + Reported by Torsten Schuetze . + (LaTeX-auto-cleanup): Also add "unmangled" documentstyle. + Reported by Cyril Humbert . + +1999-09-09 Per Abrahamsen + + * style/mdwlist.el: New file. + Patch by Stephen Heilbronner . + * Makefile (STYLESRC): Added it. + +1999-08-20 Per Abrahamsen + + * Version 9.10g released. + +1999-08-20 Hidenobu Nabetani + + * tex.el (TeX-format-list): Add "JLATEX" and "JTEX" which is needed + to load tex-jp.el automatically. + * tex-jp.el (TeX-format-list): Remove "JLATEX" and "JTEX". + +1999-08-19 Per Abrahamsen + + * latex.el (LaTeX-hide-environment, LaTeX-show-environment): make + them work with new outline mode. + Reported by Thomas Schick . + + * tex.el (match-string): New compatibility function. + Reported by Andrew Edward Santosa . + +1999-08-18 Hidenobu Nabetani + + * tex-jp.el (TeX-command-list): Add "jLaTeX" and "pLaTeX". + (TeX-mode-menu): Fix the problem that menu "TeX" is unchanged. + (TeX-japanese-process-input-coding-system): Update for Emacs 20. + (TeX-japanese-process-output-coding-system): Update for Emacs 20. + (TeX-command-default): Change from "j-article" to "jarticle". + (LaTeX-fill-region-as-para-do): Fix the problem that fill mode + don't work in Emacs 20. + +1999-07-16 Per Abrahamsen + + * Version 9.10f released. + +1999-07-16 Per Abrahamsen + + * latex.el (LaTeX-auto-minimal-regexp-list): Recognize usepackage + options. + (LaTeX-auto-cleanup): Ditto. + +1999-07-15 Per Abrahamsen + + * tex.el (TeX-ignore-file): Ignore babel, it loads everything. + Reported by Mate Wierdl . + + * style/foils.el: Removed require 'latex. + * style/natbib.el: Ditto. + * style/harvard.el: Ditto. + * style/slides.el: Ditto. + * style/latexinfo.el: Ditto. + Reported by Mate Wierdl . + + * Makefile (infodir, lispdir, aucdir, EMACS): Use `standard' values. + Reported by Mate Wierdl . + + * tex-info.el (texinfo-mode): Fix doc string. + Reported by Bob Weiner . + +1999-05-17 Jerry James + + * tex.el: Fix two typos in comments. + (set-text-properties): Protect against possible XEmacs version + 21.13, 22.13, etc. + +1999-05-14 Per Abrahamsen + + * latex.el (LaTeX-indent-environment-list): Customized. + + * Version 9.10e released. + +1999-05-14 Per Abrahamsen + + * tex.el: (TeX-auto-generate): Reimplemented support for numeric + `TeX-file-recurse'. + (TeX-search-files): Ditto. + +1999-05-03 Rune Kleveland + + * style/amsart.el ("amsart"): Load `amsthm.el'. + * style/amsbook.el ("amsbook"): Ditto. + +1999-03-29 Per Abrahamsen + + * Version 9.10d released. + +1999-03-29 Per Abrahamsen + + * doc/changes.texi: Added extra `@'. + + * Version 9.10c released. + +1999-03-19 Carsten Dominik + + * tex.el (TeX-insert-dollar): Better error message when trying + to insert a dollar in math-mode. + + * texmathp.el (texmathp-tex-commands-default): Added more default + macros. + +1999-03-12 Carsten Dominik + + * latex.el (TeX-arg-index-tag): New function, to be used by the + index.el and multind.el style files. + (LaTeX-auto-index-regexp-list): Now matches both \index and + \glossary. + (TeX-arg-index): Renamed from TeX-arg-define-index. + (TeX-arg-define-index): Now an alias for `TeX-arg-index'. + (LaTeX-common-initialization): Added a regexp for index and + glossary to `TeX-complete-list'. Added entry for glossary with + `Tex-add-symbols'. + * style/index.el: New file. + * style/makeidx.el: New file. + * style/multind.el: New file. + * style/varioref.el: New file. + * style/fancyref.el: New file. + * Makefile (STYLESRC): Added `style/index.el', `style=makeidx.el', + `style/multind.el', `style/varioref.el', `style/fancyref.el'. + +1999-02-23 Per Abrahamsen + + * tex.el (TeX-search-files): `nconc' the result. + Reported by Berwin Turlach . + +1999-02-11 Per Abrahamsen + + * Version 9.10b released. + +1999-02-11 Per Abrahamsen + + * doc/changes.texi: Typo: @ldots -> @dots. + + * Version 9.10a released. + + * doc/auc-tex.texi: Changed version to 9.10. + * doc/history.texi: Ditto. + * doc/changes.texi: Ditto. + +1999-02-11 Per Abrahamsen + + * Version 9.9p released. + +1999-02-08 Per Abrahamsen + + * tex-jp.el (TeX-format-list): Fix JLATEX format. + Patch by Tsutomu OKUMURA . + + * style/foils.el (LaTeX-style-foils): Removed spurious `\n'. + Reported by Bernt Guldbrandtsen . + +1999-02-05 Per Abrahamsen + + * Makefile (install-contrib): Added `$(CONTRIBELC)' dependency. + Suggested by Nils Ackermann . + +1999-01-29 Per Abrahamsen + + * tex.el (TeX-search-files): `mapcar' instead of `mapcan'. + +1999-01-12 Per Abrahamsen + + * tex.el (TeX-font-replace-macro): Renamed from + `LaTeX2e-font-replace'. Use `TeX-esc'. + * latex.el (LaTeX-common-initialization): Use it. + * tex-info.el (texinfo-mode): Ditto. + (TeXinfo-font-list): Add `delete'. + Suggested by Christoph Wedler . + +1999-01-11 Per Abrahamsen + + * Version 9.9o released. + +1999-01-11 Per Abrahamsen + + * tex.el (TeX-insert-braces, TeX-command-list): Fixed custom types. + Patch by Markus Rost . + +1999-01-09 Christoph Wedler + + * latex.el (LaTeX2e-font-replace): Don't use hard-coded regexp for + font commands, use local `TeX-font-list', i.e., `LaTeX-font-list'. + +1999-01-05 Christoph Wedler + + * tex.el (TeX-load-style-file): Do not prevent .elc style files to + be loaded if `TeX-byte-compile' is nil, just prevent compilation. + (TeX-lisp-directory): Only use `locate-data-directory' if this + function is defined and AucTeX is installed as an XEmacs package. + +1998-12-12 Christoph Wedler + + * tex.el (load-path): Don't add `TeX-lisp-directory'. + (TeX-lisp-directory): Use `locate-data-directory' if present. + +1998-12-12 Per Abrahamsen + + * Version 9.9n released. + +1998-12-12 Per Abrahamsen + + * tex.el (TeX-file-recurse): Added right parenthesis. + Reported by Bernt Guldbrandtsen . + +1998-12-11 Per Abrahamsen + + * Version 9.9m released. + +1998-12-11 Per Abrahamsen + + * font-latex.el: Updated. + * bib-cite.el: Ditto. + + * Version 9.9l released. + +1998-12-01 Alastair Burt + + * doc/auc-tex.texi (Automatic): + + * lisp/tex.el: Extended the semantics of TeX-file-recurse + -- now accepts a positive integer as a bound on the recursion. + Functions TeX-search-files and TeX-auto-generate have been amended + appropriately. + +1998-11-23 Carsten Dominik + + * texmathp.el (texmathp): Added autoload cookie. + +1998-11-20 Per Abrahamsen + + * Version 9.9k released. + +1998-11-20 Per Abrahamsen + + * tex.el (TeX-load-style-file): Protect `byte-compile-file'. + Reported by Kurt Swanson . + + * latex.el (LaTeX-outline-name): New function. + (LaTeX-imenu-create-index-function): New function. + (LaTeX-common-initialization): Use it. + + * tex-buf.el (TeX-run-interactive): Make sure buffer is writable + (needed in Emacs 20.3). + Reported by many. + +1998-10-15 Per Abrahamsen + + * doc/auc-tex.texi (European): Removed references to obsolete + packages. + +1998-07-29 Per Abrahamsen + + * Version 9.9j released. + +1998-07-29 Per Abrahamsen + + * tex-buf.el (TeX-run-ispell-on-document, TeX-ispell-document): + New functions. + * tex.el (TeX-command-list): Use them. + Patch by Jason Stewart . + + * Version 9.9i released. + +1998-07-29 Per Abrahamsen + + * tex.el (TeX-parse-macro, TeX-arg-string, TeX-parse-argument): If + region is active, put it inside empty brackets. + Patch by Peter Thiemann . + +1998-07-16 Per Abrahamsen + + * tex.el (plain-TeX-auto-regexp-list): Add missing \\'es. + Reported by Markus Rost t4287 + . + +1998-07-14 Per Abrahamsen + + * Version 9.9h released. + +1998-07-14 Per Abrahamsen + + * tex.el (TeX-insert-dollar): Use `string-equal' to compare + strings. + Patch by Carsten Dominik . + +1998-06-25 Per Abrahamsen + + * Version 9.9g released. + +1998-06-25 Per Abrahamsen + + * latex.el (LaTeX-auto-index-regexp-list): Remove extra quote. + Patch by Carsten Dominik . + +1998-06-24 Per Abrahamsen + + * Version 9.9f released. + +1998-06-24 Per Abrahamsen + + * latex.el (LaTeX-auto-index-regexp-list): Fix parentheses. + * texmathp.el (texmathp): Use `if (not' instead of `unless'. + Patch by Carsten Dominik . + +1998-06-15 Per Abrahamsen + + * Version 9.9e released. + +1998-06-15 Per Abrahamsen + + * doc/Makefile (auc-tex.ps): Use `-o' to specify output file. + Suggested by Paul McJones . + +1998-06-12 Carsten Dominik + + * latex.el (LaTeX-font-list): Default value now contains special + math font commands. + (LaTeX2e-font-replace): Added support for math fonts. + + * tex.el (TeX-font-list): Docstring changed. Extra prefix and + suffix for math fonts allowed. + (TeX-describe-font-entry): Adapted to extended `TeX-font-list'. + (TeX-font): Detects math mode (using `texmathp') and inserts + special math font commands when available. + +1998-06-11 Carsten Dominik + + * tex.el: (TeX-insert-dollar): Rewritten with `texmathp'. + (TeX-dollar-verify, TeX-locate-delimiter, TeX-bouncing-point): + Obsolete functions removed. + +1998-06-11 Carsten Dominik + + * latex.el: Made index entries available for global completion + like labels and citation keys. + (TeX-arg-index, TeX-arg-define-index): New functions. + +1998-06-10 Carsten Dominik + + * natbib.el ("natbib"): Rewritten to allow for more flexible + control of optional note arguments. New macros in NatBib 6 + supported. Added support for RefTeX. + +1998-06-10 Per Abrahamsen + + * Version 9.9d released. + +1998-06-10 Per Abrahamsen + + * texmathp.el: New version from Dominik. + + * Version 9.9c released. + +1998-06-10 Per Abrahamsen + + * tex.el (texmathp): Added autoload. + (TeX-math-mode-p): Deleted. + (TeX-parse-macro): Use `texmathp' instead of `TeX-math-mode-p'. + + * texmathp.el: New file by Carsten Dominik + . + * Makefile (AUCSRC): Added. + (AUCELC): Added. + +1998-06-05 Per Abrahamsen + + * tex.el (TeX-expand-list): Add `%n' escape. + (TeX-current-line): New function. + Suggested by "Lee, Sang-Min" . + + * doc/auc-tex.texi: Doc fixes by Gustavo Chaves + . + * doc/intro.texi: Ditto. + * doc/install.texi: Ditto. + +1998-05-16 Per Abrahamsen + + * latex.el: Checkdoc'ed. + +1998-04-29 Per Abrahamsen + + * doc/README: Update iesd->sunsite in addresses. + +1998-04-03 Per Abrahamsen + + * doc/Makefile (auc-tex.ps): Cut of the first two lines. + +1998-03-29 Carsten Dominik + + * latex.el (LaTeX-section-section): When RefTeX is available, + notify it about the new section. + +1998-03-04 Per Abrahamsen + + * doc/math-ref.tex (section{Symbols}): Wrong keybindings. + Reported by "Ron Smith" . + +1998-02-27 Soren Dayton + + * tex.el (TeX-load-style): Also look in master directory. + +1998-02-27 Per Abrahamsen + + * tex.el (TeX-insert-punctuation): Only expand abbrevs when abbrev + mode is on. Suggested by Alastair Burt . + +1998-02-25 SL Baur + + * doc/auc-tex.texi: Add direntry section for automatic + installation. + +1998-02-25 Per Abrahamsen + + * Version 9.9b released. + +1998-01-02 John Griffith + + * latex.el (LaTeX-auto-regexp-list): Recognize empty optional + arguments and macros in optional arguments. + + * tex.el (TeX-parse-argument): minor spelling correction. + (TeX-argument-insert): ditto + +1998-02-25 Per Abrahamsen + + * tex.el (TeX-match-extension): Fold case when matching + extensions. + +1998-02-20 Per Abrahamsen + + * Version 9.9a released. + +1998-02-20 Per Abrahamsen + + * Version 9.8l released. + +1998-02-20 Per Abrahamsen + + * Version 9.8k released. + +1998-02-12 Per Abrahamsen + + * latex.el (LaTeX-math-list): Make tags match doc string. + +1998-01-28 Per Abrahamsen + + * Version 9.8j released. + +1998-01-28 Per Abrahamsen + + * tex-jp.el: Added credit. + Patch by KOBAYASHI Shinji . + +1997-12-10 Per Abrahamsen + + * tex-site.el: Added `defcustom' kludge to tex-site.el. + Suggested by "Ralph J. Hangleiter" . + +1997-10-27 Per Abrahamsen + + * latex.el (TeX-arg-input-file): Add trailing slash. + (TeX-arg-bibstyle): Ditto. + (TeX-arg-bibliography): Ditto. + Patch by Ching-Mo Chang . + +1997-10-20 Per Abrahamsen + + * Version 9.8i released. + +1997-10-20 Per Abrahamsen + + * Version 9.8h released. + +1997-10-20 Per Abrahamsen + + * Version 9.8g released. + +1997-10-20 Peter S Galbraith + + * font-latex.el: Updated to V0.504 (Oct 20 97) + + * bib-cite.el: Updated to 3.04 (Aug 25 97) + + * hilit-LaTeX.el: Updated to V1.17 (Sep 06 95) + +1997-10-01 kifer@CS.SunySB.EDU (Michael Kifer) + + * tex.el (TeX-insert-punctuation): Expand abbrevs in the + beginning. + +1997-09-11 Per Abrahamsen + + * tex-buf.el (TeX-run-silent): New function. + + * tex.el (TeX-command-list): Changed default for view from + `TeX-run-background' to `TeX-run-silent'. + +1997-09-10 "Dr. Werner Fink" + + * style/dinbrief.el: Updated. + +1997-09-08 karlheg@inetarena.com (Karl M. Hegbloom) + + * tex-info.el (texinfo-mode): Regexp fix. + +1997-08-29 David J. Rowe + + * latex.el (LaTeX-auto-regexp-list): Added support so newcommand*, + renewcommand*, providecommand*, newenvironment* and + renewenvironment* are recognized by TeX-auto-generate and + TeX-auto-generate-global. + (LaTeX-common-initialization): Added all of above "starred" + commands to symbol list and added providecommand to symbol list. + +1997-08-29 Per Abrahamsen + + * Version 9.8f released. + +1997-08-29 Carsten Dominik + + * amsmath.el ("amsmath"): Added environments xalignat and + xxalignat, and starred forms + +1997-08-22 Christoph Wedler + + * tex-buf.el (TeX-region-create): Also bind `orig-buffer' which + might be useful in `TeX-region-hook'. + +1997-07-14 Per Abrahamsen + + * Version 9.8e released. + +1997-07-14 Per Abrahamsen + + * Makefile (STYLESRC): Added `style/natbib.el'. + +1997-07-13 Berwin Turlach + + * Added style support for natbib.sty + +1997-07-11 Per Abrahamsen + + * Version 9.8d released. + +1997-07-11 Jan Vroonhof + + * latex.el (LaTeX-auto-regexp-list): More LaTeX2e support. + +1997-07-05 Berwin Turlach + + * latex.el (BibTeX-auto-store): make TeX-master a local variable + and set it to true. + +1997-07-03 Per Abrahamsen + + * Version 9.8c released. + +1997-07-03 Carsten Dominik + + * style/amsmath.el ("amsmath"): Use `TeX-arg-ref' for eqref. + +1997-06-29 Berwin Turlach + + * harvard.el: Updated the support for harvard.el + +1997-06-30 Per Abrahamsen + + * Version 9.8b released. + +1997-06-28 Per Abrahamsen + + * tex-buf.el (TeX-LaTeX-sentinel): `natbib' support. + Patch by Berwin Turlach . + +1997-06-27 Per Abrahamsen + + * Version 9.8a released. + +1997-06-24 Christoph Wedler + + * tex.el (TeX-update-style): `TeX-auto-update' could be unbound. + (TeX-auto-x-parse-length): New variable. Allows to use maximimum + = slow parsing for the beginning of a file and minimum = fast + parsing, e.g., just for labels, for the rest of the file. + (TeX-auto-x-regexp-list): Ditto. + (TeX-auto-parse-region): New function. + (TeX-auto-parse): Use them. + + * tex-buf.el (TeX-region-extra): New variable with a value which + redefines \cite for the region file in order get less + warnings. With value "", this variable has no effect. + (TeX-region-hook): New variable. + (TeX-region-create): Use them. + + * latex.el (LaTeX-indent-line): TeX commands are case sensitive. + (LaTeX-find-matching-end): Would not work correctly with more than + one \end in a line. + (LaTeX-find-matching-begin): Would not work correctly with more + than one \begin in a line. + + (LaTeX-menu-max-items): New variable with value 25. Split menu + if number of entries in a menu is larger than this value. If nil, + never split menu into submenus, which is the behaviour before the + introduction of this variable. + (LaTeX-submenu-name-format): New variable. + (LaTeX-split-long-menu): New function using the two new variables. + (LaTeX-menu-update): Use it. + + (LaTeX-document-regexp): New variable. Texts in environments + other than "document", e.g., "letter", could be without initial + indentation. + (LaTeX-verbatim-regexp): New variable. \begin and \end of + environments other than "verbatim\\*?", e.g., "program", could + start at column 0. + (LaTeX-begin-regexp): New variable similar to `LaTeX-item-regexp'. + Commands other than "begin", e.g, "if", could increase the + indentation. + (LaTeX-end-regexp): New variable similar to `LaTeX-item-regexp'. + Commands other than "end", e.g, "fi", could decrease the + indentation. + (LaTeX-indent-comment-start-regexp): New variable. Would allow + you to correct the automatic indentation with commands in special + comments. + (LaTeX-indent-calculate): Use them. + (LaTeX-indent-level-count): Use them. + (LaTeX-indent-calculate-last): Use them. + + (LaTeX-math-insert-function): New variable. + (LaTeX-math-insert): Use it. + +1997-06-11 Per Abrahamsen + + * latex.el (TeX-arg-ref): New alias. + (LaTeX-common-initialization): Use it. + Patch by Soren Dayton . + +1997-06-05 Per Abrahamsen + + * latex.el (LaTeX-auto-minimal-regexp-list): Added `usepackage'. + (LaTeX-auto-minimal-regexp-list): Ditto. + Patch by Carsten Dominik . + + * style/amsmath.el: New file. + * style/amstext.el: New file. + * style/amsbsy.el: New file. + * style/amsopn.el : New file. + * style/amsthm.el: New file. + * Makefile (STYLESRC): Added them. + Files provided by Carsten Dominik . + +1997-06-03 Per Abrahamsen + + * style/slovak.el: New file. + * style/czech.el: New file. + * Makefile (STYLESRC): Add them. + Files provided by Milan Zamazal . + +1997-04-17 Per Abrahamsen + + * Version 9.7p released. + +1997-04-12 Per Abrahamsen + + * tex.el: Added customize information. + * tex-buf.el: Ditto. + * latex.el: Ditto. + +1997-04-06 Per Abrahamsen + + * Version 9.7o released. + +1997-04-06 Per Abrahamsen + + * latex.el (LaTeX-equation-label): New variable. + (LaTeX-eqnarray-label): New variable. + (LaTeX-label): Support `figure*', `label*', `equation', and + `eqnarray'. + (LaTeX-env-figure): Support `table*'. + Patch by Joes Staal . + +1997-03-28 Per Abrahamsen + + * latex.el (LaTeX-down-section): Doc fix. + (LaTeX-section-heading): Ditto. + (LaTeX-section-title): Ditto. + (LaTeX-env-array): Ditto. + (TeX-braces-user-association): Ditto. + (LaTeX-fill-region-as-paragraph): Ditto. + (LaTeX-math-abbrev-prefix): Ditto. + (LaTeX-math-mode): Ditto. + (TeX-arg-right-insert-p): Ditto. + (latex-mode): Ditto. + +1997-03-26 Per Abrahamsen + + * Version 9.7n released. + +1997-03-26 Per Abrahamsen + + * latex.el (LaTeX-math-default): Fixed hebrew delimiters. + Patch by John Griffith . + +1997-03-26 Per Abrahamsen + + * latex.el (LaTeX-209-to-2e): Use `buffer-substring-no-properties'. + Reported by Graham Gough . + +1997-03-17 Per Abrahamsen + + * Version 9.7m released. + +1997-03-17 Per Abrahamsen + + * tex.el (TeX-auto-generate): Only generate when needed. + (TeX-auto-generate-global): Ditto. + Patch by Helmut Geyer . + + * Makefile (install-contrib): Don't move elc files twice. Patch + by Helmut Geyer . + +1997-03-13 Per Abrahamsen + + * style/danish.el: Copied from `style/dk.el'. + * Makefile (STYLESRC): Added `style/danish.el'. + Suggested by Lars Frellesen . + +1997-03-04 Per Abrahamsen + + * Version 9.7l released. + +1997-03-04 Per Abrahamsen + + * Makefile (some): Don't use `style/*.elc'. + +1997-02-27 Per Abrahamsen + + * tex.el (TeX-electric-macro): Default to space after dot. + +1997-02-26 Per Abrahamsen + + * Version 9.7k released. + +1997-02-26 Per Abrahamsen + + * tex.el (TeX-submit-bug-report): Fix address (sunsite, not iesd!). + +1997-02-25 Per Abrahamsen + + * Version 9.7j released. + +1997-02-21 Per Abrahamsen + + * Makefile (some): New target. + Suggested by Steven L Baur . + +1997-02-20 Per Abrahamsen + + * Version 9.7i released. + +1997-02-20 Per Abrahamsen + + * tex.el: Removed autoloads that conflicts with `tex-mode.el'. + (TeX-lisp-directory): Default to data-directory. + +1997-02-15 Per Abrahamsen + + * Version 9.7h released. + +1997-02-15 Per Abrahamsen + + * tex-buf.el (TeX-lisp-directory): Removed. + +1997-02-07 Per Abrahamsen + + * Version 9.7g released. + +1997-02-06 Karl Eichwalder + + * Makefile (install-lisp): Don't install $(aucdir)/lpath.el and + $(aucdir)/tex-site.el. + (contrib, install-contrib): New targets. + +1997-01-30 Per Abrahamsen + + * latex.el (LaTeX-math-default): uparow -> uparrow. Reported by + Kyeong Soo Kim . + +1997-01-29 Per Abrahamsen + + * Makefile (AUCSRC): Removed `ltx-help.el'. + +1997-01-27 Per Abrahamsen + + * Version 9.7f released. + +1997-01-27 Per Abrahamsen + + * latex.el (LaTeX-label-function): New variable. + (LaTeX-label): New function. + (LaTeX-section-label): Use it. + (LaTeX-env-figure): Ditto. + (LaTeX-env-label): Ditto. + Patch supplied by Carsten Dominik for + better RevTeX.el support. + + * latex.el (LaTeX-env-figure): Don't insert \leavevmode, at the + request of David Carlisle . + +1997-01-20 Per Abrahamsen + + * Version 9.7e released. + +1997-01-20 Per Abrahamsen + + * tex-buf.el (TeX-parse-error): Support LaTeX warnings. Patch by + Frederic Devernay . + (TeX-warning): Ditto. + +1997-01-17 Per Abrahamsen + + * Version 9.7d released. + +1997-01-17 Per Abrahamsen + + * tex-jp.el: XEmacs 20 support by Soren Dayton + . + +1997-01-13 Per Abrahamsen + + * Makefile (CP): Use `cp -p'. Suggested by Graham Gough + . + + * Version 9.7c released. + +1997-01-08 Per Abrahamsen + + * doc/intro.texi: Spelling fixes by Franklin Chen . + + * tex-buf.el (TeX-shell-command-option): Insitialize from + shell-command-switch. Suggested by Fabio@Colorado.EDU (Fabio + Somenzi). + + * latex.el (LaTeX-mode-menu): Added sans serif. Patch by Ralf + Fassel . + +1997-01-03 Per Abrahamsen + + * Makefile (install-lisp): Also install `.el' files. Requested by + several people. + +1996-12-11 Per Abrahamsen + + * Makefile (tex.elc): New entry. + (install-lisp): Use it. Trevor Jim + reported that `make install' wouldn't make the elc files. + +1996-12-10 Per Abrahamsen + + * Version 9.7b released. + +1996-12-10 Per Abrahamsen + + * tex-buf.el (TeX-run-format): Bind `buffer' before `process' to + avoid side effect. Suggested by Frederic Devernay + . + + * Version 9.7a released. + +1996-12-10 Per Abrahamsen + + * latex.el (LaTeX-fill-region-as-para-do): Minimal support for + `sentence-end-double-space'. + +1996-12-09 Per Abrahamsen + + * Version 9.6m released. + +1996-12-01 Per Abrahamsen + + * Version 9.6l released. + +1996-12-01 Per Abrahamsen + + * tex-jp.el: Patch from IKEMOTO Masahiro + . + +1996-11-29 Per Abrahamsen + + * Version 9.6k released. + +1996-11-22 Per Abrahamsen + + * latex.el (LaTeX-mode-menu): Made `LaTeX-math-mode' a toggle. + +1996-11-16 Per Abrahamsen + + * Version 9.6j released. + +1996-11-14 Per Abrahamsen + + * latex.el (LaTeX-common-initialization): Added eqref to + LaTeX-label-list. Suggested by Martin Hagstrom + . + +1996-11-13 Per Abrahamsen + + * tex-buf.el (TeX-region-create): Disable font lock. Suggested by + several, patch by Christoph Wedler . + +1996-11-05 Per Abrahamsen + + * tex.el (TeX-file-extensions): Added "texinfo". + +1996-09-30 Per Abrahamsen + + * latex.el (LaTeX-mode-map): Do not overwrite standard binding of + `M-g'. + + * tex.el (popup-mode-menu): Run `LaTeX-menu-update' if present. + Workaround for bug reported by Hendrik Visage + and othors. + + * latex.el (LaTeX-float): Allow nil. + (LaTeX-env-figure): Don't insert float if nil. Feature suggested + by Andre Eickler . + +1996-09-16 Per Abrahamsen + + * Version 9.6i released. + +1996-09-16 Per Abrahamsen + + * tex.el (TeX-mode-syntax-table): Made `$' have the syntax class + `$' at the suggestion of Mats Bengtsson . + +1996-08-31 Per Abrahamsen + + * latex.el (TeX-arg-cite): Use `multi-prompt' when asking for + entries. + (TeX-arg-bibliography): Ditto. + +1996-08-29 Per Abrahamsen + + * Makefile: Simplified installation (I hope). + +1996-08-28 Per Abrahamsen + + * Makefile: Removed lacheck. + +1996-08-23 Per Abrahamsen + + * tex-buf.el (TeX-run-command): Change to master directory before + executing command. + (TeX-region-file): Allow dummy second argument. + (TeX-run-background): Run in master directory. + (TeX-run-interactive): Run in master directory. + + * tex.el (TeX-master-file): Allow second argument `NONDIRECTOPRY'. + (TeX-expand-list): Set second argument `NONDIRECTORY' to file + entries. + (TeX-master-directory): New function. + * tex.el (TeX-auto-write): Write in master directory. + +1996-08-22 Per Abrahamsen + + * latex.el (LaTeX-current-environment): Ignore comments. Reported + by Stephen Eglen . + + * tex.el (TeX-directory-absolute-p): Added `windows-nt'. + + * tex-buf.el (TeX-shell): Added `windows-nt'. + (TeX-shell-command-option): Added `emx' and `windows-nt'. + Reported by Ulrich Poetter . + +1996-08-21 Per Abrahamsen + + * tex.el (VirTeX-common-initialization): Removed duplicate + initialization of `words-include-escapes'. Reperted by Mark Hovey + . + +1996-08-14 Per Abrahamsen + + * Makefile (CONTRIB): Added `font-latex.el'. + +1996-07-30 Per Abrahamsen + + * Makefile (aucdir): Changed `lib' to `share' per new emacs + conventions. Reported by "Edward J. Huff" + . + +1996-07-16 Per Abrahamsen + + * latex.el (LaTeX-fill-region-as-para-do): Make sure `.}' gets + two spaces at end of sentence when filling. + +1996-07-15 Per Abrahamsen + + * tex.el (TeX-parse-path): Ignore tralining //. Suggested by + Göran Uddeborg . + +1996-05-05 Per Abrahamsen + + * all: Use version number instead of CVS id. + + * tex.el (TeX-mode-map): Don't bind `del'. We aren't supposed to + have any tabs in the first place. + +1996-05-02 Per Abrahamsen + + * tex.el (TeX-mark-active, TeX-active-mark) [XEmacs]: The + definition of these two were swapped. Bug reported by + Vladimir Alexiev . + +1996-04-25 Per Abrahamsen + + * tex.el (TeX-update-style): Don't run parent style hooks for + files that doesn't match `TeX-one-master'. Suggested by many + people. + +1996-04-24 Per Abrahamsen + + * latex.el (LaTeX-close-environment): Bind + `next-line-add-newlines' to t. Patch by Fritz Knabe + . + +1996-04-01 Per Abrahamsen + + * latex.el (LaTeX-fill-region-as-para-do): Fill `.}' as a sentence + end. Patch by Fritz Knabe . + +1996-03-11 Per Abrahamsen + + * latex.el (LaTeX-math-cal): Use `\mathcal{}' under LaTeX2e. + Reported by Mate Wierdl . + +1996-03-05 Per Abrahamsen + + * tex-info.el (texinfo-mode): Rely on texinfo.el to provide the + outline regexp. + +1996-02-20 Per Abrahamsen + + * tex.el (TeX-command-menu-queue, TeX-command-menu-queue-entry): + New functions supporting printer queue queries from the menu. By + Ulrik Dickow + (TeX-command-menu-entry): Use them. + +1996-02-13 Per Abrahamsen + + * style/swedish.el: Support for Swedish quotation style by "G\vran + Uddeborg" . + +1995-12-21 Per Abrahamsen + + * latex.el (LaTeX-math-default): Added more definitions by Mehmet + Balcilar . + +1995-12-18 Per Abrahamsen + + * latex.el (LaTeX-fill-region-as-paragraph): Removed old version. + (LaTeX-math-menu): Redefined the math mode menu. + +1995-12-14 Per Abrahamsen + + * latex.el (LaTeX-math-menu): New variable. + (LaTeX-mode-menu): Use it. Suggested by Peter S Galbraith + . + +1995-11-13 Per Abrahamsen + + * tex.el (VirTeX-common-initialization): Set `comment-multi-line' + to nil. + +1995-10-13 Per Abrahamsen + + * PROBLEMS: Some easymenu explanations. + + * tex.el: Require easymenu.el instead of auc-menu.el. + * Makefile (AUCSRC): Removed easymenu.el and auc-menu.el. + (MINMAPSRC): Removed easymenu.el, column.el and cpp.el. + * easymenu.el: File deleted. + * column.el: File deleted. + * cpp.el: File deleted. + + * latex.el (LaTeX-math-insert): Don't check if `TeX-insert-macro' + is defined. + (LaTeX-close-environment): Work better when called on an empty + line. Fixed by David Aspinall . + +1995-10-12 Per Abrahamsen + + * tex.el ('LaTeX-math-mode): Autoload from latex.el instead of + ltx-math.el. Reported by Richard Brankin . + +1995-02-14 Per Abrahamsen + + * latex.el (LaTeX-fill-region-as-paragraph): Should now format \\ + correctly. Patch by michal@ellpspace.math.ualberta.ca (Michal + Jaegermann). + (LaTeX-fill-region-as-para-do): New function. + (LaTeX-fill-region-as-paragraph): Do not fill paragraphs inside + special environments. + +1995-02-12 Per Abrahamsen + + * tex.el (TeX-byte-compile): Make it default to nil. Suggested by + michal@ellpspace.math.ualberta.ca (Michal Jaegermann). + + * tex-buf.el (TeX-command-query): Also offer to save files when + started from a menu. Reported by wscoas@win.tue.nl (Anton + A. Stoorvogel). + (TeX-LaTeX-sentinel): Don't suggest BibTeX if there is no + bibliographies. Suggested by Piet van Oostrum . + +1995-02-11 Per Abrahamsen + + * tex-buf.el (TeX-run-format): Protect against being run from a + different buffer. Patch by Michael Kifer + . + + * latex.el (LaTeX-math-default): Moved `Phi' from V to F in + LaTeX-math-mode. Suggested by dak@ind.rwth-aachen.de (David + Kastrup). + * doc/math-ref.tex: Documented it. + +1995-02-02 Per Abrahamsen + + * tex-buf.el (TeX-home-buffer): Added interactive, reported by + edavid@lami.univ-evry.fr. + +1995-02-01 Per Abrahamsen + + * hilit-LaTeX.el: Upgraded to 1.06. + + * Makefile (CONTRIB, EXTRAFILES): Moved tex-jp.el to CONTRIB. + +1995-01-27 Per Abrahamsen + + * latex.el (LaTeX-paragraph-commands): Incorrectly placed + parenthesis. Reported by mic@cs.ucsd.edu (Michelangelo Grigni). + +1995-01-26 Per Abrahamsen + + * latex.el (LaTeX-fill-region): Use marker to mark end of region + instead of integer, as the formatting may change the size of the + region. + (LaTeX-common-initialization): Fixed bug in paragraph definitions. + Reported by Steve Anderson . + + * tex.el (save-match-data): Added by koba@flab.fujitsu.co.jp + (Kobayashi Shinji). + (bibtex-mode-hook): Don't use add-hook yet. Reported by + koba@flab.fujitsu.co.jp (Kobayashi Shinji). + +1995-01-25 Per Abrahamsen + + * tex.el (change-major-mode-hook): Also clear + `LaTeX-environment-list'. + + * Makefile (AUCSRC): Add `auc-menu.el'. + + * tex.el: Use auc-menu instead of easymenu. + + * tex.el: Inserted comment to mark end of site customization. + Suggested by john@minster.york.ac.uk (John A. Murdie). + + * tex.el (change-major-mode-hook): Forgot a set of parentheses. + Reported by Frederic Devernay . + + * tex-buf.el (TeX-current-pages): Removed extra parentheses. + Reported by mic@cs.ucsd.edu (Michelangelo Grigni). + +1995-01-24 Per Abrahamsen (abraham@iesd.auc.dk) + + * tex.el (change-major-mode-hook): Added workaround for error in + XEmacs 19.11's `kill-all-local-variables'. + +1995-01-23 Per Abrahamsen + + * latex.el (LaTeX-common-initialization): Removed unnecessary + regexp quotes of `TeX-esc'. + + * style/amsart.el: Move `eqref' definition to `style/amstex.el' + and load that style hook. + * style/amstex.el: New file. + * Makefile (STYLESRC): Added it. + Suggested by vb1890@PLAY.CS.NYU.EDU (Victor Boyko). + +1995-01-22 Per Abrahamsen + + * latex.el, ltx-math.el, Makefile: Integrated `ltx-math.el' in + `latex.el'. + * tex-site.el: Removed autoload for `LaTeX-math-mode'. + +1995-01-19 Per Abrahamsen + + * latex.el (latex-mode): Epoch fix by Martin Sjolin + . + +1995-01-17 Per Abrahamsen + + * bib-cite.el: New file contributed by Peter S. Galbraith + . + + * hilit-LaTeX.el: New file contributed by Peter S. Galbraith + . + + * Makefile (CONTRIB): New macro for user contributed emacs lisp + packages, initialized with `bib-cite.el' and `hilit-LaTeX.el'. + (EXTRAFILES): Added $(CONTRIB) to the list. + + * tex.el (TeX-directory-absolute-p): Moved definition before + `TeX-macro-private'. Reported by Frederic Devernay + . + + * latex.el (LaTeX-common-initialization): Remove extra and wrong + "\\\\par" from `paragraph-separate'. Bug reported by + nijhof@th.rug.nl (Jeroen Nijhof). + +1995-01-11 Per Abrahamsen + + * tex-buf.el (TeX-command-region): Comment fix. Patch by + wlang@rs6000.mri.akh-wien.ac.at (Willi Langenberger). + (TeX-region-create): More outline-mode safe. Patch by + wlang@rs6000.mri.akh-wien.ac.at (Willi Langenberger). + + * Makefile (dist): Put version number in WWW page. Suggested by + several people. + + * latex.el (LaTeX-auto-regexp-list): Ignore first optional + argument to newenvironment if there is a second. Problem reported + by schiotz@ltf.dth.dk (Jakob Schiotz). + + * style/amsbook.el: New file. Problem reported by Denby Wong + <3dw16@qlink.queensu.ca>. + +1995-01-04 Per Abrahamsen + + * tex-buf.el (TeX-TeX-sentinel-check): New function. Updates + `TeX-current-page' with regexp by dodd@roebling.poly.edu (Lawrence + R. Dodd) + (TeX-current-pages): New function. + (TeX-LaTeX-sentinel, TeX-TeX-sentinel): Use it. + (TeX-format-filter): Removed unnecessary check before assignment. + +1995-01-03 Per Abrahamsen + + * tex-buf.el (TeX-LaTeX-sentinel): Write number of pages even + when labels or citations are missing. Patch by + dodd@roebling.poly.edu (Lawrence R. Dodd). + +1994-12-07 Per Abrahamsen + + * tex.el (TeX-directory-absolute-p): New function. Should work on + both Unix and MS DOS. Problem reported by schiotz@ltf.dth.dk + (Jakob Schiotz). + (TeX-parse-path): Use it. + (TeX-auto-generate): Use it. + +1994-12-05 Per Abrahamsen + + * latex.el (BibTeX-auto-store): Set TeX-auto-parse-length to + 999999 locally. Problem reported by Christoph Wedler + . + +1994-12-02 Per Abrahamsen + + * tex-buf.el (TeX-LaTeX-sentinel): Check whether the ".bbl" file + need to be udpated before setting TeX-command-next to "BibTeX". + (TeX-command-query): Remove previous change. + +1994-11-28 Per Abrahamsen + + * latex.el (LaTeX-209-to-2e): New function by + Graham Gough . + + * latex.el (LaTeX-mode-menu): Move many commands to new + "Miscellaneous" submenu. + + * tex-buf.el (TeX-home-buffer): Don't take arg. + + * latex.el (LaTeX-left-right-indent-level): New variable + controling indentation for \left \right blocks. + (LaTeX-indent-level-count): New function. Previously only LaTeX + macros at the beginning of the line would affect indentation. + This problem was reported by many people. + (LaTeX-indent-calculate-last): Call `LaTeX-indent-level-count'. + Take into account that \end and \right at the beginning of the + line has immediate effect. + +1994-11-27 Per Abrahamsen + + * latex.el (TeX-global-input-files): New variable. Idea and + sample code by Christophe Mignot . + (TeX-arg-input-file): Use it. + (BibTeX-global-style-files): Mention how it is reset in + `TeX-normal-mode'. + (BibTeX-global-files): Ditto. + + * tex.el (TeX-normal-mode): Reset `BibTeX-global-style-files', + `BibTeX-global-files', and `TeX-global-input-files' if invoked + with an argument. + + * tex-site.el: Ignore trailing `/' when adding TeX-lisp-directory + to load-path. Patch by Michael Ernst + . + + * tex-buf.el (TeX-LaTeX-sentinel): Don't rerun LaTeX on missing + references, unless they have changed. Patch by schiotz@ltf.dth.dk + (Jakob Schiotz). + + * latex.el (LaTeX2e-font-replace): New function. + (LaTeX-common-initialization): Set TeX-font-replace-function to + LaTeX2e-font-replace when using latex2e. + + * tex.el (TeX-font-replace-function): New variable. + (TeX-font): Use it. + + TeX-font-replace-function and LaTeX2e-font-replace were + contributed by Peter Thiemann + . + + +1994-11-22 Per Abrahamsen + + * MSDOS: Added. Contributed by schiotz@ltf.dth.dk (Jakob + Schiotz). + + * OEMACS: Removed. + + * tex.el (VirTeX-common-initialization): Make + `words-include-escapes' a local variable before setting it. + Reported by Bo Nygaard Bai . + +1994-11-15 Per Abrahamsen + + * tex.el (TeX-auto-store): Change to functions that prevent the + auto file buffer from entering emacs-lisp-mode. + (TeX-auto-insert): Don't rely on emacs-lisp-mode for indentation. + Suggested by Stefan Schöf (schoef@informatik.uni-oldenburg.de). + +1994-11-11 Per Abrahamsen + + * tex.el (TeX-macro-global): Change to `standard' path. + +1994-11-09 Per Abrahamsen + + * tex-buf.el (TeX-command-query): Suggest TeX-command-default + again if bbl file is newer than dvi file. + +1994-11-07 Per Abrahamsen + + * tex.el (TeX-submit-bug-report): Indicate LaTeX-version. + Suggested by schiotz@ltf.dth.dk (Jakob Schiotz). + +1994-10-26 Per Abrahamsen + + * Makefile (dist): Automatically update AUC-TeX-version and + AUC-TeX-date in tex.el + + * tex.el (AUC-TeX-version): Added AUC-TeX-version and + AUC-TeX-date from auc-ver.el. + + * auc-ver.el: File removed. + + * tex.el: Added version specific code from seperate files. + + * tex-19.el, tex-18.el, tex-lcd.el: Files removed. + +1994-10-25 Per Abrahamsen + + * doc/auc-tex.texi (Projects): Removed an implemented item. + + * tex.el (TeX-command-current): New variable. + (TeX-command-select-master): New function. + (TeX-command-select-buffer): New function. + (TeX-command-select-region): New function. + (TeX-command-menu): Use TeX-command-current instead of explicit + file argument. + (TeX-command-menu-print): Remove file argument. + (TeX-command-menu-printer-entry): Don't pass file argument. + (TeX-command-create-menu): Removed. + (TeX-mode-menu): New menu. + (plain-TeX-mode-menu): Removed entries now in TeX-mode-menu. + (plain-TeX-mode-menu): Use `toggle' for bad boxes. + (plain-TeX-common-initialization): Enable TeX-mode-menu. + + * latex.el (LaTeX-mode-menu): Removed entries now in + TeX-mode-menu. + (LaTeX-mode-menu): Use `toggle' for bad boxes. + (LaTeX-common-initialization): Enable TeX-mode-menu. + + * tex-info.el (TeXinfo-command-menu): New menu. + (TeXinfo-mode-menu): Move commands to new menu. + (TeXinfo-mode-menu): Use `toggle' for bad boxes. + (texinfo-mode): Enable TeXinfo-command-menu. + +1994-10-24 Per Abrahamsen + + * Makefile (AUCSRC): Removed auc-menu.el from AUC TeX distribution. + (MINMAPSRC): Added easymenu.el temporarily to min-map distribution. + + * auc-menu.el: Just load easymenu.el when using GNU Emacs. + + * easymenu.el Try to use RMS's easymenu instead of auc-menu. + (easy-menu-define): Call `easy-menu-do-define' to do + the real work. Document XEmacs keyword arguments. + (easy-menu-do-define): New function. + (easy-menu-create-keymaps): Support XEmacs keyword arguments in + menu definition. + (easy-menu-remove): Make is a function instead of a macro. + (easy-menu-add): Ditto. + +1994-10-21 Per Abrahamsen + + * doc/auc-tex.texi (Completion): Less confusing BibTeX advice, I hope. + + * tex-jp.el: Added patch from koba@flab.fujitsu.co.jp (Kobayashi + Shinji). + + * latex.el (TeX-arg-insert-braces): Have \left and \right on + different lines. Patch by thiemann@informatik.uni-tuebingen.de + (Peter Thiemann). + + * Makefile (dist): Add CHANGES and ChangeLog files to the ftp + directory. Suggested by Frederic Devernay + . + + * latex.el (LaTeX-indent-calculate): Allow nil second element in + `LaTeX-indent-environment-list'. + (LaTeX-indent-environment-list): Added special environments + suggested by thiemann@informatik.uni-tuebingen.de (Peter + Thiemann). + +1994-10-20 Per Abrahamsen + + * tex.el (TeX-auto-list-information): Spelling error. + +1994-10-18 Per Abrahamsen + + * latex.el (LaTeX-common-initialization): Make "LaTeX2e" the + default command if you have set `LaTeX-version' to "2" and is + using "\documentclass". + +1994-10-06 Per Abrahamsen + + * latex.el (LaTeX-paragraph-commands): End each word with a "\\b" + to avoid accidentally matching longer macros. + + * tex.el (TeX-add-local-master): Use three %'s when adding buffer + local variables. Suggested by Raymond Toy . + + * tex.el (TeX-format-list): Added entry for AmSTeX by Ulf Juergens + . + + * tex.el (ams-tex-mode): Run AmS-TeX-mode-hook, not + plain-TeX-mode-hook. Reported by Ulf Juergens + . + + * tex-buf.el (TeX-format-filter): Add `save-match-data'. Patch by + David Aspinall . + +1994-09-14 Per Abrahamsen + + * cpp.el: Use RMS's version. + +1994-09-13 Per Abrahamsen + + * doc/history.texi, doc/auc-tex.texi: Fixes from Chris Fearnley + <@vm.uni-c.dk:FEARNLCJ@DUVM>. + +1994-09-09 Per Abrahamsen + + * latex.el (LaTeX-insert-environment): Don't fill environments + listed in `LaTeX-indent-environment-list'. Suggestion by Graham + Gough . + + * tex.el (LaTeX-command-style): Made latex2e first in the list. + Suggested by Frederic Devernay . + +1994-09-05 Per Abrahamsen + + * tex.el (TeX-file-extensions): Added LaTeX2 `cls' extension after + query by jmv@di.uminho.pt (Jose Manuel Valenca). + +1994-08-30 Per Abrahamsen + + * tex-jp.el: New version from koba@flab.fujitsu.co.jp (Kobayashi + Shinji). + + * tex.el (TeX-command-list): Fifth element is now ignored. + + * tex-buf.el (TeX-command-query): Check if region file is newer + than dvi file. + (TeX-command-region): Only query for command _after_ region file + is created. + (TeX-region-create): Only save file if the new content is + different than the original content. + +1994-08-29 Per Abrahamsen (abraham@research.att.com) + + * tex-buf.el (TeX-warning): Use offset for line end. Fixed by + ddw2@sunbim.be (Dominique de Waleffe). + +1994-08-26 Per Abrahamsen (abraham@iesd.auc.dk) + + * doc/auc-tex.texi (Projects): Removed preceding item from + wishlist. + + * latex.el (LaTeX-common-initialization): Fix to comments + separating paragraphs by koba@flab.fujitsu.co.jp (Kobayashi + Shinji). + + * tex-jp.el (LaTeX-fill-region-as-paragraph): New version for MULE + 2.0 by Tomotake FURUHATA . + + * tex.el (TeX-function-p): Spelling error in doc. + +1994-08-23 Per Abrahamsen (abraham@iesd.auc.dk) + + * doc/intro.texi (Contacts): Some reformulations. + +1994-08-21 Per Abrahamsen (abraham@iesd.auc.dk) + + * tex-jp.el (TeX-insert-punctuation): Japanese version from + koba@flab.fujitsu.co.jp (Kobayashi Shinji). + +1994-08-19 Per Abrahamsen (abraham@iesd.auc.dk) + + * doc/install.texi: The `site-lisp' directory is also available in + Lucide Emacs 19.10. Reported by Tim Geisler + . + +1994-08-18 Per Abrahamsen (abraham@iesd.auc.dk) + + * latex.el (TeX-arg-cite): Prompt for multiple keys. Suggested by + Masahiro Kitagawa . + +1994-08-17 Per Abrahamsen (abraham@iesd.auc.dk) + + * style/german.el ("german"): Use `TeX-quote-after-quote'. + Suggested by te@informatik.uni-hannover.de (Thomas Esser). + + * latex.el (LaTeX-common-initialization): Error in regexp for + multiple arguments to `\cite', reported by Masahiro Kitagawa + . + +1994-08-17 Per Abrahamsen (abraham@iesd.auc.dk) + + * latex.el (LaTeX-env-figure): Put caption inside center + environment. Suggested by Martin Wunderli . + + * tex.el (TeX-strip-extension): If NODIR is set to `path', remove + the directory part iff it is equal to the current directory, or is + a member of either `TeX-macro-global' or `TeX-macro-private'. + (TeX-master-file): Use `path' for NODIR when querying the user for + a file name. Reported finger@brachio.Informatik.Uni-Dortmund.DE + (Bernd Finger). + +1994-08-16 Per Abrahamsen (abraham@iesd.auc.dk) + + * latex.el (LaTeX-common-initialization): `eqnarray*' should not + have a label. Reported by dodd@roebling.poly.edu (Lawrence R. + Dodd). + +1994-08-11 Per Abrahamsen (abraham@iesd.auc.dk) + + * tex-buf.el (TeX-background-filter): Always show background + output. + +1994-08-10 Per Abrahamsen (abraham@iesd.auc.dk) + + * Makefile (MINMAPSRC): Added `all.el'. + + * all.el: New file. + + * tex-buf.el (TeX-LaTeX-sentinel): Write "some" if + TeX-current-page is nil. Reported by Michail Rozman + . + +1994-08-09 Per Abrahamsen (abraham@iesd.auc.dk) + + * auc-menu.el (easy-menu-add): Undid previous change. + (top level `cond'): Use Emacs 18 code if `window-system' is nil. + Patch by Patrice Belleville . + +1994-08-08 Per Abrahamsen (abraham@iesd.auc.dk) + + * tex.el (TeX-electric-macro): No electricity after `.' or `\'. + +1994-08-06 Per Abrahamsen (abraham@iesd.auc.dk) + + * latex.el (LaTeX-paragraph-commands): New variable. + (LaTeX-common-initialization): Use it. Suggested by + liyuan@allwise.research.att.com (Yuan P. Li). + + * auc-menu.el (easy-menu-add): Check that `x-popup-menu' is bound + and that we are running under X before calling it. Reported by + Adrian F. Clark + +1994-08-04 Per Abrahamsen (abraham@iesd.auc.dk) + + * tex-jp.el (LaTeX-fill-region-as-paragraph): Patch for Emacs 19 + regexps by koba@flab.fujitsu.co.jp (Kobayashi Shinji) reported by + Uenami Ken'ichi . + + * doc/auc-tex.texi (European): Mention `iso-cvt.el' as suggested + by mike@vlsivie.tuwien.ac.at (Michael Gschwind). + +1994-08-03 Per Abrahamsen (abraham@iesd.auc.dk) + + * doc/history.texi: New file. + + * doc/Makefile (HISTORY): Added rule. + + * Makefile (EXTRAFILES): Added `ChangeLog'. + (DOCFILES): Added `history.texi'. + + * doc/auc-tex.texi (History): Made ready for 9.2. Move history to + `history.texi'. + + * doc/changes.texi: Made ready for 9.2. Introduce ChangeLog. + + * Makefile (LispInstall): Use "/bin/pwd" instead of "pwd". + reported by mic@cs.ucsd.edu (Michelangelo Grigni). + + * ChangeLog: New file. + + * Version 9.1 released. + +This file records repository revisions from +commit c865982cacab289f4480f9145b3438ec06824232 (exclusive) to +commit 7ef680c7a48ab31faea68c0291286dff28e5b9af (inclusive). + +;; Local Variables: +;; coding: utf-8 +;; End: + + Copyright (C) 1994-2016 Free Software Foundation, Inc. + + This file is part of GNU AUCTeX. + + GNU AUCTeX is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + GNU AUCTeX is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GNU AUCTeX. If not, see . diff -Nru auctex-11.88/ChangeLog-preview auctex-11.90/ChangeLog-preview --- auctex-11.88/ChangeLog-preview 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/ChangeLog-preview 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,1885 @@ +2017-01-10 Mosè Giordano + + * Version 11.90 released. + +2015-11-13 Mosè Giordano + + * Version 11.89 released. + +2014-11-28 Stefan Monnier + + * preview.el.in: Cleanup compiler warnings. Mark unused arguments. + (error): Don't declare; we don't use it anyway. + (view-exit-action): Declare. + (desktop-buffer-preview): Use normal names for the function's args. + (preview-parse-messages): Remove unused vars `error', `context-start', + and `context' (this last one wasn't even bound). + +2014-11-04 Stefan Monnier + + * prv-install.el: Adjust copyright years. + (preview-make-package-xemacs): Use insert-file-contents instead of + insert-file. + + * preview.el.in (error): Declare not only at compile-time. + (preview-expandable-string): Use explicit let instead of calling + lambda with another lambda. + (preview-mouse-open-eps): Use default-value of major-mode instead + of default-major-mode. + (preview-copy-text): Use with-current-buffer instead of + save-excursion with set-buffer. + (preview-parse-messages): Don't let-bind context. Use mapc + + funcall instead of run-hooks. Use goto-char + forward-line + instead of goto-line. + +2014-10-29 Mosè Giordano + + * Version 11.88 released. + +2014-10-29 Mosè Giordano + + * latex/preview.dtx: Manually change the release version. + + * preview.el.in: Rename from "preview/preview.el". + (preview-version): Use @PREVIEWVERSION@ autoconf variable. + (preview-release-date): Use @PREVIEWDATE@ autoconf variable. + (preview-report-bug): Adapt to new `preview-version' format. + +2014-06-24 Tassilo Horn + + * preview.el (preview-gs-command): Don't run the mgs command if + mgs is not installed. + +2013-09-05 Tassilo Horn + + * preview.el (preview-lispdir): New defvar. + + * auto.el.in (preview-lispdir): Set it to @lisppackagelispdir@. + +2013-07-03 Tassilo Horn + + * preview.el (preview-gs-command): Change test for `mgs' + functionality to "gs -q -dNODISPLAY -c quit". + +2013-07-02 Tassilo Horn + + * preview.el (preview-gs-command): Better test if `mgs' is + working. + +2013-07-01 Tassilo Horn + + * preview.el (preview-gs-command): Test `mgs' for functionality + before using it. + +2013-06-29 Tassilo Horn + + * preview.el (preview-gs-command): Prefer the TeX distro + ghostscript wrapper scripts `rungs' and `mgs' over calling `gs' + directly which requires it to be in PATH. + +2013-06-26 Tassilo Horn + + * Makefile.in (use-hint): Don't warn about problems with overly + obsolete packages. + +2013-04-08 Tassilo Horn + + * latex/preview.dtx: Fix date format which got converted from + YYYY/MM/DD to YYYY-MM-DD during conversion to git. + +2012-12-04 Tassilo Horn + + Merge revno 314 (Stefan Monnier) from emacs elpa branch: Shorten + copyright year ranges. + + * preview.el: + +2011-01-23 Ralf Angeli + + * preview.el (preview-auto-reveal): Add `forward-char' and + `backward-char' to commands on which to open an overlay. + +2010-10-14 Ralf Angeli + + * preview.el (preview-gs-options): Start gs with -dDELAYSAFER + instead of -dSAFER. + (preview-prepare-fast-conversion): Add relevant files to + PermitFileReading list of paths. + +2010-02-14 Ralf Angeli + + * latex/preview.dtx: Add support for XeTeX. + +2009-06-18 Ralf Angeli + + * preview.el (preview-start-pdf2dsc): Determine the PDF source + depending on the previews being generated from the master or the + region file. + +2008-05-10 Reiner Steib + + * preview.el (preview-auto-cache-preamble): Fix markup in in doc + string. + +2008-02-03 Ralf Angeli + + * Relicense all "GPLv2 or later" files to "GPLv3 or later". + + * COPYING: Switch to GPLv3. + + * preview/Makefile.in, preview/configure.ac, + preview/preview-latex.spec, preview/latex/Makefile.in: Add + copyright and license notices. + +2007-04-29 Ralf Angeli + + * preview.el (preview-parse-messages): Match any closing + parenthesis. + +2007-03-25 David Kastrup + + * prv-xemacs.el (preview-dump-threshold): + + * prv-emacs.el (preview-dump-threshold): Make the dump threshold + closely match what mylatex.ltx expects. + + * latex/preview.dtx: Have the counter output appear before the + snippet start/end messages in order to have the counter + maintenance work out correctly regardless of the order of `auctex' + and `counters' options to preview.el. + +2007-02-09 Masayuki Ataka + + * preview.el (preview-report-bug): Use `AUCTeX-version' instead of + `AUC-TeX-version'. Reported by Ikumi Keita . + +2007-01-12 Ralf Angeli + + * configure.ac: Bump version number. + +2006-12-01 David Kastrup + + * prv-emacs.el (preview-move-point): Do not error out if + `distance' is nil. + + * prv-xemacs.el (preview-supports-image-type): Move so that the + following comment makes sense. + +2006-12-01 Ralf Angeli + + * prv-xemacs.el (preview-move-point): Do not error out if + `distance' is nil. + +2006-10-24 David Kastrup + + * prv-xemacs.el (preview-move-point): rearrange for calling + `preview-auto-reveal' with DISTANCE argument. + + * prv-emacs.el (preview-remove-urgentization): Small optimization. + (preview-move-point): Rearrange to be more efficient in the + absence of overlays. + + * preview.el (preview-auto-reveal): Fetch keybindings of [left] + and [right] at runtime. Change proposed default accordingly. + (preview-at-point): Fix change from 2005-03-15 for cursor + restoration. + (preview-auto-reveal-p): Implement integer MODE and take DISTANCE + argument. + (preview-auto-reveal): Allow DISTANCE. + +2006-10-19 David Kastrup + + * prv-xemacs.el (preview-defmacro): Use `fboundp' instead of + `functionp'. + (add-to-list): compatibility function not needed anymore since + 2006-10-11 change. + +2006-10-18 David Kastrup + + * preview.el (eval-when-compile): restore function definitions of + compatibility macros. + + * prv-xemacs.el (preview-defmacro): Also redefine functions that + actually exist, but save their definition. + + * preview.el (preview-parse-messages): Fix bad regexp. + +2006-10-16 David Kastrup + + * preview.el (preview-parse-messages): Rearrange the regexp for + matching and renumber the matches and match strings accordingly. + +2006-10-11 David Kastrup + + * preview.el (LaTeX-preview-setup): Move setup of + `TeX-error-description-list' and `TeX-expand-list' to AUCTeX + proper. + +2006-10-10 David Kastrup + + * preview.el (preview-gs-filter): Fix prompt match expression to + allow stack garbage > 10. + (preview-gs-open): Assume `.runandhide' is defined (Ghostscript + 6.53 and greater). Don't check Ghostscript stack for correctness, + just leave garbage. + (preview-prepare-fast-conversion): Use `.runandhide' to ignore + garbage left by preamble (such as Omega fonts). + (preview-LaTeX-command): Use "%'" and "%t" expansion strings in + order to allow filenames with spaces in them. + (preview-goto-info-page): Use `info' instead of `Info-goto-node'. + (preview-parse-messages): Spike up terminal log file name tracing + in order to have a reasonable chance of detecting spaces in file + names. + (preview-parse-messages): Massage match string for partial strings + to deal better with TeX-quoted control sequences. + (preview-dump-file-name): The format name should not contain + spaces. Replace them with underlines. + (preview-dump-replacements, preview-undump-replacements): Use a + different replacement in order to work with the new + `preview-LaTeX-command'. + (preview-cache-preamble): shell-quote `preview-format-name'. Keep + `mylatex.ltx' from ignoring spaces in file names. + (TeX-inline-preview-internal): shell-quote `preview-format-name'. + +2006-09-29 David Kastrup + + * preview.el (preview-gs-command): Make default depend on + `system-type', using "GSWIN32C.EXE" on `windows-nt'. + + * configure.ac: If no GhostScript or the standard setting for the + operating system is found, don't override the default. + +2006-09-21 David Kastrup + + * preview.el (preview-TeX-style-cooked): Fix bugs. + (preview-set-texinputs): Use `preview-TeX-style-cooked'. + (preview-TeX-style-dir): Change doc string to reflect new behavior + of `preview-set-texinputs'. + (preview-install-styles): Try to deal with `preview-TeX-style-dir' + properly. Bomb out if no styles found to install. + (preview-report-bug): Add `preview-TeX-style-dir' to reported + variables. + + * configure.ac: Remove `--with-kpathseasep' option. + +2006-09-01 David Kastrup + + * prv-xemacs.el (preview-import-image): Allow strings as image + properties. + + * prv-emacs.el (preview-remove-urgentization) + (preview-import-image): Allow strings as image properties. + + * preview.el (preview-clearout, preview-kill-buffer-cleanup) + (preview-place-preview): Use `timestamp' field universally for + dealing with when to overwrite and when to retain images, don't + rely on filename internals. + (desktop-buffer-preview-misc-data): Use `preview-image' to judge + the availability of savable data. + (preview-reinstate-preview): Allow saving images without + associated filenames. + (preview-format-mml): Deal with string type images. + +2006-08-25 David Kastrup + + * latex/preview.dtx: Use eTeX's `\protected' on redefinitions when + available. + +2006-08-15 David Kastrup + + * latex/preview.dtx: Change from 2006-07-12 could lose the + `AtBeginDvi' material. Fix that. Disable preview within output + routine. + And actually hijack `\output' instead of doing it half way. + +2006-07-28 Reiner Steib + + * latex/Makefile.in (install-texmf): Only update the relevant ls-R + file. + +2006-07-25 David Kastrup + + * latex/preview.dtx: Allow two optional parameters as in + memoir.cls for sections. Also preview chapter headings. + +2006-07-23 Ralf Angeli + + * configure.ac: Fix spelling of MiKTeX. + +2006-07-12 David Kastrup + + * latex/preview.dtx: Add a font-lock helping comment, remove + preview's hook into the output routine, deactivate `\shipout' in a + cleaner manner. + +2006-07-11 David Kastrup + + * latex/preview.dtx: Fix XymTeX catcodes again. + +2006-07-10 Ralf Angeli + + * Makefile.in, latex/Makefile.in (datarootdir): New variable used + by autoconf 2.59e. + +2006-06-12 Ralf Angeli + + * latex/README: Streamline. Add sections. Clean up. + +2006-06-08 David Kastrup + + * latex/README: Adapt to new realities. + +2006-05-25 David Kastrup + + * latex/preview.dtx: Add another fix for XyMTeX (which got the + catcode for @ wrong). + +2006-05-25 Ralf Angeli + + * configure.ac: Bump version number. + + Update address of FSF in GPL notices. + +2006-04-20 David Kastrup + + * preview.el (preview-parse-messages): Adapt parser to + `-file-line-error-style' messages. Try to make the detection of + the current file more robust. Utilize file-line-error messages + for that purpose if they are present. + +2006-03-22 Ralf Angeli + + * Makefile.in (.PHONY, install): Remove `install-metadata'. + (install-metadata): Remove. + +2006-03-22 David Kastrup + + * prv-install.el (preview-make-package-xemacs): Accept list of + files to be appended. + +2006-03-14 Ralf Angeli + + * configure.ac: Use `AC_PROG_MAKE_SET' instead of deprecated + `AC_SET_MAKE'. + +2006-02-21 Ikumi Keita + + * preview.el (preview-error-quote, TeX-inline-preview-internal): + Fix the problem that preview-latex put the preview-image in wrong + place if user compiles iso-2022-jp file on Windows or UNIX, by + using TeX-japanese-process-output-coding-system for + preview-coding-system instead of buffer-file-coding-system if + tex-jp.el is loaded. + +2006-01-29 Ralf Angeli + + * Makefile.in (install-metadata): Let `for' loop return an exit + status of 0. + +2006-01-20 Reiner Steib + + * preview.el (preview-TeX-style-cooked): Fix cond expression. + +2006-01-17 David Kastrup + + * preview.el (preview-TeX-style-cooked): New function, to be used + later. Just checked in so that nobody else feels compelled + writing it. + +2006-01-14 David Kastrup + + * configure.ac: Remove infodir and INSTALL_INFO checks. Don't + check for TEXHASH if it is already set. + +2006-01-13 David Kastrup + + * preview.el (preview-parse-messages): Some ugly fix for + `' style error messages. + +2005-12-31 David Kastrup + + * Makefile.in (ELCC, AUCTEX): Put "." in front of load-path to + avoid picking up outdated `prv-*.el*' files from the installation + directory. + +2005-12-17 Ralf Angeli + + * configure.ac: Bump version number. + +2005-10-24 Ralf Angeli + + * configure.ac: Import `TEX' in unquoted form. + +2005-10-13 Ralf Angeli + + * configure.ac: Change wrongly used `previewdatadir' to + `previewlispdir'. + Change version number in `AC_INIT'. + +2005-10-03 Ralf Angeli + + * prv-xemacs.el (preview-check-changes): Delete detached extents. + +2005-09-27 Ralf Angeli + + * configure.ac: Document option for specifying AUCTeX startfile as + --with-previewstartfile, not --with-preview-startfile which does + not work. + Use matching package names for determining the kpathsea path + separator both internally and in the option name which now is + --with-kpathseasep. + Fix the quadrigraph for the closing bracket in the + kpathsesep-related error message. + +2005-09-25 Ralf Angeli + + * latex/preview.dtx: Add space for nicer formatting in version + output. Adapt checksum. + +2005-09-25 David Kastrup + + * latex/preview.dtx: Try fixing the release parsing/grouping. + +2005-09-25 Ralf Angeli + + * latex/README (CTAN): Bump version number. + + * latex/preview.dtx: Fix case in release tag parsing. + +2005-09-24 David Kastrup + + * latex/preview.dtx: Try parsing version correctly by treating + underlines in the release tag properly. + +2005-09-24 Ralf Angeli + + * preview.el (preview-version): Extract version number from + release tag. + +2005-08-18 Ralf Angeli + + * configure.ac: Import unquoted variables from top-level configure + script. + +2005-07-15 David Kastrup + + * latex/preview.dtx: Don't talk nonsense about the footnote macro, + and don't define it nonsensical for AUCTeX. + Reproduce `\@startsection' command to keep numbering correct in + default configuration for AUCTeX. + +2005-07-14 David Kastrup + + * configure.ac: protect against packagedir starting with `-' + +2005-07-11 David Kastrup + + * preview.el (preview-at-point): Join adjacent touched previews + for regeneration. + + * prv-emacs.el (preview-mode-setup): + + * prv-xemacs.el (preview-mode-setup): Use correct string for + resetting watch on preamble. + +2005-07-05 David Kastrup + + * preview.el (preview-string-expand): Allow substrings to be + controlled by booleans. + (preview-expandable-string): Adapt type to that. + (preview-required-option-list): Make dependent on + `preview-preserve-counters'. + (preview-preserve-counters): New boolean. + +2005-06-30 jalar + + * latex/preview.dtx: : added comments + +2005-06-28 Jan-Ake Larsson + + * latex/preview.dtx: Add version number in a \special, in dvips + mode. Fix mismatched parantheses. + +2005-06-27 David Kastrup + + * latex/preview.dtx: Put version into `\pr@version'. + +2005-06-27 Jan-Ake Larsson + + * latex/preview.dtx: Add backwards-compatibility for dvipng <= 1.5 + + * latex/preview.dtx: Add preview@tightpage + +2005-06-24 David Kastrup + + * prv-install.el (preview-make-package-xemacs): Add author-version. + + * preview.el (preview-TeX-style-dir): Change docs. + + * latex/Makefile.in (preview.dvi): Depend on preview.sty + (preview.pdf): Same here. + + * configure.ac: Remove checks for PERL and info-related stuff. + Add . into search path first. + + * Makefile.in (texmf): Depend on latex/Makefile + (latex/Makefile, auto.el, configure, Makefile, config.status): + targets to make sure that Makefile and stuff are up to date. + (install-metadata): pass author version into prv-install.el + +2005-06-21 Ralf Angeli + + * configure.ac: Make message at end of configuration clearer. + Remove redundant build hint. + + * .cvsignore: Remove irrelevant entries. + +2005-06-21 David Kastrup + + * configure.ac: correct comparison. + +2005-06-20 David Kastrup + + * RELEASE: Remove (folded into ../RELEASE). + +2005-06-18 David Kastrup + + * preview.el (preview-gs-dvips-process-setup) + (preview-dvipng-process-setup): Improve error message. + (preview-parse-messages): Don't throw error on nil parsestate if + we are in error unwinding mode already. + +2005-06-14 David Kastrup + + * README.CVS: Remove. Top file should be sufficient. + + * autogen.sh: Remove. We have its functionality in the top + directory. + +2005-06-08 Ralf Angeli + + * Makefile.in (docs, install-docs): Remove. + (all): Do not depend on `docs' anymore. + (.PHONY): Do not depend on `docs' and `install-docs' anymore. + (clean, maintainer-clean): Do not descend into doc directory + anymore. + + * autogen.sh: Do not generate documentation anymore. + + * configure.ac: Remove doc/Makefile from AC_OUTPUT. + + * doc/todo.texi: Move to AUCTeX's main doc/ directory as + preview-todo.texi. + + * doc/readme.texi: Move to AUCTeX's main doc/ directory as + preview-readme.texi. + + * doc/problems.texi: Move to AUCTeX's main doc/ directory as + preview-problems.texi. + + * doc/preview-dtxdoc.pl, doc/preview-latex.texi: Move to AUCTeX's + main doc/ directory. + + * doc/faq.texi: Move to AUCTeX's main doc/ directory as + preview-faq.texi. + + * doc/copying.texi: Move to AUCTeX's main doc/ directory. + + * doc/Makefile.in: Remove. + + * doc/.cvsignore: Remove. + +2005-06-06 David Kastrup + + * configure.ac: Remove call to MAKEINFO_CHECK_MACROS: we expect a + recent enough makeinfo version for bootstrapping, anyway. + + * doc/Makefile.in (MAKEINFO_MACROS): remove + (TEXINFOINCLUDES): Remove unused TEXIPWD hack. Troublesome. + +2005-06-04 David Kastrup + + * doc/Makefile.in (TEXIFILES): Oops, depends on ../../doc/macros.texi + + * latex/Makefile.in (MKINSTALLDIRS): + + * doc/Makefile.in (MKINSTALLDIRS): + + * Makefile.in (MKINSTALLDIRS): Use mkinstalldirs from AUCTeX. + + * mkinstalldirs: remove in favor of ../mkinstalldirs + + * doc/Makefile.in (TEXI2HTML): Use TEXI* tools and TEXINFOINCLUDES. + (../README): et al. Depend on ../../doc/macros.texi + + * configure.ac: Check and test for TEXI* as well. Quotify if + necessary. + + * autogen.sh: Look in .. for macros. + + * doc/Makefile.in (preview-latex.dvi): Use texi2dvi. + (preview-latex.pdf): Use texi2pdf. + (preview-latex.ps): Use -Ppdf option. + (preview-latex.info, ../README, ../FAQ, ../PROBLEMS, ../TODO): + deal with ../../doc/macros.texi + +2005-05-25 David Kastrup + + * circ.tex (section{Die gerade Linie}): Make the intentional + errors more conspicuous. + +2005-05-24 David Kastrup + + * aclocal.m4: Use elif for prettiness. + + * prv-xemacs.el (preview-mode-setup): Change watch condition. + (preview-watch-preamble): Accept command. + (preview-unwatch-preamble): Change unwatch method. + (preview-preamble-check-change): Change check. + + * prv-emacs.el (preview-preamble-changed-function): First unwatch + preamble, then kill format. + (preview-watch-preamble): Accept command to watch for. + (preview-unwatch-preamble): Adapt to new `format-cons' format. + (preview-mode-setup): Change watch condition. + + * preview.el (preview-dumped-alist): Change definition. + (preview-parse-messages): Use `string-to-number' instead of + obsoleted `string-to-int'. + (preview-cache-preamble): Add format-cons arg. Only cache + preamble if there is no cache with the same command yet. + Precalculate command and check whether it matches previous one. + If so, omit dumping. + (preview-region, preview-document): Expand command here. + (preview-generate-preview): Accept expanded command. Always + tentatively dump command (unless disabled) and set sentinel only + if this succeeded. + (TeX-inline-preview-internal): Set command buffer at start. Use + `commandbuff' argument rather than `TeX-command-buffer'. + Raise error at different point. + +2005-05-22 David Kastrup + + * aclocal.m4: Allow --with-emacs=sth and --without-xemacs and + similar combinations as long as they are more or less consistent. + +2005-05-21 Ralf Angeli + + * prv-install.el (preview-make-package-xemacs): Cater for XEmacs + 21.5 which uses a different interface for generating autoloads at + present. + +2005-05-21 David Kastrup + + * doc/wininstall.texi: Editing changes. Last checkin before + removal. + + * doc/install.texi: Editing changes. Last checkin before removal. + + * doc/faq.texi (Customization): Don't use @var inappropriately. + + * autogen.sh: Remove generation of auto.texi. + + * doc/preview-latex.texi (Installation): Refer to AUCTeX manual. + (Keys and lisp): Some formatting changes. + + * doc/Makefile.in (TEXIFILES): Remove wininstall.texi and + install.texi. + (DISTTEXTS): Remove ../INSTALL and ../INSTALL.windows + (../INSTALL, ../INSTALL.windows): Remove. + + * doc/problems.texi (Known problems): Remove old AUCTeX advice. + Remove explicit node names. + (Emacs problems): Rewrite. Mention precompiled CVS Emacsen. + Refer to AUCTeX manual. + (AUCTeX prior to 11.0): Remove. + (Too small bounding boxes): Reword. + (x-symbol interoperation): Explain 8-bit cleanliness somewhat more. + +2005-05-20 Ralf Angeli + + * preview.el (preview-specs-type): Use an extra :value keyword to + avoid a bug in `widget-convert' of XEmacs 21.4 and Emacs 21. + +2005-05-18 David Kastrup + + * doc/preview-dtxdoc.pl: Don't use \n in character ranges since it + is not actually a character in Windows. + +2005-05-17 David Kastrup + + * Makefile.in (lisp): Rewrite condition to make `make -n' work, + also non-Posix shells. + (install-metadata): Rewrite stuff for non-Posix shells. + (preview-latex.el): Same here. + (install-metadata): ignore return state of mkinstalldirs. + +2005-05-02 David Kastrup + + * doc/wininstall.texi: + + * doc/install.texi: Overhaul, use auto.texi. + + * doc/Makefile.in (../INSTALL, ../INSTALL.windows): add auto.texi + dependence. + (maintainer-clean): remove auto.texi. + + * autogen.sh: Generate auto.texi + + * README.CVS: Some modifications. + + * aclocal.m4 (EMACS_PATH_LISPDIR): better help. + +2005-05-01 David Kastrup + + * doc/install.texi (Configure): Synch with auctex. + +2005-04-30 David Kastrup + + * configure.ac: Use existing variables packagedatadir, + packagelispdir. + If configuring a package and infodir is defaulted, disable + install-info. + Disable TEXHASH when installing --without-texmfdir. Move TEXHASH + test. + + * aclocal.m4: Use existing lispdir variable. + + * prv-install.el (preview): don't require + (preview-make-package-xemacs): several changes to command line + options. + + * Makefile.in (lisp): rename from elisp for harmony with AUCTeX. + (install-images): rename from install-icons. + (install-metadata): new options for prv-install.el + +2005-04-29 David Kastrup + + * aclocal.m4: echo date correctly. + +2005-04-28 David Kastrup + + * aclocal.m4 (AUCTEX_AUTO_DIR): simplify. + (AC_LISPIFY_DIR): add third argument. Simplify a few common + expressions. + +2005-04-27 David Kastrup + + * aclocal.m4: sed paranoia. + +2005-04-27 Ralf Angeli + + * aclocal.m4 (AC_DATE_VERSION_FROM_CHANGELOG): Escape `+'. Add + regexp group. Close function. + +2005-04-27 David Kastrup + + * preview.el (TeX-inline-preview-internal): Don't try interpreting + coding-system if it is nil. + + * aclocal.m4 (AC_DATE_VERSION_FROM_CHANGELOG): actually look into + the ChangeLog file. Uh. + + * latex/README (Note): Add bug reporting address. + +2005-04-19 David Kastrup + + * preview.el (preview-install-styles): Add autoload cookie. + +2005-04-18 David Kastrup + + * preview.el (preview-dump-state): New function to get run buffer + info. + (preview-report-bug): Use it. + + * Makefile.in (install-metadata): include directories in `MANIFEST'. + +2005-04-16 David Kastrup + + * latex/preview.dtx: Work around another ntheorem bug affecting + showlabels. + +2005-04-12 David Kastrup + + * configure.ac: Don't bother about pre-2.5 autoconf versions. + + * doc/faq.texi (Customization): Remove lamentation that PDF + foreground is fixed to black. + + * preview.el (preview-pdf-color-string): New function. + (preview-pdf2dsc-sentinel): Use it. + + * configure.ac: renamed from configure.in + +2005-04-11 jalar + + * configure.in: Minimal changes to printouts + +2005-04-11 Ralf Angeli + + * preview.el (preview-set-texinputs): Fix grouping. + +2005-04-11 David Kastrup + + * prv-install.el (preview-make-package-xemacs): Don't generate + manifest and take package name from command line. + + * configure.in: Don't expose `lispdir'. Explain `TEXHASH', + `PERL', `MAKEINFO', `INSTALL_INFO'. + + * latex/Makefile.in (texmfdir): Don't import. + + * Makefile.in (lispdir): Don't import. + + * preview.el (preview-counter-find): Fix bug with `(marker)'. + + * latex/Makefile.in (exec_prefix, libdir): Export. + + * doc/install.texi (Configure): Explain `--without-texmf-dir'. + (Advice for package providers): Don't trash talk AUCTeX + preactivation. + (Advice for package providers): Mention `--without-texmf-dir'. + + * doc/Makefile.in (exec_prefix, libdir): export. + + * preview.el (preview-datadir): Use instead of `preview-icondir'. + (preview-filter-specs): Use it. + (preview-TeX-style-dir): New variable for uninstalled styles + (preview-set-texinputs): Add or remove it from TEXINPUTS + environment. + (preview-TeX-style-dir): proper customization. + (preview-install-styles): New function to install styles + permanently. + + * configure.in: use `packagedatadir' instead of `icondir'. Add + check for `kpathseaseparator'. Shell-quote and export + `exec_prefix' and `libdir'. + + * auto.el.in (preview-datadir): replace preview-icondir, and add + `lisppackagetexstyles' invocation. + + * aclocal.m4 (TEX_PATH_TEXMFDIR): Allow --without-texmf-dir, stop + quoting a bunch of stuff, fix reference to load-file-name. + + * Makefile.in (exec_prefix, libdir, packagedatadir): export since + the XEmacs tree might call them. + (.PHONY, install): add install-nosearch target. + (install-nosearch): Install .nosearch file. + (install-icons): Use `$(packagedatadir)/images' instead of + `$(icondir)' + +2005-04-10 David Kastrup + + * configure.in: Use new backquote syntax. + + * doc/install.texi (Configure): Clarify. + +2005-04-10 Ralf Angeli + + * latex/preview.dtx: Dvipng --> dvipng. + + * RELEASE, circ.tex, configure.in, preview.el, doc/faq.texi, + doc/install.texi, doc/preview-latex.texi, doc/problems.texi, + doc/readme.texi, doc/wininstall.texi, latex/README, + latex/preview.dtx: GhostScript --> Ghostscript. + +2005-04-08 David Kastrup + + * Makefile.in (previewstartfile): import. + (install-startup): split lines with `$(MAKE)' and + `$(INSTALL_DATA)' so that `make -n' will properly recurse. + + * aclocal.m4 (AC_LISPIFY_DIR): resolve relative paths below + ${lispdir} hierarchy. AC_SUBST both lisp variant of directory as + well as original. + + * configure.in: Add `--with-preview-startfile', use new semantics + of `AC_LISPIFY_DIR', drop `AC_MAKE_FILENAME_ABSOLUTE' stuff. + + * doc/install.texi (Configure): explain new semantics of + `--with-lispdir' and new `--with-preview-startfile'. + + * doc/wininstall.texi: Document changes semantics for + `--with-lispdir' and new `with-preview-startfile'. + +2005-04-07 David Kastrup + + * aclocal.m4 (EMACS_LISP): properly echo result to log file. + (EMACS_EXAMINE_INSTALLATION_DIR): check that the result of + file-relative-name is not absolute, which can happen for unrelated + drives on Windows. + (AC_FULL_EXPAND): also check, set and restore exec_prefix if not + set. + +2005-04-05 Ralf Angeli + + * configure.in: Cosmetics for ./configure --help. + + * preview.el (desktop-buffer-preview): Return buffer even if no + information about previews is found. + +2005-04-04 David Kastrup + + * preview-latex.spec (URL, Source0): Fix addresses to point to + AUCTeX. Oops. + +2005-04-03 David Kastrup + + * Release 0.9.1 + + * latex/preview.dtx: Don't let negative dimensions into tightpage + comment. + + * doc/macros.texi: Make @previewlatex swallow argument in links. + Don't scrap sf declaration. Make it correct in links. + + * doc/readme.texi (What use is it?): + + * doc/problems.texi: + + * doc/install.texi (Top): Work around raisesection bug. + + * doc/Makefile.in (../INSTALL, ../INSTALL.windows, ../README) + (../FAQ, ../TODO): Remove --no-validate option. + (../PROBLEMS): remove --no-validate option, and number sections. + + * doc/faq.texi: Make validatable top entry. Don't raise sections + until after the first chapter. This is insane, but otherwise + everything will be unnumbered. + + * configure.in: Expand `packagelispdir' and `lispdir' before + checking for conflicts. + +2005-04-02 David Kastrup + + * autogen.sh: Remove autom4te.cache + + * doc/Makefile.in (.PHONY): Add a few targets. + + * doc/readme.texi (Basic modes of operation): Correct dvipng + information. + + * autogen.sh: make preview-latex.info generation work by passing + in PERL default. + + * README.CVS: Mention that `perl' is needed for autogen.sh, and + that `makeinfo' might need to be up to date. + + * latex/README: Renamed from latex/README-preview. Overhaul + availability. + + * doc/macros.texi: Synchronize to AUCTeX. + + * Makefile.in (tarball-ready): Remove this target for now: it + can't be used consistently really. It is probably better to do + just run autogen.sh on a freshly exported archive. + + * doc/Makefile.in (DISTTEXTS): Targets in parent dir. + (../INSTALL, ../INSTALL.windows, ../README, ../FAQ, ../PROBLEMS) + (../TODO): New targets instead of targets in current dir. + (clean): Don't remove targets in this dir. + (maintainer-clean): Remove DISTTEXTS targets. + + * autogen.sh: Use make for generating distribution texts and also + pregenerate the info file. + + * Makefile.in (emacsprefix): Remove. + (.PHONY): Collect phony targets here. + (DISTTEXTS): Move to doc/Makefile.in + (tarball-ready): Adapt + + * preview-latex.spec: Change version number. Change directory + choice to "xemacs-packages" on fedora. + + * doc/wininstall.texi: Mention that Perl is not needed if working + with the default tarball. + + * doc/preview-latex.texi: Bump versions numbers, fix copyrights. + + * doc/readme.texi (Activating preview-latex): Don't talk about + half a dozen non-sensical things. + (Availability): Change information to match move into AUCTeX. + + * configure.in: Add check for load-path shadowing. + + * aclocal.m4 (TEX_PATH_TEXMFDIR): We want "${texprefix}/share" in + most cases. + +2005-04-01 David Kastrup + + * doc/faq.texi: Some changes. This thing really is an outdated + unmaintained abomination. We need to do something about it at one + time. + +2005-04-01 Ralf Angeli + + * aclocal.m4 (EMACS_EXAMINE_INSTALLATION_DIR): Repair quoting. + +2005-04-01 David Kastrup + + * RELEASE: rearrange. Mention AUCTeX 11.80 as target. + + * aclocal.m4(EMACS_EXAMINE_INSTALLATION_DIR): avoid trailing + `/.'. + (TEX_PATH_TEXMFDIR): search order changed. + + * latex/Makefile.in (prefix, datadir, texmfdir, previewtexmfdir) + (previewdocdir): Use (null) to mask Windows backslashes. + + * configure.in: Adjust version info. + + * aclocal.m4 (EMACS_PATH_PREFIX): just generate a single output. + (EMACS_PROG_EMACS): Check for `emacsprefix'. + (EMACS_EXAMINE_INSTALLATION_DIR): accept list of prefix variables + as second argument. Decompose and compare directory names + starting from the back. + (EMACS_PATH_PACKAGEDIR): search in several prefixes. + (EMACS_PATH_LISPDIR): same. + (TEX_PATH_TEXMFDIR): set `texprefix' from kpsepath. + Use new `EMACS_EXAMINE_INSTALLATION_DIR' for getting TeX + directories. + +2005-03-31 David Kastrup + + * configure.in: Don't set prefix if it is not set. + + * aclocal.m4 (EMACS_PATH_PREFIX): new function. + (AC_FULL_EXPAND): set `prefix' from `ac_default_prefix' before + expansion if it is unset. + +2005-03-31 jalar + + * Makefile.in: + * aclocal.m4: Add $emacsprefix + +2005-03-31 David Kastrup + + * RELEASE: Update release info. + +2005-03-30 Ralf Angeli + + * Makefile.in (use-hint): Fix spelling. + + * preview.el (preview-report-bug): Use "preview-" prefix in + version information. + +2005-03-29 David Kastrup + + * configure.in (auctexdir): Use `AC_ARG_VAR' on `GS' and `TEXHASH' + (should probably also be used on a few other environment + variables). + Use `AC_SHELL_QUOTIFY' on `GS'. + +2005-03-28 David Kastrup + + * preview.el (preview): Change home page address to AUCTeX. + (preview-report-bug): Change bug reporting address. + + * doc/readme.texi (Contacts): Change mailing list info. + + * doc/problems.texi: Change mailing list info. + + * doc/faq.texi (Introduction to FAQ): Change mailing list address. + + * preview.el (if): Use (featurep 'xemacs) instead of + `(string-match "XEmacs" (emacs-version))'. + (preview-at-point): Don't check for XEmacs, just use + `TeX-active-mark' instead. + +2005-03-24 Ralf Angeli + + * Makefile.in (distclean, maintainer-clean, tarball-ready): Delete + autom4te.cache in maintainer-clean and tarball-ready targets. + +2005-03-24 Jan-Ake Larsson + + * doc/Makefile.in: Add *.pdf to clean target and + preview-dtxdoc.texi to maintainer-clean + +2005-03-23 jalar + + * doc/Makefile.in: + * Makefile.in: add maintainer-clean target + + * Makefile.in: add tarball-ready target + + * configure.in: Add check for perl + + * doc/Makefile.in: Use the configure-provided $PERL + +2005-03-22 David Kastrup + + * preview.el (preview-counter-find): Coerce `begin' to integer to + work around an Emacs 21.x bug. + + * Makefile.in (install): Install startup file before docs. + + * doc/Makefile.in (preview-latex/index.html): Don't ignore exit + status of makeinfo (this target is on-demand only, anyway). + + * doc/preview-dtxdoc.pl: Accept two arguments so that output file + will not get clobbered if Perl is not operative. + +2005-03-19 David Kastrup + + * prv-xemacs.el (preview-buffer-recoding-alist): Madness variable. + (preview-buffer-recode-system): Use it. + (tex-site, tex, latex): Require them. + + * prv-emacs.el (tex-site, tex, latex): require them to silence + byte compiler. + (preview-buffer-recode-system): Compatibility function. Probably + not necessary for Emacs. + + * preview.el (TeX-overlay-prioritize): don't redefine, test for + its presence at runtime. Less invasive, less offensive to the + byte compiler. + (preview-coding-system): New buffer-local variable to indicate the + coding system used for processes. + (preview-place-preview, preview-reinstate-preview): Use + `TeX-overlay-prioritize' only if it exists. + (mailcap-extension-to-mime): Use an autoload form instead of + `require' at runtime. + (preview-format-mml): Use `mailcap-extension-to-mime' directly + (preview-error-quote): take coding system of LaTeX process as + second argument. + (preview-parse-messages): initialize `run-coding-system' from + `preview-coding-system'. Use it for calling + `preview-error-quote'. + (TeX-inline-preview-internal): Initialize `preview-coding-system' + and make process use it. + +2005-03-18 David Kastrup + + * preview.el (TeX-region-create): Try shutting up the byte + compiler at load time. + + * doc/install.texi: Mention that "the usual procedure" is for + site-wide installation. + (Advice for package providers): Mention site-start.el. + (Advice for non-privileged users): Adapt to new conventions. + Some other small changes. + + * preview.el (TeX-overlay-prioritize): correct stupid typo. + (preview-log-error): Pop up run buffer in case of error. + +2005-03-17 David Kastrup + + * preview.el (tex-site): Require loads of stuff at the beginning: + preview.el is supposed to be autoloaded, so we can just load + everything that needs to get loaded, anyway. + (TeX-overlay-prioritize): alias to "ignore" if not defined + elsewhere. This will not set priorities. + (eval-when-compile): move out most requires. + (preview-place-preview): Use TeX-overlay-prioritize instead of + TeX-fold-prioritize. + (preview-counter-find): Pass begin in to reduce one compilation + error message. + (TeX-region-create): Don't preactivate `preview-counter' advice. + (preview-reinstate-preview): Rename priority function to + `TeX-overlay-prioritize'. + (LaTeX-preview-setup): Remove requires. + (TeX-region-create): Explicitly activate `preview-preamble' advice + even though it is preactivated. + +2005-03-16 David Kastrup + + * prv-emacs.el: Use the four-argument version of `face-attribute' + if it exists. + +2005-03-15 David Kastrup + + * doc/install.texi (Configure): Be somewhat more verbose. Be + explicit about Emacs-only options. + + * doc/wininstall.texi: Warn against Winzip. Reorganize docs + somewhat and clarify about Emacs-only procedures. + + * doc/preview-latex.texi (Keys and lisp): Document + preview-at-point allowing active region. + + * preview.el (preview-at-point): Remove nonsensical arguments. + Instead, allow for an active region. + + * configure.in: Add `packagelispdir' to quoted Makefile variables. + +2005-03-14 David Kastrup + + * latex/preview.dtx: Reformat the kaboodle to look nicer. + Move \nofiles to auctex option. + + * latex/README-preview (Note): Mention \nofiles problem. + + * preview.el (preview-LaTeX-command): Add \nofiles to startup. + +2005-03-14 Masayuki Ataka + + * preview.el (TeX-fold-prioritize): autoload. + (preview-place-preview, preview-reinstate-preview): Use it. + +2005-03-07 David Kastrup + + * preview.el (preview-gs-open): Make better error message for junk + left over on PostScript stack, so that we may better pass the + buck. + +2005-03-05 David Kastrup + + * latex/preview.dtx: Fix psfixbb option that must have become + illegal at some time accidentally. + + * doc/install.texi (Loading the package): Explain that + preview-latex.el should already be installed in-place. + +2005-03-04 David Kastrup + + * Organizational: preview-latex development has been moved from + into the + AUCTeX CVS Archive on + . + +2005-03-03 David Kastrup + + * Release 0.9 + + * prv-install.el (preview-make-package-xemacs): Add directory + information from autoe.el to autoloads. + + * Makefile.in (elisp): generate preview-latex.el only when no + package system. + (install-el): Depend on auto.el + (install-startup): Make and install preview-latex.el only when no + package system. + + * prv-emacs.el (preview-create-icon-1): Use adaptive heuristic + mask for transparency. + + * preview-latex.spec: Make preview.dvi. But preview-latex.pdf + + * latex/Makefile.in (all): Generate both dvi and pdf. + (install-texmf-doc): Install DVI (faster, compact). + + * latex/Makefile.in (install-texmf-doc): Install PDF instead of + DVI file. + + * doc/wininstall.texi: Simplify, rearrange, adapt to new + installation scheme. Add links to CVS precompiled versions. + + * doc/install.texi (Prerequisites): Revamp. + (Configure): Add explanations. + + * preview-latex.spec: Change rpm name to include "fedora". Adapt + to new configure stuff. Use pdf doc instead of DVI. + + * configure.in: icondir is absolute, reorder some stuff to + maintain directory locality. + + * aclocal.m4: Change a lot of $x to ${x}. + Simplify some stuff. + + * RELEASE: Add information for release. + + * configure.in: Correct prefix check. Add Emacs version check. + + * aclocal.m4: Move several functions around, completely overhaul + the stuff to just detect material in prefix-related directories. + Remove docstrip config detection, add version checking of major + and minor version. Rely on prefix being set by configure.in. + +2005-03-02 David Kastrup + + * Makefile.in (install-el): no means no for packagedir. + + * configure.in: Set prefix. + + * aclocal.m4: Use "no" for no packagedir in XEmacs. + Don't save prefix and stuff. + Expand stuff at some points. + + * doc/wininstall.texi: Use executable name directly to save + confusion. + + * prv-xemacs.el (preview-filter-specs): Rework specs. + + * prv-emacs.el (preview-filter-specs): Translate :type fields. + + * preview.el (preview-min-spec): Move. + (preview-filter-specs): Move from prv-emacs.el and prv-xemacs.el. + (preview-filter-specs-1): simplify. + (preview-icondir): Create icondir preset variable. + (preview-filter-specs): expand file specs against it here instead + of prv-emacs.el and prv-xemacs.el. + + * configure.in: Adapt to new variables. + Remove check for image-supporting Emacs: it is probably not + reliable on consoles. + Add packagelispdir and icondir options. + (GS): Don't try GSWIN32.EXE. + Create lispGS in auto.el + + * autogen.sh: Use --output option for makeinfo to get + tableofcontents in FAQ. + + * doc/Makefile.in (.PHONY): Add install here. + + * Makefile.in (install-el): Adapt targets to packagelispdir. + (.PHONY): Add install target for case insensitive filesystems. + + * aclocal.m4: Rewrite EMACS_EXAMINE_PACKAGEDIR. + EMACS_LISP now gets one argument less. + EMACS_TEST_LISP_DIR makes just one pass. + EMACS_PATH_LISPDIR expands less. + AC_LISPIFY_DIR is a new function. + AC_MAKE_FILENAME_ABSOLUTE + AC_LISP_RELATIVE new functions. + +2005-02-26 David Kastrup + + * doc/readme.texi (Basic modes of operation): Adapt PDFLaTeX + explanation to newer AUCTeX versions. + + * preview.el (preview-error-icon-specs): Choose somewhat oversized + errors. Adapt to set. + (preview-gs-restart, preview-gs-transact): Change image file name + prefix to `pr'. + (preview-clean-subdir): When cleaning out subdirectories, match + `pr' instead of `pre'. + + * Makefile.in (ICON_SOURCES): Adapt to existing set. + +2005-02-25 David Kastrup + + * preview.el (preview-gs-options): Remove "-dDELAYSAFER" from + option list. + (preview-gs-sequence): New variable. + (preview-gs-sentinel): Don't repeat startup echo if GhostScript + fails before prompting the first time. + (preview-gs-sentinel): When restarting, remove expected file names + from `preview-gs-outstanding'. + (preview-gs-restart): generate a unique output file name pattern + from `preview-gs-sequence' + (preview-gs-restart): list start command quoted. + (preview-gs-open): initialize `preview-gs-sequence'. + (preview-gs-open): if historic "DELAYSAFER" is still configured, + start safe mode manually. Remove all settings of OutputFile, and + all runandhide stuff. + (preview-gs-place): Don't generate a filename that might not be + needed. + (preview-gs-flag-error): Generate a synthetic OutputFile option. + Use it in error messages. + (preview-gs-transact): generate output file name in outstanding + queue. Don't fiddle with OutputFile settings. Advance + `preview-gs-sequence'. + (preview-dvipng-place-all): Generate file name. + + * prv-xemacs.el (null-device): Remove compatibility definition. + +2005-02-18 David Kastrup + + * preview.el (preview-specs-setter): New function. + (preview-nonready-icon-specs): Choose slightly smaller icons. + (preview-nonready-icon-specs, preview-error-icon-specs) + (preview-icon-specs): Use `preview-specs-setter'. + + * doc/wininstall.texi: Mention case problems. + + * doc/install.texi (Prerequisites): Update AUCTeX version info. + + * doc/problems.texi (Middle-clicks paste instead of toggling): + Remove reference to patches directory. Should no longer be + necessary. + (Problems with GhostScript): Mention use of gswin32.exe instead of + gswin32c.exe as a problem source. + + * preview.el (preview-nonready-icon-specs): Add size 14. + + * images/prvwrk24.xpm: New icon, dimmer, better shape. + + * images/prvwrk20.xpm: New icon + + * images/prvwrk16.xpm: New icon + + * images/prvwrk14.xpm: New icon + + * images/prvwrk12.xpm: New icon + +2005-02-15 David Kastrup + + * preview.el (preview-error-quote): Encode to raw-text to get + unibyte string. + +2005-02-13 David Kastrup + + * doc/preview-latex.texi (The Emacs interface): Adapt to new + `preview-use-balloon-help' default. + + * doc/faq.texi (Customization): Adapt to new + `preview-use-balloon-help' default. + + * prv-xemacs.el (preview-use-balloon-help): Default to nil. + + * preview.el (preview-gs-flag-error): For consistency, make error + icons have a context menu on right mouse button. + +2005-02-11 David Kastrup + + * doc/preview-latex.texi (Keys and lisp): Change descriptions to + cater only for interactive use. + (Keys and lisp): Explain mouse-3 better. + (Keys and lisp): Move preview-copy-region-as-mml explanation up. + Explain about the new border avoidance behavior. + (The Emacs interface): Explain about how to adapt the various + icon-specs. + + * preview.el (preview-specs-type): Type for specs defcustom. + + (preview-nonready-icon-specs, preview-error-icon-specs) + (preview-icon-specs): move lower and make defcustom from it. + +2005-02-10 David Kastrup + + * prv-emacs.el (preview-mode-setup): Only define a preview toolbar + entry when the icon is valid. + + * RELEASE: Mention the new icons. + + * prv-xemacs.el (preview-tb-icon): Use this instead of + (preview-icon-toolbar-button): in order to match + `preview-tb-icon-specs', as in prv-emacs.el + (preview-mode-setup): Don't install a toolbar item when no icon + image can be generated properly. + +2005-02-09 David Kastrup + + * prv-xemacs.el (add-to-list): only provide definition for + three-argument version if XEmacs doesn't. May be removed at some + time completely. + (null-device): Only defvar if unbound in order not to munge the + doc string. + (preview-transparent-border): Silence the byte-compiler. + (preview-supports-image-type): Move earlier. + (preview-filter-specs): Correct a few typos. + (preview-filter-specs): Don't forget to call `make-glyph'. + (preview-mode-setup): Correct toolbar icon setup. + + * preview.el (preview-error-quote): Remove unused variable `char'. + + * doc/faq.texi (Requirements): Stop talking about ancient XEmacs + versions. + (Requirements): Mention Emacs 22 instead of 21.4 + + * doc/install.texi (Prerequisites): same + + * doc/problems.texi (Emacs problems): same + + * preview-latex.spec (Conflicts): xemacs = 21.4.16 + + * RELEASE: Add some dvipng information, more detailed + recommendations. + + * preview.el (preview-region, preview-buffer, TeX-region-create) + (preview-document, preview-environment, preview-section): Move + down to avoid byte compiler warnings. + + * images/*: lots of renaming/moving stuff around. + + * configure.in: remove ICONFORM stuff. + + * Makefile.in (ICONFORM): removed. + (ICON_SOURCES): Change to different list. + + * prv-xemacs.el (preview-nonready-icon, preview-error-icon) + (preview-icon, preview-tb-icon): Removed in this form. + (preview-ascent-spec): New symbol for storing minimal data when + parsing specs. + (preview-filter-specs): New function. + (preview-icon-copy): Replaces `preview-nonready-copy'. + (preview-mode-setup): Create toolbar button. + + * prv-emacs.el (preview-nonready-icon, preview-error-icon) + (preview-icon): removed. + (preview-filter-specs): New function. + (preview-tb-icon-specs, preview-tb-icon): New variables for the + toolbar icon. + (preview-icon-copy): replaces `preview-nonready-copy' + (preview-mode-setup): Initialize `preview-tb-icon' + + * preview.el (preview-nonready-icon-specs) + (preview-nonready-icon, preview-error-icon-specs) + (preview-error-icon, preview-icon-specs, preview-icon) + (preview-min-spec): New variables. + (preview-gs-place): Use `preview-icon-copy' instead of + `preview-nonready-copy' + (preview-make-image): New function. + (preview-filter-specs-1): New function. + (preview-buffer-restore-internal): Call `preview-get-geometry' for + having size information. This may be incorrect at restore time. + (preview-get-geometry): Also constitute `preview-icon', + `preview-error-icon' and `preview-nonready-icon'. + +2005-02-06 David Kastrup + + * doc/wininstall.texi: Add note about `gswin32c.exe'. + +2005-01-29 David Kastrup + + * preview-latex.spec (Release): Bump version to prerelease, make + some changes that look like they'd fit into AUCTeX's scheme. + + * RELEASE: Some changes and mentions. + + * doc/preview-dtxdoc.pl: Convert AUC\TeX reference as well. + Convert `\#' to `#'. + + * latex/preview.dtx: Add `#' and `:' letters and documentation. + Make all commands pass on `#' on cleanly. Don't eliminate last + `{}' last in argument lists. + + * latex/Makefile.in (preview.pdf): New target. Since PDFs are + used for external documentation usually, generate only the + description (for internal docs, dvi is fine and adding the code, + too). + + * configure.in: Bump version number. + check for PDFLaTeX. + +2005-01-26 David Kastrup + + * preview.el (preview-copy-mml, preview-copy-region-as-mml) + (preview-format-mml): Ask whether user really wants to use + bordered graphics. + (preview-error-quote): Fix typo. Make the condition to call + decode-coding-string depend on (featurep 'mule) to match choice + for using raw process output. + (preview-get-geometry): Return the geometry instead of + manipulating a buffer. + (preview-set-geometry): New function to set the geometry into + buffer-local variables. + (preview-generate-preview): Start by getting geometry. + (TeX-inline-preview-internal): Additional geometry argument. + Don't switch into buffer where we are already. + +2005-01-25 David Kastrup + + * prv-emacs.el: Don't use transparent borders when Emacs is new + enough to have tolerable blinking. + + * preview.el (preview-dvipng-color-string): Pass the border into + dvipng. + (preview-dvipng-place-all): Record the border in the image data + structure. + +2005-01-24 David Kastrup + + * RELEASE: Ask for dvipng 1.4, mention utf-8 capability. + + * preview.el (preview-error-quote): Don't regexp codes out of the + ASCII range, and convert the resulting string using the buffer + encoding. This makes for utf-8. + (preview-parse-messages): Change match mechanism. + (TeX-inline-preview-internal): Set process encoding to raw-text + since TeX may deliver mixtures of encoded and clean bytes. + +2005-01-19 Jan-Ake Larsson + + * aclocal.m4: sync with AUCTeX + +2005-01-17 jalar + + * ChangeLog.1: Move dvipng changes to its Changelog + +2004-11-05 David Kastrup + + * doc/readme.texi (What use is it?): New section. + + * doc/preview-latex.texi (The Emacs interface) + (The preview images): Add a bit of information concerning + PDF/dvipng operation. + + * preview.el (preview-default-preamble): Require specific date of + preview package. + + * latex/preview.dtx: Let bop-hook and eop-hook work only on outer + level, so that previews can contain dvips -E generated files. + +2004-10-23 David Kastrup + + * preview.el (preview): Change group to 'AUCTeX. + +2004-10-21 David Kastrup + + * prv-xemacs.el (preview-mode-setup): Add `desktop-save-buffer' + setup. + + * prv-emacs.el (preview-mode-setup): Add `desktop-save-buffer' + setup. + + * preview.el (desktop-buffer-preview-misc-data): Let arguments be + ignored for desktop 2.06. + Add to `desktop-buffer-misc-functions' only after desktop has been + loaded. + (desktop-buffer-preview): take arguments for desktop 206. + +2004-10-18 David Kastrup + + * prv-xemacs.el (glyph-image-type): Removed. + (preview-create-icon-1, preview-create-icon): like in prv-emacs.el. + (preview-replace-active-icon): Use defsubst. + (preview-ps-image): Removed. + (preview-move-point): Reorganized. + (preview-export-image): Removed. + (preview-import-image): Changed to new preview-image semantics. + + * prv-emacs.el (preview-create-icon): replace macro with defsubst, + add border argument. + (preview-replace-active-icon): defsubst, and cater for new + preview-image structure. + (preview-int-bb, preview-ps-image): Removed, only needed for + postscript device. + (preview-move-point): Reorganized. + (preview-export-image): Removed. + + * preview.el (preview-image-creators): Remove postscript device, + it did not work, anyway. + (preview-dvipng-color-string): Add resolution to args in order to + properly convert border thickness. + (preview-gs-dvips-sentinel): Delete unused `gsfile' variable. + (preview-eps-open, preview-eps-dvips-process-setup, + preview-eps-place): Removed. + (preview-gs-place, preview-gs-transact, preview-dissect) + (preview-dvipng-place-all, preview-active-string) + (preview-reinstate-preview): add construction info to + `preview-image' property. + (preview-start-dvipng): Calculate resolution info correctly. + (preview-at-point): Fix an awful typo. + +2004-10-14 David Kastrup + + * latex/preview.dtx: Make the end of snarfed environments behave + normally if the environment is not being snarfed. + +2004-10-14 Jan-Ã…ke Larsson + + * doc/wininstall.texi: Adjust text to conform with the AUCTeX aclocal. + + * configure.in: Add VALID_BUILD_DIR + +2004-10-13 Jan-Ã…ke Larsson + + * configure.in: Adjust for the aclocal.m4 sync with AUCTeX + + * aclocal.m4: Sync with AUCTeX. Well, almost. Don't + use the version test. + +2004-10-09 David Kastrup + + * preview.el (preview-dvipng-command): Use -picky option. + (preview-error-quote): Convert character to buffer encoding if + mule allows it. + (preview-parse-messages): Strip incomplete 8bit character + transliterations from the error context. + +2004-08-21 Reiner Steib + + * doc/install.texi: Markup fixes, see "(texinfo)command". + + * doc/wininstall.texi: Ditto. + +2004-08-09 David Kastrup + + * doc/preview-latex.texi: Bump version number. + (top): Change preview-latex typesetting convention. + (Keys and lisp): AUCTeX menus are not changed. + (Simple customization): Don't talk about `.dvi'. + (For advanced users): Menu `The preview images' instead of `On EPS + previews'. + (The Emacs interface): Take PDF into account. + (The preview images): Describe `preview-gs-image-type-alist', + `preview-dvipng-image-type'. + + * doc/faq.texi (Introduction to FAQ): Change submission address to + preview-latex-devel since this appears to better reflect reality. + + * latex/preview.dtx (showlabels): work around ntheorem/amsmath + bug. + + * preview.el (preview-gs-image-type-alist): Add fallback for + 'postscript image type (not yet used). + (preview-dvipng-command): Add documentation about + `preview-dvipng-image-type'. Change options to `-picky + -noghostscript' to work with dvipng 1.2. + (preview-dvipng-image-type): New variable. + (preview-gs-open): Don't barf until we know what device will + actually be used. + (preview-gs-dvips-process-setup): Complain about unavailable + devices here. + (preview-dvipng-process-setup): And here. + (preview-dvipng-process-setup, preview-dvipng-place-all): Use + `preview-dvipng-image-type'. + (preview-TeX-inline-sentinel): Change "abnormally with code 1" and + "finished" exit status message. + (preview-dump-replacements, preview-undump-replacements): Don't + match command name as specifically. + (preview-report-bug): Report more variables. + +2004-08-07 David Kastrup + + * doc/macros.texi: New @ConTeXt{} macro, change appearance of + @previewlatex{}. + + * doc/faq.texi (Customization): Presentation classes should work + mostly. + (Customization): Remove troubleshooting for `xy.sty'. + (Requirements): Add AUCTeX 11.50 for PDFLaTeX. + (Requirements): Mention dvipng. + (Customization): PDFLaTeX is supported now. + (Customization): ConTeXt is supported by AUCTeX, PDFLaTeX too. + `Only' style support is missing now. + + * latex/preview.dtx: workaround for `xy.sty' in `textmath' code. + +2004-08-04 David Kastrup + + * aclocal.m4: Merge a few AUCTeX changes. + +2004-08-03 David Kastrup + + * preview.el (preview-walk-document): Current buffer and its + master are always considered part of the document. + (preview-dvipng-command): Use -noghostscript option. + (preview-dvipng): Remove the almost unused customization group + 'preview-dvipng. + +2004-08-02 David Kastrup + + * preview.el (preview-extract-bb): remove old outcommented version. + (preview-dvipng-command): Use -no-image-on-warn option. + (preview-pdf2dsc-process-setup): Oops, just use + `preview-gs-image-type' here. + (preview-dvipng-sentinel): Don't delete dvi file since it might be + needed in `dvipng-place-all'. + (preview-dvipng-place-all): Start dvips/GhostScript if some image + files are missing. Delete dvi file if none are missing. + +2004-07-28 David Kastrup + + * doc/problems.texi (Too small bounding boxes): Fix node + crosslinks. + + * latex/preview.dtx: Tiny change to placate font-latex. + + * latex/README-preview: Explain that PDF may be produced. + + * doc/wininstall.texi: Remove advice about failing byte-compiles: + we should have this covered by now. + + * doc/problems.texi (LaTeX international characters): remove node. + + * doc/preview-latex.texi (Misplaced previews): Refer to x-symbol + node instead of 8bit testing. + + * doc/install.texi (Configure): Remove --disable-8bit-test + description. + + * preview.el (preview-parse-messages): Simplify line match. + + * preview-latex.spec: Several changes of %{buildroot} uses and of + infodir. Doubtful whether this will work with Fedora. + + * configure.in: Remove all 8bit-cleanness testing. + + * aclocal.m4 (EMACS_LISP): just write out a string expression + without change or echo. Document the macro. + + * doc/Makefile.in (prefix) (packagedir) (datadir) (infodir): + preserve trailing backslashes. + + * Makefile.in (INSTALL) (INSTALL_DATA): Don't munge them for + trailing backslashes. + +2004-07-27 David Kastrup + + * preview.el (preview-dvipng): New customization group. + (preview-image-creators): Remove ghostscript options here. + (preview-gs-image-type-alist): New variable for lookup of + Ghostscript options. + (preview-gs-open): Remove imagetype and gs-optionlist arguments. + Instead, look them up in preview-gs-image-type-alist. + (preview-gs-dvips-process-setup): Setup GhostScript command line + at different place. + (preview-gs-dvips-process-setup): Use preview-gs-image-type, not + preview-image-type for extension. + (preview-dvipng-open): Removed. + (preview-dvipng-process-setup): Setup GhostScript fallback. + (preview-pdf2dsc-process-setup): Don't setup GhostScript here. + (preview-error-quote): Fix bugs, only convert last ^^ sequence + when a long string of ^^ exists. + +2004-07-16 David Kastrup + + * Makefile.in (INSTALL_DATA): Use `$(null)' at end of variables at + end of lines instead of `#' + +2004-07-15 David Kastrup + + * preview.el (preview-format-mml): Somewhat different code. + (preview-error-quote): New function for generating a matching + regexp to deal with ^^ type error messages. In short: forget + about 8-bit-cleanliness. + (preview-parse-messages): Use it. + +2004-05-08 David Kastrup + + * preview.el (preview-format-mml): Determine MIME format from + file name properly. And don't return anything for bad overlays. + + * Split ChangeLog.1 off, create dvipng/ChangeLog. + + * preview.el (preview-gs-sentinel): Add info about GhostScript + finishing to run buffer. + (preview-gs-restart): Same for start. + (preview-gs-color-string): Cater for border without mask color + (didn't we do that already?) + +2004-04-23 David Kastrup + + * preview.el (preview-gs-color-string) + (preview-dvipng-color-string): Try to do something reasonably sane + when a non-nil border thickness is specified, but no color. + +2004-04-20 Reiner Steib + + * .cvsignore: Added "autom4te.cache". + +2004-04-19 Reiner Steib + + * doc/preview-latex.texi (Simple customization): Don't "unlispify" + variable names. + +2004-04-12 David Kastrup + + * Release 0.8.1 + + * preview.el (preview-dump-replacements): Use regexp not + triggering bugs in older Emacsen. + (preview-dump-replacements): Same here. + + * RELEASE, configure.in, doc/preview-latex.texi: Adapt to 0.8.1 + + * preview-latex.spec: xemacspkgdir has changed in recent XEmacs + releases for Redhat. + + * prv-xemacs.el (preview-mode-setup): Remove non-existent menu. + + * prv-emacs.el (preview-mode-setup): Remove non-existent menu + "copied" from TeX-command-list to Command menu. + + * Release 0.8 + + * RELEASE: prepare for 0.8 + + * preview-latex.spec: prepare for 0.8, bump XEmacs to 21.4.9. + +;; Local Variables: +;; coding: utf-8 +;; End: diff -Nru auctex-11.88/ChangeLog-preview.1 auctex-11.90/ChangeLog-preview.1 --- auctex-11.88/ChangeLog-preview.1 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/ChangeLog-preview.1 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,3736 @@ +2004-04-12 David Kastrup + + * Release 0.8.1 + + * preview.el (preview-dump-replacements): Use regexp not + triggering bugs in older Emacsen. + (preview-dump-replacements): Same here. + + * RELEASE, configure.in, doc/preview-latex.texi: Adapt to 0.8.1 + + * preview-latex.spec: xemacspkgdir has changed in recent XEmacs + releases for Redhat. + + * prv-xemacs.el (preview-mode-setup): Remove non-existent menu. + + * prv-emacs.el (preview-mode-setup): Remove non-existent menu + "copied" from TeX-command-list to Command menu. + + * Release 0.8 + + * RELEASE: prepare for 0.8 + + * preview-latex.spec: prepare for 0.8, bump XEmacs to 21.4.9. + +2004-04-11 David Kastrup + + * preview.el (preview-dvipng-color-string): Try to deliver border + thickness. + (preview-gs-transact): Don't set page size to 1,1 if that has + already been done. + (preview-start-dvipng): Use new -D convention for resolution. + (preview-pdf2dsc-process-setup): Add resolution to GhostScript + call for PDF. Doh. + + * circ.tex: Format with AUCTeX. + + * preview.el (preview-gs-open): Bypass page initialization if + page is 1bp times 1bp (that is: not yet set). + + * latex/preview.dtx: Remove tightpdf option again. Better + explanation for tightpage. + + * preview.el (preview-parsed-tightpage): New variable. + (preview-TeX-bb): Use tightpage borders if found in file. + (preview-gs-flag-error): Display correct file on error. + (preview-gs-transact): Don't pass page dimensions if tightpage is + active. + (preview-required-option-list): Replace dvips option with tightpdf + option. + (preview-parse-tightpage): New function. + (preview-parse-variables): Add preview-parse-tightpage, add + function quoting. + (preview-gs-open): Move color setup to BeginPage hook. Rename + preview-latex-* PostScript Variables to just preview-*. + (preview-gs-transact): Set minimal pagesize if tightpage detected + to speed up unimportant setpagedevice operations. + (preview-required-option-list): Use tightpage option always. + (preview-parse-variables): Remove function quoting: it lead to + double quotes and tears. + (preview-LaTeX-disable-pdfoutput): Move into separate constant + for easy access as it is no longer the standard. + (preview-LaTeX-command-replacements): Default to nil to enable + PDFTeX operation. Better customization type. + + * latex/preview.dtx: Some reformatting, add new parse items - and + >, add new option pdftex, adjust tightpage for it, add new + option tightpdf. + + * doc/preview-dtxdoc.pl: Eat spaces after %. + +2004-04-09 David Kastrup + + * images/preverr.xbm: + * images/preverr.xpm: invert upside-down icons. + +2004-03-15 David Kastrup + + * preview.el (preview-gs-color-string): Add missing space in + color setup (GhostScript syntax error). + (preview-gs-color-string): And another color setup bug. + +2004-03-11 David Kastrup + + * doc/readme.texi (Activating preview-latex): Make a few changes + with regard to keybindings and stuff. + (Contacts): Add Paypal info for myself. + + * doc/preview-latex.texi (Keys and lisp): Remove the C-c C-c g + pseudobinding from the description. + (Keys and lisp): Document mouse actions. + (Keys and lisp): Move Kill Job description. + +2004-03-10 David Kastrup + + * preview.el (preview-gs-colors): replaced with preview-colors. + (preview-pdf2dsc-command): replaces preview-pdftodsc-command + (preview-gs-open, preview-gs-color-value) + (preview-gs-color-string, preview-dvipng-color-string) + (preview-dvipng-open, preview-dvipng-process-setup) + (preview-pdf2dsc-process-setup, preview-pdf2dsc-sentinel) + (preview-gs-close, preview-dvipng-close) + (preview-prepare-fast-conversion, preview-attach-filename): lots + of small changed to accommodate pdf2dsc. + (preview-parse-messages): Change pattern to accommodate pdfTeX. + (preview-LaTeX-command-replacements): Changed to not rely on latex + being different from elatex. And for allowing pdflatex in DVI mode. + (preview-dump-replacements, preview-undump-replacements): Same. + (preview-cache-preamble): transfer setting of \pdfoutput to + dumped format. + + * prv-emacs.el (preview-gs-color-value): Moved to preview.el. + (preview-get-colors): Substitute for previous + preview-gs-get-colors. + (preview-dvipng-get-colors): Removed. + * prv-xemacs.el (preview-gs-color-value): Moved to preview.el. + (preview-get-colors): Substitute for previous + preview-gs-get-colors. + (preview-dvipng-get-colors): Removed. + +2004-03-02 Jan-Ã…ke Larsson + + * preview.el: Fix xemacs' defalias problem + +2004-03-02 David Kastrup + + * preview.el (preview-image-creators): dvipng now uses different + place and close routines. + (preview-dvipng-command): Fix file name default. + (preview-pdf2dsc-command): for PDFLaTeX support + (preview-gs-dvips-process-setup): Pass image type. + (preview-dvipng-open), (preview-dvipng-process-setup), + (preview-dvipng-abort), (preview-dvipng-sentinel), + (preview-dvipng-close): New functions + (preview-gs-place): get imagetype as argument. + (preview-gs-place): don't create temporary file names for dvipng. + (preview-dvipng-place): deleted. + (preview-dvipng-place-all): New function. + (preview-attach-filename): New function for PDF support. + (preview-delete-file): Support attached files. + (preview-format-mml): Slight formatting changes. + +2004-01-14 David Kastrup + + * preview.el (preview-parsed-pdfoutput): Add detection for PDF + output from preview.sty. + (mail-header-encode-parameter): Encode the header ourselves: it + seems that versions of the library are not good at that. + (preview-parse-variables): Add `preview-parsed-pdfoutput'. + (preview-map): Add keybinding for `preview-copy-region-as-mml'. + (preview-copy-mml): factor out `preview-format-mml'. + (preview-copy-region-as-mml): New function. + (preview-format-mml): New function. + +2004-01-11 David Kastrup + + * latex/preview.dtx (subsection{Preview attaching commands}): + Tell preview-latex when the output format is PDF. + +2004-01-06 David Kastrup + + * preview.el (preview-region): Use "" for file name if + buffer not associated with a file. + (preview-parse-messages): recognize "" to mean + TeX-command-buffer. + (preview-region): Use `preview-generate-preview' instead of + `TeX-command'. + (preview-document): Same. + (preview-at-point): Add arguments to allow mouse use at later + time. + (LaTeX-preview-setup): Don't touch TeX-command-list. + (preview-cache-preamble): Use `preview-generate-preview' instead + of `TeX-command'. + (TeX-inline-preview): Deprecate. + (preview-generate-preview): New function. + (TeX-inline-preview-internal): Remove `name' argument. + +2004-01-04 David Kastrup + + * preview.el (preview-equality-transforms) + (preview-relaxed-string=, preview-walk-document) + (preview-required-option-list): Doc changes. + (preview-disabled-string, preview-inactive-string) + (preview-active-string, preview-place-preview) + (preview-reinstate-preview): Use new context menus and give help + strings for them. + (preview-copy-text, preview-copy-mml, preview-active-contents) + (preview-context-menu): Implement context menu and functionality. + (mail-header-encode-parameter): Add an autoload cookie for this + function taken from `mail-parse.el'. + +2003-11-11 Jan-Ake Larsson + + * Makefile.in, doc/Makefile.in, latex/Makefile.in: Add DESTDIR + variable + +2003-11-10 Jan-Ã…ke Larsson + + * preview.el: Add 'dvipng preview-scale functionality + +2003-11-08 Stephen Reindl (tiny change) + + * preview-latex.spec (%install): rm texinfo 'dir' file because + this file is not needed for distribution (rpm 4.1+ complains about + this 'missing' file). + +2003-11-07 Jan-Ã…ke Larsson + + * preview.el: Fix dvipng resolution + +2003-11-06 Jan-Ã…ke Larsson + + * prv-xemacs.el: + * prv-emacs.el: + * preview.el: Add color handling for dvipng + +2003-11-05 Jan-Ake Larsson + + * preview.el: Primitive dvipng support. Lacking ascent and colors. + +2003-11-04 David Kastrup + + * doc/todo.texi: Add quite a few more wishes. Actually, it would + be nice to strike off a few instead. + +2003-11-02 David Kastrup + + * latex/preview.dtx (subsection{Selection options}): Fix the + carnage broken document classes like elsart.cls and IEEEtran.cls + do to \endfigure and \endtable, and complain about it in + appropriate warning messages. + +2003-10-15 David Kastrup + + * latex/preview.dtx (subsection{Selection options}): Let the + textmath option also preview the `math' environment. + +2003-07-10 David Kastrup + + * doc/wininstall.texi: fix web page of AUCTeX. + + * doc/install.texi (Prerequisites): fix web page of AUCTeX. + + * preview.el (LaTeX-preview-setup, preview-parse-messages) + (TeX-inline-preview): Fix references to AUCTeX. + + * aclocal.m4 (library): Fix references to AUCTeX. + + * RELEASE: Fix references to AUCTeX. + +2003-06-19 David Kastrup + + * latex/preview.dtx: Make \long what needs to be \long in order + to deal with argument lists and macros that might contain \par. + +2003-05-13 David Kastrup + + * configure.in: Really bail if 8bit test fails. + + * circ.tex (section{Die gerade Linie}): Add comments for + intentional bugs. + +2003-04-28 David Kastrup + + * configure.in: Fix check for images. + + * aclocal.m4 (library): Try setting the EMACS_cv_SYS_* variable + that we are actually checking. Is that correct? + +2003-04-17 Jan-Ã…ke Larsson + + * doc/wininstall.texi: Corrected --with-lispdir and --with-packagedir + +2003-04-09 Jan-Ã…ke Larsson + + * aclocal.m4: More sane emacs-macro path-searching. + +2003-03-31 Jan-Ã…ke Larsson + + * aclocal.m4 (EMACS_PROG_EMACS): Make the test fail gracefully + when no binary executable is found. More generally, make the + emacs-macro path-searching tests run. + +2003-03-30 David Kastrup + + * doc/install.texi (Configure), doc/wininstall.texi: explain + --with-emacs and stuff even less ambiguously. + +2003-03-28 David Kastrup + + * doc/faq.texi (Installation Trouble): Update Windows info. + +2003-02-15 David Kastrup + + * configure.in: quote MAKEINFO. + + * README.CVS: Fix instructions because autoconf now does not need + patching anymore. + + * doc/preview-latex.texi: juggle the dircategory, hopefully right + now. + +2003-02-13 David Kastrup + + * doc/preview-latex.texi: Somewhat changed info dir entries. + (Simple customization): add hint for RefTeX. + + * doc/problems.texi, doc/macros.texi: anticipate name change of + AUC TeX to AUCTeX. + + * aclocal.m4, configure.in: resynch with AUCTeX aclocal.m4. + Lots of name changes. + + * configure.in: Remove redundant checks/substs. + + * aclocal.m4 (AC_EXAMINE_PACKAGEDIR): lots of fixes with regard + to quoting, bad code and other stuff. + (AC_CHECK_AUCTEX): remove trailing slash. + +2003-02-10 Alan Shutko + + * aclocal.m4: Changed all references of AUCTEXDIR to auctexdir. + + * Makefile.in (auctexdir): Changed all references of AUCTEXDIR to + auctexdir. + +2003-02-05 David Kastrup + + * latex/preview.dtx (section{Package options}): Correct doc of + \PreviewBbAdjust. + +2003-02-05 Alan Shutko + + * doc/problems.texi: Add documentencoding. + (Emacs problems): Move @end itemize after XEmacs. + +2003-02-03 David Kastrup + + * latex/preview.dtx (subsection{The \texttt{auctex} option}): + Make \item actually produce an \item. + +2003-01-27 David Kastrup + + * doc/problems.texi (Emacs problems): CVS Emacs supports PNG now. + + * doc/wininstall.texi: CVS Emacs supports PNG images now. + + * prv-xemacs.el (null-device): Add defvar for older XEmacsen. + +2003-01-24 David Kastrup + + * preview.el (preview-gs-sentinel): Delete PostScript file when + GhostScript has finished. + (preview-gs-dvips-sentinel): Don't mark PostScript file for + deletion when GhostScript will be run: otherwise preview.el will + delete the PostScript file automatically when the last preview has + been generated but before GhostScript exits. And since + GhostScript has the file still open, some "operating systems" will + refuse to delete the PostScript file at that moment. + +2003-01-20 David Kastrup + + * Release 0.7.8 + + * aclocal.m4: Correct environment spellings for Makefiles. + + * latex/preview.dtx (subsection{The internals}): comment out color + setup. That means that one might not be able to use color.sty for + setting up fore/background color, but it will also mean that + loading color.sty does not interfere with the initial colors set + up inside of GhostScript. In the long run, we will have to solve + this differently. + +2003-01-19 David Kastrup + + * latex/preview.dtx (section{Package options}) + (subsection{The \texttt{showlabels} option}), doc/todo.texi: + spell RefTeX correctly. + + * preview.el (preview-gs-open): Get really paranoid about closing + our output file in a way which should get rid of races. + (preview-ps-quote-filename): Get an optional argument for + avoiding making file names relative (like null-device). + (preview-equality-transforms, preview-relaxed-string=, + preview-canonical-spaces): Add functionality for relaxed check of + region changes (should allow outline-minor-mode in XEmacs, too, + and paragraph reformatting). + + * prv-emacs.el (preview-check-changes): use + `preview-relaxed-string=' for detecting relevant changes. + + * prv-xemacs.el (preview-create-icon): Use defsubst instead of + defmacro in order to avoid double evaluation of `file'. + (preview-check-changes): use `preview-relaxed-string=' for + detecting relevant changes. + + * latex/preview.dtx (section{Introduction}) + (section{Package options}, subsection{Supporting conversions}): + Mention that `tightpage' requires `dvips', too. + +2003-01-18 David Kastrup + + * Makefile.in (install-el, install-icons): Fix overquoting. + +2003-01-17 Jan-Ake Larsson + + * Makefile.in (install): Unquote $x so that the install prints + what is installed. + +2003-01-17 David Kastrup + + * aclocal.m4 (AC_SHELL_QUOTIFY): c\:\\bin is correct, but ugly. + Don't quote : specifically, it is not likely to be a special shell + character. + + * doc/Makefile.in (infodir): Add a few missing environment + variables. + + * latex/Makefile.in, Makefile.in, aclocal.m4, configure.in: try + to deal as perfectly as possible with spaces in file names, + quotes, backslashes and desperate things in general. + +2003-01-15 Jan-Ake Larsson + + * configure.in: Use AC_PROG_EMACS and more portable + AC_PATH_LISPDIR/PACKAGEDIR + + * aclocal.m4 (AC_PROG_EMACS): New. Sanitize AC_PATH_LISPDIR. Make + AC_PATH_PACKAGEDIR portable. + +2003-01-10 Jan-Ake Larsson + + * Makefile.in: Make Solaris make grok the remaining long lines + +2003-01-10 David Kastrup + + * preview.el (LaTeX-preview-setup): Change menu name for + generating customize menu to "Extend this menu". + + * configure.in (TEXMFGEN): Make this possibly more portable (at + the very least, we had some potential quoting problems). + + * autogen.sh, configure.in: Ok, darn them all. We now have a + configure.in that does no longer need to get patched up after + autoconf, regardless of which autoconf version gets used between + 2.13 and 2.57 or hopefully later. + +2003-01-07 David Kastrup + + * Makefile.in (AUCTEXLISP): quoting levels still unsufficient. + + * configure.in: Error message contained a single backquote, and + this made autoconf-213 barf. + + * Makefile.in (AUCTEXLISP): quote sed command correctly. + + * README.CVS: Update info about what autogen.sh generates. + + * doc/wininstall.texi: Well, forget a few details. Also added. + + * autogen.sh: Make much more simple, so that this will work with + more sed versions. + + * doc/wininstall.texi: Major overhaul, taking also GNU Emacs CVS + into account. + + * Makefile.in: Lots of quote fixes to make this hopefully compile + better when paths may contain spaces and backslashes (the horror, + the horror). + + * latex/Makefile.in: Lots of quote fixes to make this hopefully + compile better when paths may contain spaces and backslashes + (the horror, the horror). + + * doc/preview-latex.texi (Keys and lisp): Rearrange section, + cater for renamed menus, some better explanations. + + * doc/faq.texi (Installation Trouble): Some rearrangements and + additional explanations. + + * latex/preview.dtx (section{Provided Commands}): Add description + of \PreviewOpen and \PreviewClose. + (subsection{Selection options}): Typo in displaymath hook on \[ + fixed. + (subsection{Preview attaching commands}): Fix code of + \PreviewOpen and \PreviewClose which need to have their own + groups open and close always. + +2003-01-06 David Kastrup + + * latex/preview.dtx (section{Provided Commands}): Add a lot of + additional possibilities for previewing commands and document + them. + + * doc/preview-dtxdoc.pl: convert @ to @@, add braces around \marg + argument, allow spaces in \oarg argument. + + * doc/Makefile.in (install): rename INSTALLINFO to INSTALL_INFO + for consistency. + + * autogen.sh: Allow use of AUTOCONF, use sed. + + * configure.in: Rework the language stuff autoconf sickness. + Require autogen.sh for editing work. + +2002-12-29 David Kastrup + + * preview.el (preview-clearout-section): New function. + (preview-map): Add keybinding to it. + (LaTeX-preview-setup): Reorganize Preview menu for better user + friendliness. + +2002-12-22 David Kastrup + + * latex/Makefile.in (install-texmf): don't call TEXHASH with + argument: some of the substitutes might not like it. Better safe + than sorry. + + * configure.in: A few more texhash-related fixes. + +2002-12-20 David Kastrup + + * Makefile.in (LISP_SOURCES): Use = instead of := for non-GNU + make versions. Also in other variables. + +2002-12-19 David Kastrup + + * latex/preview.dtx (section{Package options}): Document + `footnotes' option. + (section{Provided Commands}): Document new second optional + argument to \PreviewMacro*. + (subsection{Parsing commands}): Obliterate \pr@seq and make + \pr@callafter have different semantics. + (subsection{Preview attaching commands}): New macroo \pr@endmacro + needed for new \pr@callafter semantics. + (subsection{Preview attaching commands}): Implement the new + second argument to \PreviewMacro* and \PreviewEnvironment*. + (subsection{Preview attaching commands}): Make \pr@startsnarf + adapt to new \pr@callafter semandtics. + (subsection{The \texttt{auctex} option}): Use the new semantics + in a number of cases. + + * doc/install.texi (Loading the package): Make this more + fool-proof by leaving out alternatives and reordering. + +2002-12-18 Jan-Ake Larsson + + * preview.dtx: Add \caption to auccfg + +2002-12-17 David Kastrup + + * Release 0.7.7 + + * prv-emacs.el (preview-unwatch-preamble): Fix a lethal typo. + + * Release 0.7.6 + + * preview-latex.spec (Requires): Bump to 0.7.6 + + * doc/faq.texi (Requirements): Change version requirements for + AUC TeX. + + * doc/readme.texi (Activating preview-latex): Explain about what + to do if preview-latex.el did not get installed properly. + + * doc/preview-latex.texi (Keys and lisp): Explain about new + commands and options. + (Simple customization): Explain how to keep counters accurate. + (The Emacs interface): document new options. + + * doc/install.texi (Prerequisites): Explain about AUCTeX and + XEmacs versions. + (Loading the package): Recommend using preview-latex.el as + standard measure. + + * Makefile.in (GS): Inherit GhostScript executable name. + (preview-latex.el): If GhostScript is not named "gs", change + preview-gs-command setting appropriately. Add the Lisp + installation directory to the load-path. + + * configure.in: use : instead of /bin/true + Check typical GhostScript executable names on Windows. Check for + initexmf -u (MikTeX specific). + + * RELEASE: Some more changes for 0.7.6 + +2002-12-16 David Kastrup + + * preview.el (preview-string-expand): Get optional separator + argument. + (preview-expandable-string): Change type somewhat. + (preview-clearout-document): doc change. + (preview-default-preamble, preview-LaTeX-command): Simplify to + changed definition of preview-expandable-string. + + * prv-xemacs.el (preview-mode-setup, preview-watch-preamble) + (preview-unwatch-preamble): Differentiate between unwanted formats + and formats without loaded master file. + + * prv-emacs.el (preview-watch-preamble, preview-unwatch-preamble, + preview-mode-setup): Differentiate between unwanted formats and + formats without loaded master file. + +2002-12-15 David Kastrup + + * Makefile.in (preview-latex.el): Avoid putting the output of pwd + inside of "...", because something like "C:\notagain" is not + quite the Lisp string we'd want. + + * preview.el (preview-walk-document): New function walking + through buffers of current document. + (preview-clearout-document): New function for completeness. + (preview-map): Add keybinding for it. + (LaTeX-preview-setup): Add menu entry for it. + + * configure.in: Preparations for 0.7.6 + + * RELEASE: Preparations for 0.7.6 + +2002-12-14 David Kastrup + + * aclocal.m4: Don't lie about name of option --with-texmf-dir + +2002-12-13 David Kastrup + + * latex/preview.dtx (subsection{The \texttt{footnotes} option}): + new option. + + * preview.el (preview-default-option-list): Switch on previews + for footnotes by default. + +2002-12-12 Jan-Ake Larsson + + * autogen.sh: Nitpicking + + * aclocal.m4, configure.in, doc/Makefile.in, doc/macros.texi: + Sanitize makeinfo macro tests + + * configure.in: Make LANG and LC_CTYPE saving work across + recursive call of ./configure (2.52) + +2002-12-12 David Kastrup + + * latex/preview.dtx (subsection{The internals}): Kill insertions + off that annoy our space strippers. That makes + \PreviewMacro[*[]{}]{\footnote} feasible. + +2002-12-11 Jan-Ake Larsson + + * images/preview-cap-up.xpm: Fix bg and fg color issues + +2002-12-10 Jan-Ake Larsson + + * autogen.sh: Make LANG and LC_CTYPE saving work across recursive + call of ./configure (2.13) + + * doc/macros.texi: Typo fixed + +2002-12-10 David Kastrup + + * preview.el (preview-counter-find): Take counters by searching + forward if searching backwards does not avail us. + (preview-reinstate-preview): Optimize queue/tempdir handling for + the most common case. + +2002-12-09 David Kastrup + + * preview.el (preview-counter-find): Factor out stuff from advice + since it will otherwise miss out on compatibility macros for XEmacs. + (TeX-region-create): Factor out advice. + (preview-reinstate-preview): Oops, wrong data if nothing + changed. Switched around. + + * latex/preview.dtx (subsection{Preview attaching commands}): + Don't \unskip in vertical modes in preview/nopreview + environments. + + * preview.el (preview-parsed-counters): New variable. + (preview-dissect): export counter info. + (preview-place-preview): get counter info. + (preview-reinstate-preview): resinstate counters also. + (preview-default-option-list): add counters option. + (preview-string-expand): New function. + (preview-expandable-string): New type. + (TeX-region-create): Advice for counter restoration. + (preview-last-counter): for restoring. + (preview-extract-counters): New function. + (desktop-buffer-preview-misc-data): Sort stuff when writing and + deal with counters. + (preview-dissect, preview-buffer-restore-internal) + (preview-place-preview): Deal with counters. + (preview-buffer-has-counters): New variable during parsing. + (preview-place-preview): Deal with counters. + (preview-required-option-list): New option. + (preview-make-options, preview-make-preamble): deleted + (preview-default-preamble, preview-LaTeX-command): redefine using + expandable strings. + (LaTeX-preview-setup): Replace entry in TeX-command-list with + dummy. + (LaTeX-preview-setup): Delete "%D" and "%P" fudges. + (preview-parse-counters): New function for parsing counters. + (preview-parse-variables): Add preview-parsed-counters to parse + list. + (preview-parse-messages): deal with counters. + (preview-dump-replacements): Add preview-LaTeX-command-replacements + (preview-cache-preamble): Don't generate string for + TeX-inline-preview, it does so itself. + (TeX-inline-preview): Generate command from preview-LaTeX-command + (preview-report-bug): Report more variables. + +2002-12-07 David Kastrup + + * preview.el (LaTeX-preview-setup): simplify "%m" entry in + TeX-expand-list. + (preview-create-subdirectory): return a quoted relative file name. + (preview-cache-preamble): various directory name related changes + so that everything will work master-relative. + (preview-cache-preamble-off): Same here. + (TeX-inline-preview-internal): Same here. + (preview-report-bug): Add autoload cookie. + (preview-create-subdirectory): Make dvips directory relative. + (preview-report-bug): also report LaTeX-command-style. + +2002-12-06 David Kastrup + + * preview.el (preview-gs-open): Another GhostScript security work + around, this time leaving off something that confuses 7.x + releases of AFPL GhostScript. + +2002-12-03 Jan-Ake Larsson + + * Makefile.in: + * prv-xemacs.el: handle the new toolbar image + + * images/preview-cap-up.xpm: toolbar image + +2002-11-29 Jan-Ake Larsson + + * doc/readme.texi: + * doc/preview-latex.texi: + * doc/macros.texi: + * doc/Makefile.in: + * configure.in: + * aclocal.m4 (AC_TEST_MAKEINFO_ACRONYM): Attempt to make docs + build with old texinfo + +2002-11-28 David Kastrup + + * Release 0.7.5 + + * latex/preview.dtx (subsection{Debugging options}): Typos. + + * Makefile.in (use-hint): Add XEmacs version hint. + + * prv-xemacs.el (preview-defmacro): define compatibility macros + only at compile time. + (preview-mode-setup): correct check for icon in toolbar. + + * preview.el (require): use load-library on prv-xemacs.el in + order to get the compatibility macros at compilation time. + +2002-11-22 David Kastrup + + * Release 0.7.4 + + * preview-latex.spec (Requires): New RPM brain damage means we + have to disable the 8bit test. + + * doc/faq.texi: Various updates. + + * doc/install.texi: Some cosmetic changes and version info + updates. + + * doc/preview-latex.texi (Keys and lisp): Adjust docs for changed + menu structure (Preview having a top-level entry). + (On EPS previews): phase out info about historical `postscript' + settings. + + * preview.el (preview-image-type): Don't offer `postscript' when + customizing. + + * configure.in: bump version. + + * doc/preview-latex.texi: bump version. + (Keys and lisp): reorder so that indexes refer to the start of + items. + + * preview.el (preview-gs-transact): add a bit of paranoia into + page shifts in case the coordinate origin is not upper left. + Similar to change in tightpage option of preview.dtx. + (preview-LaTeX-command-replacements): comment fix. + + * latex/preview.dtx (subsection{The \texttt{counters} option}): + new option and documentation: add counter checkpoints in + diagnostics. + +2002-11-21 David Kastrup + + * prv-xemacs.el (preview-mode-setup): And here we have the + toolbar icon for XEmacs users. Does not look too pretty, but + might inspire volunteers for improvements. + +2002-11-07 Jan-Ake Larsson + + * aclocal.m4: Cosmetic change to the AUC TeX path printout + +2002-11-20 David Kastrup + + * RELEASE: some changes for 0.7.4 + + * preview.el (preview-dump-command, preview-undump-command): + deleted. + (preview-do-replacements): New function for performing + replacements in strings. + (preview-LaTeX-command-replacements, preview-format-name) + (preview-dump-replacements, preview-undump-replacements): new + variables. + (preview-cache-preamble): adapt to new variables. + (TeX-inline-preview, TeX-inline-preview-internal): same. + +2002-11-18 David Kastrup + + * prv-emacs.el (preview-mode-setup): Add preview-at-point to the + toolbar, for those people that have not seen fit to disable it. + Volunteers for the XEmacs equivalent? + +2002-11-10 David Kastrup + + * preview.el (preview-ps-quote-filename): New function replacing + preview-ps-quote, generating a relative file name. + (preview-prepare-fast-conversion): Use it. + (preview-gs-transact): Use it. + (LaTeX-preview-setup): Make tmp directory name relative. + Problem is that Cygwin absolute paths are not suitable for + passing into MikTeX. Sigh. But perhaps relative file names are + nicer, anyway. + (preview-parse-messages): Fix regexps for the sake of people + incompetent to make the run buffer not contain ^M everywhere. + Another Windows-related "fix". + +2002-11-05 David Kastrup + + * preview.el (preview-gs-open): Place color setup after + setpagedevice. + + * latex/preview.dtx (subsection{Supporting conversions}): Make + the tightpage option generate proper /PageOffset values also for + devices with bottom-up coordinate systems. + + * doc/problems.texi: Remove preview-gs-broken-security docs. See + below. + + * preview.el (require): Don't abort compilation if desktop or + reporter packages are not installed. + (preview-gs-broken-security): Removed: + (preview-gs-open): Workaround for braindead security. + +2002-11-04 David Kastrup + + * Changes in order to preserve point in previews as follows: + * preview.el (preview-at-point): Pass selected window into + preview-toggle. + (preview-place-preview): Pass event into preview-toggle. + (preview-reinstate-preview): Same here. + * prv-emacs.el (preview-toggle): take additional argument (event + or window). + (preview-last-location): New variable, buffer-local. + (preview-mark-point): Remember point before moving out. + (preview-restore-position): New function. + * prv-xemacs.el (preview-toggle): take additional argument (event + or window). + (preview-last-location): New variable, buffer-local. + (preview-mark-point): Remember point before moving out. + (preview-restore-position): New function. + +2002-10-21 Jan-Ake Larsson + + * configure.in: Fix texhash check + +2002-09-16 David Kastrup + + * latex/preview.dtx (section{Introduction}): Mention tightpage + option for image conversion already here. + (\pr@endbox): set \reserved@a to something harmless for skipping + (if it was set to a conditional, we got into trouble). + (subsection{Selection options}): Redo the textmath option because + the exscale package (for example) does dirty things within + \frozen@everymath. + +2002-09-06 David Kastrup + + * doc/faq.texi: Explain about 'Preview-LaTeX exited abnormally + with code 1' message + +2002-09-02 David Kastrup + + * prv-xemacs.el (preview-mode-setup): Make behaved startup in + buffers without associated file (M-x calendar RET tfw produces + things like that). Generating previews will not work before you + save the buffer, but at least the stuff doesn't bomb out right + away. + + * prv-emacs.el (preview-mode-setup): Make behaved startup in + buffers without associated file (M-x calendar RET tfw produces + things like that). Generating previews will not work before you + save the buffer, but at least the stuff doesn't bomb out right + away. + + * circ.tex: Load and save once to make it X-Symbol-compatible + (changes are negligible, and it makes demoing mixtures of the two + tools nicer). + + * preview.el (LaTeX-preview-setup): Fix menu position of generated + customize menu. + (preview-format-kill, preview-dump-file-name) + (preview-cache-preamble, TeX-inline-preview-internal): Use prefix + `prv_' for dumped formats to avoid name collisions (for example, + with WhizzyTeX). + +2002-08-14 David Kastrup + + * Release 0.7.3 + + * preview.el (preview-auto-cache-preamble): Renamed from + preview-dump-default. Make the default 'ask: that way people + will be hard put to overlook this feature, but are not stuck on + it in case it causes trouble. Perhaps will make them read the + manual, too, in order to set this to T. + (preview-map): Use preview-cache-* + (preview-cache-preamble, preview-cache-preamble-off): renamed + from preview-dump-*. + + * doc/preview-latex.texi (Keys and lisp): Rename + preview-dump-format and its ilk to preview-cache-preamble. + (Simple customization): Mention automatic preamble caching. + +2002-08-13 David Kastrup + + * preview.el (TeX-inline-preview): Use set-process-coding-system + only when Mule is active. + (preview-document): Save document if necessary. + (TeX-inline-preview): Some overhaul. + (TeX-inline-preview-internal): Separated out so that + region/format dumps don't interfere. + + * prv-xemacs.el (preview-mode-setup): See below. + (preview-dump-threshold): See below. + (preview-preamble-format-cons): File local variable for watching. + (preview-preamble-check-change, preview-watch-preamble) + (preview-unwatch-preamble): See below. + (preview-handle-before-change): Call + preview-preamble-check-change. + + * prv-emacs.el (preview-dump-threshold): Regexp ending dump. + (preview-preamble-changed-function): New function. + (preview-watch-preamble): New function. + (preview-unwatch-preamble): New function. + (preview-mode-setup): Check whether we open a watched file. + + * preview.el (preview-buffer): Move region exclusion into advice + for TeX-region-create. + (preview-dump-default): New variable, tells us whether we should + dump formats automatically. + (preview-dumped-alist): Semantics change. + (preview-dump-format): Use watch functions from prv-*.el + (preview-clear-format): new optional argument, save last wanted + state. + (TeX-inline-preview): Use preview-dump-default. + +2002-08-07 Jan-Ake Larsson + + * autogen.sh: Fixed autoconf-fix message + +2002-08-07 David Kastrup + + * preview-latex.spec (Release): Set to 9 (prerelease) + (Requires): Add FAQ to docs. + + * doc/faq.texi: FAQ added. + +2002-08-06 David Kastrup + + * prv-xemacs.el (preview-use-balloon-help): New boolean + customization variable. + (preview-mode-setup): Use it. + + * doc/preview-latex.texi (The Emacs interface): Document it. + +2002-08-05 David Kastrup + + * latex/preview.dtx (subsection{Supporting conversions}): change + default of \PreviewBbAdjust from 0.5bp to 0.50001bp. + +2002-08-04 David Kastrup + + * preview.el (preview-back-command): New optional argument + NOCOMPLEX. + (preview-parse-messages): Use it for not skipping backwards over + braced expressions when start and end of triggered errors match. + +2002-08-03 David Kastrup + + * RELEASE: update RedHat distro info. + + * doc/preview-latex.texi: Remove documentlanguage setting: English + is the default anyway, and declaring it breaks the broken TeXlive 7 + texinfo distribution. + + * doc/todo.texi: Updates. + + * RELEASE: New leading commercial. + +2002-08-01 Jan-Ake Larsson + + * doc/preview-latex.texi: Typo corrected + +2002-07-31 David Kastrup + + * doc/Makefile.in (preview-latex/index.html, clean): clean out + preview-latex directory for html-docs. + + * doc/problems.texi (Problems with GhostScript): document + preview-gs-broken-security. + + * doc/preview-latex.texi: Bump version to 0.7.3. + (The Emacs interface): Document changes in options. + + * doc/install.texi (Prerequisites): GhostScript problem info. + + * doc/Makefile.in (TEXIFILES): New macro. + (preview-latex/index.html, preview-latex.dvi, preview-latex.info): + Make dependency on TEXIFILES. + (clean): remove INSTALL.windows + + * preview.el (preview-parsed-font-size) + (preview-parsed-magnification): documented. + (preview-hook-enquiry): Use value of symbol only if bound. + (preview-document-pt-list): Correct customization type. + +2002-07-30 David Kastrup + + * latex/preview.dtx (section{Package options}): document `lyx' + option. + + * doc/wininstall.texi: New file documenting XEmacs/Windows, + courtesy of Anthony Williams. + +2002-07-29 David Kastrup + + * preview.el (preview-parsed-font-size) + (preview-parsed-magnification): new variables set from + preview.sty + (preview-get-magnification): consults + preview-parsed-magnification. + (preview-gs-resolution): consult preview-get-magnification. + (preview-gs-open): Delay setup of preview-gs-command-line + (preview-gs-dvips-process-setup): complete it. + (preview-hook-enquiry): New function. + (preview-document-pt-list): Sources of document-pt. + (preview-auctex-font-size): Previously preview-document-pt + (preview-document-pt): Uses preview-document-pt-list + (preview-scale-from-face): defer part of calculation. + (preview-parse-variables): Variable list set from preview.sty + (preview-parse-messages): Clear them at start of parse. + (preview-parse-messages): New pattern for variable list. + (preview-parse-messages): magnification for PS bounding box. + (preview-parse-messages): Parse variables from preview.sty + (preview-get-geometry): Use preview-hook-enquiry for call of + preview-scale-function. + +2002-07-28 David Kastrup + + * latex/preview.dtx (subsection{Preview attaching commands}): Fix + \PreviewEnvironment* + (subsection{Preview attaching commands}): Type out font size and + magnification info at start of document. + (subsection{Supporting conversions}): Take DVI magnification into + account in `tightpage' option. + +2002-07-26 David Kastrup + + * circ.tex: Demonstrate showlabels (and fix a math oversight). + + * latex/preview.dtx (subsection{The \texttt{showlabels} option}): + Changes, different look, more robust. + +2002-07-25 Jan-Ake Larsson + + * doc/problems.texi: Info on windows-xemacs + +2002-07-25 David Kastrup + + * preview.el (LaTeX-preview-setup): Fix form of preview-entry in + order not to confuse customize. + +2002-07-24 David Kastrup + + * preview.el (TeX-inline-preview): Export buffer coding system to + TeX process output encoding (for our Polish friends and others). + Hope this does not break non-Mule XEmacsen if such are around. + +2002-07-23 David Kastrup + + * preview.el (preview-image-creators): Change tiff device to use + tiff12nc, which has a chance of working with the current + settings, at the cost of large file sizes. + +2002-07-23 Jan-Ake Larsson + + * doc/install.texi: Minor changes + + * doc/problems.texi: Documented GNU gs 7.05 security bug info + +2002-07-22 David Kastrup + + * latex/preview.dtx (subsection{The \texttt{showlabels} option}): + Make sanitization of labels more consistent and switch to + typewriter font. + +2002-07-19 David Kastrup + + * prv-xemacs.el (preview-mode-setup): Add preview menu. + + * prv-emacs.el (preview-mode-setup): Add preview menu. Why is it + before the LaTeX menus? + + * preview.el (preview-map): Prefix-keymap. + (LaTeX-preview-setup): Use it. + +2002-07-18 David Kastrup + + * prv-xemacs.el (face-attribute): shift stuff to compile time. + (preview-with-LaTeX-menus, preview-mode-setup): cosmetic changes. + + * preview.el (preview-LaTeX-command): Use Windows-friendly + quoting. + (preview-dump-command, preview-undump-command): Same here. + +2002-07-16 David Kastrup + + * preview.el (preview-ps-quote): New function. + (preview-prepare-fast-conversion): Use it. + (preview-gs-transact): Use it. + + * latex/preview.dtx (subsection{The \texttt{auctex} option}): + Output font size. + (subsection{The \texttt{lyx} option}): New option. + (subsection{Supporting conversions}): Write out tightpage + dimensions before each change. + (section{Various driver files}): generate prlyx.def. + +2002-07-11 David Kastrup + + * preview.el (preview-gs-broken-security): New option specifying + when to disable security. + (preview-gs-open): Use it. Also abort more predictably if + setpagedevice fails, usually due to broken security. + +2002-05-28 David Kastrup + + * preview.el (LaTeX-preview-setup, preview-parse-messages): cater + to abbreviated locator error message. + (preview-clearout-at-point): New function. + (LaTeX-preview-setup): add to menus and cleanup unnecessary flags. + + * latex/preview.dtx: replace "Package Preview Error" with + "Preview": too many people got confused. + + * doc/preview-latex.texi (Simple customization): Document new + auto-reveal default. + (Simple customization): Document a better way for default + options. + + * preview.el (preview-gs-open): bind preview-latex-do PostScript + operator. + (preview-auto-reveal): Change default to auto-open on move + left/right. + +2002-05-08 David Kastrup + + * doc/todo.texi: add request for other TeX formats. + + * preview.el (preview-parse-messages): There is little point in + being more picky about ( than we are about ), since all that this + buys us is bad nesting. + + * prv-emacs.el (preview-gs-get-colors): Warp outline borders to + integral pixels in order to avoid antialiasing artifacts. + +2002-05-06 + + * preview.el (preview-back-command): Changed semantics in order + not to backstep over punctuation. + (preview-get-geometry): Bad error message format. + +2002-04-30 Jan-Ake Larsson + + * preview.el (preview-dump-format): + Now checks if format has changed; if it hasn't, + no new dump is made. + + * preview.el (preview-buffer): Changed to mirror the behaviour of + TeX-region-create. This is probably the best we can do. + +2002-04-29 Jan-Ake Larsson + + * preview.el (preview-buffer): allow it to work with format + caching + added comment + +2002-04-28 Jan-Ake Larsson + + * doc/preview-latex.texi: + Document preview-clear-format and its keybindings + + * preview.el (preview-clear-format): + new, also changed keybinding for it + +2002-04-26 Jan-Ake Larsson + + * doc/preview-latex.texi: Documented preview-dump-format + + * preview.el: Cosmetic change in menu + +2002-04-26 David Kastrup + + * preview.el (LaTeX-preview-setup): Menu entries and keybindings + for preview-dump-format. + (preview-dumped-list): New variable: dumped formats. + (preview-dump-format): New command for pregenerating format files. + (TeX-inline-preview): Use dumped format if present. + (preview-dumped-list): Move. + (preview-cleanout-tempfiles): Also kill format files. + (preview-format-extensions): New variable for cleanup purposes. + (TeX-inline-preview): preview-dumped-list contains expanded file + names. + +2002-04-24 Jan-Ake Larsson + + * problems.texi: Slight index change + + * preview-latex.texi (Keys and lisp): Added the menu entries + +2002-04-23 Jan-Ake Larsson + + * autogen.sh: Test for unique file 'preview.el' in autoconf 2.13 + +2002-04-23 Alan Shutko + + * aclocal.m4 (AC_PATH_PROGS_REQUIRED): New. + + * configure.in: Lock in whole path of Emacs executable. + +2002-04-23 David Kastrup + + * Release 0.7.2b + + * Makefile.in (preview-latex.el): Quickfix + + * Release 0.7.2 + + * preview.el (preview-buffer-restore-internal): Remove expired + previews. + (preview-reinstate-preview): set timestamp. + +2002-04-22 Nix + + * doc/install.texi (Advice for non-privileged users): + Add XEmacs-specific instructions. + + * aclocal.m4 (AC_EXAMINE_PACKAGEDIR): Locate an existing preview-latex + package and install over it if found. + (AC_PATH_PACKAGEDIR): Support ~/ in package directory names. + +2002-04-22 David Kastrup + + * doc/install.texi (Advice for non-privileged users): new section. + + * configure.in: Quote TEXMFGEN. + + * doc/readme.texi (Getting started): mention the mouse buttons. + +2002-04-21 Nix + + * prv-emacs.el: Remove comment regarding XEmacs's lack of local + change hooks; it has them and we use them. + + * doc/problems.texi (XEmacs): Mention the process-liveness patch. + Fix some grammar. Call the support `quite new' rather than + `very new'. + + * configure.in (infodir): Define for XEmacs; point to the info + location in the package tree. + +2002-04-21 David Kastrup + + * preview.el (preview-parse-messages): Try a few changes making + bad buffer-local interac + shorten export format. Backward compatible. + + * prv-xemacs.el (preview-export-image, preview-import-image): + shorten export format. Backward compatible. + +2002-04-14 Nix + + * prv-xemacs.el (glyph-image-type): New, determine the + image type of a glyph. + (preview-export-image): Use it. + + * doc/problems.texi (XEmacs): Say that preview reinstating + works with a new enough desktop.el. + +2002-04-14 David Kastrup + + * prv-emacs.el (preview-export-image): New macro. + (preview-import-image): New macro. + + * preview.el (preview-reinstate-preview): use + preview-import-image. + (preview-dissect): Use preview-export-image. + + * prv-xemacs.el (preview-export-image, preview-import-image): New + functions for desktop.el. + + * doc/Makefile.in (preview-latex.info): In the interest of + release sanity, add --no-split option so that we have to cater + for just a single info file. Needs to be reverted later. + + * doc/readme.texi (Getting started): mention circ.tex here + instead of installation.texi. + + * preview.el (preview-gs-filter): Don't remove from "Compilation" + tag if just in filter routine. + + * patches/flyspell.patch, patches/mouse-drag.patch: update + inflicted Emacs version number. + + * doc/problems.texi (Middle-clicks paste instead of toggling): + Alas, those bugs persist into 21.2 although the CVS has had it + fixed for half a year almost. "Stable release" policies. Ha. + +2002-04-14 Nix + + * preview.el (preview-parse-messages): + Typo and grammar fixes in comments. + No longer wonder if XEmacs will like line-number regexps. + + * doc/problems.texi (XEmacs): + Say that it works modulo core bugs and new desktop.el package. + Point to the latest version of the core patch. + Suggest trying under MS Windows. + (GNU Emacs under Windows): Point out that preview-latex's not been tested + under Windows with XEmacs, either. + + * doc/install.texi (Prerequisites): + No longer describe XEmacs support as preliminary. + Mention the Known Problems link. + (Configure): Elaborate --with-packagedir. + (Loading the package): Mention that most of these instructions + are unnecessary for XEmacs, except if you used --with-packagedir. + (Maybe should split into Emacs/XEmacs subsections?) + +2002-04-14 Jan-Ake Larsson + + * install.texi: Added --with-xemacs + + * preview-latex.spec: Only require xemacs >= 21.1 + +2002-04-14 David Kastrup + + * doc/install.texi Added section for package providers, updated + the links. + + * preview.el (preview-error-condition): New variable for last + error condition. + (preview-log-error): Error reporting routine. Logs to run buffer. + (preview-reraise-error): At the end of routines, raise a true + error with beep and whatever else is necessary to get attention. + (preview-gs-sentinel, preview-gs-filter) + (preview-gs-dvips-sentinel, preview-gs-transact): use it. + (preview-gs-transact): Don't send to dead process. + (preview-parse-messages): Use error logger. + (preview-TeX-inline-sentinel): Same here. + (TeX-inline-preview): Catch initialization errors and abort. + Good for people without graphic display. + +2002-04-13 Jan-Ake Larsson + + * preview-latex.spec: Repair RedHat XEmacs braindamage + + * preview-latex.texi: Document new keybindings + +2002-04-13 Nix + + * prv-xemacs.el (preview-compatibility-macros): + Bind the final list of compiled macros into the bytecode at + the end of compilation. + +2002-04-13 David Kastrup + + * prv-xemacs.el (preview-make-clickable): Revert changes. + (preview-auto-reveal): revert default: reveal.el might be loaded + after preview.el, and we still want the default to follow + reveal-mode in that case. + +2002-04-13 Nix + + * prv-xemacs.el (preview-nonready-icon): + Give a reasonable error if the icon doesn't exist. + (preview-error-icon): Likewise. + (preview-icon): Likewise. + + (preview-make-clickable): Set `isearch-open-invisible' on new clickable regions. + (preview-toggle): Likewise. + (preview-auto-reveal): Only track reveal-mode if reveal-mode is defined. + If reveal-mode' is not defined, the default should be nil. + + (isearch-highlight): Make a protected, disabled advisement by default. + (replace-highlight): Never exists; don't bother to advise. + (preview-query-replace-reveal): Turn on the isearch-highlight advisement. + + * doc/todo.texi: Update XEmacs status: most things are now done. + +2002-04-13 David Kastrup + + * preview.el (preview-next-border): Fix a weird error where + regions beyond the file were demanded. + (preview-at-point): Include previews immediately before point for + toggling. + + * prv-xemacs.el (preview-toggle): Make isearch open the invisible + stuff, and make isearch-invisible track invisible so that isearch + will not "restore" things improperly. + (preview-move-point): isearch is manipulated by advising + isearch-highlight. No need to check here for isearch-mode. + (defadvice): only advise replace-highlight if defined. + + * latex/preview.dtx (subsection{The \texttt{showlabels} option}): + hotfix for strange label names. + + * preview.el (preview-disable): Go via toggle for disabling + strings. + + * prv-xemacs.el (preview-mode-setup, preview-marker) + (preview-temporary-opened, preview-mark-point) + (preview-auto-reveal, preview-move-point, preview-open-overlays) + (replace-highlight, preview-query-replace-reveal) + (preview-change-list, preview-register-change) + (preview-check-changes, preview-handle-before-change) + (preview-handle-after-change): Do the whole fake-intangibility + and change detection shmeer. isearch does not work yet. + +2002-04-12 David Kastrup + + * preview.el (LaTeX-preview-setup): call preview-mode-setup + and/or put it in LaTeX-mode-hook. + (preview-buffer, preview-document, LaTeX-preview-setup): New + commands, keybindings, menu entries. Things are now more + orthogonal and you do no longer need C-c C-c and their ilk (though + still supported): we have the commands all accessible via C-c C-p + now. + (preview-dsc-parse): Make DSC parsing more robust. + + * prv-xemacs.el (preview-mode-setup): New function. Enable + balloon help. + + * prv-emacs.el (preview-toggle): Move hook setup to + preview-mode-setup. + (preview-mode-setup): New function. + (preview-mark-active): make macro. + + * Makefile.in: New icons. + + * images/preverr.xbm, images/preverr.xpm: New icons. + + * prv-emacs.el (preview-error-icon): New icon. + + * preview.el (preview-mouse-open-error): Use other call + conventions in order not to confuse XEmacs. + (preview-gs-flag-error): switch to using error icon. + (preview-error-face): deleted. + + * prv-xemacs.el (preview-error-icon): New icon. + (preview-make-clickable): new properties preview-balloon-help and + preview-keymap. + (preview-click-reroute): changed to use preview-keymap. + (preview-reroute-map): new function. + (preview-balloon-reroute): new function. + (preview-toggle): change the juggling. + + * doc/preview-latex.texi (Simple customization): expound on the + center example. + +2002-04-11 Jan-Ake Larsson + + * preview-latex.spec: Adjustments for xemacs + + * doc/preview-latex.texi: Reinstate (reverse) textmath hint + +2002-04-11 David Kastrup + + * preview.el (preview-environment, preview-parse-messages): byte + compiler warnings. + (preview-buffer-restore-internal): basically the previous + preview-buffer-restore. + (preview-buffer-restore): delay resinstating previews vie + desktop-delay-hook. + + * prv-xemacs.el (face-attribute): Try getting calculation of + :height more correct. + (preview-inherited-face-attribute): Make a macro. + + * prv-install.el (preview-make-package): Avoid Emacs + unnecessarily loading all command line arguments as files. + + * prv-xemacs.el (preview-click-reroute): New routine to + discriminate between clicks on glyphs or else. + (preview-make-reroute): Generate a reroute map from original + glyph clickable keymap. + (preview-toggle): use the rerouter. + +2002-04-10 Jan-Ake Larsson + + * doc/preview-latex.texi: Added hint on getting custom + environments previewed due to John Jones, remove the textmath hint + + * latex/.cvsignore: New + + * .cvsignore: Changed due to the 'latex' subdir + + * patches/x-symbol.patch: Removed + + * preview-latex.spec: Simplifications from using a 'latex' subdir + + * doc/Makefile.in: Use mkinstalldirs + +2002-04-10 David Kastrup + + * preview.el (preview-default-option-list): set textmath per + default. + + * latex/README-preview: update to reflect added file footprint + from preview.dtx + +2002-04-10 Jan-Ake Larsson + + * Makefile.in: Move the texmf part to latex/Makefile.in, fix the + 'clean' target + + * configure.in: preview.dtx has moved, generate latex/Makefile + + * doc/Makefile.in: preview.dtx has moved + + * latex/README-preview, README-preview: + Renamed README-preview to latex/README-preview + + * latex/bootstrap.ins, bootstrap.ins: + Renamed bootstrap.ins to latex/bootstrap.ins + + * latex/preview.dtx, preview.dtx: + Renamed preview.dtx to latex/preview.dtx + + * latex/Makefile.in: Move latex style to subdir, Typo corrected + +2002-04-10 David Kastrup + + * prv-xemacs.el (face-attribute): GNU Emacs calculates face + heights differently. + (preview-replace-active-icon): For now do the full inefficient + stuff. Working this out later should be easy. XEmacs now + displays previews, but that's about all. + (preview-button-1, preview-button-2): define as XEmacs buttons + (preview-make-clickable): make balloon-help something that + balloon-help-mode understands. + +2002-04-09 Nix + + * prv-xemacs.el: Remove crufty destructive-copy stuff. + + (map-plist, destructive-replace-glyph, copy-glyph): Removed. + (preview-replace-active-icon): Just set the new image property rather than + destructively copying it. + +2002-04-09 Nix + + * prv-xemacs.el (preview-nonready-icon): Fix baseline. + (preview-icon): Likewise. + + Bug fixes: + + (destructive-replace-glyph): Don't confuse `new-glyph' and `glyph'. + + Sync with prv-emacs changes: + + (propertize): Create zero-length extents if possible. + (preview-image-from-icon): Removed. + (preview-string-from-image): Removed. + (preview-replace-icon): Removed. + (preview-nonready-copy): New, simple as anything. + (preview-replace-active-icon): New, albeit apparently broken. + + (preview-make-clickable): Handle glyphs as well as strings. + (preview-toggle): Clickable glyphs are now always on the `end-glyph'. + +2002-04-09 David Kastrup + + * prv-emacs.el (preview-nonready-copy): replaces + preview-image-from-icon + (preview-replace-active-icon): replaces preview-replace-icon + (preview-make-clickable): make preview-string-from-image + unnecessary. + + * preview.el (preview-gs-place): Don't return image, just enter + it. + (preview-gs-transact): Call preview-replace-active-icon + specialized routine instead of the more general hack used before. + (preview-disabled-string): kill preview-string-from-image + (preview-inactive-string): same here. + (preview-eps-place): change in place semantics as above. + (preview-active-string): Don't receive image argument. + (preview-place-preview): New place semantics. + + * doc/problems.texi (x-symbol interoperation): Bump recommended + version to 4.2.2. + (Middle-clicks paste instead of toggling): Mention fixes present + in Emacs-21.2. + (Middle-clicks paste instead of toggling): Mention isearch. + +2002-04-09 Jan-Ake Larsson + + * preview-latex.spec: Install icons + + * doc/preview-latex.texi: Put Nick in authors, slight other changes + + * doc/problems.texi: Added entry on fast conversion and bounding boxes + + * doc/todo.texi: Added manual stuff + +2002-04-08 David Kastrup + + * doc/todo.texi: New suggestion for manual. + + * doc/readme.texi (Getting started): Adapt text to new icons. + + * doc/preview-latex.texi (The Emacs interface): Add documentation + about the scaling variables/issues from preview-latex. + +2002-04-07 David Kastrup + + * preview.el (preview-parse-messages): Error message cosmetics + and a judicious save-excursion for fast hooks. + + * prv-emacs.el (preview-nonready-icon): Use new icons. + (preview-icon): Same here. + +2002-04-07 Nix + + * prv-install.el (preview-make-package-xemacs): + Revert last change; package version numbers must be integral. + Ensure that we get a valid integer even if `preview-version' + contains multiple periods. + +2002-04-07 David Kastrup + + * images: Icons, several revisions. + +2002-04-06 Nix + + * prv-install.el (preview-make-package-xemacs): + Prepend "0." to XEmacs package version numbers + for CVS versions of preview.el. + + * prv-xemacs.el (preview-icon,preview-nonready-icon): + Use new icon images. + + * Makefile.in (ICONFORM,ICON_XPM_SOURCES): New + variables, for icon installation. + (ICON_XBM_SOURCES,ICON_SOURCES,icondir): Likewise. + (ELCC): Include the ICONFORM. + + (install-icons): New, install the icons. + + (MKINSTALLDIRS): New (for later, when objdir!=srcdir support is added). + (install): Use it. + (install-el): Likewise. + (install-texmf): Likewise. + (install-texmf-doc): Likewise. + + * configure.in (icondir): + Set for GNU Emacs too (but blank), and substitute it. + (ICONFORM): New variable, comamnd-line switch to pass to (X)Emacs + to find the images at build time (if needed). Substitute it. + + * mkinstalldirs: New file, from automake-1.6. + +2002-04-06 Nix + + * doc/todo.texi: Update XEmacs status. + + * configure.in: Substitute the packagedir. + + * Makefile.in (packagedir): New variable, used by... + (install-el): ... this new package-installation handling. + + * prv-install.el: New file, containing... + (preview-make-package): New function. + (preview-make-package-xemacs): New function, derived from + emacs-w3m. + + * aclocal.m4 (AC_EXAMINE_PACKAGEDIR): Lowercasify PACKAGEDIR. + (AC_PATH_PACKAGEDIR): Likewise. + +2002-04-06 Alan Shutko + + * configure.in: Start adding XEmacs-specific hooks. Right now, + lispdir should be correctly set up, I think. icondir is sitting + there for when we add icons. + + * aclocal.m4 (AC_PATH_PACKAGEDIR,AC_EXAMINE_PACKAGEDIR): New + functions for XEmacs installation, borrowed from from emacs-w3m, + credit to Katsumi Yamaoka . + +2002-04-06 Jan-Ake Larsson + + * autogen.sh, doc/Makefile.in, doc/preview-latex.texi: + Include todo.texi + + * doc/todo.texi: Moved from TODO + + * TODO: Moved to todo.texi + +2002-04-05 David Kastrup + + * preview.el (preview-parse-messages): Another addition to the + fast location hook semantics. + (preview-parse-messages): one last change for Christoph. + + * prv-emacs.el (preview-add-urgentization): Cosmetic change. + + * Additional frobbing of urgentization. + +2002-04-05 Nix + + * prv-xemacs.el (preview-add-urgentization): Use + `set-extent-initial-redisplay-function' to force immediate + redisplay if already on-screen. + (preview-remove-urgentization): Likewise. + +2002-04-05 David Kastrup + + * prv-xemacs.el (preview-remove-urgentization): proper return + value. + (preview-add-urgentization): Make entry in + initial-redisplay-function easier to reextract for + preview-remove-urgentization. + + * TODO: small changes. + +2002-04-04 Nix + + * preview.el (preview-parse-messages): + Cater for XEmacs shy grouping bug (shy grouping + very nearly doesn't work in XEmacs-21.4...) + + * prv-xemacs.el (match-string-no-properties): + New, same as `match-string'. + (set-buffer-multibyte): Degenerate implementation. + + (face-attribute): Throw an error of the right error class. + (make-temp-file): Likewise. + + (preview-add-urgentization): Revise signature, as in prv-emacs. + (preview-with-LaTeX-menus): Do not copy useless menus around. + + (preview-string-from-image): Make obvious that this generates any + kind of glyph, not just begin-glyphs. + (preview-ps-image): Revise signature (but implementation is still + stubbed). + (preview-toggle): Revise signature slightly. Flip between begin + and end-glyphs to partially cater for XEmacs redisplay bug. + +2002-04-04 David Kastrup + + * preview.el (preview-gs-dvips-process-setup): Correct deletion + of dvi file. + (preview-dvips-abort): don't unnecessarily clean subdirs. + (preview-gs-dvips-sentinel): get the delete semantics right. + (preview-gs-close): same here. + (preview-delete): after deleting files, set files in overlay to + nil since in connection with urgentization we can get multiple + deletions. + (preview-parse-messages): initialize lfile to "", so that line + number caching does not fail when the filename is "nil". + (preview-parse-messages): AAAAAARGGG!!!. Fix the typo that + caused O(n^2) parsing time. + +2002-04-03 David Kastrup + + * preview.el (preview-gs-close): move. + (preview-gs-dvips-process-setup): New function for setting up + process just at the time of use. + (preview-dvips-abort): New function. + (preview-gs-dvips-sentinel): Overhaul. + (preview-gs-close): Overhaul in order to do the right thing + regardless of whether Dvips has finished or not. + (preview-eps-open): Some initial changes. 'postscript image + device likely to be broken by us (but it is broken in Emacs, + anyway). + (preview-parse-messages): Take `open-closure' as argument. + (preview-parse-messages): different hook semantics for fast + hooks. We are still in negotiations over this... + (preview-parse-messages): change parsestate to list of vectors. + +2002-04-03 Jan-Ake Larsson + + * doc/preview-latex.texi: documented showlabels + + * doc/install.texi, doc/readme.texi: Slight edits + + * doc/problems.texi: Document x-symbol.patch, slight other edits + + * patches/x-symbol.patch: Initial version + + * preview-latex.spec: Use texmfdir, slight other edits + +2002-04-03 Jan-Ake Larsson + + * preview-latex.spec: Use texmfdir, slight other edits + +2002-04-02 Jan-Ake Larsson + + * aclocal.m4: escaped usage of $texmfdir + +2002-04-01 Jan-Ake Larsson + + * Makefile.in: added texmf and elisp targets, also targets for + $TEXMFGEN + + * preview-latex.spec: Initial stab at triple-rpm spec + + * doc/Makefile.in: *.dvi and *.info cleaned again + + * preview-latex.spec: Typo corrected + +2002-04-01 David Kastrup + + * preview.el (LaTeX-preview-setup): Remove our own + TeX-translation-hook that did not really work (supposed to remove + Preview error messages from preview runs, but for document + problems you'd rather use the real run, anyhow). + (preview-parse-messages): remember directory when switching + buffers. Implement fast translation hooks. A pity nobody uses + them yet. + (TeX-inline-preview): Use TeX-run-command instead of + TeX-run-format: we miss out on the progress info in the mode + line, but it slowed down the filter routine. + + * preview.dtx (subsection{The \texttt{auctex} option}): Make the + error messages shorter to cut down on I/O time. + +2002-03-31 David Kastrup + + * preview.el (preview): add cross links. + + * Makefile.in: Rerun LaTeX to get references right. + + * preview.dtx (subsection{The \texttt{auctex} option}): Disable + \thanks and \and. + + * preview.el (preview-default-option-list): Update possibilities + and docs. + (preview-parse-messages): Don't do files not known to be + human-generated. + (preview-gs-queue-empty): New cleanout function. We use this + instead of just clearing preview-gs-queue in order to avoid + losing pointers to deletable temporary files. + (preview-gs-sentinel): Use it. + (preview-gs-close): Same here. + (preview-gs-open): And here. Use unwind-protect in order to + ascertain we process the queue. + (preview-prepare-fast-conversion): Accept non-dereferenced big ps + file. + (preview-gs-dvips-sentinel): better behavior when processes get + started and finished in unexpected orders. + +2002-03-31 Jan-Ake Larsson + + * preview-latex.spec: + Changed to include everything in /texmf/tex/latex/preview, + fix for %config files + +2002-03-30 David Kastrup + + * doc/preview-dtxdoc.pl, preview.dtx (section{Various driver + files}): Add \previewlatex macro for consistent translation. + + * doc/preview-dtxdoc.pl: add \% and ~ translations. + + * preview.dtx (section{Package options}): document new option + files. + + * doc/problems.texi (x-symbol interoperation): Mention speed + problem. + + * preview.dtx: loads of smaller and larger changes, new options + files. + + * preview.el (preview-back-command): typo. + + * autogen.sh (makeinfo): move into doc directory for + autogenerating files so that include files are found. + +2002-03-30 Jan-Ake Larsson + + * doc/Makefile.in: New dependency on macros.texi + + * doc/install.texi, doc/readme.texi, doc/copying.texi: + Macros in separate file + + * doc/problems.texi: Typo corrected, macros in separate file + + * doc/preview-dtxdoc.pl: Changed slightly wrt \cmd translation + + * doc/macros.texi: Macros for the texinfo generation + + * doc/preview-latex.texi: Typos corrected, macros in separate file. + +2002-03-30 Alan Shutko + + * Makefile.in (TEXMFGEN): Use new variable. + + * configure.in (TEXMFGEN): New variable with the tex stuff + generated which should be installed. + +2002-03-29 David Kastrup + + * preview.el (preview-back-command): Change call semantics to + something easier to understand and try out. + (preview-parse-messages): Remove unused variable `next-point'. + (preview-parse-messages): Correct thinko and use new + preview-back-command semantics. + +2002-03-28 David Kastrup + + * preview.dtx: move \pr@ship@start + + * preview-latex.spec (%configure): Use --with-texmf-dir. + +2002-03-27 Alan Shutko + + * doc/install.texi (Configure): Reflect changes in configure + options. + + * configure.in (--with-texmf): Changed to --with-texmf-dir per bug + 480837. + (--with-preview-dir): Changed to --with-tex-dir per bug 480837. + (--with-doc-dir): New. + +2002-03-28 David Kastrup + + * circ.tex: Correct labels. + +2002-03-27 David Kastrup + + * preview.dtx: be careful in unboxing so as not to remove + possibly shifted hboxes (bug reported by Jan-Ã…ke) protected by an + otherwise inexplicable penalty. + + * preview.el: Complete overhaul of parsing to avoid (costly) + buffer switches. + (preview-gs-close): Transfer queue to + preview-gs-queue. + (preview-gs-open): Pass arglist to preview-parse-messages for + place functions. + (preview-eps-open): Same. + (preview-gs-place): Completely different args in order to avoid + buffer switching. Different return value. + (preview-inactive-string): Different semantics (were valid before + by accident, so no change in callers necessary). + (preview-eps-place): Rearranged to avoid buffer switching. + (preview-make-filename): require tempdir. + (preview-delete-file): changed API to avoid buffer switching. + (preview-place-preview): Same. + (preview-parse-messages): New args passed into place routines. + Completely rearranged and merged preview-analyze-error into it. + (preview-start-dvips): Pass tempdir to preview-make-filename + + * prv-emacs.el (preview-add-urgentization): Changed API, but it + turns out this gets called just like it did before. + +2002-03-27 Jan-Ake Larsson + + * doc/.cvsignore: Ignore preview-dtxdoc.texi + + * doc/Makefile.in: Autogeneration of ../preview.dtx -> + preview-dtxdoc.texi + + * doc/preview-dtxdoc.pl: Initial version + + * doc/preview-latex.texi: Moved menu to problems.texi, documented + preview-auto-reveal and preview-inner-environments, include + autogenerated preview-dtxdoc.texi + + * doc/problems.texi: Moved menu here from preview-latex.texi + + * doc/readme.texi: Removed out-commented parts + +2002-03-26 Jan-Ake Larsson + + * preview.dtx: Minimal change to simplify autogen of texinfo manuals + +2002-03-26 Alan Shutko + + * doc/.cvsignore: Add preview-latex.tmp. + + * .cvsignore: Add latex.out. + + * autogen.sh: Modify ed script to account for difference between + AC_INIT in 2.13 and 2.52 + + + * doc/Makefile.in (INSTALLINFO): Make it use configure value. + + * configure.in: Check for path of install-info. Check whether + Emacs supports images. + +2002-03-26 David Kastrup + + * TODO (Integrate into RefTeX): bemoan another shortcoming, or + rather feature wish. + +2002-03-25 David Kastrup + + * preview.el (preview-gs-dvips-sentinel): Treat absence of + previews in buffer more graciously. + (preview-parse-messages): require space before !name and !offset + tags from AUC TeX. + + * prv-emacs.el (preview-auto-reveal, replace-highlight) + (preview-query-replace-reveal): moved. + + * preview.dtx (subsection{The internals}): Remove spurious space + via \vsplit. + (subsection{The internals}): Set \deadcycles to avoid TeX + interfering with our \output fake. + (subsection{Selection options}): Implement hooking into equations + differently. Somewhat ugly hack to circumvent amslatex/3425 bug. + (subsection{Preview attaching commands}): keep \showboxbreadth + and \showboxdepth operative, though set to minimal values. + (\cmd{\everypar}): Cater for ugly LaTeX commands that hide things + like the startup code of \paragraph in \everypar. + + * doc/problems.texi (x-symbol interoperation): Update Web address. + + * doc/readme.texi (Contacts): Remove personal Email address from + README. + +2002-03-24 Jan-Ake Larsson + + * doc/install.texi: Incorporated "Prerequisites" from readme.texi + + * doc/preview-latex.texi: Moved "Getting started" to readme.texi, + also index changes + + * doc/readme.texi: Moved "Getting started" from + preview-latex.texi, moved "Prerequisites" to install.texi, Placed + appropriate pointers and crossreferences in README and other + manuals + +2002-03-24 David Kastrup + + * RELEASE: Info about RedHat 7.3 beta. + + * preview.dtx (subsection{The internals}): Spacing improvements. + + * prv-emacs.el (replace-highlight): advise so that query-replace + works as reasonable. + (preview-query-replace-reveal): Option to make this customizable. + +2002-03-23 David Kastrup + + * prv-emacs.el (preview-toggle): get rid of + isearch-open-invisible hooks and stuff; using the invisible + property was confusing to the display engine, anyhow, and was + about to be broken by changes in Emacs. The current behavior for + isearch is nicer than the default was before, so what. + (preview-auto-reveal): New customizable option. + + * doc/problems.texi (Emacs problems): Windows availability for CVS + Emacs. + + * doc/readme.texi: Windows availability for CVS Emacs. + + * preview.el (preview-parse-messages): Comment used regexps. + + * preview.dtx (subsection{The internals}): Removed an \everypar + that caused bad spacing. No idea why. Redundant anyway. + (subsection{Selection options}): changed displaymath option to + put in the \everydisplay tokens at a theoretically more correct + place. Explicitly hooked equation and equation*: AMSLaTeX calls + them too late to have them behave well. + (subsection{Preview attaching commands}): Corrected + \PreviewEnvironment which must have led to error messages for + months. Seems nobody cares. + (subsection{Selection options}): Still more displaymath cosmetics. + +2002-03-22 David Kastrup + + * preview.dtx (section{The Implementation}): fix typo in dvips + option. Ugh. + + * preview.el (preview-bb-filesize): move to preview-gs group. + (LaTeX-preview-setup): add bug reporter. + (preview-report-bug): update reported options. + +2002-03-22 Jan-Ake Larsson + + * doc/preview-latex.texi (preview-environment): + doc rewrite. Slight other layout changes + +2002-03-22 David Kastrup + + * doc/problems.texi: Edits. + + * doc/install.texi: Lots of editing + + * doc/readme.texi: same here + + * doc/preview-latex.texi: same here + + * RELEASE: Changes for 0.7. + + * TODO: Throw out stuff already implemented. + + * preview.el (preview-prefer-TeX-bb): Doc cosmetic. + (preview-fast-conversion): Now defaults to on. + (preview-fast-dvips-command): remove -tletter option, we do this + better now. + (preview-LaTeX-command): Pass new dvips option to preview. + + * preview.dtx (section{Package options}) + (section{The Implementation}): Add dvips option for overriding + page dimensions/landscape and such stuff. + + * preview.el (preview-TeX-bb): comment sanitized. + (preview-gs-init-string, preview-ps-file, preview-gs-dsc): new + variables. + (preview-fast-conversion): Set this customizable variable for an + impressive speedup, particularly of the DviPS pass. + (preview-dvips-command): moved. + (preview-fast-dvips-command): New command for fast conversion. + (preview-gs-restart): send initialization string to gs + (preview-gs-open): initialize preview-gs-init-string + (preview-gs-open): pass preview-fast-conversion into + preview-start-dvips + (preview-dsc-parse, preview-gs-dsc-cvx) + (preview-prepare-fast-conversion): New functions for using DSC + comments. + (preview-gs-dvips-sentinel): read DSC in. + (preview-gs-place): remember snippet in 'queued property. + (preview-mouse-open-eps): allow opening at position. + (preview-gs-flag-error): take preview-gs-init-string into + account, generate other message for fast PS conversion. + (preview-gs-transact): allow non-empty stack in prompt, use + preview-latex-do command in GhostScript. + (preview-place-preview): comment correction, no eps file if ps + generated. + (preview-analyze-error): doc change. + (preview-start-dvips): allow for fast version. + + * prv-emacs.el (preview-ps-image): Allow optional bounding box + from TeX. + +2002-03-21 David Kastrup + + * preview.dtx (subsection{Preview attaching commands}): Backward + compatible message with TeX bounding box. + + * preview.el (preview-parse-messages): Backward compatible + message parsing. + + * preview.dtx (subsection{The internals}, subsection{Preview + attaching commands}): provide additional bounding box info. + (subsection{The internals}): move location of \pr@shipend to + before shipping out \pr@box so that we may measure/change it. + (subsection{Selection options}): slightly changed call of old + \everydisplay hook. + (subsection{Preview attaching commands}): disable more warnings + in order to decrease possible parse errors of preview.el. + + * preview.el (preview-prefer-TeX-bb): New option to fish bounding + box from TeX output. Not enabled by default until we get to fix + a particular problem occuring with split environment nested in + equation. + (preview-TeX-bb-border): Additional slop around bounding box. + (preview-TeX-bb): New function to calculate PostScript bb from + TeX box dimensions in sp. + (preview-gs-place, preview-eps-place, preview-place-preview): + accept additional box argument. + (preview-gs-transact): consider more box sources. + (preview-delete-file, preview-make-filename): new semantics for + reference-counting files. + (preview-parse-messages, preview-analyze-error): Parse additional + bounding box information from AUC TeX run. + +2002-03-20 Nix + + * prv-xemacs.el (preview-with-LaTeX-menus): Handle the case + where the current menubar is not the AuCTeX one. Remove + dead code. + +2002-03-19 Nix + + * preview.dtx: Doc fix. + + * preview.el: Require `reporter'. + * preview.el (preview-image-creators): Doc extension. + * preview.el (preview-eps-place): Doc fix. + * preview.el (preview-analyze-error): Likewise. + * preview.el (preview-gs): Grammar fix. + * preview.el (preview-face): Likewise. + * preview.el (preview-temp-dirs): Layout fix. + * preview.el (preview-environment): Grammar and layout fix. + + * preview.el (preview-mouse-open-eps): Cater for XEmacs's + more limited PostScript mode. + * preview.el (LaTeX-preview-setup): Use `preview-mark-active' to + cater for Emacs/XEmacs active-region detection differences. + + * prv-emacs.el (preview-nonready-icon): Doc fix. + * prv-emacs.el (preview-image-from-icon): Likewise. + * prv-emacs.el (preview-mark-active): New. + + * prv-xemacs.el (preview-gs-color-value): New, from prv-emacs.el. + +2002-03-19 Nix + + * prv-xemacs.el: Require overlay always, not just at compile time. + + (preview-compatibility-macros): Define only when compiling. + (preview-defmacro): Likewise. Teach Emacs to indent this form properly. + + Code to compensate for features missing in XEmacs: + + (face-attribute): Teach how to fake :foreground and :background. + + (find-image): Remove. + (defimage): Likewise. There's no need for this call here; even if there + were, the image-type analysis should take place at instantiation + time, not definition time. + + (easy-menu-create-menu): New, after the Emacs function. + (next-single-char-property-change): Likewise. + (previous-single-char-property-change): Likewise. + (with-temp-message): Likewise. + (add-to-list): Likewise, redefining the two-argument XEmacs version. + + (copy-glyph): New, uses... + (destructive-replace-glyph): ... this. New (and ugly). Uses... + (map-plist): ... this. New, `map' for property lists. + + Code derived from prv-emacs.el: + + (preview-mark-active): New, handle the special XEmacs `mark-is-nil' case. + (preview-create-icon): New. + (preview-icon): XEmacsize from commented-out code; reindent. + (preview-nonready-icon): Likewise. + + (preview-add-urgentization): Add docstring. + (preview-add-urgentization): Likewise. + + (preview-image-from-icon): New. + (preview-string-from-image): Likewise. + (preview-make-clickable): Likewise. + (preview-ps-image): Likewise. + (preview-toggle): Likewise. + (preview-inherited-face-attribute): Likewise. + (preview-with-LaTeX-menus): Likewise. + (preview-gs-get-colors): Likewise. + + (provide): Add. + +2002-03-16 David Kastrup + + * doc/install.texi: Work in progress. + + * doc/readme.texi: Work in progress. + + * TODO: update wish list. This is getting longer by the minute. + + * doc/Makefile.in (INSTALL, README, PROBLEMS): add -D rawfile + option for raw text files. + + * doc/readme.texi: documentation restructuring for making README + good on preinstalled systems. + + * autogen.sh (makeinfo): add -D rawfile option for raw text files + +2002-03-15 David Kastrup + + * preview.dtx (subsection{Preview attaching commands}): disable + \showmaxdepth and \showmaxbreadth. + + * preview.el (preview-place-preview): (widen) paranoia. + (preview-back-command): same here. + (LaTeX-preview-setup): better safe than sorry (users might call + this wrong), so rerequire 'latex + (preview-parse-messages): New regexp parser. Nick, if the shy + groups \(?: ...\) worry XEmacs, make them non-shy and adjust the + match-... thingies appropriately. + (preview-analyze-error): and another save-restriction... + +2002-03-14 David Kastrup + + * preview.el (preview-parse-messages): Obliterate preview-snippet + and preview-snippet-start for general parsestate. + (preview-analyze-error): Use parsestate and cache line number + info from last call. This plugs a *big* performance hog + (goto-line). Made buffer parsing here about 8 times faster. + +2002-03-13 David Kastrup + + * preview.dtx (subsection{The internals}): Use + \@arrayparboxrestore for better reset of spacing. + + * preview.el (require): avoid compiler warning. + (preview-goto-info-page): new function + (LaTeX-preview-setup): add preview-goto-info-page binding + (info): add preview prefix for C-h F lookup + (LaTeX-preview-setup): add documentation and customization menu. + +2002-03-11 David Kastrup + + * Release 0.6.1 + +2002-03-10 David Kastrup + + * Makefile.in: Add preview.ins target. + + * doc/install.texi: Brown paper bag. + + * autogen.sh: don't prebuild doc. We offer a separate download + archive for people without texinfo. + + * preview-latex.spec (BuildRequires): changes for 0.6.1. + + * doc/install.texi: Some changes for 0.6.1. + + * RELEASE: Some adjustments for 0.6.1. + +2002-03-09 David Kastrup + + * preview.el (LaTeX-preview-setup): Use preview-with-LaTeX-menus. + + * prv-emacs.el (preview-with-LaTeX-menus): New function + temporarily making menus active. This is quite different for + XEmacs. + +2002-03-09 Nix + + * doc/preview-latex.texi: Minor typo fixes. + * doc/problems.texi: Likewise. + +2002-03-09 David Kastrup + + * preview.el (LaTeX-preview-setup): Deal with the easy-menu + sickness so that XEmacs might work. + (LaTeX-preview-setup): (require 'latex) unnecessary, we get + called only if the feature has been loaded already. + +2002-03-08 Alan Shutko + + * configure.in: When checking for texhash, use /bin/true if we + can't find it. + +2002-03-08 David Kastrup + + * doc/problems.texi (Emacs problems), doc/readme.texi: some + brighter outlook with regard to XEmacs port. + + * preview.el (preview-gs-transact): Throw in the towel. We don't + use .runandhide (and .setsafe) unless we are dealing with gs with + a version of at least 7.00. gs-6.53 seems to provide + .runandhide, while making it useless because + save .setsafe restore + does not return to unsafer mode. + +2002-03-05 David Kastrup + + * RELEASE: Few changes and explanations for 0.6.1. + + * doc/problems.texi (Font problems with Dvips): Changed pounds + sign. Not much of an improvement (we get the wrong character), + but 7bit safe. If Jan-Ã…ke finds this as desirable as to have his + own name mangled, we should follow at least make it pay off. + + * doc/preview-latex.texi (On EPS previews): png16m is default + instead of png256. + + * doc/install.texi: Document 8bit problems. + + * README.CVS: updated. + + * configure.in: update to autoconf 2.52. + + * autogen.sh: Wheedle MY_LANG and MY_LC_CTYPE in if autoconf + failed to do so. + + * preview.el: copyright extended. Basically overhaul of + persistent data, leads to: + (preview-disable): clear timestamp. + (preview-delete): Don't fiddle with ovr after it is already + deleted. + (preview-clearout): additional argument timestamp + (preview-kill-buffer-cleanup): New function for killing buffers: + properly time-stamped previews will not get their files deleted. + (kill-buffer-hook): use it + (before-revert-hook): use it + (desktop-buffer-preview-misc-data): changed dissect call, work + only if buffer unmodified. + (preview-dissect): work with timestamp, don't destroy preview. + (preview-buffer-restore): new function, works from saved data. + (desktop-buffer-preview): use it. + (preview-cleanout-tempfiles): Do things differently. + (LaTeX-preview-setup): Call preview-buffer-restore if we + accidently got here before setting up the desktop hooks. + +2002-03-04 David Kastrup + + * doc/preview-latex.texi (Package options): doc changes, psfixbb + documented. + + * doc/problems.texi: doc changes. + + * doc/readme.texi: doc changes (@AUCTeX). + + * doc/install.texi: doc changes. + + * doc/preview-latex.texi: some documentation amendments. + + * preview.el (preview-dissect): improve false desktop cleanups. + (desktop-buffer-preview): handle file load oneself. + (preview-place-preview): subtle bug leading to empty previews + accumulating in secondary buffers. + (preview-reinstate-preview): don't reinstate previews where the + files have been deleted. + (preview-TeX-inline-sentinel): Make sure "Compilation" flag gets + cleared even on errors. + (preview-environment): Doc change. + (desktop-buffer-preview-misc-data, preview-dissect) + (desktop-buffer-preview, preview-cleanout-tempfiles) + (preview-active-string, preview-reinstate-preview) + (preview-default-preamble): Doc corrections/additions. + +2002-03-02 David Kastrup + + * preview.el (preview-gs-transact): Don't use .setsafe unless + .runandhide is defined. There might be no way back to unsafer + mode otherwise. + (preview-create-subdirectory): Be more forgiving about users + messing up the directory organization of preview-latex, by + manually deleting stuff under its control. + +2002-03-01 David Kastrup + + * preview.el (preview-default-option-list): add new options. + + * preview.dtx: add new package option psfixbb for getting better + bounding boxes in the presence of PStricks and the like. + +2002-02-28 David Kastrup + + * preview.el (preview-inner-environments): New variable for + avoiding ugly environments. + (preview-environment): Accept a count, and avoid bad environments. + (preview-section): Doc string fixed. + +2002-02-26 David Kastrup + + * preview.el (require): suppress desktop warnings + (preview-clearout): restrict to narrowed area. + (desktop-buffer-preview-misc-data): widen. + (preview-dissect): don't use subseq from cl-extra, rather butlast + from subr. + (preview-cleanout-tempfiles): new routine used in kill-emacs-hook + (preview-reinstate-preview): setup kill-emacs-hook late so that + preview-cleanout gets called after desktop saving + (preview-create-subdirectory): same here + +2002-02-25 David Kastrup + + * preview.el (TeX-active-tempdir): Changed the type. + (preview-gs-dvips-sentinel): adjusted for that. + (preview-gs-place): queued is now missing image + (preview-gs-transact): that is in overlay property preview-image + instead. + (preview-gs-transact): adapt to new queued + (desktop-buffer-preview-misc-data): save overlays when leaving + desktop. + (preview-dissect): gets details from overlay. + (desktop-buffer-preview): restore overlays on reentry + (kill-emacs-hook): must be run after desktop hook. + (preview-active-string): gets passed image instead of snippet. + (preview-make-filename): New TeX-active-tempdir type + (preview-delete-file): same here + (preview-place-preview): adapt to new preview-active-string + (preview-reinstate-preview): new function for restoring a preview + (preview-create-subdirectory): new TeX-active-tempdir type + +2002-02-24 Jan-Ake Larsson + + * doc/preview-latex.texi: Incorporated docs from preview.dtx, + minor other changes + +2002-02-20 Jan-Ake Larsson + + * doc/preview-latex.texi: Removed isolatin1 style include and chars + +2002-02-20 Alan Shutko + + * configure.in: Patch from Stephen Gildea + correcting the disable-8bit-test code. + +2002-02-19 Jan-Ake Larsson + + * Created 0.6b, which includes .info and .dvi manuals + + * doc/Makefile.in: Removed .info and .dvi from 'clean' target + +2002-02-19 David Kastrup + + * Release 0.6 + +2002-02-19 Jan-Ake Larsson + + * Makefile.in: + Changed target 'doc' to 'docs'. 'doc' matched the (unchanged) + directory 'doc'. + + * preview-latex.el: Startup file for site-start.d + + * preview-latex.spec: + Added site-start.d support and prauctex.cfg config file + +2002-02-19 David Kastrup + + * preview.dtx: Oops, prauctex.cfg inadvertantly overrode a + possible "sections" option. + (subsection{The internals}): The fake \shipout had a syntax + error. Why don't people report bugs? + +2002-02-18 Alan Shutko + + * Makefile.in (all): Split out docs target so install-hint is + still last. Ditto install. + +2002-02-18 David Kastrup + + * TODO: Add a few suggestions and throw out what has already been + accomplished. + + * README-preview: Slight edits. + + * README.CVS: mention PROBLEMS as autogenerated file, add warning + about autoconf earlier than 2.13. + + * RELEASE: explain about configuration files. + + * doc/preview-latex.texi: dircategory Emacs + + * doc/Makefile.in (install): correct install target for + install-info. + + * doc/preview-latex.texi (Misplaced previews): explain about + prauctex.cfg. + + * doc/install.texi: Write @LaTeX instead of La@TeX + + * preview.el (preview-default-preamble): Shorten stuff out that + sits now in prauctex.cfg. + + * Makefile.in (all): cater for prauctex.cfg. Same for other + targets. + + * preview.dtx (section{Introduction}): Replaced TeX by \TeX and + similar cosmetics. + (section{Package options}): Added noconfig option, explained + prdefault.cfg (not yet there) and prauctex.cfg. + (subsection{Preview attaching commands}): Predefine prauctex.cfg. + (section{Various drivers}): make installer extract it. + +2002-02-18 Jan-Ake Larsson + + * problems.texi: Simple layout fix + + * preview-latex.spec: For 0.6 proper + + * RELEASE: Mention AUC TeX RPM on project site + + * Makefile.in: Fixed 'make clean' in doc subdir, install info + files too + + * doc/Makefile.in: Typo corrected, fixed INSTALL_DATA + +2002-02-17 Alan Shutko + + * doc/Makefile.in: New file, replacing the former ad-hoc build. + + * doc/install.texi: Mention --disable-8bit-test. + + * doc/problems.texi (LaTeX international characters): Mention + --disable-8bit-test. + + * aclocal.m4 (AC_CHECK_AUCTEX): Correct --with-auctex to + --with-tex-site. + + * configure.in: 8bit test enhancements. Allow disabling test with + --disable-8bit-test. + Check for makeinfo. + Generate doc/Makefile. + +2002-02-17 David Kastrup + + * doc/install.texi: Mention problems with 8-bit-uncleanliness. + We need an override still. + + * doc/problems.texi (LaTeX international characters): Mention + that configure might barf. + +2002-02-15 Jan-Ake Larsson + + * RELEASE: RPM info added, "for RH 7.x" + +2002-02-14 Jan-Ake Larsson + + * preview-latex.spec: + For 0.6. Included code to build from CVS and temporary fix to allow + build before autoconf includes docs, included patches subdir in %doc + + * doc/Makefile: Typo corrected + +2002-02-11 Jan-Ake Larsson + + * doc/readme.texi, doc/install.texi, doc/problems.texi, + doc/copying.texi: Include @macro defs for text-file generation + + * doc/problems.texi: Minor changes + + * doc/readme.texi: Shortened + + * doc/Makefile: Added --no-validate on README + + * doc/install.texi: Layout changes, xref to PROBLEMS shortened + + * doc/problems.texi: + Layout changes, added text on bug reports and GS EPS handling + + * doc/preview-latex.texi: Layout changes, install-info fix, index + additions, fixed direntries for preview-latex + +2002-02-11 David Kastrup + + * doc/Makefile (install): install the renamed info files. + + * doc/preview-latex.texi: change output file name to + preview-latex.info in order to keep preview-latex as a directory + name for HTML output. + + * doc/Makefile (preview-latex/index.html): generate HTML with + makeinfo as texi2html does not grok @preview-latex. + + * doc/preview-latex.texi: Write Ã… instead of @AA (x-symbol sneaked + that in). And revert again: does not print. + + * doc/install.texi: Use @previewlatex. + + * doc/problems.texi: Use @previewlatex and @uref. + + * doc/readme.texi: Use @previewlatex. + + * doc/copying.texi: Use @previewlatex. + + * doc/preview-latex.texi (top): Introduce @previewlatex macro and + use it throughout. Some more changes. + +2002-02-09 David Kastrup + + * INSTALL README PROBLEMS: removed because autogenerated + * README.CVS and autogen.sh added. + + * doc/problems.texi: Initial rendition of PROBLEMS file in + texindex form. + + * doc/copying.texi: Change Preview La@TeX{} to preview-latex + + * preview.el (preview-image-creators): Change png default device + to png16m due to popular request. + + * doc/readme.texi: overhaul for 0.6. + + * doc/preview-latex.texi: fat overhaul. + + * preview.dtx (section{The Implementation}): Simplify \pr@advise, + it broke the delayed option. + (subsection{Preview attaching commands}): Same. + +2002-02-08 David Kastrup + + * preview.el (preview-gs-transact): Sigh. Some refinements to the + SAFER stuff: restart gs on errors that seem to stop in SAFER mode. + (preview-gs-transact): And another few changes, there are gs + versions that have .setsafer but not .runandhide. Rats. + +2002-02-07 David Kastrup + + * preview.dtx (subsection{Preview attaching commands}): Use + \nofiles instead of \@fileswfalse in order to suppress erroneous + log file output. + + * preview.el (preview-gs-options): Remove -DSAFER option that + causes OutputFile selection of GhostScript to fail (starting with + 7.04). This cannot be the final fix. + (preview-gs-options): Ok, so it isn't. Restored -dSAFER and added + -dDELAYSAFER (which should be ignored by earlier GhostScript + versions). Also: + (preview-gs-transact): call .setsafe procedure if defined in + systemdict, so we don't get unsafer in GhostScript 7.04. + +2002-02-06 Jan-Ake Larsson + + * readme.texi: Index and layout changes + +2002-02-05 Jan-Ake Larsson + + * copying.texi: Less zealous index + + * readme.texi: Typo corrected + + * preview-latex.texi: Document preview-default-preamble, bumped + release number, typos corrected. + + * doc/Makefile: Simpler index generation + +2002-02-04 Jan-Ake Larsson + + * preview-latex.texi: Simplify to only one section for keys and + lisp function sections. Also only one Index. + +2002-02-01 David Kastrup + + * PROBLEMS: Tell about x-symbol 4.0h/beta working successfully + with preview-latex. + +2002-02-01 Alan Shutko + + * configure.in: Corrected error message for 8-bit test. + +2002-01-30 Alan Shutko + + * configure.in: Added diversion at the beginning to allow us to + save LANG and LC_CTYPE for the 8-bit test. Also added test to see + if LaTeX is 8-bt clean. + +2002-01-24 Jan-Ake Larsson + + * preview-latex.spec: Initial version. On the 0.5.8.2 release. + +2002-01-22 David Kastrup + + * preview.el (LaTeX-preview-setup): quote created directory name + in %m fields. + +2002-01-18 David Kastrup + + * preview.dtx (subsection{The internals}): Try catering for output + routine changes. + +2002-01-18 Jan-Ake Larsson + + * preview.el (preview-make-preamble): Simplified the code by sorting + TeX-expand-list better. + +2002-01-18 David Kastrup + + * RELEASE: Document a few changes. + + * doc/preview-latex.texi: document preview-at-point + + * preview.el (preview-next-border): Doc change. + (preview-at-point): renamed from preview-dwim. + (LaTeX-preview-setup): use preview-at-point. + (LaTeX-preview-setup): menu change. + (preview-document-pt): Use TeX-style-list instead of + TeX-active-styles so that AucTeX may parse if not yet done. + (before-revert-hook): clearout previews on revert. + +2002-01-17 Jan-Ake Larsson + + * preview.el (preview-default-preamble): Added default preamble + for use when a document not configured for preview-latex is + previewed in AUC TeX. + + * preview-latex.texi (section Misplaced previews): Info on \emph + and \PreviewMacro*. + +2001-12-05 Jan-Ake Larsson + + * preview-latex.texi: Added new section: User-level lisp functions + + * install.texi: Layout improvements + + * doc/Makefile: Typo and dependencies corrected + +2001-12-04 Jan-Ake Larsson + + * doc/Makefile: Added index generation for DVI docs + +2001-12-03 Jan-Ake Larsson + + * preview-latex.texi: + Keymap documentation and general text on emacs interface added + + * readme.texi, install.texi: Layout changes + +2001-12-03 David Kastrup + + * preview.el (preview-clearout): add optional argument keep-dir. + (preview-place-preview): Don't clearout previews from current + run. This makes preview-latex keep multiple previews in command + arguments instead of just keeping the last such one. + +2001-11-30 David Kastrup + + * preview.dtx (section{Provided Commands}): Add descriptions of + new commands \PreviewMacro* and \PreviewEnvironment*. + (subsection{The internals}): New internal \pr@protect. + (subsection{Preview attaching commands}): Implement the new + `*'-forms. + (subsection{Preview attaching commands}): + Also treat \end{env} in \PreviewEnvironment*. + +2001-11-30 Jan-Ake Larsson + + * preview-latex.texi, install.texi: + Autoload the package rather than require it. + +2001-11-30 David Kastrup + + * prv-emacs.el (preview-register-change): widen before getting + substring in order to avoid error when narrowed. + (preview-check-changes): Same here. + (preview-handle-insert-in-front): Changed DOC string. + (preview-handle-insert-behind): same. + (preview-handle-modification): same. + +2001-11-29 Jan-Ã…ke Larsson + + * doc/preview-latex.texi: Created first draft + + * doc/readme.texi: Created first draft + + * doc/readme.texi: Created first draft + + * doc/copying.texi: Created + + * doc/Makefile: Created layout. Now for autoconf, Alan? + +2001-11-28 Alan Shutko + + * INSTALL (--with-tex-site): Rename --with-auctex. + + * aclocal.m4 (AC_CHECK_AUCTEX): Try to fix things so that it looks + for tex-site, only tex-site, and adds the location of tex-site + into the load-path. + (AC_CHECK_REQUIRE): New. + (AC_CHECK_AUCTEX): Change name of --with-auctex to --with-tex-site. + +2001-11-12 Alan Shutko + + * Makefile.in (lispdir): Remove /preview because @lispdir@ now + includes it. + + * aclocal.m4 (AC_PATH_LISPDIR): Modify it so it prints out + that lisp files are going in $lispdir/preview. + +2001-11-20 David Kastrup + + * README-preview: adjust instructions because preview.ins will be + available on CTAN already. + + * prv-emacs.el (preview-make-clickable): consult + `preview-button-1' and `preview-button-2' at run-time. + (preview-overlay): Need insert-behind-hooks too in case someone + uses `insert-before-markers' at end of previews. + (preview-change-list): New variable. + (preview-register-change): New function. + (preview-check-changes): New function. All of this stuff is to + make sure we open/disable overlays only if permanent changes occur + inside. + (preview-handle-insert-in-front): some changes for new behaviour. + (preview-handle-insert-behind): New function. + (preview-move-point): Call `preview-check-changes' after commands. + (preview-gs-color-value): checkdoc-compatible comment. + + * preview.el: Change installation comments + +2001-11-15 David Kastrup + + * preview.dtx (section{Provided Commands}): Correct documentation + names for \PreviewEnvironment and \PreviewSnarfEnvironment + + * prv-emacs.el (preview-inherited-face-attribute): Add document + string, simplify some tests. + + * preview.el: Add autoload magic comments. + (preview-compatibility-macros): avoid byte compiler warning. + +2001-11-13 David Kastrup + + * PROBLEMS: Add patch for mouse-drag.el + + * INSTALL: add autoload instructions for fastest Emacs startup. + +2001-11-12 David Kastrup + + * preview.el (preview-gs-restart): Use push. + (preview-clearout-buffer): New function. Use in kill-buffer-hook. + (kill-emacs-hook): add cleanout of temp directories when leaving + Emacs. + (preview-make-options): cosmetics + (LaTeX-preview-setup): add keybindings for clearing buffer + (preview-clean-subdir): cosmetic changes. + (preview-clean-topdir): new function. + (preview-create-subdirectory): use it. + (preview-report-bug): report preview-dvips-command. + +2001-11-11 David Kastrup + + * Release 0.5.8.2 + +2001-11-11 Alan Shutko + + * aclocal.m4 (AC_EMACS_CHECK_LIB_WITH_LIB): varient of + AC_EMACS_CHECK_LIB which first requires a prereq lib. + (AC_CHECK_AUCTEX): Use AC_EMACS_CHECK_LIB_WITH_LIB to prereq + tex-site. + + * Makefile.in (use-hint): Get line wrapping right. + + * configure.in (--with-texmf): Applied patch from Hans Fredrik + Nordhaug making --with-texmf obey TDS. + +2001-11-11 David Kastrup + + * prv-emacs.el (preview-transparent-border): Change definition to + numeric/nil, set default to 3pt. + (preview-create-icon): adapt heuristic-mask accordingly + (preview-ps-image): same here + (preview-gs-get-colors): use new definition of + preview-transparent-border, use PostScript code not subject to + anti-aliasing effects. + (preview-transparent-border): Change default to take into + account that we previously got only half of requested width. + (preview-gs-get-colors): generate only necessary tokens. Disable + stroke adjustment in order to get more even borders. + +2001-11-10 David Kastrup + + * preview.dtx (subsection{The internals}): Make reassignment of + \@tempboxa that lead to missing section headers local. + Interesting bug. + +2001-11-09 David Kastrup + + * RELEASE: initial stab at release notes. + + * preview.el (preview-back-command): Make token backer somewhat + more robust. + (preview-analyze-error): Don't bomb out if no token matches. + + * README-preview: first draft. + + * prv-emacs.el (preview-int-bb): moved from preview.el + + * preview.el (preview-preserve-indentation): New option, on per + default. Switch off for old behaviour. + (preview-extract-bb): heed preview-preserve-indentation by faking + the bounding box left. + (preview-int-bb): move to prv-emacs.el + + * preview.dtx (subsection{The internals}): Try killing off indents + in order to get good horizontal positioning of preview. + + * preview.el (preview-start-dvips): fix bug WRT free variable + `buffer'. + + * prv-emacs.el (preview-transparent-color): change default for a + new default transparency scheme. + (preview-get-heuristic-mask): bug fix for specified color + (preview-create-icon): adjust for new policy + (preview-ps-image): same here + (preview-transparent-border): new option + (preview-gs-get-colors): heed this + +2001-11-08 David Kastrup + + * PROBLEMS: Recommend customizing new variable + preview-dvips-command for DviPS problems. + Add sections about Windows and XEmacs. + Add section about LaTeX/language environment problem. + Add section about flyspell.el including patch. + +2001-11-07 David Kastrup + + * preview.el (preview-gs): and other groups: set :prefix in + defgroup + (preview-get-geometry): Oops, make it work if + preview-scale-function is a constant instead of a function. + +2001-11-06 Alan Shutko + + * aclocal.m4 (AC_CHECK_AUCTEX): Revert the previous change, since + it was horribly broken, and fix --with-auctex, so that it doesn't + do the check if --with-auctex was specified. + +2001-11-06 Alan Shutko + + * aclocal.m4 (AC_CHECK_AUCTEX): Try looking for tex-site instead + of tex-buf... this may help since we're sure it's in load-path, + but I'm afraid that the contents of tex-site may not be standard + enough across installations. + + +2001-11-06 David Kastrup + + * preview.el (preview-image-creators): Add preview-eps-open + function for calling dvips conversion. + (preview-eps-open): Resume half-hearted support of postscript + image type. Does anybody use this, after all? If so, let him + run DviPS in background if he so desires... + + * preview.dtx (subsection{The internals}): add \leavevmode to make + things like \paragraph flush their \everypar tokens. Perhaps not + the right thing to do, let's wait for error reports about that + one. + + * preview.el: require 'tex-site when compiling + (preview-gs-file): new local variable + (preview-gs-sentinel): cater for "Compilation" flag in mode-line + (preview-gs-restart): changes in process setup + (preview-gs-close): Same here + (preview-gs-open): Same here + (preview-gs-dvips-sentinel): New function + (preview-gs-place): postpone Bounding Box extraction. + (preview-gs-flag-error): cosmetic changes + (preview-gs-transact): extract bounding box + (preview-LaTeX-command): Remove dvips call from command + (preview-dvips-command): New option for dvips call + (preview-parse-messages): add message while parsing + (preview-parse-messages): remove call to open, this calls parsing + instead. + (preview-start-dvips): New function. + (preview-TeX-inline-sentinel): Changed to new process model + Note: this breaks 'postscript image support. To be fixed. + +2001-11-03 Alan Shutko + + * aclocal.m4 + (AC_CHECK_PROG_REQUIRED,AC_CHECK_PROGS_REQUIRED,AC_PATH_PROG_REQUIRED): + New functions to check programs, and abort with a message if not + found. + (AC_EMACS_CHECK_LIB): Function stolen from Gnus to check whether + an elisp library exists. + (AC_CHECK_AUCTEX): Check if AUC-TeX is in a normal emacs load + path, and allow --with-auctex switch to specify it. SF Bug + #477262, #477260. + + * Makefile.in (use-hint, install-hint): New hints. SF Bug #477282. + (all, install): Use the above hints. + + * configure.in: Changed all AC_CHECK_PROG(S)/AC_PATH_PROG(S) to + new AC_*_REQUIRED, which abort and print a message if something + isn't found. Added AC_CHECK_AUCTEX. Add note at end of configure + to run "make". SF Bug #469741 (partial). + + Removed --with-auctex since that's now done in AC_CHECK_AUCTEX. + +2001-10-30 David Kastrup + + * prv-emacs.el (preview-make-clickable): Use 'keymap instead of + 'local-map, obliterating the need to inherit from LaTeX-mode-map. + (preview-toggle): Same here, and cater for null-length overlays. + (preview-mark-point): Jury's still out on that one. + + * preview.el (preview-gs-sentinel): Don't hickup if buffer got + killed. + (preview-gs-restart): Don't mind exiting Emacs if GhostScript + still running. + (preview-snippet): Buffer-locality not needed because parsing + occurs fully blocking. + (preview-snippet-start): Same + (preview-analyze-error): Somewhat saner behaviour if the error + message parsing fails due to macro arguments or other. This + cannot be the final verdict. + + * TODO: add a few items. + + * prv-emacs.el (preview-transparent-color): Make transparency + customizable. Note that due to a bug everything except "None" is + treated the same as "Autodetect" in 21.1. Fixed in CVS. + (preview-get-heuristic-mask): Function for calculating mask to use + from above. + (preview-create-icon): use preview-get-heuristic-mask + (preview-ps-image): same. + (preview-mark-point): move point out of previews before starting + next command for consistent implementation of intangibility. Not + sure whether this is actually a good idea, though. + (preview-inherited-face-attribute): New function + (preview-gs-get-colors): New function, replaces preview-get-colors + + * preview.el (preview-gs): New customization group hierarchy + (preview-appearance): same + (preview-latex): same + (preview-gs-colors): change string to single tokens. + (preview-gs-transact): construct string from same + (preview-scale-from-face): consult preview-reference-face instead + of default. Use new function preview-inherited-face-attribute for + this. + (preview-face): add different colours for dark backgrounds. + change default background to beige, probably less likely to match + users default background. + (preview-error-face): change preview-error-face for non-color terms. + (preview-reference-face): used for size and color determination of + previews. + (preview-TeX-inline-sentinel): tell user while we are parsing + +2001-10-27 David Kastrup + + * PROBLEMS: revert AucTeX patch to that before we tried our luck + with intangibility. Some changes in formatting. Add comment + about -Pwww font problems. + +2001-10-26 David Kastrup + + * Release 0.5.8.1 + + * preview.el (preview-mouse-open-eps): fix a typo in help + message. + (preview-analyze-error): Remove traces of inhibit-point-motion + madness. If search for (concat string after-string) fails, try + again just with string in order to support uses of Auc-TeX's + original interface. + + * prv-emacs.el (preview-toggle): Don't reactivate disabled + overlays (could happen in isearches ended by an editing operation). + (preview-move-point): While we are simulating point-adjustment, + heed disable-point-adjustment in order to make isearch (and + probably other utilities) Do The Right Thing (TM). Works + beatifully. + + * preview.el (preview-LaTeX-command): new customization variable. + (LaTeX-preview-setup): use it. + +2001-10-25 David Kastrup + + * We now cater for people with non-black-on-white setup. + + * prv-emacs.el (preview-get-colors): gets colors from default + font. + + * preview.el (preview-gs-colors): new variable for GhostScript + color setup string. + (preview-gs-transact): pass color setup. + (preview-get-geometry): pass color setup + + * prv-emacs.el (preview-ps-image): Don't expect white background + in heuristic-mask. + + * preview.el (preview-next-border): Can't get everything right + first try now, can I? + + * prv-emacs.el: replace preview-intangible by preview-state. + (preview-handle-insert-in-front): Same here. + (preview-toggle): Same here. + (preview-toggle): Let preview-toggle handle setting of category. + That way category is not set/used outside of prv-emacs.el. + (preview-move-point): replace preview-intangible by + preview-state. + + * preview.el (preview-dwim): replaces preview-again. + Excruciatingly useful function bound to C-c C-p C-p. Will do just + what you want whenever you call it. + (preview-next-border): Helper-function for that + (preview-disable): set property 'preview-state + (preview-clearout): use 'preview-state instead of 'category + (preview-place-preview): same here. + (LaTeX-preview-setup): use preview-dwim in keyboard bindings + +2001-10-23 David Kastrup + + * Release 0.5.8 + + * PROBLEMS (AucTeX): remove patch for intangibility problem. + + * preview.el (preview-regenerate): use preview-region + (preview-region): New user function. + (preview-environment): New user function. + (preview-section): New user function. + (preview-again): New user function. + (LaTeX-preview-setup): Add menus and keyboard shortcuts for new + user functions. + (preview-version): Don't recalculate version in compiled form. + + * prv-emacs.el: inherit from LaTeX-mode-map in order to have + normal commands work when cursor is on preview. + (preview-make-clickable): same. + (preview-overlay): don't make intangible, but preview-intangible. + In short, we now fake intangibility until Emacs will keep the + cursor out of overlay images like it does out of text property + images. + (preview-handle-insert-in-front): Same here. + (preview-toggle): Same here. Load pre-command-hook and + post-command-hook for fake intangibility. + (preview-marker): Added for fake intangibility. + (preview-mark-point): pre-command-hook function for fake + intangibility. + (preview-move-point): post-command-hook function for fakr + intangibility. + +2001-10-22 David Kastrup + + * README: Change info for Emacs release 21.1 + + * PROBLEMS: Change info for Emacs release 21.1 + + * INSTALL: Change info for Emacs release 21.1 + +2001-10-19 David Kastrup + + * preview.dtx (subsection{The internals}): Heed \AtBeginDvi + sequences. Small doc/formatting changes. + +2001-10-17 David Kastrup + + * preview.dtx: Get the version headers right (hopefully). + +2001-10-16 David Kastrup + + * preview.dtx: Make a stab at an automated version header + (subsection{Preview attaching commands}): Move the badness stuff + to the auctex option. + +2001-10-15 David Kastrup + + * prv-emacs.el: insert-in-front back. Discovered all-saving + undo-in-progress. + (preview-handle-insert-in-front): pseudo-advance if not in undo + while iconized. + (preview-handle-modification): fitting behaviour for that. commit + suicide on changes that leave the range empty, disable else. + + * preview.el (preview-place-preview): overlays get auto-advancing + front. + (preview-analyze-error): intangible. inhibit-point-motion-hooks. + what a mess. Made parsing saner in the presence of such stuff. + (preview-place-preview): overlays get non-auto-advancing front + back again, since we rather pseudo-advance in + preview-handle-insert-in-front. + + * prv-emacs.el: don't handle insert-in-front: impossible to do + consistently. Instead make beginning ofg overlays auto-advance + always. + (preview-handle-insert-in-front): removed + (preview-handle-modification): removed insert-in-front-hooks + +2001-10-13 David Kastrup + + * prv-xemacs.el: This is completely and utterly broken and + incomplete. The recent changes from Simon have not yet been + incorporated, some of the stuff still has old semantics and so + forth and so on. One needs to go through prv-emacs.el and make + sure that everything in there has an equivalent here. + + * prv-emacs.el: See preview.el. + + * preview.el: This is the big one. Changes too numerous to + mention. Lots of modularization for making XEmacs support + possible. Changed semantics, the works. See PROBLEMS file for + new AucTeX compatibility annoyances. + + * PROBLEMS (AucTeX versions from 11.01 up to version 11.05): Patch + added. Patch for earlier versions revised. + +2001-10-12 David Kastrup + + * preview.dtx (subsection{Preview attaching commands}): set + \hbadness and \vbadness to infinity in order to avoid + parse-unfriendly error messages. Would one want to see overfull + hbox rules in preview output? + +2001-10-12 Alan Shutko + + * Makefile.in (LISP_OBJS): New var. + ($(LISP_OBJS)): Got rid of elc target and used dependencies, so we + don't recompile every make. + +2001-10-12 David Kastrup + + * configure.in: Try fixing the emacs flavor detection. + And revert back to Alan's version. + +2001-10-12 Alan Shutko + + * configure.in: Change AC_PATH_PROG of emacs to AC_CHECK_PROG, as + it was breaking --with-xemacs. + +2001-10-12 David Kastrup + + * Makefile.in: Switch order of LISP_SOURCES in order to avoid + compiling preview.el with older versions of prv-emacs.elc or + prv-xemacs.elc + +2001-10-11 Alan Shutko + + * Makefile.in (ELCC): Bug 469742: Include . in load path. + + * configure.in: Added --with-xemacs option. Added AC_XEMACS_P to + determine if we're using xemacs. Added PLAT_LISP substitution + with the flavor-specific lisp file. + + * Makefile.in (LISP_SOURCES): New variable, listing files needing + byte-compilation. + (all): Depend on "elc" target to capture all the emacs files. + (install-el): Install more lisp files. + (elc): New target, compile all relevant files. + +2001-10-11 David Kastrup + + * preview.dtx (subsection{The internals}): Introduce count + \pr@snippet so as not to get confused by \include. + (subsection{Preview attaching commands}): Make auctex option use + this counter. + +2001-10-10 David Kastrup + + * circ.tex: Demonstrate new `sections' option. + + * preview.el (preview-default-option-list): Cater for new + `sections' option to preview.sty. + + * preview.dtx (section{Provided Commands}): New argument syntax as + in \PreviewMacro[{*[][]{}}]{\includegraphics}. + (subsection{Parsing commands}): introduce \pr@endparse and support + new syntax. + (subsection{Preview attaching commands}): same here. + (section{Package options}): explain new `sections' option. + (subsection{Selection options}): implement `sections' option. + +2001-10-09 David Kastrup + + * preview.el (preview-mouse-open-error): Don't have multiple + "*Preview-GhostScript-Error*" buffers gather, reuse single one. + (LaTeX-preview-setup): Enter us into "Command" menu. + +2001-10-08 David Kastrup + + * preview.dtx (subsection{Preview attaching commands}): Change + output routine to flush out floats. + Correct \CheckSum. + + * preview.el: Use `error' identifier only where really needed. + (preview-gs-behead-outstanding): see above. + (preview-gs-sentinel): see above. + (preview-gs-flag-error): see above. + Still require (defvar error) because of Auc-TeX + (TeX-active-tempdir): Move definition. + (preview-gs-place, preview-eps-place) + (preview-active-string, preview-make-filename) + (preview-place-preview, preview-parse-messages) + (preview-analyze-error): remove `tempdir' argument + (preview-get-geometry): some change in semantics + (preview-TeX-inline-sentinel): call `preview-parse-messages' with + process buffer active instead of source. + (TeX-inline-preview): adapt to changed `preview-get-geometry' + +2001-10-07 David Kastrup + + * preview.el (preview-get-geometry): comment clarification to + satisfy checkdoc. + (preview-version): added. + (preview-report-bug): use `preview-version' instead of current + ugliness. + + * .cvsignore (Module): Add a few more entries. + + * preview.el: Don't defvar AucTeX internal TeX-auto-file, make + auto-size detection of previews from parsed styles work. + (preview-document-pt): Use `TeX-active-styles' instead of bad AucTeX + internal `TeX-auto-file'. + (preview-get-geometry): Different arguments and semantics. Make + it work. + (TeX-inline-preview): Call changed `preview-get-geometry'. + + * prv-xemacs.el: add macros line-beginning-position and + line-end-position. + + * preview.el: Change manner of loading prv-xemacs + (preview-analyze-error): Use line-end-position again. + +2001-10-05 David Kastrup + + * preview.dtx: Include \ProvidesPackage and \CheckSum + (subsection{Preview attaching commands}): put \unskip in + \end{preview} where it will make a difference. + (section{Various drivers}): \askforoverwritefalse only generated + for make-intended installer. + + * prv-xemacs.el: require overlay + preview-compatibility-macros added + (find-image): some changes of compilation + (defimage): define using preview-defmacro + (make-temp-file): ignore temporary-filename: not needed in here. + +2001-10-04 David Kastrup + + * preview.el: first stab at XEmacs compatibility. + + * prv-xemacs.el: first stab at XEmacs compatibility. + + * circ.tex (section{Die gerade Linie}): built in two deliberate + bugs for testing. + + * preview.el (preview-gs-behead-outstanding): use + `preview-gs-flag-error'. + (preview-mouse-open-error, preview-mouse-open-eps): factored out + stuff from `preview-gs-flag-error'. + (preview-gs-flag-error): replaces `preview-gs-error-string' + (preview-gs-transact): Use `preview-gs-flag-error'. + + * PROBLEMS: be more specific about GhostScript errors + +2001-10-03 David Kastrup + + * preview.el (preview-delete-file): remove dont-register + (preview-make-filename): remove dont-register + (preview-regenerate): switch to clicked buffer if not there. + (preview-gs-error-string): try to avoid strange behaviour from + having `let' restore potential buffer-local-variables to the wrong + buffer. Make some functions (interactive "@"). + +2001-10-02 David Kastrup + + * release 0.5 + + * PROBLEMS: Completed summary of patches and made an outline-mode file. + + * INSTALL: + Gearing up for a release. Last modifications and clarifications. + + * preview.el: + Lots of cleanups for getting to release quality. Made good error + reporting with things masquerading as actual GhostScript sessions, + including command line, prompt, messages, the works. + + Removed preview-gs-urgent which actually has never been anything + but the front of preview-gs-queue. + + * TODO: Some more wishes. + + * preview.el: Make active error display. + + * preview.el: + Changed the process line appearance somewhat, added a bit of + robustness when error line parsing fails, beautified appearance of + opened previews (icon gets its own line only when previewed area + starts on a line). + +2001-10-01 David Kastrup + + * TODO: Added a few items. + + * README: Added CVS instructions and a few other odds and ends. + + * bootstrap.ins: Remove docstrip configuration related messages. + + * INSTALL: Some more massaging. + + * PROBLEMS: Initial checkin, preparation for first tarball release. + + * ChangeLog: Initial entry of ChangeLog. + +2001-10-01 alanshutko + + * aclocal.m4: Instead of /dev/null, throw stuff to FD 5, where it + might do some good. + +2001-09-30 David Kastrup + + * README: Mentioned M-x preview-report-bug. + + * README: Removed redundancies with INSTALL, cleared some stuff up. + + * preview.el: + Obliterated transaction queues. They did not help that much, and are + not implemented in earlier versions of XEmacs. More trouble than they + were worth, anyway. + + * preview.el: Define a few more image types. + +2001-09-29 David Kastrup + + * INSTALL: Some general information and stuff. + + * Makefile.in: + Use latex '\nonstopmode \input ...' instead of -interaction + nonstopmode + + Fixed string comparison in Emacs. + + * aclocal.m4: + Remove trailing slashes after path discovery, do some more things with + sed instead of various other utilities. One change in calling LaTeX + to make it work with older or non-web2c binaries. + + * preview.dtx: + Support those misguided people using $$ in their LaTeX documents. I + am not sure this is a good idea, but it will probably save us bug + reports. + + * TODO: Removed a few done points. + + * preview.el: + Made parsing good. Now the entire TeX error context gets used. In + most cases, regenerating previews should work now, as well as region + previewing. + +2001-09-28 alanshutko + + * INSTALL: New file + +2001-09-27 alanshutko + + * Makefile.in (preview.elc): Patch from Simon Josefsson to fix + build with non-standard AUCTeX location. + +2001-09-27 David Kastrup + + * preview.el: + Made error and abort messages appear in the faulty images. Reworked + file handling somewhat so that in the case of errors all involved + files can stay until the image overlay gets deleted. + + * preview.el: + Added bug reporting instructions and helper function for reports + to preview-latex-bugs@lists.sourceforge.net. + +2001-09-26 alanshutko + + * Makefile.in: (install-texmf) Install the dvi file + + * Makefile.in, aclocal.m4, configure.in: + * aclocal.m4: Removed some dross stolen from Gnus, since it is unused. + Fixed up AC_PATH_TEXMFDIR to try to find a dir to install the docs + and to export texmfdir. + + * configure.in: --with-auctex=DIR, new option + + * Makefile.in: Changed rules for byte-compilation to allow setting + AUCTEXDIR. + (install-texmf) Only texhash the directory we installed into + +2001-09-26 David Kastrup + + * preview.el: + Oodles of documentation and a much faster bounding box extractor + not relying on grep. Some small internal changes. + + * preview.el: + Background rendering now working without errors, even with crummy + default tq.el as currently shipped with Emacs (and XEmacs?). + +2001-09-25 David Kastrup + + * preview.el: + Some initial stab at trying to make do without tq.el. Figured out a + way to make do with tq's ugly semantics, however. Just keep this + somewhere. Only half done. + +2001-09-24 alanshutko + + * Makefile.in: + Makefile.in: clean and distclean targets from Simon Josefsson + +2001-09-24 David Kastrup + + * preview.el: + Sanitized temporary file handling by introducing a reference count + scheme. Temporary directories should now get deleted as they become + empty. We still do a general cleanup (in case a previous EMacs + session crashed) on first accessing any preview subdirectory, which + means bad luck when you are starting multiple instances of Emacs for + previewing purposes. + +2001-09-24 alanshutko + + * Makefile.in, configure.in: + Run texhash after tex installation. Also set full + pathnames for programs, since the path of the installing user may + not match the compiling user. + + * Makefile.in, aclocal.m4: First cut at previewdocdir + +2001-09-24 David Kastrup + + * preview.el: + PNG rendering now basically works and is the default. Errors during + transaction queue processing insert their messages into the TeX + background buffer; so do unexpected GhostScript messages. Good for + debugging. + +2001-09-22 David Kastrup + + * preview.el: + Forgot entering into queue and a condition. Still does not work with png. + + * preview.dtx: Fixed \begin{table} bug. + + * preview.el: Several changes from several people. + + The big one: support of other image formats. PNG. Unfortunately, not + yet functional. Checked in nevertheless since the old postscript + rendering is on by default and seems to work still. + + * preview.dtx: Forgotten macrocode, empty line. + +2001-09-21 alanshutko + + * Makefile.in, aclocal.m4, configure.in: + 2001-09-21 Alan Shutko + + * aclocal.m4: Correct handling of docstrip configuration for + non-TDS setup. Also, quote the $ in awk. + + * Makefile.in (TEX): New variable. + (all): preview-mk.ins instead of preview.ins + (preview-mk.ins, preview.sty prauctex.def preview.drv): Use $TEX. + + * configure.in: Added --with-preview-dir option. Check for tex + executable. + + * configure.in: Clarified --with-texmf help. + + * README: Updated build directions for autoconf build. + + * .cvsignore, Makefile, Makefile.in, aclocal.m4, configure.in, install-sh: + Makefile.in, aclocal.m4, configure.in: Create autoconf versions of + Makefile. Much of aclocal.m4 was stolen from Gnus, though the + AC_PATH_TEXMF is new. + + Added install-sh for use by the makefile if a compatible install + binary is not found. + +2001-09-20 David Kastrup + + * Makefile: First sketch at installation via make instead of docstrip. + + * bootstrap.ins: No error if no docstrip.cfg. + + * bootstrap.ins: + First sketch at bootstrap install file for extracting main installer + and giving directory info. + + * preview.dtx: Added missing macrocode environment (David Love). + Leave directory off installer when installing via make. + +2001-09-19 David Kastrup + + * README: Checked in antialiasing suggestions from Alan Shutko. + +2001-09-16 David Kastrup + + * preview.el: Still learning about customize-variable... + +2001-09-15 David Kastrup + + * preview.el: + Parse HiRes Bounding Boxes, remove accidental paste of definition of + shell-command-to-string, add support for graphical preview of files + not prepared for it. + + * preview.dtx: Another spurious space. + + * preview.dtx: + AucTeX option delays \nonstopmode. Spurious space in \pr@endbox removed. + + * README: Add instructions for anti-aliasing. + + * preview.dtx, README: Corrected Email address. + +2001-09-14 David Kastrup + + * README: Added some more descriptive stuff and my Email address. + + * preview.el: Added intelligent determination of EPS scale. + Changed Bounding Box determination to use a HiResBoundingBox if + present, and work without a shell. + Added some customization. + +2001-09-13 David Kastrup + + * .cvsignore: Ignore generated files. + + * preview.dtx: + Deleted no longer applicable comment. Fixed bug in connection with \item. + + * COPYING: Copy of GPL version 2 included. + + * README: Typo. + + * README: Clarified comment about how to improve EPS support in Emacs. + + * README: Removed link to pretest Emacs on request from Gerd Möllmann. + +2001-09-12 David Kastrup + + * circ.tex: New file. + + * circ.tex: This is the initial checkin of preview-latex. Enjoy. + + * Makefile, README, TODO, preview.dtx: New file. + + * Makefile, README, TODO, preview.dtx: + This is the initial checkin of preview-latex. Enjoy. + + * preview.el: New file. + + * preview.el: This is the initial checkin of preview-latex. Enjoy. + diff -Nru auctex-11.88/CHANGES auctex-11.90/CHANGES --- auctex-11.88/CHANGES 2014-10-29 19:21:37.000000000 +0000 +++ auctex-11.90/CHANGES 2017-01-10 21:36:03.000000000 +0000 @@ -1,6 +1,166 @@ Changes and New Features in AUCTeX ********************************** +News in 11.90 +============= + + * In addition to the completion performed by 'TeX-complete-symbol', + AUCTeX now also supports the new Emacs standard completion-at-point + facility (see the Emacs command 'completion-at-point'). This also + means that modern completion UIs like company-mode work out of the + box in TeX and LaTeX buffers. + + * Completion is now aware of being inside a math environment and then + completes math macros. + + * AUCTeX is able to display several levels of super- and subscripts, + each one raised above and a bit smaller than its basis. For this + feature, have a look at the customize options + 'font-latex-fontify-script' (especially the new values + 'multi-level' and 'invisible') and + 'font-latex-fontify-script-max-level'. Also, the script characters + '^' and '_' are also fontified with a special face named + 'font-latex-script-char-face'. + + * Parsing of format specification in various tabular environments has + been improved. The function 'LaTeX-insert-item' ('C-c ') + inserts suitable number of ampersands for '*{num}{cols}' + constructs. Style files for LaTeX packages 'tabularx', 'tabulary', + 'longtable', 'dcolumn' and 'siunitx' are adapted to take advantage + of this improvement. + + * AUCTeX has a new Ispell dictionary 'tex-ispell.el' for macros and + environments which will be skipped during spell checking. The + activiation of this feature is controlled by a new customize option + 'TeX-ispell-extend-skip-list', which is set to 't' and activated by + default. + + * AUCTeX has a new customize option 'TeX-raise-frame-function' that + is currently only used by Evince and Atril inverse search to raise + the Emacs frame. + + * When inserting a new float, AUCTeX will now prompt for a + short-caption if the length of the caption provided is greater than + a certain size. This size is controlled via a new user option + 'LaTeX-short-caption-prompt-length'. + + * Parsing of the compilation log has been reworked. You should + encounter fewer mistaken files while navigating through errors and + warnings. + + * Two new user options, 'TeX-ignore-warnings' and + 'TeX-suppress-ignored-warnings', allow ignoring certain warnings + after compilation of the document. + + * A new option, 'TeX-PDF-from-DVI', controls if and how to produce a + PDF file by converting a DVI file. This supersedes + 'TeX-PDF-via-dvips-ps2pdf' which is still recognized but marked as + obsolete and may be removed in future releases. + + * Support for a number of external viewers has been added: + * Atril viewer. Forward and inverse search requires version + 1.9.1 or later to work. + + * dviout viewer on Windows. Note that this setup works when + 'TeX-source-correlate-method' is set to use 'source-specials' + for DVI, e.g.: + (setq TeX-source-correlate-method + '((dvi . source-specials) + (pdf . synctex))) + which is the default. + + * SumatraPDF viewer on Windows. + + * Zathura viewer. Forward and inverse search requires a recent + version of the program to work (3.4 or later). + + * A new function, 'TeX-documentation-texdoc', for reading + documentation with 'texdoc' has been added. 'TeX-doc' is still + available but now 'C-c ?' runs 'TeX-documentation-texdoc'. + + * AUCTeX has a new custom option + 'LaTeX-reftex-cite-format-auto-activate' which controls the + automatic activation of citation formats provided by RefTeX when a + style file is loaded and RefTeX is enabled. Currently, + 'biblatex.el', 'harvard.el', 'jurabib.el' and 'natbib.el' use this + feature. If you have customized 'reftex-cite-format' and want to + use your settings, you should set this variable to 'nil'. + + * AUCTeX now has limited support for the TikZ package. For the + moment, this includes some basic support for prompting the user of + arguments to the '\draw' macro. + + * The style 'graphicx.el' went through a bigger overhaul. The + optional argument of command '\includegraphics' now supports + key-val query; keys can independently be chosen anytime by pressing + the <,> key. As a side effect, the variable + 'LaTeX-includegraphics-options-alist' is now no-op and is removed + from 'tex-style.el'. You can safely remove any customization of it + from your init file. The mandatory argument of '\includegraphics' + knows about image file extensions supported by the used engine and + offers them for inclusion. + + * Support for other LaTeX packages was improved, and style files for + several new packages were added. + + * Many bugs were crushed along the way. + +News in 11.89 +============= + + * You can now run all commands needed to compile a document and then + open the viewer with a single command: 'TeX-command-run-all', bound + to 'C-c C-a'. + + * Commands such as LaTeX and View can now be executed conveniently on + the current section (or part, chapter, subsection, etc). See + 'LaTeX-command-section' and 'LaTeX-command-section-change-level'. + + * Forward and backward search with Evince now also work when only a + region of the document is compiled/viewed. + + * To open the PDF output file you can now use also PDF Tools, a + document viewer for Emacs. With it, as a plus, forward and + backward search is accurate at word level. + + * With new option 'TeX-PDF-via-dvips-ps2pdf' it is possible to + compile a document to DVI and then convert it to PDF using + 'dvips'-'ps2pdf' before viewing it. + + * New option 'TeX-file-line-error' allows to select file:line:error + style for error messages. + + * Indent '\[...\]' math mode as a regular environment by default. + + * Now AUCTeX suggests to run 'makeindex' when appropriate. + + * 'TeX-view-program-list' can contain, as third optional element of + each item, the name of the executable(s) needed to open the viewer. + + * 'TeX-expand-list' variable has been split into 'TeX-expand-list' + and 'TeX-expand-list-builtin'. Only the former is intended to be + customized by the user, the latter contains built-in expanders. + You might want to keep in 'TeX-expand-list' only new expansion + strings. + + * Before running commands like TeX and LaTeX, now AUCTeX performs + some checks. If 'TeX-check-TeX' is non-nil, it will test whether a + working TeX distribution is actually present in the system and + available to Emacs. Instead, when 'TeX-check-engine' is non-nil, + before running LaTeX commands AUCTeX will check whether the correct + engine has been set, based upon known restrictions posed by LaTeX + packages. + + * Basic support to ConTeXt Mark IV has been added. Users can now + select the Mark version to be used with new option + 'ConTeXt-Mark-version', and AUCTeX is able to catch error messages + in the output log of a Mark IV document. + + * Support for tons of LaTeX packages has been added. + + * Numbers of bugs have been fixed, many minor features have been + added. + News in 11.88 ============= @@ -95,8 +255,8 @@ * There have been lots of bug fixes and feature additions. -News since 11.87 -================ +News in 11.87 +============= * AUCTeX now supports Biber in conjunction with biblatex in addition to BibTeX. diff -Nru auctex-11.88/circ.tex auctex-11.90/circ.tex --- auctex-11.88/circ.tex 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/circ.tex 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,479 @@ +\documentclass[a4paper,twocolumn]{article} +\usepackage[german]{babel} +\usepackage[T1]{fontenc} +\usepackage[latin1]{inputenc} +\usepackage[showlabels,sections,floats,textmath,displaymath]{preview} +\newbox\chaos +\newdimen\tdim +\def\fframe{% +\tdim=\columnwidth +\advance\tdim by -2\fboxsep +\advance\tdim by -2\fboxrule +\setbox\chaos=\hbox\bgroup\begin{minipage}{\tdim}} +\def\endfframe{\end{minipage}\egroup\fbox{\box\chaos}} +\unitlength 1mm +\newcount\fives +\fives 14 +\newcount\ones +\ones\fives +\multiply \ones by 5 +\newsavebox{\raster} +\savebox{\raster}(\ones,\ones) +{\thicklines + \put(0,0){\line(0,1){\ones}} + \put(0,0){\line(1,0){\ones}} + \multiput(0,0)(5,0){\fives} + {\begin{picture}(0,0) + \put(5,0){\line(0,1){\ones}} + \thinlines\multiput(1,0)(1,0){4}{\line(0,1){\ones}} + \end{picture}} + \multiput(0,0)(0,5){\fives} + {\begin{picture}(0,0) + \put(0,5){\line(1,0){\ones}} + \thinlines\multiput(0,1)(0,1){4}{\line(1,0){\ones}} + \end{picture}} +} +\begin{document} +\title{Einfache Kurven auf Rastergrafiken} +\author{David Kastrup} +\maketitle + +\begin{abstract} +Es sollen hier einfache Methoden vorgestellt werden, um auf einer +Rastereinheit verschiedene Kurven darzustellen. Vorgestellt werden +Zeichenalgorithmen für Linien, Kreise und Hyperbeln. Die hier +hergeleiteten Gleichungen sind auch unter dem Namen {\tt DDA}s bekannt. +\end{abstract} + +\section{Einführung} +Bei den hier vorgestellten Algorithmen werden zunächst nur +Kurvenstücke betrachtet, die die folgenden Eigenschaften besitzen: +\begin{enumerate} +\item Sie lassen sich als Funktion $y = f(x)$ darstellen. +\item $y$ ist im betrachteten Bereich monoton, das heißt, entweder + durchgehend steigend oder durchgehend fallend. +\item Wenn $x$ sich um $1$ ändert, so ändert sich $y$ betragsmäßig + höchstens um $1$ + ($\left|\frac{\partial y}{\partial x}\right| \leq 1$). +\end{enumerate} + +\section{Die gerade Linie} +Wir betrachten hier zunächst nur die gerade Linie im ersten Oktanten, +die durch den Punkt $0 \choose 0$ geht. Alle anderen Linien lassen +sich durch Vertauschen von $x$ und~$y$ sowie Vorzeichenwechsel +erzeugen. Im ersten Oktanten gilt $x \geq y \geq 0$. Zum Zeichnen +einer Linie genügt es also, $x$ durchlaufen zu lassen und für $y$ die +dazugehörigen Werte zu berechnen und zu runden. + +Die Gleichung einer Geraden durch $\Delta x \choose \Delta y$ lautet: +\begin{equation} +\label{lgi} +y = \frac{\Delta y}{\Delta x}x +\end{equation} +% +Nun stellen wir $y$ als Summe eines ganzzahligen Wertes $e$ und eines +gebrochenen Wertes $f$ dar, für den gilt: $-0.5 \leq f < 0.5$. Somit +stellt dann $e$ den gewünschten, auf die nächste ganze Zahl gerundeten +$y$-Wert dar. Jetzt formen wir (\ref{lgi}) um: +\begin{eqnarray} +e + f &=& x \frac{\Delta y}{\Delta x}\nonumber\\ +e \Delta x + f \Delta x &=& x \Delta y\nonumber\\ +f \Delta x - \left\lceil\frac{\Delta x}2\right\rceil &=& +x \Delta y - e \Delta x - \left\lceil\frac{\Delta x}2\right\rceil \label{lgii} +\end{eqnarray} +% +Den linken Ausdruck in (\ref{lgii}) bezeichnen wir jetzt mit $d$. Für +positive gerade Werte von $\Delta x$ ist offensichtlich $d < 0$ eine +zu~$f < 0.5$ equivalente Bedingung. + +Für ungerade Werte von~$\Delta x$ ist $f < 0.5$ equivalent zu +$d + 0.5 < 0$. +Da $d$ stets eine ganze Zahl ist, ist dies wieder zu $d < 0$ +equivalent. + +% INTENTIONAL ERRORS! INTENTIONAL ERRORS! INTENTIONAL ERRORS! +% +% The following line should flag a PostScript error when previewing, +% but processing of other previews should continue. +% +Wird nun $\ifPreview\special{ps: junk}\fi f \geq 0.5$, wie sich durch +den Vergleich $d \stackrel{?}{<} 0$ feststellen läßt, so muß man +korrigieren, indem man $f$ um~1 erniedrigt und $e$ um~$1$ erhöht. +% +% The following line will make Ghostscript abort unexpectedly when +% previewing, but processing of other previews should continue. +% +$\ifPreview\special{ps: quit}\fi d$ muß dann auch entsprechend +angepaßt werden. + +Mit den angegebenen Formeln ergibt sich jetzt bei Berücksichtigung der +Einflüsse von $x$ und $e$ auf $d$ der in Tabelle~\ref{linalg} +angegebene Algorithmus. Eine optimierte C-function, die die +Oktantenaufteilung berücksichtigt, ist in Tabelle~\ref{linc} zu +finden. Einige hiermit gezeichnete Linien sind in +Abbildung~\ref{linpict} zu sehen. +\begin{table} + \caption{Linienzugalgorithmus} \label{linalg} + \begin{fframe} + \begin{enumerate} + \item Setze $x \gets 0$, $y \gets 0$, $d \gets + -\left\lceil\frac{\Delta x}2\right\rceil$ + \item Wiederhole bis $x = \Delta x$ + \begin{enumerate} + \item Zeichne Punkt an $x \choose y$ + \item Setze $x \gets x + 1$, $d \gets d + \Delta y$ + \item Falls $d \geq 0$ + \begin{enumerate} + \item Setze $d \gets d - \Delta x$ + \item Setze $y \gets y + 1$ + \end{enumerate} + \end{enumerate} + \end{enumerate} + \end{fframe} +\end{table} +\begin{table} +\caption{Linienziehen in C} \label{linc} +\begin{fframe} +\small +\begin{verbatim} +extern int x,y; +/* (x,y) ist Koordinate des nicht + * gezeichneten Startpunktes, zeigt + * nachher auf gezeichneten Endpunkt + */ +#define doline(dx,dy,advx,advy) { \ + d = -(((i = dx) + 1) >> 1); \ + while (i--) { \ + advx; \ + if ((d += dy) >= 0) { \ + d -= dx; advy; \ + } \ + dot(x,y); \ + } \ + return; \ +} /* Grundalgorithmus 1. Oktant */ +/* dx ist Distanz in unabh. Richtung, * + * dy in abh. Richtung, advx geht * + * in unabh. Richtung, advy in abh. */ + +#define docond(cond,advx,advy) { \ + if (cond) doline(dx,dy,advx,advy) \ + doline(dy,dx,advy,advx) \ +} /* Grundalgorithmus 1./2. Oktant */ +/* cond ist true falls |dx| > |dy| */ + +void +linedraw(int dx, int dy) +/* Von (x,y) nach (x+dx, y+dx). */ +{ + int i; + + if (dx >= 0) { + if (dy >= 0) + docond(dx > dy, ++x, ++y) + docond(dx > (dy = -dy), ++x, --y) + } + if (dy >= 0) + docond((dx = -dx) > dy,--x,++y) + docond((dx = -dx) > (dy = -dy), + --x, --y ) +} +\end{verbatim} +\end{fframe} +\end{table} +\begin{figure} + \begin{picture}(\ones,\ones) \put(0,0){\usebox{\raster}} + \newcount\x + \newcount\y + \newcount\d + \newcount\dx + \newcount\dy + \x 0 + \y 0 + \dx \ones + \dy \ones + \loop %{ + \d -\dx + \divide \d by 2 %} + \ifnum \dy > 0 %{ + {\loop %{ + \put(\x,\y){\circle*{1}}%} + \ifnum \x < \ones %{ + \advance \x by 1 + \advance \d by \dy %} + \ifnum \d > -1 %{ + \advance \y by 1 + \advance \d by -\dx %} + \fi %}} + \repeat} + \advance \x by 5 + \advance \dx by -5 + \advance \dy by -15 %} + \repeat + \end{picture} +\caption{Einige Linien}\label{linpict} +\end{figure} + +\section{Der Kreis} +Wir betrachten hier nur den Achtelkreis im zweiten Oktanten +($y \geq x \geq 0$). Hier gelten die oben angegebenen Beziehungen. +Alle anderen Achtelkreise lassen sich durch elementare Spiegelungen +erzeugen. + +Die Gleichung eines Kreises ist hier +\begin{equation} +y = ±\sqrt{r^2 - x^2} +\end{equation} + +Der Wert $y$ läßt sich darstellen als Summe einer ganzen Zahl $e$ und +einem Wert $f$ mit $-0.5 \leq f < 0.5$. Der Wertebereich von $f$ ist +so gewählt worden, damit $e$ einen auf ganze Zahlen gerundeten Wert +für $y$ darstellt. + +Nun gilt: +\begin{eqnarray} +e + f&=&\sqrt{r^2 - x^2}\nonumber\\ +\label{ggg}e^2 + 2ef + f^2&=&r^2 - x^2 +\end{eqnarray} +% +Die Gleichung (\ref{ggg}) hat für $x+1$ folgende Form: +\begin{eqnarray} +\label{hhh}e'^2 + 2e'f' + f'^2&=&r^2 - x^2 - 2x -1 +\end{eqnarray} +% +Zieht man die Gleichung (\ref{ggg}) von (\ref{hhh}) ab, so ergibt sich +nach Umsortieren: +\begin{eqnarray*} + e' = e:\\ + 2e'f' + f'^2&=&2ef+f^2-2x-1\\ + e' = e-1:\\ + 2e'f' + f'^2&=&2ef+f^2+2e-2x-2 +\end{eqnarray*} +% +Jetzt wird $2ef + f^2$ mit $m$ getauft. Also: +\begin{eqnarray*} + e' = e:\\ + m'&=&m -2x-1\\ + e' = e-1:\\ + m'&=&m +2e-1 -2x-1 +\end{eqnarray*} +Wie groß ist jetzt $m$? Für $x=0$ ist es sicher $0$. Solange $e$ +konstant bleibt, schrumpft $f$ stetig. Fällt $f$ unter $-0.5$, so +fällt $m$ (unter Vernachlässigung von $f^2$) unter $-e$. Dies wird +jetzt als Kriterium für einen Unterlauf von $f$ verwendet. Tritt +dieser auf, so muß $f$ um $1$ erhöht und $e$ um $1$ erniedrigt werden. + +Um die Abfragebedingung zu vereinfachen, setzt man jetzt $q$ = $m+e$. +Der resultierende Algorithmus ist in Tabelle \ref{alg}, ein +optimiertes C-Programm ist in Tabelle \ref{prog} zu finden. +\begin{table} + \caption{Kreiszeichenalgorithmus}\label{alg} + \begin{fframe} + \begin{enumerate} + \item Setze $x\gets 0$, $y\gets r$, $q\gets r$ + \item Wiederhole bis $x>y$: + \begin{enumerate} + \item Setze einen Punkt an $x \choose y$. + \item Setze $q\gets q-2x-1$ + \item Falls $q<0$ + \begin{enumerate} + \item Setze $q\gets q + 2y-2$ + \item Setze $y\gets y-1$ + \end{enumerate} + \item Setze $x\gets x+1$ + \end{enumerate} + \end{enumerate} + \end{fframe} +\end{table} +\begin{table} + \caption{Kreiszeichenprogramm}\label{prog} + \begin{fframe} + \small +\begin{verbatim} +void +fourfold(int x0, int y0, int x, int y) +/* Zeichne in Oktant 1,3,5,7 */ +/* Wird benutzt, um Anfangs- und End- * + * Punkte nicht zweimal zu zeichnen */ +{ + dot(x0+x,y0+y); + dot(x0-y,y0+x); + dot(x0-x,y0-y); + dot(x0+y,y0-x); +} + +void +eightfold(int x0, int y0, int x, int y) +/* Zeichne in allen Quadranten */ +{ + fourfold(x0,y0,x,y); /* 1357 */ + fourfold(x0,y0,x,-y); /* 8642 */ +} + +void +circle(int x0, int y0, int r) +{ + fourfold(x0,y0,0,r); + /* Die ersten vier Punkte */ + for (x=0, y=q=r;; ) { + if ((q -= 2* x++ + 1) < 0) + q += 2* --y; + if (x >= y) + break; + eightfold(x0,y0,x,y); + } + if (x==y) + fourfold(x0,y0,x,y); + /* Eventuell die letzten vier */ +} +\end{verbatim} + \end{fframe} +\end{table} +\begin{figure} + \begin{picture}(\ones,\ones) + \put(0,0){\usebox{\raster}} + \newcount\x + \newcount\y + \newcount\q + \loop + {\x 0 + \y \ones + \q \ones + \loop + \put(\x,\y){\circle*{1}} + \put(\y,\x){\circle*{1}} + \advance \q by -\x + \advance \x by 1 + \advance \q by -\x + \ifnum \x < \y + \ifnum \q < 0 + \advance \y by -1 + \advance \q by \y + \advance \q by \y + \fi + \repeat} + \advance \ones by -10 + \ifnum \ones > 0 + \repeat + \end{picture} + \caption{Viertelkreise}\label{zeich} +\end{figure} + +\section{Einfache Hyperbeln} +Als letztes Beispiel betrachten wir hier Hyperbeln, die der Formel +$y = r^2\!/x$ genügen, und zwar im Bereich~$x \geq r$. + +Mit dem Ansatz $y = e + f$ ergibt sich: +\begin{eqnarray} + e+f &=& r^2\!/x\nonumber\\ + ex + fx &=& r^2\nonumber\\ + fx &=& r^2 - ex\label{phyp} +\end{eqnarray} +\pagebreak[2] +Für $x' = x+1$ hat nun (\ref{phyp}) die Form +\begin{eqnarray*} + e' = e:\\ + f'x' &=& r^2 - ex - e\\ + e' = e - 1:\\ + f'x' &=& r^2 - ex - e + x + 1 +\end{eqnarray*} +Setzt man jetzt $d = (2f + 1)x$, so ist $f < -0.5$ mit~$d < 0$ +equivalent. Erreicht man diesen Fall unter Verwendung der Annahme +$e' = e$, +dann muß in bekannter Weise $f$ um~$1$ erhöht und $e$ um~$1$ +vermindert werden. + +\pagebreak +Für $d'$ ergeben sich dann die folgenden Werte: +\begin{eqnarray*} + e' = e:\\ + d' &=& d - 2e + 1\\ + e' = e - 1:\\ + d' &=& d - 2e + 2x + 2 + 1 +\end{eqnarray*} +Daraus ergibt sich der in Tabelle~\ref{halg} angegebene +Hyperbelalgorithmus für den ersten Oktanten. +\begin{table} + \caption{Hyperbelalgorithmus}\label{halg} + \begin{fframe} + \begin{enumerate} + \item Setze $d \gets r$, $x \gets r$, $y \gets r$ + \item Wiederhole bis zufrieden + \begin{enumerate} + \item Setze Punkt an $x \choose y$ + \item Setze $x \gets x + 1$ + \item Setze $d \gets d - 2y + 1$ + \item Falls $d < 0$ + \begin{enumerate} + \item Setze $d \gets d + 2x$ + \item Setze $y \gets y - 1$ + \end{enumerate} + \end{enumerate} + \end{enumerate} + \end{fframe} +\end{table} +\begin{table} + \caption{Hyperbeln in C} + \begin{fframe} + \small +\begin{verbatim} +void +four(int x0, int y0, int x, int y) +/* Hyperbeln sind nur in 4 Oktanten */ +{ + dot(x0+x,y0+y); + dot(x0+y,y0+x); + dot(x0-x,y0-y); + dot(x0-y,y0-x); +} + +void +hyperb(int x0, int y0, int r, int dx) +{ + int d, x, y; + + for (x = y = d = r; dx--;) { + four(x0,y0,x,y); + ++x; + if ((d -= 2*y + 1) < 0) { + d += 2*x; + --y; + } + } +} +\end{verbatim} + \end{fframe} +\end{table} +\begin{figure} + \begin{picture}(\ones,\ones) + \put(0,0){\usebox{\raster}} + \newcount\x + \newcount\y + \newcount\q + \newcount\r + \r\ones + \loop + \advance \r by -10 + \ifnum \r > 0 + {\x \r + \y \r + \q \r + \loop + \put(\x,\y){\circle*{1}} + \put(\y,\x){\circle*{1}} + \ifnum \x < \ones + \advance \x by 1 + \advance \q by -\y + \advance \q by -\y + \advance \q by 1 + \ifnum \q < 0 + \advance \q by \x + \advance \q by \x + \advance \y by -1 + \fi + \repeat} + \repeat + \end{picture} + \caption{Hyperbeln}\label{hzeich} +\end{figure} +\end{document} diff -Nru auctex-11.88/configure auctex-11.90/configure --- auctex-11.88/configure 2014-10-29 19:21:35.000000000 +0000 +++ auctex-11.90/configure 2017-01-10 21:36:02.000000000 +0000 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for auctex 11.88. +# Generated by GNU Autoconf 2.69 for auctex 11.90. # # Report bugs to . # @@ -579,22 +579,30 @@ # Identity of this package. PACKAGE_NAME='auctex' PACKAGE_TARNAME='auctex' -PACKAGE_VERSION='11.88' -PACKAGE_STRING='auctex 11.88' +PACKAGE_VERSION='11.90' +PACKAGE_STRING='auctex 11.90' PACKAGE_BUGREPORT='bug-auctex@gnu.org' PACKAGE_URL='' -enable_option_checking=no ac_subst_vars='LTLIBOBJS LIBOBJS -subdirs -preview_enabled INSTALL_INFO TEXI2PDF TEXI2DVI TEXI2HTML MAKEINFO PERL +TEXHASH +packagetexstyles +lisppackagetexstyles +previewdocdir +previewtexmfdir +texmfdir +TEXMFGEN +PDFLATEX +LATEX +lispGS +GS DVIPS PDFTEX TEX @@ -606,9 +614,12 @@ lisppackagedatadir packagelispdir lisppackagelispdir +PLAT_LISP +previewstartfile auctexstartfile lispdir packagedir +preview_enabled MULEELC MULESRC HAVE_mule @@ -643,6 +654,7 @@ docdir oldincludedir includedir +runstatedir localstatedir sharedstatedir sysconfdir @@ -668,21 +680,27 @@ with_emacs with_xemacs enable_build_dir_test +enable_preview with_packagedir with_lispdir with_auctexstartfile +with_previewstartfile with_packagelispdir with_packagedatadir with_auto_dir -enable_preview +with_texmf_dir +with_tex_dir +with_doc_dir ' ac_precious_vars='build_alias host_alias target_alias +GS +TEXHASH PERL MAKEINFO INSTALL_INFO' -ac_subdirs_all='preview' + # Initialize some variables set by options. ac_init_help= @@ -720,6 +738,7 @@ sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' +runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' @@ -972,6 +991,15 @@ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; + -runstatedir | --runstatedir | --runstatedi | --runstated \ + | --runstate | --runstat | --runsta | --runst | --runs \ + | --run | --ru | --r) + ac_prev=runstatedir ;; + -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ + | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ + | --run=* | --ru=* | --r=*) + runstatedir=$ac_optarg ;; + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ @@ -1109,7 +1137,7 @@ for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir + libdir localedir mandir runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. @@ -1222,7 +1250,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures auctex 11.88 to adapt to many kinds of systems. +\`configure' configures auctex 11.90 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1262,6 +1290,7 @@ --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] @@ -1283,7 +1312,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of auctex 11.88:";; + short | recursive ) echo "Configuration of auctex 11.90:";; esac cat <<\_ACEOF @@ -1304,13 +1333,22 @@ --with-lispdir=DIR A place in load-path for Lisp files; most files will be place in a subdirectory. --with-auctexstartfile=FILE What file to use for auctex startup. + --with-previewstartfile=FILE What file to use for preview startup. --with-packagelispdir=DIR Directory for the package lisp files. --with-packagedatadir=DIR Where the data files go. --with-auto-dir=DIR directory containing AUCTeX automatically generated global style hooks + --with-texmf-dir=DIR TEXMF tree to install into, + or --without-texmf-dir for runtime config + --with-tex-dir=DIR Location to install preview TeX sources + --with-doc-dir=DIR Location to install preview.dvi Some influential environment variables: + GS Ghostscript executable for batch operation + TEXHASH command to update the TeX filename database. Set to : to skip + updating the database on installation. This is the default for + --without-texmf-dir PERL Perl executable. If set to :, some documentation cannot be regenerated, but installation of an unmodified tarball will succeed. @@ -1387,7 +1425,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -auctex configure 11.88 +auctex configure 11.90 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -1404,7 +1442,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by auctex $as_me 11.88, which was +It was created by auctex $as_me 11.90, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -1956,52 +1994,94 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for date in ChangeLog" >&5 -$as_echo_n "checking for date in ChangeLog... " >&6; } -AUCTEXDATE=`sed -n '1s/^\([-0-9][-0-9]*\).*/\1/p' "ChangeLog"` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for date with git" >&5 +$as_echo_n "checking for date with git... " >&6; } +AUCTEXDATE=`git log -1 --date=short --format=%cd 2> /dev/null` if test "X${AUCTEXDATE}" = X then - as_fn_error $? "not found" "$LINENO" 5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: git not found, checking for date in ChangeLog:" >&5 +$as_echo "git not found, checking for date in ChangeLog:" >&6; } + AUCTEXDATE=`sed -n '1s/^\([-0-9][-0-9]*\).*/\1/p' "ChangeLog.1"` + if test "X${AUCTEXDATE}" = X + then + as_fn_error $? "not found" "$LINENO" 5 + fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${AUCTEXDATE}" >&5 $as_echo "${AUCTEXDATE}" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for release in ChangeLog" >&5 -$as_echo_n "checking for release in ChangeLog... " >&6; } -AUCTEXVERSION=`sed -n '2,/^[0-9]/s/.*Version \(.*\) released\..*/\1/p' "ChangeLog"` -if test "X${AUCTEXVERSION}" = X + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for release with git" >&5 +$as_echo_n "checking for release with git... " >&6; } +if git describe --tags > /dev/null 2> /dev/null then - AUCTEXVERSION=${AUCTEXDATE} - { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using ${AUCTEXVERSION} instead" >&5 + if test "X`git describe --tags | sed 's/release_.._..//'`" = X + then + AUCTEXVERSION=`git describe --tags` + else + AUCTEXVERSION=${AUCTEXDATE} + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using ${AUCTEXVERSION} instead" >&5 $as_echo "not found, using ${AUCTEXVERSION} instead" >&6; } + fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${AUCTEXVERSION}" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: git not found, checking for release in ChangeLog:" >&5 +$as_echo "git not found, checking for release in ChangeLog:" >&6; } + AUCTEXVERSION=`sed -n '2,/^[0-9]/s/.*Version \(.*\) released\..*/\1/p' "ChangeLog.1"` + if test "X${AUCTEXVERSION}" = X + then + AUCTEXVERSION=${AUCTEXDATE} + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using ${AUCTEXVERSION} instead" >&5 +$as_echo "not found, using ${AUCTEXVERSION} instead" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${AUCTEXVERSION}" >&5 $as_echo "${AUCTEXVERSION}" >&6; } + fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for date in ChangeLog" >&5 -$as_echo_n "checking for date in ChangeLog... " >&6; } -PREVIEWDATE=`sed -n '1s/^\([-0-9][-0-9]*\).*/\1/p' "preview/ChangeLog"` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for date with git" >&5 +$as_echo_n "checking for date with git... " >&6; } +PREVIEWDATE=`git log -1 --date=short --format=%cd 2> /dev/null` if test "X${PREVIEWDATE}" = X then - as_fn_error $? "not found" "$LINENO" 5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: git not found, checking for date in ChangeLog:" >&5 +$as_echo "git not found, checking for date in ChangeLog:" >&6; } + PREVIEWDATE=`sed -n '1s/^\([-0-9][-0-9]*\).*/\1/p' "ChangeLog-preview"` + if test "X${PREVIEWDATE}" = X + then + as_fn_error $? "not found" "$LINENO" 5 + fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PREVIEWDATE}" >&5 $as_echo "${PREVIEWDATE}" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for release in ChangeLog" >&5 -$as_echo_n "checking for release in ChangeLog... " >&6; } -PREVIEWVERSION=`sed -n '2,/^[0-9]/s/.*Version \(.*\) released\..*/\1/p' "preview/ChangeLog"` -if test "X${PREVIEWVERSION}" = X + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for release with git" >&5 +$as_echo_n "checking for release with git... " >&6; } +if git describe --tags > /dev/null 2> /dev/null then - PREVIEWVERSION=${PREVIEWDATE} - { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using ${PREVIEWVERSION} instead" >&5 + if test "X`git describe --tags | sed 's/release_.._..//'`" = X + then + PREVIEWVERSION=`git describe --tags` + else + PREVIEWVERSION=${PREVIEWDATE} + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using ${PREVIEWVERSION} instead" >&5 $as_echo "not found, using ${PREVIEWVERSION} instead" >&6; } + fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PREVIEWVERSION}" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: git not found, checking for release in ChangeLog:" >&5 +$as_echo "git not found, checking for release in ChangeLog:" >&6; } + PREVIEWVERSION=`sed -n '2,/^[0-9]/s/.*Version \(.*\) released\..*/\1/p' "ChangeLog-preview"` + if test "X${PREVIEWVERSION}" = X + then + PREVIEWVERSION=${PREVIEWDATE} + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using ${PREVIEWVERSION} instead" >&5 +$as_echo "not found, using ${PREVIEWVERSION} instead" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PREVIEWVERSION}" >&5 $as_echo "${PREVIEWVERSION}" >&6; } + fi fi @@ -2296,6 +2376,15 @@ fi +# Check whether --enable-preview was given. +if test "${enable_preview+set}" = set; then : + enableval=$enable_preview; preview_enabled="$enableval" +else + preview_enabled="yes" +fi + + + if test ${EMACS_FLAVOR} = "xemacs" ; then # Check whether --with-packagedir was given. @@ -2370,8 +2459,10 @@ fi + PLAT_LISP=prv-xemacs.el else packagedir=no + PLAT_LISP=prv-emacs.el fi if test "X${packagedir}" = Xno @@ -2482,6 +2573,37 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${auctexstartfile}" >&5 $as_echo "${auctexstartfile}" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking what file to use for preview startup" >&5 +$as_echo_n "checking what file to use for preview startup... " >&6; } + +# Check whether --with-previewstartfile was given. +if test "${with_previewstartfile+set}" = set; then : + withval=$with_previewstartfile; previewstartfile="${withval}" +else + _tmpdir_="${lispdir}" + __ac_tmp_oldprefix__="${prefix}" + __ac_tmp_oldexec_prefix__="$exec_prefix" + test "x${prefix}" = xNONE && prefix="${ac_default_prefix}" + test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}' + while :;do case "$_tmpdir_" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g' +eval "_tmpdir_=`sed ${__ac_tmp__} <&5 +$as_echo "${previewstartfile}" >&6; } + packagelispdir="${lispdir}/auctex" packagedatadir="${packagelispdir}" texsitedir="${lispdir}" @@ -2491,6 +2613,7 @@ packagelispdir="${packagedir}/lisp/auctex" texsitedir="$packagelispdir" auctexstartfile="${packagelispdir}"/auto-autoloads.el + previewstartfile="${packagelispdir}"/auto-autoloads.el packagedatadir="${packagedir}/etc/auctex" infodir="${packagedir}/info" INSTALL_INFO=: @@ -2498,6 +2621,8 @@ + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the package lisp files go" >&5 $as_echo_n "checking where the package lisp files go... " >&6; } @@ -2966,29 +3091,29 @@ - -if test "x$PERL" = x +if test "X${preview_enabled}" = Xyes then - # Extract the first word of "perl", so it can be a program name with args. -set dummy perl; ac_word=$2 + + for ac_prog in gs GSWIN32C.EXE +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PERL+:} false; then : +if ${ac_cv_prog_GS+:} false; then : $as_echo_n "(cached) " >&6 else - case $PERL in - [\\/]* | ?:[\\/]*) - ac_cv_path_PERL="$PERL" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR + if test -n "$GS"; then + ac_cv_prog_GS="$GS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" + ac_cv_prog_GS="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi @@ -2996,75 +3121,46 @@ done IFS=$as_save_IFS - test -z "$ac_cv_path_PERL" && ac_cv_path_PERL=":" - ;; -esac fi -PERL=$ac_cv_path_PERL -if test -n "$PERL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 -$as_echo "$PERL" >&6; } +fi +GS=$ac_cv_prog_GS +if test -n "$GS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5 +$as_echo "$GS" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi -fi + test -n "$GS" && break +done +test -n "$GS" || GS="NONE" -# Extract the first word of "makeinfo", so it can be a program name with args. -set dummy makeinfo; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_MAKEINFO+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $MAKEINFO in - [\\/]* | ?:[\\/]*) - ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS + elisp="(if (member dir (list \"NONE\" (if (eq system-type 'windows-nt) \"GSWIN32C.EXE\" \"gs\"))) \"\" \`(defvar preview-gs-command ,dir))" + OUTPUT=./conftest-$$ + echo "${EMACS}" -batch -no-site-file -eval "(let* ((dir(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${GS}" >& 5 2>&1 + "${EMACS}" -batch -no-site-file -eval "(let* ((dir(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${GS}" >& 5 2>&1 + lispGS="`cat ${OUTPUT}`" + echo "=> ${lispGS}" >& 5 2>&1 + rm -f ${OUTPUT} - test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO=":" - ;; -esac -fi -MAKEINFO=$ac_cv_path_MAKEINFO -if test -n "$MAKEINFO"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 -$as_echo "$MAKEINFO" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi -# Extract the first word of "texi2html", so it can be a program name with args. -set dummy texi2html; ac_word=$2 + + +# Extract the first word of "latex", so it can be a program name with args. +set dummy latex; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_TEXI2HTML+:} false; then : +if ${ac_cv_path_LATEX+:} false; then : $as_echo_n "(cached) " >&6 else - case $TEXI2HTML in + case $LATEX in [\\/]* | ?:[\\/]*) - ac_cv_path_TEXI2HTML="$TEXI2HTML" # Let the user override the test with a path. + ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -3074,7 +3170,7 @@ test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_TEXI2HTML="$as_dir/$ac_word$ac_exec_ext" + ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi @@ -3082,30 +3178,36 @@ done IFS=$as_save_IFS - test -z "$ac_cv_path_TEXI2HTML" && ac_cv_path_TEXI2HTML=":" + test -z "$ac_cv_path_LATEX" && ac_cv_path_LATEX="NONE" ;; esac fi -TEXI2HTML=$ac_cv_path_TEXI2HTML -if test -n "$TEXI2HTML"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2HTML" >&5 -$as_echo "$TEXI2HTML" >&6; } +LATEX=$ac_cv_path_LATEX +if test -n "$LATEX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5 +$as_echo "$LATEX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi -# Extract the first word of "texi2dvi", so it can be a program name with args. -set dummy texi2dvi; ac_word=$2 +if test "${LATEX}"x = NONEx ; then + as_fn_error $? "LaTeX not found, aborting! + You must install LaTeX for preview to work." "$LINENO" 5 +fi + + + # Extract the first word of "pdflatex", so it can be a program name with args. +set dummy pdflatex; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_TEXI2DVI+:} false; then : +if ${ac_cv_path_PDFLATEX+:} false; then : $as_echo_n "(cached) " >&6 else - case $TEXI2DVI in + case $PDFLATEX in [\\/]* | ?:[\\/]*) - ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a path. + ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -3115,7 +3217,7 @@ test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_TEXI2DVI="$as_dir/$ac_word$ac_exec_ext" + ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi @@ -3123,30 +3225,38 @@ done IFS=$as_save_IFS - test -z "$ac_cv_path_TEXI2DVI" && ac_cv_path_TEXI2DVI=":" ;; esac fi -TEXI2DVI=$ac_cv_path_TEXI2DVI -if test -n "$TEXI2DVI"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2DVI" >&5 -$as_echo "$TEXI2DVI" >&6; } +PDFLATEX=$ac_cv_path_PDFLATEX +if test -n "$PDFLATEX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5 +$as_echo "$PDFLATEX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi -# Extract the first word of "texi2pdf", so it can be a program name with args. -set dummy texi2pdf; ac_word=$2 + + # Determine which latex-style components to install + # To match .sty, .def, .cfg, but _not_ .drv + TEXMFGEN=`sed -n 's/^%.*file[{]\\([^}.]*\\.[sdc][tef][yfg]\\)[}].*/\\1/p' latex/preview.dtx` + # Replace newlines with spaces. + TEXMFGEN="`echo ${TEXMFGEN}`" + + + +# Extract the first word of "tex", so it can be a program name with args. +set dummy tex; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_TEXI2PDF+:} false; then : +if ${ac_cv_path_TEX+:} false; then : $as_echo_n "(cached) " >&6 else - case $TEXI2PDF in + case $TEX in [\\/]* | ?:[\\/]*) - ac_cv_path_TEXI2PDF="$TEXI2PDF" # Let the user override the test with a path. + ac_cv_path_TEX="$TEX" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -3156,7 +3266,7 @@ test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_TEXI2PDF="$as_dir/$ac_word$ac_exec_ext" + ac_cv_path_TEX="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi @@ -3164,101 +3274,954 @@ done IFS=$as_save_IFS - test -z "$ac_cv_path_TEXI2PDF" && ac_cv_path_TEXI2PDF=":" + test -z "$ac_cv_path_TEX" && ac_cv_path_TEX="NONE" ;; esac fi -TEXI2PDF=$ac_cv_path_TEXI2PDF -if test -n "$TEXI2PDF"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2PDF" >&5 -$as_echo "$TEXI2PDF" >&6; } +TEX=$ac_cv_path_TEX +if test -n "$TEX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5 +$as_echo "$TEX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi +if test "${TEX}"x = NONEx ; then + as_fn_error $? "NONE" "$LINENO" 5 +fi -if test "X${INSTALL_INFO}" = X -then - # Extract the first word of "install-info", so it can be a program name with args. -set dummy install-info; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_INSTALL_INFO+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $INSTALL_INFO in - [\\/]* | ?:[\\/]*) - ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in ${PATH} /usr/sbin /sbin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":" - ;; -esac -fi -INSTALL_INFO=$ac_cv_path_INSTALL_INFO -if test -n "$INSTALL_INFO"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 -$as_echo "$INSTALL_INFO" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } +# Check whether --with-texmf-dir was given. +if test "${with_texmf_dir+set}" = set; then : + withval=$with_texmf_dir; texmfdir="${withval}" ; + if test "x${texmfdir}" = xno + then + previewtexmfdir="${packagedatadir}/latex" + previewdocdir="${packagedatadir}/doc" + else + __ac_tmp_oldprefix__="${prefix}" + __ac_tmp_oldexec_prefix__="$exec_prefix" + test "x${prefix}" = xNONE && prefix="${ac_default_prefix}" + test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}' + while :;do case "$withval" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g' +eval "withval=`sed ${__ac_tmp__} <&5 +$as_echo_n "checking for prefix from kpsepath... " >&6; } -fi -prefix="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <& 5 2>&1 + "${EMACS}" -batch -no-site-file -eval "(let* ((cmd(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" kpsepath >& 5 2>&1 + texprefix="`cat ${OUTPUT}`" + echo "=> ${texprefix}" >& 5 2>&1 + rm -f ${OUTPUT} + + +if test "x${texprefix}" != "xNONE" +then + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"${texprefix}\"" >&5 +$as_echo "\"${texprefix}\"" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TDS-compliant directory" >&5 +$as_echo_n "checking for TDS-compliant directory... " >&6; } + +pathoutput="`kpsepath -n latex tex`" + + for currentprefix in '${datadir}/texmf' "${texprefix}/share/texmf-local" "${texprefix}/share/texmf" "${texprefix}/texmf-local" "${texprefix}/texmf" + do + expprefix="${currentprefix}" + __ac_tmp_oldprefix__="${prefix}" + __ac_tmp_oldexec_prefix__="$exec_prefix" + test "x${prefix}" = xNONE && prefix="${ac_default_prefix}" + test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}' + while :;do case "$expprefix" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g' +eval "expprefix=`sed ${__ac_tmp__} <& 5 2>&1 + "${EMACS}" -batch -no-site-file -eval "(let* ((prefix(pop command-line-args-left)) (expanded(pop command-line-args-left)) (pathoutput(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${currentprefix}" "${expprefix}" "${pathoutput}" >& 5 2>&1 + texmfdir="`cat ${OUTPUT}`" + echo "=> ${texmfdir}" >& 5 2>&1 + rm -f ${OUTPUT} + + if test "$texmfdir" != NONE; then break; fi; done + +if test -n "${texmfdir}" -a "${texmfdir}" != "NONE" ; then + previewdocdir="${texmfdir}/doc/latex/styles" + previewtexmfdir="${texmfdir}/tex/latex/preview" +fi + +if test -z "${previewtexmfdir}" -o "${previewtexmfdir}" = no ; then + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TeX directory hierarchy" >&5 +$as_echo_n "checking for TeX directory hierarchy... " >&6; } + + for currentprefix in '${datadir}/texmf' "${texprefix}/share/texmf-local" "${texprefix}/share/texmf" "${texprefix}/texmf-local" "${texprefix}/texmf" '${datadir}' "${texprefix}/share" "${texprefix}" + do + expprefix="${currentprefix}" + __ac_tmp_oldprefix__="${prefix}" + __ac_tmp_oldexec_prefix__="$exec_prefix" + test "x${prefix}" = xNONE && prefix="${ac_default_prefix}" + test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}' + while :;do case "$expprefix" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g' +eval "expprefix=`sed ${__ac_tmp__} <& 5 2>&1 + "${EMACS}" -batch -no-site-file -eval "(let* ((prefix(pop command-line-args-left)) (expanded(pop command-line-args-left)) (pathoutput(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${currentprefix}" "${expprefix}" "${pathoutput}" >& 5 2>&1 + texmfdir="`cat ${OUTPUT}`" + echo "=> ${texmfdir}" >& 5 2>&1 + rm -f ${OUTPUT} + + if test "$texmfdir" != NONE; then break; fi; done + +if test -n "${texmfdir}" -a "${texmfdir}" != "NONE" ; then + previewtexmfdir="${texmfdir}/preview" + previewdocdir="${texmfdir}/preview" +fi +fi + +if test -z "${previewtexmfdir}" -o "${previewtexmfdir}" = no ; then + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TeX input directory" >&5 +$as_echo_n "checking for TeX input directory... " >&6; } + + for currentprefix in '${datadir}' "${texprefix}/share" "${texprefix}" + do + expprefix="${currentprefix}" + __ac_tmp_oldprefix__="${prefix}" + __ac_tmp_oldexec_prefix__="$exec_prefix" + test "x${prefix}" = xNONE && prefix="${ac_default_prefix}" + test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}' + while :;do case "$expprefix" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g' +eval "expprefix=`sed ${__ac_tmp__} <& 5 2>&1 + "${EMACS}" -batch -no-site-file -eval "(let* ((prefix(pop command-line-args-left)) (expanded(pop command-line-args-left)) (pathoutput(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${currentprefix}" "${expprefix}" "${pathoutput}" >& 5 2>&1 + texmfdir="`cat ${OUTPUT}`" + echo "=> ${texmfdir}" >& 5 2>&1 + rm -f ${OUTPUT} + + if test "$texmfdir" != NONE; then break; fi; done + +if test -n "${texmfdir}" -a "${texmfdir}" != "NONE" ; then + previewtexmfdir="${texmfdir}" + previewdocdir="${texmfdir}" +fi +fi +fi + +if test -z "${previewtexmfdir}" -o "${previewtexmfdir}" = no ; then + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error $? "Cannot find the texmf directory! +Please use --with-texmf-dir=dir to specify where the preview tex files go" "$LINENO" 5 +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${texmfdir}" >&5 +$as_echo "${texmfdir}" >&6; } +fi +fi + +echo Preview will be placed in ${previewtexmfdir} +echo Preview docs will be placed in ${previewdocdir} + + + + + if test "x${texmfdir}" = "xno" + then + packagetexstyles="${packagedatadir}/latex" + + tmpdir="${packagetexstyles}" + __ac_tmp_oldprefix__="${prefix}" + __ac_tmp_oldexec_prefix__="$exec_prefix" + test "x${prefix}" = xNONE && prefix="${ac_default_prefix}" + test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}' + while :;do case "$tmpdir" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g' +eval "tmpdir=`sed ${__ac_tmp__} <& 5 2>&1 + "${EMACS}" -batch -no-site-file -eval "(let* ((path(pop command-line-args-left)) (lispdir(pop command-line-args-left)) (startup(pop command-line-args-left)) (target(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${tmpdir}" "${explispdir}" "${expstartup}" >& 5 2>&1 + lisppackagetexstyles="`cat ${OUTPUT}`" + echo "=> ${lisppackagetexstyles}" >& 5 2>&1 + rm -f ${OUTPUT} + + + + lisppackagetexstyles="(defvar preview-TeX-style-dir ${lisppackagetexstyles})" + test "X${TEXHASH}" = X && TEXHASH=: + else + lisppackagetexstyles= + fi + + + # Be very careful about assuming things about the available hash programs + # MiKTeX comes with a braindead link to mktexlsr, apparently, so first + # try the regular utility from them. + + + if test "X${TEXHASH}" = "X" + then + # Extract the first word of "texhash", so it can be a program name with args. +set dummy texhash; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_TEXHASH+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $TEXHASH in + [\\/]* | ?:[\\/]*) + ac_cv_path_TEXHASH="$TEXHASH" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_TEXHASH="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +TEXHASH=$ac_cv_path_TEXHASH +if test -n "$TEXHASH"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXHASH" >&5 +$as_echo "$TEXHASH" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + # Extract the first word of "initexmf", so it can be a program name with args. +set dummy initexmf; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_TEXHASH+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$TEXHASH"; then + ac_cv_prog_TEXHASH="$TEXHASH" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_TEXHASH="initexmf -u" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +TEXHASH=$ac_cv_prog_TEXHASH +if test -n "$TEXHASH"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXHASH" >&5 +$as_echo "$TEXHASH" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + if test "X${TEXHASH}" = X + then + for ac_prog in mktexlsr MakeTeXls-R +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_TEXHASH+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $TEXHASH in + [\\/]* | ?:[\\/]*) + ac_cv_path_TEXHASH="$TEXHASH" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_TEXHASH="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +TEXHASH=$ac_cv_path_TEXHASH +if test -n "$TEXHASH"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXHASH" >&5 +$as_echo "$TEXHASH" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$TEXHASH" && break +done +test -n "$TEXHASH" || TEXHASH=":" + + fi + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glaring installation conflicts" >&5 +$as_echo_n "checking for glaring installation conflicts... " >&6; } + exppackagelispdir="$packagelispdir" + __ac_tmp_oldprefix__="${prefix}" + __ac_tmp_oldexec_prefix__="$exec_prefix" + test "x${prefix}" = xNONE && prefix="${ac_default_prefix}" + test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}' + while :;do case "$exppackagelispdir" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g' +eval "exppackagelispdir=`sed ${__ac_tmp__} <& 5 2>&1 + "${EMACS}" -batch -eval "(let* ((packagelispdir(pop command-line-args-left)) (previewstartfile(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${exppackagelispdir}" "${exppreviewstartfile}" >& 5 2>&1 + shadows="`cat ${OUTPUT}`" + echo "=> ${shadows}" >& 5 2>&1 + rm -f ${OUTPUT} + + if test "NONE${shadows}" != NONE + then + conflictsmsg="Conflicts with previous installations have been detected. + Please fix them before continuing. + " + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ouch! + " >&5 +$as_echo "ouch! + " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${shadows} + " >&5 +$as_echo "$as_me: WARNING: ${shadows} + " >&2;} + else + conflictsmsg= + { $as_echo "$as_me:${as_lineno-$LINENO}: result: probably none" >&5 +$as_echo "probably none" >&6; } + fi + + texmfdir="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PERL+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PERL in + [\\/]* | ?:[\\/]*) + ac_cv_path_PERL="$PERL" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_PERL" && ac_cv_path_PERL=":" + ;; +esac +fi +PERL=$ac_cv_path_PERL +if test -n "$PERL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 +$as_echo "$PERL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi + + + +# Extract the first word of "makeinfo", so it can be a program name with args. +set dummy makeinfo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_MAKEINFO+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MAKEINFO in + [\\/]* | ?:[\\/]*) + ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO=":" + ;; +esac +fi +MAKEINFO=$ac_cv_path_MAKEINFO +if test -n "$MAKEINFO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 +$as_echo "$MAKEINFO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "texi2html", so it can be a program name with args. +set dummy texi2html; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_TEXI2HTML+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $TEXI2HTML in + [\\/]* | ?:[\\/]*) + ac_cv_path_TEXI2HTML="$TEXI2HTML" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_TEXI2HTML="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_TEXI2HTML" && ac_cv_path_TEXI2HTML=":" + ;; +esac +fi +TEXI2HTML=$ac_cv_path_TEXI2HTML +if test -n "$TEXI2HTML"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2HTML" >&5 +$as_echo "$TEXI2HTML" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "texi2dvi", so it can be a program name with args. +set dummy texi2dvi; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_TEXI2DVI+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $TEXI2DVI in + [\\/]* | ?:[\\/]*) + ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_TEXI2DVI="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_TEXI2DVI" && ac_cv_path_TEXI2DVI=":" + ;; +esac +fi +TEXI2DVI=$ac_cv_path_TEXI2DVI +if test -n "$TEXI2DVI"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2DVI" >&5 +$as_echo "$TEXI2DVI" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "texi2pdf", so it can be a program name with args. +set dummy texi2pdf; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_TEXI2PDF+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $TEXI2PDF in + [\\/]* | ?:[\\/]*) + ac_cv_path_TEXI2PDF="$TEXI2PDF" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_TEXI2PDF="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_TEXI2PDF" && ac_cv_path_TEXI2PDF=":" + ;; +esac +fi +TEXI2PDF=$ac_cv_path_TEXI2PDF +if test -n "$TEXI2PDF"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2PDF" >&5 +$as_echo "$TEXI2PDF" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + + +if test "X${INSTALL_INFO}" = X +then + # Extract the first word of "install-info", so it can be a program name with args. +set dummy install-info; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_INSTALL_INFO+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $INSTALL_INFO in + [\\/]* | ?:[\\/]*) + ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in ${PATH} /usr/sbin /sbin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":" + ;; +esac +fi +INSTALL_INFO=$ac_cv_path_INSTALL_INFO +if test -n "$INSTALL_INFO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 +$as_echo "$INSTALL_INFO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi + +prefix="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <confcache <<\_ACEOF # This file is a shell script that caches the results of configure @@ -3883,7 +4846,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by auctex $as_me 11.88, which was +This file was extended by auctex $as_me 11.90, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -3936,7 +4899,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -auctex config.status 11.88 +auctex config.status 11.90 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" @@ -4049,9 +5012,10 @@ case $ac_config_target in "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "tex-site.el.out") CONFIG_FILES="$CONFIG_FILES tex-site.el.out:tex-site.el.in" ;; - "preview/preview.el") CONFIG_FILES="$CONFIG_FILES preview/preview.el" ;; "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; "auctex.el") CONFIG_FILES="$CONFIG_FILES auctex.el" ;; + "preview.el") CONFIG_FILES="$CONFIG_FILES preview.el" ;; + "latex/Makefile") CONFIG_FILES="$CONFIG_FILES latex/Makefile" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac @@ -4501,151 +5465,6 @@ # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi - -# -# CONFIG_SUBDIRS section. -# -if test "$no_recursion" != yes; then - - # Remove --cache-file, --srcdir, and --disable-option-checking arguments - # so they do not pile up. - ac_sub_configure_args= - ac_prev= - eval "set x $ac_configure_args" - shift - for ac_arg - do - if test -n "$ac_prev"; then - ac_prev= - continue - fi - case $ac_arg in - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ - | --c=*) - ;; - --config-cache | -C) - ;; - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - ;; - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - ;; - --disable-option-checking) - ;; - *) - case $ac_arg in - *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - as_fn_append ac_sub_configure_args " '$ac_arg'" ;; - esac - done - - # Always prepend --prefix to ensure using the same prefix - # in subdir configurations. - ac_arg="--prefix=$prefix" - case $ac_arg in - *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" - - # Pass --silent - if test "$silent" = yes; then - ac_sub_configure_args="--silent $ac_sub_configure_args" - fi - - # Always prepend --disable-option-checking to silence warnings, since - # different subdirs can have different --enable and --with options. - ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" - - ac_popdir=`pwd` - for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue - - # Do not complain, so a configure script can configure whichever - # parts of a large source tree are present. - test -d "$srcdir/$ac_dir" || continue - - ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" - $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 - $as_echo "$ac_msg" >&6 - as_dir="$ac_dir"; as_fn_mkdir_p - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - - cd "$ac_dir" - - # Check for guested configure; otherwise get Cygnus style configure. - if test -f "$ac_srcdir/configure.gnu"; then - ac_sub_configure=$ac_srcdir/configure.gnu - elif test -f "$ac_srcdir/configure"; then - ac_sub_configure=$ac_srcdir/configure - elif test -f "$ac_srcdir/configure.in"; then - # This should be Cygnus configure. - ac_sub_configure=$ac_aux_dir/configure - else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 -$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} - ac_sub_configure= - fi - - # The recursion is here. - if test -n "$ac_sub_configure"; then - # Make the cache file name correct relative to the subdirectory. - case $cache_file in - [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; - *) # Relative name. - ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; - esac - - { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 -$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} - # The eval makes quoting arguments work. - eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ - --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || - as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 - fi - - cd "$ac_popdir" - done -fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} diff -Nru auctex-11.88/configure.ac auctex-11.90/configure.ac --- auctex-11.88/configure.ac 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/configure.ac 2017-01-10 21:35:28.000000000 +0000 @@ -21,17 +21,17 @@ dnl Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, dnl MA 02110-1301, USA. -AC_INIT(auctex,11.88,bug-auctex@gnu.org) +AC_INIT(auctex,11.90,bug-auctex@gnu.org) AC_CHECK_PROGS_REQUIRED(MAKECMD, make, [make not found, aborting!]) AC_PROG_MAKE_SET AC_PROG_INSTALL -AC_DATE_VERSION_FROM_CHANGELOG(AUCTEXDATE,AUCTEXVERSION,ChangeLog) +AC_DATE_VERSION_FROM_CHANGELOG(AUCTEXDATE,AUCTEXVERSION,ChangeLog.1) AC_SUBST(AUCTEXDATE) AC_SUBST(AUCTEXVERSION) -AC_DATE_VERSION_FROM_CHANGELOG(PREVIEWDATE,PREVIEWVERSION,preview/ChangeLog) +AC_DATE_VERSION_FROM_CHANGELOG(PREVIEWDATE,PREVIEWVERSION,ChangeLog-preview) AC_SUBST(PREVIEWDATE) AC_SUBST(PREVIEWVERSION) @@ -56,10 +56,18 @@ fi], [VALID_BUILD_DIR]) +AC_ARG_ENABLE(preview, + [ --disable-preview disable inclusion of preview-latex], + [preview_enabled="$enableval"], + [preview_enabled="yes"]) +AC_SUBST(preview_enabled) + if test ${EMACS_FLAVOR} = "xemacs" ; then EMACS_PATH_PACKAGEDIR + PLAT_LISP=prv-xemacs.el else packagedir=no + PLAT_LISP=prv-emacs.el fi if test "X${packagedir}" = Xno @@ -78,6 +86,21 @@ auctexstartfile="${lispdir}/auctex.el" fi]) AC_MSG_RESULT([[${auctexstartfile}]]) + + AC_MSG_CHECKING(what file to use for preview startup) + AC_ARG_WITH(previewstartfile, + [[ --with-previewstartfile=FILE What file to use for preview startup.]], + [[ previewstartfile="${withval}" ]], + [ _tmpdir_="${lispdir}" + AC_FULL_EXPAND(_tmpdir_) + if test -d "${_tmpdir_}/site-start.d" + then + previewstartfile="${lispdir}/site-start.d/preview-latex.el" + else + previewstartfile="${lispdir}/preview-latex.el" + fi]) + AC_MSG_RESULT([[${previewstartfile}]]) + packagelispdir="${lispdir}/auctex" packagedatadir="${packagelispdir}" texsitedir="${lispdir}" @@ -87,12 +110,15 @@ packagelispdir="${packagedir}/lisp/auctex" texsitedir="$packagelispdir" auctexstartfile="${packagelispdir}"/auto-autoloads.el + previewstartfile="${packagelispdir}"/auto-autoloads.el packagedatadir="${packagedir}/etc/auctex" infodir="${packagedir}/info" INSTALL_INFO=: fi AC_SUBST(auctexstartfile) +AC_SUBST(previewstartfile) +AC_SUBST(PLAT_LISP) AC_MSG_CHECKING([where the package lisp files go]) AC_ARG_WITH(packagelispdir, @@ -129,6 +155,111 @@ AC_PATH_PROG(PDFTEX, pdftex, :) AC_PATH_PROG(DVIPS, dvips, :) + +dnl Preview related options. +if test "X${preview_enabled}" = Xyes +then + AC_ARG_VAR(GS,[Ghostscript executable for batch operation]) + AC_CHECK_PROGS(GS, gs GSWIN32C.EXE, NONE) + + EMACS_LISP([[lispGS]],[[(if (member dir (list \"NONE\" (if (eq system-type 'windows-nt) \"GSWIN32C.EXE\" \"gs\"))) \"\" \`(defvar preview-gs-command ,dir))]],-no-site-file,[[dir]],[["${GS}"]]) + AC_SUBST(lispGS) + + dnl check to see if GS supports -dTextAlphaBits and -dGraphicsAlphaBits + dnl Check to see if specific drivers are built in. + dnl Need table of mappings, with priority + + AC_PATH_PROG_REQUIRED(LATEX, latex, [LaTeX not found, aborting! + You must install LaTeX for preview to work.]) + + AC_PATH_PROG(PDFLATEX, pdflatex) + + # Determine which latex-style components to install + # To match .sty, .def, .cfg, but _not_ .drv + TEXMFGEN=[`sed -n 's/^%.*file[{]\\([^}.]*\\.[sdc][tef][yfg]\\)[}].*/\\1/p' latex/preview.dtx`] + # Replace newlines with spaces. + TEXMFGEN="`echo ${TEXMFGEN}`" + AC_SUBST(TEXMFGEN) + + AC_PATH_PROG_REQUIRED(TEX, tex, NONE) + + TEX_PATH_TEXMFDIR + + if test "x${texmfdir}" = "xno" + then + packagetexstyles="${packagedatadir}/latex" + AC_LISPIFY_DIR(packagetexstyles,"${previewstartfile}") + lisppackagetexstyles="(defvar preview-TeX-style-dir ${lisppackagetexstyles})" + test "X${TEXHASH}" = X && TEXHASH=: + else + lisppackagetexstyles= + fi + AC_SUBST(lisppackagetexstyles) + + # Be very careful about assuming things about the available hash programs + # MiKTeX comes with a braindead link to mktexlsr, apparently, so first + # try the regular utility from them. + AC_ARG_VAR(TEXHASH,[command to update the TeX filename database. + Set to : to skip updating the database on installation. + This is the default for --without-texmf-dir]) + + if test "X${TEXHASH}" = "X" + then + AC_PATH_PROG(TEXHASH, texhash) + AC_CHECK_PROG(TEXHASH, initexmf, initexmf -u) + if test "X${TEXHASH}" = X + then + AC_PATH_PROGS(TEXHASH, mktexlsr MakeTeXls-R, :) + fi + fi + + AC_MSG_CHECKING([[for glaring installation conflicts]]) + exppackagelispdir="$packagelispdir" + AC_FULL_EXPAND(exppackagelispdir) + exppreviewstartfile="$previewstartfile" + AC_FULL_EXPAND(exppreviewstartfile) + + EMACS_LISP(shadows,[[ + (concat + (and (setq tmp (locate-library \"preview.elc\")) + (not (string= (file-truename tmp) + (file-truename (expand-file-name \"preview.elc\" + packagelispdir)))) + (format \"Conflicting previous installation in \`%s' found!\n\" + (file-name-directory tmp))) + (and (setq tmp (locate-library \"preview-latex.el\")) + (not (string= (file-truename tmp) + (file-truename previewstartfile))) + (format \"Conflicting previous startup file \`%s' found!\n\" tmp)))]],, + [[packagelispdir previewstartfile]],[["${exppackagelispdir}" "${exppreviewstartfile}"]]) + if test "NONE${shadows}" != NONE + then + conflictsmsg="Conflicts with previous installations have been detected. + Please fix them before continuing. + " + AC_MSG_RESULT([[ouch! + ]]) + AC_MSG_WARN([[${shadows} + ]]) + else + conflictsmsg= + AC_MSG_RESULT([[probably none]]) + fi + + AC_SHELL_QUOTIFY(texmfdir) + AC_SHELL_QUOTIFY(exec_prefix) + AC_SHELL_QUOTIFY(libdir) + AC_SHELL_QUOTIFY(previewtexmfdir) + AC_SHELL_QUOTIFY(previewdocdir) + AC_SHELL_QUOTIFY(previewstartfile) + AC_SHELL_QUOTIFY(auctexdir) + AC_SHELL_QUOTIFY(datadir) + AC_SHELL_QUOTIFY(GS) + AC_SHELL_QUOTIFY(TEXHASH) + AC_SHELL_QUOTIFY(LATEX) + AC_SHELL_QUOTIFY(PDFLATEX) +fi + AC_ARG_VAR(PERL,[Perl executable. If set to :, some documentation cannot be regenerated, but installation of an unmodified tarball will succeed.]) @@ -154,32 +285,6 @@ AC_PATH_PROG(INSTALL_INFO, install-info, :, ${PATH} /usr/sbin /sbin) fi -AC_ARG_ENABLE(preview, - [ --disable-preview disable inclusion of preview-latex], - [preview_enabled="$enableval"], - [preview_enabled="yes"]) -AC_SUBST(preview_enabled) - -if test "X${preview_enabled}" = Xyes -then - auctexdir=..; export auctexdir - export PDFTEX - export DVIPS - # Export unquoted variables. - TEX_UNQUOTED="$TEX" - export TEX_UNQUOTED - packagedir_unquoted="$packagedir" - export packagedir_unquoted - packagelispdir_unquoted="$packagelispdir" - export packagelispdir_unquoted - packagedatadir_unquoted="$packagedatadir" - export packagedatadir_unquoted - EMACS_UNQUOTED="$EMACS" - export EMACS_UNQUOTED - AC_CONFIG_SUBDIRS(preview) -fi -AC_SUBST(subdirs) - AC_SHELL_QUOTIFY(prefix) AC_SHELL_QUOTIFY(localstatedir) AC_SHELL_QUOTIFY(packagedir) @@ -201,7 +306,7 @@ AC_SHELL_QUOTIFY(TEXI2DVI) AC_SHELL_QUOTIFY(TEXI2PDF) -AC_OUTPUT(Makefile tex-site.el.out:tex-site.el.in preview/preview.el doc/Makefile auctex.el) +AC_OUTPUT(Makefile tex-site.el.out:tex-site.el.in doc/Makefile auctex.el preview.el latex/Makefile) cat >&2 < @@ -64,16 +64,19 @@ ;;; variables -;; globals used in certain macro's. -(defvar done-mark nil - "Position of point afterwards, default nil (meaning end).") - -(defvar reference nil - "Set by `ConTeXt-section-ref', used by `ConTeXt-section-section'.") - -(defvar title nil - "Set by `ConTeXt-section-title', used by `ConTeXt-section-section'.") - +;; Dynamically scoped vars used in certain macro's. +;; BEWARE: We used to give them a global nil value, but this can mess up poor +;; unrelated packages using those same vars but expecting them to be +;; lexically scoped. +;; So don't give them a global value, which makes sure the effect of `defvar' +;; localized to this file! +(defvar done-mark) ;Position of point afterwards, default nil (meaning end) + +(defvar reference);Used by `ConTeXt-section-ref' and `ConTeXt-section-section'. + +(defvar title); Used by `ConTeXt-section-title' and `ConTeXt-section-section'. +(defvar name) +(defvar level) ;; others @@ -302,8 +305,8 @@ (ConTeXt-up-section (- val))) (t val))) (name (ConTeXt-numbered-section-name level)) - (toc nil) (title "") + (reference nil) (done-mark (make-marker))) (newline) (run-hooks 'ConTeXt-numbered-section-hook) @@ -410,9 +413,9 @@ The following variables are set before the hooks are run -level - numeric section level, see the documentation of `ConTeXt-section'. -name - name of the sectioning command, derived from `level'. -title - The title of the section, default to an empty string. +`level' - numeric section level, see the documentation of `ConTeXt-section'. +`name' - name of the sectioning command, derived from `level'. +`title' - The title of the section, default to an empty string. `done-mark' - Position of point afterwards, default nil (meaning end). The following standard hook exist - @@ -451,13 +454,14 @@ ConTeXt-section-title ConTeXt-section-ref ConTeXt-section-section) + ;; FIXME: I can't see where this variable is used! "List of hooks to run when a new section is inserted. The following variables are set before the hooks are run -level - numeric section level, see the documentation of `ConTeXt-section'. -name - name of the sectioning command, derived from `level'. -title - The title of the section, default to an empty string. +`level' - numeric section level, see the documentation of `ConTeXt-section'. +`name' - name of the sectioning command, derived from `level'. +`title' - The title of the section, default to an empty string. `done-mark' - Position of point afterwards, default nil (meaning end). The following standard hook exist - @@ -491,6 +495,14 @@ ConTeXt-section-ref ConTeXt-section-section)) +;; Define before first use. +(defcustom ConTeXt-Mark-version "II" + "ConTeXt Mark version used for running ConTeXt." + :type 'string + :group 'TeX-command) +(make-variable-buffer-local 'ConTeXt-Mark-version) +(put 'ConTeXt-Mark-version 'safe-local-variable 'stringp) + (defun ConTeXt-numbered-section-heading () "Hook to prompt for ConTeXt section name. Insert this hook into `ConTeXt-numbered-section-hook' to allow the user to change @@ -519,7 +531,7 @@ "Hook to prompt for ConTeXt section title. Insert this hook into `ConTeXt-(un)numbered-section-hook' to allow the user to change the title of the section inserted with `\\[ConTeXt-section]." - (setq title (read-string "What title: "))) + (setq title (TeX-read-string "What title: "))) (defun ConTeXt-section-section () "Hook to insert ConTeXt section command into the file. @@ -560,28 +572,48 @@ ;; Various (defun TeX-ConTeXt-sentinel (process name) "Cleanup TeX output buffer after running ConTeXt." - (cond ((TeX-TeX-sentinel-check process name)) - ((save-excursion - ;; in a full ConTeXt run there will multiple texutil - ;; outputs. Just looking for "another run needed" would - ;; find the first occurence - (goto-char (point-max)) - (re-search-backward "TeXUtil " nil t) - (re-search-forward "another run needed" nil t)) - (message (concat "You should run ConTeXt again " - "to get references right, " - (TeX-current-pages))) - (setq TeX-command-next TeX-command-default)) - ((re-search-forward "removed files :" nil t) - (message "sucessfully cleaned up")) - ((re-search-forward "^ ?TeX\\(Exec\\|Util\\)" nil t) ;; strange regexp --pg - (message (concat name ": successfully formatted " - (TeX-current-pages))) - (setq TeX-command-next TeX-command-Show)) - (t - (message (concat name ": problems after " - (TeX-current-pages))) - (setq TeX-command-next TeX-command-default)))) + (cond + ;; Mark IV + ((with-current-buffer TeX-command-buffer + (string= ConTeXt-Mark-version "IV")) + (cond ((TeX-TeX-sentinel-check process name)) + ((re-search-forward "fatal error: " nil t) + (message (concat name ": problems after " + (TeX-current-pages))) + (setq TeX-command-next TeX-command-default)) + (t + (message (concat name ": successfully formatted " + (TeX-current-pages))) + (setq TeX-command-next TeX-command-Show)))) + ;; Mark II + (t + (cond ((TeX-TeX-sentinel-check process name)) + ((save-excursion + ;; in a full ConTeXt run there will multiple texutil + ;; outputs. Just looking for "another run needed" would + ;; find the first occurence + (goto-char (point-max)) + (re-search-backward "TeXUtil " nil t) + (re-search-forward "another run needed" nil t)) + (message (concat "You should run ConTeXt again " + "to get references right, " + (TeX-current-pages))) + (setq TeX-command-next TeX-command-default)) + ((re-search-forward "removed files :" nil t) + (message "sucessfully cleaned up")) + ((re-search-forward "^ ?TeX\\(Exec\\|Util\\)" nil t) ;; strange regexp --pg + (message (concat name ": successfully formatted " + (TeX-current-pages))) + (setq TeX-command-next TeX-command-Show)) + (t + (message (concat name ": problems after " + (TeX-current-pages))) + (setq TeX-command-next TeX-command-default))))) + (unless TeX-error-list + (run-hook-with-args 'TeX-after-compilation-finished-functions + (with-current-buffer TeX-command-buffer + (expand-file-name + (TeX-active-master (TeX-output-extension))))))) ;;; Environments @@ -630,33 +662,26 @@ ;; this should not happen (error "Unknown interface: %s" ConTeXt-current-interface)))) - (defun ConTeXt-environment (arg) "Make ConTeXt environment (\\start...-\\stop... pair). With optional ARG, modify current environment." (interactive "*P") - (let ((environment ( - completing-read (concat "Environment type: (default " - (if (TeX-near-bobp) - "text" - ConTeXt-default-environment) - ") ") - ConTeXt-environment-list - nil nil nil - 'ConTeXt-environment-history) - )) - ;; Get default - (cond ((and (zerop (length environment)) - (TeX-near-bobp)) - (setq environment "text")) - ((zerop (length environment)) - (setq environment ConTeXt-default-environment)) - (t - (setq ConTeXt-default-environment environment))) + (let* ((default (cond + ((TeX-near-bobp) "text") + (t ConTeXt-default-environment))) + (environment + (completing-read (concat "Environment type: (default " default ") ") + ConTeXt-environment-list nil nil nil + 'ConTeXt-environment-history default))) + ;; Use `environment' as default for the next time only if it is different + ;; from the current default. + (unless (equal environment default) + (setq ConTeXt-default-environment environment)) (let ((entry (assoc environment ConTeXt-environment-list))) - (when (null entry) - (ConTeXt-add-environments (list environment))) + (if (null entry) + (ConTeXt-add-environments (list environment))) + (if arg (ConTeXt-modify-environment environment) (ConTeXt-environment-menu environment))))) @@ -856,8 +881,7 @@ (ConTeXt-environment-stop-name) "\\)" )) - (level 1) - (pos)) + (level 1)) ;;jump over the \start... when at the beginning of it. (when (looking-at (concat (regexp-quote TeX-esc) (ConTeXt-environment-start-name))) @@ -935,13 +959,13 @@ ;;; Macro Argument Hooks -(defun ConTeXt-optional-argument-insert (arg &optional prefix) +(defun ConTeXt-optional-argument-insert (arg &optional _prefix) "Insert ARG surrounded by square brackets." (insert ConTeXt-optop) (insert arg) (insert ConTeXt-optcl)) -(defun ConTeXt-required-argument-insert (arg &optional prefix) +(defun ConTeXt-required-argument-insert (arg &optional _prefix) "Insert ARG surrounded by curly braces." (insert TeX-grop) (insert arg) @@ -988,11 +1012,11 @@ "[][]\\|" ; display math delimitors (is this applicable to ConTeXt??) (ConTeXt-environment-start-name) "\\|" (ConTeXt-environment-stop-name) "\\|" - (mapconcat 'car ConTeXt-numbered-section-list "\\b\\|") "\\b\\|" - (mapconcat 'car ConTeXt-unnumbered-section-list "\\b\\|") "\\b\\|" - (mapconcat 'identity ConTeXt-extra-paragraph-commands "\\b\\|") + (mapconcat #'car ConTeXt-numbered-section-list "\\b\\|") "\\b\\|" + (mapconcat #'car ConTeXt-unnumbered-section-list "\\b\\|") "\\b\\|" + (mapconcat #'identity ConTeXt-extra-paragraph-commands "\\b\\|") "\\b\\|" - (mapconcat 'identity ConTeXt-item-list "\\b\\|") "\\b\\)")) + (mapconcat #'identity ConTeXt-item-list "\\b\\|") "\\b\\)")) ;; Outline support @@ -1012,14 +1036,14 @@ "[ \t]*" (regexp-quote TeX-esc) "\\(" - (mapconcat 'ConTeXt-environment-full-start-name ConTeXt-section-block-list "\\|") "\\|" - (mapconcat 'car ConTeXt-numbered-section-list "\\|") - (mapconcat 'car ConTeXt-unnumbered-section-list "\\|") + (mapconcat #'ConTeXt-environment-full-start-name ConTeXt-section-block-list "\\|") "\\|" + (mapconcat #'car ConTeXt-numbered-section-list "\\|") + (mapconcat #'car ConTeXt-unnumbered-section-list "\\|") "\\)\\b" (if TeX-outline-extra "\\|" "") - (mapconcat 'car TeX-outline-extra "\\|") + (mapconcat #'car TeX-outline-extra "\\|") "\\|" (ConTeXt-header-end) "\\b" "\\|" (ConTeXt-trailer-start) "\\b")) @@ -1047,7 +1071,7 @@ "Regular expression that matches a start of all environments mentioned in LIST." (concat "start\\(" - (mapconcat 'identity list "\\|") + (mapconcat #'identity list "\\|") "\\)\\b")) ;; The top headings are \starttext, \startfrontmatter, \startbodymatter etc. @@ -1150,7 +1174,7 @@ (modify-syntax-entry ?\( "." ConTeXt-indent-syntax-table) (modify-syntax-entry ?\) "." ConTeXt-indent-syntax-table)) -(defun ConTeXt-indent-line (&optional arg) +(defun ConTeXt-indent-line (&optional _arg) (with-syntax-table ConTeXt-indent-syntax-table ;; TODO: Rather than ignore $, we should try to be more clever about it. (let ((indent @@ -1517,55 +1541,55 @@ (TeX-update-style) (setq ConTeXt-menu-changed nil) (message "Updating section menu...") - (mapc 'ConTeXt-section-enable ConTeXt-section-list) + (mapc #'ConTeXt-section-enable ConTeXt-section-list) (message "Updating environment menu...") (easy-menu-change '("ConTeXt") ConTeXt-environment-menu-name (LaTeX-split-long-menu - (mapcar 'ConTeXt-environment-menu-entry + (mapcar #'ConTeXt-environment-menu-entry (ConTeXt-environment-list)))) (message "Updating modify environment menu...") (easy-menu-change '("ConTeXt") ConTeXt-environment-modify-menu-name (LaTeX-split-long-menu - (mapcar 'ConTeXt-environment-modify-menu-entry + (mapcar #'ConTeXt-environment-modify-menu-entry (ConTeXt-environment-list)))) (message "Updating define menu...") (easy-menu-change '("ConTeXt") ConTeXt-define-menu-name (LaTeX-split-long-menu - (mapcar 'ConTeXt-define-menu-entry + (mapcar #'ConTeXt-define-menu-entry ConTeXt-define-list))) (message "Updating setup menu...") (easy-menu-change '("ConTeXt") ConTeXt-setup-menu-name (LaTeX-split-long-menu - (mapcar 'ConTeXt-setup-menu-entry + (mapcar #'ConTeXt-setup-menu-entry ConTeXt-setup-list))) (message "Updating referencing menu...") (easy-menu-change '("ConTeXt") ConTeXt-referencing-menu-name (LaTeX-split-long-menu - (mapcar 'ConTeXt-referencing-menu-entry + (mapcar #'ConTeXt-referencing-menu-entry ConTeXt-referencing-list))) (message "Updating other macro's menu...") (easy-menu-change '("ConTeXt") ConTeXt-other-macro-menu-name (LaTeX-split-long-menu - (mapcar 'ConTeXt-other-macro-menu-entry + (mapcar #'ConTeXt-other-macro-menu-entry ConTeXt-other-macro-list))) (message "Updating project structure menu...") (easy-menu-change '("ConTeXt") ConTeXt-project-structure-menu-name (LaTeX-split-long-menu - (mapcar 'ConTeXt-project-structure-menu-entry + (mapcar #'ConTeXt-project-structure-menu-entry ConTeXt-project-structure-list))) (message "Updating section block menu...") (easy-menu-change '("ConTeXt") ConTeXt-section-block-menu-name (LaTeX-split-long-menu - (mapcar 'ConTeXt-section-block-menu-entry + (mapcar #'ConTeXt-section-block-menu-entry ConTeXt-section-block-list))) (message "Updating section menu...") (easy-menu-change '("ConTeXt") ConTeXt-numbered-section-menu-name (LaTeX-split-long-menu - (mapcar 'ConTeXt-numbered-section-menu-entry + (mapcar #'ConTeXt-numbered-section-menu-entry ConTeXt-numbered-section-list))) (easy-menu-change '("ConTeXt") ConTeXt-unnumbered-section-menu-name (LaTeX-split-long-menu - (mapcar 'ConTeXt-unnumbered-section-menu-entry + (mapcar #'ConTeXt-unnumbered-section-menu-entry ConTeXt-unnumbered-section-list))) (message "Updating...done") (and menu (easy-menu-return-item ConTeXt-mode-menu menu)) @@ -1576,21 +1600,41 @@ (defvar ConTeXt-texexec-option-nonstop "--nonstop " "Command line option for texexec to use nonstopmode.") +(defun ConTeXt-expand-command () + "Expand ConTeXt command. +Use `ConTeXt-Mark-version' to choose the command." + (cond + ((string= ConTeXt-Mark-version "IV") + "context") + ;; In any other case fall back on Mark II. + (t + "texexec"))) + (defun ConTeXt-expand-options () "Expand options for context command." - (concat - (let ((engine (eval (nth 4 (assq TeX-engine (TeX-engine-alist)))))) - (when engine - (format "--engine=%s " engine))) - (unless (eq ConTeXt-current-interface "en") - (format "--interface=%s " ConTeXt-current-interface)) - (when TeX-source-correlate-mode - (format "--passon=\"%s\" " - (if (eq (TeX-source-correlate-method-active) 'synctex) - TeX-synctex-tex-flags - TeX-source-specials-tex-flags))) - (unless TeX-interactive-mode - ConTeXt-texexec-option-nonstop))) + (cond + ;; Mark IV + ((string= ConTeXt-Mark-version "IV") + (concat + (if TeX-source-correlate-mode + "--synctex=1 ") + (unless TeX-interactive-mode + ConTeXt-texexec-option-nonstop))) + ;; In any other case fall back on Mark II. + (t + (concat + (let ((engine (eval (nth 4 (assq TeX-engine (TeX-engine-alist)))))) + (when engine + (format "--engine=%s " engine))) + (unless (eq ConTeXt-current-interface "en") + (format "--interface=%s " ConTeXt-current-interface)) + (when TeX-source-correlate-mode + (format "--passon=\"%s\" " + (if (eq (TeX-source-correlate-method-active) 'synctex) + TeX-synctex-tex-flags + TeX-source-specials-tex-flags))) + (unless TeX-interactive-mode + ConTeXt-texexec-option-nonstop))))) ;;; Mode @@ -1609,7 +1653,15 @@ ConTeXt-section-list ConTeXt-text ConTeXt-item-list - ConTeXt-extra-paragraph-commands)) + ConTeXt-extra-paragraph-commands + ConTeXt-environment-list) + "List of variables to be set from languages specific ones.") + +(defconst ConTeXt-dialect :context + "Default dialect for use with function `TeX-add-style-hook' for +argument DIALECT-EXPR when the hook is to be run only on ConTeXt +file, or any mode derived thereof. See variable +`TeX-style-hook-dialect'." ) (defcustom ConTeXt-clean-intermediate-suffixes ;; See *suffixes in texutil.pl. @@ -1645,6 +1697,7 @@ (setq major-mode 'context-mode) (setq local-abbrev-table context-mode-abbrev-table) + (set (make-local-variable 'TeX-style-hook-dialect) ConTeXt-dialect) ;; Make language specific variables buffer local (dolist (symbol ConTeXt-language-variable-list) @@ -1656,7 +1709,7 @@ ConTeXt-current-interface))))) ;; Create certain regular expressions based on language - (setq ConTeXt-indent-item-re (concat "\\\\\\(" (mapconcat 'identity ConTeXt-item-list "\\|") "\\)\\>")) + (setq ConTeXt-indent-item-re (concat "\\\\\\(" (mapconcat #'identity ConTeXt-item-list "\\|") "\\)\\>")) ;; What's the deepest level at we can collapse a document? ;; set only if user has not set it. Need to be set before menu is created. @@ -1696,7 +1749,7 @@ (easy-menu-add ConTeXt-mode-command-menu ConTeXt-mode-map) (setq ConTeXt-menu-changed t) - (if (= emacs-major-version 20) + (if (fboundp 'make-local-hook) (make-local-hook 'activate-menubar-hook)) (add-hook 'activate-menubar-hook 'ConTeXt-menu-update nil t) diff -Nru auctex-11.88/context-nl.el auctex-11.90/context-nl.el --- auctex-11.88/context-nl.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/context-nl.el 2017-01-10 21:35:28.000000000 +0000 @@ -120,17 +120,20 @@ ;; the level is used to find the section name, so the alternative ;; names are never found. Have to start using the section name instead ;; of the number. -(defvar ConTeXt-section-list-nl +(defvar ConTeXt-numbered-section-list-nl '(("deel" 0) ("hoofdstuk" 1) ("paragraaf" 2) ("subparagraaf" 3) ("subsubparagraaf" 4)) - ;; ("title" 1) - ;; ("subject" 2) - ;; ("subsubject" 3) - ;; ("subsubsubject" 4) - "List of the names of ConTeXt sections for its nl interface.") + "List of the names of ConTeXt numbered sections for its nl interface.") + +(defvar ConTeXt-unnumbered-section-list-nl + '(("titel" 1) + ("onderwerp" 2) + ("subonderwerp" 3) + ("subsubsubsubject" 4)) + "List of the names of ConTeXt unnumbered sections for its nl interface.") (defvar ConTeXt-text-nl "tekst" "The ConTeXt nl interface body text group.") diff -Nru auctex-11.88/debian/auctex.bug-script.eperl auctex-11.90/debian/auctex.bug-script.eperl --- auctex-11.88/debian/auctex.bug-script.eperl 2015-01-02 21:40:25.000000000 +0000 +++ auctex-11.90/debian/auctex.bug-script.eperl 2017-01-16 17:14:04.000000000 +0000 @@ -34,7 +34,7 @@ EOF <: # Default flavors: only GNU/Emacsen, XEmacs comes with its own AUCTeX :>// -FLAVORS=${*:-"emacs23 emacs24 emacs-snapshot"} +FLAVORS=${*:-"emacs24 emacs25 emacs-snapshot"} for FLAVOR in ${FLAVORS}; do if [ -x /usr/bin/${FLAVOR} ]; then diff -Nru auctex-11.88/debian/auctex.docs auctex-11.90/debian/auctex.docs --- auctex-11.88/debian/auctex.docs 2015-01-02 21:40:25.000000000 +0000 +++ auctex-11.90/debian/auctex.docs 2017-01-16 17:14:04.000000000 +0000 @@ -2,6 +2,8 @@ FAQ README RELEASE +PROBLEMS.preview TODO +ChangeLog-preview* +circ.tex debian/tmp/usr/doc/auctex/* -preview/circ.tex diff -Nru auctex-11.88/debian/auctex.emacsen-install.eperl auctex-11.90/debian/auctex.emacsen-install.eperl --- auctex-11.88/debian/auctex.emacsen-install.eperl 2015-01-02 21:40:24.000000000 +0000 +++ auctex-11.90/debian/auctex.emacsen-install.eperl 2017-01-16 17:14:04.000000000 +0000 @@ -107,7 +107,7 @@ case "${FLAVOR}" in (emacs) ;; - (emacs23|emacs24|emacs-snapshot) + (emacs24|emacs25|emacs-snapshot) do_install ${FLAVOR} do_update_auctex_elisp ${FLAVOR} ;; diff -Nru auctex-11.88/debian/auctex.emacsen-remove.eperl auctex-11.90/debian/auctex.emacsen-remove.eperl --- auctex-11.88/debian/auctex.emacsen-remove.eperl 2015-01-02 21:40:25.000000000 +0000 +++ auctex-11.90/debian/auctex.emacsen-remove.eperl 2017-01-16 17:14:04.000000000 +0000 @@ -46,7 +46,7 @@ case "${FLAVOR}" in (emacs) ;; - (emacs23|emacs24|emacs-snapshot) + (emacs24|emacs25|emacs-snapshot) undo_update_auctex_elisp undo_install ;; diff -Nru auctex-11.88/debian/auctex.emacsen-startup.eperl auctex-11.90/debian/auctex.emacsen-startup.eperl --- auctex-11.88/debian/auctex.emacsen-startup.eperl 2015-01-02 21:40:25.000000000 +0000 +++ auctex-11.90/debian/auctex.emacsen-startup.eperl 2017-01-16 17:14:04.000000000 +0000 @@ -5,7 +5,7 @@ ;;; form "(unload-feature 'tex-site)" (i.e., put that string into your ;;; "~/.emacs" to disable AUCTeX completely). -(if (member debian-emacs-flavor '(emacs23 emacs24 emacs-snapshot)) +(if (member debian-emacs-flavor '(emacs24 emacs25 emacs-snapshot)) <: # skip if removed and not purged :>// (if (file-exists-p "/usr/share/emacs/site-lisp/auctex/tex.el") (progn diff -Nru auctex-11.88/debian/auctex.lintian-overrides.eperl auctex-11.90/debian/auctex.lintian-overrides.eperl --- auctex-11.88/debian/auctex.lintian-overrides.eperl 2015-01-02 21:40:25.000000000 +0000 +++ auctex-11.90/debian/auctex.lintian-overrides.eperl 2017-01-16 17:14:04.000000000 +0000 @@ -3,6 +3,7 @@ # Needed to build alternative formats of the manual from sources auctex binary: extra-license-file usr/share/doc/auctex/src/copying.texi +auctex binary: wrong-name-for-upstream-changelog usr/share/doc/auctex/CHANGES.gz <: # local variables: diff -Nru auctex-11.88/debian/auctex.NEWS auctex-11.90/debian/auctex.NEWS --- auctex-11.88/debian/auctex.NEWS 2015-01-02 21:40:25.000000000 +0000 +++ auctex-11.90/debian/auctex.NEWS 2017-01-16 17:14:04.000000000 +0000 @@ -1,97 +1,239 @@ +auctex (11.90-1) unstable; urgency=medium + + In addition to the completion performed by 'TeX-complete-symbol', AUCTeX + now also supports the new Emacs standard completion-at-point facility + (see the Emacs command 'completion-at-point'). This also means that + modern completion UIs like company-mode work out of the box in TeX and + LaTeX buffers. + + Completion is now aware of being inside a math environment and then + completes math macros. + + AUCTeX is able to display several levels of super- and subscripts, + each one raised above and a bit smaller than its basis. For this + feature, have a look at the customize options + 'font-latex-fontify-script' (especially the new values 'multi-level' + and 'invisible') and 'font-latex-fontify-script-max-level'. Also, the + script characters '^' and '_' are also fontified with a special face + named 'font-latex-script-char-face'. + + Parsing of format specification in various tabular environments has + been improved. The function 'LaTeX-insert-item' ('C-c ') inserts + suitable number of ampersands for '*{num}{cols}' constructs. Style + files for LaTeX packages 'tabularx', 'tabulary', 'longtable', + 'dcolumn' and 'siunitx' are adapted to take advantage of this + improvement. + + AUCTeX has a new Ispell dictionary 'tex-ispell.el' for macros and + environments which will be skipped during spell checking. The + activiation of this feature is controlled by a new customize option + 'TeX-ispell-extend-skip-list', which is set to 't' and activated by + default. + + AUCTeX has a new customize option 'TeX-raise-frame-function' that is + currently only used by Evince and Atril inverse search to raise the + Emacs frame. + + When inserting a new float, AUCTeX will now prompt for a short-caption + if the length of the caption provided is greater than a certain size. + This size is controlled via a new user option + 'LaTeX-short-caption-prompt-length'. + + Parsing of the compilation log has been reworked. You should + encounter fewer mistaken files while navigating through errors and + warnings. + + Two new user options, 'TeX-ignore-warnings' and + 'TeX-suppress-ignored-warnings', allow ignoring certain warnings + after compilation of the document. + + A new option, 'TeX-PDF-from-DVI', controls if and how to produce a PDF + file by converting a DVI file. This supersedes + 'TeX-PDF-via-dvips-ps2pdf' which is still recognized but marked as + obsolete and may be removed in future releases. + + Support for additional external viewers has been added: + - Atril viewer. Forward and inverse search requires version 1.9.1 or + later to work. + - Zathura viewer. Forward and inverse search requires a recent version + of the program to work (3.4 or later). + + A new function, 'TeX-documentation-texdoc', for reading + documentation with 'texdoc' has been added. 'TeX-doc' is still + available but now 'C-c ?' runs 'TeX-documentation-texdoc'. + + AUCTeX has a new custom option + 'LaTeX-reftex-cite-format-auto-activate' which controls the automatic + activation of citation formats provided by RefTeX when a style file is + loaded and RefTeX is enabled. Currently, 'biblatex.el', 'harvard.el', + 'jurabib.el' and 'natbib.el' use this feature. If you have customized + 'reftex-cite-format' and want to use your settings, you should set + this variable to 'nil'. + + AUCTeX now has limited support for the TikZ package. For the moment, + this includes some basic support for prompting the user of arguments + to the '\draw' macro. + + The style 'graphicx.el' went through a bigger overhaul. The optional + argument of command '\includegraphics' now supports key-val query; + keys can independently be chosen anytime by pressing the <,> key. As + a side effect, the variable 'LaTeX-includegraphics-options-alist' is + now no-op and is removed from 'tex-style.el'. You can safely remove + any customization of it from your init file. The mandatory argument + of '\includegraphics' knows about image file extensions supported by + the used engine and offers them for inclusion. + + Support for other LaTeX packages was improved, and style files for + several new packages were added. + + Many bugs were crushed along the way. + + -- Davide G. M. Salvetti Wed, 11 Jan 2017 14:04:12 +0100 + +auctex (11.89-1) unstable; urgency=medium + + You can now run all commands needed to compile a document and then open + the viewer with a single command: 'TeX-command-run-all', bound to 'C-c + C-a'. + + Commands such as LaTeX and View can now be executed conveniently on the + current section (or part, chapter, subsection, etc). See + 'LaTeX-command-section' and 'LaTeX-command-section-change-level'. + + Forward and backward search with Evince now also work when only a region + of the document is compiled/viewed. + + To open the PDF output file you can now use also PDF Tools, a document + viewer for Emacs. With it, as a plus, forward and backward search is + accurate at word level. + + With new option 'TeX-PDF-via-dvips-ps2pdf' it is possible to compile a + document to DVI and then convert it to PDF using 'dvips'-'ps2pdf' + before viewing it. + + New option 'TeX-file-line-error' allows users to select file:line:error style + for error messages. + + Indent '\[...\]' math mode as a regular environment by default. + + Now AUCTeX suggests to run 'makeindex' when appropriate. + + 'TeX-view-program-list' can contain, as third optional element of each + item, the name of the executable(s) needed to open the viewer. + + 'TeX-expand-list' variable has been split into 'TeX-expand-list' and + 'TeX-expand-list-builtin'. Only the former is intended to be + customized by the user, the latter contains built-in expanders. You + might want to keep in 'TeX-expand-list' only new expansion strings. + + When new option 'TeX-check-engine' is non-nil, before running LaTeX + commands AUCTeX will check whether the correct engine has been set, + based upon known restrictions posed by LaTeX packages. + + Basic support to ConTeXt Mark IV has been added. Users can now select + the Mark version to be used with new option 'ConTeXt-Mark-version', + and AUCTeX is able to catch error messages in the output log of a Mark + IV document. + + Support for tons of LaTeX packages has been addedd. + + Numbers of bugs have been fixed, many minor features have been + addedd. + + -- Davide G. M. Salvetti Sun, 25 Dec 2016 19:35:14 +0100 + auctex (11.88-1) unstable; urgency=medium - * 'TeX-PDF-mode' is now enabled by default. + 'TeX-PDF-mode' is now enabled by default. - * Now 'TeX-previous-error' works with TeX commands if the new option - 'TeX-parse-all-errors' is non-nil, which is the default. When this - option is non-nil, an overview of errors and warnings reported by - the TeX compiler can be opened with 'M-x TeX-error-overview '. - - * Style file authors are encouraged to distinguish common from expert - macros and environments, and mark the latter using - 'TeX-declare-expert-macros' and - 'LaTeX-declare-expert-environments'. - - Users can then restrict completion using - 'TeX-complete-expert-commands'. - - * Management of LaTeX package options in the parser was improved. - You might need to reparse your documents, especially if you loaded - the 'babel' package with language options. - - * Now you can insert '$...$' or '\(...\)' by typing a single '$'. To - do this, customize the new option 'TeX-electric-math'. - 'TeX-math-close-double-dollar' was removed. - - * 'C-c documentclass ' completes with all available LaTeX - classes, if the 'TeX-arg-input-file-search' variable is non-nil. - Completion for class options of the standard LaTeX classes is - provided as well. - - * New user options 'LaTeX-default-author', - 'LaTeX-fontspec-arg-font-search', - 'LaTeX-fontspec-font-list-default', 'TeX-date-format', and - 'TeX-insert-braces-alist'. A new possible value - ('show-all-optional-args') for 'TeX-insert-macro-default-style' was - added. The default value of 'TeX-source-correlate-method' has been - changed. - - * 'biblatex' support was greatly expanded. If parsing is enabled, - AUCTeX looks at 'backend' option to decide whether to use Biber or - BibTeX. The 'LaTeX-biblatex-use-Biber' variable was changed to be - file local only and is no more customizable. - - * With some LaTeX classes, the default environment suggested by - 'LaTeX-environment' ('C-c C-e') when the current environment is - 'document' was changed. With 'beamer' class the default - environment is 'frame', with 'letter' it is 'letter', with 'slides' - it is 'slide'. - - * Brace pairing feature was enhanced in LaTeX documents. Support for - '\bigl', '\Bigl', '\biggl' and '\Biggl', the same as the one for - '\left', was added to 'TeX-insert-macro'. For example, 'C-c - bigl ( ' inserts '\bigl(\bigr)'. - - You can insert brace pair '()', '{}' and '[]' by typing a single - left brace if the new user option 'LaTeX-electric-left-right-brace' - is enabled. - - Macros '\langle', '\lfloor' and '\lceil', which produce the left - part of the paired braces, are treated similarly as '(', '{' and - '[' during the course of 'TeX-insert-macro'. - - * Support for dozens of LaTeX packages was added. - - * Tabular-like environments (tabular, tabular*, tabularx, tabulary, - array, align, ...) are indented in a nicer and more informative - way when the column values of a table line are written across - multiple lines in the tex file. - - * The suitable number of ampersands are inserted when you insert - array, tabular and tabular* environments with 'C-c C-e'. Similar - experience is obtained if you terminate rows in these environments - with 'C-c '. It supplies line break macro '\\' and inserts - the suitable number of ampersands on the next line. - - Similar supports are provided for various amsmath environments. - - * Commands for narrowing to a group ('TeX-narrow-to-group') and to - LaTeX environments ('LaTeX-narrow-to-environment') were added. - - * Now arbitrary options can be passed to the TeX processor on a per - file basis using the 'TeX-command-extra-options' option. - - * Now 'C-c C-e document ', in an empty document, prompts for - '\usepackage' macros in addition to '\documentclass'. - - * 'TeX-add-style-hook' has now a third argument to tell AUCTeX for - which dialect (LaTeX, Texinfo or BibTeX) the style hook is - registers. Labelling style hook by dialect will avoid applying - them not in the right context. + Now 'TeX-previous-error' works with TeX commands if the new option + 'TeX-parse-all-errors' is non-nil, which is the default. When this + option is non-nil, an overview of errors and warnings reported by + the TeX compiler can be opened with 'M-x TeX-error-overview '. + + Style file authors are encouraged to distinguish common from expert + macros and environments, and mark the latter using + 'TeX-declare-expert-macros' and + 'LaTeX-declare-expert-environments'. + + Users can then restrict completion using 'TeX-complete-expert-commands'. + + Management of LaTeX package options in the parser was improved. + You might need to reparse your documents, especially if you loaded + the 'babel' package with language options. + + Now you can insert '$...$' or '\(...\)' by typing a single '$'. To + do this, customize the new option 'TeX-electric-math'. + 'TeX-math-close-double-dollar' was removed. + + 'C-c documentclass ' completes with all available LaTeX + classes, if the 'TeX-arg-input-file-search' variable is non-nil. + Completion for class options of the standard LaTeX classes is + provided as well. + + New user options 'LaTeX-default-author', 'LaTeX-fontspec-arg-font-search', + 'LaTeX-fontspec-font-list-default', 'TeX-date-format', and + 'TeX-insert-braces-alist'. A new possible value + ('show-all-optional-args') for 'TeX-insert-macro-default-style' was + added. The default value of 'TeX-source-correlate-method' has been + changed. + + 'biblatex' support was greatly expanded. If parsing is enabled, + AUCTeX looks at 'backend' option to decide whether to use Biber or + BibTeX. The 'LaTeX-biblatex-use-Biber' variable was changed to be + file local only and is no more customizable. + + With some LaTeX classes, the default environment suggested by + 'LaTeX-environment' ('C-c C-e') when the current environment is + 'document' was changed. With 'beamer' class the default + environment is 'frame', with 'letter' it is 'letter', with 'slides' + it is 'slide'. + + Brace pairing feature was enhanced in LaTeX documents. Support for + '\bigl', '\Bigl', '\biggl' and '\Biggl', the same as the one for + '\left', was added to 'TeX-insert-macro'. For example, 'C-c + bigl ( ' inserts '\bigl(\bigr)'. + + You can insert brace pair '()', '{}' and '[]' by typing a single + left brace if the new user option 'LaTeX-electric-left-right-brace' + is enabled. + + Macros '\langle', '\lfloor' and '\lceil', which produce the left + part of the paired braces, are treated similarly as '(', '{' and + '[' during the course of 'TeX-insert-macro'. + + Support for dozens of LaTeX packages was added. + + Tabular-like environments (tabular, tabular*, tabularx, tabulary, + array, align, ...) are indented in a nicer and more informative + way when the column values of a table line are written across + multiple lines in the tex file. + + The suitable number of ampersands are inserted when you insert + array, tabular and tabular* environments with 'C-c C-e'. Similar + experience is obtained if you terminate rows in these environments + with 'C-c '. It supplies line break macro '\\' and inserts + the suitable number of ampersands on the next line. + + Similar supports are provided for various amsmath environments. + + Commands for narrowing to a group ('TeX-narrow-to-group') and to + LaTeX environments ('LaTeX-narrow-to-environment') were added. + + Now arbitrary options can be passed to the TeX processor on a per + file basis using the 'TeX-command-extra-options' option. + + Now 'C-c C-e document ', in an empty document, prompts for + '\usepackage' macros in addition to '\documentclass'. + + 'TeX-add-style-hook' has now a third argument to tell AUCTeX for + which dialect (LaTeX, Texinfo or BibTeX) the style hook is + registers. Labelling style hook by dialect will avoid applying + them not in the right context. - * There have been lots of bug fixes and feature additions. + There have been lots of bug fixes and feature additions. - -- Davide G. M. Salvetti Thu, 30 Oct 2014 23:29:37 +0100 + -- Davide G. M. Salvetti Sun, 25 Dec 2016 19:34:58 +0100 auctex (11.87-1) unstable; urgency=low diff -Nru auctex-11.88/debian/auctex.README.Debian.eperl auctex-11.90/debian/auctex.README.Debian.eperl --- auctex-11.88/debian/auctex.README.Debian.eperl 2015-01-02 21:40:25.000000000 +0000 +++ auctex-11.90/debian/auctex.README.Debian.eperl 2017-01-16 17:14:04.000000000 +0000 @@ -91,20 +91,16 @@ Contributed Files ================= -There are several files that are not part of AUCTeX proper, but included in -the distribution in case they are useful: +There is a file that is not part of AUCTeX proper, but is included in the +distribution in case it proves useful: - `bib-cite.el': better support for bibliographies and much more; - - `tex-jp.el': Japanese support; - - - `tex-fptex.el': fpTeX support. - -Read the comments at the start of each file for more information about how to +Read the comments at the start of that file for more information about how to load it, what does it do, and who wrote and maintains it. --- Davide G. M. Salvetti , <:=$_=gmtime:>. +-- Davide G. M. Salvetti <: # local variables: # mode: text diff -Nru auctex-11.88/debian/auctex.triggers auctex-11.90/debian/auctex.triggers --- auctex-11.88/debian/auctex.triggers 2015-01-02 21:40:24.000000000 +0000 +++ auctex-11.90/debian/auctex.triggers 2017-01-16 17:14:03.000000000 +0000 @@ -1,5 +1,5 @@ interest-noawait /usr/share/texmf interest-noawait /usr/share/texlive/texmf-dist -interest auctex-install-emacs23 interest auctex-install-emacs24 +interest auctex-install-emacs25 interest auctex-install-emacs-snapshot diff -Nru auctex-11.88/debian/changelog auctex-11.90/debian/changelog --- auctex-11.88/debian/changelog 2015-11-19 14:18:13.000000000 +0000 +++ auctex-11.90/debian/changelog 2017-11-28 16:04:27.000000000 +0000 @@ -1,3 +1,135 @@ +auctex (11.90-1ubuntu1~ubuntu16.04.1~c42.ppa1) xenial; urgency=medium + + * No-change backport to xenial + + -- H.-Dirk Schmitt Tue, 28 Nov 2017 17:04:27 +0100 + +auctex (11.90-1ubuntu1) zesty; urgency=low + + * Merge from Debian unstable. Remaining changes: + - debian/control: + + Recommend xdg-utils. + + Recommend evince (main) instead of xpdf (universe). + - debian/patches/use-xdg-open.patch: use xdg-open instead of hard-coded + xpdf. + - debian/patches/use-firefox.patch: use firefox instead of hard-coded + 'netscape'. + + -- Dimitri John Ledkov Thu, 19 Jan 2017 15:09:35 +0000 + +auctex (11.90-1) unstable; urgency=medium + + * [ca6576f] New upstream release 11.90 + * [1b78da3] debian/rules: Source only upload + * [577e702] debian/copyright: Update + * [6fcbd44] debian/auctex.NEWS: Update + * [bea5d9c] Remove upstream merged patches + * [9ae36c0] Refresh upstream patches + * [178d053] Cope with missing upstream ChangeLog + * [a853cd1] Add patch: Fix ConTeXt-outline-regexp. + Thanks to Sanjoy Mahajan (Closes: #850444) + + -- Davide G. M. Salvetti Sat, 14 Jan 2017 00:23:32 +0100 + +auctex (11.89-1) unstable; urgency=medium + + * [da2e9d7] New upstream release 11.89 + Thanks to Norbert Preining, Rémi Vanicat (Closes: #838119) + * [9b94e58] Remove upstream merged patches + * [0eb2307] Refresh upstream patches + * [01282cb] Adapt to preview to top-level merge + * [678c0b9] debian/rules: Disable dh_auto_test + * [baa9409] debian/copyright: Update + * [c4958c4] debian/auctex.NEWS: Update + + -- Davide G. M. Salvetti Sun, 25 Dec 2016 23:59:59 +0100 + +auctex (11.88-2) unstable; urgency=medium + + * [1451bf3] Switch to debhelper compatibility level 9 + * [3541d2b] auctex.README.Debian (Contributed Files): Update + * [fffa9ac] Drop emacs23, default to emacs24. + Thanks to Lucas Nussbaum (Closes: #768724) + * [9ab3f31] debian/rules: Update from cvs-import to vcs-import + * [fe20d00] debian/changelog: Add entry for 11.87-3 + * [a9a134a] Add patch: Replace `read-string' with `TeX-read-string' + (Closes: #120031) + * [5a43770] Add patch: Add copyright notice to style/foils.el + * [a629193] debian/copyright: Update + * [d83b7f0] debian/auctex.triggers: Use interest-nowait. + Thanks to Guillem Jover, Dimitri John Ledkov (Closes: #772873) + * [da831a0] Aknowledge NMU 11.88-1.1. + Thanks to Michael Gilbert + * [46a411f] Aknowledge NMU 11.88-1.2. + Thanks to Rémi Vanicat + * [4e1e65a] Add emacs25 GNU Emacs flavor support. + Thanks to Dan Torop (Closes: #841123) + * [43bab91] debian/po: Update pt_BR.po. + Thanks to Diego Neves (Closes: #823367) + * [99b75c1] Fix building with `dpkg-buildpackage -A' + Thanks to Santiago Vila, Rémi Vanicat (Closes: #839579) + * [b2ccb87] Upgrade Standards-Version to 3.9.8. + Thanks to Rémi Vanicat + * [9ad2c74] Aknowledge NMU 11.88-1.3. + Thanks to Rémi Vanicat + * [fc2873f] debian/rules: Use sbuild instead of pbuilder + * [86a0bf4] Add patch: style/subfigure.el: Fix nesting error. + Thanks to Julian Gilbey (Closes: #846537) + * [469d54d] debian/copyright: Use unique license names + * [9f79e72] debian/control: Use secure uris in VCS fields + * [747986f] debian/NEWS.Debian: Use regular paragraphs + * [51a35ab] debian/*.README.Debian: Do not include timestamps + + -- Davide G. M. Salvetti Thu, 08 Dec 2016 21:12:49 +0100 + +auctex (11.88-1.3ubuntu1) zesty; urgency=low + + * Merge from Debian unstable. Remaining changes: + - debian/control: + + Recommend xdg-utils. + + Recommend evince (main) instead of xpdf (universe). + - debian/patches/use-xdg-open.patch: use xdg-open instead of hard-coded + xpdf. + - debian/patches/use-firefox.patch: use firefox instead of hard-coded + 'netscape'. + + -- Dimitri John Ledkov Tue, 06 Dec 2016 15:29:16 +0100 + +auctex (11.88-1.3) unstable; urgency=medium + + * Non-maintainer upload. + * auctex support for emacs25, thanks to Dan Torop (Closes: #841123). + * update the Brazilian Portuguese Translation (Closes: #823367) + thanks to Diego Neves. + * Fix building with dpkg-buildpackage -A thanks to Santiago Vila + (Closes: #839579). + * Drop support for emacs23 + * Upgrade Standards-Version to 3.9.8 (no change). + + -- Rémi Vanicat Fri, 25 Nov 2016 12:00:39 +0100 + +auctex (11.88-1.2ubuntu1) zesty; urgency=low + + * Merge from Debian unstable. Remaining changes: + - drop emacs23, default to emacs25. + - debian/control: + + Recommend xdg-utils. + + Recommend evince (main) instead of xpdf (universe). + - debian/patches/use-xdg-open.patch: use xdg-open instead of hard-coded + xpdf. + - debian/patches/use-firefox.patch: use firefox instead of hard-coded + 'netscape'. + + -- Dimitri John Ledkov Mon, 21 Nov 2016 13:33:52 +0000 + +auctex (11.88-1.2) unstable; urgency=medium + + * Non-maintainer upload. + * Bug fix: "FTBFS: build-dependency not installable: emacs23", thanks to + Lucas Nussbaum (Closes: #768724). + + -- Rémi Vanicat Fri, 23 Sep 2016 17:36:05 +0200 + auctex (11.88-1.1ubuntu1) xenial; urgency=low * Merge from Debian unstable. Remaining changes: @@ -50,6 +182,13 @@ -- Davide G. M. Salvetti Sat, 01 Nov 2014 21:06:26 +0100 +auctex (11.87-3) testing; urgency=medium + + * [59fd7bc] Drop emacs23 dependencies, keep emacs24 to the front. + Thanks to Lucas Nussbaum (Closes: #768724) + + -- Davide G. M. Salvetti Sun, 09 Nov 2014 14:20:48 +0100 + auctex (11.87-2) unstable; urgency=medium * [d6ee432] debian/copyright: Update diff -Nru auctex-11.88/debian/compat auctex-11.90/debian/compat --- auctex-11.88/debian/compat 2015-01-02 21:40:25.000000000 +0000 +++ auctex-11.90/debian/compat 2017-01-16 17:14:04.000000000 +0000 @@ -1 +1 @@ -8 +9 diff -Nru auctex-11.88/debian/control auctex-11.90/debian/control --- auctex-11.88/debian/control 2015-01-02 21:40:25.000000000 +0000 +++ auctex-11.90/debian/control 2017-01-16 17:14:04.000000000 +0000 @@ -4,15 +4,15 @@ Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Davide G. M. Salvetti Uploaders: OHURA Makoto -Standards-Version: 3.9.6 -Build-Depends-Indep: debhelper (>= 8), emacs24 | emacs-snapshot, eperl, ghostscript, po-debconf, tex-common (>= 4.01), texlive-latex-base, texinfo (>= 5) -Homepage: http://www.gnu.org/software/auctex/ -Vcs-Browser: http://anonscm.debian.org/gitweb/?p=users/salve/auctex.git;a=summary -Vcs-Git: git://anonscm.debian.org/users/salve/auctex.git +Standards-Version: 3.9.8 +Build-Depends-Indep: debhelper (>= 9), emacs25 | emacs24 | emacs-snapshot, eperl, ghostscript, po-debconf, tex-common (>= 4.01), texlive-latex-base, texinfo (>= 5) +Homepage: https://www.gnu.org/software/auctex/ +Vcs-Browser: https://anonscm.debian.org/gitweb/?p=users/salve/auctex.git;a=summary +Vcs-Git: https://anonscm.debian.org/git/users/salve/auctex.git Package: auctex Architecture: all -Depends: emacs24 | emacs-snapshot, emacsen-common (>= 2.0.8), preview-latex-style, ${misc:Depends} +Depends: emacs25 | emacs24 | emacs-snapshot, emacsen-common (>= 2.0.8), preview-latex-style, ${misc:Depends} Recommends: ghostscript, texlive-latex-recommended, evince | xpdf | evince-gtk | okular, xdg-utils Suggests: catdvi, dvipng, lacheck Breaks: emacspeak (<= 17.0-1) diff -Nru auctex-11.88/debian/copyright auctex-11.90/debian/copyright --- auctex-11.88/debian/copyright 2015-01-02 21:40:25.000000000 +0000 +++ auctex-11.90/debian/copyright 2017-01-16 17:14:04.000000000 +0000 @@ -6,55 +6,68 @@ Announcements about AUCTeX Source: http://www.gnu.org/software/auctex/ -Files: * doc/Makefile.in doc/preview-dtxdoc.pl -Copyright: 1985-2014 Free Software Foundation, Inc. +Files: * +Copyright: 1985-2017, Free Software Foundation, Inc License: GPL-3+ -Files: configure preview/configure -Copyright: 1992-1996, 1998-2012 Free Software Foundation, Inc. -License: permissive - This configure script is free software; the Free Software Foundation - gives unlimited permission to copy, distribute and modify it. - -Files: README doc/intro.texi -Copyright: 2008 Free Software Foundation, Inc. -License: preserve-notice - Copying and distribution of this file, with or without modification, are - permitted in any medium without royalty provided the copyright notice - and this notice are preserved. +Files: README +Copyright: 2008, Free Software Foundation, Inc +License: preserve-notice-1 -Files: install-sh -Copyright: 1991 the Massachusetts Institute of Technology -License: MIT - -Files: mkinstalldirs -Copyright: 1993 Noah Friedman -License: other - Public domain +Files: configure +Copyright: 1992-2012, Free Software Foundation, Inc +License: permissive -Files: tex-jp.el -Copyright: 1999, 2001 Hidenobu Nabetani - 2002-2007, 2012 Free Software Foundation, Inc. +Files: debian/* +Copyright: 1997-2017, Davide G. M. Salvetti License: GPL-3+ -Files: doc/* -Copyright: 1992-2014 Free Software Foundation, Inc. +Files: doc/auctex.texi + doc/changes.texi + doc/copying.texi + doc/faq.texi + doc/fdl.texi + doc/history.texi + doc/install.texi + doc/macros.texi + doc/preview-dtxdoc.texi + doc/preview-faq.texi + doc/preview-latex.texi + doc/preview-problems.texi + doc/preview-readme.texi + doc/preview-todo.texi + doc/quickstart.texi + doc/todo.texi + doc/version.texi + doc/wininstall.texi +Copyright: 1992-2017, Free Software Foundation, Inc License: GFDL-NIV-1.3 +Files: doc/intro.texi +Copyright: 2008, Free Software Foundation, Inc +License: permissive + Files: doc/tex-ref.tex -Copyright: 1987-2014 Free Software Foundation, Inc. -License: preserve-notice - Permission is granted to make and distribute copies of this card - provided the copyright notice and this permission notice are preserved - on all copies. +Copyright: 1987-2017, Free Software Foundation, Inc +License: preserve-notice-2 -Files: debian/* -Copyright: 1997-2014 Davide G. M. Salvetti -License: GPL-3+ +Files: install-sh +Copyright: 1991, the Massachusetts Institute of Technology +License: MIT + +Files: mkinstalldirs +Copyright: 1993, Noah Friedman +License: publicdomain -Files: style/foils.el style/jarticle.el style/jbook.el style/jreport.el - style/jsarticle.el style/jsbook.el style/j-article.el style/j-book.el - style/j-report.el style/report.el +Files: style/j-article.el + style/j-book.el + style/j-report.el + style/jarticle.el + style/jbook.el + style/jreport.el + style/jsarticle.el + style/jsbook.el + style/report.el Copyright: Ralf Angeli License: tobeclarified @@ -73,19 +86,7 @@ Copyright: Per Abrahamsen License: tobeclarified -Files: style/epsf.el style/psfig.el -Copyright: Marc Gemis -License: tobeclarified - -Files: style/latexinfo.el -Copyright: 1993 Marc Gemis -License: GPL-3+ - -Files: style/prosper.el -Copyright: 2001, 2002 Phillip Lord, Nevin Kapur -License: GPL-3+ - -License: GPL-3+ +License: GFDL-NIV-1.3 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any @@ -100,9 +101,9 @@ with this program. If not, see . . On Debian GNU/Linux System, you can find a copy of the GNU General Public - License version 3 in the file "/usr/share/common-licenses/GPL-3". + License version 3 in the file "/usr/share/common-licenses/GPL-3". -License: GFDL-NIV-1.3 +License: GPL-3+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any @@ -117,7 +118,7 @@ with this program. If not, see . . On Debian GNU/Linux System, you can find a copy of the GNU General Public - License version 3 in the file "/usr/share/common-licenses/GPL-3". + License version 3 in the file "/usr/share/common-licenses/GPL-3". License: MIT Permission to use, copy, modify, distribute, and sell this software and @@ -130,5 +131,22 @@ representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. +License: permissive + This configure script is free software; the Free Software Foundation + gives unlimited permission to copy, distribute and modify it. + +License: preserve-notice-1 + Copying and distribution of this file, with or without modification, are + permitted in any medium without royalty provided the copyright notice + and this notice are preserved. + +License: preserve-notice-2 + Permission is granted to make and distribute copies of this card + provided the copyright notice and this permission notice are preserved + on all copies. + +License: publicdomain + Public domain + License: tobeclarified Supposedly GPL-3+ as the rest of the code; ask . diff -Nru auctex-11.88/debian/COPYRIGHT auctex-11.90/debian/COPYRIGHT --- auctex-11.88/debian/COPYRIGHT 2015-01-02 21:40:25.000000000 +0000 +++ auctex-11.90/debian/COPYRIGHT 2017-01-16 17:14:04.000000000 +0000 @@ -1,14 +1,14 @@ -Copyright (C) 1997-2014 Davide G. M. Salvetti. +Copyright (C) 1997-2016 Davide G. M. Salvetti. This program is free software; you can redistribute it and/or modify it -under the terms of the GNU General Public License as published by the -Free Software Foundation; either version 3 of the License, or (at your -option) any later version. +under the terms of the GNU General Public License as published by the Free +Software Foundation; either version 3 of the License, or (at your option) +any later version. This program is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -General Public License for more details. +WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . diff -Nru auctex-11.88/debian/patches/0001-doc-Makefile.in-Rationalize-HTML-documentation-targe.patch auctex-11.90/debian/patches/0001-doc-Makefile.in-Rationalize-HTML-documentation-targe.patch --- auctex-11.88/debian/patches/0001-doc-Makefile.in-Rationalize-HTML-documentation-targe.patch 2015-01-02 21:40:25.000000000 +0000 +++ auctex-11.90/debian/patches/0001-doc-Makefile.in-Rationalize-HTML-documentation-targe.patch 2017-01-16 17:14:04.000000000 +0000 @@ -2,35 +2,26 @@ Date: Thu, 30 Oct 2014 17:47:53 +0100 Subject: doc/Makefile.in: Rationalize HTML documentation targets -- Use auctex.htmls instead of html as the name of the directory where +* Use auctex.htmls instead of html as the name of the directory where AUCTeX HTMLs go. -- Let the auctex.htmls/auctex.html target (ex html/auctex_toc.html) depend +* Let the auctex.htmls/auctex.html target (ex html/auctex_toc.html) depend on all $(AUCTEXTEXIFILES) instead of just auctex.texi. -- Refactor AUCTeX HTML documentation build command. +* Refactor AUCTeX HTML documentation build command. -- Use preview-latex.htmls instead of preview-latex as the name of the +* Use preview-latex.htmls instead of preview-latex as the name of the directory where preview-latex HTMLs go. -- Refactor preview-latex HTML documentation build command. +* Refactor preview-latex HTML documentation build command. -- Update references in extradist, html-docs, and clean targets. +* Update references in extradist, html-docs, and clean targets. --- - doc/Makefile.in | 23 +++++++++++------------ - 1 file changed, 11 insertions(+), 12 deletions(-) + doc/Makefile.in | 21 ++++++++++----------- + 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/doc/Makefile.in b/doc/Makefile.in -index 8507821..8ecd37f 100644 +index 6a3754118..1a9549964 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in -@@ -2,7 +2,7 @@ - - # Maintainer: auctex-devel@gnu.org - --# Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. -+# Copyright (C) 2003, 2004, 2005, 2006, 2007, 2014 Free Software Foundation, Inc. - - # This file is part of AUCTeX. - -@@ -87,18 +87,16 @@ install-man: +@@ -87,7 +87,7 @@ install-man: dist: $(DISTTEXTS) preview-latex.info auctex.info tex-ref.pdf @@ -38,7 +29,8 @@ +extradist: auctex.htmls/$(TEXI2HTML_TOC) auctex.ps auctex.pdf tex-ref.ps tex-ref.pdf .PHONY: all info dvi dist install-auctex disttexts clean distclean \ - maintainer-clean install-preview install-man html-docs extradist + maintainer-clean install-preview install-man uninstall html-docs \ +@@ -95,11 +95,9 @@ extradist: html/$(TEXI2HTML_TOC) auctex.ps auctex.pdf tex-ref.ps tex-ref.pdf # AUCTeX @@ -53,7 +45,7 @@ tex-ref.dvi: tex-ref.tex $(TEX) tex-ref -@@ -143,11 +141,12 @@ install-auctex: auctex.info tex-ref.pdf +@@ -144,11 +142,12 @@ install-auctex: auctex.info tex-ref.pdf # preview @@ -68,9 +60,9 @@ -html-docs: preview-latex/index.html +html-docs: preview-latex.htmls/index.html - preview-dtxdoc.texi: ../preview/latex/preview.dtx preview-dtxdoc.pl - -$(PERL) preview-dtxdoc.pl ../preview/latex/preview.dtx \ -@@ -204,7 +203,7 @@ clean: + preview-dtxdoc.texi: ../latex/preview.dtx preview-dtxdoc.pl + -$(PERL) preview-dtxdoc.pl ../latex/preview.dtx \ +@@ -214,7 +213,7 @@ clean: rm -f *.dvi *.ps *.pdf *.aux *.cp *.fn *.ky *.log *~ \#*\# \ *.tp *.vr *.pg *.toc *.tp *.bak *.cps *.kys *.tps \ *.fns *.vrs *.pgs *.tmp *.html diff -Nru auctex-11.88/debian/patches/0002-doc-Makefile.in-Rationalize-dist-target.patch auctex-11.90/debian/patches/0002-doc-Makefile.in-Rationalize-dist-target.patch --- auctex-11.88/debian/patches/0002-doc-Makefile.in-Rationalize-dist-target.patch 2015-01-02 21:40:25.000000000 +0000 +++ auctex-11.90/debian/patches/0002-doc-Makefile.in-Rationalize-dist-target.patch 2017-01-16 17:14:04.000000000 +0000 @@ -8,7 +8,7 @@ 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/Makefile.in b/doc/Makefile.in -index 8ecd37f..ca1467b 100644 +index 1a9549964..21a120b6d 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -85,7 +85,7 @@ install-man: diff -Nru auctex-11.88/debian/patches/0003-preview-latex-Makefile.in-Also-clean-PDF-docs.patch auctex-11.90/debian/patches/0003-preview-latex-Makefile.in-Also-clean-PDF-docs.patch --- auctex-11.88/debian/patches/0003-preview-latex-Makefile.in-Also-clean-PDF-docs.patch 2015-01-02 21:40:25.000000000 +0000 +++ auctex-11.90/debian/patches/0003-preview-latex-Makefile.in-Also-clean-PDF-docs.patch 2017-01-16 17:14:04.000000000 +0000 @@ -1,6 +1,6 @@ From: "Davide G. M. Salvetti" Date: Tue, 27 Dec 2011 22:40:49 +0100 -Subject: preview/latex/Makefile.in: Also clean PDF docs +Subject: latex/Makefile.in: Also clean PDF docs MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit @@ -8,17 +8,17 @@ Closes: #628787 Thanks: Matthias Kümmerer --- - preview/latex/Makefile.in | 2 +- + latex/Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -diff --git a/preview/latex/Makefile.in b/preview/latex/Makefile.in -index bccc79e..dddb543 100644 ---- a/preview/latex/Makefile.in -+++ b/preview/latex/Makefile.in -@@ -87,5 +87,5 @@ preview.pdf: preview.drv preview.dtx preview.sty +diff --git a/latex/Makefile.in b/latex/Makefile.in +index afb0a62a3..02cab15ac 100644 +--- a/latex/Makefile.in ++++ b/latex/Makefile.in +@@ -93,5 +93,5 @@ preview.pdf: preview.drv preview.dtx preview.sty $(PDFLATEX) '\nonstopmode \AtBeginDocument{\OnlyDescription}\input{preview.drv}' clean: -- rm -f *~ *.aux *.dvi *.drv *.log +- rm -f *~ *.aux *.dvi *.drv *.log + rm -f *~ *.aux *.dvi *.drv *.log *.pdf - rm -f $(TEXMFGEN) preview.ins preview-mk.ins + rm -f $(TEXMFGEN) preview.ins preview-mk.ins diff -Nru auctex-11.88/debian/patches/0004-TeX-view-program-selection-Customize-for-Debian.patch auctex-11.90/debian/patches/0004-TeX-view-program-selection-Customize-for-Debian.patch --- auctex-11.88/debian/patches/0004-TeX-view-program-selection-Customize-for-Debian.patch 2015-01-02 21:40:25.000000000 +0000 +++ auctex-11.90/debian/patches/0004-TeX-view-program-selection-Customize-for-Debian.patch 2017-01-16 17:14:04.000000000 +0000 @@ -10,17 +10,18 @@ 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tex.el b/tex.el -index b634a74..b94e8c3 100644 +index 02946b9af..413c50c13 100644 --- a/tex.el +++ b/tex.el -@@ -1235,9 +1235,11 @@ restarting Emacs." +@@ -1486,10 +1486,12 @@ restarting Emacs." (output-pdf "open") (output-html "open"))) (t -- '(((output-dvi style-pstricks) "dvips and gv") +- '(((output-dvi has-no-display-manager) "dvi2tty") ++ `(((output-dvi has-no-display-manager) "dvi2tty") + ((output-dvi style-pstricks) "dvips and gv") - (output-dvi "xdvi") - (output-pdf "Evince") -+ `(((output-dvi style-pstricks) "dvips and gv") + (output-dvi ,(if (executable-find "evince") "Evince" + (if (executable-find "okular") "Okular" "xdvi"))) + (output-pdf ,(if (executable-find "evince") "Evince" diff -Nru auctex-11.88/debian/patches/0005-TeX-auto-global-Customize-for-Debian.patch auctex-11.90/debian/patches/0005-TeX-auto-global-Customize-for-Debian.patch --- auctex-11.88/debian/patches/0005-TeX-auto-global-Customize-for-Debian.patch 2015-01-02 21:40:25.000000000 +0000 +++ auctex-11.90/debian/patches/0005-TeX-auto-global-Customize-for-Debian.patch 2017-01-16 17:14:04.000000000 +0000 @@ -2,13 +2,13 @@ Date: Tue, 27 Dec 2011 22:48:11 +0100 Subject: TeX-auto-global: Customize for Debian -Use "debian-emacs-flavor", according to the Debian Emacs policy. +Use "debian-emacs-flavor", according to Debian Emacs policy. --- tex-site.el.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tex-site.el.in b/tex-site.el.in -index 8937315..88fcecd 100644 +index a88f8bda3..fdc8054e7 100644 --- a/tex-site.el.in +++ b/tex-site.el.in @@ -66,7 +66,7 @@ TeX-auto-* (automatically generated lisp).") diff -Nru auctex-11.88/debian/patches/0006-preview-image-type-Customize-for-Debian.patch auctex-11.90/debian/patches/0006-preview-image-type-Customize-for-Debian.patch --- auctex-11.88/debian/patches/0006-preview-image-type-Customize-for-Debian.patch 2015-01-02 21:40:25.000000000 +0000 +++ auctex-11.90/debian/patches/0006-preview-image-type-Customize-for-Debian.patch 2017-01-16 17:14:04.000000000 +0000 @@ -2,20 +2,20 @@ Date: Sat, 14 Jan 2012 22:57:31 +0100 Subject: preview-image-type: Customize for Debian -* preview/preview.el (preview-image-type): Look for a dvipng executable - and use it if available. +* preview.el (preview-image-type): Look for a dvipng executable and use it + if available. Rationale: "dvipng is much faster than the combination of Dvips and -Ghostscript", the AUCTeX README says. +Ghostscript", the AUCTeX README states. --- - preview/preview.el.in | 2 +- + preview.el.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -diff --git a/preview/preview.el.in b/preview/preview.el.in -index 57e056b..42217c9 100644 ---- a/preview/preview.el.in -+++ b/preview/preview.el.in -@@ -229,7 +229,7 @@ method, like when PDFTeX was used." +diff --git a/preview.el.in b/preview.el.in +index 8a5810493..a96394fe9 100644 +--- a/preview.el.in ++++ b/preview.el.in +@@ -228,7 +228,7 @@ method, like when PDFTeX was used." (symbol :tag "Emacs image-type") (repeat :inline t :tag "Ghostscript options" string)))) diff -Nru auctex-11.88/debian/patches/0007-Add-new-TeX-file-line-error-option.patch auctex-11.90/debian/patches/0007-Add-new-TeX-file-line-error-option.patch --- auctex-11.88/debian/patches/0007-Add-new-TeX-file-line-error-option.patch 2015-01-02 21:40:25.000000000 +0000 +++ auctex-11.90/debian/patches/0007-Add-new-TeX-file-line-error-option.patch 1970-01-01 00:00:00.000000000 +0000 @@ -1,131 +0,0 @@ -From: "Davide G. M. Salvetti" -Date: Fri, 31 Oct 2014 22:07:22 +0100 -Subject: Add new TeX-file-line-error option - -This new option allows the user to select the style TeX prints error -messages with (also see FAQ number 8). - -* tex.el (TeX-file-line-error): New customizable option. - (TeX-expand-list): New expander "$(file-line-error)". - (TeX-command-list): Use it. - (LaTeX-command-style): Use it. - -* doc/auctex.texi (Processor Options): Document `TeX-file-line-error'. - -* doc/changes.texi: Mention `TeX-file-line-error'. ---- - ChangeLog | 12 ++++++++++++ - doc/auctex.texi | 9 ++++++++- - doc/changes.texi | 8 ++++++++ - tex.el | 11 +++++++++-- - 4 files changed, 37 insertions(+), 3 deletions(-) - -diff --git a/ChangeLog b/ChangeLog -index 6a6599e..0a634a2 100644 ---- a/ChangeLog -+++ b/ChangeLog -@@ -1,3 +1,15 @@ -+2014-11-01 Davide G. M. Salvetti -+ -+ * tex.el (TeX-file-line-error): New customizable option. -+ (TeX-expand-list): New expander "$(file-line-error)". -+ (TeX-command-list): Use it. -+ (LaTeX-command-style): Use it. -+ -+ * doc/auctex.texi (Processor Options): Document -+ `TeX-file-line-error'. -+ -+ * doc/changes.texi: Mention `TeX-file-line-error'. -+ - 2014-10-29 Mosè Giordano - - * Version 11.88 released. -diff --git a/doc/auctex.texi b/doc/auctex.texi -index 08bf8cf..10af8dc 100644 ---- a/doc/auctex.texi -+++ b/doc/auctex.texi -@@ -2786,7 +2786,7 @@ should be produced, if @TeX{} should be started in interactive or - nonstop mode, if source specials or a Sync@TeX{} file should be produced - for making inverse and forward search possible or which @TeX{} engine - should be used instead of regular @TeX{}, like PDF@TeX{}, Omega or --Xe@TeX{}. -+Xe@TeX{}, and the style error messages are printed with. - - @deffn Command TeX-PDF-mode - @kindex C-c C-t C-p -@@ -2929,6 +2929,13 @@ produced. - If non-nil, the output of @TeX{} compilation is shown in another window. - @end defopt - -+You can instruct @TeX{} to print error messages in the form -+file:line:error which is similar to the way many compilers format them. -+ -+@defopt TeX-file-line-error -+If non-nil, @TeX{} will produce file:line:error style error messages. -+@end defopt -+ - @node Viewing - @section Viewing the Formatted Output - @cindex Viewing -diff --git a/doc/changes.texi b/doc/changes.texi -index 056177e..0dd30bd 100644 ---- a/doc/changes.texi -+++ b/doc/changes.texi -@@ -8,6 +8,14 @@ - - @end ifset - -+@heading News since 11.88 -+ -+@itemize @bullet -+@item -+New option @code{TeX-file-line-error} allows to select file:line:error -+style for error messages. -+@end itemize -+ - @heading News in 11.88 - - @itemize @bullet -diff --git a/tex.el b/tex.el -index b94e8c3..02f8422 100644 ---- a/tex.el -+++ b/tex.el -@@ -79,6 +79,11 @@ - :group 'TeX-command - :type 'string) - -+(defcustom TeX-file-line-error t -+ "Whether to have TeX produce file:line:error style error messages." -+ :group 'TeX-command -+ :type 'boolean) -+ - (defcustom ConTeXt-engine nil - "Engine to use for --engine in the texexec command. - If nil, none is specified." -@@ -112,7 +117,7 @@ If nil, none is specified." - ;; TeX-expand-list for a description of the % escapes - - (defcustom TeX-command-list -- `(("TeX" "%(PDF)%(tex) %(extraopts) %`%S%(PDFout)%(mode)%' %t" -+ `(("TeX" "%(PDF)%(tex) %(file-line-error) %(extraopts) %`%S%(PDFout)%(mode)%' %t" - TeX-run-TeX nil - (plain-tex-mode ams-tex-mode texinfo-mode) :help "Run plain TeX") - ("LaTeX" "%`%l%(mode)%' %t" -@@ -301,7 +306,7 @@ The executable `latex' is LaTeX version 2e." - - (defcustom LaTeX-command-style - ;; They have all been combined in LaTeX 2e. -- '(("" "%(PDF)%(latex) %(extraopts) %S%(PDFout)")) -+ '(("" "%(PDF)%(latex) %(file-line-error) %(extraopts) %S%(PDFout)")) - "List of style options and LaTeX commands. - - If the first element (a regular expression) matches the name of one of -@@ -456,6 +461,8 @@ string." - (if TeX-interactive-mode - "" - " -interaction=nonstopmode"))) -+ ("%(file-line-error)" -+ (lambda () (if TeX-file-line-error " -file-line-error" ""))) - ("%(o?)" (lambda () (if (eq TeX-engine 'omega) "o" ""))) - ("%(tex)" (lambda () (eval (nth 2 (assq TeX-engine (TeX-engine-alist)))))) - ("%(latex)" (lambda () (eval (nth 3 (assq TeX-engine (TeX-engine-alist)))))) diff -Nru auctex-11.88/debian/patches/0007-Fix-ConTeXt-outline-regexp.patch auctex-11.90/debian/patches/0007-Fix-ConTeXt-outline-regexp.patch --- auctex-11.88/debian/patches/0007-Fix-ConTeXt-outline-regexp.patch 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/debian/patches/0007-Fix-ConTeXt-outline-regexp.patch 2017-01-13 23:23:32.000000000 +0000 @@ -0,0 +1,30 @@ +From: "Davide G. M. Salvetti" +Date: Fri, 13 Jan 2017 21:58:37 +0100 +Subject: Fix ConTeXt-outline-regexp + +Add a separator between different elements; see Debian bug #850444. +--- + context.el | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/context.el b/context.el +index 941057a70..e220c437b 100644 +--- a/context.el ++++ b/context.el +@@ -1,6 +1,6 @@ + ;;; context.el --- Support for ConTeXt documents. + +-;; Copyright (C) 2003-2006, 2008, 2010, 2012, 2014-2016 ++;; Copyright (C) 2003-2006, 2008, 2010, 2012, 2014-2017 + ;; Free Software Foundation, Inc. + + ;; Maintainer: Berend de Boer +@@ -1037,7 +1037,7 @@ header is at the start of a line." + (regexp-quote TeX-esc) + "\\(" + (mapconcat #'ConTeXt-environment-full-start-name ConTeXt-section-block-list "\\|") "\\|" +- (mapconcat #'car ConTeXt-numbered-section-list "\\|") ++ (mapconcat #'car ConTeXt-numbered-section-list "\\|") "\\|" + (mapconcat #'car ConTeXt-unnumbered-section-list "\\|") + "\\)\\b" + (if TeX-outline-extra diff -Nru auctex-11.88/debian/patches/series auctex-11.90/debian/patches/series --- auctex-11.88/debian/patches/series 2015-01-02 21:40:25.000000000 +0000 +++ auctex-11.90/debian/patches/series 2017-01-16 17:14:04.000000000 +0000 @@ -6,4 +6,4 @@ 0004-TeX-view-program-selection-Customize-for-Debian.patch 0005-TeX-auto-global-Customize-for-Debian.patch 0006-preview-image-type-Customize-for-Debian.patch -0007-Add-new-TeX-file-line-error-option.patch +0007-Fix-ConTeXt-outline-regexp.patch diff -Nru auctex-11.88/debian/po/pt_BR.po auctex-11.90/debian/po/pt_BR.po --- auctex-11.88/debian/po/pt_BR.po 2015-01-02 21:40:25.000000000 +0000 +++ auctex-11.90/debian/po/pt_BR.po 2017-01-16 17:14:06.000000000 +0000 @@ -1,26 +1,28 @@ # Brazilian Portuguese translations of the "debian/auctex/templates" file of # the auctex Debian package. # -# Copyright (C) 2002, 03, 04, 05, 06, 07 Davide G. M. Salvetti +# Copyright (C) 2002, 03, 04, 05, 06, 07, 16 Davide G. M. Salvetti # # This file is distributed under the same license as the auctex Debian # package. # # Paulo R. Ormenese , 2002 # André Luís Lopes , 2007 +# Diego Neves , 2016 msgid "" msgstr "" "Project-Id-Version: auctex\n" "Report-Msgid-Bugs-To: auctex@packages.debian.org\n" "POT-Creation-Date: 2012-01-02 02:04+0100\n" -"PO-Revision-Date: 2011-06-22 00:33+0200\n" -"Last-Translator: André Luís Lopes \n" -"Language-Team: Debian-BR Project \n" +"PO-Revision-Date: 2016-02-24 23:02-0300\n" +"Last-Translator: Diego Neves \n" +"Language-Team: Brazilian Portuguese \n" "Language: pt_BR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"pt_BR utf8\n" +"X-Generator: Poedit 1.8.7\n" #. Type: select #. Choices @@ -49,68 +51,47 @@ #. Type: select #. Description #: ../auctex.templates:1002 -#, fuzzy -#| msgid "" -#| "To greatly improve AUCTeX performances, every TeX macro package and LaTeX " -#| "style file currently installed at your site will be parsed." msgid "" "To improve the performance of AUCTeX, every currently installed TeX macro " "package and LaTeX style file will be parsed." msgstr "" -"Para melhorar enormemente a performance de AUCTeX, todo pacote de macro TeX " -"e arquivo de estilo LaTeX instalados atualmente em seu sistema serão " -"interpretados." +"Para melhorar o desempenho do AUCTeX, será analisado cada arquivo de estilo " +"do LaTeX e de pacote de macro TeX atualmente instalado." #. Type: select #. Description #. Translators: do NOT translate ${LOGFILE} #: ../auctex.templates:1002 -#, fuzzy -#| msgid "" -#| "This may take a lot of time, so it should be probably done in the " -#| "background; however you may also choose to have it done in the " -#| "foreground, or to skip the parsing at all instead. If you choose " -#| "Background, you will find a detailed log of the process in the file: " -#| "${LOGFILE}." msgid "" "This may take a lot of time, so it should probably be done in the " "background. You may also choose to have it done in the foreground, or to " "skip that step." msgstr "" -"Isso pode consumir um bom tempo, então pode ser feito provavelmente em " -"segundo plano; entretanto, você pode optar por ter isso feito em primeiro " -"plano, ou ao invés disso pular o processo de interpretação. Caso você optar " -"por fazer a interpretação em segundo plano, encontrará um log detalhado do " -"processo no arquivo: ${LOGFILE}." +"Isso pode demorar muito tempo, por isso provavelmente deve ser feito em " +"segundo plano. Você também pode optar por fazer em primeiro plano, ou pular " +"esta etapa." #. Type: select #. Description #: ../auctex.templates:1002 -#, fuzzy -#| msgid "" -#| "A weekly cron job will also take care of updating the data collected now, " -#| "so usually you won't need to worry about them whenever you install new " -#| "(La)TeX packages or remove old ones." msgid "" "The cached data gets automatically updated via dpkg triggers, so that no " "specific action is required whenever you install new (La)TeX packages or " "remove old ones." msgstr "" -"Um trabalho semanal do cron também tomará o cuidado de atualizar as " -"informações obtidas agora, então você normalmente não precisará preocupar-se " -"com elas mesmo quando instalar novos pacotes (La)TeX ou remover antigos." +"Os dados em cache serão atualizados automaticamente via gatilhos do dpkg, de " +"modo que não é necessária nenhuma ação específica para instalar ou remover " +"pacotes (La)TeX." #. Type: select #. Description #: ../auctex.templates:1002 -#, fuzzy -#| msgid "Anyway, you can update them by hand running update-auctex-elisp." msgid "" "This update can be run manually at any moment by running 'update-auctex-" "elisp'." msgstr "" -"De qualquer forma, você pode atualizá-las manualmente executando update-" -"auctex-elisp." +"Esta atualização pode ser executada manualmente a qualquer momento, " +"executando \"update-auctex elisp\"." #~ msgid "Console" #~ msgstr "Console" diff -Nru auctex-11.88/debian/preview-latex-style.docs auctex-11.90/debian/preview-latex-style.docs --- auctex-11.88/debian/preview-latex-style.docs 2015-01-02 21:40:25.000000000 +0000 +++ auctex-11.90/debian/preview-latex-style.docs 2017-01-16 17:14:04.000000000 +0000 @@ -1,2 +1,2 @@ -preview/latex/README -preview/latex/preview.pdf +latex/README +latex/preview.pdf diff -Nru auctex-11.88/debian/preview-latex-style.README.Debian.eperl auctex-11.90/debian/preview-latex-style.README.Debian.eperl --- auctex-11.88/debian/preview-latex-style.README.Debian.eperl 2015-01-02 21:40:25.000000000 +0000 +++ auctex-11.90/debian/preview-latex-style.README.Debian.eperl 2017-01-16 17:14:04.000000000 +0000 @@ -6,7 +6,7 @@ There are no special Debian notes for this package. --- Davide G. M. Salvetti , <:=$_=gmtime:>. +-- Davide G. M. Salvetti <: # local variables: # mode: text diff -Nru auctex-11.88/debian/rules auctex-11.90/debian/rules --- auctex-11.88/debian/rules 2015-01-02 21:40:25.000000000 +0000 +++ auctex-11.90/debian/rules 2017-01-16 17:14:04.000000000 +0000 @@ -2,17 +2,17 @@ # # makefile rules for the Debian package auctex # -# Copyright (C) 1997-2014 Davide G. M. Salvetti. +# Copyright (C) 1997-2016 Davide G. M. Salvetti. # # This program is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by the -# Free Software Foundation; either version 3 of the License, or (at your -# option) any later version. +# under the terms of the GNU General Public License as published by the Free +# Software Foundation; either version 3 of the License, or (at your option) +# any later version. # # This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. # # You should have received a copy of the GNU General Public License along # with this program. If not, see . @@ -21,6 +21,9 @@ # License in "/usr/share/common-licenses/GPL". SHELL := /bin/bash +SBUILD := "sbuild --verbose" + +DEB_BUILD_OPTIONS := nocheck EPERL_SRC := $(wildcard debian/*.eperl) EPERL_OBJ := $(EPERL_SRC:%.eperl=%) @@ -34,12 +37,12 @@ %:: %.eperl eperl -P -o $@ $< -build: debian/clean +%: dh $@ --exclude .eperl --with tex ELCC := $(shell pwd)/debian/elcc .PHONY: override_dh_auto_build -override_dh_auto_build: +override_dh_auto_build: debian/clean chmod a+x debian/elcc $(MAKE) ELCC=$(ELCC) rm --force auto-loads.el @@ -57,10 +60,9 @@ -print0 | xargs --null --no-run-if-empty rm -f dh_install -.PHONY: override_dh_auto_install -override_dh_auto_install: - dh_auto_install - cd preview/latex && $(MAKE) DESTDIR=../../debian/tmp install +.PHONY: override_dh_installchangelogs +override_dh_installchangelogs: + dh_installchangelogs --exclude CHANGES .PHONY: override_dh_compress override_dh_compress: @@ -77,10 +79,6 @@ debian/tmp/usr/doc/auctex/HTML/auctex install -m 644 doc/preview-latex.htmls/* \ debian/tmp/usr/doc/auctex/HTML/preview-latex - cd preview; for i in ChangeLog*; do \ - install -m 644 $$i \ - ../debian/tmp/usr/doc/auctex/preview-$$i; \ - done dh_installdocs .PHONY: override_dh_installtex @@ -110,43 +108,50 @@ --from='"Davide G. M. Salvetti (Debian auctex maintainer)" ' \ --postpone=../+RFT.mbox -.PHONY: cvs-import -cvs-import: VERSION := 11.86+cvs.$(shell date +%Y.%m.%d.%H.%M) -cvs-import: - cd .. && cvs -z3 \ - -d:ext:salve@cvs.savannah.gnu.org:/sources/auctex \ - export -d auctex_$(VERSION) -D $$(date +%F) auctex - find ../auctex_$(VERSION) -type f -name .cvsignore -print0 \ - | xargs --null --no-run-if-empty rm --force - cd ../auctex_$(VERSION) && ./autogen.sh - tar --create --verbose --auto-compress \ - --file=../auctex_$(VERSION).orig.tar.gz \ - --directory=.. auctex_$(VERSION) - rm --recursive --force ../auctex_$(VERSION) - git-import-orig --verbose \ - --upstream-branch=cvs/upstream \ - --debian-branch=cvs/master \ - ../auctex_$(VERSION).orig.tar.gz - rm --force ../auctex_$(VERSION).orig.tar.gz +.PHONY: vcs-switch +vcs-switch: + git checkout vcs/debian + +.PHONY: vcs-import +vcs-import: B := $(shell dpkg-parsechangelog --show-field Version \ + | cut --fields 1 --delimiter '-') +vcs-import: D := $(shell date --utc +%Y%m%d%H%M) +vcs-import: V := "$(B)+vcs.$(D)" +vcs-import: vcs-switch + git archive --verbose --worktree-attributes \ + --prefix="auctex-$(V)/" \ + --output="../auctex_$(V).orig.tar.gz" \ + vcs/upstream/git + gbp import-orig --verbose \ + --upstream-branch=vcs/upstream/snapshot \ + --debian-branch=vcs/debian \ + "../auctex_$(V).orig.tar.gz" + rm --force "../auctex_$(V).orig.tar.gz" .PHONY: snapshot +snapshot: OBJ := --arch-all +snapshot: DIST := unstable snapshot: BRANCH := $(shell git branch | perl -ne 'print if s/^\* //') -snapshot: - git-dch --debian-branch=$(BRANCH) --snapshot --auto --commit - git-buildpackage -tc -us -uc --git-pbuilder \ +snapshot: clean + gbp dch --debian-branch=$(BRANCH) --snapshot --auto --commit + gbp buildpackage \ + --git-builder='$(SBUILD) $(OBJ) --dist=$(DIST)' \ --git-debian-branch=$(BRANCH) .PHONY: release -release: +release: OBJ := --arch-all --arch-any --source --source-only-changes +release: DIST := unstable +release: clean git checkout master - gbp-pq rebase - gbp-pq export - git-dch --release --commit - git-buildpackage -tc -us -uc --git-pbuilder --git-tag + gbp pq rebase + gbp pq export + gbp dch --release --commit + gbp buildpackage \ + --git-builder='$(SBUILD) $(OBJ) --dist=$(DIST)' \ + --git-tag .PHONY: upload upload: V := $(shell dpkg-parsechangelog --show-field Version) -upload: A := $(shell dpkg --print-architecture) upload: debsign - dput ../auctex_$(V)_$(A).changes + dput ../auctex_$(V)_source.changes diff -Nru auctex-11.88/debian/rules.eperl auctex-11.90/debian/rules.eperl --- auctex-11.88/debian/rules.eperl 2015-01-02 21:40:25.000000000 +0000 +++ auctex-11.90/debian/rules.eperl 2017-01-16 17:14:04.000000000 +0000 @@ -10,6 +10,10 @@ :>// SHELL := /bin/bash +SBUILD := "sbuild --verbose" + +<: # There are no tests at this moment :>// +DEB_BUILD_OPTIONS := nocheck EPERL_SRC := $(wildcard debian/*.eperl) EPERL_OBJ := $(EPERL_SRC:%.eperl=%) @@ -24,14 +28,14 @@ %:: %.eperl eperl -P -o $@ $< -build: debian/clean +%: dh $@ --exclude .eperl --with tex <: # Debian Emacs policy requires to byte-compile at installation time; # debian/elcc simulates Emacs byte compilation touching empty elcs. :>// ELCC := $(shell pwd)/debian/elcc .PHONY: override_dh_auto_build -override_dh_auto_build: +override_dh_auto_build: debian/clean chmod a+x debian/elcc $(MAKE) ELCC=$(ELCC) <: # auto-loads.el needs to be byte-compiled for real :>// @@ -52,10 +56,9 @@ -print0 | xargs --null --no-run-if-empty rm -f dh_install -.PHONY: override_dh_auto_install -override_dh_auto_install: - dh_auto_install - cd preview/latex && $(MAKE) DESTDIR=../../debian/tmp install +.PHONY: override_dh_installchangelogs +override_dh_installchangelogs: + dh_installchangelogs --exclude CHANGES .PHONY: override_dh_compress override_dh_compress: @@ -72,10 +75,6 @@ debian/tmp/usr/doc/auctex/HTML/auctex install -m 644 doc/preview-latex.htmls/* \ debian/tmp/usr/doc/auctex/HTML/preview-latex - cd preview; for i in ChangeLog*; do \ - install -m 644 $$i \ - ../debian/tmp/usr/doc/auctex/preview-$$i; \ - done dh_installdocs .PHONY: override_dh_installtex @@ -106,46 +105,53 @@ --from='"Davide G. M. Salvetti (Debian auctex maintainer)" ' \ --postpone=../+RFT.mbox -.PHONY: cvs-import -cvs-import: VERSION := 11.86+cvs.$(shell date +%Y.%m.%d.%H.%M) -cvs-import: - cd .. && cvs -z3 \ - -d:ext:salve@cvs.savannah.gnu.org:/sources/auctex \ - export -d auctex_$(VERSION) -D $$(date +%F) auctex - find ../auctex_$(VERSION) -type f -name .cvsignore -print0 \ - | xargs --null --no-run-if-empty rm --force - cd ../auctex_$(VERSION) && ./autogen.sh - tar --create --verbose --auto-compress \ - --file=../auctex_$(VERSION).orig.tar.gz \ - --directory=.. auctex_$(VERSION) - rm --recursive --force ../auctex_$(VERSION) - git-import-orig --verbose \ - --upstream-branch=cvs/upstream \ - --debian-branch=cvs/master \ - ../auctex_$(VERSION).orig.tar.gz - rm --force ../auctex_$(VERSION).orig.tar.gz +.PHONY: vcs-switch +vcs-switch: + git checkout vcs/debian + +.PHONY: vcs-import +vcs-import: B := $(shell dpkg-parsechangelog --show-field Version \ + | cut --fields 1 --delimiter '-') +vcs-import: D := $(shell date --utc +%Y%m%d%H%M) +vcs-import: V := "$(B)+vcs.$(D)" +vcs-import: vcs-switch + git archive --verbose --worktree-attributes \ + --prefix="auctex-$(V)/" \ + --output="../auctex_$(V).orig.tar.gz" \ + vcs/upstream/git + gbp import-orig --verbose \ + --upstream-branch=vcs/upstream/snapshot \ + --debian-branch=vcs/debian \ + "../auctex_$(V).orig.tar.gz" + rm --force "../auctex_$(V).orig.tar.gz" .PHONY: snapshot +snapshot: OBJ := --arch-all +snapshot: DIST := unstable snapshot: BRANCH := $(shell git branch | perl -ne 'print if s/^\* //') -snapshot: - git-dch --debian-branch=$(BRANCH) --snapshot --auto --commit - git-buildpackage -tc -us -uc --git-pbuilder \ +snapshot: clean + gbp dch --debian-branch=$(BRANCH) --snapshot --auto --commit + gbp buildpackage \ + --git-builder='$(SBUILD) $(OBJ) --dist=$(DIST)' \ --git-debian-branch=$(BRANCH) .PHONY: release -release: +release: OBJ := --arch-all --arch-any --source --source-only-changes +release: DIST := unstable +release: clean git checkout master - gbp-pq rebase - gbp-pq export - git-dch --release --commit - git-buildpackage -tc -us -uc --git-pbuilder --git-tag + gbp pq rebase + gbp pq export + gbp dch --release --commit + gbp buildpackage \ + --git-builder='$(SBUILD) $(OBJ) --dist=$(DIST)' \ + --git-tag .PHONY: upload upload: V := $(shell dpkg-parsechangelog --show-field Version) -upload: A := $(shell dpkg --print-architecture) upload: debsign - dput ../auctex_$(V)_$(A).changes + dput ../auctex_$(V)_source.changes <: # local variables: # mode: makefile-gmake diff -Nru auctex-11.88/debian/update-auctex-elisp.eperl auctex-11.90/debian/update-auctex-elisp.eperl --- auctex-11.88/debian/update-auctex-elisp.eperl 2015-01-02 21:40:25.000000000 +0000 +++ auctex-11.90/debian/update-auctex-elisp.eperl 2017-01-16 17:14:04.000000000 +0000 @@ -44,7 +44,7 @@ esac done <: # Default flavors: only GNU, XEmacs comes with its own AUCTeX :>// -FLAVORS=${*:-'emacs23 emacs24 emacs-snapshot'} +FLAVORS=${*:-'emacs24 emacs25 emacs-snapshot'} LOGMASK='/var/lib/auctex/%s/CompilationLog' if [ -n "${_UPDATE_AUCTEX_ELISP_DAEMON_MODE}" ]; then diff -Nru auctex-11.88/doc/auctex.info auctex-11.90/doc/auctex.info --- auctex-11.88/doc/auctex.info 2014-10-29 19:21:41.000000000 +0000 +++ auctex-11.90/doc/auctex.info 2017-01-10 21:36:05.000000000 +0000 @@ -1,9 +1,9 @@ -This is auctex.info, produced by makeinfo version 5.2 from auctex.texi. +This is auctex.info, produced by makeinfo version 6.3 from auctex.texi. -This manual is for AUCTeX (version 11.88 from 2014-10-29), a +This manual is for AUCTeX (version 11.90 from 2017-01-10), a sophisticated TeX environment for Emacs. - Copyright (C) 1992-1995, 2001, 2002, 2004-2014 Free Software + Copyright (C) 1992-1995, 2001, 2002, 2004-2016 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this @@ -25,104 +25,107 @@  Indirect: auctex.info-1: 916 -auctex.info-2: 301183 +auctex.info-2: 311372  Tag Table: (Indirect) Node: Top916 -Node: Copying7178 -Node: Introduction9134 -Node: Summary9404 -Node: Installation12145 -Node: Prerequisites13519 -Node: Configure16387 -Node: Build/install21798 -Node: Loading the package22289 -Node: Advice for package providers24096 -Node: Advice for non-privileged users28041 -Node: Installation under MS Windows31999 -Node: Customizing47222 -Node: Quick Start48805 -Ref: Quick Start-Footnote-150795 -Node: Editing Facilities50942 -Node: Processing Facilities55737 -Node: Editing59631 -Node: Quotes60961 -Node: Font Specifiers69229 -Node: Sectioning71055 -Node: Environments75375 -Node: Equations80529 -Node: Floats81120 -Node: Itemize-like82653 -Node: Tabular-like83374 -Node: Customizing Environments84857 -Node: Mathematics85097 -Node: Completion88023 -Node: Marking93346 -Node: Marking (LaTeX)93970 -Node: Marking (Texinfo)94912 -Node: Commenting96522 -Node: Indenting97847 -Node: Filling103632 -Node: Display108952 -Node: Font Locking110564 -Node: Fontification of macros112639 -Node: Fontification of quotes122077 -Node: Fontification of math123572 -Node: Verbatim content125291 -Node: Faces126065 -Node: Known problems126554 -Node: Folding127483 -Node: Outline138307 -Node: Narrowing139579 -Node: Processing140629 -Node: Commands141792 -Node: Starting a Command142348 -Node: Selecting a Command146071 -Node: Processor Options149597 -Node: Viewing156049 -Node: Starting Viewers156423 -Node: I/O Correlation162585 -Node: Debugging166031 -Node: Checking170386 -Node: Control171548 -Node: Cleaning172275 -Node: Documentation173488 -Node: Customization174268 -Node: Modes and Hooks174761 -Node: Multifile175967 -Node: Parsing Files180646 -Node: Internationalization185558 -Node: European186739 -Node: Japanese193619 -Node: Automatic195316 -Node: Automatic Global197841 -Node: Automatic Private199002 -Node: Automatic Local200315 -Node: Style Files201404 -Node: Simple Style202197 -Node: Adding Macros205470 -Node: Adding Environments214591 -Node: Adding Other219252 -Node: Hacking the Parser219839 -Node: Appendices223708 -Node: Copying this Manual224092 -Node: GNU Free Documentation License224974 -Node: Changes250093 -Node: Development278741 -Node: Mid-term Goals279387 -Node: Wishlist280604 -Node: Bugs286561 -Node: FAQ288091 -Node: Texinfo mode294107 -Node: Exploiting295243 -Node: Superseding296063 -Node: Mapping301183 -Node: Unbinding303012 -Node: Indices303833 -Node: Key Index304058 -Node: Function Index310017 -Node: Variable Index320389 -Node: Concept Index340920 +Node: Copying7419 +Node: Introduction9375 +Node: Summary9645 +Node: Installation12386 +Node: Prerequisites14152 +Node: Configure17020 +Node: Build/install and uninstall22445 +Node: Loading the package23198 +Node: Advice for package providers25019 +Node: Advice for non-privileged users28964 +Node: Installation under MS Windows32922 +Node: Customizing48155 +Node: Quick Start49738 +Ref: Quick Start-Footnote-151868 +Node: Editing Facilities52015 +Node: Processing Facilities56818 +Node: Editing61576 +Node: Quotes62906 +Node: Font Specifiers71174 +Node: Sectioning73000 +Node: Environments77320 +Node: Equations82474 +Node: Floats83065 +Node: Itemize-like85069 +Node: Tabular-like85790 +Node: Customizing Environments87563 +Node: Mathematics87803 +Node: Completion90729 +Node: Marking97755 +Node: Marking (LaTeX)98379 +Node: Marking (Texinfo)99321 +Node: Commenting100931 +Node: Indenting102256 +Node: Filling108292 +Node: Display114164 +Node: Font Locking116659 +Node: Fontification of macros118734 +Node: Fontification of quotes128172 +Node: Fontification of math129667 +Node: Verbatim content133118 +Node: Faces133892 +Node: Known problems134381 +Node: Folding135310 +Node: Outline146134 +Node: Narrowing147406 +Node: Prettifying148476 +Node: Processing149713 +Node: Commands150876 +Node: Starting a Command151432 +Node: Selecting a Command156335 +Node: Processor Options164723 +Node: Viewing175003 +Node: Starting Viewers175377 +Node: I/O Correlation181954 +Node: Debugging187212 +Node: Ignoring warnings189866 +Node: Error overview191926 +Node: Checking193919 +Node: Control195081 +Node: Cleaning195808 +Node: Documentation197021 +Node: Customization197736 +Node: Modes and Hooks198229 +Node: Multifile200049 +Node: Parsing Files204861 +Node: Internationalization209773 +Node: European210945 +Node: Japanese217825 +Node: Automatic219809 +Node: Automatic Global222300 +Node: Automatic Private223432 +Node: Automatic Local224745 +Node: Style Files225777 +Node: Simple Style226570 +Node: Adding Macros229843 +Node: Adding Environments238961 +Node: Adding Other243622 +Node: Hacking the Parser244209 +Node: Appendices248078 +Node: Copying this Manual248462 +Node: GNU Free Documentation License249344 +Node: Changes274463 +Node: Development311372 +Node: Mid-term Goals312018 +Node: Wishlist313235 +Node: Bugs318676 +Node: FAQ320206 +Node: Texinfo mode326379 +Node: Exploiting327515 +Node: Superseding328335 +Node: Mapping332539 +Node: Unbinding334368 +Node: Indices335189 +Node: Key Index335414 +Node: Function Index341592 +Node: Variable Index352402 +Node: Concept Index374384  End Tag Table diff -Nru auctex-11.88/doc/auctex.info-1 auctex-11.90/doc/auctex.info-1 --- auctex-11.88/doc/auctex.info-1 2014-10-29 19:21:41.000000000 +0000 +++ auctex-11.90/doc/auctex.info-1 2017-01-10 21:36:05.000000000 +0000 @@ -1,9 +1,9 @@ -This is auctex.info, produced by makeinfo version 5.2 from auctex.texi. +This is auctex.info, produced by makeinfo version 6.3 from auctex.texi. -This manual is for AUCTeX (version 11.88 from 2014-10-29), a +This manual is for AUCTeX (version 11.90 from 2017-01-10), a sophisticated TeX environment for Emacs. - Copyright (C) 1992-1995, 2001, 2002, 2004-2014 Free Software + Copyright (C) 1992-1995, 2001, 2002, 2004-2016 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this @@ -116,6 +116,7 @@ * Folding:: Folding Macros and Environments * Outline:: Outlining the Document * Narrowing:: Restricting display and editing to a portion of the buffer +* Prettifying:: Displaying Greek and math macros as Unicode characters Font Locking @@ -140,6 +141,11 @@ * Starting Viewers:: Starting viewers * I/O Correlation:: Forward and inverse search +Catching the errors + +* Ignoring warnings:: Controlling warnings to be reported +* Error overview:: List of all errors and warnings + Customization and Extension * Multifile:: Multifile Documents @@ -305,11 +311,16 @@ 1.2 Installing AUCTeX ===================== -The simplest way of installing AUCTeX is by using the Emacs package -manager integrated in Emacs 24 and greater (ELPA). Simply do 'M-x -package-list-packages RET', mark the auctex package for installation -with 'i', and hit 'x' to execute the installation procedure. That's -all. +The modern and strongly recommended way of installing AUCTeX is by using +the Emacs package manager integrated in Emacs 24 and greater (ELPA). +Simply do 'M-x list-packages RET', mark the auctex package for +installation with 'i', and hit 'x' to execute the installation +procedure. That's all. This installation procedure has several +advantages. Besides being platform and OS independent, you will receive +intermediate releases between major AUCTeX releases conveniently. For +past ELPA releases, see . +Once the installation is completed, you can skip the rest of this +section and proceed to *note Quick Start::. The remainder of this section is about installing AUCTeX from a release tarball or from a checkout of the AUCTeX repository. @@ -322,14 +333,14 @@ modes the default instead of the built-in modes of Emacs. If this is not the case, consult *note Loading the package::. Please read through this document fully before installing anything. The installation -procedure has changed as compared to earlier versions. Users of MS Windows -are asked to consult *Note Installation under MS Windows::. +procedure has changed as compared to earlier versions. Users of +MS Windows are asked to consult *Note Installation under MS Windows::. * Menu: * Prerequisites:: * Configure:: -* Build/install:: +* Build/install and uninstall:: * Loading the package:: * Advice for package providers:: * Advice for non-privileged users:: @@ -403,7 +414,7 @@ (preview-latex)Known problems::.  -File: auctex.info, Node: Configure, Next: Build/install, Prev: Prerequisites, Up: Installation +File: auctex.info, Node: Configure, Next: Build/install and uninstall, Prev: Prerequisites, Up: Installation 1.2.2 Configure --------------- @@ -526,10 +537,10 @@ but is normally not necessary otherwise.  -File: auctex.info, Node: Build/install, Next: Loading the package, Prev: Configure, Up: Installation +File: auctex.info, Node: Build/install and uninstall, Next: Loading the package, Prev: Configure, Up: Installation -1.2.3 Build/install -------------------- +1.2.3 Build/install and uninstall +--------------------------------- Once 'configure' has been run, simply enter @@ -541,11 +552,19 @@ make install - You may need special privileges to install, e.g., if you are -installing into system directories. +You may need special privileges to install, e.g., if you are installing +into system directories. + + Should you want to completely remove the installed package, in the +same directory you built AUCTeX run + + make uninstall + +You will need administration privileges if you installed the package +into system directories.  -File: auctex.info, Node: Loading the package, Next: Advice for package providers, Prev: Build/install, Up: Installation +File: auctex.info, Node: Loading the package, Next: Advice for package providers, Prev: Build/install and uninstall, Up: Installation 1.2.4 Loading the package ------------------------- @@ -719,7 +738,7 @@ Here is how to do the various parts: Making the Elisp available --------------------------- +.......................... In GNU Emacs, it should be sufficient if people just do @@ -736,7 +755,7 @@ symlinking for them.) Making the Info files available -------------------------------- +............................... For making the info files accessible from within Elisp, something like the following might be convenient to add into your or other people's @@ -752,7 +771,7 @@ normally in '~/.xemacs/xemacs-packages/info'.) Making the LaTeX style available --------------------------------- +................................ If you want others to be able to share your installation, you should configure it using '--without-texmf-dir', in which case things should @@ -765,7 +784,7 @@ ----------------------------------- In a Nutshell -------------- +............. The following are brief installation instructions for the impatient. In case you don't understand some of this, run into trouble of some sort, @@ -829,7 +848,7 @@ make install Detailed Installation Instructions ----------------------------------- +.................................. Installation of AUCTeX under Windows is in itself not more complicated than on other platforms. However, meeting the prerequisites might @@ -896,7 +915,7 @@ save headaches, _if_ things don't work out. 3. Install a current version of XEmacs from - or Emacs from . Emacs is the + or Emacs from . Emacs is the recommended choice because it is currently the primary platform for AUCTeX development. @@ -1065,9 +1084,9 @@ Adding support for an image format usually involves the installation of a library, e.g. from . - If you got your Emacs from you might want to check its - README file (ftp://ftp.gnu.org/gnu/emacs/windows/README) for - details. + If you got your Emacs from you might want to + check its README file (ftp://ftp.gnu.org/gnu/emacs/windows/README) + for details. A different image format can be chosen by setting the variable 'preview-image-type'. While it is recommended to keep the 'dvipng' @@ -1140,15 +1159,19 @@ keystrokes are written in Emacs manuals. If not, have a look at the Emacs Tutorial in the Help menu. - If AUCTeX is installed, you might still need to activate it, by -inserting + If AUCTeX is installed in any other way than from the Emacs package +manager (ELPA), you might still need to activate it, by inserting (load "auctex.el" nil t t) - in your user init file.(1) If you've installed AUCTeX from the Emacs -package manager (ELPA), you must not have this line in your user init -file. The installation procedure already cares about loading AUCTeX -correctly. + in your user init file.(1) + + If AUCTeX is installed from ELPA, the installation procedure already +cares about loading AUCTeX correctly and you *must not* have the line +above in your init file. Note that this also applies if you have the +following line in your init file + + (package-initialize) In order to get support for many of the LaTeX packages you will use in your documents, you should enable document parsing as well, which can @@ -1276,10 +1299,10 @@ 'C-c C-f C-d' Delete the innermost font specification containing point. - If you want to change font attributes of existing text, mark it as a -region, and then invoke the commands. If no region is selected, the -command will be inserted with empty braces, and you can start typing the -changed text. + If you want to change font attributes of existing text, mark it as an +active region, and then invoke the commands. If no region is selected, +the command will be inserted with empty braces, and you can start typing +the changed text. Most of those commands will also work in math mode, but then macros like '\mathbf' will be inserted. @@ -1319,6 +1342,12 @@ suggest to run a viewer, or you can chose to create a PostScript file using 'dvips', or to directly print it. + Actually, there is another command which comes in handy to compile +documents: type 'C-c C-a' ('TeX-command-run-all') and AUCTeX will +compile the document for you until it is ready and then run the viewer. +This is the same as issuing repeatedly 'C-c C-c' and letting AUCTeX +guess the next command to run. + At this place, a warning needs to be given: First, although AUCTeX is really good in detecting the standard situations when an additional 'latex' run is necessary, it cannot detect it always. Second, the @@ -1352,6 +1381,13 @@ 'C-c C-t C-o' toggles usage of Omega/lambda. + There is also another possibility: compile the document with 'tex' +(or 'latex') and then convert the resulting DVI file to PDF using +'dvips'-'ps2pdf' sequence. If you want to go by this route, when +'TeX-PDF-via-dvips-ps2pdf' variable is non-nil, AUCTeX will suggest you +to run the appropriate command when you type 'C-C C-c'. For details, +see *note Processor Options::. + 1.3.2.3 Debugging LaTeX ....................... @@ -1368,6 +1404,10 @@ ('TeX-toggle-debug-boxes') you can toggle whether AUCTeX should notify you of overfull and underfull boxes in addition to regular errors. + If you have a recent version of GNU Emacs (24 or later), issue 'M-x +TeX-error-overview RET' to see a nicely formatted list of all errors and +warnings reported by the compiler. + If a command got stuck in a seemingly infinite loop, or you want to stop execution for other reasons, you can use 'C-c C-k' (for "kill"). Similar to 'C-l', which centers the buffer you are in around your @@ -1950,6 +1990,13 @@ the caption should be placed at the top with 'LaTeX-top-caption-list'. +SHORT CAPTION + If the specified caption is greater than a specific length, then a + short caption is prompted for and it is inserted as an optional + argument to the '\caption' macro. The length that a caption needs + to be before prompting for a short version is controlled by + 'LaTeX-short-caption-prompt-length'. + LABEL The label of this float. The label will have a default prefix, which is controlled by the variables 'LaTeX-figure-label' and @@ -1972,6 +2019,10 @@ -- User Option: LaTeX-top-caption-list List of float environments with top caption. + -- User Option: LaTeX-short-caption-prompt-length + Number of chars a caption should be before prompting for a short + caption. +  File: auctex.info, Node: Itemize-like, Next: Tabular-like, Prev: Floats, Up: Environments @@ -2017,7 +2068,11 @@ You can use 'C-c ' ('LaTeX-insert-item') to terminate rows in these environments. It supplies line break macro '\\' and inserts the -suitable number of ampersands on the next line. +suitable number of ampersands on the next line. AUCTeX also supports +the '*{num}{cols}' notation (which may contain another '*'-expression) +in the format string when calculating the number of ampersands. Please +note that 'num' and 'cols' must be enclosed in braces; expressions like +'*2l' are not recognized correctly by the algorithm. -- Command: LaTeX-insert-item ('C-c ') Close the current row with '\\', move to the next @@ -2115,21 +2170,61 @@ 2.6 Completion ============== -Emacs lisp programmers probably know the 'lisp-complete-symbol' command, -usually bound to 'M-'. Users of the wonderful ispell mode know and -love the 'ispell-complete-word' command from that package. Similarly, -AUCTeX has a 'TeX-complete-symbol' command, by default bound to -'M-' which is equivalent to 'M-C-i'. Using 'TeX-complete-symbol' -makes it easier to type and remember the names of long LaTeX macros. +Emacs lisp programmers probably know the 'lisp-complete-symbol' command +which was bound to 'M-' until completion-at-point became the new +standard completion facility (see below). Users of the wonderful ispell +mode know and love the 'ispell-complete-word' command from that package. +Similarly, AUCTeX has a 'TeX-complete-symbol' command, by default bound +to 'M-' which is equivalent to 'M-C-i'. Using +'TeX-complete-symbol' makes it easier to type and remember the names of +long LaTeX macros. In order to use 'TeX-complete-symbol', you should write a backslash and the start of the macro. Typing 'M-' will now complete as much of the macro, as it unambiguously can. For example, if you type ''\renewc'' and then 'M-', it will expand to ''\renewcommand''. +But there's more: if point is just after '\begin{', then +'TeX-complete-symbol' will complete LaTeX environments, etc. This is +controlled by 'TeX-complete-list'. -- Command: TeX-complete-symbol ('M-') Complete TeX symbol before point. + -- Variable: TeX-complete-list + List of ways to complete the preceding text. + + Each entry is a list with the following elements: + + 1. Regexp matching the preceding text or a predicate of arity 0 + which returns non-nil and sets 'match-data' appropriately if + it is applicable. + 2. A number indicating the subgroup in the regexp containing the + text. + 3. A function returning an alist of possible completions. + 4. Text to append after a succesful completion. + + Or alternatively: + + 1. Regexp matching the preceding text. + 2. Function to do the actual completion. + + More recent Emacs versions have a new completion mechanism. Modes +may define and register custom completion-at-point functions and when +the user invokes 'completion-at-point' (usually bound to 'M-'), all +such registered functions are consulted for checking for possible +completions. Modern completion UIs like company-mode support this +completion-at-point facility. + + -- Function: TeX--completion-at-point + AUCTeX's completion-at-point function which is automatically added + to 'completion-at-point-functions' in TeX and LaTeX buffers. + + It offers the same completion candidates as would + 'TeX-complete-symbol' (and is also controlled by + 'TeX-complete-list') except that it doesn't fall back on + 'ispell-complete-word' which would be awkward with completion UIs + like company-mode. + A more direct way to insert a macro is with 'TeX-insert-macro', bound to 'C-c C-m' which is equivalent to 'C-c '. It has the advantage over completion that it knows about the argument of most standard LaTeX @@ -2462,6 +2557,11 @@ choose 'Other', you can specify your own fancy function to be called when is pressed. + AUCTeX treats by default '\[...\]' math mode as a regular environment +and indents it accordingly. If you do not like such behavior you only +need to remove '\|\[' and '\|\]' from 'LaTeX-begin-regexp' and +'LaTeX-end-regexp' variables respectively. +  File: auctex.info, Node: Filling, Prev: Indenting, Up: Editing @@ -2585,6 +2685,23 @@ will be inserted before the last non-comment word to minimize the chance that the line becomes overfull. + -- User Option: LaTeX-fill-excluded-macros + A list of macro names (without leading backslash) for whose + arguments filling should be disabled. Typically, you will want to + add macros here which have long, multi-line arguments. An example + is '\pgfplotstabletypeset' from the pgfplotstable package which is + used as shown in the following listing: + + \pgfplotstabletypeset[skip first n=4]{% + XYZ Format, + Version 1.234 + Date 2010-09-01 + @author Mustermann + A B C + 1 2 3 + 4 5 6 + } +  File: auctex.info, Node: Display, Next: Processing, Prev: Editing, Up: Top @@ -2615,12 +2732,33 @@ functions to narrow the buffer to the current group and to LaTeX environments. + AUCTeX also provides some WYSIWYG features. + + First, you can customize 'font-latex-fontify-script' to enable +special formatting of '^' superscripts and '_' subscripts (*note Font +Locking::). + + Secondly, AUCTeX with GNU Emacs 25 or later can display certain math +macros using Unicode characters, e.g., '\alpha' as α. This is called +prettification and is lightweight and reasonable robust (*note +Prettifying::). + + A more accurate approach is provided by preview-latex, a subsystem of +AUCTeX, see *note Introduction: (preview-latex)Top. This system uses +LaTeX to generate images that are then displayed in your buffer. It is +extremely accurate but can be fragile with some packages (like older pgf +versions). + + Please note that you can use prettification and preview-latex +together. + * Menu: * Font Locking:: Font Locking * Folding:: Folding Macros and Environments * Outline:: Outlining the Document * Narrowing:: Restricting display and editing to a portion of the buffer +* Prettifying:: Displaying Greek and math macros as Unicode characters  File: auctex.info, Node: Font Locking, Next: Folding, Up: Display @@ -2936,13 +3074,48 @@ variables 'font-latex-fontify-script' and 'font-latex-script-display'. -- User Option: font-latex-fontify-script - If non-nil, fontify subscript and superscript strings. + If non-nil, fontify subscript and superscript strings. Concretely, + this means that the scripts are raised or lowered. + + Another possiblity is setting this variable to the symbol + 'multi-level'. In this case, in a formula x^{y^z}, y is raised + above and smaller than x, and z is raised above and smaller than y. + With many script levels, the text might become too small to be + readable. (See 'font-latex-fontify-script-max-level' below.) + + Lastly, you can set this variable to 'invisible' whose behavior is + like 'multi-level', and in addition the super-/subscript characters + ^ and _ are not displayed. Note that this feature is not available on XEmacs, for which it is disabled per default. In GNU Emacs raising and lowering is not enabled for versions 21.3 and before due to it working not properly. + -- User Option: font-latex-fontify-script-max-level + Maximum scriptification level for which script faces are applied. + + The faces 'font-latex-superscript-face' and + 'font-latex-subscript-face' define custom ':height' values < 1.0. + Therefore, scripts are displayed with a slightly smaller font than + normal math text. If 'font-latex-fontify-script' is 'multi-level' + or 'invisible', the font size becomes too small to be readable + after a few levels. This option allows to specify the maximum + level after which the size of the script text won’t be shrunken + anymore. + + For example, in the expression x^{y^{z^a_b}}, x has scriptification + level 0, y has level 1, z has level 2, and both a and b have + scriptification level 3. + + If 'font-latex-fontify-script-max-level' was 2, then z, a, and b + would have the same font size. If it was 3 or more, then a and b + were smaller than z just in the same way as z is smaller than y and + y is smaller than x. + + The script characters '^' and '_' themselves are also fontified with +an own face named 'font-latex-script-char-face'. + -- User Option: font-latex-script-display Display specification for subscript and superscript content. The car is used for subscript, the cdr is used for superscript. The @@ -3268,7 +3441,7 @@ archive.  -File: auctex.info, Node: Narrowing, Prev: Outline, Up: Display +File: auctex.info, Node: Narrowing, Next: Prettifying, Prev: Outline, Up: Display 3.4 Narrowing ============= @@ -3294,6 +3467,34 @@ will no longer be required for them.  +File: auctex.info, Node: Prettifying, Prev: Narrowing, Up: Display + +3.5 Prettifying +=============== + +Emacs 25 is able to prettify symbols in programming language buffers, +*note (emacs)Misc for Programs::. The canonical example is to display +'(lambda () ...)' as '(λ () ...)' in Lisp buffers. + + AUCTeX can use this feature in order to display certain math macros +and greek letters using their Unicode representation, too. For example, +the TeX code '\alpha \times \beta' will be displayed as 'α × β'. When +point is on one of the characters, it'll be unprettified automatically, +meaning you see the verbatim text again. For this behaviour however you +need to set 'prettify-symbols-unprettify-at-point' to t or 'right-edge' +which will unprettify the symbol when point moves into or near it. + + To enable prettification in AUCTeX, simply add +'prettify-symbols-mode' to 'TeX-mode-hook'. If you enabled +prettification globally with 'global-prettify-symbols-mode', then it's +automatically enabled in AUCTeX, too. + + You can also add custom symbol unicode-character pairs for +prettification by adding to 'tex--prettify-symbols-alist'. Note that +this variable is part of Emacs' stock 'tex-mode.el' and used by that and +AUCTeX. + + File: auctex.info, Node: Processing, Next: Customization, Prev: Display, Up: Top 4 Starting Processors, Viewers and Other Programs @@ -3377,6 +3578,30 @@ the master file. The command is then actually run on the region file. See above for details. + -- Command: LaTeX-command-section + ('C-c C-z') Query the user for a command, and apply it to the + current section (or part, chapter, subsection, paragraph, or + subparagraph). What makes the current section is determined by + 'LaTeX-command-section-level' which can be enlarged/shrunken using + 'LaTeX-command-section-change-level' ('C-c M-z'). The given + numeric prefix arg is added to the current value of + 'LaTeX-command-section-level'. By default, + 'LaTeX-command-section-level' is initialized with the current + document's 'LaTeX-largest-level'. The buffer contents are written + into the region file, after extracting the header and trailer from + the master file. The command is then actually run on the region + file. See 'TeX-command-region' for details. + + It is also possible to compile automatically the whole document until +it is ready with a single command: 'TeX-command-run-all'. + + -- Command: TeX-command-run-all + ('C-c C-a') Compile the current document until an error occurs or + it is finished. If compilation finishes successfully, run the + viewer at the end. + + Here are some relevant variables. + -- User Option: TeX-region The name of the file for temporarily storing the text when formatting the current region. @@ -3419,7 +3644,7 @@ 4.1.2 Selecting and Executing a Command --------------------------------------- -Once you started the command selection with 'C-c C-c', 'C-c C-s' or 'C-c +Once you started the command selection with 'C-c C-c', 'C-c C-r' or 'C-c C-b' you will be prompted for the type of command. AUCTeX will try to guess which command is appropriate in the given situation and propose it as default. Usually this is a processor like 'TeX' or 'LaTeX' if the @@ -3486,6 +3711,102 @@ If nil, just check the current file. Used when checking if any files have changed. + When performing spell checking on a document or a region (invoked +through AUCTeX's 'Spell' command or 'M-x ispell RET'), you want the +spell checking program to skip certain macro arguments and environments, +most notably the arguments of referencing macros and the contents of +verbatim environments. The skipped parts are controlled by variable +'ispell-tex-skip-alists' provided by 'ispell.el'. AUCTeX has a library +which can be added to this variable depending on the value of +'TeX-ispell-extend-skip-list' which is set to 't' by default. + + -- User Option: TeX-ispell-extend-skip-list + This boolean option controls whether AUCTeX activates its extension + for skipping certain macro arguments and environments when spell + checking. + + When non-'nil', AUCTeX loads the file 'tex-ispell.el' and adds its + content to 'ispell-tex-skip-alists'. This library can and will + never be complete, but the interface can be used to add selected + and private macro names within your init file or on a file local + basis. + + 'ispell-tex-skip-alists' has the following structure: + (defvar ispell-tex-skip-alists + '((;; First list + ("\\\\addcontentsline" ispell-tex-arg-end 2) + ("\\\\\\([aA]lph\\|arabic\\)" ispell-tex-arg-end) + ("\\\\makebox" ispell-tex-arg-end 0) + ("\\\\documentclass" . "\\\\begin{document}")) + (;; Second list + ("\\(figure\\|table\\)\\*?" ispell-tex-arg-end 0) + ("list" ispell-tex-arg-end 2) + ("verbatim\\*?" . "\\\\end{verbatim\\*?}"))) + "*Lists of regions to be skipped in TeX mode. + First list is used raw. + Second list has key placed inside \\begin{}.") + Each item is an alist and the structure of it is described in + 'ispell-skip-region-alist': + (defvar ispell-skip-region-alist + '((...)) + "Alist expressing beginning and end of regions not to spell check. + The alist key must be a regular expression. + Valid forms include: + (KEY) - just skip the key. + (KEY . REGEXP) - skip to the end of REGEXP. + REGEXP may be string or symbol. + (KEY REGEXP) - skip to end of REGEXP. REGEXP must be a string. + (KEY FUNCTION ARGS) - FUNCTION called with ARGS + returns end of region.") + + Let's go through the first list of 'ispell-tex-skip-alists' line by + line: + ("\\\\addcontentsline" ispell-tex-arg-end 2) + 'KEY' is the string '"\\\\addcontentsline"', 'FUNCTION' is + 'ispell-tex-arg-end' called with 'ARGS', here '2'. + 'ispell-tex-arg-end' is a function provided by 'ispell.el' which + skips as many subsequent optional arguments in square brackets as + it sees and then skips 'ARGS' number of mandatory arguments in + braces. Omitting 'ARGS' means skip '1' mandatory argument. In + practice, when you have something like this in your document: + \addcontentsline{toc}{chapter}{Some text} + The first two arguments are left out and 'Some text' will be spell + checked. For the next line + ("\\\\\\([aA]lph\\|arabic\\)" ispell-tex-arg-end) + the name of the counter as argument is skipped. Next line is + ("\\\\makebox" ispell-tex-arg-end 0) + where only optional arguments are skipped, the first mandatory + argument is checked, e.g. + \makebox[0pt][l]{Some text} + Finally, the next line + ("\\\\documentclass" . "\\\\begin{document}")) + ensures that the entire preamble of a document is discarded. + Second list works the same; it is more convenient for environments + since 'KEY' is wrapped inside '\begin{}'. + + AUCTeX provides two functions to add items to car and cdr of + 'ispell-tex-arg-end', namely 'TeX-ispell-skip-setcar' and + 'TeX-ispell-skip-setcdr'. The argument of these functions is + exactly as in 'ispell-tex-skip-alists'. Additions can be done via + init file, e.g.: + (eval-after-load "tex-ispell" + '(progn + (TeX-ispell-skip-setcar + '(("\\\\mymacro" ispell-tex-arg-end))) + (TeX-ispell-skip-setcdr + '(("myverbatim" . "\\\\end{myverbatim}"))))) + Another possibility is to use file local additions at the end of + your TeX file, e.g.: + %%% Local Variables: + %%% mode: latex + %%% TeX-master: t + %%% eval: (TeX-ispell-skip-setcar '(("\\\\mymacro" . "{[-0-9]+}"))) + %%% End: + + Finally, AUCTeX provides a function called 'TeX-ispell-tex-arg-end' + which sees more arguments than 'ispell-tex-arg-end'. Refer to its + doc string for more information. +  File: auctex.info, Node: Processor Options, Prev: Selecting a Command, Up: Commands @@ -3498,7 +3819,8 @@ if TeX should be started in interactive or nonstop mode, if source specials or a SyncTeX file should be produced for making inverse and forward search possible or which TeX engine should be used instead of -regular TeX, like PDFTeX, Omega or XeTeX. +regular TeX, like PDFTeX, Omega or XeTeX, and the style error messages +are printed with. -- Command: TeX-PDF-mode ('C-c C-t C-p') This command toggles the PDF mode of AUCTeX, a @@ -3546,6 +3868,42 @@ document. In particular, fine-tuning the page breaks should be done with source specials switched off. + Sometimes you are requested, by journal rules or packages, to compile +the document into DVI output. Thus, if you want a PDF document in the +end you can either use XeTeX engine, see below for information about how +to set engines, or compile the document with 'tex' and then convert to +PDF with 'dvips'-'ps2pdf' before viewing it. In addition, current +Japanese TeX engines cannot generate PDF directly so they rely on +DVI-to-PDF converters. Usually 'dvipdfmx' command is used for this +purpose. You can use the 'TeX-PDF-from-DVI' variable to let AUCTeX know +you want to generate the final PDF by converting a DVI file. + + -- User Option: TeX-PDF-from-DVI + This option controls if and how to produce a PDF file by converting + a DVI file. + + When 'TeX-PDF-mode' is non-nil, if 'TeX-PDF-from-DVI' is non-nil + too the document is compiled to DVI instead of PDF. When the + document is ready, 'C-c C-c' will suggest to run the converter to + PDF or an intermediate format. + + If non-nil, 'TeX-PDF-from-DVI' should be the name of the command, + as a string, used to convert the DVI file to PDF or to an + intermediate format. Values currently supported are: + * '"Dvips"': the DVI file is converted to PS with 'dvips'. + After successfully running it, 'ps2pdf' will be the default + command to convert the PS file to PDF. + * '"Dvipdfmx"': the DVI file is converted to PDF with + 'dvipdfmx'. + When the PDF file is finally ready, the next suggested command will + be to open the viewer. + + This option can also be set as a file local variable, in order to + use this conversion on a per-document basis. + + Recall the whole sequence of 'C-c C-c' commands can be replace by + the single 'C-c C-a'. + AUCTeX also allows you to easily select different TeX engines for processing, either by using the entries in the 'TeXing Options' submenu below the 'Command' menu or by calling the function 'TeX-engine-set'. @@ -3591,6 +3949,31 @@ string. An empty string or nil means there is no command available. + In some systems, Emacs cannot inherit the PATH environment variable +from the shell and thus AUCTeX may not be able to run TeX commands. +Before running them, AUCTeX checks if it able to find those commands and +will warn you in case it fails. You can skip this test by changing the +option 'TeX-check-TeX'. + + -- User Option: TeX-check-TeX + If non-nil, AUCTeX will check if it is able to find a working TeX + distribution before running TeX, LaTeX, ConTeXt, etc. It actually + checks if can run 'TeX-command' command or the shell returns a + command not found error. The error code returned by the shell in + this case can be set in 'TeX-check-TeX-command-not-found' option. + + Some LaTeX packages requires the document to be compiled with a +specific engine. Notable examples are fontspec and polyglossia +packages, which require LuaTeX and XeTeX engines. If you try to compile +a document which loads one of such packages and the set engine is not +one of those allowed you will be asked to select a different engine +before running the LaTeX command. If you do not want to be warned by +AUCTeX in these cases, customize the option 'TeX-check-engine'. + + -- User Option: TeX-check-engine + This boolean option controls whether AUCTeX should check the + correct engine has been set before running LaTeX commands. + As shown above, AUCTeX handles in a special way most of the main options that can be given to the TeX processors. When you need to pass to the TeX processor arbitrary options not handled by AUCTeX, you can @@ -3612,6 +3995,21 @@ If non-nil, the output of TeX compilation is shown in another window. + You can instruct TeX to print error messages in the form +file:line:error which is similar to the way many compilers format them. + + -- User Option: TeX-file-line-error + If non-nil, TeX will produce file:line:error style error messages. + + ConTeXt users can choose between Mark II and Mark IV versions. This +is controlled by 'ConTeXt-Mark-version' option. + + -- User Option: ConTeXt-Mark-version + This variables specifies which version of Mark should be used. + Values currently supported are '"II"', the default, and '"IV"'. It + can be set globally using customization interface or on a per-file + basis, by specifying it as a file variable. +  File: auctex.info, Node: Viewing, Next: Debugging, Prev: Commands, Up: Processing @@ -3698,18 +4096,26 @@ can be conditionalized by prefixing them with predicates from 'TeX-view-predicate-list' or 'TeX-view-predicate-list-builtin'. (See the doc string for the exact format to use.) The command line - can also contain placeholders as defined in 'TeX-expand-list' which - are expanded before the viewer is called. + can also contain placeholders as defined in 'TeX-expand-list' and + 'TeX-expand-list-builtin' which are expanded before the viewer is + called. + + The third element of each item is a string, or a list of strings, + with the name of the executable, or executables, needed to open the + output file in the viewer. Placeholders defined in + 'TeX-expand-list' and 'TeX-expand-list-builtin' can be used here. + This element is optional and is used to check whether the viewer is + actually available on the system. A built-in viewer spec from 'TeX-view-program-list-builtin' can be overwritten by defining a new viewer spec with the same name. Note that the viewer selection and invocation as described above will only work if certain default settings in AUCTeX are intact. For one, -the whole viewer selection machinery will only be triggered if the '%V' -expander in 'TeX-expand-list' is unchanged. So if you have trouble with -the viewer invocation you might check if there is an older customization -of the variable in place. In addition, the use of a function in +the whole viewer selection machinery will only be triggered if there is +no '%V' expander in 'TeX-expand-list'. So if you have trouble with the +viewer invocation you might check if there is an older customization of +the variable in place. In addition, the use of a function in 'TeX-view-program-list' only works if the View command in 'TeX-command-list' makes use of the hook 'TeX-run-discard-or-function'. @@ -3808,6 +4214,43 @@ of your viewer to find out how it has to be configured and what you have to do exactly. In xdvi you normally have to use 'C-down-mouse-1'. + Note that inverse search with the Evince PDF viewer or its MATE fork +Atril might fail in raising the Emacs frame after updating point in your +document's buffer. There is simply no way to raise the Emacs frame +reliably accross different operating systems and different window +managers with their different focus stealing policies. If the Emacs +frame is not raised after performing an inverse search from Evince or +Atril, you can customize the following option. + + -- User Option: TeX-raise-frame-function + A function that will be called after performing an inverse search + from Evince or Atril in order to raise the current Emacs frame. + + If your Emacs frame is already raised in that situation, just leave + this variable set to its default value 'raise-frame'. Otherwise, + here are some alternative settings that work for some users. + + ;; Alternative 1: For some users, `x-focus-frame' works. Note + ;; that this function requires Emacs 24+. + (setq TeX-raise-frame-function #'x-focus-frame) + + ;; Alternative 2: Under GNOME 3.20 (and probably others), it + ;; seems some focus stealing prevention policy prohibits that + ;; some window gets the focus immediately after the user has + ;; clicked in some other window. Here waiting a bit before + ;; issuing the request seems to work. + (setq TeX-raise-frame-function + (lambda () + (run-at-time 0.5 nil #'x-focus-frame))) + + ;; Alternative 3: Use the external wmctrl tool in order to + ;; force Emacs into the focus. + (setq TeX-raise-frame-function + (lambda () + (call-process + "wmctrl" nil nil nil "-i" "-R" + (frame-parameter (selected-frame) ’outer-window-id)))) +  File: auctex.info, Node: Debugging, Next: Checking, Prev: Viewing, Up: Processing @@ -3815,7 +4258,9 @@ ======================= Once you've formatted your document you may 'debug' it, i.e. browse -through the errors (La)TeX reported. +through the errors (La)TeX reported. If you have GNU Emacs 24 or later, +you may also have a look at a nicely formatted list of all errors and +warnings reported by the compiler. -- Command: TeX-next-error ARG REPARSE ('C-c `') Go to the next error reported by TeX. The view will be @@ -3849,17 +4294,6 @@ This is the default. If nil, AUCTeX does not parse the whole output log buffer and 'TeX-previous-error' cannot be used. - Normally AUCTeX will only report real errors, but you may as well ask -it to report 'bad boxes' and warnings as well. - - -- Command: TeX-toggle-debug-bad-boxes - ('C-c C-t C-b') Toggle whether AUCTeX should stop at bad boxes - (i.e. overfull and underfull boxes) as well as normal errors. - - -- Command: TeX-toggle-debug-warnings - ('C-c C-t C-w') Toggle whether AUCTeX should stop at warnings as - well as normal errors. - As default, AUCTeX will display a special help buffer containing the error reported by TeX along with the documentation. There is however an 'expert' option, which allows you to display the real TeX output. @@ -3871,8 +4305,67 @@ If 'expert' AUCTeX will display the output buffer with the raw TeX output. - When the option 'TeX-parse-all-errors' is non-nil, you will be also -able to open an overview of all errors and warnings reported by the TeX +* Menu: + +* Ignoring warnings:: Controlling warnings to be reported +* Error overview:: List of all errors and warnings + + +File: auctex.info, Node: Ignoring warnings, Next: Error overview, Up: Debugging + +4.3.1 Controlling warnings to be reported +----------------------------------------- + +Normally AUCTeX will only report real errors, but you may as well ask it +to report 'bad boxes' and warnings as well. + + -- Command: TeX-toggle-debug-bad-boxes + ('C-c C-t C-b') Toggle whether AUCTeX should stop at bad boxes + (i.e. overfull and underfull boxes) as well as normal errors. The + boolean option 'TeX-debug-bad-boxes' is set accordingly. + + -- Command: TeX-toggle-debug-warnings + ('C-c C-t C-w') Toggle whether AUCTeX should stop at warnings as + well as normal errors. The boolean option 'TeX-debug-warnings' is + set accordingly. + + While many users desire to have warnings reported after compilation, +there are certain warnings that are considered unimportant and users +want to ignore them. For a more fine-grained control of what kinds of +warnings should be shown after compilation, AUCTeX provides other +options. + + -- User Option: TeX-ignore-warnings + Controls which warnings are to be ignored. + + It can be a regexp matching the message of the warnings to be + ignored. + + More advanced users can set also this option to a symbol with the + name of a custom function taking as arguments all the information + of the warning listed in 'TeX-error-list' variable, except the last + one about whether to ignore the warning. See the code of + 'TeX-warning' function and the documentation of 'TeX-error-list' + for more details. + + -- Command: TeX-toggle-suppress-ignored-warnings + ('C-c C-t C-x') Toggle whether AUCTeX should actually hide the + ignored warnings specified with 'TeX-ignore-warnings'. The boolean + option 'TeX-suppress-ignored-warnings' is set accordingly. If this + is nil, all warnings are shown, even those matched by + 'TeX-ignore-warnings', otherwise these are hidden. + + Note that 'TeX-debug-warnings' takes the precedence: if it is nil, + all warnings are hidden in any case. + + +File: auctex.info, Node: Error overview, Prev: Ignoring warnings, Up: Debugging + +4.3.2 List of all errors and warnings +------------------------------------- + +When the option 'TeX-parse-all-errors' is non-nil, you will be also able +to open an overview of all errors and warnings reported by the TeX compiler. This feature requires 'tabulated-list-mode', shipped with GNU Emacs 24 or later. @@ -3884,7 +4377,11 @@ pressing , and visit the next or previous issue by pressing or

respectively. A prefix argument to these keys specifies how many errors to move forward or backward. You can visit an - error also by clicking on its message. Press to quit the + error also by clicking on its message. Jump to error point in the + source code with , and use see the error in the log buffer. + In addition, you can toggle visibility of bad boxes, generic + warnings, and ignored warnings with , , and , respectively + (see *note Ignoring warnings:: for details). Press to quit the overview. -- User Option: TeX-error-overview-open-after-TeX-run @@ -3990,15 +4487,14 @@ 4.7 Documentation about macros and packages =========================================== - -- Command: TeX-doc - ('C-c ?') Get documentation about macros, packages or TeX & Co. in - general. The function will prompt for the name of a command or - manual, providing a list of available keywords for completion. If - point is on a command or word with available documentation, this - will be suggested as default. + -- Command: TeX-documentation-texdoc + ('C-c ?') Get documentation about the packages installed on your + system, using 'texdoc' to find the manuals. The function will + prompt for the name of packages. If point is on a word, this will + be suggested as default. - In case no documentation could be found, a prompt for querying the - 'texdoc' program is shown, should the latter be available. + If the command is called with a prefix argument, you will be shown + a list of manuals of the given package among to choose. The command can be invoked by the key binding mentioned above as well as the 'Find Documentation...' entry in the mode menu. @@ -4045,6 +4541,19 @@ if it is relevant for any AUCTeX mode, add it to 'TeX-mode-hook' and if it is relevant for all text modes, append it to 'text-mode-hook'. + Other useful hooks are listed below. + + -- Variable: TeX-after-compilation-finished-hook + Hook which is run after the TeX/LaTeX processor has successfully + finished compiling your document. (*Note Processing::, for finding + out how to compile your document). Each function in the hook is + run with the compiled output document as its argument. + + This is useful for automatically refreshing the viewer after + re-compilation especially when using Emacs viewers such as DocView + or PDF Tools. The function 'TeX-revert-document-buffer' can be + added to the hook for this purpose. +  File: auctex.info, Node: Multifile, Next: Parsing Files, Prev: Modes and Hooks, Up: Customization @@ -4100,6 +4609,9 @@ If the variable is 'shared', then AUCTeX will query for the name, but will not change the file. + If the variable is 'dwim', AUCTeX will try to avoid querying by + attempting to "do what I mean"; and then change the file. + -- User Option: TeX-one-master Regular expression matching ordinary TeX files. @@ -4299,7 +4811,7 @@ Note that Unicode is not fully supported in Emacs 21 and XEmacs 21. CJK characters are not usable. Please use the MULE-UCS EmacsLisp -package or Emacs 22 (not released yet) if you need CJK. +package or Emacs 22 and later if you need CJK. * Menu: @@ -4501,15 +5013,10 @@ set the variable like this: (setq TeX-default-mode 'japanese-latex-mode) - -- User Option: japanese-TeX-command-default - The default command for 'TeX-command' in Japanese TeX mode. - - The default value is '"pTeX"'. + -- User Option: japanese-TeX-engine-default + The default TeX engine in Japanese TeX mode. - -- User Option: japanese-LaTeX-command-default - The default command for 'TeX-command' in Japanese LaTeX mode. - - The default value is '"LaTeX"'. + The default value is 'ptex'. -- User Option: japanese-LaTeX-default-style The default style/class when creating a new Japanese LaTeX @@ -4517,6 +5024,16 @@ The default value is '"jarticle"'. + The former customize options 'japanese-TeX-command-default' and +'japanese-LaTeX-command-default' are obsolete. Use +'japanese-TeX-engine-default' instead. If you need to customize the +executable file name such as '"latex"', the options for them, or both, +customize 'TeX-engine-alist'. + + Also, the option 'japanese-TeX-command-list' is considered as +semi-obsolete. It still functions as before, but in theory, it is not +required anymore in normal use. + See 'tex-jp.el' for more information.  @@ -4558,8 +5075,7 @@ will be executed. -- User Option: TeX-style-path - List of directories to search for AUCTeX style files. Each must - end with a slash. + List of directories to search for AUCTeX style files. By default, when AUCTeX searches a directory for files, it will recursively search through subdirectories. @@ -4598,8 +5114,7 @@ Directories containing the site's TeX style files. -- User Option: TeX-style-global - Directory containing hand generated TeX information. Must end with - a slash. + Directory containing hand generated TeX information. These correspond to TeX macros shared by all users of a site. @@ -4648,7 +5163,7 @@ --------------------------------------------- AUCTeX can update the style information about a file each time you save -it, and it will do this if the directory 'TeX-auto-local' exist. +it, and it will do this if the directory 'TeX-auto-local' exists. 'TeX-auto-local' is by default set to '"auto"', so simply creating an 'auto' directory will enable automatic saving of style information. @@ -4658,14 +5173,12 @@ set 'TeX-auto-local' to nil. -- User Option: TeX-style-local - Directory containing hand generated TeX information. Must end with - a slash. + Directory containing hand generated TeX information. These correspond to TeX macros found in the current directory. -- User Option: TeX-auto-local - Directory containing automatically generated TeX information. Must - end with a slash. + Directory containing automatically generated TeX information. These correspond to TeX macros found in the current directory. @@ -4915,8 +5428,8 @@ Prompt for a LaTeX savebox completing with known saveboxes. 'TeX-arg-file' - Prompt for a filename in the current directory, and use it without - the extension. + Prompt for a filename in the current directory, and use it with the + extension. 'TeX-arg-file-name' Prompt for a filename and use as initial input the name of the file @@ -5309,10 +5822,10 @@ The copyright notice for this manual is: - This manual is for AUCTeX (version 11.88 from 2014-10-29), a + This manual is for AUCTeX (version 11.90 from 2017-01-10), a sophisticated TeX environment for Emacs. - Copyright (C) 1992-1995, 2001, 2002, 2004-2014 Free Software + Copyright (C) 1992-1995, 2001, 2002, 2004-2016 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this @@ -5780,7 +6293,7 @@ 2009, provided the MMC is eligible for relicensing. ADDENDUM: How to use this License for your documents -==================================================== +---------------------------------------------------- To use this License in a document you have written, include a copy of the License in the document and put the following copyright and license @@ -5816,8 +6329,171 @@ A.2 Changes and New Features ============================ +News in 11.90 +------------- + + * In addition to the completion performed by 'TeX-complete-symbol', + AUCTeX now also supports the new Emacs standard completion-at-point + facility (see the Emacs command 'completion-at-point'). This also + means that modern completion UIs like company-mode work out of the + box in TeX and LaTeX buffers. *Note Completion::, for details. + + * Completion is now aware of being inside a math environment and then + completes math macros. + + * AUCTeX is able to display several levels of super- and subscripts, + each one raised above and a bit smaller than its basis. For this + feature, have a look at the customize options + 'font-latex-fontify-script' (especially the new values + 'multi-level' and 'invisible') and + 'font-latex-fontify-script-max-level'. Also, the script characters + '^' and '_' are also fontified with a special face named + 'font-latex-script-char-face'. *Note Fontification of math::, for + details. + + * Parsing of format specification in various tabular environments has + been improved. The function 'LaTeX-insert-item' ('C-c ') + inserts suitable number of ampersands for '*{num}{cols}' + constructs. Style files for LaTeX packages 'tabularx', 'tabulary', + 'longtable', 'dcolumn' and 'siunitx' are adapted to take advantage + of this improvement. + + * AUCTeX has a new Ispell dictionary 'tex-ispell.el' for macros and + environments which will be skipped during spell checking. The + activiation of this feature is controlled by a new customize option + 'TeX-ispell-extend-skip-list', which is set to 't' and activated by + default. + + * AUCTeX has a new customize option 'TeX-raise-frame-function' that + is currently only used by Evince and Atril inverse search to raise + the Emacs frame. + + * When inserting a new float, AUCTeX will now prompt for a + short-caption if the length of the caption provided is greater than + a certain size. This size is controlled via a new user option + 'LaTeX-short-caption-prompt-length'. + + * Parsing of the compilation log has been reworked. You should + encounter fewer mistaken files while navigating through errors and + warnings. + + * Two new user options, 'TeX-ignore-warnings' and + 'TeX-suppress-ignored-warnings', allow ignoring certain warnings + after compilation of the document. *Note Ignoring warnings::, for + details. + + * A new option, 'TeX-PDF-from-DVI', controls if and how to produce a + PDF file by converting a DVI file. This supersedes + 'TeX-PDF-via-dvips-ps2pdf' which is still recognized but marked as + obsolete and may be removed in future releases. + + * Support for a number of external viewers has been added: + * Atril viewer. Forward and inverse search requires version + 1.9.1 or later to work. + + * dviout viewer on Windows. Note that this setup works when + 'TeX-source-correlate-method' is set to use 'source-specials' + for DVI, e.g.: + (setq TeX-source-correlate-method + '((dvi . source-specials) + (pdf . synctex))) + which is the default. + + * SumatraPDF viewer on Windows. + + * Zathura viewer. Forward and inverse search requires a recent + version of the program to work (3.4 or later). + + * A new function, 'TeX-documentation-texdoc', for reading + documentation with 'texdoc' has been added. 'TeX-doc' is still + available but now 'C-c ?' runs 'TeX-documentation-texdoc'. + + * AUCTeX has a new custom option + 'LaTeX-reftex-cite-format-auto-activate' which controls the + automatic activation of citation formats provided by RefTeX when a + style file is loaded and RefTeX is enabled. Currently, + 'biblatex.el', 'harvard.el', 'jurabib.el' and 'natbib.el' use this + feature. If you have customized 'reftex-cite-format' and want to + use your settings, you should set this variable to 'nil'. + + * AUCTeX now has limited support for the TikZ package. For the + moment, this includes some basic support for prompting the user of + arguments to the '\draw' macro. + + * The style 'graphicx.el' went through a bigger overhaul. The + optional argument of command '\includegraphics' now supports + key-val query; keys can independently be chosen anytime by pressing + the <,> key. As a side effect, the variable + 'LaTeX-includegraphics-options-alist' is now no-op and is removed + from 'tex-style.el'. You can safely remove any customization of it + from your init file. The mandatory argument of '\includegraphics' + knows about image file extensions supported by the used engine and + offers them for inclusion. + + * Support for other LaTeX packages was improved, and style files for + several new packages were added. + + * Many bugs were crushed along the way. + +News in 11.89 +------------- + + * You can now run all commands needed to compile a document and then + open the viewer with a single command: 'TeX-command-run-all', bound + to 'C-c C-a'. + + * Commands such as LaTeX and View can now be executed conveniently on + the current section (or part, chapter, subsection, etc). See + 'LaTeX-command-section' and 'LaTeX-command-section-change-level'. + *Note Starting a Command::, for details. + + * Forward and backward search with Evince now also work when only a + region of the document is compiled/viewed. + + * To open the PDF output file you can now use also PDF Tools, a + document viewer for Emacs. With it, as a plus, forward and + backward search is accurate at word level. + + * With new option 'TeX-PDF-via-dvips-ps2pdf' it is possible to + compile a document to DVI and then convert it to PDF using + 'dvips'-'ps2pdf' before viewing it. + + * New option 'TeX-file-line-error' allows to select file:line:error + style for error messages. + + * Indent '\[...\]' math mode as a regular environment by default. + + * Now AUCTeX suggests to run 'makeindex' when appropriate. + + * 'TeX-view-program-list' can contain, as third optional element of + each item, the name of the executable(s) needed to open the viewer. + + * 'TeX-expand-list' variable has been split into 'TeX-expand-list' + and 'TeX-expand-list-builtin'. Only the former is intended to be + customized by the user, the latter contains built-in expanders. + You might want to keep in 'TeX-expand-list' only new expansion + strings. + + * Before running commands like TeX and LaTeX, now AUCTeX performs + some checks. If 'TeX-check-TeX' is non-nil, it will test whether a + working TeX distribution is actually present in the system and + available to Emacs. Instead, when 'TeX-check-engine' is non-nil, + before running LaTeX commands AUCTeX will check whether the correct + engine has been set, based upon known restrictions posed by LaTeX + packages. + + * Basic support to ConTeXt Mark IV has been added. Users can now + select the Mark version to be used with new option + 'ConTeXt-Mark-version', and AUCTeX is able to catch error messages + in the output log of a Mark IV document. + + * Support for tons of LaTeX packages has been added. + + * Numbers of bugs have been fixed, many minor features have been + added. + News in 11.88 -============= +------------- * 'TeX-PDF-mode' is now enabled by default. @@ -5916,8 +6592,8 @@ * There have been lots of bug fixes and feature additions. -News since 11.87 -================ +News in 11.87 +------------- * AUCTeX now supports Biber in conjunction with biblatex in addition to BibTeX. @@ -5942,7 +6618,7 @@ * A lot of smaller fixes and additions have been made. News in 11.86 -============= +------------- * Parsing of LaTeX output was improved. It is now less likely that AUCTeX opens a non-existent file upon calling 'TeX-next-error'; a @@ -5973,7 +6649,7 @@ * A lot of smaller and larger bugs have been squashed. News in 11.85 -============= +------------- * Font locking has been improved significantly. It is now less prone to color bleeding which could lead to high resource usage. In @@ -5990,7 +6666,7 @@ * Lots of minor bugs in features and documentation fixed. News in 11.84 -============= +------------- * There have been problems with the '-without-texmf-dir' option to 'configure' when the value of '-with-kpathsea-sep' was set or @@ -6027,7 +6703,7 @@ features and documentation across the board. News in 11.83 -============= +------------- * The new function 'TeX-doc' provides easy access to documentation about commands and packages or information related to TeX and @@ -6058,7 +6734,7 @@ Facilities::. News in 11.82 -============= +------------- * Support for the MinionPro LaTeX package was added. @@ -6112,7 +6788,7 @@ * Various bug fixes. News in 11.81 -============= +------------- * 'LaTeX-mark-section' now marks subsections of a given section as well. The former behavior is available via the prefix argument. @@ -6185,7 +6861,7 @@ * Of course a lot of bugs have been fixed. 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 @@ -6213,7 +6889,7 @@ added. News in 11.54 -============= +------------- * The parser (used e.g. for 'TeX-auto-generate-global') was extended to recognize keywords common in LaTeX packages and classes, like @@ -6281,7 +6957,7 @@ * Lots of bug fixes. News in 11.53 -============= +------------- * The LaTeX math menu can include Unicode characters if your Emacs built supports it. See the variable 'LaTeX-math-menu-unicode', @@ -6297,7 +6973,7 @@ deactivate folding in comments. News in 11.52 -============= +------------- * Installation and menus under XEmacs work again (maybe for the first time). @@ -6308,7 +6984,7 @@ * Bug fixes in the build process. News in 11.51 -============= +------------- * PDFTeX and Source Special support did not work with ConTeXt, this has been fixed. Similar for Source Special support under Windows. @@ -6320,7 +6996,7 @@ * 'TeX-fold' now supports folding of environments in Texinfo mode. News in 11.50 -============= +------------- * The use of source specials when processing or viewing the document can now be controlled with the new 'TeX-source-specials' minor mode @@ -6437,50 +7113,50 @@ details. News in 11.14 -============= +------------- * Many more LaTeX and LaTeX2e commands are supported. Done by Masayuki Ataka News in 11.12 -============= +------------- * Support for the KOMA-Script classes. Contributed by Mark Trettin . News in 11.11 -============= +------------- * Support for 'prosper.sty', see . Contributed by Phillip Lord . News in 11.10 -============= +------------- * 'comment-region' now inserts %% by default. Suggested by "Davide G. M. Salvetti" . News in 11.06 -============= +------------- * You can now switch between using the 'font-latex' (all emacsen), the 'tex-font' (Emacs 21 only) or no special package for font locking. Customize 'TeX-install-font-lock' for this. News in 11.04 -============= +------------- * Now use -t landscape by default when landscape option appears. Suggested by Erik Frisk . News in 11.03 -============= +------------- * Use 'tex-fptex.el' for fpTeX support. Contributed by Fabrice Popineau . News in 11.02 -============= +------------- * New user option 'LaTeX-top-caption-list' specifies environments where the caption should go at top. Contributed by @@ -6499,7 +7175,7 @@ . News in 11.01 -============= +------------- * Bug fixes. @@ -6508,530 +7184,3 @@ See the file 'history.texi' for older changes. - -File: auctex.info, Node: Development, Next: FAQ, Prev: Changes, Up: Appendices - -A.3 Future Development -====================== - -The following sections describe future development of AUCTeX. Besides -mid-term goals, bug reports and requests we cannot fix or honor right -away are being gathered here. If you have some time for Emacs Lisp -hacking, you are encouraged to try to provide a solution to one of the -following problems. If you don't know Lisp, you may help us to improve -the documentation. It might be a good idea to discuss proposed changes -on the mailing list of AUCTeX first. - -* Menu: - -* Mid-term Goals:: -* Wishlist:: -* Bugs:: - - -File: auctex.info, Node: Mid-term Goals, Next: Wishlist, Up: Development - -A.3.1 Mid-term Goals --------------------- - - * Integration of preview-latex into AUCTeX - - As of AUCTeX 11.81 preview-latex is a part of AUCTeX in the sense - that the installation routines were merged and preview-latex is - being packaged with AUCTeX. - - Further integration will happen at the backend. This involves - folding of error parsing and task management of both packages which - will ease development efforts and avoid redundant work. - - * Error help catalogs - - Currently, the help for errors is more or less hardwired into - 'tex.el'. For supporting error help in other languages, it would - be sensible to instead arrange error messages in language-specific - files, make a common info file from all such catalogs in a given - language and look the error texts up in an appropriate index. The - user would then specify a preference list of languages, and the - errors would be looked up in the catalogs in sequence until they - were identified. - - * Combining 'docTeX' with RefTeX - - Macro cross references should also be usable for document - navigation using RefTeX. - - -File: auctex.info, Node: Wishlist, Next: Bugs, Prev: Mid-term Goals, Up: Development - -A.3.2 Wishlist --------------- - - * Documentation lookup for macros - - A parser could gather information about which macros are defined in - which LaTeX packages and store the information in a hashtable which - can be used in a backend for 'TeX-doc' in order to open the - matching documentation for a given macro. The information could - also be used to insert an appropriate '\usepackage' statement if - the user tries to insert a macro for which the respective package - has not been requested yet. - - * Spell checking of macros - - A special ispell dictionary for macros could be nice to have. - - * Improvements to error reporting - - Fringe indicators for errors in the main text would be nice. - - * A math entry grid - - A separate frame with a table of math character graphics to click - on in order to insert the respective sequence into the buffer (cf. - the "grid" of x-symbol). - - * Crossreferencing support - - It would be nice if you could index process your favorite - collection of '.dtx' files (such as the LaTeX source), just call a - command on arbitrary control sequence, and get either the DVI - viewer opened right at the definition of that macro (using Source - Specials), or the source code of the '.dtx' file. - - * Better plain TeX support - - For starters, 'LaTeX-math-mode' is not very LaTeX-specific in the - first place, and similar holds for indentation and formatting. - - * Page count when compiling should (optionally) go to modeline of the - window where the compilation command was invoked, instead of the - output window. Suggested by Karsten Tinnefeld - . - - * Command to insert a macrodefinition in the preamble, without moving - point from the current location. Suggested by "Jeffrey C. Ely" - . - - * A database of all commands defined in all stylefiles. When a - command or environment gets entered that is provided in one of the - styles, insert the appropriate '\usepackage' in the preamble. - - * A way to add and overwrite math mode entries in style files, and to - decide where they should be. Suggested by Remo Badii - . - - * 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. - - * Suggest 'makeindex' when appropriate. - - * Use index files (when available) to speed up 'C-c C-m include - '. - - * Option not to calculate very slow completions like for 'C-c C-m - include '. - - * Font menu should be created from 'TeX-font-list'. - - * Installation procedure written purely in emacs lisp. - - * Included PostScript files should also be counted as part of the - document. - - * A nice hierarchical by-topic organization of all officially - documented LaTeX macros, available from the menu bar. - - * 'TeX-command-default' should be set from the master file, if not - set locally. Suggested by Peter Whaite ''. - - * Make AUCTeX work with 'crypt++'. Suggested by Chris Moore - ''. - - * Make AUCTeX work with 'longlines'. This would also apply to - preview-latex, though it might make sense to unify error processing - before attempting this. - - * 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 - ''. - - * 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 - ''. - - * 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 AUCTeX depends on, unless - AUCTeX 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' - - * 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. - - * Get closer to 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 AUCTeX. - - * Use markers in 'TeX-error-list' to remember buffer positions in - order to be more robust with regard to line numbers and changed - files. - - * Finish the Texinfo mode. For one thing, many Texinfo mode commands - do not accept braces around their arguments. - - * Hook up the letter environment with 'bbdb.el'. - - -File: auctex.info, Node: Bugs, Prev: Wishlist, Up: Development - -A.3.3 Bugs ----------- - - * The style hooks automatically generated by parsing files for - 'example.dtx', 'example.sty', 'example.drv' and 'example.bib' all - clash. Bad. Clash with hand-written style hooks should be removed - by dialect discrimination -- to be checked. - - * 'C-c `' should always stay in the current window, also when it - finds a new file. - - * Do not overwrite emacs warnings about existing auto-save files when - loading a new file. - - * Maybe the regexp for matching a TeX symbol during parsing should be - '"\\\\\\([a-zA-Z]+\\|.\\)"' -- - '' Peter Thiemann. - - * AUCTeX should not parse verbatim environments. - - * 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. - - * Correct indentation for tabular, tabbing, table, math, and array - environments. - - * No syntactic font locking of verbatim macros and environments. - (XEmacs only) - - * Font locking inside of verbatim macros and environments is not - inhibited. This may result in syntax highlighting of unbalanced - dollar signs and the like spilling out of the verbatim content. - (XEmacs only) - - * Folding of LaTeX constructs spanning more than one line may result - in overfull lines. (XEmacs only) - - -File: auctex.info, Node: FAQ, Next: Texinfo mode, Prev: Development, Up: Appendices - -A.4 Frequently Asked Questions -============================== - - 1. Something is not working correctly. What should I do? - - Well, you might have guessed it, the first place to look is in the - available documentation packaged with AUCTeX. This could be the - release notes (in the 'RELEASE' file) or the news section of the - manual in case you are experiencing problems after an upgrade, the - 'INSTALL' file in case you are having problems with the - installation, the section about bugs in the manual in case you - encountered a bug or the relevant sections in the manual for other - related problems. - - If this did not help, you can send a bug report to the AUCTeX bug - reporting list by using the command 'M-x TeX-submit-bug-report - RET'. But before you do this, you can try to get more information - about the problem at hand which might also help you locate the - cause of the error yourself. - - First, you can try to generate a so-called backtrace which shows - the functions involved in a program error. In order to do this, - start Emacs with the command line 'emacs --debug-init' and/or put - the line - - (setq debug-on-error t) - - as the first line into your init file. XEmacs users might want to - add '(setq stack-trace-on-error t)' as well. After Emacs has - started, you can load a file which triggers the error and a new - window should pop up showing the backtrace. If you get such a - backtrace, please include it in the bug report. - - Second, you can try to figure out if something in your personal or - site configuration triggers the error by starting Emacs without - such customizations. You can do this by invoking Emacs with the - command line 'emacs -q -no-site-file -l auctex'. The '-l' option - 'auctex.el' which you normally do in your init file. After you - have started Emacs like this, you can load the file triggering the - error. If everything is working now, you know that you have to - search either in the site configuration file or your personal init - file for statements related to the problem. - - 2. What versions of Emacs and XEmacs are supported? - - AUCTeX was tested with Emacs 21 and XEmacs 21.4.15. Older versions - may work but are unsupported. Older versions of XEmacs might - possibly made to work by updating the 'xemacs-base' package through - the XEmacs package system. If you are looking for a - recommendation, it would appear that the smoothest working platform - on all operating systems at the current point of time would be Emacs 22 - or higher. - - Our success with XEmacs has been less than convincing. Code for - core functionality like formatting and syntax highlighting tends to - be different and often older than even Emacs 21.4, and Unicode - support as delivered is problematic at best, missing on Windows. - Both AUCTeX and XEmacs developers don't hear much from active users - of the combination. Partly for that reason, problems tend to go - unnoticed for long amounts of time and are often found, if at all, - after releases. No experiences or recommendations can be given for - beta or developer versions of XEmacs. - - 3. What should I do when './configure' does not find programs like - latex? - - This is problem often encountered on Windows. Make sure that the - 'PATH' environment variable includes the directories containing the - relevant programs, as described in *note (auctex)Installation under - MS Windows::. - - 4. Why doesn't the completion, style file, or multi-file stuff work? - - It must be enabled first, insert this in your init file: - - (setq-default TeX-master nil) - (setq TeX-parse-self t) - (setq TeX-auto-save t) - - Read also the chapters about parsing and multifile documents in the - manual. - - 5. Why doesn't 'TeX-save-document' work? - - 'TeX-check-path' has to contain "./" somewhere. - - 6. Why is the information in 'foo.tex' forgotten when I save - 'foo.bib'? - - For various reasons, AUCTeX ignores the extension when it stores - information about a file, so you should use unique base names for - your files. E.g. rename 'foo.bib' to 'foob.bib'. - - 7. Why doesn't AUCTeX signal when processing a document is done? - - If the message in the minibuffer stays "Type 'C-c C-l' to display - results of compilation.", you probably have a misconfiguration in - your init file ('.emacs', 'init.el' or similar). To track this - down either search in the '*Messages*' buffer for an error message - or put '(setq debug-on-error t)' as the first line into your init - file, restart Emacs and open a LaTeX file. Emacs will complain - loudly by opening a debugging buffer as soon as an error occurs. - The information in the debugging buffer can help you find the cause - of the error in your init file. - - 8. Why does 'TeX-next-error' ('C-c `') fail? - - When writing the log file, TeX puts information related to a file, - including error messages, between a pair of parentheses. AUCTeX - determines the file where the error happened by parsing the log - file and counting the parentheses. This can fail when there are - other, unbalanced parentheses present. - - As a workaround you can activate so-called file:line:error messages - for the log file. (Those are are easier to parse, but may lack - some details.) Either you do this in the configuration of your TeX - system (consult its manual to see where this is) or you add a - command line switch to the (la)tex call, e.g. by customizing - 'LaTeX-command-style' or 'TeX-command-list'. - - 9. What does AUC stand for? - - AUCTeX came into being at Aalborg University in Denmark. Back then - the Danish name of the university was Aalborg Universitetscenter; - AUC for short. - - -File: auctex.info, Node: Texinfo mode, Prev: FAQ, Up: Appendices - -A.5 Features specific to AUCTeX's Texinfo major mode -==================================================== - -AUCTeX includes a major mode for editting Texinfo files. This major -mode is not the same mode as the native Texinfo mode (*note (texinfo) -Texinfo Mode::) of Emacs, although they have the same name. However, -AUCTeX still relies on a number of functions from the native Texinfo -mode. - - The following text describes which functionality is offered by AUCTeX -and which by the native Texinfo mode. This should enable you to decide -when to consult the AUCTeX manual and when the manual of the native -mode. And in case you are a seasoned user of the native mode, the -information should help you to swiftly get to know the AUCTeX-specific -commands. - -* Menu: - -* Exploiting:: How AUCTeX and the native mode work together -* Superseding:: Where the native mode is superseded -* Mapping:: Where key bindings are mapped to the native mode -* Unbinding:: Which native mode key bindings are missing - - -File: auctex.info, Node: Exploiting, Next: Superseding, Up: Texinfo mode - -A.5.1 How AUCTeX and the native mode work together --------------------------------------------------- - -In a nutshell the split between AUCTeX Texinfo mode, and native Texinfo -mode is as follows: - - * Most of the editing (environment creation, commenting, font command - insertions) and/or processing commands (e.g. compiling or - printing) which are available in other AUCTeX modes are also - handled by AUCTeX in Texinfo mode. - - * Texinfo-related features (e.g. info node linkage or menu creation) - rely on the commands provided by the native Texinfo mode. AUCTeX - provides the key bindings to reach these functions, keeping the - same keys as in native Texinfo whenever possible, or similar ones - otherwise. - - -File: auctex.info, Node: Superseding, Next: Mapping, Prev: Exploiting, Up: Texinfo mode - -A.5.2 Where the native mode is superseded ------------------------------------------ - -This section is directed to users of the native Texinfo mode switching -to AUCTeX. It follows the summary of the native mode (*note (texinfo) -Texinfo Mode Summary::) and lists which of its commands are no longer of -use. - -Insert commands - In the native Texinfo mode, frequently used Texinfo commands can be - inserted with key bindings of the form 'C-c C-c K' where K differs - for each Texinfo command; 'c' inserts @code, 'd' inserts @dfn, 'k' - @kbd, etc. - - In AUCTeX commands are inserted with the key binding 'C-c C-m' - instead which prompts for the macro to be inserted. For font - selection commands (like @b, @i, or @emph) and a few related ones - (like @var, @key or @code) there are bindings which insert the - respective macros directly. They have the form 'C-c C-f K' or 'C-c - C-f C-K' and call the function 'TeX-font'. Type 'C-c C-f ' to - get a list of supported commands. - - Note that the prefix argument is not handled the same way by - AUCTeX. Note also that the node insertion command from the native - mode ('texinfo-insert-@node') can still accessed from the Texinfo - menu in AUCTeX. - -Insert braces - In AUCTeX braces can be inserted with the same key binding as in - the native Texinfo mode: 'C-c {'. But AUCTeX uses its own function - for the feature: 'TeX-insert-braces'. - -Insert environments - The native Texinfo mode does not insert full environments. - Instead, it provides the function 'texinfo-insert-@end' (mapped to - 'C-c C-c e') for closing an open environment with a matching @end - statement. - - In AUCTeX you can insert full environments, i.e. both the opening - and closing statements, with the function 'Texinfo-environment' - (mapped to 'C-c C-e'). - -Format info files with makeinfo and TeX - In the native Texinfo mode there are various functions and bindings - to format a region or the whole buffer for info or to typeset the - respective text. For example, there is 'makeinfo-buffer' (mapped - to 'C-c C-m C-b') which runs 'makeinfo' on the buffer or there is - 'texinfo-tex-buffer' (mapped to 'C-c C-t C-b') which runs TeX on - the buffer in order to produce a DVI file. - - In AUCTeX different commands for formatting or typesetting can be - invoked through the function 'TeX-command-master' (mapped to 'C-c - C-c'). After typing 'C-c C-c', you can select the desired command, - e.g 'Makeinfo' or 'TeX', through a prompt in the mini buffer. Note - that you can make, say 'Makeinfo', the default by adding this - statement in your init file: - - (add-hook 'Texinfo-mode-hook - (lambda () (setq TeX-command-default "Makeinfo"))) - - Note also that 'C-c C-c Makeinfo ' is not completely - functionally equivalent to 'makeinfo-buffer' as the latter will - display the resulting info file in Emacs, showing the node - corresponding to the position in the source file, just after a - successful compilation. This is why, while using AUCTeX, invoking - 'makeinfo-buffer' might still be more convenient. - - Note also that in the case of a multifile document, 'C-c C-c' in - AUCTeX will work on the whole document (provided that the file - variable 'TeX-master' is set correctly), while 'makeinfo-buffer' in - the native mode will process only the current buffer, provided at - the '@setfilename' statement is provided. - -Produce indexes and print - The native Texinfo mode provides the binding 'C-c C-t C-i' - ('texinfo-texindex') for producing an index and the bindings 'C-c - C-t C-p' ('texinfo-tex-print') and 'C-c C-t C-q' - ('tex-show-print-queue') for printing and showing the printer - queue. These are superseded by the respective commands available - through 'C-c C-c' ('TeX-command-master') in AUCTeX: Index, Print, - and Queue. - -Kill jobs - The command 'C-c C-t C-k' ('tex-kill-job') in the native mode is - superseded by 'C-c C-k' ('TeX-kill-job') in AUCTeX. - Binary files /tmp/tmp44GUck/tPtMIMEfqj/auctex-11.88/doc/auctex.info-2 and /tmp/tmp44GUck/9dtUCT_tIh/auctex-11.90/doc/auctex.info-2 differ diff -Nru auctex-11.88/doc/auctex.texi auctex-11.90/doc/auctex.texi --- auctex-11.88/doc/auctex.texi 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/doc/auctex.texi 2017-01-10 21:35:28.000000000 +0000 @@ -12,7 +12,7 @@ (version @value{VERSION} from @value{UPDATED}), a sophisticated TeX environment for Emacs. -Copyright @copyright{} 1992-1995, 2001, 2002, 2004-2014 +Copyright @copyright{} 1992-1995, 2001, 2002, 2004-2016 Free Software Foundation, Inc. @quotation @@ -164,6 +164,7 @@ * Folding:: Folding Macros and Environments * Outline:: Outlining the Document * Narrowing:: Restricting display and editing to a portion of the buffer +* Prettifying:: Displaying Greek and math macros as Unicode characters Font Locking @@ -188,6 +189,11 @@ * Starting Viewers:: Starting viewers * I/O Correlation:: Forward and inverse search +Catching the errors + +* Ignoring warnings:: Controlling warnings to be reported +* Error overview:: List of all errors and warnings + Customization and Extension * Multifile:: Multifile Documents @@ -1000,6 +1006,14 @@ should be placed at the top with @code{LaTeX-top-caption-list}. @vindex LaTeX-top-caption-list +@item short caption +If the specified caption is greater than a specific length, then a short +caption is prompted for and it is inserted as an optional argument to +the @samp{\caption} macro. The length that a caption needs to be before +prompting for a short version is controlled by +@code{LaTeX-short-caption-prompt-length}. +@vindex LaTeX-short-caption-prompt-length + @item label The label of this float. The label will have a default prefix, which is controlled by the variables @code{LaTeX-figure-label} and @@ -1032,6 +1046,11 @@ List of float environments with top caption. @end defopt +@defopt LaTeX-short-caption-prompt-length +Number of chars a caption should be before prompting for a short +caption. +@end defopt + @node Itemize-like @subsection Itemize-like Environments @cindex Itemize @@ -1082,7 +1101,12 @@ You can use @kbd{C-c @key{LFD}} (@code{LaTeX-insert-item}) to terminate rows in these environments. It supplies line break macro @samp{\\} and -inserts the suitable number of ampersands on the next line. +inserts the suitable number of ampersands on the next line. @AUCTeX{} +also supports the @samp{*@{num@}@{cols@}} notation (which may contain +another @samp{*}-expression) in the format string when calculating the +number of ampersands. Please note that @samp{num} and @samp{cols} must +be enclosed in braces; expressions like @samp{*2l} are not recognized +correctly by the algorithm. @deffn Command LaTeX-insert-item @kindex C-c @key{LFD} @@ -1192,24 +1216,73 @@ @cindex Arguments to @TeX{} macros Emacs lisp programmers probably know the @code{lisp-complete-symbol} -command, usually bound to @kbd{M-@key{TAB}}. Users of the wonderful -ispell mode know and love the @code{ispell-complete-word} command from -that package. Similarly, @AUCTeX{} has a @code{TeX-complete-symbol} -command, by default bound to @kbd{M-@key{TAB}} which is equivalent to -@kbd{M-C-i}. Using @code{TeX-complete-symbol} makes it easier to type -and remember the names of long @LaTeX{} macros. +command which was bound to @kbd{M-@key{TAB}} until completion-at-point +became the new standard completion facility (see below). Users of the +wonderful ispell mode know and love the @code{ispell-complete-word} +command from that package. Similarly, @AUCTeX{} has a +@code{TeX-complete-symbol} command, by default bound to +@kbd{M-@key{TAB}} which is equivalent to @kbd{M-C-i}. Using +@code{TeX-complete-symbol} makes it easier to type and remember the +names of long @LaTeX{} macros. In order to use @code{TeX-complete-symbol}, you should write a backslash and the start of the macro. Typing @kbd{M-@key{TAB}} will now complete as much of the macro, as it unambiguously can. For example, if you type `@samp{\renewc}' and then @kbd{M-@key{TAB}}, it will expand to -`@samp{\renewcommand}'. +`@samp{\renewcommand}'. But there's more: if point is just after +@samp{\begin@{}, then @code{TeX-complete-symbol} will complete @LaTeX{} +environments, etc. This is controlled by @code{TeX-complete-list}. @deffn Command TeX-complete-symbol @kindex M-@key{TAB} (@kbd{M-@key{TAB}}) Complete @TeX{} symbol before point. @end deffn +@defvar TeX-complete-list +List of ways to complete the preceding text. + +Each entry is a list with the following elements: + +@enumerate +@item +Regexp matching the preceding text or a predicate of arity 0 which +returns non-nil and sets `match-data' appropriately if it is applicable. +@item +A number indicating the subgroup in the regexp containing the text. +@item +A function returning an alist of possible completions. +@item +Text to append after a succesful completion. +@end enumerate + +Or alternatively: + +@enumerate +@item +Regexp matching the preceding text. +@item +Function to do the actual completion. +@end enumerate +@end defvar + +More recent Emacs versions have a new completion mechanism. Modes may +define and register custom completion-at-point functions and when the +user invokes @code{completion-at-point} (usually bound to +@kbd{M-@key{TAB}}), all such registered functions are consulted for +checking for possible completions. Modern completion UIs like +@i{company-mode} support this completion-at-point facility. + +@defun TeX--completion-at-point +@AUCTeX{}'s completion-at-point function which is automatically added to +@code{completion-at-point-functions} in @TeX{} and @LaTeX{} buffers. + +It offers the same completion candidates as would +@code{TeX-complete-symbol} (and is also controlled by +@code{TeX-complete-list}) except that it doesn't fall back on +@code{ispell-complete-word} which would be awkward with completion UIs +like @i{company-mode}. +@end defun + A more direct way to insert a macro is with @code{TeX-insert-macro}, bound to @kbd{C-c C-m} which is equivalent to @kbd{C-c @key{RET}}. It has the advantage over completion that it knows about the argument of @@ -1243,7 +1316,6 @@ Note that for some macros, there are special mechanisms, e.g. @code{LaTeX-includegraphics-options-alist} and @code{TeX-arg-cite-note-p}. - @end defopt @@ -1590,6 +1662,11 @@ @key{RET} is pressed. @end defopt +@AUCTeX{} treats by default @samp{\[...\]} math mode as a regular +environment and indents it accordingly. If you do not like such +behavior you only need to remove @code{\|\[} and @code{\|\]} from +@code{LaTeX-begin-regexp} and @code{LaTeX-end-regexp} variables +respectively. @node Filling @section Filling @@ -1741,6 +1818,26 @@ the line becomes overfull. @end defopt +@defopt LaTeX-fill-excluded-macros +A list of macro names (without leading backslash) for whose arguments +filling should be disabled. Typically, you will want to add macros here +which have long, multi-line arguments. An example is +@code{\pgfplotstabletypeset} from the pgfplotstable package which is +used as shown in the following listing: + +@verbatim +\pgfplotstabletypeset[skip first n=4]{% + XYZ Format, + Version 1.234 + Date 2010-09-01 + @author Mustermann + A B C + 1 2 3 + 4 5 6 +} +@end verbatim +@end defopt + @node Display @chapter Controlling Screen Display @@ -1767,11 +1864,31 @@ the buffer to the desired region. @AUCTeX{} provides also functions to narrow the buffer to the current group and to @LaTeX{} environments. +@AUCTeX{} also provides some WYSIWYG features. + +First, you can customize @code{font-latex-fontify-script} to enable +special formatting of @code{^} superscripts and @code{_} subscripts +(@pxref{Font Locking}). + +Secondly, @AUCTeX{} with GNU Emacs 25 or later can display certain math +macros using Unicode characters, e.g., @code{\alpha} as α. This is +called prettification and is lightweight and reasonable robust +(@pxref{Prettifying}). + +A more accurate approach is provided by @previewlatex{}, a subsystem of +@AUCTeX{}, see @ref{Top,,Introduction,preview-latex,The @previewlatex{} +Manual}. This system uses @LaTeX{} to generate images that are then +displayed in your buffer. It is extremely accurate but can be fragile +with some packages (like older pgf versions). + +Please note that you can use prettification and @previewlatex{} together. + @menu * Font Locking:: Font Locking * Folding:: Folding Macros and Environments * Outline:: Outlining the Document * Narrowing:: Restricting display and editing to a portion of the buffer +* Prettifying:: Displaying Greek and math macros as Unicode characters @end menu @node Font Locking @@ -2124,13 +2241,51 @@ @code{font-latex-script-display}. @defopt font-latex-fontify-script -If non-nil, fontify subscript and superscript strings. +If non-nil, fontify subscript and superscript strings. Concretely, this +means that the scripts are raised or lowered. -Note that this feature is not available on XEmacs, for which it is -disabled per default. In GNU Emacs raising and lowering is not enabled -for versions 21.3 and before due to it working not properly. +Another possiblity is setting this variable to the symbol +@code{multi-level}. In this case, in a formula @i{x^@{y^z@}}, @i{y} is +raised above and smaller than @i{x}, and @i{z} is raised above and +smaller than @i{y}. With many script levels, the text might become too +small to be readable. (See @code{font-latex-fontify-script-max-level} +below.) + +Lastly, you can set this variable to @code{invisible} whose behavior is +like @code{multi-level}, and in addition the super-/subscript characters +@i{^} and @i{_} are not displayed. + +Note that this feature is not available on XEmacs, for which +it is disabled per default. In GNU Emacs raising and lowering is not +enabled for versions 21.3 and before due to it working not properly. @end defopt + +@defopt font-latex-fontify-script-max-level +Maximum scriptification level for which script faces are applied. + +The faces @code{font-latex-superscript-face} and +@code{font-latex-subscript-face} define custom @code{:height} values < +1.0. Therefore, scripts are displayed with a slightly smaller font than +normal math text. If @code{font-latex-fontify-script} is +@code{multi-level} or @code{invisible}, the font size becomes too small +to be readable after a few levels. This option allows to specify the +maximum level after which the size of the script text won’t be shrunken +anymore. + +For example, in the expression @i{x^@{y^@{z^a_b@}@}}, @i{x} has +scriptification level 0, @i{y} has level 1, @i{z} has level 2, and both +@i{a} and @i{b} have scriptification level 3. + +If @code{font-latex-fontify-script-max-level} was 2, then @i{z}, @i{a}, +and @i{b} would have the same font size. If it was 3 or more, then +@i{a} and @i{b} were smaller than @i{z} just in the same way as @i{z} is +smaller than @i{y} and @i{y} is smaller than @i{x}. +@end defopt + +The script characters @samp{^} and @samp{_} themselves are also +fontified with an own face named @code{font-latex-script-char-face}. + @defopt font-latex-script-display Display specification for subscript and superscript content. The car is used for subscript, the cdr is used for superscript. The feature is @@ -2535,6 +2690,33 @@ the option of enabling them; if you enable the commands, confirmation will no longer be required for them. +@node Prettifying +@section Prettifying + +Emacs 25 is able to prettify symbols in programming language buffers, +@pxref{Misc for Programs,,,emacs,GNU Emacs Manual}. The canonical +example is to display @code{(lambda () ...)} as @code{(λ () ...)} in +Lisp buffers. + +@AUCTeX{} can use this feature in order to display certain math macros +and greek letters using their Unicode representation, too. For example, +the @TeX{} code @code{\alpha \times \beta} will be displayed as @code{α +× β}. When point is on one of the characters, it'll be unprettified +automatically, meaning you see the verbatim text again. For this +behaviour however you need to set +@code{prettify-symbols-unprettify-at-point} to t or @code{right-edge} +which will unprettify the symbol when point moves into or near it. + +To enable prettification in @AUCTeX{}, simply add +@code{prettify-symbols-mode} to @code{TeX-mode-hook}. If you enabled +prettification globally with @code{global-prettify-symbols-mode}, then +it's automatically enabled in @AUCTeX{}, too. + +You can also add custom symbol unicode-character pairs for +prettification by adding to @code{tex--prettify-symbols-alist}. Note +that this variable is part of Emacs' stock @code{tex-mode.el} and used +by that and @AUCTeX{}. + @node Processing @chapter Starting Processors, Viewers and Other Programs @@ -2655,6 +2837,34 @@ for details. @end deffn +@deffn Command LaTeX-command-section +@kindex C-c C-z +(@kbd{C-c C-z}) Query the user for a command, and apply it to the +current section (or part, chapter, subsection, paragraph, or +subparagraph). What makes the current section is determined by +@code{LaTeX-command-section-level} which can be enlarged/shrunken using +@code{LaTeX-command-section-change-level} (@kbd{C-c M-z}). The given +numeric prefix arg is added to the current value of +@code{LaTeX-command-section-level}. By default, +@code{LaTeX-command-section-level} is initialized with the current +document's @code{LaTeX-largest-level}. The buffer contents are written +into the region file, after extracting the header and trailer from the +master file. The command is then actually run on the region file. See +@code{TeX-command-region} for details. +@end deffn + +It is also possible to compile automatically the whole document until it +is ready with a single command: @code{TeX-command-run-all}. + +@deffn Command TeX-command-run-all +@kindex C-c C-a +(@kbd{C-c C-a}) Compile the current document until an error occurs or it +is finished. If compilation finishes successfully, run the viewer at +the end. +@end deffn + +Here are some relevant variables. + @defopt TeX-region The name of the file for temporarily storing the text when formatting the current region. @@ -2699,7 +2909,7 @@ @node Selecting a Command @subsection Selecting and Executing a Command -Once you started the command selection with @kbd{C-c C-c}, @kbd{C-c C-s} +Once you started the command selection with @kbd{C-c C-c}, @kbd{C-c C-r} or @kbd{C-c C-b} you will be prompted for the type of command. @AUCTeX{} will try to guess which command is appropriate in the given situation and propose it as default. Usually this is a processor like @@ -2776,6 +2986,126 @@ Used when checking if any files have changed. @end defopt +@cindex ispell +When performing spell checking on a document or a region (invoked +through @AUCTeX{}'s @samp{Spell} command or @kbd{M-x ispell RET}), you +want the spell checking program to skip certain macro arguments and +environments, most notably the arguments of referencing macros and the +contents of verbatim environments. The skipped parts are controlled by +variable @code{ispell-tex-skip-alists} provided by @file{ispell.el}. +@AUCTeX{} has a library which can be added to this variable depending on +the value of @code{TeX-ispell-extend-skip-list} which is set to @code{t} +by default. + +@defopt TeX-ispell-extend-skip-list +This boolean option controls whether @AUCTeX{} activates its extension +for skipping certain macro arguments and environments when spell +checking. + +When non-@code{nil}, @AUCTeX{} loads the file @file{tex-ispell.el} and +adds its content to @code{ispell-tex-skip-alists}. This library can and +will never be complete, but the interface can be used to add selected +and private macro names within your init file or on a file local basis. + +@code{ispell-tex-skip-alists} has the following structure: +@lisp +(defvar ispell-tex-skip-alists + '((;; First list + ("\\\\addcontentsline" ispell-tex-arg-end 2) + ("\\\\\\([aA]lph\\|arabic\\)" ispell-tex-arg-end) + ("\\\\makebox" ispell-tex-arg-end 0) + ("\\\\documentclass" . "\\\\begin@{document@}")) + (;; Second list + ("\\(figure\\|table\\)\\*?" ispell-tex-arg-end 0) + ("list" ispell-tex-arg-end 2) + ("verbatim\\*?" . "\\\\end@{verbatim\\*?@}"))) + "*Lists of regions to be skipped in TeX mode. +First list is used raw. +Second list has key placed inside \\begin@{@}.") +@end lisp +Each item is an alist and the structure of it is described in +@code{ispell-skip-region-alist}: +@lisp +(defvar ispell-skip-region-alist + '((...)) + "Alist expressing beginning and end of regions not to spell check. +The alist key must be a regular expression. +Valid forms include: + (KEY) - just skip the key. + (KEY . REGEXP) - skip to the end of REGEXP. + REGEXP may be string or symbol. + (KEY REGEXP) - skip to end of REGEXP. REGEXP must be a string. + (KEY FUNCTION ARGS) - FUNCTION called with ARGS + returns end of region.") +@end lisp + +Let's go through the first list of @code{ispell-tex-skip-alists} line by +line: +@lisp +("\\\\addcontentsline" ispell-tex-arg-end 2) +@end lisp +@code{KEY} is the string @code{"\\\\addcontentsline"}, @code{FUNCTION} +is @code{ispell-tex-arg-end} called with @code{ARGS}, here @code{2}. +@code{ispell-tex-arg-end} is a function provided by @file{ispell.el} +which skips as many subsequent optional arguments in square brackets as +it sees and then skips @code{ARGS} number of mandatory arguments in +braces. Omitting @code{ARGS} means skip @code{1} mandatory argument. +In practice, when you have something like this in your document: +@example +\addcontentsline@{toc@}@{chapter@}@{Some text@} +@end example +The first two arguments are left out and @samp{Some text} will be spell +checked. For the next line +@lisp +("\\\\\\([aA]lph\\|arabic\\)" ispell-tex-arg-end) +@end lisp +the name of the counter as argument is skipped. Next line is +@lisp +("\\\\makebox" ispell-tex-arg-end 0) +@end lisp +where only optional arguments are skipped, the first mandatory argument +is checked, e.g. +@example +\makebox[0pt][l]@{Some text@} +@end example +Finally, the next line +@lisp +("\\\\documentclass" . "\\\\begin@{document@}")) +@end lisp +ensures that the entire preamble of a document is discarded. Second +list works the same; it is more convenient for environments since +@code{KEY} is wrapped inside @code{\begin@{@}}. + +@AUCTeX{} provides two functions to add items to car and cdr of +@code{ispell-tex-arg-end}, namely @code{TeX-ispell-skip-setcar} and +@code{TeX-ispell-skip-setcdr}. The argument of these functions is +exactly as in @code{ispell-tex-skip-alists}. Additions can be done via +init file, e.g.: +@lisp +(eval-after-load "tex-ispell" + '(progn + (TeX-ispell-skip-setcar + '(("\\\\mymacro" ispell-tex-arg-end))) + (TeX-ispell-skip-setcdr + '(("myverbatim" . "\\\\end@{myverbatim@}"))))) +@end lisp +Another possibility is to use file local additions at the end of your +@TeX{} file, e.g.: +@example +%%% Local Variables: +%%% mode: latex +%%% TeX-master: t +%%% eval: (TeX-ispell-skip-setcar '(("\\\\mymacro" . "@{[-0-9]+@}"))) +%%% End: +@end example + +@findex TeX-ispell-tex-arg-end +Finally, @AUCTeX{} provides a function called +@code{TeX-ispell-tex-arg-end} which sees more arguments than +@code{ispell-tex-arg-end}. Refer to its doc string for more +information. +@end defopt + @node Processor Options @subsection Options for @TeX{} Processors @@ -2786,7 +3116,7 @@ nonstop mode, if source specials or a Sync@TeX{} file should be produced for making inverse and forward search possible or which @TeX{} engine should be used instead of regular @TeX{}, like PDF@TeX{}, Omega or -Xe@TeX{}. +Xe@TeX{}, and the style error messages are printed with. @deffn Command TeX-PDF-mode @kindex C-c C-t C-p @@ -2850,6 +3180,50 @@ specials switched off. @end deffn +Sometimes you are requested, by journal rules or packages, to compile +the document into @acronym{DVI} output. Thus, if you want a +@acronym{PDF} document in the end you can either use Xe@TeX{} engine, +see below for information about how to set engines, or compile the +document with @command{tex} and then convert to @acronym{PDF} with +@command{dvips}--@command{ps2pdf} before viewing it. In addition, +current Japanese @TeX{} engines cannot generate @acronym{PDF} directly +so they rely on @acronym{DVI}-to-@acronym{PDF} converters. Usually +@command{dvipdfmx} command is used for this purpose. You can use the +@code{TeX-PDF-from-DVI} variable to let @AUCTeX{} know you want to +generate the final @acronym{PDF} by converting a @acronym{DVI} file. + +@defopt TeX-PDF-from-DVI +This option controls if and how to produce a @acronym{PDF} file by +converting a @acronym{DVI} file. + +When @code{TeX-PDF-mode} is non-nil, if @code{TeX-PDF-from-DVI} is +non-nil too the document is compiled to @acronym{DVI} instead of +@acronym{PDF}. When the document is ready, @kbd{C-c C-c} will suggest +to run the converter to @acronym{PDF} or an intermediate format. + +If non-nil, @code{TeX-PDF-from-DVI} should be the name of the command, +as a string, used to convert the @acronym{DVI} file to @acronym{PDF} or +to an intermediate format. Values currently supported are: +@itemize +@item +@code{"Dvips"}: the @acronym{DVI} file is converted to @acronym{PS} with +@command{dvips}. After successfully running it, @command{ps2pdf} will +be the default command to convert the @acronym{PS} file to +@acronym{PDF}. +@item +@code{"Dvipdfmx"}: the @acronym{DVI} file is converted to @acronym{PDF} +with @command{dvipdfmx}. +@end itemize +When the @acronym{PDF} file is finally ready, the next suggested command +will be to open the viewer. + +This option can also be set as a file local variable, in order to use +this conversion on a per-document basis. + +Recall the whole sequence of @kbd{C-c C-c} commands can be replace by +the single @kbd{C-c C-a}. +@end defopt + @AUCTeX{} also allows you to easily select different @TeX{} engines for processing, either by using the entries in the @samp{TeXing Options} submenu below the @samp{Command} menu or by calling the function @@ -2905,6 +3279,37 @@ means there is no command available. @end defopt +In some systems, Emacs cannot inherit the PATH environment variable from +the shell and thus @AUCTeX{} may not be able to run @TeX{} commands. +Before running them, @AUCTeX{} checks if it able to find those commands +and will warn you in case it fails. You can skip this test by changing +the option @code{TeX-check-TeX}. + +@defopt TeX-check-TeX +@vindex TeX-command +@vindex TeX-check-TeX-command-not-found +If non-nil, @AUCTeX{} will check if it is able to find a working @TeX{} +distribution before running @TeX{}, @LaTeX{}, @ConTeXt{}, etc. It +actually checks if can run @code{TeX-command} command or the shell +returns a command not found error. The error code returned by the shell +in this case can be set in @code{TeX-check-TeX-command-not-found} +option. +@end defopt + +Some @LaTeX{} packages requires the document to be compiled with a +specific engine. Notable examples are fontspec and polyglossia +packages, which require Lua@TeX{} and Xe@TeX{} engines. If you try to +compile a document which loads one of such packages and the set engine +is not one of those allowed you will be asked to select a different +engine before running the @LaTeX{} command. If you do not want to be +warned by @AUCTeX{} in these cases, customize the option +@code{TeX-check-engine}. + +@defopt TeX-check-engine +This boolean option controls whether @AUCTeX{} should check the correct +engine has been set before running @LaTeX{} commands. +@end defopt + As shown above, @AUCTeX{} handles in a special way most of the main options that can be given to the @TeX{} processors. When you need to pass to the @TeX{} processor arbitrary options not handled by @AUCTeX{}, @@ -2929,6 +3334,23 @@ If non-nil, the output of @TeX{} compilation is shown in another window. @end defopt +You can instruct @TeX{} to print error messages in the form +file:line:error which is similar to the way many compilers format them. + +@defopt TeX-file-line-error +If non-nil, @TeX{} will produce file:line:error style error messages. +@end defopt + +@ConTeXt{} users can choose between Mark II and Mark IV versions. This +is controlled by @code{ConTeXt-Mark-version} option. + +@defopt ConTeXt-Mark-version +This variables specifies which version of Mark should be used. Values +currently supported are @code{"II"}, the default, and @code{"IV"}. It +can be set globally using customization interface or on a per-file +basis, by specifying it as a file variable. +@end defopt + @node Viewing @section Viewing the Formatted Output @cindex Viewing @@ -3019,8 +3441,15 @@ @code{TeX-view-predicate-list} or @code{TeX-view-predicate-list-builtin}. (See the doc string for the exact format to use.) The command line can also contain placeholders as -defined in @code{TeX-expand-list} which are expanded before the viewer -is called. +defined in @code{TeX-expand-list} and @code{TeX-expand-list-builtin} +which are expanded before the viewer is called. + +The third element of each item is a string, or a list of strings, with +the name of the executable, or executables, needed to open the output +file in the viewer. Placeholders defined in @code{TeX-expand-list} and +@code{TeX-expand-list-builtin} can be used here. This element is +optional and is used to check whether the viewer is actually available +on the system. A built-in viewer spec from @code{TeX-view-program-list-builtin} can be overwritten by defining a new viewer spec with the same name. @@ -3028,10 +3457,10 @@ Note that the viewer selection and invocation as described above will only work if certain default settings in @AUCTeX{} are intact. For one, -the whole viewer selection machinery will only be triggered if the -@samp{%V} expander in @code{TeX-expand-list} is unchanged. So if you -have trouble with the viewer invocation you might check if there is an -older customization of the variable in place. In addition, the use of a +the whole viewer selection machinery will only be triggered if there is +no @samp{%V} expander in @code{TeX-expand-list}. So if you have trouble +with the viewer invocation you might check if there is an older +customization of the variable in place. In addition, the use of a function in @code{TeX-view-program-list} only works if the View command in @code{TeX-command-list} makes use of the hook @code{TeX-run-discard-or-function}. @@ -3143,6 +3572,49 @@ of your viewer to find out how it has to be configured and what you have to do exactly. In xdvi you normally have to use @kbd{C-down-mouse-1}. +@vindex TeX-source-correlate-start-server +Note that inverse search with the Evince PDF viewer or its MATE fork +Atril might fail in raising the Emacs frame after updating point in your +document's buffer. There is simply no way to raise the Emacs frame +reliably accross different operating systems and different window +managers with their different focus stealing policies. If the Emacs +frame is not raised after performing an inverse search from Evince or +Atril, you can customize the following option. + +@defopt TeX-raise-frame-function +A function that will be called after performing an inverse search from +Evince or Atril in order to raise the current Emacs frame. + +If your Emacs frame is already raised in that situation, just +leave this variable set to its default value +@code{raise-frame}. Otherwise, here are some alternative +settings that work for some users. + +@lisp +;; Alternative 1: For some users, `x-focus-frame' works. Note +;; that this function requires Emacs 24+. +(setq TeX-raise-frame-function #'x-focus-frame) + +;; Alternative 2: Under GNOME 3.20 (and probably others), it +;; seems some focus stealing prevention policy prohibits that +;; some window gets the focus immediately after the user has +;; clicked in some other window. Here waiting a bit before +;; issuing the request seems to work. +(setq TeX-raise-frame-function + (lambda () + (run-at-time 0.5 nil #'x-focus-frame))) + +;; Alternative 3: Use the external wmctrl tool in order to +;; force Emacs into the focus. +(setq TeX-raise-frame-function + (lambda () + (call-process + "wmctrl" nil nil nil "-i" "-R" + (frame-parameter (selected-frame) ’outer-window-id)))) +@end lisp +@end defopt + + @node Debugging @section Catching the errors @cindex Debugging @@ -3156,7 +3628,9 @@ @cindex Underfull boxes Once you've formatted your document you may `debug' it, i.e. browse -through the errors (La)@TeX{} reported. +through the errors (La)@TeX{} reported. If you have GNU Emacs 24 or +later, you may also have a look at a nicely formatted list of all errors +and warnings reported by the compiler. @deffn Command TeX-next-error @var{arg} @var{reparse} @kindex C-c ` @@ -3196,33 +3670,80 @@ cannot be used. @end defopt +As default, @AUCTeX{} will display a special help buffer containing the +error reported by @TeX{} along with the documentation. There is however +an `expert' option, which allows you to display the real @TeX{} output. + +@defopt TeX-display-help +If t @AUCTeX{} will automatically display a help text whenever an error +is encountered using @code{TeX-next-error} (@kbd{C-c `}). If nil a +terse information about the error is displayed in the echo area. If +@code{expert} @AUCTeX{} will display the output buffer with the raw +@TeX{} output. +@end defopt + +@menu +* Ignoring warnings:: Controlling warnings to be reported +* Error overview:: List of all errors and warnings +@end menu + +@node Ignoring warnings +@subsection Controlling warnings to be reported + Normally @AUCTeX{} will only report real errors, but you may as well ask it to report `bad boxes' and warnings as well. @deffn Command TeX-toggle-debug-bad-boxes @kindex C-c C-t C-b +@vindex TeX-debug-bad-boxes (@kbd{C-c C-t C-b}) Toggle whether @AUCTeX{} should stop at bad boxes -(i.e. overfull and underfull boxes) as well as normal errors. +(i.e. overfull and underfull boxes) as well as normal errors. The +boolean option @code{TeX-debug-bad-boxes} is set accordingly. @end deffn @deffn Command TeX-toggle-debug-warnings @kindex C-c C-t C-w +@vindex TeX-debug-warnings (@kbd{C-c C-t C-w}) Toggle whether @AUCTeX{} should stop at warnings as -well as normal errors. +well as normal errors. The boolean option @code{TeX-debug-warnings} is +set accordingly. @end deffn -As default, @AUCTeX{} will display a special help buffer containing the -error reported by @TeX{} along with the documentation. There is however -an `expert' option, which allows you to display the real @TeX{} output. +While many users desire to have warnings reported after compilation, +there are certain warnings that are considered unimportant and users +want to ignore them. For a more fine-grained control of what kinds of +warnings should be shown after compilation, @AUCTeX{} provides other +options. -@defopt TeX-display-help -If t @AUCTeX{} will automatically display a help text whenever an error -is encountered using @code{TeX-next-error} (@kbd{C-c `}). If nil a -terse information about the error is displayed in the echo area. If -@code{expert} @AUCTeX{} will display the output buffer with the raw -@TeX{} output. +@defopt TeX-ignore-warnings +Controls which warnings are to be ignored. + +It can be a regexp matching the message of the warnings to be ignored. + +More advanced users can set also this option to a symbol with the name +of a custom function taking as arguments all the information of the +warning listed in @code{TeX-error-list} variable, except the last one +about whether to ignore the warning. See the code of @code{TeX-warning} +function and the documentation of @code{TeX-error-list} for more +details. @end defopt +@deffn Command TeX-toggle-suppress-ignored-warnings +@kindex C-c C-t C-x +@vindex TeX-suppress-ignored-warnings +(@kbd{C-c C-t C-x}) Toggle whether @AUCTeX{} should actually hide the +ignored warnings specified with @code{TeX-ignore-warnings}. The boolean +option @code{TeX-suppress-ignored-warnings} is set accordingly. If this +is nil, all warnings are shown, even those matched by +@code{TeX-ignore-warnings}, otherwise these are hidden. + +Note that @code{TeX-debug-warnings} takes the precedence: if it is nil, +all warnings are hidden in any case. +@end deffn + +@node Error overview +@subsection List of all errors and warnings + When the option @code{TeX-parse-all-errors} is non-nil, you will be also able to open an overview of all errors and warnings reported by the TeX compiler. This feature requires @code{tabulated-list-mode}, shipped @@ -3236,7 +3757,12 @@ @key{RET}, and visit the next or previous issue by pressing @key{n} or @key{p} respectively. A prefix argument to these keys specifies how many errors to move forward or backward. You can visit an error also by -clicking on its message. Press @key{q} to quit the overview. +clicking on its message. Jump to error point in the source code with +@key{j}, and use @key{l} see the error in the log buffer. In addition, +you can toggle visibility of bad boxes, generic warnings, and ignored +warnings with @key{b}, @key{w}, and @key{x}, respectively (see +@ref{Ignoring warnings} for details). Press @key{q} to quit the +overview. @end deffn @defopt TeX-error-overview-open-after-TeX-run @@ -3373,16 +3899,15 @@ @section Documentation about macros and packages @cindex Documentation -@deffn Command TeX-doc +@deffn Command TeX-documentation-texdoc @kindex C-c ? -(@kbd{C-c ?}) Get documentation about macros, packages or @TeX{} & -Co. in general. The function will prompt for the name of a command or -manual, providing a list of available keywords for completion. If point -is on a command or word with available documentation, this will be +(@kbd{C-c ?}) Get documentation about the packages installed on your +system, using @samp{texdoc} to find the manuals. The function will +prompt for the name of packages. If point is on a word, this will be suggested as default. -In case no documentation could be found, a prompt for querying the -@samp{texdoc} program is shown, should the latter be available. +If the command is called with a prefix argument, you will be shown a +list of manuals of the given package among to choose. The command can be invoked by the key binding mentioned above as well as the @samp{Find Documentation...} entry in the mode menu. @@ -3439,6 +3964,22 @@ and if it is relevant for all text modes, append it to @code{text-mode-hook}. +Other useful hooks are listed below. + +@defvr Variable TeX-after-compilation-finished-hook +Hook which is run after the @TeX{}/@LaTeX{} processor has successfully +finished compiling your document. (@xref{Processing}, for finding out +how to compile your document). Each function in the hook is run with +the compiled output document as its argument. + +This is useful for automatically refreshing the viewer after +re-compilation especially when using Emacs viewers such as DocView or +PDF Tools. The function @code{TeX-revert-document-buffer} can be added +to the hook for this purpose. +@end defvr +@vindex TeX-after-compilation-finished-hook +@findex TeX-revert-document-buffer + @node Multifile @section Multifile Documents @cindex Multifile Documents @@ -3508,6 +4049,9 @@ If the variable is @code{shared}, then @AUCTeX{} will query for the name, but will not change the file. + +If the variable is @code{dwim}, @AUCTeX{} will try to avoid querying by +attempting to ``do what I mean''; and then change the file. @end defopt @defopt TeX-one-master @@ -3769,8 +4313,8 @@ Note that Unicode is not fully supported in Emacs 21 and XEmacs 21. @acronym{CJK} characters are not usable. Please use the -@acronym{MULE}-@acronym{UCS} EmacsLisp package or Emacs 22 (not released -yet) if you need @acronym{CJK}. +@acronym{MULE}-@acronym{UCS} EmacsLisp package or Emacs 22 and later if +you need @acronym{CJK}. @c FIXME: We need more information for CTeX, ChinaTeX, KTeX, and HLaTeX. @@ -4002,8 +4546,7 @@ @cindex p@LaTeX{} @cindex @file{tex-jp.el} @vindex TeX-default-mode -@vindex japanese-TeX-command-default -@vindex japanese-LaTeX-command-default +@vindex japanese-TeX-engine-default @vindex japanese-LaTeX-default-style To write Japanese text with @AUCTeX{}, you need to have versions of @@ -4033,16 +4576,10 @@ @end lisp @end defopt -@defopt japanese-TeX-command-default -The default command for @code{TeX-command} in Japanese @TeX{} mode. +@defopt japanese-TeX-engine-default +The default TeX engine in Japanese @TeX{} mode. -The default value is @samp{"pTeX"}. -@end defopt - -@defopt japanese-LaTeX-command-default -The default command for @code{TeX-command} in Japanese @LaTeX{} mode. - -The default value is @samp{"LaTeX"}. +The default value is @samp{ptex}. @end defopt @defopt japanese-LaTeX-default-style @@ -4051,6 +4588,16 @@ The default value is @samp{"jarticle"}. @end defopt +The former customize options @code{japanese-TeX-command-default} and +@code{japanese-LaTeX-command-default} are obsolete. Use +@code{japanese-TeX-engine-default} instead. If you need to customize +the executable file name such as @samp{"latex"}, the options for them, +or both, customize @code{TeX-engine-alist}. + +Also, the option @code{japanese-TeX-command-list} is considered as +semi-obsolete. It still functions as before, but in theory, it is not +required anymore in normal use. + See @file{tex-jp.el} for more information. @node Automatic @@ -4097,7 +4644,6 @@ @defopt TeX-style-path List of directories to search for @AUCTeX{} style files. -Each must end with a slash. @end defopt By default, when @AUCTeX{} searches a directory for files, it will @@ -4145,7 +4691,6 @@ @defopt TeX-style-global Directory containing hand generated @TeX{} information. -Must end with a slash. These correspond to @TeX{} macros shared by all users of a site. @end defopt @@ -4207,7 +4752,7 @@ @AUCTeX{} can update the style information about a file each time you save it, and it will do this if the directory @code{TeX-auto-local} -exist. @code{TeX-auto-local} is by default set to @samp{"auto"}, so +exists. @code{TeX-auto-local} is by default set to @samp{"auto"}, so simply creating an @file{auto} directory will enable automatic saving of style information. @@ -4218,14 +4763,12 @@ @defopt TeX-style-local Directory containing hand generated @TeX{} information. -Must end with a slash. These correspond to @TeX{} macros found in the current directory. @end defopt @defopt TeX-auto-local Directory containing automatically generated @TeX{} information. -Must end with a slash. These correspond to @TeX{} macros found in the current directory. @end defopt @@ -4499,7 +5042,7 @@ Prompt for a @LaTeX{} savebox completing with known saveboxes. @item TeX-arg-file -Prompt for a filename in the current directory, and use it without the +Prompt for a filename in the current directory, and use it with the extension. @item TeX-arg-file-name diff -Nru auctex-11.88/doc/changes.texi auctex-11.90/doc/changes.texi --- auctex-11.88/doc/changes.texi 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/doc/changes.texi 2017-01-10 21:35:28.000000000 +0000 @@ -1,5 +1,5 @@ @c This is part of the AUCTeX manual. -@c Copyright (C) 1994-2002, 2004-2010, 2012-2014 Free Software +@c Copyright (C) 1994-2002, 2004-2010, 2012-2017 Free Software @c Foundation, Inc. @c See file auctex.texi for copying conditions. @include macros.texi @@ -8,6 +8,219 @@ @end ifset +@heading News in 11.90 + +@itemize @bullet +@item +In addition to the completion performed by @code{TeX-complete-symbol}, +@AUCTeX{} now also supports the new Emacs standard completion-at-point +facility (see the Emacs command @code{completion-at-point}). This also +means that modern completion UIs like @i{company-mode} work out of the +box in @TeX{} and @LaTeX{} buffers. +@ifclear rawfile +@xref{Completion}, for details. +@end ifclear + +@item +Completion is now aware of being inside a math environment and then +completes math macros. + +@item +@AUCTeX{} is able to display several levels of super- and subscripts, +each one raised above and a bit smaller than its basis. For this +feature, have a look at the customize options +@code{font-latex-fontify-script} (especially the new values +@code{multi-level} and @code{invisible}) and +@code{font-latex-fontify-script-max-level}. Also, the script characters +@samp{^} and @samp{_} are also fontified with a special face named +@code{font-latex-script-char-face}. +@ifclear rawfile +@xref{Fontification of math}, for details. +@end ifclear + +@item +Parsing of format specification in various tabular environments has been +improved. The function @code{LaTeX-insert-item} (@kbd{C-c @key{LFD}}) +inserts suitable number of ampersands for @samp{*@{num@}@{cols@}} +constructs. Style files for @LaTeX{} packages @samp{tabularx}, +@samp{tabulary}, @samp{longtable}, @samp{dcolumn} and @samp{siunitx} are +adapted to take advantage of this improvement. + +@item +@AUCTeX{} has a new Ispell dictionary @file{tex-ispell.el} for macros +and environments which will be skipped during spell checking. The +activiation of this feature is controlled by a new customize option +@code{TeX-ispell-extend-skip-list}, which is set to @code{t} and +activated by default. + +@item +@AUCTeX{} has a new customize option @code{TeX-raise-frame-function} +that is currently only used by Evince and Atril inverse search to raise +the Emacs frame. + +@item +When inserting a new float, @AUCTeX{} will now prompt for a +short-caption if the length of the caption provided is greater than a +certain size. This size is controlled via a new user option +@code{LaTeX-short-caption-prompt-length}. + +@item +Parsing of the compilation log has been reworked. You should encounter +fewer mistaken files while navigating through errors and warnings. + +@item +Two new user options, @code{TeX-ignore-warnings} and +@code{TeX-suppress-ignored-warnings}, allow ignoring certain warnings +after compilation of the document. +@ifclear rawfile +@xref{Ignoring warnings}, for details. +@end ifclear + +@item +A new option, @code{TeX-PDF-from-DVI}, controls if and how to produce a +@acronym{PDF} file by converting a @acronym{DVI} file. This supersedes +@code{TeX-PDF-via-dvips-ps2pdf} which is still recognized but marked as +obsolete and may be removed in future releases. + +@item +Support for a number of external viewers has been added: +@itemize +@item +Atril viewer. Forward and inverse search requires version 1.9.1 or +later to work. + +@item +dviout viewer on Windows. Note that this setup works when +@code{TeX-source-correlate-method} is set to use @samp{source-specials} +for @acronym{DVI}, e.g.: +@lisp +(setq TeX-source-correlate-method + '((dvi . source-specials) + (pdf . synctex))) +@end lisp +which is the default. + +@item +SumatraPDF viewer on Windows. + +@item +Zathura viewer. Forward and inverse search requires a recent version of +the program to work (3.4 or later). +@end itemize + +@item +A new function, @code{TeX-documentation-texdoc}, for reading +documentation with @samp{texdoc} has been added. @code{TeX-doc} is +still available but now @kbd{C-c ?} runs +@code{TeX-documentation-texdoc}. + +@item +@AUCTeX{} has a new custom option +@code{LaTeX-reftex-cite-format-auto-activate} which controls the +automatic activation of citation formats provided by RefTeX when a style +file is loaded and RefTeX is enabled. Currently, @file{biblatex.el}, +@file{harvard.el}, @file{jurabib.el} and @file{natbib.el} use this +feature. If you have customized @code{reftex-cite-format} and want to +use your settings, you should set this variable to @code{nil}. + +@item +@AUCTeX{} now has limited support for the TikZ package. For the moment, +this includes some basic support for prompting the user of arguments to +the @samp{\draw} macro. + +@item +The style @file{graphicx.el} went through a bigger overhaul. The +optional argument of command @samp{\includegraphics} now supports +key-val query; keys can independently be chosen anytime by pressing the +@key{,} key. As a side effect, the variable +@code{LaTeX-includegraphics-options-alist} is now no-op and is removed +from @file{tex-style.el}. You can safely remove any customization of it +from your init file. The mandatory argument of @samp{\includegraphics} +knows about image file extensions supported by the used engine and +offers them for inclusion. + +@item +Support for other @LaTeX{} packages was improved, and style files for +several new packages were added. + +@item +Many bugs were crushed along the way. +@end itemize + +@heading News in 11.89 + +@itemize @bullet +@item +You can now run all commands needed to compile a document and then open +the viewer with a single command: @code{TeX-command-run-all}, bound to +@kbd{C-c C-a}. + +@item +Commands such as LaTeX and View can now be executed conveniently on the +current section (or part, chapter, subsection, etc). See +@code{LaTeX-command-section} and +@code{LaTeX-command-section-change-level}. +@ifclear rawfile +@xref{Starting a Command}, for details. +@end ifclear + +@item +Forward and backward search with Evince now also work when only a region +of the document is compiled/viewed. + +@item +To open the PDF output file you can now use also PDF Tools, a document +viewer for Emacs. With it, as a plus, forward and backward search is +accurate at word level. + +@item +With new option @code{TeX-PDF-via-dvips-ps2pdf} it is possible to +compile a document to @acronym{DVI} and then convert it to @acronym{PDF} +using @command{dvips}--@command{ps2pdf} before viewing it. + +@item +New option @code{TeX-file-line-error} allows to select file:line:error +style for error messages. + +@item +Indent @samp{\[...\]} math mode as a regular environment by default. + +@item +Now @AUCTeX{} suggests to run @command{makeindex} when appropriate. + +@item +@code{TeX-view-program-list} can contain, as third optional element of +each item, the name of the executable(s) needed to open the viewer. + +@item +@code{TeX-expand-list} variable has been split into +@code{TeX-expand-list} and @code{TeX-expand-list-builtin}. Only the +former is intended to be customized by the user, the latter contains +built-in expanders. You might want to keep in @code{TeX-expand-list} +only new expansion strings. + +@item +Before running commands like @TeX{} and @LaTeX{}, now @AUCTeX{} performs +some checks. If @code{TeX-check-TeX} is non-nil, it will test whether a +working @TeX{} distribution is actually present in the system and +available to Emacs. Instead, when @code{TeX-check-engine} is non-nil, +before running @LaTeX{} commands @AUCTeX{} will check whether the +correct engine has been set, based upon known restrictions posed by +@LaTeX{} packages. + +@item +Basic support to @ConTeXt{} Mark IV has been added. Users can now +select the Mark version to be used with new option +@code{ConTeXt-Mark-version}, and @AUCTeX{} is able to catch error +messages in the output log of a Mark IV document. + +@item +Support for tons of @LaTeX{} packages has been added. + +@item +Numbers of bugs have been fixed, many minor features have been added. +@end itemize + @heading News in 11.88 @itemize @bullet @@ -139,7 +352,7 @@ There have been lots of bug fixes and feature additions. @end itemize -@heading News since 11.87 +@heading News in 11.87 @itemize @bullet @item diff -Nru auctex-11.88/doc/faq.texi auctex-11.90/doc/faq.texi --- auctex-11.88/doc/faq.texi 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/doc/faq.texi 2017-01-10 21:35:28.000000000 +0000 @@ -1,5 +1,5 @@ @c This is part of the AUCTeX Manual. -@c Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc. +@c Copyright (C) 2004-2014 Free Software Foundation, Inc. @c See the file auctex.texi for copying conditions. @ifset rawfile @include macros.texi @@ -128,18 +128,20 @@ @item Why does @code{TeX-next-error} (@kbd{C-c `}) fail? -When writing the log file, @TeX{} puts information related to a file, -including error messages, between a pair of parentheses. @AUCTeX{} +If @code{TeX-file-line-error} is set to nil (not the default), these +sort of failures might be related to the the fact that when writing the +log file, @TeX{} puts information related to a file, including error +messages, between a pair of parentheses. In this scenario @AUCTeX{} determines the file where the error happened by parsing the log file and counting the parentheses. This can fail when there are other, unbalanced parentheses present. -As a workaround you can activate so-called file:line:error messages for -the log file. (Those are are easier to parse, but may lack some -details.) Either you do this in the configuration of your @TeX{} system -(consult its manual to see where this is) or you add a command line -switch to the (la)tex call, e.g. by customizing -@code{LaTeX-command-style} or @code{TeX-command-list}. +Activating so-called file:line:error messages for the log file usually +solves this issue, as these kind of messages are are easier to parse; +however, they may lack some details. Activation can be done either in +the configuration of your @TeX{} system (consult its manual to see where +this is) or by simply keeping the variable @code{TeX-file-line-error} to +the default value of non-nil. @item What does AUC stand for? diff -Nru auctex-11.88/doc/install.texi auctex-11.90/doc/install.texi --- auctex-11.88/doc/install.texi 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/doc/install.texi 2017-01-10 21:35:28.000000000 +0000 @@ -12,11 +12,19 @@ @chapter Installing @AUCTeX{} @end ifclear -The simplest way of installing @AUCTeX{} is by using the Emacs package -manager integrated in Emacs 24 and greater (@acronym{ELPA}). Simply do -@kbd{M-x package-list-packages RET}, mark the auctex package for -installation with @kbd{i}, and hit @kbd{x} to execute the installation -procedure. That's all. +The modern and strongly recommended way of installing @AUCTeX{} is by +using the Emacs package manager integrated in Emacs 24 and greater +(@acronym{ELPA}). Simply do @kbd{M-x list-packages RET}, mark the +auctex package for installation with @kbd{i}, and hit @kbd{x} to execute +the installation procedure. That's all. This installation procedure +has several advantages. Besides being platform and @acronym{OS} +independent, you will receive intermediate releases between major +@AUCTeX{} releases conveniently. For past @acronym{ELPA} releases, see +@url{https://elpa.gnu.org/packages/auctex.html}. +@ifclear rawfile +Once the installation is completed, you can skip the rest of this +section and proceed to @ref{Quick Start}. +@end ifclear The remainder of this section is about installing @AUCTeX{} from a release tarball or from a checkout of the @AUCTeX{} repository. @@ -43,7 +51,7 @@ @menu * Prerequisites:: * Configure:: -* Build/install:: +* Build/install and uninstall:: * Loading the package:: * Advice for package providers:: * Advice for non-privileged users:: @@ -56,7 +64,7 @@ @menu * Prerequisites:: * Configure:: -* Build/install:: +* Build/install and uninstall:: * Loading the package:: * Advice for package providers:: * Advice for non-privileged users:: @@ -270,11 +278,12 @@ but is normally not necessary otherwise. @end table -@node Build/install -@section Build/install +@node Build/install and uninstall +@section Build/install and uninstall @cindex Installation @cindex Make +@cindex Uninstallation Once @command{configure} has been run, simply enter @@ -291,9 +300,21 @@ make install @end example +@noindent You may need special privileges to install, e.g., if you are installing into system directories. +Should you want to completely remove the installed package, in the same +directory you built @AUCTeX{} run + +@example +make uninstall +@end example + +@noindent +You will need administration privileges if you installed the package +into system directories. + @node Loading the package @section Loading the package @cindex @file{.emacs} @@ -575,3 +596,8 @@ subdirectories explicitly. Automatic configuration will already have set the variable for you if it could use the program @samp{kpsewhich}. In this case you normally don't have to alter anything. + +@c Local Variables: +@c mode: texinfo +@c TeX-master: "auctex" +@c End: diff -Nru auctex-11.88/doc/macros.texi auctex-11.90/doc/macros.texi --- auctex-11.88/doc/macros.texi 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/doc/macros.texi 2017-01-10 21:35:28.000000000 +0000 @@ -64,10 +64,18 @@ \def\TeX#1{TeX#1}% \def\LaTeX#1{LaTeX#1}\def\previewlatex#1{preview-latex#1}} \xdef\indexnofonts{\the\toks0} -\toks0\expandafter{\commondummies - \def\TeX#1{TeX#1}% - \def\LaTeX#1{LaTeX#1}\def\previewlatex#1{preview-latex#1}} -\xdef\commondummies{\the\toks0} +\ifx\commondummies\undefined \else + \toks0\expandafter{\commondummies + \def\TeX#1{TeX#1}% + \def\LaTeX#1{LaTeX#1}\def\previewlatex#1{preview-latex#1}} + \xdef\commondummies{\the\toks0} +\fi +\ifx\definedummies\undefined \else + \toks0\expandafter{\definedummies + \def\TeX#1{TeX#1}% + \def\LaTeX#1{LaTeX#1}\def\previewlatex#1{preview-latex#1}} + \xdef\definedummies{\the\toks0} +\fi \ifx\acronym\undefined \gdef\acronym#1{{\smallcaps \lowercase{#1}}} \fi \ifx\env\undefined \global\let\env=\code \fi \ifx\option\undefined \global\let\option=\samp \fi diff -Nru auctex-11.88/doc/Makefile.in auctex-11.90/doc/Makefile.in --- auctex-11.88/doc/Makefile.in 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/doc/Makefile.in 2017-01-10 21:35:28.000000000 +0000 @@ -2,7 +2,7 @@ # Maintainer: auctex-devel@gnu.org -# Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. +# Copyright (C) 2003-2008, 2013-2015 Free Software Foundation, Inc. # This file is part of AUCTeX. @@ -90,7 +90,8 @@ extradist: html/$(TEXI2HTML_TOC) auctex.ps auctex.pdf tex-ref.ps tex-ref.pdf .PHONY: all info dvi dist install-auctex disttexts clean distclean \ - maintainer-clean install-preview install-man html-docs extradist + maintainer-clean install-preview install-man uninstall html-docs \ + extradist # AUCTeX @@ -109,7 +110,7 @@ tex-ref.pdf: tex-ref.tex $(PDFTEX) tex-ref.tex -version.texi: ../ChangeLog +version.texi: ../ChangeLog.1 echo @set VERSION $(AUCTEXVERSION) >version.texi echo @set UPDATED $(AUCTEXDATE) >>version.texi @@ -149,8 +150,8 @@ html-docs: preview-latex/index.html -preview-dtxdoc.texi: ../preview/latex/preview.dtx preview-dtxdoc.pl - -$(PERL) preview-dtxdoc.pl ../preview/latex/preview.dtx \ +preview-dtxdoc.texi: ../latex/preview.dtx preview-dtxdoc.pl + -$(PERL) preview-dtxdoc.pl ../latex/preview.dtx \ preview-dtxdoc.texi preview-latex.dvi: $(PREVIEWTEXIFILES) @@ -200,6 +201,15 @@ # clean +uninstall: + for info in $(DESTDIR)$(infodir)/{auctex.info,preview-latex.info}; do \ + test ! -f $${info} || \ + $(INSTALL_INFO) --delete --info-dir=$(DESTDIR)$(infodir) $${info}; \ + done + rm -f $(DESTDIR)$(infodir)/auctex.info $(DESTDIR)$(infodir)/auctex.info-* \ + $(DESTDIR)$(infodir)/preview-latex.info* + test X$(packagedir) != Xno || rm -rf -f $(DESTDIR)$(docdir) + clean: rm -f *.dvi *.ps *.pdf *.aux *.cp *.fn *.ky *.log *~ \#*\# \ *.tp *.vr *.pg *.toc *.tp *.bak *.cps *.kys *.tps \ diff -Nru auctex-11.88/doc/preview-latex.info auctex-11.90/doc/preview-latex.info --- auctex-11.88/doc/preview-latex.info 2014-10-29 19:21:38.000000000 +0000 +++ auctex-11.90/doc/preview-latex.info 2017-01-10 21:36:04.000000000 +0000 @@ -1,8 +1,8 @@ -This is preview-latex.info, produced by makeinfo version 5.2 from +This is preview-latex.info, produced by makeinfo version 6.3 from preview-latex.texi. This manual is for preview-latex, a LaTeX preview mode for AUCTeX -(version 11.88 from 2014-10-29). +(version 11.90 from 2017-01-10). Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. @@ -1900,7 +1900,7 @@ The copyright notice for this manual is: This manual is for preview-latex, a LaTeX preview mode for AUCTeX -(version 11.88 from 2014-10-29). +(version 11.90 from 2017-01-10). Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. @@ -2413,23 +2413,23 @@ * \PreviewMacro: Provided commands. (line 25) * Activation: Activating preview-latex. (line 6) -* 'C-c C-k': Keys and lisp. (line 160) -* 'C-c C-m P': Keys and lisp. (line 63) -* 'C-c C-p C-b': Keys and lisp. (line 89) -* 'C-c C-p C-c C-b': Keys and lisp. (line 115) -* 'C-c C-p C-c C-d': Keys and lisp. (line 121) -* 'C-c C-p C-c C-p': Keys and lisp. (line 99) -* 'C-c C-p C-c C-r': Keys and lisp. (line 110) -* 'C-c C-p C-c C-s': Keys and lisp. (line 105) -* 'C-c C-p C-d': Keys and lisp. (line 94) -* 'C-c C-p C-e': Keys and lisp. (line 74) -* 'C-c C-p C-f': Keys and lisp. (line 128) -* 'C-c C-p C-i': Keys and lisp. (line 147) -* 'C-c C-p C-p': Keys and lisp. (line 23) -* 'C-c C-p C-r': Keys and lisp. (line 84) -* 'C-c C-p C-s': Keys and lisp. (line 79) -* 'C-c C-p C-w': Keys and lisp. (line 45) -* 'C-u C-c C-p C-f': Keys and lisp. (line 141) +* C-c C-k: Keys and lisp. (line 160) +* C-c C-m P: Keys and lisp. (line 63) +* C-c C-p C-b: Keys and lisp. (line 89) +* C-c C-p C-c C-b: Keys and lisp. (line 115) +* C-c C-p C-c C-d: Keys and lisp. (line 121) +* C-c C-p C-c C-p: Keys and lisp. (line 99) +* C-c C-p C-c C-r: Keys and lisp. (line 110) +* C-c C-p C-c C-s: Keys and lisp. (line 105) +* C-c C-p C-d: Keys and lisp. (line 94) +* C-c C-p C-e: Keys and lisp. (line 74) +* C-c C-p C-f: Keys and lisp. (line 128) +* C-c C-p C-i: Keys and lisp. (line 147) +* C-c C-p C-p: Keys and lisp. (line 23) +* C-c C-p C-r: Keys and lisp. (line 84) +* C-c C-p C-s: Keys and lisp. (line 79) +* C-c C-p C-w: Keys and lisp. (line 45) +* C-u C-c C-p C-f: Keys and lisp. (line 141) * Caching a preamble: Simple customization. (line 59) * Contacts: Contacts. (line 6) @@ -2448,8 +2448,8 @@ (line 110) * Kill preview-generating process: Keys and lisp. (line 160) * License: Copying. (line 6) -* 'M-m P': Keys and lisp. (line 63) -* 'M-x preview-report-bug ': Keys and lisp. (line 152) +* M-m P: Keys and lisp. (line 63) +* M-x preview-report-bug : Keys and lisp. (line 152) * Mailing list: Contacts. (line 6) * Menu entries: Keys and lisp. (line 6) * Philosophy of preview-latex: What use is it?. (line 6) @@ -2511,7 +2511,7 @@ * Readme: Introduction. (line 6) * Report a bug: Keys and lisp. (line 152) * Right: Copying. (line 6) -* Showing '\label's: Simple customization. +* Showing \labels: Simple customization. (line 23) * Using dvipng: Basic modes of operation. (line 19) diff -Nru auctex-11.88/doc/quickstart.texi auctex-11.90/doc/quickstart.texi --- auctex-11.88/doc/quickstart.texi 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/doc/quickstart.texi 2017-01-10 21:35:28.000000000 +0000 @@ -18,7 +18,8 @@ the way keystrokes are written in Emacs manuals. If not, have a look at the Emacs Tutorial in the Help menu. -If @AUCTeX{} is installed, you might still need to activate it, by +If @AUCTeX{} is installed in any other way than from the Emacs package +manager (@acronym{ELPA}), you might still need to activate it, by inserting @lisp @@ -27,10 +28,16 @@ in your user init file.@footnote{This usually is a file in your home directory called @file{.emacs} if you are utilizing GNU Emacs or -@file{.xemacs/init.el} if you are using XEmacs.} If you've installed -@AUCTeX{} from the Emacs package manager (ELPA), you must not have this -line in your user init file. The installation procedure already cares -about loading @AUCTeX{} correctly. +@file{.xemacs/init.el} if you are using XEmacs.} + +If @AUCTeX{} is installed from @acronym{ELPA}, the installation +procedure already cares about loading @AUCTeX{} correctly and you +@strong{must not} have the line above in your init file. Note that this +also applies if you have the following line in your init file + +@lisp +(package-initialize) +@end lisp In order to get support for many of the @LaTeX{} packages you will use in your documents, you should enable document parsing as well, which can @@ -186,10 +193,10 @@ @end table -If you want to change font attributes of existing text, mark it as a -region, and then invoke the commands. If no region is selected, the -command will be inserted with empty braces, and you can start typing the -changed text. +If you want to change font attributes of existing text, mark it as an +active region, and then invoke the commands. If no region is selected, +the command will be inserted with empty braces, and you can start typing +the changed text. Most of those commands will also work in math mode, but then macros like @code{\mathbf} will be inserted. @@ -228,6 +235,12 @@ suggest to run a viewer, or you can chose to create a PostScript file using @command{dvips}, or to directly print it. +Actually, there is another command which comes in handy to compile +documents: type @kbd{C-c C-a} (@code{TeX-command-run-all}) and @AUCTeX{} +will compile the document for you until it is ready and then run the +viewer. This is the same as issuing repeatedly @kbd{C-c C-c} and +letting @AUCTeX{} guess the next command to run. + At this place, a warning needs to be given: First, although @AUCTeX{} is really good in detecting the standard situations when an additional @command{latex} run is necessary, it cannot detect it always. Second, @@ -262,6 +275,14 @@ @end table +There is also another possibility: compile the document with +@command{tex} (or @command{latex}) and then convert the resulting +@acronym{DVI} file to @acronym{PDF} using +@command{dvips}--@command{ps2pdf} sequence. If you want to go by this +route, when @code{TeX-PDF-via-dvips-ps2pdf} variable is non-nil, +@AUCTeX{} will suggest you to run the appropriate command when you type +@kbd{C-C C-c}. For details, see @ref{Processor Options}. + @subsection Debugging @LaTeX{} When @AUCTeX{} runs a program, it creates an output buffer in which it @@ -278,6 +299,10 @@ @AUCTeX{} should notify you of overfull and underfull boxes in addition to regular errors. +If you have a recent version of GNU Emacs (24 or later), issue @kbd{M-x +TeX-error-overview RET} to see a nicely formatted list of all errors and +warnings reported by the compiler. + If a command got stuck in a seemingly infinite loop, or you want to stop execution for other reasons, you can use @kbd{C-c C-k} (for ``kill''). Similar to @kbd{C-l}, which centers the buffer you are in around your diff -Nru auctex-11.88/doc/tex-ref.log auctex-11.90/doc/tex-ref.log --- auctex-11.88/doc/tex-ref.log 2014-10-29 19:21:41.000000000 +0000 +++ auctex-11.90/doc/tex-ref.log 2017-01-10 21:36:05.000000000 +0000 @@ -1,4 +1,4 @@ -This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=pdftex 2014.10.11) 29 OCT 2014 20:21 +This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdftex 2016.12.21) 10 JAN 2017 22:36 entering extended mode restricted \write18 enabled. %&-line parsing enabled. @@ -13,7 +13,7 @@ \metaxbox=\box18 \metaxwidth=\dimen18 -Underfull \vbox (badness 10000) detected at line 398 +Underfull \vbox (badness 10000) detected at line 399 \vbox(161.80061+2.0)x104.068 .\hbox(6.80002+2.0)x104.068, glue set 17.8531fil @@ -66,7 +66,7 @@ .etc. -Underfull \vbox (badness 10000) detected at line 439 +Underfull \vbox (badness 10000) detected at line 440 \vbox(181.00069+2.0)x104.068 .\hbox(6.80002+2.0)x104.068, glue set 7.22795fil @@ -124,19 +124,19 @@ ..\glue(\tabskip) 0.0 plus 1.0fil .etc. -[1{/opt/texlive/2014/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] [2] ) -Output written on tex-ref.pdf (2 pages, 153569 bytes). +[1{/opt/texlive/2016/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] [2] ) +Output written on tex-ref.pdf (2 pages, 153748 bytes). PDF statistics: 59 PDF objects out of 1000 (max. 8388607) 42 compressed objects within 1 object stream Binary files /tmp/tmp44GUck/tPtMIMEfqj/auctex-11.88/doc/tex-ref.pdf and /tmp/tmp44GUck/9dtUCT_tIh/auctex-11.90/doc/tex-ref.pdf differ diff -Nru auctex-11.88/doc/tex-ref.tex auctex-11.90/doc/tex-ref.tex --- auctex-11.88/doc/tex-ref.tex 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/doc/tex-ref.tex 2017-01-10 21:35:28.000000000 +0000 @@ -1,4 +1,4 @@ -% Reference Card for AUCTeX version 11.88 +% Reference Card for AUCTeX version 11.90 %**start of header \newcount\columnsperpage @@ -29,7 +29,7 @@ % compile-command: "tex tex-ref" or "pdftex tex-ref" % % 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 % @@ -42,9 +42,9 @@ % Paul Rubin, Bob Chassell, Len Tower, and Richard Mlynarik % for creating the GNU Emacs Reference Card from which this was mutated -\def\versionnumber{11.88} -\def\year{2014} -\def\version{October \year\ v\versionnumber} +\def\versionnumber{11.90} +\def\year{2017} +\def\version{January \year\ v\versionnumber} \def\shortcopyrightnotice{\vskip 1ex plus 2 fill \centerline{\small \copyright\ \year\ Free Software Foundation, Inc. @@ -52,8 +52,8 @@ \def\copyrightnotice{% \vskip 1ex plus 2 fill\begingroup\small -\centerline{Copyright \copyright\ 1987, 1992, 1993, 2004, 2005, 2008,} -\centerline{2010, 2012, 2014 Free Software Foundation, Inc.} +\centerline{Copyright \copyright\ 1987, 1992-1994, 2004-2006, 2008, 2010,} +\centerline{2012, 2014, 2015 Free Software Foundation, Inc.} \centerline{for AUC\TeX\ version \versionnumber} Permission is granted to make and distribute copies of @@ -73,7 +73,7 @@ \edef\ncolumns{\the\columnsperpage} -\message{[\ncolumns\space +\message{[\ncolumns\space column\if 1\ncolumns\else s\fi\space per page]} \def\scaledmag#1{ scaled \magstep #1} @@ -155,7 +155,7 @@ \def\bye{\par\vfill\supereject \if a\abc \else\null\vfill\eject\fi \if a\abc \else\null\vfill\eject\fi - \end} + \end} \fi % we won't be using math mode much, so redefine some of the characters @@ -245,6 +245,7 @@ \key{Toggle debug of bad boxes}{C-c C-t C-b} \key{Toggle debug of warnings}{C-c C-t C-w} \key{View output file}{C-c C-v} +\key{Compile all and view output file}{C-c C-a} Commands you can run on the master file (with \kbd{C-c C-c}) or the region (with \kbd{C-c C-r}) include the following (starred versions @@ -302,7 +303,7 @@ \key{Complete \TeX\ macro}{M-TAB} \key{Smart ``quote''}{"} \key{Smart ``dollar''}{\$} - + \section{Font Selection} \key{Insert {\bf bold\/} text}{C-c C-f C-b} @@ -674,7 +675,7 @@ \bye -%%% Local Variables: +%%% Local Variables: %%% mode: plain-TeX %%% TeX-master: t -%%% End: +%%% End: diff -Nru auctex-11.88/doc/todo.texi auctex-11.90/doc/todo.texi --- auctex-11.88/doc/todo.texi 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/doc/todo.texi 2017-01-10 21:35:28.000000000 +0000 @@ -1,5 +1,5 @@ @c This is part of the AUCTeX Manual. -@c Copyright (C) 2004-2006, 2008, 2009, 2013, 2014 Free Software +@c Copyright (C) 2004-2006, 2008, 2009, 2013-2015 Free Software @c Foundation, Inc. @c See the file auctex.texi for copying conditions. @ifset rawfile @@ -76,10 +76,6 @@ tries to insert a macro for which the respective package has not been requested yet. -@item Spell checking of macros - -A special ispell dictionary for macros could be nice to have. - @item Improvements to error reporting Fringe indicators for errors in the main text would be nice. @@ -138,9 +134,6 @@ based on the extension. @item -Suggest @samp{makeindex} when appropriate. - -@item Use index files (when available) to speed up @kbd{C-c C-m include @key{RET}}. @@ -190,17 +183,6 @@ @samp{}. @item -Make features. - -A new command @code{TeX-update} (@kbd{C-c C-u}) could be used to create -an up-to-date dvi file by repeatedly running Bib@TeX{}, MakeIndex and -(La)@TeX{}, until an error occurs or we are done. - -An alternative is to have an @samp{Update} command that ensures the -@samp{dvi} file is up to date. This could be called before printing and -previewing. - -@item 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. diff -Nru auctex-11.88/doc/version.texi auctex-11.90/doc/version.texi --- auctex-11.88/doc/version.texi 2014-10-29 19:21:37.000000000 +0000 +++ auctex-11.90/doc/version.texi 2017-01-10 21:36:03.000000000 +0000 @@ -1,2 +1,2 @@ -@set VERSION 11.88 -@set UPDATED 2014-10-29 +@set VERSION 11.90 +@set UPDATED 2017-01-10 diff -Nru auctex-11.88/doc/wininstall.texi auctex-11.90/doc/wininstall.texi --- auctex-11.88/doc/wininstall.texi 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/doc/wininstall.texi 2017-01-10 21:35:28.000000000 +0000 @@ -362,7 +362,7 @@ Adding support for an image format usually involves the installation of a library, e.g. from @uref{http://gnuwin32.sf.net/}. If you got your -Emacs from @uref{gnu.org} you might want to check its +Emacs from @uref{http://www.gnu.org} you might want to check its @uref{ftp://ftp.gnu.org/gnu/emacs/windows/README,README file} for details. diff -Nru auctex-11.88/FAQ auctex-11.90/FAQ --- auctex-11.88/FAQ 2014-10-29 19:21:37.000000000 +0000 +++ auctex-11.90/FAQ 2017-01-10 21:36:03.000000000 +0000 @@ -48,8 +48,8 @@ possibly made to work by updating the 'xemacs-base' package through the XEmacs package system. If you are looking for a recommendation, it would appear that the smoothest working platform - on all operating systems at the current point of time would be Emacs 22 - or higher. + on all operating systems at the current point of time would be + Emacs 22 or higher. Our success with XEmacs has been less than convincing. Code for core functionality like formatting and syntax highlighting tends to @@ -104,18 +104,20 @@ 8. Why does 'TeX-next-error' ('C-c `') fail? - When writing the log file, TeX puts information related to a file, - including error messages, between a pair of parentheses. AUCTeX - determines the file where the error happened by parsing the log - file and counting the parentheses. This can fail when there are - other, unbalanced parentheses present. - - As a workaround you can activate so-called file:line:error messages - for the log file. (Those are are easier to parse, but may lack - some details.) Either you do this in the configuration of your TeX - system (consult its manual to see where this is) or you add a - command line switch to the (la)tex call, e.g. by customizing - 'LaTeX-command-style' or 'TeX-command-list'. + If 'TeX-file-line-error' is set to nil (not the default), these + sort of failures might be related to the the fact that when writing + the log file, TeX puts information related to a file, including + error messages, between a pair of parentheses. In this scenario + AUCTeX determines the file where the error happened by parsing the + log file and counting the parentheses. This can fail when there + are other, unbalanced parentheses present. + + Activating so-called file:line:error messages for the log file + usually solves this issue, as these kind of messages are are easier + to parse; however, they may lack some details. Activation can be + done either in the configuration of your TeX system (consult its + manual to see where this is) or by simply keeping the variable + 'TeX-file-line-error' to the default value of non-nil. 9. What does AUC stand for? diff -Nru auctex-11.88/font-latex.el auctex-11.90/font-latex.el --- auctex-11.88/font-latex.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/font-latex.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,6 +1,6 @@ ;;; font-latex.el --- LaTeX fontification for Font Lock mode. -;; Copyright (C) 1996-2014 Free Software Foundation, Inc. +;; Copyright (C) 1996-2017 Free Software Foundation, Inc. ;; Authors: Peter S. Galbraith ;; Simon Marshall @@ -225,7 +225,7 @@ Emacs." ;; Possibly add some words about XEmacs here. :-( :type '(choice (number :tag "Scale factor") - (const color)) + (const color)) :initialize 'custom-initialize-default :set (lambda (symbol value) (set-default symbol value) @@ -308,7 +308,7 @@ ("defbibentryset" "{{") ("Cite" "[[{") ("parencite" "*[[{") ("Parencite" "[[{") ("footcite" "[[{") ("footcitetext" "[[{") ("textcite" "[[{") ("Textcite" "[[{") ("smartcite" "[[{") ("Smartcite" "[[{") ("supercite" "{") ("autocite" "*[[{") - ("Autocite" "*[[{") ("citeauthor" "[[{") ("Citeauthor" "[[{") ("citetitle" "*[[{") + ("Autocite" "*[[{") ("citeauthor" "*[[{") ("Citeauthor" "*[[{") ("citetitle" "*[[{") ("citeyear" "*[[{") ("citedate" "*[[{") ("citeurl" "[[{") ("parentext" "{") ("brackettext" "{") ("fullcite" "[[{") ("fullfootcite" "[[{") ("volcite" "[{[[") ("Volcite" "[{[[") ("pvolcite" "[{[[") ("Pvolcite" "[{[[") ("fvolcite" "[{[[") @@ -325,7 +325,7 @@ 'font-lock-constant-face 2 command) ("reference" (("nocite" "*{") ("cite" "*[[{") ("label" "{") ("pageref" "{") - ("vref" "{") ("eqref" "{") ("ref" "{") ("include" "{") + ("vref" "*{") ("eqref" "{") ("ref" "{") ("include" "{") ("input" "{") ("bibliography" "{") ("index" "{") ("glossary" "{") ("footnote" "[{") ("footnotemark" "[") ("footnotetext" "[{")) 'font-lock-constant-face 2 command) @@ -387,7 +387,7 @@ ("textual" (("item" "[") ("title" "{") ("author" "{") ("date" "{") ("thanks" "{") ("address" "{") ("caption" "[{") - ("textsuperscript" "{")) + ("textsuperscript" "{") ("textsubscript" "{")) 'font-lock-type-face 2 command) ("bold-command" (("textbf" "{") ("textsc" "{") ("textup" "{") ("boldsymbol" "{") @@ -506,22 +506,22 @@ (eval ,face) ,face) limit))))) - ((eq type 'declaration) - (eval `(defun ,(intern (concat prefix name)) (limit) - ,(concat "Fontify `" prefix name "' up to LIMIT. + ((eq type 'declaration) + (eval `(defun ,(intern (concat prefix name)) (limit) + ,(concat "Fontify `" prefix name "' up to LIMIT. Generated by `font-latex-make-match-defun'.") - (when ,(intern (concat prefix name)) - (font-latex-match-command-in-braces - ,(intern (concat prefix name)) limit))))) - ((eq type 'noarg) - (eval `(defun ,(intern (concat prefix name)) (limit) - ,(concat "Fontify `" prefix name "' up to LIMIT. + (when ,(intern (concat prefix name)) + (font-latex-match-command-in-braces + ,(intern (concat prefix name)) limit))))) + ((eq type 'noarg) + (eval `(defun ,(intern (concat prefix name)) (limit) + ,(concat "Fontify `" prefix name "' up to LIMIT. Generated by `font-latex-make-match-defun'.") - (when ,(intern (concat prefix name)) - (re-search-forward - ,(intern (concat prefix name)) limit t))))))) + (when ,(intern (concat prefix name)) + (re-search-forward + ,(intern (concat prefix name)) limit t))))))) (defun font-latex-keyword-matcher (prefix name face type) "Return a matcher and highlighter as required by `font-lock-keywords'. @@ -805,12 +805,12 @@ ;; Hack to remove the verbatim face from the \ in ;; \end{verbatim} and similar. The same hack is used in ;; tex-mode.el. - ("^[ \t]*\\(\\\\\\)end" + ("\\(\\\\\\)end" (1 (get-text-property (match-end 1) 'face) t)))) (add-to-list 'font-latex-keywords-1 item) (add-to-list 'font-latex-keywords-2 item)) (dolist (item - '((font-latex-match-math-env + `((font-latex-match-math-env (0 'font-latex-warning-face t t) (1 'font-latex-math-face append t)) (font-latex-match-math-envII @@ -818,7 +818,9 @@ (font-latex-match-simple-command (0 'font-latex-sedate-face append)) (font-latex-match-script - (1 (font-latex-script (match-beginning 0)) append)))) + (1 (font-latex-script (match-beginning 0)) append)) + (font-latex-match-script-chars + (1 (font-latex-script-char (match-beginning 1)) prepend)))) (add-to-list 'font-latex-keywords-2 item t))) (font-latex-make-user-keywords) @@ -840,8 +842,7 @@ (dolist (elt keywords) (add-to-list list elt)) (funcall (intern (format "font-latex-match-%s-make" class))) - (setq font-lock-set-defaults nil) - (font-lock-set-defaults))) + (font-latex-update-font-lock))) (defvar font-latex-keywords font-latex-keywords-1 "Default expressions to highlight in TeX mode.") @@ -851,12 +852,59 @@ (defcustom font-latex-fontify-script (not (featurep 'xemacs)) "If non-nil, fontify subscript and superscript strings. -This feature does not work in XEmacs." - :type 'boolean +This feature does not work in XEmacs. + +By default, super/subscripts are raised/lowered if this variable +is non-nil. This fontification only affects one level of +scripts, e.g., in x^{y^z}, the y and the z have the same size and +are equally raised over x. + +If this variable is set to the symbol `multi-level', then y is +raised above x, and z is raised above y. With many script +levels, the text might become too small to be readable, thus +there is the option `font-latex-fontify-script-max-level'. (The +factors for text shrinking are defined in the faces +`font-latex-superscript-face' and `font-latex-subscript-face' and +the raise/lower factor in `font-latex-script-display'.) + +If this variable is set to the symbol `invisible', then the +effect is essentially like `multi-level' but additionally the +script operators ^ and _ are not displayed." + :type '(choice (boolean :tag "Enabled") + (const :tag "Multiple levels" multi-level) + (const :tag "Hide ^ and _" invisible)) :group 'font-latex) -(put 'font-latex-fontify-script 'safe-local-variable 'TeX-booleanp) +(put 'font-latex-fontify-script 'safe-local-variable + (lambda (val) + (or (TeX-booleanp val) + (memq val '(multi-level invisible))))) + +(defcustom font-latex-fontify-script-max-level 3 + "Maximum scriptification level for which script faces are applied. +The faces `font-latex-superscript-face' and +`font-latex-subscript-face' define custom :height values < 1.0. +Therefore, scripts are displayed with a slightly smaller font +than normal math text. If `font-latex-fontify-script' is +`multi-level' or `invisible', the font size becomes too small to +be readable after a few levels. This option allows to specify +the maximum level after which the size of the script text won't +be shrunken anymore. + +For example, see this expression: + + \\( x^{y^{z^a_b}} \\) + +x has scriptification level 0, y has level 1, z has level 2, and +both a and b have scriptification level 3. + +If `font-latex-fontify-script-max-level' was 2, then z, a, and b +would have the same font size. If it was 3 or more, then a and b +were smaller than z just in the same way as z is smaller than y +and y is smaller than x." + :group 'font-latex + :type 'integer) -(defcustom font-latex-script-display '((raise -0.3) . (raise 0.3)) +(defcustom font-latex-script-display '((raise -0.5) . (raise 0.5)) "Display specification for subscript and superscript content. The car is used for subscript, the cdr is used for superscripts." :group 'font-latex @@ -918,10 +966,13 @@ ;; package). "\\(?:\\[[^\]\[]*\\(?:\\[[^\]\[]*\\][^\]\[]*\\)*\\]\\)?" ;; After the optional argument, there may also be - ;; another mandatory argument (e.g. with VerbatimOut or - ;; the minted envs). - "\\(?:{[^}]+}\\)?" - "\\(\n\\)") + ;; another mandatory argument(s) (e.g. with VerbatimOut or + ;; the minted envs or defined with `lstnewenvironment'). + "\\(?:{[^}]*}\\)*" + ;; Now match the final newline. The "." alternative + ;; catches the case where verbatim content is written + ;; immediately after the \begin{verbatim}. + "\\(\n\\|.\\)") (1 "|" t))) (add-to-list 'font-latex-syntactic-keywords ;; Using the newline character for the syntax @@ -931,7 +982,7 @@ ;; the starting backslash of \end. There is a hack ;; in `font-latex-make-user-keywords' to remove the ;; spurious fontification of the backslash. - `(,(concat "^[ \t]*\\(\\\\\\)end *{\\(?:" verb-envs "\\)}") + `(,(concat "\\(\\\\\\)end *{\\(?:" verb-envs "\\)}") (1 "|" t)))) (unless (= (length verb-macros-with-delims) 0) (add-to-list 'font-latex-syntactic-keywords @@ -1084,27 +1135,43 @@ '(:inherit fixed-pitch) '(:family "courier")))) `((((class grayscale) (background light)) - (:foreground "DimGray" ,@font)) - (((class grayscale) (background dark)) - (:foreground "LightGray" ,@font)) - (((class color) (background light)) - (:foreground "SaddleBrown" ,@font)) - (((class color) (background dark)) - (:foreground "burlywood" ,@font)) - (t (,@font)))) + (:foreground "DimGray" ,@font)) + (((class grayscale) (background dark)) + (:foreground "LightGray" ,@font)) + (((class color) (background light)) + (:foreground "SaddleBrown" ,@font)) + (((class color) (background dark)) + (:foreground "burlywood" ,@font)) + (t (,@font)))) "Face used to highlight TeX verbatim environments." :group 'font-latex-highlighting-faces) (defface font-latex-superscript-face - '((t (:height 0.8))) + '((t (:height 0.85))) "Face used for superscripts." :group 'font-latex-highlighting-faces) (defface font-latex-subscript-face - '((t (:height 0.8))) + '((t (:height 0.85))) "Face used for subscripts." :group 'font-latex-highlighting-faces) +(defface font-latex-script-char-face + (let ((font (cond ((assq :inherit custom-face-attributes) + '(:inherit underline)) + (t '(:underline t))))) + `((((class grayscale) (background light)) + (:foreground "DarkGray" ,@font)) + (((class grayscale) (background dark)) + (:foreground "gray" ,@font)) + (((class color) (background light)) + (:foreground "salmon")) + (((class color) (background dark)) + (:foreground "DarkRed")) + (t (,@font)))) + "Face used for the script chars ^ and _." + :group 'font-latex-highlighting-faces) + (defface font-latex-slide-title-face (let* ((scale 1.2) (size (when (featurep 'xemacs) @@ -1197,8 +1264,8 @@ ;; `VirTeX-common-initialization' and place it in the different ;; `xxx-mode' calls instead, but _after_ `major-mode' is set. (let ((defaults - `((font-latex-keywords font-latex-keywords-1 font-latex-keywords-2) - nil nil ,font-latex-syntax-alist nil)) + `((font-latex-keywords font-latex-keywords-1 font-latex-keywords-2) + nil nil ,font-latex-syntax-alist nil)) (variables '((font-lock-comment-start-regexp . "%") (font-lock-mark-block-function . mark-paragraph) @@ -1235,25 +1302,48 @@ (set (make-local-variable 'lookup-syntax-properties) t)) (setq defaults (append defaults variables))) ;; Set the defaults. - (setq font-lock-defaults defaults))) + (setq font-lock-defaults defaults)) + + ;; Make sure fontification will be refreshed if a user sets variables + ;; influencing fontification in her file-local variables section. + (add-hook 'hack-local-variables-hook #'font-latex-after-hacking-local-variables t t)) + +(defun font-latex-update-font-lock (&optional syntactic-kws) + "Tell font-lock about updates of fontification rules. +If SYNTACTIC-KWS is non-nil, also update +`font-latex-syntactic-keywords'." + ;; Update syntactic keywords. + (when syntactic-kws + (font-latex-set-syntactic-keywords)) + + ;; Let font-lock recompute its fontification rules. + (setq font-lock-set-defaults nil) + (font-lock-set-defaults) + + ;; Re-initialize prettification if needed. + (when (and (boundp 'prettify-symbols-mode) + (boundp 'prettify-symbols--keywords) + prettify-symbols-mode + prettify-symbols--keywords) + (font-lock-add-keywords nil prettify-symbols--keywords))) (defun font-latex-jit-lock-force-redisplay (buf start end) "Compatibility for Emacsen not offering `jit-lock-force-redisplay'." - ;; The following block is an expansion of `jit-lock-force-redisplay' - ;; and involved macros taken from CVS Emacs on 2007-04-28. - (with-current-buffer buf - (let ((modified (buffer-modified-p))) - (unwind-protect - (let ((buffer-undo-list t) - (inhibit-read-only t) - (inhibit-point-motion-hooks t) - (inhibit-modification-hooks t) - deactivate-mark - buffer-file-name - buffer-file-truename) - (put-text-property start end 'fontified t)) - (unless modified - (restore-buffer-modified-p nil)))))) + ;; The following block is an expansion of `jit-lock-force-redisplay' + ;; and involved macros taken from CVS Emacs on 2007-04-28. + (with-current-buffer buf + (let ((modified (buffer-modified-p))) + (unwind-protect + (let ((buffer-undo-list t) + (inhibit-read-only t) + (inhibit-point-motion-hooks t) + (inhibit-modification-hooks t) + deactivate-mark + buffer-file-name + buffer-file-truename) + (put-text-property start end 'fontified t)) + (unless modified + (restore-buffer-modified-p nil)))))) (defun font-latex-fontify-region (beg end &optional loudly) "Fontify region from BEG to END. @@ -1283,16 +1373,16 @@ ;; property is only added if `font-lock-multiline' is bound.) (unless (boundp 'font-lock-multiline) (remove-text-properties beg end '(font-latex-multiline))) - (while (< beg end) - (let ((next (next-single-property-change beg 'display nil end)) - (prop (get-text-property beg 'display))) - (if (and (eq (car-safe prop) 'raise) - (member (car-safe (cdr prop)) - (list (nth 1 (car font-latex-script-display)) - (nth 1 (cdr font-latex-script-display)))) - (null (cddr prop))) - (put-text-property beg next 'display nil)) - (setq beg next)))) + (remove-text-properties beg end '(script-level)) + (let ((start beg)) + (while (< beg end) + (let ((next (next-single-property-change beg 'display nil end)) + (prop (get-text-property beg 'display))) + (if (and (eq (car-safe prop) 'raise) + (null (cddr prop))) + (put-text-property beg next 'display nil)) + (setq beg next))) + (remove-text-properties start end '(invisible)))) (defadvice font-lock-after-change-function (before font-latex-after-change activate) @@ -1318,6 +1408,22 @@ (when (numberp ad-end) (ad-set-arg 1 ad-end))))))) +(defun font-latex-after-hacking-local-variables () + "Refresh fontification if required by updates of file-local variables. +This function is added to `hack-local-variables-hook' and +recomputes fontification if variables affecting fontification are +modified. Such variables include +`LaTeX-verbatim-environments-local', +`LaTeX-verbatim-macros-with-braces-local', +`LaTeX-verbatim-macros-with-delims-local'." + ;; Note to self: directory-local variables are also added to + ;; file-local-variables-alist. + (let ((hacked-local-vars (mapcar #'car file-local-variables-alist))) + (when (or (memq 'LaTeX-verbatim-environments-local hacked-local-vars) + (memq 'LaTeX-verbatim-macros-with-braces-local hacked-local-vars) + (memq 'LaTeX-verbatim-macros-with-delims-local hacked-local-vars)) + ;; Ok, we need to refresh fontification. + (font-latex-update-font-lock t)))) ;;; Utility functions @@ -1328,7 +1434,7 @@ ignored during the search." (let ((parse-sexp-ignore-comments (not (eq major-mode 'doctex-mode))) ; scan-sexps ignores comments - (init-point (point)) + (init-point (point)) (mycount 1) (esc-char (or (and (boundp 'TeX-esc) TeX-esc) "\\")) ;; XXX: Do not look up syntax-table properties since they may @@ -1494,7 +1600,7 @@ (list (point) (progn (forward-char) - (if (zerop (skip-chars-forward "A-Za-z@")) + (if (zerop (skip-syntax-forward "_w")) (forward-char) ; Single-char macro. (skip-chars-forward "*")) (point)))) @@ -1634,7 +1740,8 @@ (defun font-latex-match-simple-command (limit) "Search for command like \\foo before LIMIT." - (TeX-re-search-forward-unescaped "\\\\[@A-Za-z]+" limit t)) + ;; \s_ matches chars with symbol syntax, \sw chars with word syntax + (TeX-re-search-forward-unescaped "\\\\\\(?:\\s_\\|\\sw\\)+" limit t)) (defun font-latex-match-math-env (limit) "Match math pattern up to LIMIT. @@ -1687,7 +1794,7 @@ nil))) (defcustom font-latex-math-environments - '("display" "displaymath" "equation" "eqnarray" "gather" "multline" + '("display" "displaymath" "equation" "eqnarray" "gather" "math" "multline" "align" "alignat" "xalignat" "xxalignat" "flalign") "List of math environment names for font locking." :type '(repeat string) @@ -1713,9 +1820,9 @@ ;; XXX: Should this rather be done by ;; extending the region to be fontified? (+ limit font-latex-multiline-boundary) 'move) - (setq end (match-beginning 0)) + (setq end (match-beginning 0)) (goto-char beg) - (setq end beg)) + (setq end beg)) (font-latex-put-multiline-property-maybe beg end) (store-match-data (list beg end)) t))) @@ -1851,11 +1958,12 @@ (when (and font-latex-fontify-script (re-search-forward "[_^] *\\([^\n\\{}]\\|\ \\\\\\([a-zA-Z@]+\\|[^ \t\n]\\)\\|\\({\\)\\)" limit t)) - (if (font-latex-faces-present-p '(font-latex-subscript-face - font-latex-superscript-face)) - ;; Apply subscript and superscript highlighting only once in - ;; order to prevent the font size becoming too small. We set - ;; an empty match to do that. + (if (and (not (memq font-latex-fontify-script '(multi-level invisible))) + (font-latex-faces-present-p '(font-latex-subscript-face + font-latex-superscript-face))) + ;; Apply subscript and superscript highlighting only once (in case + ;; font-latex-fontify-script is not 'multi-level) in order to prevent + ;; the font size becoming too small. We set an empty match to do that. (let ((point (point))) (store-match-data (list point point point point))) (when (match-end 3) @@ -1870,6 +1978,50 @@ (list beg beg beg beg)))))) t)) +(defun font-latex-match-script-chars (limit) + "Match subscript and superscript chars up to LIMIT." + (and (re-search-forward "[^_^]\\([_^]\\)" limit t) + (let ((pos (match-beginning 1))) + (and (font-latex-faces-present-p 'font-latex-math-face pos) + (not (font-latex-faces-present-p '(font-lock-constant-face + font-lock-builtin-face + font-lock-comment-face + font-latex-verbatim-face) pos)) + ;; Check for backslash quoting + (not (let ((odd nil) + (pos pos)) + (while (eq (char-before pos) ?\\) + (setq pos (1- pos) odd (not odd))) + odd)))))) + +(defun font-latex--get-script-props (pos script-type) + (let* ((old-raise (or (plist-get (get-text-property pos 'display) 'raise) 0.0)) + (new-level (1+ (or (get-text-property pos 'script-level) 0))) + (disp-props (copy-sequence (case script-type + (:super (cdr font-latex-script-display)) + (:sub (car font-latex-script-display))))) + (new-disp-props (let ((raise (plist-get disp-props 'raise)) + (nl new-level)) + (if raise + ;; This polynom approximates that the factor + ;; which is multiplied with raise is 1 for nl=1, + ;; 0.8 for nl=2, 0.64 for nl=3, etc. (so always + ;; about 80% of the previous value). + (plist-put disp-props 'raise + (+ old-raise + (* raise + (+ 1.1965254857142873 + (* nl -0.21841226666666758) + (* nl nl 0.012018514285714385))))) + disp-props)))) + `(face ,(if (<= new-level font-latex-fontify-script-max-level) + (case script-type + (:super 'font-latex-superscript-face) + (:sub 'font-latex-subscript-face)) + nil) + script-level ,new-level + display ,new-disp-props))) + ;; Copy and adaption of `tex-font-lock-suscript' from tex-mode.el in ;; GNU Emacs on 2004-07-07. (defun font-latex-script (pos) @@ -1894,14 +2046,19 @@ (let ((extra-props-flag (boundp 'font-lock-extra-managed-props))) (if (eq (char-after pos) ?_) (if extra-props-flag - `(face font-latex-subscript-face display - ,(car font-latex-script-display)) + (font-latex--get-script-props pos :sub) 'font-latex-subscript-face) (if extra-props-flag - `(face font-latex-superscript-face display - ,(cdr font-latex-script-display)) + (font-latex--get-script-props pos :super) 'font-latex-superscript-face))))) +(defun font-latex-script-char (pos) + "Return face and display spec for subscript and superscript character at POS." + (if (boundp 'font-lock-extra-managed-props) + `(face font-latex-script-char-face + ,@(when (eq font-latex-fontify-script 'invisible) + '(invisible t))) + 'font-latex-script-char-face)) ;;; docTeX @@ -1912,7 +2069,7 @@ (defface font-latex-doctex-preprocessor-face '((t (:inherit (font-latex-doctex-documentation-face font-lock-builtin-face ; Emacs 21 does not provide - ; the preprocessor face. + ; the preprocessor face. font-lock-preprocessor-face)))) "Face used to highlight preprocessor directives in docTeX mode." :group 'font-latex-highlighting-faces) @@ -1981,12 +2138,10 @@ ;;; Installation in non-AUCTeX LaTeX mode -(add-hook 'latex-mode-hook 'font-latex-setup) -;; If font-latex is loaded using a latex-mode-hook, then the add-hook above -;; won't be called this time around. Check for this now: -(if (eq major-mode 'latex-mode) - (font-latex-setup)) - +;; Here used to be some code which tried to magically make things work and +;; thereby broke other stuff. If you want to use font-latex with stock +;; latex-mode, then please just add `font-latex-setup' to `latex-mode-hook' +;; yourself. ;;; Byte-compilation of generated functions diff -Nru auctex-11.88/images/prverr16.xpm auctex-11.90/images/prverr16.xpm --- auctex-11.88/images/prverr16.xpm 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/images/prverr16.xpm 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,31 @@ +/* XPM */ +static char *noway16[] = { +/* columns rows colors chars-per-pixel */ +"16 16 9 1", +" c red", +". c #FD0D0D", +"X c #FA1C1C", +"o c #F52D2D", +"O c #FB5B5B", +"+ c #FC6060", +"@ c #FFBBBB", +"# c #FEFEFE", +"$ c None", +/* pixels */ +"$$$$$ XXXX $$$$$", +"$$$X. .X$$$", +"$$o o$$", +"$X. .X$", +"$. .$", +" ", +"O@@@@@@@@@@@@@@O", +"+##############+", +"+##############+", +"O@@@@@@@@@@@@@@O", +" ", +"$. .$", +"$X. .X$", +"$$o o$$", +"$$$X. .X$$$", +"$$$$$ XXXX $$$$$" +}; diff -Nru auctex-11.88/images/prverr20.xpm auctex-11.90/images/prverr20.xpm --- auctex-11.88/images/prverr20.xpm 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/images/prverr20.xpm 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,35 @@ +/* XPM */ +static char *noway20[] = { +/* columns rows colors chars-per-pixel */ +"20 20 9 1", +" c red", +". c #FF0404", +"X c #FD0F0F", +"o c #F91919", +"O c #F82828", +"+ c #F33636", +"@ c #ED4A4A", +"# c #FEFEFE", +"$ c None", +/* pixels */ +"$$$$$$@+OXXO+@$$$$$$", +"$$$$OO. .OO$$$$", +"$$$@. .@$$$", +"$$@. .@$$", +"$O. .O$", +"$o o$", +"@. .@", +"+ +", +"o##################o", +"o##################o", +"o##################o", +"o##################o", +"+ +", +"@. .@", +"$o o$", +"$O. .O$", +"$$@. .@$$", +"$$$@. .@$$$", +"$$$$OO. .OO$$$$", +"$$$$$$@+OXXO+@$$$$$$" +}; diff -Nru auctex-11.88/images/prverr24.xbm auctex-11.90/images/prverr24.xbm --- auctex-11.88/images/prverr24.xbm 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/images/prverr24.xbm 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,9 @@ +#define wutz_width 24 +#define wutz_height 24 +static unsigned char wutz_bits[] = { + 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0xc0, 0xff, 0x03, 0xf0, 0xff, 0x0f, + 0xf8, 0xff, 0x1f, 0xf8, 0xff, 0x1f, 0xfc, 0xff, 0x3f, 0xfc, 0xff, 0x3f, + 0xfe, 0xff, 0x7f, 0x02, 0x00, 0x40, 0x01, 0x00, 0x80, 0x01, 0x00, 0x80, + 0x01, 0x00, 0x80, 0x01, 0x00, 0x80, 0x02, 0x00, 0x40, 0xfe, 0xff, 0x7f, + 0xfc, 0xff, 0x3f, 0xfc, 0xff, 0x3f, 0xf8, 0xff, 0x1f, 0xf8, 0xff, 0x1f, + 0xf0, 0xff, 0x0f, 0xc0, 0xff, 0x03, 0x00, 0xff, 0x00, 0x00, 0x00, 0x00 }; diff -Nru auctex-11.88/images/prverr24.xpm auctex-11.90/images/prverr24.xpm --- auctex-11.88/images/prverr24.xpm 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/images/prverr24.xpm 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,39 @@ +/* XPM */ +static char *noway24[] = { +/* columns rows colors chars-per-pixel */ +"24 24 9 1", +" c red", +". c #FF0404", +"X c #FD0C0C", +"o c #F91919", +"O c #F62929", +"+ c #F34C4C", +"@ c #FF9090", +"# c #FEFEFE", +"$ c None", +/* pixels */ +"$$$$$$$$+OOXXOO+$$$$$$$$", +"$$$$$$OX XO$$$$$$", +"$$$$+X X+$$$$", +"$$$+ +$$$", +"$$+ +$$", +"$$X X$$", +"$O O$", +"$X X$", +"+ +", +"O+@@@@@@@@@@@@@@@@@@@@+O", +"o######################o", +"X######################X", +"X######################X", +"o######################o", +"O+@@@@@@@@@@@@@@@@@@@@+O", +"+ +", +"$X X$", +"$O O$", +"$$X X$$", +"$$+ +$$", +"$$$+ +$$$", +"$$$$+X X+$$$$", +"$$$$$$OX XO$$$$$$", +"$$$$$$$$+OOXXOO+$$$$$$$$" +}; diff -Nru auctex-11.88/images/prvtex12.xbm auctex-11.90/images/prvtex12.xbm --- auctex-11.88/images/prvtex12.xbm 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/images/prvtex12.xbm 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,6 @@ +/* Created with The GIMP */ +#define preview12_width 12 +#define preview12_height 12 +static unsigned char preview12_bits[] = { + 0xff, 0x0f, 0x41, 0x08, 0x21, 0x08, 0x6f, 0x0d, 0x35, 0x0a, 0x75, 0x0a, + 0x6b, 0x0b, 0x82, 0x0c, 0x7c, 0x08, 0xf0, 0x08, 0x00, 0x0f, 0x00, 0x00 }; diff -Nru auctex-11.88/images/prvtex12.xpm auctex-11.90/images/prvtex12.xpm --- auctex-11.88/images/prvtex12.xpm 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/images/prvtex12.xpm 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,32 @@ +/* XPM */ +static char * preview12_xpm[] = { +"12 12 17 1", +" c None", +". c #020202", +"+ c #1E1E1A", +"@ c #626256", +"# c #7D7D70", +"$ c #8A8A7A", +"% c #969686", +"& c #A6A692", +"* c #B2B29E", +"= c #46463E", +"- c #BEBEAA", +"; c #1A1A16", +"> c #CECEB2", +", c #363632", +"' c #6E6E62", +") c #0E0E0E", +"! c #52524A", +"............", +".>>>>$*>>>>.", +".>>>>&>>>>>.", +".'.,@+##&$%.", +".>)>'#>>&!>.", +".>=%#%%>@&>.", +"..,@>*>-@&>=", +" # #,>>#-%%.", +" . @,%>>>>.", +" . !;#>>>.", +" . . ,;.", +" . .. .."}; diff -Nru auctex-11.88/images/prvtex16.xbm auctex-11.90/images/prvtex16.xbm --- auctex-11.88/images/prvtex16.xbm 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/images/prvtex16.xbm 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,7 @@ +/* Created with The GIMP */ +#define preview16_width 16 +#define preview16_height 16 +static unsigned char preview16_bits[] = { + 0xff, 0xff, 0x01, 0x81, 0x81, 0x80, 0xbd, 0xad, 0x49, 0xa8, 0xc9, 0x91, + 0x49, 0x90, 0x9e, 0x99, 0x1c, 0xac, 0x7d, 0x84, 0xf1, 0x80, 0xf2, 0x87, + 0x22, 0xfa, 0x24, 0x52, 0x24, 0x5a, 0xc8, 0x94 }; diff -Nru auctex-11.88/images/prvtex16.xpm auctex-11.90/images/prvtex16.xpm --- auctex-11.88/images/prvtex16.xpm 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/images/prvtex16.xpm 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,36 @@ +/* XPM */ +static char * preview16_xpm[] = { +"16 16 17 1", +" c None", +". c #020202", +"+ c #1A1A16", +"@ c #636357", +"# c #6E6E62", +"$ c #828276", +"% c #8A8A7A", +"& c #969686", +"* c #A6A692", +"= c #B2B29E", +"- c #BABAA6", +"; c #363632", +"> c #BEBEAA", +", c #52524A", +"' c #CECEB2", +") c #46463E", +"! c #7A7A6E", +"................", +".''''''>@''''''.", +".''''''%>''''''.", +".'!..#*;,=#*'#=.", +".''.''!*>''&=@'.", +".''.''#@>''>)='.", +".'',,'#!@>'&@''.", +" .;@;''*>'')%''.", +" -$$;'''''%!>@=.", +". &$@;&'''*''>'.", +". @,+$'''''''.", +" . ...;;;+''''.", +" . . . .....", +" . . . . . ", +" . . . .. . ", +" . .. . . ."}; diff -Nru auctex-11.88/images/prvtex20.xpm auctex-11.90/images/prvtex20.xpm --- auctex-11.88/images/prvtex20.xpm 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/images/prvtex20.xpm 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,40 @@ +/* XPM */ +static char * preview20_xpm[] = { +"20 20 17 1", +" c None", +". c #000200", +"+ c #151614", +"@ c #20211F", +"# c #31312A", +"$ c #3D3C35", +"% c #474439", +"& c #504F48", +"* c #626054", +"= c #727063", +"- c #7E7E6F", +"; c #888A7A", +"> c #969987", +", c #A9A992", +"' c #B8B8A1", +") c #C6C5AA", +"! c #CFCDB1", +" .@@@@@@@@@@@@@@@@. ", +" %!!!!!!!''!!!!!!!% ", +" %!!!!!!)&>!!!!!!!% ", +" %!!!!!!>*'!!!!!!!% ", +" %!!!!!)&*')')!!''% ", +" @&@+#*&*=#;&*)'%-% ", +" %!,>!,=;,)!)=,-$'% ", +" %!,>!'=&-!!!'*#;!% ", +" %!,-),=>','!!$&)!% ", +" %!)$$'&&=%)!,+;!!% ", +" %!','!);;!!)%**!!% ", +" $;*$!!!!!!!;%'->)% ", +" *=$!!!!!!)*-!'*;% ", +" @>;*='!!!!),)!!''% ", +" . *&&,!!!!!!!!!!% ", +" ..+##@>,,,,,,,$ ", +" . . . ......... ", +" . . . ... . . ", +" . . . . ... . ", +" . . "}; diff -Nru auctex-11.88/images/prvtex24.xbm auctex-11.90/images/prvtex24.xbm --- auctex-11.88/images/prvtex24.xbm 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/images/prvtex24.xbm 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,10 @@ +/* Created with The GIMP */ +#define preview_width 24 +#define preview_height 24 +static unsigned char preview_bits[] = { + 0xfe, 0xff, 0x7f, 0x02, 0x00, 0x40, 0x02, 0x18, 0x40, 0x02, 0x0c, 0x40, + 0x02, 0x04, 0x40, 0x02, 0x00, 0x50, 0xfe, 0xde, 0x59, 0x32, 0x03, 0x49, + 0x32, 0x0f, 0x4f, 0x32, 0x07, 0x46, 0x32, 0x23, 0x46, 0x62, 0x1e, 0x47, + 0x02, 0x0c, 0x47, 0x02, 0x80, 0x4d, 0x32, 0x80, 0x48, 0x2c, 0xc0, 0x58, + 0x42, 0x00, 0x40, 0xc2, 0x01, 0x40, 0xe4, 0x0e, 0x40, 0x44, 0xf4, 0x7f, + 0x48, 0xa4, 0x24, 0x48, 0xb4, 0x24, 0x90, 0x29, 0x47, 0x10, 0x00, 0x40 }; diff -Nru auctex-11.88/images/prvtex24.xpm auctex-11.90/images/prvtex24.xpm --- auctex-11.88/images/prvtex24.xpm 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/images/prvtex24.xpm 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,37 @@ +/* XPM */ +static char * preview_xpm[] = { +"24 24 10 1", +" c None", +". c #000000", +"+ c #CECEB2", +"@ c #656559", +"# c #818174", +"$ c #B9B9A4", +"% c #969686", +"& c #181815", +"* c #363630", +"= c #53534B", +" ...................... ", +" .++++++++++++++++++++. ", +" .+++++++++@#+++++++++. ", +" .++++++++$.%+++++++++. ", +" .++++++++@#++++++++++. ", +" .+++++++$&@$+$$++++%+. ", +" .@....*#&@=.#@.%++@&+. ", +" .++%%++@#++$++$*+$.#+. ", +" .++%%++%=*#++++##=*++. ", +" .++%%++#@@%+++++*.%++. ", +" .++%@$+@#++%%+++&=+++. ", +" .+++&.+%.@=&+++#.#+++. ", +" .+++$$++$@#++++.@=+++. ", +" .+$**+++++++++@&+=$++. ", +" .*@*++++++++$.%+$*@+. ", +" $##*++++++++#*+++%*+. ", +" . %#@*%++++++++++++++. ", +" . @=&#+++++++++++++. ", +" . ...***&$$++++++++. ", +" . . . ........... ", +" . . . . . . . ", +" . . . .. . . . ", +" . .. . . ... . ", +" . . "}; diff -Nru auctex-11.88/images/prvtex-cap-up.xpm auctex-11.90/images/prvtex-cap-up.xpm --- auctex-11.88/images/prvtex-cap-up.xpm 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/images/prvtex-cap-up.xpm 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,48 @@ +/* XPM */ +static char * preview_cap_up_xpm[] = { +"33 33 12 1", +" c None", +". c #BFBFBF s backgroundToolBarColor", +"+ c #000000 s foregroundToolBarColor", +"! c #000000", +"@ c #FFFFFF", +"# c #7C7C7C", +"$ c #A0A0A0", +"% c #E5E5E5", +"& c #BABABA", +"* c #1D1D1D", +"= c #424242", +"- c #676767", +".................................", +".....!!!!!!!!!!!!!!!!!!!!!!......", +".....!@@@@@@@@@@@@@@@@@@@@!......", +".....!@@@@@@@@@#$@@@@@@@@@!......", +".....!@@@@@@@@%!&@@@@@@@@@!......", +".....!@@@@@@@@#$@@@@@@@@@@!......", +".....!@@@@@@@%*#%@%%@@@@&@!......", +".....!#!!!!=$*#-!$#!&@@#*@!......", +".....!@@&&@@#$@@%@@%=@%!$@!......", +".....!@@&&@@&-=$@@@@$$-=@@!......", +".....!@@&&@@$##&@@@@@=!&@@!......", +".....!@@&#%@#$@@&&@@@*-@@@!......", +".....!@@@*!@&!#-*@@@$!$@@@!......", +".....!@@@%%@@%#$@@@@!#-@@@!......", +".....!@%==@@@@@@@@@#*@-%@@!......", +"......!=#=@@@@@@@@%!&@%=#@!......", +"......%$$=@@@@@@@@$=@@@&=@!......", +".....#.&$#=&@@@@@@@@@@@@@@!......", +".....#...#-*$@@@@@@@@@@@@@!......", +"......#..###===*%%@@@@@@@@!......", +"......#...#...#.!!!!!!!!!!!......", +".......#..#...#..#.#..#..#.......", +".......#..#...#.##.#..#..#.......", +"........#..##..#.#..###...#......", +"........#.................#......", +"..+++............................", +"..+..+.+.+.+..+..+.+..+..+.+.+...", +"..+..+.++.+.+.+..+...+.+.+.+.+...", +"..+++..+..+++.+..+.+.+++.+.+.+...", +"..+....+..+...+.+..+.+....+.+....", +"..+....+...++..+...+..++..+.+....", +".................................", +"................................."}; diff -Nru auctex-11.88/images/prvwrk12.xpm auctex-11.90/images/prvwrk12.xpm --- auctex-11.88/images/prvwrk12.xpm 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/images/prvwrk12.xpm 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,32 @@ +/* XPM */ +static char * nwork12_xpm[] = { +"12 12 17 1", +" c None", +". c #0F110E", +"+ c #161815", +"@ c #1F211E", +"# c #383937", +"$ c #6A6C69", +"% c #818380", +"& c #E46767", +"* c #FF6467", +"= c #959794", +"- c #DC9897", +"; c #ADAFAC", +"> c #FF9797", +", c #C6C8C5", +"' c #FFCBCA", +") c #E4E6E3", +"! c #FBFDFA", +" >> ", +" '**' ", +" >>>> ", +" '*''*' ", +" >>!)>> ", +" '*,==,*' ", +" >>$@=!>> ", +" '*';#;!'*' ", +" >>!$$=!,-> ", +"'*'=)%!%.@&'", +">>!=!=;..+$>", +" ********** "}; diff -Nru auctex-11.88/images/prvwrk14.xpm auctex-11.90/images/prvwrk14.xpm --- auctex-11.88/images/prvwrk14.xpm 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/images/prvwrk14.xpm 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,34 @@ +/* XPM */ +static char * nwork14_xpm[] = { +"14 14 17 1", +" c None", +". c #000100", +"+ c #161816", +"@ c #222421", +"# c #2A2C29", +"$ c #363836", +"% c #525451", +"& c #686A67", +"* c #828481", +"= c #FF6467", +"- c #949693", +"; c #A4A6A3", +"> c #FF9797", +", c #B8BAB7", +"' c #D8D6D4", +") c #FFCBCA", +"! c #FAFDF9", +" >> ", +" )==) ", +" >>>> ", +" )=))=) ", +" >>!!>> ", +" )=)!!)=) ", +" >>''@!>> ", +" )=&%#!!)=) ", +" >>-@$!!!>> ", +" )=);%&!!!)=) ", +" >>!&&;,!&,>> ", +")=)*',,'@.+'=)", +">>!-!';$+++%>>", +" ============ "}; diff -Nru auctex-11.88/images/prvwrk16.xpm auctex-11.90/images/prvwrk16.xpm --- auctex-11.88/images/prvwrk16.xpm 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/images/prvwrk16.xpm 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,36 @@ +/* XPM */ +static char * nwork16_xpm[] = { +"16 16 17 1", +" c None", +". c #040703", +"+ c #0E100D", +"@ c #262825", +"# c #434542", +"$ c #4C4E4B", +"% c #5B5D5A", +"& c #70726F", +"* c #868885", +"= c #D86467", +"- c #FF6467", +"; c #A69F9F", +"> c #FF9797", +", c #B6B8B5", +"' c #C7C9C6", +") c #D5D7D4", +"! c #FAFCF9", +" >> ", +" -- ", +" >--> ", +" ->>- ", +" >-!!-> ", +" ->!!>- ", +" >-!!&*-> ", +" -;#@;)>- ", +" >-#&.;!!-> ", +" ->!+@,!!>- ", +" >-!&@%;!!!-> ", +" ->)#,%,,&.;- ", +" >-!%'!#!$..+=> ", +" ->!&!!&&..++#- ", +">->>>>>>>>>>>>->", +" >>>>>>>>>>>>>> "}; diff -Nru auctex-11.88/images/prvwrk20.xpm auctex-11.90/images/prvwrk20.xpm --- auctex-11.88/images/prvwrk20.xpm 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/images/prvwrk20.xpm 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,40 @@ +/* XPM */ +static char * nwork20_xpm[] = { +"20 20 17 1", +" c None", +". c #000100", +"+ c #262825", +"@ c #2B2D2A", +"# c #444643", +"$ c #575956", +"% c #726D6B", +"& c #D16668", +"* c #FF6467", +"= c #979794", +"- c #E4999A", +"; c #B1B3B0", +"> c #FF9797", +", c #C9CBC8", +"' c #D3D5D2", +") c #E5E7E3", +"! c #FDFFFB", +" ** ", +" >**> ", +" **** ", +" >****> ", +" **>>** ", +" >**!!**> ", +" **>!!>** ", +" >**!!)!**> ", +" **>!'.)>** ", +" >*%$$;,!!**> ", +" *&=;.=!!!>** ", +" >*&;@@=!!!!**> ", +" **>,$=;!!!!>** ", +" >**)#%;=!!!!!**> ", +" **>=,;=';!,#;>** ", +" >**)%!)%!!=+..,**> ", +" **>='!)%!;....@-** ", +">**!;!!!='#####$=**>", +"********************", +"********************"}; diff -Nru auctex-11.88/images/prvwrk24.xbm auctex-11.90/images/prvwrk24.xbm --- auctex-11.88/images/prvwrk24.xbm 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/images/prvwrk24.xbm 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,12 @@ +/* ©2002 David Kastrup, GPL */ +#define prevwork_width 24 +#define prevwork_height 24 +#define prevwork_x_hot 0 +#define prevwork_y_hot 20 +static unsigned char prevwork_bits[] = { + 0x00, 0x3c, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x7e, 0x00, + 0x00, 0xe7, 0x00, 0x00, 0xe7, 0x00, 0x80, 0xc3, 0x01, 0x80, 0xc3, 0x01, + 0xc0, 0x81, 0x03, 0xc0, 0x81, 0x03, 0xe0, 0x30, 0x07, 0xe0, 0x3f, 0x07, + 0x70, 0x0d, 0x0e, 0x70, 0x0d, 0x0e, 0x38, 0x0e, 0x1c, 0x38, 0x0f, 0x1c, + 0x1c, 0x1f, 0x38, 0x9c, 0xa5, 0x3b, 0x8e, 0xc4, 0x77, 0xce, 0xe4, 0x7f, + 0x47, 0xec, 0xef, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; diff -Nru auctex-11.88/images/prvwrk24.xpm auctex-11.90/images/prvwrk24.xpm --- auctex-11.88/images/prvwrk24.xpm 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/images/prvwrk24.xpm 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,44 @@ +/* XPM */ +static char * nwork24_xpm[] = { +"24 24 17 1", +" c None", +". c #000100", +"+ c #141513", +"@ c #212320", +"# c #313230", +"$ c #3B3D3A", +"% c #484947", +"& c #626461", +"* c #8C8E8B", +"= c #FF6467", +"- c #B6AFAC", +"; c #FF9696", +"> c #C4C6C3", +", c #D0D2CE", +"' c #FFCBCA", +") c #DDDFDC", +"! c #FBFDFA", +" ;; ", +" ;==; ", +" ==== ", +" ;====; ", +" ==;;== ", +" ;==''==; ", +" ==;!!;== ", +" ;=='!!'==; ", +" ==;!!!!;== ", +" ;=='!!>,'==; ", +" ==;!!!.%!;== ", +" ;=;$#$*,)!'==; ", +" ==&,*..!!!!;== ", +" ;==#,@.$!!!!'==; ", +" ==;!&.&&!!!!!;== ", +" ;==')*&*&!!!!!'==; ", +" ==;!*#&>&!!!!!!;== ", +" ;==')$)&->-!!)&*'==; ", +" ==;!&-!,&!!-,%..*;== ", +" ;==',%!!)$!!>#....-==; ", +" ==;!&>!!)@!>+.....+;== ", +";=='!-!!!!*!&%%%%%&&*==;", +"========================", +" ====================== "}; diff -Nru auctex-11.88/INSTALL auctex-11.90/INSTALL --- auctex-11.88/INSTALL 2014-10-29 19:21:36.000000000 +0000 +++ auctex-11.90/INSTALL 2017-01-10 21:36:02.000000000 +0000 @@ -1,11 +1,14 @@ Installing AUCTeX ***************** -The simplest way of installing AUCTeX is by using the Emacs package -manager integrated in Emacs 24 and greater (ELPA). Simply do 'M-x -package-list-packages RET', mark the auctex package for installation -with 'i', and hit 'x' to execute the installation procedure. That's -all. +The modern and strongly recommended way of installing AUCTeX is by using +the Emacs package manager integrated in Emacs 24 and greater (ELPA). +Simply do 'M-x list-packages RET', mark the auctex package for +installation with 'i', and hit 'x' to execute the installation +procedure. That's all. This installation procedure has several +advantages. Besides being platform and OS independent, you will receive +intermediate releases between major AUCTeX releases conveniently. For +past ELPA releases, see . The remainder of this section is about installing AUCTeX from a release tarball or from a checkout of the AUCTeX repository. @@ -18,8 +21,8 @@ modes the default instead of the built-in modes of Emacs. If this is not the case, consult *note Loading the package::. Please read through this document fully before installing anything. The installation -procedure has changed as compared to earlier versions. Users of MS Windows -are asked to consult the file 'INSTALL.windows'. +procedure has changed as compared to earlier versions. Users of +MS Windows are asked to consult the file 'INSTALL.windows'. 1 Prerequisites *************** @@ -203,8 +206,8 @@ goes. It is to be used when you are using '--with-tex-dir=/DIR', but is normally not necessary otherwise. -3 Build/install -*************** +3 Build/install and uninstall +***************************** Once 'configure' has been run, simply enter @@ -216,8 +219,16 @@ make install - You may need special privileges to install, e.g., if you are -installing into system directories. +You may need special privileges to install, e.g., if you are installing +into system directories. + + Should you want to completely remove the installed package, in the +same directory you built AUCTeX run + + make uninstall + +You will need administration privileges if you installed the package +into system directories. 4 Loading the package ********************* @@ -384,7 +395,7 @@ Here is how to do the various parts: Making the Elisp available --------------------------- +========================== In GNU Emacs, it should be sufficient if people just do @@ -401,7 +412,7 @@ symlinking for them.) Making the Info files available -------------------------------- +=============================== For making the info files accessible from within Elisp, something like the following might be convenient to add into your or other people's @@ -417,7 +428,7 @@ normally in '~/.xemacs/xemacs-packages/info'.) Making the LaTeX style available --------------------------------- +================================ If you want others to be able to share your installation, you should configure it using '--without-texmf-dir', in which case things should @@ -453,3 +464,4 @@ Automatic configuration will already have set the variable for you if it could use the program 'kpsewhich'. In this case you normally don't have to alter anything. + diff -Nru auctex-11.88/INSTALL.windows auctex-11.90/INSTALL.windows --- auctex-11.88/INSTALL.windows 2014-10-29 19:21:36.000000000 +0000 +++ auctex-11.90/INSTALL.windows 2017-01-10 21:36:03.000000000 +0000 @@ -130,7 +130,7 @@ save headaches, _if_ things don't work out. 3. Install a current version of XEmacs from - or Emacs from . Emacs is the + or Emacs from . Emacs is the recommended choice because it is currently the primary platform for AUCTeX development. @@ -299,9 +299,9 @@ Adding support for an image format usually involves the installation of a library, e.g. from . - If you got your Emacs from you might want to check its - README file (ftp://ftp.gnu.org/gnu/emacs/windows/README) for - details. + If you got your Emacs from you might want to + check its README file (ftp://ftp.gnu.org/gnu/emacs/windows/README) + for details. A different image format can be chosen by setting the variable 'preview-image-type'. While it is recommended to keep the 'dvipng' diff -Nru auctex-11.88/latex/bootstrap.ins auctex-11.90/latex/bootstrap.ins --- auctex-11.88/latex/bootstrap.ins 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/latex/bootstrap.ins 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,4 @@ +\input docstrip +\askforoverwritefalse +\generate{\file{preview-mk.ins}{\from{preview.dtx}{installer,make}}} +\endbatchfile diff -Nru auctex-11.88/latex/.gitignore auctex-11.90/latex/.gitignore --- auctex-11.88/latex/.gitignore 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/latex/.gitignore 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,16 @@ + +*.aux +*.cfg +*.def +*.drv +*.dvi +*.glo +*.idx +*.log +*.prv +Makefile +auto +preview-mk.ins +preview.ins +preview.pdf +preview.sty diff -Nru auctex-11.88/latex/Makefile.in auctex-11.90/latex/Makefile.in --- auctex-11.88/latex/Makefile.in 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/latex/Makefile.in 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,97 @@ +# Makefile for AUCTeX + +# Maintainer: auctex-devel@gnu.org + +# Copyright (C) 2002-2006, 2008, 2014, 2015 Free Software Foundation, +# Inc. + +# This file is part of AUCTeX. + +# AUCTeX is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. + +# AUCTeX is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with AUCTeX; see the file COPYING. If not, write to the Free +# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, +# MA 02110-1301, USA. + +@SET_MAKE@ +LATEX=@LATEX@ +PDFLATEX=@PDFLATEX@ +TEX=@TEX@ +TEXHASH=@TEXHASH@ + +prefix=@prefix@$(null) +datarootdir=@datarootdir@$(null) +datadir=@datadir@$(null) +exec_prefix=@exec_prefix@$(null) +libdir=@libdir@$(null) +previewtexmfdir = @previewtexmfdir@$(null) +previewdocdir = @previewdocdir@$(null) +TEXMFGEN = @TEXMFGEN@ + +DESTDIR= +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +MKINSTALLDIRS = ../mkinstalldirs + +.PHONY: all install install-texmf install-texmf-doc uninstall clean + +all: $(TEXMFGEN) preview.drv preview-mk.ins preview.dvi preview.pdf + +install: install-texmf install-texmf-doc + +install-texmf: $(TEXMFGEN) + -$(MKINSTALLDIRS) $(DESTDIR)$(previewtexmfdir) + for x in $(TEXMFGEN) ; do \ + echo $(INSTALL_DATA) $$x $(DESTDIR)$(previewtexmfdir) ; \ + $(INSTALL_DATA) $$x $(DESTDIR)$(previewtexmfdir) ; \ + done +# Isn't the texmfdir directory without "tex/latex/preview" available? + @ texmfdir="$(DESTDIR)$(previewtexmfdir)/../../.."; \ + if [ -r "$$texmfdir"/ls-R ]; then \ + $(TEXHASH) "$$texmfdir"; \ + else \ + echo "Warning: Cannot update ls-R database in $$texmfdir"; \ + sleep 2; \ + fi + +install-texmf-doc: preview.dvi + $(MKINSTALLDIRS) $(DESTDIR)$(previewdocdir) + $(INSTALL_DATA) preview.dvi $(DESTDIR)$(previewdocdir) + +uninstall: + rm -rf $(DESTDIR)$(previewdocdir)/preview.dvi $(DESTDIR)$(previewtexmfdir) + +preview-mk.ins: preview.dtx bootstrap.ins + $(TEX) '\nonstopmode \input bootstrap.ins' + +#only for standalone preview.sty package: +preview.ins: preview.dtx + $(TEX) '\nonstopmode\def\jobname{.ins}\input docstrip ' \ + '\generate{\file{preview.ins}{\from{preview.dtx}{installer}}}' \ + '\endbatchfile' + +$(TEXMFGEN) preview.drv: preview.dtx preview-mk.ins + $(TEX) '\nonstopmode \input preview-mk.ins' + +preview.dvi: preview.drv preview.dtx preview.sty + $(LATEX) '\nonstopmode \input preview.drv' + $(LATEX) '\nonstopmode \input preview.drv' + $(LATEX) '\nonstopmode \input preview.drv' + +preview.pdf: preview.drv preview.dtx preview.sty + $(PDFLATEX) '\nonstopmode \AtBeginDocument{\OnlyDescription}\input{preview.drv}' + $(PDFLATEX) '\nonstopmode \AtBeginDocument{\OnlyDescription}\input{preview.drv}' + $(PDFLATEX) '\nonstopmode \AtBeginDocument{\OnlyDescription}\input{preview.drv}' + +clean: + rm -f *~ *.aux *.dvi *.drv *.log + rm -f $(TEXMFGEN) preview.ins preview-mk.ins diff -Nru auctex-11.88/latex/preview.dtx auctex-11.90/latex/preview.dtx --- auctex-11.88/latex/preview.dtx 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/latex/preview.dtx 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,1872 @@ +% \iffalse +%% The preview style for extracting previews from LaTeX documents. +%% Developed as part of AUCTeX . +% +% Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, +% 2010 Free Software Foundation +% +% This program is free software; you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation; either version 3 of the License, or +% (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program; if not, write to the +% Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, +% Boston, MA 02110-1301 USA +% \fi +% \CheckSum{1758} +% \GetFileInfo{preview.sty} +% \date{\filedate} +% \author{David Kastrup\thanks{\texttt{dak@gnu.org}}} +% \title{The \texttt{preview} Package for \LaTeX\\Version \fileversion} +% \maketitle +% \section{Introduction} +% The main purpose of this package is the extraction of certain +% environments (most notably displayed formulas) from \LaTeX\ sources +% as graphics. This works with DVI files postprocessed by either +% Dvips and Ghostscript or dvipng, but it also works when you are +% using PDF\TeX\ for generating PDF files (usually also postprocessed +% by Ghostscript). +% +% Current uses of the package include the \previewlatex\ package for +% WYSIWYG functionality in the AUC\TeX\ editing environment, +% generation of previews in LyX, as part of the operation of the +% ps4pdf package, the tbook XML system and some other tools. +% +% Producing EPS files with Dvips and its derivatives using the +% \texttt{-E} option is not a good alternative: People make do by +% fiddling around with |\thispagestyle{empty}| and hoping for the best +% (namely, that the specified contents will indeed fit on single +% pages), and then trying to guess the baseline of the resulting code +% and stuff, but this is at best dissatisfactory. The preview package +% provides an easy way to ensure that exactly one page per request +% gets shipped, with a well-defined baseline and no page decorations. +% While you still can use the preview package with the `classic' +% \begin{quote} +% |dvips -E -i| +% \end{quote} +% invocation, there are better ways available that don't rely on Dvips +% not getting confused by PostScript specials. +% +% For most applications, you'll want to make use of the |tightpage| +% option. This will embed the page dimensions into the PostScript or +% PDF code, obliterating the need to use the |-E -i| options to Dvips. +% You can then produce all image files with a single run of +% Ghostscript from a single PDF or PostScript (as opposed to EPS) +% file. +% +% Various options exist that will pass \TeX\ dimensions and other +% information about the respective shipped out material (including +% descender size) into the log file, where external applications might +% make use of it. +% +% The possibility for generating a whole set of graphics with a single +% run of Ghostscript (whether from \LaTeX\ or PDF\LaTeX) increases +% both speed and robustness of applications. It is also feasible to +% use dvipng on a DVI file with the options +% \begin{quote} +% |-picky -noghostscript| +% \end{quote} +% to omit generating any image file that requires Ghostscript, then +% let a script generate all missing files using Dvips/Ghostscript. +% This will usually speed up the process significantly. +% +% \section{Package options} +% The package is included with the customary +% \begin{quote} +% |\usepackage|\oarg{options}|{preview}| +% \end{quote} +% You should usually load this package as the last one, since it +% redefines several things that other packages may also provide. +% +% The following options are available: +% \begin{description} +% \item[|active|] is the most essential option. If this option is not +% specified, the |preview| package will be inactive and the document +% will be typeset as if the |preview| package were not loaded, +% except that all declarations and environments defined by the +% package are still legal but have no effect. This allows defining +% previewing characteristics in your document, and only activating +% them by calling \LaTeX\ as +% \begin{quote} +% \raggedright +% |latex '\PassOptionsToPackage{active}{preview}| |\input|\marg{filename}|'| +% \end{quote} +% \item[|noconfig|] Usually the file |prdefault.cfg| gets loaded +% whenever the |preview| package gets activated. |prdefault.cfg| is +% supposed to contain definitions that can cater for otherwise bad +% results, for example, if a certain document class would otherwise +% lead to trouble. It also can be used to override any settings +% made in this package, since it is loaded at the very end of it. +% In addition, there may be configuration files specific for certain +% |preview| options like |auctex| which have more immediate needs. +% The |noconfig| option suppresses loading of those option files, +% too. +% \item[|psfixbb|] Dvips determines the bounding boxes from the +% material in the DVI file it understands. Lots of PostScript +% specials are not part of that. Since the \TeX\ boxes do not make +% it into the DVI file, but merely characters, rules and specials +% do, Dvips might include far too small areas. The option |psfixbb| +% will include |/dev/null| as a graphic file in the ultimate upper +% left and lower right corner of the previewed box. This will make +% Dvips generate an appropriate bounding box. +% \item[|dvips|] If this option is specified as a class option or to +% other packages, several packages pass things like page size +% information to Dvips, or cause crop marks or draft messages +% written on pages. This seriously hampers the usability of +% previews. If this option is specified, the changes will be undone +% if possible. +% \item[|pdftex|] If this option is set, PDF\TeX\ is assumed as the +% output driver. This mainly affects the |tightpage| option. +% \item[|xetex|] If this option is set, Xe\TeX\ is assumed as the +% output driver. This mainly affects the |tightpage| option. +% \item[|displaymath|] will make all displayed math environments +% subject to preview processing. This will typically be the most +% desired option. +% \item[|floats|] will make all float objects subject to preview +% processing. If you want to be more selective about what floats to +% pass through to a preview, you should instead use the +% \cmd{\PreviewSnarfEnvironment} command on the floats you want to +% have previewed. +% \item[|textmath|] will make all text math subject to previews. +% Since math mode is used throughly inside of \LaTeX\ even for other +% purposes, this works by redefining \cmd\(, \cmd\) +% and |$| and the |math| environment (apparently some people use +% that). Only occurences of these text math delimiters in later +% loaded packages and in the main document will thus be affected. +% \item[|graphics|] will subject all \cmd{\includegraphics} commands +% to a preview. +% \item[|sections|] will subject all section headers to a preview. +% \item[|delayed|] will delay all activations and redefinitions the +% |preview| package makes until |\||begin{document}|. The purpose +% of this is to cater for documents which should be subjected to the +% |preview| package without having been prepared for it. You can +% process such documents with +% \begin{quote} +% |latex '\RequirePackage[active,delayed,|\meta{options}|]{preview}| +% |\input|\marg{filename}|'| +% \end{quote} +% This relaxes the requirement to be loading the |preview| package +% as last package. +% \item[\meta{driver}] loads a special driver file +% |pr|\meta{driver}|.def|. The remaining options are implemented +% through the use of driver files. +% \item[|auctex|] This driver will produce fake error messages at the +% start and end of every preview environment that enable the Emacs +% package \previewlatex\ in connection with AUC\TeX\ to pinpoint +% the exact source location where the previews have originated. +% Unfortunately, there is no other reliable means of passing the +% current \TeX\ input position \emph{in} a line to external +% programs. In order to make the parsing more robust, this option +% also switches off quite a few diagnostics that could be +% misinterpreted. +% +% You should not specify this option manually, since it will only be +% needed by automated runs that want to parse the pseudo error +% messages. Those runs will then use \cmd{\PassOptionsToPackage} in +% order to effect the desired behaviour. In addition, +% |prauctex.cfg| will get loaded unless inhibited by the |noconfig| +% option. This caters for the most frequently encountered +% problematic commands. +% \item[|showlabels|] During the editing process, some people like to +% see the label names in their equations, figures and the like. Now +% if you are using Emacs for editing, and in particular +% \previewlatex, I'd strongly recommend that you check out the +% Ref\TeX\ package which pretty much obliterates the need for this +% kind of functionality. If you still want it, standard \LaTeX\ +% provides it with the |showkeys| package, and there is also the +% less encompassing |showlabels| package. Unfortunately, since +% those go to some pain not to change the page layout and spacing, +% they also don't change |preview|'s idea of the \TeX\ dimensions of +% the involved boxes. So if you are using |preview| for determing +% bounding boxes, those packages are mostly useless. The option +% |showlabels| offers a substitute for them. +% \item[|tightpage|] It is not uncommon to want to use the results of +% |preview| as graphic images for some other application. One +% possibility is to generate a flurry of EPS files with +% \begin{quote} +% |dvips -E -i -Pwww -o| \meta{outputfile}|.000| \meta{inputfile} +% \end{quote} +% However, in case those are to be processed further into graphic +% image files by Ghostscript, this process is inefficient since all +% of those files need to be processed one by one. In addition, it +% is necessary to extract the bounding box comments from the EPS +% files and convert them into page dimension parameters for +% Ghostscript in order to avoid full-page graphics. This is not +% even possible if you wanted to use Ghostscript in a~\emph{single} +% run for generating the files from a single PostScript file, since +% Dvips will in that case leave no bounding box information +% anywhere. +% +% The solution is to use the |tightpage| option. That way a single +% command line like +% \begin{quote} +% \raggedright +% \texttt{gs -sDEVICE=png16m -dTextAlphaBits=4 -r300 +% -dGraphicsAlphaBits=4 -dSAFER -q -dNOPAUSE +% -sOutputFile=\meta{outputfile}\%d.png \meta{inputfile}.ps} +% \end{quote} +% will be able to produce tight graphics from a single PostScript +% file generated with Dvips \emph{without} use of the options +% |-E -i|, in a single run. +% +% The |tightpage| option actually also works when using the |pdftex| +% option and generating PDF files with PDF\TeX. The resulting PDF +% file has separate page dimensions for every page and can directly +% be converted with one run of Ghostscript into image files. +% +% If neither |dvips| or |pdftex| have been specified, the +% corresponding option will get autodetected and invoked. +% +% If you need this in a batch environment where you don't want to +% use |preview|'s automatic extraction facilities, no problem: just +% don't use any of the extraction options, and wrap everything to be +% previewed into |preview| environments. This is how LyX does its +% math previews. +% +% If the pages under the |tightpage| option are just too tight, you +% can adjust by setting the length |\PreviewBorder| to a different +% value by using \cmd{\setlength}. The default value is +% |0.50001bp|, which is half of a usual PostScript point, rounded +% up. If you go below this value, the resulting page size may drop +% below |1bp|, and Ghostscript does not seem to like that. If you +% need finer control, you can adjust the bounding box dimensions +% individually by changing the macro |\PreviewBbAdjust| with the +% help of |\renewcommand|. Its default value is +% \begin{quote} +% \raggedright +% |\newcommand| |\PreviewBbAdjust| +% |{-\PreviewBorder| |-\PreviewBorder| +% |\PreviewBorder| |\PreviewBorder}| +% \end{quote} +% This adjusts the left, lower, right and upper borders by the given +% amount. The macro must contain 4~\TeX\ dimensions after another, +% and you may not omit the units if you specify them explicitly +% instead of by register. PostScript points have the unit~|bp|. +% \item[|lyx|] This option is for the sake of LyX developers. It will +% output a few diagnostics relevant for the sake of LyX' preview +% functionality (at the time of writing, mostly implemented for math +% insets, in versions of LyX starting with 1.3.0). +% \item[|counters|] This writes out diagnostics at the start and the +% end of previews. Only the counters changed since the last output +% get written, and if no counters changed, nothing gets written at +% all. The list consists of counter name and value, both enclosed +% in |{}| braces, followed by a space. The last such pair is +% followed by a colon (|:|) if it is at the start of the preview +% snippet, and by a period (|.|) if it is at the end. The order of +% different diagnostics like this being issued depends on the order +% of the specification of the options when calling the package. +% +% Systems like \previewlatex\ use this for keeping counters accurate +% when single previews are regenerated. +% \item[|footnotes|] This makes footnotes render as previews, and only +% as their footnote symbol. A convenient editing feature inside of +% Emacs. +% \end{description} +% The following options are just for debugging purposes of the package +% and similar to the corresponding \TeX\ commands they allude to: +% \begin{description} +% \item[|tracingall|] causes lots of diagnostic output to appear in +% the log file during the preview collecting phases of \TeX's +% operation. In contrast to the similarly named \TeX\ command, it +% will not switch to |\errorstopmode|, nor will it change the +% setting of |\tracingonline|. +% \item[|showbox|] This option will show the contents of the boxes +% shipped out to the DVI files. It also sets |\showboxbreadth| and +% |\showboxdepth| to their maximum values at the end of loading this +% package, but you may reset them if you don't like that. +% \end{description} +% \section{Provided Commands} +% \DescribeEnv{preview} The |preview| environment causes its contents +% to be set as a single preview image. Insertions like figures and +% footnotes (except those included in minipages) will typically lead +% to error messages or be lost. In case the |preview| package has not +% been activated, the contents of this environment will be typeset +% normally. +% +% \DescribeEnv{nopreview} The |nopreview| environment will cause its +% contents not to undergo any special treatment by the |preview| +% package. When |preview| is active, the contents will be discarded +% like all main text that does not trigger the |preview| hooks. When +% |preview| is not active, the contents will be typeset just like the +% main text. +% +% Note that both of these environments typeset things as usual when +% preview is not active. If you need something typeset conditionally, +% use the \cmd{\ifPreview} conditional for it. +% +% \DescribeMacro{\PreviewMacro} If you want to make a macro like +% \cmd{\includegraphics} (actually, this is what is done by the +% |graphics| option to |preview|) produce a preview image, you put a +% declaration like +% \begin{quote} +% |\PreviewMacro[*[[!]{\includegraphics}| +% \end{quote} +% or, more readable, +% \begin{quote} +% |\PreviewMacro[{*[][]{}}]{\includegraphics}| +% \end{quote} +% into your preamble. The optional argument to \cmd{\PreviewMacro} +% specifies the arguments \cmd{\includegraphics} accepts, since this +% is necessary information for properly ending the preview box. Note +% that if you are using the more readable form, you have to enclose +% the argument in a |[{| and |}]| pair. The inner braces are +% necessary to stop any included |[]| pairs from prematurely ending +% the optional argument, and to make a single |{}| +% denoting an optional argument not get stripped away by \TeX's +% argument parsing. +% +% The letters simply mean +% \begin{description} +% \item[|*|] indicates an optional |*| modifier, as in +% |\includegraphics*|. +% \item[|[|]^^A] +% indicates an optional argument in brackets. This syntax +% is somewhat baroque, but brief. +% \item[{|[]|}] also indicates an optional argument in brackets. Be +% sure to have encluded the entire optional argument specification +% in an additional pair of braces as described above. +% \item[|!|] indicates a mandatory argument. +% \item[|\char`{\char`}|] indicates the same. Again, be sure to have +% that additional level of braces around the whole argument +% specification. +% \item[|?|\meta{delimiter}\marg{true case}\marg{false case}] is a +% conditional. The next character is checked against being equal to +% \meta{delimiter}. If it is, the specification \meta{true case} is +% used for the further parsing, otherwise \meta{false case} will be +% employed. In neither case is something consumed from the input, +% so \marg{true case} will still have to deal with the upcoming +% delimiter. +% \item[|@|\marg{literal sequence}] will insert the given sequence +% literally into the executed call of the command. +% \item[|-|] will just drop the next token. It will probably be most +% often used in the true branch of a |?| specification. +% \item[|\#|\marg{argument}\marg{replacement}] is a transformation +% rule that calls a macro with the given argument and replacement +% text on the rest of the argument list. The replacement is used in +% the executed call of the command. This can be used for parsing +% arbitrary constructs. For example, the |[]| option could manually +% be implemented with the option string |?[{#{[#1]}{[{#1}]}}{}|. +% PStricks users might enjoy this sort of flexibility. +% \item[|:|\marg{argument}\marg{replacement}] is again a +% transformation rule. As opposed to |#|, however, the result of +% the transformation is parsed again. You'll rarely need this. +% \end{description} +% +% There is a second optional argument in brackets that can be used to +% declare any default action to be taken instead. This is mostly for +% the sake of macros that influence numbering: you would want to keep +% their effects in that respect. The default action should use |#1| +% for referring to the original (not the patched) command with the +% parsed options appended. Not specifying a second optional argument +% here is equivalent to specifying~|[#1]|. +% +% \DescribeMacro{\PreviewMacro*} A similar invocation +% \cmd{\PreviewMacro*} simply throws the macro and all of its +% arguments declared in the manner above away. This is mostly useful +% for having things like \cmd{\footnote} not do their magic on their +% arguments. More often than not, you don't want to declare any +% arguments to scan to \cmd{\PreviewMacro*} since you would want the +% remaining arguments to be treated as usual text and typeset in that +% manner instead of being thrown away. An exception might be, say, +% sort keys for \cmd{\cite}. +% +% A second optional argument in brackets can be used to declare any +% default action to be taken instead. This is for the sake of macros +% that influence numbering: you would want to keep their effects in +% that respect. The default action might use |#1| for referring to +% the original (not the patched) command with the parsed options +% appended. Not specifying a second optional argument here is +% equivalent to specifying~|[]| since the command usually gets thrown +% away. +% +% As an example for using this argument, you might want to specify +% \begin{quote} +% |\PreviewMacro*\footnote[{[]}][#1{}]| +% \end{quote} +% This will replace a footnote by an empty footnote, but taking any +% optional parameter into account, since an optional paramter changes +% the numbering scheme. That way the real argument for the footnote +% remains for processing by \previewlatex. +% +% \DescribeMacro{\PreviewEnvironment} The macro +% \cmd{\PreviewEnvironment} works just as \cmd{\PreviewMacro} does, +% only for environments. \DescribeMacro{\PreviewEnvironment*} And the +% same goes for \cmd{\PreviewEnvironment*} as compared to +% \cmd{\PreviewMacro*}. +% +% \DescribeMacro{\PreviewSnarfEnvironment} This macro does not typeset +% the original environment inside of a preview box, but instead +% typesets just the contents of the original environment inside of the +% preview box, leaving nothing for the original environment. This has +% to be used for figures, for example, since they would +% \begin{enumerate} +% \item produce insertion material that cannot be extracted to the +% preview properly, +% \item complain with an error message about not being in outer par +% mode. +% \end{enumerate} +% +% \DescribeMacro{\PreviewOpen} +% \DescribeMacro{\PreviewClose} +% Those Macros form a matched preview pair. This is for macros that +% behave similar as \cmd{\begin} and \cmd{\end} of an environment. It +% is essential for the operation of \cmd{\PreviewOpen} that the macro +% treated with it will open an additional group even when the preview +% falls inside of another preview or inside of a |nopreview| +% environment. Similarly, the macro treated with \cmd{PreviewClose} +% will close an environment even when inactive. +% +% \DescribeMacro{\ifPreview} In case you need to know whether +% |preview| is active, you can use the conditional \cmd{\ifPreview} +% together with |\else| and |\fi|. +% +% \StopEventually{} +% \section{The Implementation} +% Here we go: the start is somewhat obtuse since we figure out version +% number and date from RCS strings. This should really be done at +% docstrip time instead. Takers? +% \begin{macro}{\pr@version} +% \begin{macrocode} +%<*style> +%<*!active> +\NeedsTeXFormat{LaTeX2e} \def\reserved@a #1#2$#3: +#4${\xdef#1{\reserved@c #2#4 $}} \def\reserved@c #1 #2${#1} +\begingroup \catcode`\_=12 +\reserved@a\pr@version $Name: release_11_90 $ \ifx\pr@version\@empty +\reserved@a\pr@version CVS-$Revision: 1.126 $ \endgroup \else + \def\next release_{} \lccode`\_=`. + \edef\next{\lowercase{\endgroup + \def\noexpand\pr@version{\expandafter\next\pr@version}}} \next \fi +\reserved@a\next $Date: 2010/02/14 16:19:00 $ +\edef\next{\noexpand\ProvidesPackage{preview}% + [\next\space \pr@version\space (AUCTeX/preview-latex)]} +\next +% \end{macrocode} +% \end{macro} +% Since many parts here will not be needed as long as the package is +% inactive, we will include them enclosed with |<*active>| and +% || guards. That way, we can append all of this stuff at a +% place where it does not get loaded if not necessary. +% +%\begin{macro}{\ifPreview} +% Setting the \cmd{\ifPreview} command should not be done by the +% user, so we don't use \cmd{\newif} here. As a consequence, there +% are no \cmd{\Previewtrue} and \cmd{\Previewfalse} commands. +% \begin{macrocode} +\let\ifPreview\iffalse +% +% \end{macrocode} +%\end{macro} +%\begin{macro}{\ifpr@outer} +% We don't allow previews inside of previews. The macro +% \cmd{\ifpr@outer} can be used for checking whether we are outside +% of any preview code. +% \begin{macrocode} +%<*active> +\newif\ifpr@outer +\pr@outertrue +% +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\preview@delay} +% The usual meaning of \cmd{\preview@delay} is to just echo its +% argument in normal |preview| operation. If |preview| is inactive, +% it swallows its argument. If the |delayed| option is active, the +% contents will be passed to the \cmd{\AtBeginDocument} hook. +%\begin{macro}{\pr@advise} +% The core macro for modifying commands is \cmd{\pr@advise}. You +% pass it the original command name as first argument and what should +% be executed before the saved original command as second argument. +%\begin{macro}{\pr@advise@ship} +% The most often used macro for modifying commands is +% \cmd{\pr@advise@ship}. It receives three arguments. The first is +% the macro to modify, the second specifies some actions to be done +% inside of a box to be created before the original macro gets +% executed, the third one specifies actions after the original macro +% got executed. +%\begin{macro}{\pr@loadcfg} +% The macro \cmd{\pr@loadcfg} is used for loading in configuration +% files, unless disabled by the |noconfig| option. +% \begin{macrocode} +%<*!active> +\let\preview@delay=\@gobble +\let\pr@advise=\@gobbletwo +\long\def\pr@advise@ship#1#2#3{} +\def\pr@loadcfg#1{\InputIfFileExists{#1.cfg}{}{}} +\DeclareOption{noconfig}{\let\pr@loadcfg=\@gobble} +% \end{macrocode} +%\begin{macro}{\pr@addto@front} +% This adds code globally to the front of a macro. +% \begin{macrocode} +\long\def\pr@addto@front#1#2{% + \toks@{#2}\toks@\expandafter{\the\expandafter\toks@#1}% + \xdef#1{\the\toks@}} +% \end{macrocode} +% \end{macro} +% These commands get more interesting when |preview| is active: +% \begin{macrocode} +\DeclareOption{active}{% + \let\ifPreview\iftrue + \def\pr@advise#1{% + \expandafter\pr@adviseii\csname pr@\string#1\endcsname#1}% + \long\def\pr@advise@ship#1#2#3{\pr@advise#1{\pr@protect@ship{#2}{#3}}}% + \let\preview@delay\@firstofone} +% \end{macrocode} +% \end{macro} +% \end{macro} +% \end{macro} +% \end{macro} +% +% \begin{macro}{\pr@adviseii} +% Now \cmd{\pr@advise} needs its helper macro. In order to avoid +% recursive definitions, we advise only macros that are not yet +% advised. Or, more exactly, we throw away the old advice and only +% take the new one. We use e\TeX's \cmd{\protected} where available +% for some extra robustness. +% \begin{macrocode} +\long\def\pr@adviseii#1#2#3{\preview@delay{% + \ifx#1\relax \let#1#2\fi + \toks@{#3#1}% + \ifx\@undefined\protected \else \protected\fi + \long\edef#2{\the\toks@}}} +% \end{macrocode} +%\end{macro} +% +% The |delayed| option is easy to implement: this is \emph{not} done +% with \cmd{\let} since at the course of document processing, \LaTeX\ +% redefines \cmd{\AtBeginDocument} and we want to follow that +% redefinition. +% \begin{macrocode} +\DeclareOption{delayed}{% + \ifPreview \def\preview@delay{\AtBeginDocument}\fi +} +% \end{macrocode} +% +%\begin{macro}{\ifpr@fixbb} +% Another conditional. \cmd{\ifpr@fixbb} tells us whether we want to +% surround the typeset materials with invisible rules so that Dvips +% gets the bounding boxes right for, say, pure PostScript inclusions. +% +% If you are installing this on an operating system different from +% the one |preview| has been developed on, you might want to redefine +% |\pr@markerbox| in your |prdefault.cfg| file to use a file known to +% be empty, like |/dev/null| is under Unix. Make this redefinition +% depend on \cmd{\ifpr@fixbb} since only then |\pr@markerbox| will be +% defined. +% \begin{macrocode} +\newif\ifpr@fixbb +\pr@fixbbfalse +\DeclareOption{psfixbb}{\ifPreview% + \pr@fixbbtrue + \newbox\pr@markerbox + \setbox\pr@markerbox\hbox{\special{psfile=/dev/null}}\fi +} +% \end{macrocode} +% \end{macro} +% \begin{macro}{\pr@graphicstype} +% The |dvips| option redefines the |bop-hook| to reset the page +% size. +% \begin{macrocode} +\let\pr@graphicstype=\z@ +\DeclareOption{dvips}{% + \let\pr@graphicstype\@ne + \preview@delay{\AtBeginDvi{% + \special{!/preview@version(\pr@version)def} + \special{!userdict begin/preview-bop-level 0 def% + /bop-hook{/preview-bop-level dup load dup 0 le{/isls false def% + /vsize 792 def/hsize 612 def}if 1 add store}bind def% + /eop-hook{/preview-bop-level dup load dup 0 gt{1 sub}if + store}bind def end}}}} +% \end{macrocode} +% The |pdftex| option just sets \cmd{\pr@graphicstype}. +% \begin{macrocode} +\DeclareOption{pdftex}{% + \let\pr@graphicstype\tw@} +% \end{macrocode} +% And so does the |xetex| option. +% \begin{macrocode} +\DeclareOption{xetex}{% + \let\pr@graphicstype\thr@@} +% +% \end{macrocode} +% \end{macro} +% \subsection{The internals} +% +% Those are only needed if |preview| is active. +% \begin{macrocode} +%<*active> +% \end{macrocode} +% \begin{macro}{\pr@snippet} +% \cmd{\pr@snippet} is the current snippet number. We need a +% separate counter to \cmd{\c@page} since several other commands +% might fiddle with the page number. +% \begin{macrocode} +\newcount\pr@snippet +\global\pr@snippet=1 +% \end{macrocode} +% \end{macro} +% \begin{macro}{\pr@protect} +% This macro gets one argument which is unpacked and executed in +% typesetting situations where we are not yet inside of a preview. +% \begin{macrocode} +\def\pr@protect{\ifx\protect\@typeset@protect + \ifpr@outer \expandafter\expandafter\expandafter + \@secondoftwo\fi\fi\@gobble} +% \end{macrocode} +% \end{macro} +% \begin{macro}{\pr@protect@ship} +% Now for the above mentioned \cmd{\pr@protect@ship}. This gets +% three arguments. The first is what to do at the beginning of the +% preview, the second what to do at the end, the third is the macro +% where we stored the original definition. +% +% In case we are not in a typesetting situation, +% \cmd{\pr@protect@ship} leaves the stored macro to fend for its +% own. No better or worse protection than the original. And we +% only do anything different when \cmd{\ifpr@outer} turns out to be +% true. +% \begin{macrocode} +\def\pr@protect@ship{\pr@protect{\@firstoftwo\pr@startbox}% + \@gobbletwo} +% \end{macrocode} +% \end{macro} +% \begin{macro}{\pr@insert} +% \begin{macro}{\pr@mark} +% \begin{macro}{\pr@marks} +% We don't want insertions to end up on our lists. So we disable +% them right now by replacing them with the following: +% \begin{macrocode} +\def\pr@insert{\begingroup\afterassignment\pr@insertii\count@} +\def\pr@insertii{\endgroup\setbox\pr@box\vbox} +% \end{macrocode} +% Similar things hold for marks. +% \begin{macrocode} +\def\pr@mark{{\afterassignment}\toks@} +\def\pr@marks{{\aftergroup\pr@mark\afterassignment}\count@} +% \end{macrocode} +% \end{macro} +% \end{macro} +% \end{macro} +% \begin{macro}{\pr@box} +% \begin{macro}{\pr@startbox} +% Previews will be stored in \cmd{\box}\cmd{\pr@box}. +% \cmd{\pr@startbox} gets two arguments: code to execute immediately +% before the following stuff, code to execute afterwards. You have +% to cater for \cmd{\pr@endbox} being called at the right time +% yourself. We will use a \cmd{\vsplit} on the box later in order +% to remove any leading glues, penalties and similar stuff. For +% this reason we start off the box with an optimal break point. +% \begin{macrocode} +\newbox\pr@box +\long\def\pr@startbox#1#2{% + \ifpr@outer + \toks@{#2}% + \edef\pr@cleanup{\the\toks@}% + \setbox\pr@box\vbox\bgroup + \break + \pr@outerfalse\@arrayparboxrestore + \let\insert\pr@insert + \let\mark\pr@mark + \let\marks\pr@marks + \expandafter\expandafter\expandafter + \pr@ship@start + \expandafter\@firstofone + \else + \expandafter \@gobble + \fi{#1}} +% \end{macrocode} +% \end{macro} +% \end{macro} +% \begin{macro}{\pr@endbox} +% Cleaning up also is straightforward. If we have to watch the +% bounding \TeX\ box, we want to remove spurious skips. We also +% want to unwrap a possible single line paragraph, so that the box +% is not full line length. We use \cmd{\vsplit} to clean up leading +% glue and stuff, and we make some attempt of removing trailing +% ones. After that, we wrap up the box including possible material +% from \cmd{\AtBeginDvi}. If the |psfixbb| option is active, we +% adorn the upper left and lower right corners with copies of +% \cmd{\pr@markerbox}. The first few lines cater for \LaTeX\ hiding +% things like like the code for \cmd{\paragraph} in \cmd{\everypar}. +% \begin{macrocode} +\def\pr@endbox{% + \let\reserved@a\relax + \ifvmode \edef\reserved@a{\the\everypar}% + \ifx\reserved@a\@empty\else + \dimen@\prevdepth + \noindent\par + \setbox\z@\lastbox\unskip\unpenalty + \prevdepth\dimen@ + \setbox\z@\hbox\bgroup\penalty-\maxdimen\unhbox\z@ + \ifnum\lastpenalty=-\maxdimen\egroup + \else\egroup\box\z@ \fi\fi\fi + \ifhmode \par\unskip\setbox\z@\lastbox + \nointerlineskip\hbox{\unhbox\z@\/}% + \else \unskip\unpenalty\unskip \fi + \egroup + \setbox\pr@box\vbox{% + \baselineskip\z@skip \lineskip\z@skip \lineskiplimit\z@ + \@begindvi + \nointerlineskip + \splittopskip\z@skip\setbox\z@\vsplit\pr@box to\z@ + \unvbox\z@ + \nointerlineskip + %\color@setgroup + \box\pr@box + %\color@endgroup + }% +% \end{macrocode} +% \begin{macro}{\pr@ship@end} +% \label{sec:prshipend}At this point, \cmd{\pr@ship@end} gets +% called. You must not under any circumstances change |\box\pr@box| +% in any way that would add typeset material at the front of it, +% except for PostScript header specials, since the front of +% |\box\pr@box| may contain stuff from \cmd{\AtBeginDvi}. +% \cmd{\pr@ship@end} contains two types of code additions: stuff +% that adds to |\box\pr@box|, like the |labels| option does, and +% stuff that measures out things or otherwise takes a look at the +% finished |\box\pr@box|, like the |auctex| or |showbox| option do. +% The former should use \cmd{pr@addto@front} for adding to this +% hook, the latter use \cmd{g@addto@macro} for adding at the end of +% this hook. +% +% Note that we shift the output box up by its height via +% \cmd{\voffset}. This has three reasons: first we make sure that +% no package-inflicted non-zero value of \cmd{\voffset} or +% \cmd{\hoffset} will have any influence on the positioning of our +% box. Second we shift the box such that its basepoint will exactly +% be at the (1in,1in)~mark defined by \TeX. That way we can +% properly take ascenders into account. And the third reason is +% that \TeX\ treats a \cmd{\hbox} and a \cmd{\vbox} differently with +% regard to the treating of its depth. Shifting \cmd{\voffset} and +% \cmd{\hoffset} can be inhibited by setting |\pr@offset@override|. +% \begin{macrocode} + \pr@ship@end + {\let\protect\noexpand + \ifx\pr@offset@override\@undefined + \voffset=-\ht\pr@box + \hoffset=\z@ + \fi + \c@page=\pr@snippet + \pr@shipout + \ifpr@fixbb\hbox{% + \dimen@\wd\pr@box + \@tempdima\ht\pr@box + \@tempdimb\dp\pr@box + \box\pr@box + \llap{\raise\@tempdima\copy\pr@markerbox\kern\dimen@}% + \lower\@tempdimb\copy\pr@markerbox}% + \else \box\pr@box \fi}% + \global\advance\pr@snippet\@ne + \pr@cleanup +} +% \end{macrocode} +% \end{macro} +% \end{macro} +% Oh, and we kill off the usual meaning of \cmd{\shipout} in case +% somebody makes a special output routine. The following test is +% pretty much the same as in |everyshi.sty|. One of its implications +% is that if someone does a \cmd{\shipout} of a \emph{void} box, +% things will go horribly wrong. +% \begin{macro}{\shipout} +% \begin{macrocode} +\let\pr@shipout=\shipout +\def\shipout{\deadcycles\z@\bgroup\setbox\z@\box\voidb@x + \afterassignment\pr@shipoutegroup\setbox\z@} +\def\pr@shipoutegroup{\ifvoid\z@ \expandafter\aftergroup\fi \egroup} +% \end{macrocode} +% \end{macro} +% \subsection{Parsing commands} +% \begin{macro}{\pr@parseit} +% \begin{macro}{\pr@endparse} +% \begin{macro}{\pr@callafter} +% The following stuff is for parsing the arguments of commands we +% want to somehow surround with stuff. Usage is +% \begin{quote} +% \cmd{\pr@callafter}\meta{aftertoken}\meta{parsestring}\cmd{\pr@endparse}\\ +% \qquad\meta{macro}\meta{parameters} +% \end{quote} +% \meta{aftertoken} is stored away and gets executed once parsing +% completes, with its first argument being the parsed material. +% \meta{parsestring} would be, for example for the +% \cmd{\includegraphics} macro, |*[[!|, an optional |*| argument +% followed by two optional arguments enclosed in |[]|, followed by +% one mandatory argument. +% +% For the sake of a somewhat more intuitive syntax, we now support +% also the syntax |{*[]{}}| in the optional argument. Since \TeX\ +% strips redundant braces, we have to write |[{{}}]| in this syntax +% for a single mandatory argument. Hard to avoid. We use an +% unusual character for ending the parsing. The implementation is +% rather trivial. +% \begin{macrocode} +\def\pr@parseit#1{\csname pr@parse#1\endcsname} +\let\pr@endparse=\@percentchar +\def\next#1{% +\def\pr@callafter{% + \afterassignment\pr@parseit + \let#1= }} +\expandafter\next\csname pr@parse\pr@endparse\endcsname +% \end{macrocode} +% \end{macro} +% \end{macro} +% \end{macro} +% \begin{macro}{\pr@parse*} +% Straightforward, same mechanism \LaTeX\ itself employs. We take +% some care not to pass potential |#| tokens unprotected through +% macros. +% \begin{macrocode} +\long\expandafter\def\csname pr@parse*\endcsname#1\pr@endparse#2{% + \begingroup\toks@{#1\pr@endparse{#2}}% + \edef\next##1{\endgroup##1\the\toks@}% + \@ifstar{\next{\pr@parse@*}}{\next\pr@parseit}} +% \end{macrocode} +% \end{macro} +% \begin{macro}{\pr@parse[} +% \begin{macro}{\pr@brace} +% Copies optional parameters in brackets if present. The additional +% level of braces is necessary to ensure that braces the user might +% have put to hide a~|]| bracket in an optional argument don't get +% lost. There will be no harm if such braces were not there at the +% start. +% \begin{macrocode} +\long\expandafter\def\csname pr@parse[\endcsname#1\pr@endparse#2{% + \begingroup\toks@{#1\pr@endparse{#2}}% + \edef\next##1{\endgroup##1\the\toks@}% + \@ifnextchar[{\next\pr@bracket}{\next\pr@parseit}} +\long\def\pr@bracket#1\pr@endparse#2[#3]{% + \pr@parseit#1\pr@endparse{#2[{#3}]}} +% \end{macrocode} +% \end{macro} +% \end{macro} +% \begin{macro}{\pr@parse]} +% This is basically a do-nothing, so that we may use the syntax +% |{*[][]!}| in the optional argument instead of the more concise +% but ugly |*[[!| which confuses the brace matchers of editors. +% \begin{macrocode} +\expandafter\let\csname pr@parse]\endcsname=\pr@parseit +% \end{macrocode} +% \end{macro} +% \begin{macro}{\pr@parse} +% \begin{macro}{\pr@parse!} +% Mandatory arguments are perhaps easiest to parse. +% \begin{macrocode} +\long\def\pr@parse#1\pr@endparse#2#3{% + \pr@parseit#1\pr@endparse{#2{#3}}} +\expandafter\let\csname pr@parse!\endcsname=\pr@parse +% \end{macrocode} +% \end{macro} +% \end{macro} +% \begin{macro}{\pr@parse?} +% \begin{macro}{\pr@parsecond} +% This does an explicit call of |\@ifnextchar| and forks into the +% given two alternatives as a result. +% \begin{macrocode} +\long\expandafter\def\csname pr@parse?\endcsname#1#2\pr@endparse#3{% + \begingroup\toks@{#2\pr@endparse{#3}}% + \@ifnextchar#1{\pr@parsecond\@firstoftwo}% + {\pr@parsecond\@secondoftwo}} +\def\pr@parsecond#1{\expandafter\endgroup + \expandafter\expandafter\expandafter\pr@parseit + \expandafter#1\the\toks@} +% \end{macrocode} +% \end{macro} +% \end{macro} +% \begin{macro}{\pr@parse@} +% This makes it possible to insert literal material into the +% argument list. +% \begin{macrocode} + \long\def\pr@parse@#1#2\pr@endparse#3{% + \pr@parseit #2\pr@endparse{#3#1}} +% \end{macrocode} +% \end{macro} +% \begin{macro}{\pr@parse-} +% This will just drop the next token. +% \begin{macrocode} +\long\expandafter\def\csname pr@parse-\endcsname + #1\pr@endparse#2{\begingroup + \toks@{\endgroup\pr@parseit #1\pr@endparse{#2}}% + {\aftergroup\the\aftergroup\toks@ \afterassignment}% + \let\next= } +% \end{macrocode} +% \end{macro} +% \begin{macro}{\pr@parse:} +% The following is a transform rule. A macro is being defined with +% the given argument list and replacement, and the transformed +% version replaces the original. The result of the transform is +% still subject to being parsed. +% \begin{macrocode} +\long\expandafter\def\csname pr@parse:\endcsname + #1#2#3\pr@endparse#4{\begingroup + \toks@{\endgroup \pr@parseit#3\pr@endparse{#4}}% + \long\def\next#1{#2}% + \the\expandafter\toks@\next} +% \end{macrocode} +% \end{macro} +% \edef\next{\noexpand\begin{macro}{\noexpand +% \pr@parse\string#}} +% \next +% Another transform rule, but this passes the transformed material +% into the token list. +% \begin{macrocode} +\long\expandafter\def\csname pr@parse#\endcsname + #1#2#3\pr@endparse#4{\begingroup + \toks@{#4}% + \long\edef\next##1{\toks@{\the\toks@##1}}% + \toks@{\endgroup \pr@parseit#3\pr@endparse}% + \long\def\reserved@a#1{{#2}}% + \the\expandafter\next\reserved@a} +% +% \end{macrocode} +% \end{macro} +% +% \subsection{Selection options} +% The |displaymath| option. The |equation| environments in AMS\LaTeX\ +% already do too much before our hook gets to interfere, so we hook +% earlier. Some juggling is involved to ensure we get the original +% |\everydisplay| tokens only once and where appropriate. +% +% The incredible hack with |\dt@ptrue| is necessary for working around +% bug `amslatex/3425'. +% \begin{macrocode} +%<*!active> +\begingroup +\catcode`\*=11 +\@firstofone{\endgroup +\DeclareOption{displaymath}{% + \preview@delay{\toks@{% + \pr@startbox{\noindent$$% + \aftergroup\pr@endbox\@gobbletwo}{$$}\@firstofone}% + \everydisplay\expandafter{\the\expandafter\toks@ + \expandafter{\the\everydisplay}}}% + \pr@advise@ship\equation{\begingroup\aftergroup\pr@endbox + \def\dt@ptrue{\m@ne=\m@ne}\noindent}% + {\endgroup}% + \pr@advise@ship\equation*{\begingroup\aftergroup\pr@endbox + \def\dt@ptrue{\m@ne=\m@ne}\noindent}% + {\endgroup}% + \PreviewOpen[][\def\dt@ptrue{\m@ne=\m@ne}\noindent#1]\[% + \PreviewClose\]% + \PreviewEnvironment[][\noindent#1]{eqnarray}% + \PreviewEnvironment[][\noindent#1]{eqnarray*}% + \PreviewEnvironment{displaymath}% +}} +% \end{macrocode} +% +% The |textmath| option. Some folderol in order to define the active +% |$| +% math mode delimiter. \cmd\pr@textmathcheck is used for checking +% whether we have a single |$| or double |$$|. +% In the latter case, we enter display math (this sort of display math +% is not allowed inside of \LaTeX\ because of inconsistent spacing, +% but surprisingly many people use it nevertheless). Strictly +% speaking, this is incorrect, since not every +% |$$| actually means display math. For example, |\hbox{$$}| will +% because of restricted horizontal mode rather yield an empty text +% math formula. Since our implementation moved the sequence inside of +% a |\vbox|, the interpretation will change. People should just not +% enter rubbish like that. +% \begin{macrocode} +\begingroup +\def\next#1#2{% + \endgroup + \DeclareOption{textmath}{% + \PreviewEnvironment{math}% + \preview@delay{\ifx#1\@undefined \let#1=$%$ + \fi\catcode`\$=\active + \ifx\xyreuncatcodes\@undefined\else + \edef\next{\catcode`@=\the\catcode`@\relax}% + \makeatother\expandafter\xyreuncatcodes\next\fi}% + \pr@advise@ship\(\pr@endaftergroup{}% \) + \pr@advise@ship#1{\@firstoftwo{\let#1=#2% + \futurelet\reserved@a\pr@textmathcheck}}{}}% + \def\pr@textmathcheck{\expandafter\pr@endaftergroup + \ifx\reserved@a#1{#2#2}\expandafter\@gobbletwo\fi#2}} +\lccode`\~=`\$ +\lowercase{\expandafter\next\expandafter~}% + \csname pr@\string$%$ + \endcsname +% +% \end{macrocode} +% \begin{macro}{\pr@endaftergroup} +% This justs ends the box after the group opened by |#1| is closed +% again. +% \begin{macrocode} +%<*active> +\def\pr@endaftergroup#1{#1\aftergroup\pr@endbox} +% +% \end{macrocode} +% \end{macro} +% +% The |graphics| option. +% \begin{macrocode} +%<*!active> +\DeclareOption{graphics}{% + \PreviewMacro[*[[!]{\includegraphics}%]] +} +% \end{macrocode} +% The |floats| option. The complications here are merely to spare us +% bug reports about broken document classes that use |\let| on +% |\endfigure| and similar. Notable culprits that have not been +% changed in years in spite of reports are |elsart.cls| and +% |IEEEtran.cls|. Complain when you are concerned. +% \begin{macrocode} +\def\pr@floatfix#1#2{\ifx#1#2% + \ifx#1\@undefined\else + \PackageWarningNoLine{preview}{% +Your document class has a bad definition^^J +of \string#1, most likely^^J +\string\let\string#1=\string#2^^J +which has now been changed to^^J +\string\def\string#1{\string#2}^^J +because otherwise subsequent changes to \string#2^^J +(like done by several packages changing float behaviour)^^J +can't take effect on \string#1.^^J +Please complain to your document class author}% + \def#1{#2}\fi\fi} +\begingroup +\def\next#1#2{\endgroup + \DeclareOption{floats}{% + \pr@floatfix\endfigure\end@float + \pr@floatfix\endtable\end@float + \pr@floatfix#1\end@dblfloat + \pr@floatfix#2\end@dblfloat + \PreviewSnarfEnvironment[![]{@float}%] + \PreviewSnarfEnvironment[![]{@dblfloat}%] + }} +\expandafter\next\csname endfigure*\expandafter\endcsname + \csname endtable*\endcsname +% \end{macrocode} +% The |sections| option. Two optional parameters might occur in +% |memoir.cls|. +% \begin{macrocode} +\DeclareOption{sections}{% + \PreviewMacro[!!!!!!*[[!]{\@startsection}%]] + \PreviewMacro[*[[!]{\chapter}%]] +} +% \end{macrocode} +% We now interpret any further options as driver files we load. Note +% that these driver files are loaded even when |preview| is not +% active. The reason is that they might define commands (like +% \cmd{\PreviewCommand}) that should be available even in case of an +% inactive package. Large parts of the |preview| package will not +% have been loaded in this case: you have to cater for that. +% \begin{macrocode} +\DeclareOption* + {\InputIfFileExists{pr\CurrentOption.def}{}{\OptionNotUsed}} +% \end{macrocode} +% +% \subsection{Preview attaching commands} +% \begin{macro}{\PreviewMacro} +% As explained above. Detect possible |*| and call appropriate +% macro. +% \begin{macrocode} +\def\PreviewMacro{\@ifstar\pr@starmacro\pr@macro} +% \end{macrocode} +% The version without |*| is now rather straightforward. +% \begin{macro}{\pr@macro} +% \begin{macro}{\pr@domacro} +% \begin{macro}{\pr@macroii} +% \begin{macro}{\pr@endmacro} +% \begin{macrocode} +\long\def\pr@domacro#1#2{% + \long\def\next##1{#2}% + \pr@callafter\next#1]\pr@endparse} +\newcommand\pr@macro[1][]{% + \toks@{\pr@domacro{#1}}% + \long\edef\next[##1]##2{% + \noexpand\pr@advise@ship{##2}{\the\toks@{##1\noexpand\pr@endbox}}{}}% + \@ifnextchar[\next\pr@macroii} +\def\pr@macroii{\next[##1]} +\long\def\pr@endmacro#1{#1\pr@endbox} +% \end{macrocode} +% \end{macro} +% \end{macro} +% \end{macro} +% \end{macro} +% \end{macro} +% \begin{macro}{PreviewMacro*} +% \begin{macro}{\pr@protect@domacro} +% \begin{macro}{\pr@starmacro} +% The version with |*| has to parse the arguments, then throw them +% away. Some internal macros first, then the interface call. +% \begin{macrocode} +\long\def\pr@protect@domacro#1#2{\pr@protect{% + \long\def\next##1{#2}% + \pr@callafter\next#1]\pr@endparse}} +\newcommand\pr@starmacro[1][]{\toks@{\pr@protect@domacro{#1}}% + \long\edef\next[##1]##2{% + \noexpand\pr@advise##2{\the\toks@{##1}}}% + \@ifnextchar[\next{\next[]}} +% \end{macrocode} +% \end{macro} +% \end{macro} +% \end{macro} +% \begin{macro}{\PreviewOpen} +% As explained above. Detect possible |*| and call appropriate macro. +% \begin{macrocode} +\def\PreviewOpen{\@ifstar\pr@starmacro\pr@open} +% \end{macrocode} +% The version without |*| is now rather straightforward. +% \begin{macro}{\pr@open} +% \begin{macrocode} +\newcommand\pr@open[1][]{% + \toks@{\pr@domacro{#1}}% + \long\edef\next[##1]##2{% + \noexpand\pr@advise##2{\begingroup + \noexpand\pr@protect@ship + {\the\toks@{\begingroup\aftergroup\noexpand\pr@endbox##1}}% + {\endgroup}}}% + \@ifnextchar[\next\pr@macroii} +% \end{macrocode} +% \end{macro} +% \end{macro} +% \begin{macro}{\PreviewClose} +% As explained above. Detect possible |*| and call appropriate +% macro. +% \begin{macrocode} +\def\PreviewClose{\@ifstar\pr@starmacro\pr@close} +% \end{macrocode} +% The version without |*| is now rather straightforward. +% \begin{macro}{\pr@close} +% \begin{macrocode} +\newcommand\pr@close[1][]{% + \toks@{\pr@domacro{#1}}% + \long\edef\next[##1]##2{% + \noexpand\pr@advise{##2}{\the\toks@{##1\endgroup}}}% + \@ifnextchar[\next\pr@macroii} +% \end{macrocode} +% \end{macro} +% \end{macro} +% \begin{macro}{\PreviewEnvironment} +% Actually, this ignores any syntax argument. But don't tell +% anybody. Except for the |*|~variant, it respects (actually +% ignores) any argument! Of course, we'll need to deactivate +% |\end{|\meta{environment}|}| as well. +% \begin{macrocode} +\def\PreviewEnvironment{\@ifstar\pr@starenv\pr@env} +\newcommand\pr@starenv[1][]{\toks@{\pr@starmacro[{#1}]}% + \long\edef\next##1##2{% + \the\toks@[{##2}]##1}% + \begingroup\pr@starenvii} +\newcommand\pr@starenvii[2][]{\endgroup + \expandafter\next\csname#2\endcsname{#1}% + \expandafter\pr@starmacro\csname end#2\endcsname} +\newcommand\pr@env[1][]{% + \toks@{\pr@domacro{#1}}% + \long\edef\next[##1]##2{% + \noexpand\expandafter\noexpand\pr@advise@ship + \noexpand\csname##2\noexpand\endcsname{\the\toks@ + {\begingroup\aftergroup\noexpand\pr@endbox##1}}{\endgroup}}% + \@ifnextchar[\next\pr@macroii %] + } +% \end{macrocode} +% \end{macro} +% \begin{macro}{\PreviewSnarfEnvironment} +% This is a nuisance since we have to advise \emph{both} the +% environment and its end. +% \begin{macrocode} +\newcommand{\PreviewSnarfEnvironment}[2][]{% + \expandafter\pr@advise + \csname #2\endcsname{\pr@snarfafter{#1}}% + \expandafter\pr@advise + \csname end#2\endcsname{\pr@endsnarf}} +% +% \end{macrocode} +% \end{macro} +% \begin{macro}{\pr@snarfafter} +% \begin{macro}{\pr@startsnarf} +% \begin{macro}{\pr@endsnarf} +% Ok, this looks complicated, but we have to start a group in order +% to be able to hook \cmd{\pr@endbox} into the game only when +% \cmd{\ifpr@outer} has triggered the start. And we need to get our +% start messages out before parsing the arguments. +% \begin{macrocode} +%<*active> +\let\pr@endsnarf\relax +\long\def\pr@snarfafter#1{\ifpr@outer + \pr@ship@start + \let\pr@ship@start\relax + \let\pr@endsnarf\endgroup + \else + \let\pr@endsnarf\relax + \fi + \pr@protect{\pr@callafter\pr@startsnarf#1]\pr@endparse}} +\def\pr@startsnarf#1{#1\begingroup + \pr@startbox{\begingroup\aftergroup\pr@endbox}{\endgroup}% + \ignorespaces} +% +% \end{macrocode} +% \end{macro} +% \end{macro} +% \end{macro} +% \begin{macro}{\pr@ship@start} +% \begin{macro}{\pr@ship@end} +% The hooks \cmd{\pr@ship@start} and \cmd{\pr@ship@end} can be added +% to by option files by the help of the \cmd{\g@addto@macro} command +% from \LaTeX, and by the \cmd{\pr@addto@front} command from +% |preview.sty| itself. They are called just before starting to +% process some preview, and just after it. Here is the policy for +% adding to them: \cmd{\pr@ship@start} is called inside of the vbox +% |\pr@box| before typeset material gets produced. It is, however, +% preceded by a break command that is intended for usage in +% \cmd{\vsplit}, so that any following glue might disappear. In +% case you want to add any material on the list, you have to precede +% it with \cmd{\unpenalty} and have to follow it with \cmd{\break}. +% You have make sure that under no circumstances any other legal +% breakpoints appear before that, and your material should +% contribute no nonzero dimensions to the page. For the policies of +% the \cmd{\pr@ship@end} hook, see the description on +% page~\pageref{sec:prshipend}. +% \begin{macrocode} +%<*!active> +\let\pr@ship@start\@empty +\let\pr@ship@end\@empty +% \end{macrocode} +% \end{macro} +% \end{macro} +% \begin{environment}{preview} +% \begin{environment}{nopreview} +% First we write the definitions of these environments when +% |preview| is inactive. We will redefine them if |preview| gets +% activated. +% \begin{macrocode} +\newenvironment{preview}{\ignorespaces}{\ifhmode\unskip\fi} +\newenvironment{nopreview}{\ignorespaces}{\ifhmode\unskip\fi} +% \end{macrocode} +% \end{environment} +% \end{environment} +% +% We now process the options and finish in case we are not active. +% \begin{macrocode} +\ProcessOptions\relax +\ifPreview\else\expandafter\endinput\fi +% +% \end{macrocode} +% Now for the redefinition of the |preview| and |endpreview| +% environments: +% \begin{macrocode} +%<*active> +\renewenvironment{preview}{\begingroup + \pr@startbox{\begingroup\aftergroup\pr@endbox}% + {\endgroup}% + \ignorespaces}% + {\ifhmode\unskip\fi\endgroup} +\renewenvironment{nopreview}{\pr@outerfalse\ignorespaces}% + {\ifhmode\unskip\fi} +% \end{macrocode} +% We use the normal output routine, but hijack it a bit for our +% purposes to preserve \cmd{\AtBeginDvi} hooks and not get previews +% while in output: that could become rather ugly. +% +% The main work of disabling normal output relies on a \cmd{\shipout} +% redefinition. +% \begin{macro}{\pr@output} +% \begin{macrocode} +\newtoks\pr@output +\pr@output\output +\output{% + \pr@outerfalse + \let\@begindvi\@empty + \the\pr@output} +\let\output\pr@output +% \end{macrocode} +% \end{macro} +% \begin{macro}{\pr@typeinfos} +% Then we have some document info that style files might want to +% output. +% \begin{macrocode} +\def\pr@typeinfos{\typeout{Preview: Fontsize \f@size pt}% + \ifnum\mag=\@m\else\typeout{Preview: Magnification \number\mag}\fi + \ifx\pdfoutput\@undefined + \ifx\XeTeXversion\@undefined \else + % FIXME: The message should not be emitted if XeTeX does not produce + % PDF. There does not seem to be a primitive for that, though. + \typeout{Preview: PDFoutput 1}% + \fi + \else + \ifx\pdfoutput\relax \else + \ifnum\pdfoutput>\z@ + \typeout{Preview: PDFoutput 1}% + \fi + \fi + \fi +} +\AtBeginDocument{\pr@typeinfos} +% \end{macrocode} +% \end{macro} +% And at the end we load the default configuration file, so that it +% may override settings from this package: +% \begin{macrocode} +\pr@loadcfg{prdefault} +% +% +% \end{macrocode} +% +% \section{The option files} +% \subsection{The \texttt{auctex} option} +% The AUC\TeX\ option will cause error messages to spew. We want them +% on the terminal, but we don't want \LaTeX\ to stop its automated +% run. We delay \cmd{\nonstopmode} in case the user has any +% pseudo-interactive folderol like reading in of file names in his +% preamble. Because we are so good-hearted, we will not break this as +% long as the document has not started, but after that we need the +% error message mechanism operative. +% +% The |\nofiles| command here tries to avoid clobbering input files +% used for references and similar. It will come too late if you call +% the package with \cmd{\AtBeginDocument}, so you'll need to issue +% |\nofiles| yourself in that case. Previously, this was done +% unconditionally in the main style file, but since we don't know what +% the package may be used for, this was inappropriate. +% +% So here is the contents of the |prauctex.def| file: +% \begin{macrocode} +%\ifPreview\else\expandafter\endinput\fi +%\nofiles +%\preview@delay{\nonstopmode} +% \end{macrocode} +% Ok, here comes creative error message formatting. It turns out a +% sizable portion of the runtime is spent in I/O. Making the error +% messages short is an advantage. It is not possible to convince +% \TeX\ to make shorter error messages than this: \TeX\ always wants +% to include context. This is about the shortest \ae sthetic one we +% can muster. +% \begin{macrocode} +%\begingroup +%\lccode`\~=`\- +%\lccode`\{=`\< +%\lccode`\}=`\> +%\lowercase{\endgroup +% \def\pr@msgi{{~}}} +%\def\pr@msgii{Preview: +% Snippet \number\pr@snippet\space} +%\begingroup +%\catcode`\-=13 +%\catcode`\<=13 +%\@firstofone{\endgroup +%\def\pr@msg#1{{% +% \let<\pr@msgi +% \def-{\pr@msgii#1}% +% \errhelp{Not a real error.}% +% \errmessage<}}} +%\g@addto@macro\pr@ship@start{\pr@msg{started}} +%\g@addto@macro\pr@ship@end{\pr@msg{ended.% +% (\number\ht\pr@box+\number\dp\pr@box x\number\wd\pr@box)}} +% \end{macrocode} +% This looks pretty baffling, but it produces something short and +% semi-graphical, namely |<-><->|. That is a macro |<| that expands +% into |<->|, where |<| and |>| are the braces around an +% \cmd{\errmessage} argument and |-| is a macro expanding to the full +% text of the error message. Cough cough. You did not really want to +% know, did you? +% +% Since over/underfull boxes are about the messiest things to parse, +% we disable them by setting the appropriate badness limits and making +% the variables point to junk. We also disable other stuff. While we +% set \cmd{\showboxbreadth} and \cmd{\showboxdepth} to indicate as +% little diagnostic output as possible, we keep them operative, so +% that the user retains the option of debugging using this stuff. The +% other variables concerning the generation of warnings and +% daignostics, however, are more often set by commonly employed +% packages and macros such as \cmd{\sloppy}. So we kill them off for +% good. +% \begin{macrocode} +%\hbadness=\maxdimen +%\newcount\hbadness +%\vbadness=\maxdimen +%\let\vbadness=\hbadness +%\hfuzz=\maxdimen +%\newdimen\hfuzz +%\vfuzz=\maxdimen +%\let\vfuzz=\hfuzz +%\showboxdepth=-1 +%\showboxbreadth=-1 +% \end{macrocode} +% Ok, now we load a possible configuration file. +% \begin{macrocode} +%\pr@loadcfg{prauctex} +% \end{macrocode} +% And here we cater for several frequently used commands in +% |prauctex.cfg|: +% \begin{macrocode} +%\PreviewMacro*[[][#1{}]\footnote +%\PreviewMacro*[?[{@{[]}}{}][#1]\item +%\PreviewMacro*\emph +%\PreviewMacro*\textrm +%\PreviewMacro*\textit +%\PreviewMacro*\textsc +%\PreviewMacro*\textsf +%\PreviewMacro*\textsl +%\PreviewMacro*\texttt +%\PreviewMacro*\textcolor +%\PreviewMacro*\mbox +%\PreviewMacro*[][#1{}]\author +%\PreviewMacro*[][#1{}]\title +%\PreviewMacro*\and +%\PreviewMacro*\thanks +%\PreviewMacro*[][#1{}]\caption +%\preview@delay{\@ifundefined{pr@\string\@startsection}{% +% \PreviewMacro*[!!!!!!*][#1{}]\@startsection}{}} +%\preview@delay{\@ifundefined{pr@\string\chapter}{% +% \PreviewMacro*[*][#1{}]\chapter}{}} +%\PreviewMacro*\index +% \end{macrocode} +% +% \subsection{The \texttt{lyx} option} +% The following is the option providing LyX with info for its preview +% implementation. +% \begin{macrocode} +%\ifPreview\else\expandafter\endinput\fi +%\pr@loadcfg{prlyx} +%\g@addto@macro\pr@ship@end{\typeout{Preview: +% Snippet \number\pr@snippet\space +% \number\ht\pr@box\space \number\dp\pr@box \space\number\wd\pr@box}} +% \end{macrocode} +% +% \subsection{The \texttt{counters} option} +% This outputs a checkpoint. We do this by saving all counter +% registers in backup macros starting with |\pr@c@| in their name. A +% checkpoint first writes out all changed counters (previously +% unchecked counters are not written out unless different from zero), +% then saves all involved counter values. \LaTeX\ tracks its counters +% in the global variable \cmd{\cl@ckpt}. +% \begin{macrocode} +%\ifPreview\else\expandafter\endinput\fi +%\def\pr@eltprint#1{\expandafter\@gobble\ifnum\value{#1}=0% +% \csname pr@c@#1\endcsname\else\relax +% \space{#1}{\arabic{#1}}\fi} +%\def\pr@eltdef#1{\expandafter\xdef +% \csname pr@c@#1\endcsname{\arabic{#1}}} +%\def\pr@ckpt#1{{\let\@elt\pr@eltprint\edef\next{\cl@@ckpt}% +% \ifx\next\@empty\else\typeout{Preview: Counters\next#1}% +% \let\@elt\pr@eltdef\cl@@ckpt\fi}} +%\pr@addto@front\pr@ship@start{\pr@ckpt:} +%\pr@addto@front\pr@ship@end{\pr@ckpt.} +% \end{macrocode} +% +% \subsection{Debugging options} +% Those are for debugging the operation of |preview|, and thus are +% mostly of interest for people that want to use |preview| for their +% own purposes. Since debugging output is potentially confusing to +% the error message parsing from AUC\TeX, you should not turn on +% |\tracingonline| or switch from |\nonstopmode| unless you are +% certain your package will never be used with \previewlatex. +% +% \paragraph{The \texttt{showbox} option} will generate diagnostic +% output for every produced box. It does not delay the resetting of +% the |\showboxbreadth| and |\showboxdepth| parameters so that you can +% still change them after the loading of the package. It does, +% however, move them to the end of the package loading, so that they +% will not be affected by the |auctex| option. +% \begin{macrocode} +%\ifPreview\else\expandafter\endinput\fi +%\AtEndOfPackage{% +% \showboxbreadth\maxdimen +% \showboxdepth\maxdimen} +%\g@addto@macro\pr@ship@end{\showbox\pr@box} +% \end{macrocode} +% +% \paragraph{The \texttt{tracingall} option} is for the really heavy +% diagnostic stuff. For the reasons mentioned above, we do not want +% to change the setting of the interaction mode, nor of the +% |tracingonline| flag. If the user wants them different, he should +% set them outside of the preview boxes. +% \begin{macrocode} +%\ifPreview\else\expandafter\endinput\fi +%\pr@addto@front\pr@ship@start{\let\tracingonline\count@ +% \let\errorstopmode\@empty\tracingall} +% \end{macrocode} +% +% \subsection{Supporting conversions} +% It is not uncommon to want to use the results of |preview| as +% images. One possibility is to generate a flurry of EPS files with +% \begin{quote} +% |dvips -E -i -Ppdf -o| \meta{outputfile}|.000| \meta{inputfile} +% \end{quote} +% However, in case those are to be processed further into graphic +% image files by Ghostscript, this process is inefficient. One cannot +% use Ghostscript in a single run for generating the files, however, +% since one needs to set the page size (or full size pages will be +% produced). The |tightpage| option will set the page dimensions at +% the start of each PostScript page so that the output will be sized +% appropriately. That way, a single pass of Dvips followed by a +% single pass of Ghostscript will be sufficient for generating all +% images. +% +% You will have to specify the output driver to be used, either +% |dvips| or |pdftex|. +% +% \begin{macro}{\PreviewBorder} +% \begin{macro}{\PreviewBbAdjust} +% We start this off with the user tunable parameters which get +% defined even in the case of an inactive package, so that +% redefinitions and assignments to them will always work: +% \begin{macrocode} +%\ifx\PreviewBorder\@undefined +% \newdimen\PreviewBorder +% \PreviewBorder=0.50001bp +%\fi +%\ifx\PreviewBbAdjust\@undefined +% \def\PreviewBbAdjust{-\PreviewBorder -\PreviewBorder +% \PreviewBorder \PreviewBorder} +%\fi +% \end{macrocode} +% \end{macro} +% \end{macro} +% Here is stuff used for parsing this: +% \begin{macrocode} +%\ifPreview\else\expandafter\endinput\fi +%\def\pr@nextbb{\edef\next{\next\space\number\dimen@}% +% \expandafter\xdef\csname pr@bb@% +% \romannumeral\count@\endcsname{\the\dimen@}% +% \advance\count@\@ne\ifnum\count@<5 +% \afterassignment\pr@nextbb\dimen@=\fi} +% \end{macrocode} +% And here is the stuff that we fudge into our hook. Of course, we +% have to do it in a box, and we start this box off with our special. +% There is one small consideration here: it might come before any +% |\AtBeginDvi| stuff containing header specials. It turns out Dvips +% rearranges this amicably: header code specials get transferred to +% the appropriate header section, anyhow, so this ensures that we come +% right after the bop section. We insert the 7~numbers here: the +% 4~bounding box adjustments, and the 3~\TeX\ box dimensions. In case +% the box adjustments have changed since the last time, we write them +% out to the console. +% \begin{macrocode} +%\ifnum\pr@graphicstype=\z@ +% \ifcase +% \ifx\XeTeXversion\@undefined +% \ifx\pdfoutput\@undefined \@ne\fi +% \ifx\pdfoutput\relax \@ne\fi +% \ifnum\pdfoutput>\z@ \tw@\fi \@ne +% \else \thr@@\fi +% \or \ExecuteOptions{dvips}\relax +% \or \ExecuteOptions{pdftex}\relax +% \or \ExecuteOptions{xetex}\relax\fi\fi +%\global\let\pr@bbadjust\@empty +%\pr@addto@front\pr@ship@end{\begingroup +% \let\next\@gobble +% \count@\@ne\afterassignment\pr@nextbb +% \dimen@\PreviewBbAdjust +% \ifx\pr@bbadjust\next +% \else \global\let\pr@bbadjust\next +% \typeout{Preview: Tightpage \pr@bbadjust}% +% \fi\endgroup} +%\ifcase\pr@graphicstype +%\or +% \g@addto@macro\pr@ship@end{\setbox\pr@box\hbox{% +% \special{ps::\pr@bbadjust\space +% \number\ifdim\ht\pr@box>\z@ \ht\pr@box +% \else \z@ +% \fi \space +% \number\ifdim\dp\pr@box>\z@ \dp\pr@box +% \else \z@ +% \fi \space +% \number\ifdim\wd\pr@box>\z@ \wd\pr@box +% \else \z@ +% \fi}\box\pr@box}} +%\or +% \g@addto@macro\pr@ship@end{{\dimen@\ht\pr@box +% \ifdim\dimen@<\z@ \dimen@\z@\fi +% \advance\dimen@\pr@bb@iv +% \dimen@ii=\dimen@ +% \global\pdfvorigin\dimen@ +% \dimen@\dp\pr@box +% \ifdim\dimen@<\z@ \dimen@\z@\fi +% \advance\dimen@-\pr@bb@ii +% \advance\dimen@\dimen@ii +% \global\pdfpageheight\dimen@ +% \dimen@\wd\pr@box +% \ifdim\dimen@<\z@ \dimen@=\z@\fi +% \advance\dimen@-\pr@bb@i +% \advance\dimen@\pr@bb@iii +% \global\pdfpagewidth\dimen@ +% \global\pdfhorigin-\pr@bb@i}} +%\or +% \g@addto@macro\pr@ship@end{\dimen@\ht\pr@box +% \ifdim\dimen@<\z@ \dimen@\z@\fi +% \advance\dimen@\pr@bb@iv +% \dimen@ii=\dimen@ +% \voffset=-1in +% \advance\voffset\dimen@ +% \advance\voffset-\ht\pr@box +% \dimen@\dp\pr@box +% \ifdim\dimen@<\z@ \dimen@\z@\fi +% \advance\dimen@-\pr@bb@ii +% \advance\dimen@\dimen@ii +% \global\pdfpageheight\dimen@ +% \global\paperheight\dimen@ +% \dimen@\wd\pr@box +% \ifdim\dimen@<\z@ \dimen@=\z@\fi +% \advance\dimen@-\pr@bb@i +% \advance\dimen@\pr@bb@iii +% \global\pdfpagewidth\dimen@ +% \hoffset=-1in +% \advance\hoffset-\pr@bb@i +% \let\pr@offset@override\@empty} +%\fi +% \end{macrocode} +% Ok, here comes the beef. First we fish the 7~numbers from the file +% with |token| and convert them from \TeX~|sp| to PostScript points. +% \begin{macrocode} +%\ifnum\pr@graphicstype=\@ne +%\preview@delay{\AtBeginDvi{% +% \end{macrocode} +% Backwards-compatibility. Once we are certain that dvipng-1.6 or +% later is widely used, the three following specials can be exchanged +% for the simple |\special{!/preview@tightpage true def}| +% \begin{macrocode} +% \special{!/preview@tightpage true def (% +% compatibility PostScript comment for dvipng<=1.5 } +% \special{!userdict begin/bop-hook{% +% 7{currentfile token not{stop}if +% 65781.76 div DVImag mul}repeat +% 72 add 72 2 copy gt{exch}if 4 2 roll +% neg 2 copy lt{exch}if dup 0 gt{pop 0 exch}% +% {exch dup 0 lt{pop 0}if}ifelse 720 add exch 720 add +% 3 1 roll +% 4{5 -1 roll add 4 1 roll}repeat +% < /PageOffset[7 -2 roll [1 1 dtransform exch]% +% {0 ge{neg}if exch}forall]>>setpagedevice% +% //bop-hook exec}bind def end} +% \special{!userdict (some extra code to avoid +% dvipng>=1.6 unknown special: +% 7{currentfile token not{stop}if 65781.76 div })) pop} +% \end{macrocode} +% The ``userdict'' at the start of the last special is also there to +% avoid an unknown special in dvipng<=1.6. This is the end of the +% backwards-compatibility code. +% \begin{macrocode} +% \special{!userdict begin/bop-hook{% +% preview-bop-level 0 le{% +% 7{currentfile token not{stop}if +% 65781.76 div DVImag mul}repeat +% \end{macrocode} +% Next we produce the horizontal part of the bounding box as +% \[ (1\mathrm{in},1\mathrm{in}) + +% \bigl(\min(|\wd\pr@box|,0),\max(|\wd\pr@box|,0)\bigr) \] +% and roll it to the bottom of the stack: +% \begin{macrocode} +% 72 add 72 2 copy gt{exch}if 4 2 roll +% \end{macrocode} +% Next is the vertical part of the bounding box. Depth counts in +% negatively, and we again take $\min$ and $\max$ of possible extents +% in the vertical direction, limited by 0. 720 corresponds to +% $10\,\mathrm{in}$ and is the famous $1\,\mathrm{in}$ distance away +% from the edge of letterpaper. +% \begin{macrocode} +% neg 2 copy lt{exch}if dup 0 gt{pop 0 exch}% +% {exch dup 0 lt{pop 0}if}ifelse 720 add exch 720 add +% 3 1 roll +% \end{macrocode} +% Ok, we now have the bounding box on the stack in the proper order +% llx, lly, urx, ury. We add the adjustments: +% \begin{macrocode} +% 4{5 -1 roll add 4 1 roll}repeat +% \end{macrocode} +% The page size is calculated as the appropriate differences, the page +% offset consists of the coordinates of the lower left corner, with +% those coordinates negated that would be reckoned positive in the +% device coordinate system. +% \begin{macrocode} +% < /PageOffset[7 -2 roll [1 1 dtransform exch]% +% {0 ge{neg}if exch}forall]>>setpagedevice}if% +% \end{macrocode} +% So we now bind the old definition of |bop-hook| into our new +% definition and finish it. +% \begin{macrocode} +% //bop-hook exec}bind def end}}} +%\fi +% \end{macrocode} +% +% \subsection{The \texttt{showlabels} option} +% During the editing process, some people like to see the label names +% in their equations, figures and the like. Now if you are using +% Emacs for editing, and in particular \previewlatex, I'd strongly +% recommend that you check out the Ref\TeX\ package which pretty much +% obliterates the need for this kind of functionality. If you still +% want it, standard \LaTeX\ provides it with the |showkeys| package, +% and there is also the less encompassing |showlabels| package. +% Unfortunately, since those go to some pain not to change the page +% layout and spacing, they also don't change |preview|'s idea of the +% \TeX\ dimensions of the involved boxes. +% +% So those packages are mostly useless. So we present here an +% alternative hack that will get the labels through. +% \begin{macro}{\pr@labelbox} +% This works by collecting them into a separate box which we then +% tack to the right of the previews. +% \begin{macrocode} +%\ifPreview\else\expandafter\endinput\fi +%\newbox\pr@labelbox +% \end{macrocode} +% \end{macro} +% \begin{macro}{\pr@label} +% We follow up with our own definition of the \cmd{\label} macro +% which will be active only in previews. The original definition is +% stored in |\pr@@label|. |\pr@lastlabel| contains the last typeset +% label in order to avoid duplication in certain environments, and +% we keep the stuff in |\pr@labelbox|. +% \begin{macrocode} +%\def\pr@label#1{\pr@@label{#1}% +% \end{macrocode} +% Ok, now we generate the box, by placing the label below any existing +% stuff. +% \begin{macrocode} +% \ifpr@setbox\z@{#1}% +% \global\setbox\pr@labelbox\vbox{\unvbox\pr@labelbox +% \box\z@}\egroup\fi} +% \end{macrocode} +% \end{macro} +% \begin{macro}{\ifpr@setbox} +% |\ifpr@setbox| receives two arguments, |#1| is the box into which +% to set a label, |#2| is the label text itself. If a label needs +% to be set (if it is not a duplicate in the current box, and is +% nonempty, and we are in the course of typesetting and so on), we +% are left in a true conditional and an open group with the preset +% box. If nothing should be set, no group is opened, and we get +% into skipping to the closing of the conditional. Since +% |\ifpr@setbox| is a macro, you should not place the call to it +% into conditional text, since it will not pair up with |\fi| until +% being expanded. +% +% We have some trickery involved here. |\romannumeral\z@| expands +% to empty, and will also remove everything between the two of them +% that also expands to empty, like a chain of |\fi|. +% \begin{macrocode} +%\def\ifpr@setbox#1#2{% +% \romannumeral% +% \ifx\protect\@typeset@protect\ifpr@outer\else +% \end{macrocode} +% Ignore empty labels\dots +% \begin{macrocode} +% \z@\bgroup +% \protected@edef\next{#2}\@onelevel@sanitize\next +% \ifx\next\@empty\egroup\romannumeral\else +% \end{macrocode} +% and labels equal to the last one. +% \begin{macrocode} +% \ifx\next\pr@lastlabel\egroup\romannumeral\else +% \global\let\pr@lastlabel\next +% \setbox#1\pr@boxlabel\pr@lastlabel +% \expandafter\expandafter\romannumeral\fi\fi\fi\fi +% \z@\iffalse\iftrue\fi} +% \end{macrocode} +% \end{macro} +% \begin{macro}{\pr@boxlabel} +% Now the actual typesetting of a label box is done. We use a small +% typewriter font inside of a framed box (the default frame/box +% separating distance is a bit large). +% \begin{macrocode} +%\def\pr@boxlabel#1{\hbox{\normalfont +% \footnotesize\ttfamily\fboxsep0.4ex\relax\fbox{#1}}} +% \end{macrocode} +% \end{macro} +% \begin{macro}{\pr@maketag} +% And here is a version for |amsmath| equations. They look better +% when the label is right beside the tag, so we place it there, but +% augment |\box\pr@labelbox| with an appropriate placeholder. +% \begin{macrocode} +%\def\pr@maketag#1{\pr@@maketag{#1}% +% \ifpr@setbox\z@{\df@label}% +% \global\setbox\pr@labelbox\vbox{% +% \hrule\@width\wd\z@\@height\z@ +% \unvbox\pr@labelbox}% +% \end{macrocode} +% Set the width of the box to empty so that the label placement gets +% not disturbed, then append it. +% \begin{macrocode} +% \wd\z@\z@\box\z@ \egroup\fi} +% \end{macrocode} +% \end{macro} +% \begin{macro}{\pr@lastlabel} +% Ok, here is how we activate this: we clear out box and label info +% \begin{macrocode} +%\g@addto@macro\pr@ship@start{% +% \global\setbox\pr@labelbox\box\voidb@x +% \xdef\pr@lastlabel{}% +% \end{macrocode} +% The definitions above are global because we might be in any amount +% of nesting. We then reassign the appropriate labelling macros: +% \begin{macrocode} +% \global\let\pr@@label\label \let\label\pr@label +% \global\let\pr@@maketag\maketag@@@ +% \let\maketag@@@\pr@maketag +%} +% \end{macrocode} +% \end{macro} +% Now all we have to do is to add the stuff to the box in question. +% The stuff at the front works around a bug in |ntheorem.sty|. +% \begin{macrocode} +%\pr@addto@front\pr@ship@end{% +% \ifx \label\pr@label \global\let\label\pr@@label \fi +% \ifx \maketag@@@\pr@maketag +% \global\let\maketag@@@\pr@@maketag \fi +% \ifvoid\pr@labelbox +% \else \setbox\pr@box\hbox{% +% \box\pr@box\,\box\pr@labelbox}% +% \fi} +% \end{macrocode} +% \subsection{The \texttt{footnotes} option} +% This is rather simplistic right now. It overrides the default +% footnote action (which is to disable footnotes altogether for better +% visibility). +% \begin{macrocode} +%\PreviewMacro[[!]\footnote %] +% \end{macrocode} +% +% \section{Various driver files} +% The installer, in case it is missing. If it is to be used via +% |make|, we don't specify an installation path, since +% \begin{quote} +% |make install| +% \end{quote} +% is supposed to cater for the installation itself. +% \begin{macrocode} +% \input docstrip +% \askforoverwritefalse +% \generate{ +% \file{preview.drv}{\from{preview.dtx}{driver}} +% \usedir{tex/latex/preview} +% \file{preview.sty}{\from{preview.dtx}{style} +% \from{preview.dtx}{style,active}} +% \file{prauctex.def}{\from{preview.dtx}{auctex}} +% \file{prauctex.cfg}{\from{preview.dtx}{auccfg}} +% \file{prshowbox.def}{\from{preview.dtx}{showbox}} +% \file{prshowlabels.def}{\from{preview.dtx}{showlabels}} +% \file{prtracingall.def}{\from{preview.dtx}{tracingall}} +% \file{prtightpage.def}{\from{preview.dtx}{tightpage}} +% \file{prlyx.def}{\from{preview.dtx}{lyx}} +% \file{prcounters.def}{\from{preview.dtx}{counters}} +% \file{prfootnotes.def}{\from{preview.dtx}{footnotes}} +% } +% \endbatchfile +% \end{macrocode} +% And here comes the documentation driver. +% \begin{macrocode} +% \documentclass{ltxdoc} +% \usepackage{preview} +% \let\ifPreview\relax +% \newcommand\previewlatex{\texttt{preview-latex}} +% \begin{document} +% \DocInput{preview.dtx} +% \end{document} +% \end{macrocode} +% \Finale{} +% \iffalse +% Local Variables: +% mode: doctex +% TeX-master: "preview.drv" +% End: +% \fi diff -Nru auctex-11.88/latex/README auctex-11.90/latex/README --- auctex-11.88/latex/README 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/latex/README 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,64 @@ +The preview.sty style file +========================== + +Purpose +------- + +The main purpose of the preview package is the extraction of selected +elements from a LaTeX source, like formulas or graphics, into separate +pages of a DVI file. A flexible and convenient interface allows it to +specify what commands and constructs should be extracted. This works +with DVI files postprocessed by either Dvips and Ghostscript or +dvipng, but it also works when you are using PDFTeX for generating PDF +files. + +Current uses of the package include the preview-latex package for +WYSIWYG functionality in the AUCTeX editing environment, generation of +previews in LyX, as part of the operation of the ps4pdf and pst-pdf +packages, the tbook XML system and some other tools. + +Availability +------------ + +The preview package is being developed along and distributed with +AUCTeX. It can therefore be obtained as part of AUCTeX distribution +files available at or its +mirror at . CTAN also provides a standalone +version at . The project page at + offers downloads and +anonymous CVS access for cutting edge versions. For more information +about the preview package please refer to the home page of AUCTeX at +. + +Installation +------------ + +To install the preview style file on its own without the entire AUCTeX +package, run +tex preview.ins +If preview.ins happens to be missing, you can regenerate it by running +tex docstrip +on preview.dtx with the option `installer'. + +Running TeX on preview.ins will then extract further files: +preview.drv which you can run through LaTeX in order to get the +documentation for preview.sty, preview.sty itself, a bunch of option +files with extension .def and a few configuration files with extension +.cfg. In case your docstrip configuration has not already taken care +of that, install the files with extension .sty, .def and .cfg to a +location where LaTeX will be able to find them, generate the +documentation and have fun. + +The license of the original file is the GPL which you'll find a copy +of in the complete AUCTeX distribution. The distribution will also +unpack and install the respective LaTeX files with an +autoconf-supported mechanism, so you might consider using that. + +Bug reporting +------------- + +Please report problems to , including a +small example file which uses the \listfiles statement, and the +resulting log file. + +David Kastrup diff -Nru auctex-11.88/latex.el auctex-11.90/latex.el --- auctex-11.88/latex.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/latex.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,6 +1,6 @@ ;;; latex.el --- Support for LaTeX documents. -;; Copyright (C) 1991, 1993-2014 Free Software Foundation, Inc. +;; Copyright (C) 1991, 1993-2016 Free Software Foundation, Inc. ;; Maintainer: auctex-devel@gnu.org ;; Keywords: tex @@ -30,6 +30,8 @@ (require 'tex) (require 'tex-style) +(require 'tex-ispell) +(eval-when-compile (require 'cl)) ;FIXME: Use cl-lib. ;;; Syntax @@ -106,6 +108,13 @@ ;;; Sections +;; Declare dynamically scoped vars. +(defvar title) +(defvar name) +(defvar level) +(defvar done-mark) +(defvar toc) + (defun LaTeX-section (arg) "Insert a template for a LaTeX section. Determine the type of section to be inserted, by the argument ARG. @@ -433,18 +442,18 @@ (let ((string (completing-read (concat "Level: (default " name ") ") LaTeX-section-list - nil nil nil))) - ; Update name + nil nil nil nil name))) + ;; Update name (if (not (zerop (length string))) (setq name string)) - ; Update level + ;; Update level (setq level (LaTeX-section-level name)))) (defun LaTeX-section-title () "Hook to prompt for LaTeX section title. Insert this hook into `LaTeX-section-hook' to allow the user to change the title of the section inserted with `\\[LaTeX-section]." - (setq title (read-string "Title: " title)) + (setq title (TeX-read-string "Title: " title)) (let ((region (and (TeX-active-mark) (cons (region-beginning) (region-end))))) (when region (delete-region (car region) (cdr region))))) @@ -453,7 +462,7 @@ "Hook to prompt for the LaTeX section entry in the table of content . Insert this hook into `LaTeX-section-hook' to allow the user to insert a different entry for the section in the table of content." - (setq toc (read-string "Toc Entry: ")) + (setq toc (TeX-read-string "Toc Entry: ")) (if (zerop (length toc)) (setq toc nil))) @@ -589,7 +598,7 @@ (dolist (elt prompts) (let* ((optional (vectorp elt)) (elt (if optional (elt elt 0) elt)) - (arg (read-string (concat (when optional "(Optional) ") + (arg (TeX-read-string (concat (when optional "(Optional) ") elt ": ")))) (setq args (concat args (cond ((and optional (> (length arg) 0)) @@ -636,7 +645,11 @@ marker)) (move-marker marker nil))))) -(defvar LaTeX-after-insert-env-hooks nil +(if (featurep 'xemacs) + (define-obsolete-variable-alias 'LaTeX-after-insert-env-hooks 'LaTeX-after-insert-env-hook) + (define-obsolete-variable-alias 'LaTeX-after-insert-env-hooks 'LaTeX-after-insert-env-hook "11.89")) + +(defvar LaTeX-after-insert-env-hook nil "List of functions to be run at the end of `LaTeX-insert-environment'. Each function is called with three arguments: the name of the environment just inserted, the buffer position just before @@ -708,7 +721,9 @@ (if active-mark (progn (or (assoc environment LaTeX-indent-environment-list) - (LaTeX-fill-region content-start (line-beginning-position 2))) + (if auto-fill-function + ;; Fill the region only when `auto-fill-mode' is active. + (LaTeX-fill-region content-start (line-beginning-position 2)))) (set-mark content-start)) (indent-according-to-mode)) (save-excursion (beginning-of-line 2) (indent-according-to-mode)) @@ -721,26 +736,57 @@ (run-hook-with-args 'LaTeX-after-insert-env-hooks environment env-start env-end))) +(defun LaTeX-environment-name-regexp () + "Return the regexp matching the name of a LaTeX environment. +This matches everything different from a TeX closing brace but +allowing one level of TeX group braces." + (concat "\\([^" (regexp-quote TeX-grcl) (regexp-quote TeX-grop) "]*\\(" + (regexp-quote TeX-grop) "[^" (regexp-quote TeX-grcl) + (regexp-quote TeX-grop) "]*" (regexp-quote TeX-grcl) "\\)*[^" + (regexp-quote TeX-grcl) (regexp-quote TeX-grop) "]*\\)")) + +(defvar LaTeX-after-modify-env-hook nil + "List of functions to be run at the end of `LaTeX-modify-environment'. +Each function is called with four arguments: the new name of the +environment, the former name of the environment, the buffer +position just before \\begin and the position just before +\\end.") + (defun LaTeX-modify-environment (environment) "Modify current ENVIRONMENT." - (save-excursion - (LaTeX-find-matching-end) - (re-search-backward (concat (regexp-quote TeX-esc) - "end" - (regexp-quote TeX-grop) - " *\\([a-zA-Z*]*\\)" - (regexp-quote TeX-grcl)) - (save-excursion (beginning-of-line 1) (point))) - (replace-match (concat TeX-esc "end" TeX-grop environment TeX-grcl) t t) - (beginning-of-line 1) - (LaTeX-find-matching-begin) - (re-search-forward (concat (regexp-quote TeX-esc) - "begin" - (regexp-quote TeX-grop) - " *\\([a-zA-Z*]*\\)" - (regexp-quote TeX-grcl)) - (save-excursion (end-of-line 1) (point))) - (replace-match (concat TeX-esc "begin" TeX-grop environment TeX-grcl) t t))) + (let ((goto-end (lambda () + (LaTeX-find-matching-end) + (re-search-backward (concat (regexp-quote TeX-esc) + "end" + (regexp-quote TeX-grop) + "\\(" + (LaTeX-environment-name-regexp) + "\\)" + (regexp-quote TeX-grcl)) + (save-excursion (beginning-of-line 1) (point))))) + (goto-begin (lambda () + (LaTeX-find-matching-begin) + (prog1 (point) + (re-search-forward (concat (regexp-quote TeX-esc) + "begin" + (regexp-quote TeX-grop) + "\\(" + (LaTeX-environment-name-regexp) + "\\)" + (regexp-quote TeX-grcl)) + (save-excursion (end-of-line 1) (point))))))) + (save-excursion + (funcall goto-end) + (let ((old-env (match-string 1))) + (replace-match environment t t nil 1) + (beginning-of-line 1) + (funcall goto-begin) + (replace-match environment t t nil 1) + (end-of-line 1) + (run-hook-with-args 'LaTeX-after-modify-env-hook + environment old-env + (save-excursion (funcall goto-begin)) + (progn (funcall goto-end) (point))))))) (defun LaTeX-current-environment (&optional arg) "Return the name (a string) of the enclosing LaTeX environment. @@ -791,7 +837,7 @@ To insert a hook here, you must insert it in the appropiate style file.") -(defun LaTeX-env-document (&optional ignore) +(defun LaTeX-env-document (&optional _ignore) "Create new LaTeX document. Also inserts a \\documentclass macro if there's none already and prompts for the insertion of \\usepackage macros. @@ -925,7 +971,14 @@ ("eqnarray" . LaTeX-eqnarray-label)) "Lookup prefixes for labels. An alist where the CAR is the environment name, and the CDR -either the prefix or a symbol referring to one." +either the prefix or a symbol referring to one. + +If the name is not found, or if the CDR is nil, no label is +automatically inserted for that environment. + +If you want to automatically insert a label for a environment but +with an empty prefix, use the empty string \"\" as the CDR of the +corresponding entry." :group 'LaTeX-label :type '(repeat (cons (string :tag "Environment") (choice (string :tag "Label prefix") @@ -933,35 +986,46 @@ (make-variable-buffer-local 'LaTeX-label-alist) -(defun LaTeX-label (name type) +(defun LaTeX-label (name &optional type) "Insert a label for NAME at point. -TYPE can be either environment or section. If -`LaTeX-label-function' is a valid function, LaTeX label will -transfer the job to this function." - (let ((prefix (cond - ((eq type 'environment) - (cdr (assoc name LaTeX-label-alist))) - ((eq type 'section) - (if (assoc name LaTeX-section-list) - (if (stringp LaTeX-section-label) - LaTeX-section-label - (and (listp LaTeX-section-label) - (cdr (assoc name LaTeX-section-label)))) - "")))) +The optional TYPE argument can be either environment or section: +in the former case this function looks up `LaTeX-label-alist' to +choose which prefix to use for the label, in the latter case +`LaTeX-section-label' will be looked up instead. If TYPE is nil, +you will be always prompted for a label, with an empty default +prefix. + +If `LaTeX-label-function' is a valid function, LaTeX label will +transfer the job to this function. + +The inserted label is returned, nil if it is empty." + (let ((TeX-read-label-prefix + (cond + ((eq type 'environment) + (cdr (assoc name LaTeX-label-alist))) + ((eq type 'section) + (if (assoc name LaTeX-section-list) + (if (stringp LaTeX-section-label) + LaTeX-section-label + (and (listp LaTeX-section-label) + (cdr (assoc name LaTeX-section-label)))) + "")) + ((null type) + "") + (t + nil))) label) - (when (symbolp prefix) - (setq prefix (symbol-value prefix))) - (when prefix + (when (symbolp TeX-read-label-prefix) + (setq TeX-read-label-prefix (symbol-value TeX-read-label-prefix))) + (when TeX-read-label-prefix (if (and (boundp 'LaTeX-label-function) LaTeX-label-function (fboundp LaTeX-label-function)) (setq label (funcall LaTeX-label-function name)) ;; Use completing-read as we do with `C-c C-m \label RET' - (setq label (completing-read - (TeX-argument-prompt t nil "What label") - (LaTeX-label-list) nil nil prefix)) + (setq label (TeX-read-label t "What label" t)) ;; No label or empty string entered? - (if (or (string= prefix label) + (if (or (string= TeX-read-label-prefix label) (string= "" label)) (setq label nil) (insert TeX-esc "label" TeX-grop label TeX-grcl)) @@ -971,16 +1035,35 @@ label) nil))))) +(defcustom LaTeX-short-caption-prompt-length 40 + "The length that the caption of a figure should be before + propting for \\caption's optional short-version." + :group 'LaTeX-environment + :type 'integer) + +(defun LaTeX-compose-caption-macro (caption &optional short-caption) + "Return a \\caption macro for a given CAPTION as a string. +If SHORT-CAPTION is non-nil pass it as an optional argument to +\\caption." + (let ((short-caption-string + (if (and short-caption + (not (string= short-caption ""))) + (concat LaTeX-optop short-caption LaTeX-optcl)))) + (concat TeX-esc "caption" short-caption-string + TeX-grop caption TeX-grcl))) + (defun LaTeX-env-figure (environment) "Create ENVIRONMENT with \\caption and \\label commands." - (let ((float (and LaTeX-float ; LaTeX-float can be nil, i.e. + (let* ((float (and LaTeX-float ; LaTeX-float can be nil, i.e. ; do not prompt - (read-string "(Optional) Float position: " LaTeX-float))) - (caption (read-string "Caption: ")) - (center (y-or-n-p "Center? ")) - (active-mark (and (TeX-active-mark) - (not (eq (mark) (point))))) - start-marker end-marker) + (TeX-read-string "(Optional) Float position: " LaTeX-float))) + (caption (TeX-read-string "Caption: ")) + (short-caption (when (>= (length caption) LaTeX-short-caption-prompt-length) + (TeX-read-string "(Optional) Short caption: "))) + (center (y-or-n-p "Center? ")) + (active-mark (and (TeX-active-mark) + (not (eq (mark) (point))))) + start-marker end-marker) (when active-mark (if (< (mark) (point)) (exchange-point-and-mark)) @@ -996,13 +1079,14 @@ (when center (insert TeX-esc "centering") (indent-according-to-mode) - (LaTeX-newline)) + (LaTeX-newline) + (indent-according-to-mode)) ;; Insert caption and ask for a label, do nothing if user skips caption (unless (zerop (length caption)) (if (member environment LaTeX-top-caption-list) ;; top caption (progn - (insert TeX-esc "caption" TeX-grop caption TeX-grcl) + (insert (LaTeX-compose-caption-macro caption short-caption)) ;; If `auto-fill-mode' is active, fill the caption. (if auto-fill-function (LaTeX-fill-paragraph)) (LaTeX-newline) @@ -1020,7 +1104,7 @@ ;; If there is an active region point is before the backslash of ;; "\end" macro, go one line upwards. (when active-mark (forward-line -1) (indent-according-to-mode)) - (insert TeX-esc "caption" TeX-grop caption TeX-grcl) + (insert (LaTeX-compose-caption-macro caption short-caption)) ;; If `auto-fill-mode' is active, fill the caption. (if auto-fill-function (LaTeX-fill-paragraph)) ;; ask for a label and if necessary insert a new line between caption @@ -1042,8 +1126,8 @@ Just like array and tabular." (let ((pos (and LaTeX-default-position ; LaTeX-default-position can ; be nil, i.e. do not prompt - (read-string "(Optional) Position: " LaTeX-default-position))) - (fmt (read-string "Format: " LaTeX-default-format))) + (TeX-read-string "(Optional) Position: " LaTeX-default-position))) + (fmt (TeX-read-string "Format: " LaTeX-default-format))) (setq LaTeX-default-position pos) (setq LaTeX-default-format fmt) (LaTeX-insert-environment environment @@ -1062,7 +1146,7 @@ (defun LaTeX-env-list (environment) "Insert ENVIRONMENT and the first item." - (let ((label (read-string "Default Label: "))) + (let ((label (TeX-read-string "Default Label: "))) (LaTeX-insert-environment environment (format "{%s}{}" label)) (end-of-line 0) @@ -1074,8 +1158,8 @@ "Create new LaTeX minipage or minipage-like ENVIRONMENT." (let ((pos (and LaTeX-default-position ; LaTeX-default-position can ; be nil, i.e. do not prompt - (read-string "(Optional) Position: " LaTeX-default-position))) - (width (read-string "Width: " LaTeX-default-width))) + (TeX-read-string "(Optional) Position: " LaTeX-default-position))) + (width (TeX-read-string "Width: " LaTeX-default-width))) (setq LaTeX-default-position pos) (setq LaTeX-default-width width) (LaTeX-insert-environment environment @@ -1086,11 +1170,11 @@ (defun LaTeX-env-tabular* (environment) "Insert ENVIRONMENT with width, position and column specifications." - (let ((width (read-string "Width: " LaTeX-default-width)) + (let ((width (TeX-read-string "Width: " LaTeX-default-width)) (pos (and LaTeX-default-position ; LaTeX-default-position can ; be nil, i.e. do not prompt - (read-string "(Optional) Position: " LaTeX-default-position))) - (fmt (read-string "Format: " LaTeX-default-format))) + (TeX-read-string "(Optional) Position: " LaTeX-default-position))) + (fmt (TeX-read-string "Format: " LaTeX-default-format))) (setq LaTeX-default-width width) (setq LaTeX-default-position pos) (setq LaTeX-default-format fmt) @@ -1104,10 +1188,10 @@ (defun LaTeX-env-picture (environment) "Insert ENVIRONMENT with width, height specifications." - (let ((width (read-string "Width: ")) - (height (read-string "Height: ")) - (x-offset (read-string "X Offset: ")) - (y-offset (read-string "Y Offset: "))) + (let ((width (TeX-read-string "Width: ")) + (height (TeX-read-string "Height: ")) + (x-offset (TeX-read-string "X Offset: ")) + (y-offset (TeX-read-string "Y Offset: "))) (if (zerop (length x-offset)) (setq x-offset "0")) (if (zerop (length y-offset)) @@ -1123,7 +1207,7 @@ "Insert ENVIRONMENT with label for bibitem." (LaTeX-insert-environment environment (concat TeX-grop - (read-string "Label for BibItem: " "99") + (TeX-read-string "Label for BibItem: " "99") TeX-grcl)) (end-of-line 0) (delete-char 1) @@ -1137,7 +1221,7 @@ (error "Put %s environment before \\begin{document}" environment))) (LaTeX-insert-environment environment (concat TeX-grop - (read-string "File: ") + (TeX-read-string "File: ") TeX-grcl)) (delete-horizontal-space)) @@ -1147,7 +1231,10 @@ (save-excursion (LaTeX-find-matching-begin) (end-of-line) - (TeX-parse-arguments args))) + (let ((exit-mark (if (boundp 'exit-mark) + exit-mark + (make-marker)))) + (TeX-parse-arguments args)))) ;;; Item hooks @@ -1169,9 +1256,12 @@ (TeX-insert-macro "item")) (indent-according-to-mode))) +(defvar TeX-arg-item-label-p) + (defun LaTeX-item-argument () "Insert a new item with an optional argument." - (let ((TeX-arg-item-label-p t)) + (let ((TeX-arg-item-label-p t) + (TeX-insert-macro-default-style 'show-optional-args)) (TeX-insert-macro "item"))) (defun LaTeX-item-bib () @@ -1283,12 +1373,31 @@ ;; The below block accounts for one unit of move for ;; one column. - (setq cols (+ cols (skip-chars-forward - LaTeX-array-column-letters end))) + (setq cols (+ cols + ;; treat *-operator specially. + (if (eq (following-char) ?*) + ;; *-operator is there. + (progn + ;; pick up repetition number and count + ;; how many columns are repeated. + (re-search-forward + "\\*[ \t\r\n%]*{[ \t\r\n%]*\\([0-9]+\\)[ \t\r\n%]*}" end) + (let ((n (string-to-number + (match-string-no-properties 1))) + ;; get start and end of repeated spec. + (s (progn (down-list 1) (point))) + (e (progn (up-list 1) (1- (point))))) + (* n (1+ (LaTeX-array-count-columns s e))))) + ;; not *-operator. + (skip-chars-forward + LaTeX-array-column-letters end)))) + ;; Do not skip over `*' (see above) and `[' (siunitx has `S[key=val]':): (skip-chars-forward (concat - "^" LaTeX-array-column-letters - TeX-grop) end) - (if (eq (following-char) ?{) (forward-list 1)) + "^" LaTeX-array-column-letters "*" + TeX-grop LaTeX-optop) end) + (when (or (eq (following-char) ?\{) + (eq (following-char) ?\[)) + (forward-list 1)) ;; Not sure whether this is really necessary or not, but ;; prepare for possible infinite loop anyway. @@ -1304,6 +1413,7 @@ (defvar LaTeX-auto-arguments nil) (defvar LaTeX-auto-optional nil) (defvar LaTeX-auto-env-args nil) +(defvar LaTeX-auto-env-args-with-opt nil) (TeX-auto-add-type "label" "LaTeX") (TeX-auto-add-type "bibitem" "LaTeX") @@ -1397,7 +1507,7 @@ (,(concat "\\\\\\(?:new\\|provide\\)command\\*?{?\\\\\\(" token "+\\)}?") 1 TeX-auto-symbol) (,(concat "\\\\newenvironment\\*?{?\\(" token "+\\)}?\\[\\([0-9]+\\)\\]\\[") - 1 LaTeX-auto-environment) + (1 2) LaTeX-auto-env-args-with-opt) (,(concat "\\\\newenvironment\\*?{?\\(" token "+\\)}?\\[\\([0-9]+\\)\\]") (1 2) LaTeX-auto-env-args) (,(concat "\\\\newenvironment\\*?{?\\(" token "+\\)}?") @@ -1478,8 +1588,10 @@ (point)))) ;; Add entry to output. ((or (string= match ",") (= (point) (point-max))) - (add-to-list 'opts (buffer-substring-no-properties - start (1- (point))) t) + (let ((entry (buffer-substring-no-properties + start (1- (point))))) + (unless (member entry opts) + (setq opts (append opts (list entry))))) (setq start (point))) ;; Get rid of comments. ((string= match "%") @@ -1622,6 +1734,12 @@ (list (nth 0 entry) (string-to-number (nth 1 entry))))) LaTeX-auto-env-args) + ;; Ditto for environments with an optional arg + (mapc (lambda (entry) + (add-to-list 'LaTeX-auto-environment + (list (nth 0 entry) 'LaTeX-env-args (vector "argument") + (1- (string-to-number (nth 1 entry)))))) + LaTeX-auto-env-args-with-opt) ;; Cleanup use of def to add environments ;; NOTE: This uses an O(N^2) algorithm, while an O(N log N) @@ -1669,6 +1787,7 @@ (if (boundp 'local-write-file-hooks) (add-hook 'local-write-file-hooks 'TeX-safe-auto-write) (add-hook 'write-file-hooks 'TeX-safe-auto-write)) + (TeX-bibtex-set-BibTeX-dialect) (set (make-local-variable 'TeX-auto-update) 'BibTeX) (set (make-local-variable 'TeX-auto-untabify) nil) (set (make-local-variable 'TeX-auto-parse-length) 999999) @@ -1698,17 +1817,34 @@ argument, otherwise as a mandatory one." (TeX-argument-insert (eval args) optional)) -(defun TeX-arg-label (optional &optional prompt definition) - "Prompt for a label completing with known labels. +(defvar TeX-read-label-prefix nil + "Initial input for the label in `TeX-read-label.'") + +(defun TeX-read-label (optional &optional prompt definition) + "Prompt for a label completing with known labels and return it. If OPTIONAL is non-nil, insert the resulting value as an optional argument, otherwise as a mandatory one. Use PROMPT as the prompt string. If DEFINITION is non-nil, add the chosen label to the -list of defined labels." - (let ((label (completing-read (TeX-argument-prompt optional prompt "Key") - (LaTeX-label-list)))) +list of defined labels. `TeX-read-label-prefix' is used as +initial input for the label." + (let ((label (completing-read + (TeX-argument-prompt optional prompt "Key") + (LaTeX-label-list) nil nil TeX-read-label-prefix))) (if (and definition (not (string-equal "" label))) (LaTeX-add-labels label)) - (TeX-argument-insert label optional optional))) + label)) + +(defun TeX-arg-label (optional &optional prompt definition) + "Prompt for a label completing with known labels. +If OPTIONAL is non-nil, insert the resulting value as an optional +argument, otherwise as a mandatory one. Use PROMPT as the prompt +string. If DEFINITION is non-nil, add the chosen label to the +list of defined labels. `TeX-read-label-prefix' is used as +initial input for the label." + (TeX-argument-insert + (TeX-read-label optional prompt definition) optional optional)) + +(defvar reftex-ref-macro-prompt) (defun TeX-arg-ref (optional &optional prompt definition) "Let-bind `reftex-ref-macro-prompt' to nil and pass arguments @@ -1719,7 +1855,7 @@ (let ((reftex-ref-macro-prompt nil)) (TeX-arg-label optional prompt definition))) -(defun TeX-arg-index-tag (optional &optional prompt &rest args) +(defun TeX-arg-index-tag (optional &optional prompt &rest _args) "Prompt for an index tag. This is the name of an index, not the entry. @@ -1727,7 +1863,7 @@ argument, otherwise as a mandatory one. Use PROMPT as the prompt string. ARGS is unused." (TeX-argument-insert - (read-string (TeX-argument-prompt optional prompt "Index tag")) optional)) + (TeX-read-string (TeX-argument-prompt optional prompt "Index tag")) optional)) (defun TeX-arg-index (optional &optional prompt &rest args) "Prompt for an index entry completing with known entries. @@ -1871,9 +2007,39 @@ "Prompt for a label completing with known labels. If OPTIONAL is non-nil, insert the resulting value as an optional argument, otherwise as a mandatory one. Use PROMPT as the prompt -string." +string. `TeX-read-label-prefix' is used as initial input for the +label." (TeX-arg-label optional prompt t)) +(defun TeX-arg-default-argument-value (optional &optional prompt) + "Prompt for the default value for the first argument of a LaTeX macro. + +If OPTIONAL is non-nil, insert the resulting value as an optional +argument, otherwise as a mandatory one. Use PROMPT as the prompt +string." + (TeX-argument-insert + (TeX-read-string + (TeX-argument-prompt optional prompt "Default value for first argument")) + optional)) + +(defun TeX-arg-define-macro-arguments (optional &optional prompt) + "Prompt for the number of arguments for a LaTeX macro. If this +is non-zero, also prompt for the default value for the first +argument. + +If OPTIONAL is non-nil, insert the resulting value as an optional +argument, otherwise as a mandatory one. Use PROMPT as the prompt +string." + (let ((arg-count (TeX-read-string + (TeX-argument-prompt optional prompt + "Number of arguments" + nil)))) + (unless (or (string= arg-count "0") + (string= arg-count "")) + (TeX-argument-insert arg-count optional) + (unless (string-equal LaTeX-version "2") + (TeX-arg-default-argument-value optional))))) + (defun TeX-arg-define-macro (optional &optional prompt) "Prompt for a TeX macro with completion. If OPTIONAL is non-nil, insert the resulting value as an optional @@ -1951,21 +2117,21 @@ To insert a hook here, you must insert it in the appropiate style file.") -(defun TeX-arg-document (optional &optional ignore) +(defun TeX-arg-document (optional &optional _ignore) "Insert arguments to documentclass. OPTIONAL and IGNORE are ignored." (let* ((TeX-file-extensions '("cls")) (crm-separator ",") style var options) (unless LaTeX-global-class-files - (if (if (eq TeX-arg-input-file-search 'ask) - (not (y-or-n-p "Find class yourself? ")) - TeX-arg-input-file-search) - (progn - (message "Searching for LaTeX classes...") - (setq LaTeX-global-class-files - (mapcar 'identity (TeX-search-files-by-type 'texinputs 'global t t)))) - LaTeX-style-list)) + (setq LaTeX-global-class-files + (if (if (eq TeX-arg-input-file-search 'ask) + (not (y-or-n-p "Find class yourself? ")) + TeX-arg-input-file-search) + (progn + (message "Searching for LaTeX classes...") + (TeX-search-files-by-type 'texinputs 'global t t)) + LaTeX-style-list))) (setq style (completing-read (concat "Document class: (default " LaTeX-default-style ") ") LaTeX-global-class-files nil nil nil nil LaTeX-default-style)) @@ -1987,7 +2153,7 @@ LaTeX-default-options (mapconcat 'identity LaTeX-default-options ","))) ",")))) - (setq options (read-string "Options: "))) + (setq options (TeX-read-string "Options: "))) (unless (zerop (length options)) (insert LaTeX-optop options LaTeX-optcl) (let ((opts (LaTeX-listify-package-options options))) @@ -2051,7 +2217,7 @@ (TeX-completing-read-multiple "Options: " (mapcar 'list (symbol-value var))) ",")))) - (setq options (read-string "Options: "))) + (setq options (TeX-read-string "Options: "))) (cons packages options)))) (defun LaTeX-arg-usepackage-insert (packages options) @@ -2066,7 +2232,7 @@ (insert TeX-grop (mapconcat 'identity packages ",") TeX-grcl) (run-hooks 'LaTeX-after-usepackage-hook)) -(defun LaTeX-arg-usepackage (optional) +(defun LaTeX-arg-usepackage (_optional) "Insert arguments to usepackage. OPTIONAL is ignored." (let* ((packages-options (LaTeX-arg-usepackage-read-packages-with-options)) @@ -2313,7 +2479,7 @@ :group 'LaTeX-macro :type 'character) -(defun TeX-arg-verb (optional &optional ignore) +(defun TeX-arg-verb (optional &optional _ignore) "Prompt for delimiter and text. If OPTIONAL is non-nil, insert the resulting value as an optional argument, otherwise as a mandatory one. IGNORE is ignored." @@ -2337,8 +2503,8 @@ If OPTIONAL is non-nil, insert the resulting value as an optional argument, otherwise as a mandatory one." - (insert "(" (read-string (concat first ": ")) "," - (read-string (concat second ": ")) ")")) + (insert "(" (TeX-read-string (concat first ": ")) "," + (TeX-read-string (concat second ": ")) ")")) (defun TeX-arg-size (optional) "Insert width and height as a pair. @@ -2461,6 +2627,8 @@ (LaTeX-insert-corresponding-right-macro-and-brace left-macro left-brace optional))))) +(defvar TeX-arg-right-insert-p) + (defun LaTeX-insert-left-brace (arg) "Insert typed left brace ARG times and possibly a correspondig right brace. Automatic right brace insertion is done only if no prefix ARG is given and @@ -2580,7 +2748,7 @@ non-nil, insert it as an optional argument. Use PROMPT as the prompt string. `LaTeX-default-author' is the initial input." (let ((author (if LaTeX-default-author - (read-string + (TeX-read-string (TeX-argument-prompt optional prompt "Author(s)") (if (symbolp LaTeX-default-author) (symbol-value LaTeX-default-author) @@ -2636,6 +2804,9 @@ including values of the variable `LaTeX-verbatim-macros-with-delims' as well.") (make-variable-buffer-local 'LaTeX-verbatim-macros-with-delims-local) +(put 'LaTeX-verbatim-macros-with-delims-local 'safe-local-variable + #'TeX--list-of-string-p) + (defcustom LaTeX-verbatim-macros-with-braces nil "Macros for inline verbatim with arguments in braces, like \\foo{...}. @@ -2658,6 +2829,8 @@ including values of the variable `LaTeX-verbatim-macros-with-braces' as well.") (make-variable-buffer-local 'LaTeX-verbatim-macros-with-braces-local) +(put 'LaTeX-verbatim-macros-with-braces-local 'safe-local-variable + #'TeX--list-of-string-p) (defcustom LaTeX-verbatim-environments '("verbatim" "verbatim*") @@ -2680,6 +2853,8 @@ `LaTeX-verbatim-environments' which returns a value including values of the variable `LaTeX-verbatim-environments' as well.") (make-variable-buffer-local 'LaTeX-verbatim-environments-local) +(put 'LaTeX-verbatim-environments-local 'safe-local-variable + #'TeX--list-of-string-p) (defun LaTeX-verbatim-macros-with-delims () "Return list of verbatim macros with delimiters." @@ -2844,12 +3019,13 @@ ("equation") ("equation*") ("picture") - ("tabbing") - ("table") - ("table*")) + ("tabbing")) "Alist of environments with special indentation. The second element in each entry is the function to calculate the -indentation level in columns." +indentation level in columns. + +Environments present in this list are not filled by filling +functions, see `LaTeX-fill-region-as-paragraph'." :group 'LaTeX-indentation :type '(repeat (list (string :tag "Environment") (option function)))) @@ -2868,13 +3044,15 @@ "*Regexp matching environments with indentation at col 0 for begin/end." :group 'LaTeX-indentation :type 'regexp) +(make-obsolete-variable 'LaTeX-verbatim-regexp 'LaTeX-verbatim-environments-local + "2014-12-19") -(defcustom LaTeX-begin-regexp "begin\\b" +(defcustom LaTeX-begin-regexp "begin\\b\\|\\[" "*Regexp matching macros considered begins." :group 'LaTeX-indentation :type 'regexp) -(defcustom LaTeX-end-regexp "end\\b" +(defcustom LaTeX-end-regexp "end\\b\\|\\]" "*Regexp matching macros considered ends." :group 'LaTeX-indentation :type 'regexp) @@ -2940,7 +3118,8 @@ ;; the 'invisible property. (dolist (ol overlays) (when (extent-property ol 'invisible) - (add-to-list 'ol-specs (list ol (extent-property ol 'invisible))) + (pushnew (list ol (extent-property ol 'invisible)) + ol-specs :test #'equal) (set-extent-property ol 'invisible nil))) (save-excursion (cond ((and fill-prefix @@ -2998,6 +3177,10 @@ (delete-region (line-beginning-position) (point)) (indent-to outer-indent)) +(defun LaTeX-verbatim-regexp () + "Calculate the verbatim env regex from `LaTeX-verbatim-environments'." + (regexp-opt (LaTeX-verbatim-environments))) + (defun LaTeX-indent-calculate (&optional force-type) "Return the indentation of a line of LaTeX source. FORCE-TYPE can be used to force the calculation of an inner or @@ -3029,7 +3212,7 @@ (nth 1 entry))) ((looking-at (concat (regexp-quote TeX-esc) "\\(begin\\|end\\){\\(" - LaTeX-verbatim-regexp + (LaTeX-verbatim-regexp) "\\)}")) ;; \end{verbatim} must be flush left, otherwise an unwanted ;; empty line appears in LaTeX's output. @@ -3161,19 +3344,19 @@ 0) ((looking-at (concat (regexp-quote TeX-esc) "begin *{\\(" - LaTeX-verbatim-regexp + (LaTeX-verbatim-regexp) "\\)}")) 0) ((looking-at (concat (regexp-quote TeX-esc) "end *{\\(" - LaTeX-verbatim-regexp + (LaTeX-verbatim-regexp) "\\)}")) ;; If I see an \end{verbatim} in the previous line I skip ;; back to the preceding \begin{verbatim}. (save-excursion (if (re-search-backward (concat (regexp-quote TeX-esc) "begin *{\\(" - LaTeX-verbatim-regexp + (LaTeX-verbatim-regexp) "\\)}") 0 t) (LaTeX-indent-calculate-last force-type) 0))) @@ -3254,7 +3437,9 @@ ;;; Filling -(defcustom LaTeX-fill-break-at-separators '(\\\( \\\) \\\[ \\\]) +;; The default value should try not to break formulae across lines (this is +;; useful for preview-latex) and give a meaningful filling. +(defcustom LaTeX-fill-break-at-separators '(\\\( \\\[) "List of separators before or after which respectively a line break will be inserted if they do not fit into one line." :group 'LaTeX @@ -3274,6 +3459,12 @@ :group 'LaTeX :type 'boolean) +(defcustom LaTeX-fill-excluded-macros nil + "List of macro names (without leading \\) whose arguments must +not be subject to filling." + :group 'LaTeX + :type '(repeat string)) + (defvar LaTeX-nospace-between-char-regexp (if (featurep 'xemacs) (if (and (boundp 'word-across-newline) word-across-newline) @@ -3296,10 +3487,15 @@ \\\\ \(plus its optional argument) alone. Lines with code comments and lines ending with `\par' are included in filling but act as boundaries. Prefix arg means justify too. From program, -pass args FROM, TO and JUSTIFY-FLAG." +pass args FROM, TO and JUSTIFY-FLAG. + +You can disable filling inside a specific environment by adding +it to `LaTeX-indent-environment-list', only indentation is +performed in that case." (interactive "*r\nP") (let ((end-marker (save-excursion (goto-char to) (point-marker)))) (if (or (assoc (LaTeX-current-environment) LaTeX-indent-environment-list) + (member (TeX-current-macro) LaTeX-fill-excluded-macros) ;; This could be generalized, if there are more cases where ;; a special string at the start of a region to fill should ;; inhibit filling. @@ -3716,8 +3912,7 @@ (when LaTeX-fill-break-at-separators (let ((orig-breakpoint (point)) (final-breakpoint (point)) - start-point - math-sep) + start-point) (save-excursion (beginning-of-line) (LaTeX-back-to-indentation) @@ -3826,8 +4021,8 @@ (if (member match-string '("$" "$$")) (save-excursion (skip-chars-backward "$") - (not (TeX-search-backward-unescaped - match-string (line-beginning-position) t))) + (TeX-search-backward-unescaped + match-string (line-beginning-position) t)) (texmathp-match-switch (line-beginning-position))))) (save-excursion (skip-chars-forward "^ \n") @@ -4089,13 +4284,14 @@ (in-comment (TeX-in-commented-line)) (comment-prefix (and in-comment (TeX-comment-prefix))) (case-fold-search nil)) - (save-excursion - (skip-chars-backward "a-zA-Z \t{") + (let ((pt (point))) + (skip-chars-backward (concat "a-zA-Z \t" (regexp-quote TeX-grop))) (unless (bolp) (backward-char 1) - (and (looking-at regexp) - (char-equal (char-after (1+ (match-beginning 0))) ?e) - (setq level 0)))) + (if (and (looking-at regexp) + (char-equal (char-after (1+ (match-beginning 0))) ?e)) + (setq level 0) + (goto-char pt)))) (while (and (> level 0) (re-search-forward regexp nil t)) (when (or (and LaTeX-syntactic-comments (eq in-comment (TeX-in-commented-line)) @@ -4109,7 +4305,8 @@ (setq level (1+ level)) (setq level (1- level))))) (if (= level 0) - (search-forward "}") + (re-search-forward + (concat TeX-grop (LaTeX-environment-name-regexp) TeX-grcl)) (error "Can't locate end of current environment")))) (defun LaTeX-find-matching-begin () @@ -4124,7 +4321,7 @@ (in-comment (TeX-in-commented-line)) (comment-prefix (and in-comment (TeX-comment-prefix))) (case-fold-search nil)) - (skip-chars-backward "a-zA-Z \t{") + (skip-chars-backward (concat "a-zA-Z \t" (regexp-quote TeX-grop))) (unless (bolp) (backward-char 1) (and (looking-at regexp) @@ -4389,10 +4586,7 @@ "[@A-Za-z]+\\|[ \t]*\\($\\|" TeX-comment-start-regexp "\\)")) (progn - (when (string= (buffer-substring-no-properties - (point) (+ (point) - (length TeX-esc))) - TeX-esc) + (when (looking-at (regexp-quote TeX-esc)) (goto-char (TeX-find-macro-end))) (forward-line 1) (when (< (point) start) @@ -4666,6 +4860,7 @@ (nil "Longrightarrow" "Arrows" 10233) ;; #X27F9 (nil "longleftrightarrow" "Arrows" 10231) ;; #X27F7 (nil "Longleftrightarrow" "Arrows" 10234) ;; #X27FA + (nil "iff" "Arrows" 10234) ;; #X27FA (nil "longmapsto" "Arrows" 10236) ;; #X27FC (nil "hookrightarrow" "Arrows" 8618) ;; #X21AA (nil "rightharpoonup" "Arrows" 8640) ;; #X21C0 @@ -4819,6 +5014,8 @@ ("v W" "varOmega" ("AMS" "Greek Uppercase") 120570) ;; #X1D6FA (nil "dashrightarrow" ("AMS" "Arrows")) (nil "dashleftarrow" ("AMS" "Arrows")) + (nil "impliedby" ("AMS" "Arrows") 10232) ;; #X27F8 + (nil "implies" ("AMS" "Arrows") 10233) ;; #X27F9 (nil "leftleftarrows" ("AMS" "Arrows") 8647) ;; #X21C7 (nil "leftrightarrows" ("AMS" "Arrows") 8646) ;; #X21C6 (nil "Lleftarrow" ("AMS" "Arrows") 8666) ;; #X21DA @@ -5231,6 +5428,9 @@ (define-key map "\C-c\C-q\C-s" 'LaTeX-fill-section) (define-key map "\C-c\C-q\C-e" 'LaTeX-fill-environment) + (define-key map "\C-c\C-z" 'LaTeX-command-section) + (define-key map "\C-c\M-z" 'LaTeX-command-section-change-level) + (define-key map "\C-c." 'LaTeX-mark-environment) ;*** Dubious (define-key map "\C-c*" 'LaTeX-mark-section) ;*** Dubious @@ -5262,9 +5462,9 @@ "Create an entry for the change environment menu." (vector (car entry) (list 'LaTeX-modify-environment (car entry)) t)) -(defun LaTeX-section-enable-symbol (LEVEL) +(defun LaTeX-section-enable-symbol (level) "Symbol used to enable section LEVEL in the menu bar." - (intern (concat "LaTeX-section-" (int-to-string (nth 1 entry)) "-enable"))) + (intern (concat "LaTeX-section-" (int-to-string level) "-enable"))) (defun LaTeX-section-enable (entry) "Enable or disable section ENTRY from `LaTeX-section-list'." @@ -5645,6 +5845,13 @@ ;;;###autoload (add-to-list 'auto-mode-alist '("\\.drv\\'" . latex-mode)) +;; HeVeA files (LaTeX -> HTML converter: http://hevea.inria.fr/) +;;;###autoload +(add-to-list 'auto-mode-alist '("\\.hva\\'" . latex-mode)) + +(when (fboundp 'declare-function) + (declare-function LaTeX-preview-setup "preview")) + ;;;###autoload (defun TeX-latex-mode () "Major mode in AUCTeX for editing LaTeX files. @@ -5676,6 +5883,8 @@ (if (local-variable-p 'LaTeX-biblatex-use-Biber (current-buffer)) (setq LaTeX-using-Biber LaTeX-biblatex-use-Biber))) nil t) (TeX-run-mode-hooks 'text-mode-hook 'TeX-mode-hook 'LaTeX-mode-hook) + (when (fboundp 'LaTeX-preview-setup) + (LaTeX-preview-setup)) (TeX-set-mode-name) ;; Defeat filladapt (if (and (boundp 'filladapt-mode) @@ -5757,6 +5966,17 @@ :type '(repeat regexp) :group 'TeX-command) +(defun LaTeX--after-math-macro-prefix-p () + "Return non-nil if point is after a macro prefix in math mode. +Also sets `match-data' so that group 1 is the already typed +prefix. + +For example, in $a + \a| - 17$ with | denoting point, the +function would return non-nil and `(match-string 1)' would return +\"a\" afterwards." + (and (texmathp) + (TeX-looking-at-backward "\\\\\\([a-zA-Z]*\\)"))) + (defun LaTeX-common-initialization () "Common initialization for LaTeX derived modes." (VirTeX-common-initialization) @@ -5787,7 +6007,7 @@ LaTeX-section-list))) (set (make-local-variable 'TeX-auto-full-regexp-list) - (append LaTeX-auto-regexp-list plain-TeX-auto-regexp-list)) + (append LaTeX-auto-regexp-list plain-TeX-auto-regexp-list)) (LaTeX-set-paragraph-start) (setq paragraph-separate @@ -5803,10 +6023,10 @@ LaTeX-search-files-type-alist) (set (make-local-variable 'LaTeX-item-list) '(("description" . LaTeX-item-argument) - ("thebibliography" . LaTeX-item-bib) - ("array" . LaTeX-item-array) - ("tabular" . LaTeX-item-array) - ("tabular*" . LaTeX-item-tabular*))) + ("thebibliography" . LaTeX-item-bib) + ("array" . LaTeX-item-array) + ("tabular" . LaTeX-item-array) + ("tabular*" . LaTeX-item-tabular*))) (setq TeX-complete-list (append '(("\\\\cite\\[[^]\n\r\\%]*\\]{\\([^{}\n\r\\%,]*\\)" @@ -5829,7 +6049,12 @@ ("\\\\renewenvironment\\*?{\\([A-Za-z]*\\)" 1 LaTeX-environment-list-filtered "}") ("\\\\\\(this\\)?pagestyle{\\([A-Za-z]*\\)" - 1 LaTeX-pagestyle-list "}")) + 2 LaTeX-pagestyle-list "}") + (LaTeX--after-math-macro-prefix-p + 1 (lambda () + (append (mapcar #'cadr LaTeX-math-list) + (mapcar #'cadr LaTeX-math-default))) + (if TeX-insert-braces "{}"))) TeX-complete-list)) (LaTeX-add-environments @@ -5851,7 +6076,7 @@ "sloppypar" "picture" "tabbing" "verbatim" "verbatim*" "flushright" "flushleft" "displaymath" "math" "quote" "quotation" - "abstract" "center" "titlepage" "verse" "eqnarray*" + "center" "titlepage" "verse" "eqnarray*" ;; The following are not defined in latex.el, but in a number of ;; other style files. I'm to lazy to copy them to all the @@ -5876,11 +6101,11 @@ (LaTeX-add-counters "page" "equation" "enumi" "enumii" "enumiii" "enumiv" "footnote" "mpfootnote") - (LaTeX-add-lengths "baselineskip" "baselinestretch" "columnsep" - "columnwidth" "evensidemargin" "linewidth" "oddsidemargin" - "paperwidth" "paperheight" "parindent" "parskip" - "tabcolsep" "textheight" "textwidth" "topmargin" - "unitlength") + (LaTeX-add-lengths "arraycolsep" "arrayrulewidth" "baselineskip" "baselinestretch" + "columnsep" "columnwidth" "doublerulesep" "evensidemargin" + "linewidth" "oddsidemargin" "paperwidth" "paperheight" + "parindent" "parskip" "tabcolsep" "textheight" "textwidth" + "topmargin" "unitlength") (TeX-add-symbols '("addtocounter" TeX-arg-counter "Value") @@ -5898,16 +6123,16 @@ '("label" TeX-arg-define-label) '("pageref" TeX-arg-ref) '("ref" TeX-arg-ref) - '("newcommand" TeX-arg-define-macro [ "Number of arguments" ] t) - '("renewcommand" TeX-arg-macro [ "Number of arguments" ] t) + '("newcommand" TeX-arg-define-macro [ TeX-arg-define-macro-arguments ] t) + '("renewcommand" TeX-arg-macro [ TeX-arg-define-macro-arguments ] t) '("newenvironment" TeX-arg-define-environment [ "Number of arguments"] t t) '("renewenvironment" TeX-arg-environment [ "Number of arguments"] t t) - '("providecommand" TeX-arg-define-macro [ "Number of arguments" ] t) - '("providecommand*" TeX-arg-define-macro [ "Number of arguments" ] t) - '("newcommand*" TeX-arg-define-macro [ "Number of arguments" ] t) - '("renewcommand*" TeX-arg-macro [ "Number of arguments" ] t) + '("providecommand" TeX-arg-define-macro [ TeX-arg-define-macro-arguments ] t) + '("providecommand*" TeX-arg-define-macro [ TeX-arg-define-macro-arguments ] t) + '("newcommand*" TeX-arg-define-macro [ TeX-arg-define-macro-arguments ] t) + '("renewcommand*" TeX-arg-macro [ TeX-arg-define-macro-arguments ] t) '("newenvironment*" TeX-arg-define-environment [ "Number of arguments"] t t) '("renewenvironment*" TeX-arg-environment @@ -6094,6 +6319,7 @@ '("suppressfloats" [ TeX-arg-tb "Suppress floats position" ]) '("ensuremath" "Math commands") '("textsuperscript" "Text") + '("textsubscript" "Text") '("textcircled" "Text") '("mathring" t) @@ -6119,17 +6345,21 @@ (setq TeX-font-replace-function 'TeX-font-replace-macro) (TeX-add-symbols '("newcommand" TeX-arg-define-macro - [ "Number of arguments" ] [ "Default value for first argument" ] t) + [ TeX-arg-define-macro-arguments ] t) '("renewcommand" TeX-arg-macro - [ "Number of arguments" ] [ "Default value for first argument" ] t) + [ TeX-arg-define-macro-arguments ] t) '("providecommand" TeX-arg-define-macro - [ "Number of arguments" ] [ "Default value for first argument" ] t) + [ TeX-arg-define-macro-arguments ] t) '("providecommand*" TeX-arg-define-macro - [ "Number of arguments" ] [ "Default value for first argument" ] t) + [ TeX-arg-define-macro-arguments ] t) '("newcommand*" TeX-arg-define-macro - [ "Number of arguments" ] [ "Default value for first argument" ] t) + [ TeX-arg-define-macro-arguments ] t) '("renewcommand*" TeX-arg-macro - [ "Number of arguments" ] [ "Default value for first argument" ] t) + [ TeX-arg-define-macro-arguments ] t) + '("newenvironment" TeX-arg-define-environment + [ TeX-arg-define-macro-arguments ] t t) + '("renewenvironment" TeX-arg-environment + [ TeX-arg-define-macro-arguments ] t t) '("usepackage" LaTeX-arg-usepackage) '("RequirePackage" LaTeX-arg-usepackage) '("ProvidesPackage" (TeX-arg-file-name-sans-extension "Package name") @@ -6298,10 +6528,10 @@ (format "\\\\end{%s}" (regexp-opt (let (out) - (mapcar (lambda (x) - (when (eq (cadr x) 'LaTeX-indent-tabular) - (push (car x) out))) - LaTeX-indent-environment-list) + (mapc (lambda (x) + (when (eq (cadr x) 'LaTeX-indent-tabular) + (push (car x) out))) + LaTeX-indent-environment-list) out))))) (cond ((looking-at tabular-like-end-regex) beg-col) diff -Nru auctex-11.88/lpath.el auctex-11.90/lpath.el --- auctex-11.88/lpath.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/lpath.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,4 +1,7 @@ ;;; This file is only used for installing AUCTeX. + +;; Copyright (C) 2013 Free Software Foundation, Inc. + ;;; It is not a part of AUCTeX itself. ;; Make sure we get the right files. diff -Nru auctex-11.88/Makefile.in auctex-11.90/Makefile.in --- auctex-11.88/Makefile.in 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/Makefile.in 2017-01-10 21:35:28.000000000 +0000 @@ -2,7 +2,7 @@ # Maintainer: auctex-devel@gnu.org -# Copyright (C) 2003-2008, 2010, 2013, 2014 Free Software +# Copyright (C) 2003-2008, 2010, 2013-2015 Free Software # Foundation, Inc. # This file is part of AUCTeX. @@ -34,12 +34,12 @@ infodir = @infodir@$(null) lispdir = @lispdir@$(null) auctexstartfile=@auctexstartfile@ +previewstartfile = @previewstartfile@ packagelispdir = @packagelispdir@$(null) packagedatadir = @packagedatadir@$(null) packagedir = @packagedir@$(null) autodir = @autodir@$(null) preview_enabled=@preview_enabled@ -subdirs=@subdirs@ styledir = $(packagedatadir)/style AUCTEXDATE = @AUCTEXDATE@ AUCTEXVERSION = @AUCTEXVERSION@ @@ -56,10 +56,11 @@ AUTOLOAD=--eval '(let ((generated-autoload-file (expand-file-name "$@"))) \ (mapcar (function update-file-autoloads) command-line-args-left) \ (save-buffers-kill-emacs t))' -DESCEND=test -z "$(subdirs)" || (OLDPWD="`pwd`";for i in ""$(subdirs);do cd $$i;echo "Descending into `pwd`";$(MAKE) 'DESTDIR=$(DESTDIR)' PACKAGE=$(PACKAGE) $@ || exit $$?;cd "$$OLDPWD";echo "Ascending into $$OLDPWD";done) -EXCLUDEDFILES=autogen.sh .cvsignore .gitignore doc/.gitignore preview/.gitignore \ - preview/latex/.gitignore README.GIT tests +PREVIEW_AUTOLOAD=--eval '(let ((generated-autoload-file (expand-file-name "$@"))) \ + (update-file-autoloads "preview.el")(save-buffers-kill-emacs t))' + +EXCLUDEDFILES=autogen.sh .cvsignore .gitignore doc/.gitignore README.GIT tests build-aux .SUFFIXES: .el .elc .texi @@ -70,6 +71,7 @@ DIST_PREFIX=$(PWD)/auctex-dist FTPDIR = $(DIST_PREFIX)/ftp WWWDIR = $(DIST_PREFIX)/www +CTANDIR = $(DIST_PREFIX)/ctan XEMACS_BUILD_DIR = xemacs-build PREVIEW_BUILD_DIR = preview-build COMMITTER="`git config --get user.name`\ \ \<`git config --get user.email`\>" @@ -82,7 +84,7 @@ AUCSRC = tex.el tex-buf.el tex-style.el plain-tex.el latex.el tex-info.el \ texmathp.el multi-prompt.el tex-mik.el font-latex.el tex-font.el \ context.el context-en.el context-nl.el tex-fold.el \ - toolbar-x.el tex-bar.el bib-cite.el + toolbar-x.el tex-bar.el bib-cite.el tex-ispell.el AUCELC = $(AUCSRC:.el=.elc) STYLESRC = style/prosper.el \ @@ -134,28 +136,89 @@ style/acronym.el style/xparse.el style/fancyvrb.el \ style/tabulary.el style/fontspec.el style/unicode-math.el \ style/luacode.el style/metalogo.el style/english.el \ - style/exercise.el style/plext.el style/cleveref.el + style/exercise.el style/plext.el style/cleveref.el \ + style/eso-pic.el style/fontaxes.el style/AnonymousPro.el \ + style/mdsymbol.el style/MyriadPro.el style/textcomp.el \ + style/XCharter.el style/zlmtt.el style/ifluatex.el \ + style/luatextra.el style/erewhon.el style/baskervaldx.el \ + style/fbb.el style/newtxmath.el style/newtxsf.el \ + style/newtxtext.el style/newtxttt.el style/minted.el \ + style/wrapfig.el style/relsize.el style/currvita.el \ + style/tcolorbox.el style/color.el style/expl3.el \ + style/bidibeamer.el style/enumitem.el style/caption.el \ + style/geometry.el style/ltablex.el style/ltxtable.el \ + style/mn2e.el style/colortbl.el style/attachfile.el \ + style/newpxtext.el style/newpxmath.el style/pdfpages.el \ + style/mnras.el style/environ.el style/polyglossia.el \ + style/vwcol.el style/textpos.el style/transparent.el \ + style/fontenc.el style/Alegreya.el style/gloss-italian.el \ + style/newfloat.el style/subcaption.el style/AlegreyaSans.el \ + style/hologo.el style/theorem.el style/ntheorem.el \ + style/splitidx.el style/tikz.el style/xcolor.el \ + style/pdflscape.el style/commath.el style/empheq.el \ + style/framed.el style/paracol.el style/menukeys.el \ + style/bidi.el style/FiraMono.el style/FiraSans.el \ + style/bicaption.el style/amsfonts.el style/subfiles.el \ + style/dcolumn.el style/mdframed.el style/tcolorboxlib-raster.el \ + style/titleps.el style/titlesec.el style/titletoc.el \ + style/exam.el + STYLEELC = $(STYLESRC:.el=.elc) -CLEANFILES = $(AUCELC) $(STYLEELC) $(MULEELC) +ifeq (@preview_enabled@,yes) + PREVIEWSRC = @PLAT_LISP@ preview.el + PREVIEWELC = $(PREVIEWSRC:.el=.elc) + PREVIEWLATEX = test "x$(packagedir)" != xno || $(MAKE) preview-latex.el + TEXMF = (cd latex ; $(MAKE) all) + + # Install actions + INS_TEXMF = (cd latex ; $(MAKE) DESTDIR=$(DESTDIR) install) + PREVIEW_INS_STARTUP = test $(packagedir) != no || \ + $(INSTALL_DATA) preview-latex.el $(DESTDIR)$(previewstartfile) +else + # Don't do anything with preview if the user doesn't want the + # preview component. + PREVIEWSRC = + PREVIEWELC = + PREVIEWLATEX = + TEXMF = + INS_TEXMF = + PREVIEW_INS_STARTUP = +endif + + + +CLEANFILES = $(AUCELC) $(STYLEELC) $(MULEELC) $(PREVIEWELC) preview-latex.el DISTCLEANFILES = Makefile tex-site.el tex-site.el.out auctex.el \ - auto-loads.el config.* preview/preview.el + auto-loads.el config.* preview.el DISTTEXTS = FAQ INSTALL INSTALL.windows README TODO PROBLEMS.preview NOSEARCH = style/.nosearch -all: lisp docs - $(DESCEND) +all: texmf lisp docs .PHONY: all lisp info dvi some install install-el install-lisp docs \ install-docs install-auto install-metadata install-startup \ install-man clean distclean maintainer-clean extraclean \ - tar-ball-clean check-tag release-commit dist snapshot patch \ - tar-ball rpm-packages wc xemacs-package windows-package \ - release-sign release-upload preview-ball - -lisp: tex-site.el $(AUCSRC) $(STYLESRC) $(MULESRC) - $(ELCC) -f batch-byte-compile $(AUCSRC) $(STYLESRC) $(MULESRC) + tar-ball-clean check-tag check release-commit dist snapshot \ + patch tar-ball rpm-packages wc xemacs-package windows-package \ + release-sign release-upload preview-ball uninstall + +texmf: latex/Makefile + $(TEXMF) + +lisp: tex-site.el $(AUCSRC) $(STYLESRC) $(MULESRC) $(PREVIEWSRC) + $(ELCC) -f batch-byte-compile $(AUCSRC) $(STYLESRC) $(MULESRC) $(PREVIEWSRC) + $(PREVIEWLATEX) + +preview-latex.el: preview.el + rm -f preview-latex.el + -$(EMACS) -batch -no-site-file -no-init-file $(PREVIEW_AUTOLOAD) ; \ + test -r $@ || { \ + echo ";; Auto-generated preview-latex.el" > $@ ; \ + echo " " >> $@ ; \ + $(EMACS) -batch -no-site-file -no-init-file $(PREVIEW_AUTOLOAD) ; \ + } docs: cd doc ; $(MAKE) all @@ -178,13 +241,16 @@ auctex.el: auctex.el.in config.status ./config.status +latex/Makefile: latex/Makefile.in Makefile config.status + ./config.status + configure: configure.ac aclocal.m4 autoconf Makefile: Makefile.in config.status ./config.status -doc/Makefile: doc/Makefile.in config.status ChangeLog +doc/Makefile: doc/Makefile.in config.status ChangeLog.1 ./config.status config.status: configure @@ -203,8 +269,8 @@ some: $(AUCELC) $(STYLEELC) -install: install-lisp install-docs install-images install-startup - $(DESCEND) +install: install-texmf install-lisp install-docs install-images \ + install-startup $(MAKE) 'DESTDIR=$(DESTDIR)' install-metadata install-man: doc/Makefile @@ -212,9 +278,14 @@ $(INSTALL_DATA) RELEASE $(DESTDIR)$(packagedir)/man/auctex install-startup: + $(PREVIEWLATEX) + $(PREVIEW_INS_STARTUP) test $(packagedir) != no || \ $(INSTALL_DATA) auctex.el $(DESTDIR)$(auctexstartfile) +install-texmf: + $(INS_TEXMF) + install-el: -$(MKINSTALLDIRS) $(DESTDIR)$(lispdir) rm -f $(DESTDIR)$(packagelispdir)/tex-site.el # Remove old (Git-version) mistakes @@ -231,10 +302,10 @@ else rm -f $(DESTDIR)$(lispdir)/tex-site.el ; \ fi -$(MKINSTALLDIRS) $(DESTDIR)$(packagelispdir) - @: $(MAKE) ; for x in $(AUCSRC) $(MULESRC); do \ + @: $(MAKE) ; for x in $(AUCSRC) $(MULESRC) $(PREVIEWSRC); do \ echo '$(INSTALL_DATA)' $$x '$(DESTDIR)$(packagelispdir)' ; \ done - @for x in $(AUCSRC) $(MULESRC); do \ + @for x in $(AUCSRC) $(MULESRC) $(PREVIEWSRC); do \ $(INSTALL_DATA) $$x $(DESTDIR)$(packagelispdir) ; \ done; -$(MKINSTALLDIRS) $(DESTDIR)$(styledir) @@ -249,10 +320,10 @@ -$(INSTALL_DATA) $(NOSEARCH) $(DESTDIR)$(autodir) install-lisp: some install-el - @: $(MAKE) ; for x in $(AUCSRC) $(MULESRC); do \ + @: $(MAKE) ; for x in $(AUCSRC) $(MULESRC) $(PREVIEWSRC); do \ echo '$(INSTALL_DATA)' $${x}c '$(DESTDIR)$(packagelispdir)' ; \ done - @for x in $(AUCSRC) $(MULESRC); do \ + @for x in $(AUCSRC) $(MULESRC) $(PREVIEWSRC); do \ $(INSTALL_DATA) $${x}c $(DESTDIR)$(packagelispdir) ; \ done @: $(MAKE) ; for x in $(STYLESRC) ; do \ @@ -282,11 +353,7 @@ install-metadata: test "x$(packagedir)" = xno || { \ $(MKINSTALLDIRS) $(DESTDIR)$(packagedir)/pkginfo || : ; \ - if test "x$(preview_enabled)" = xyes; then \ - $(ELCC) -l preview/prv-install -f preview-make-package $(DESTDIR)$(packagedir) "$(PACKAGE)" \"`echo $(AUCTEXDATE)|sed 's/\(.*\)-\(.*\)-\(.*\)/\1.\2\3/'`\" \"$(AUCTEXVERSION)\" tex-site.el preview/auto.el; \ - else \ - $(ELCC) -l preview/prv-install -f preview-make-package $(DESTDIR)$(packagedir) "$(PACKAGE)" \"`echo $(AUCTEXDATE)|sed 's/\(.*\)-\(.*\)-\(.*\)/\1.\2\3/'`\" \"$(AUCTEXVERSION)\" tex-site.el; \ - fi && \ + $(ELCC) -l prv-install -f preview-make-package $(DESTDIR)$(packagedir) "$(PACKAGE)" \"`echo $(AUCTEXDATE)|sed 's/\(.*\)-\(.*\)-\(.*\)/\1.\2\3/'`\" \"$(AUCTEXVERSION)\" tex-site.el && \ cd $(DESTDIR)$(packagedir) && \ find "etc/$(PACKAGE)" "lisp/$(PACKAGE)" -print >"pkginfo/MANIFEST.$(PACKAGE)" && \ for i in $(PACKAGE_INFO); do \ @@ -295,25 +362,37 @@ echo "pkginfo/MANIFEST.$(PACKAGE)" >> "pkginfo/MANIFEST.$(PACKAGE)" ; \ } +uninstall: + rm -rf $(DESTDIR)$(packagelispdir) $(DESTDIR)$(packagedatadir) \ + $(DESTDIR)$(autodir) + if test X$(packagedir) = Xno ; then \ + rm -f $(DESTDIR)$(lispdir)/tex-site.el \ + $(DESTDIR)$(auctexstartfile) ; \ + else \ + rm -f $(DESTDIR)$(packagedir)/man/auctex/RELEASE \ + $(DESTDIR)$(packagedir)/pkginfo/MANIFEST.$(PACKAGE); \ + fi + cd doc ; $(MAKE) DESTDIR=$(DESTDIR) uninstall + rm -f $(DESTDIR)$(previewstartfile) + rm -rf $(DESTDIR)$(packagelispdir) + (cd latex ; $(MAKE) DESTDIR=$(DESTDIR) uninstall) + .el.elc: $(ELCC) -f batch-byte-compile $< clean: doc/Makefile rm -f $(CLEANFILES) cd doc && $(MAKE) clean - $(DESCEND) distclean: doc/Makefile rm -f $(CLEANFILES) $(DISTCLEANFILES) cd doc && $(MAKE) distclean - $(DESCEND) maintainer-clean: doc/Makefile rm -f $(DISTTEXTS) rm -rf autom4te.cache rm -f $(CLEANFILES) $(DISTCLEANFILES) cd doc && $(MAKE) maintainer-clean - $(DESCEND) extraclean: maintainer-clean rm -f *~ \#*\# @@ -326,37 +405,100 @@ wc $(AUCSRC) $(STYLESRC) # ---------------------------------------------------------------------- +# The targets below update the ChangeLog from git log +# and are intended to be used only by the maintainers. +# These rules are adapted from GNU Emacs Makefile. + +.PHONY: ChangeLog change-history change-history-commit change-history-nocommit +.PHONY: preferred-branch-is-current unchanged-history-files + +CHANGELOG = ChangeLog +auctexlog = build-aux/gitlog-to-auctexlog +# The ChangeLog history files are called ChangeLog.1, ChangeLog.2, ..., +# ChangeLog.$(CHANGELOG_HISTORY_INDEX_MAX). $(CHANGELOG_N) stands for +# the newest (highest-numbered) ChangeLog history file. +CHANGELOG_HISTORY_INDEX_MAX = 1 +CHANGELOG_N = ChangeLog.$(CHANGELOG_HISTORY_INDEX_MAX) + +# Check that we are in a good state for changing history. +PREFERRED_BRANCH = master +preferred-branch-is-current: + git branch | grep -q '^\* $(PREFERRED_BRANCH)$$' +unchanged-history-files: + x=$$(git diff-files --name-only $(CHANGELOG_N) $(auctexlog)) && \ + test -z "$$x" + +# Convert git commit log to ChangeLog file. make-dist uses this. +# I guess this is PHONY so it always updates? +ChangeLog: + ./$(auctexlog) -o $(CHANGELOG) -n $(CHANGELOG_HISTORY_INDEX_MAX) + +# Regular expression that matches the newest commit covered by a ChangeLog. +new_commit_regexp = ^commit [0123456789abcdef]* (inclusive) + +# Copy newer commit messages to the start of the ChangeLog history file, +# and consider them to be older. +change-history-nocommit: #preferred-branch-is-current unchanged-history-files + -rm -f ChangeLog.tmp + $(MAKE) ChangeLog CHANGELOG=ChangeLog.tmp + sed '/^This file records repository revisions/,$$d' \ + ChangeLog.tmp > $(CHANGELOG_N).tmp + new_commit_line=`grep --text '$(new_commit_regexp)' ChangeLog.tmp` && \ + sed 's/$(new_commit_regexp).*/'"$$new_commit_line/" \ + $(CHANGELOG_N) >>$(CHANGELOG_N).tmp + rm ChangeLog.tmp + mv $(CHANGELOG_N).tmp $(CHANGELOG_N) + +change-history: change-history-nocommit + $(MAKE) $@-commit + +# If 'make change-history' fails because the newest ChangeLog history +# file contains invalid text, fix the file by hand and then run +# 'make change-history-commit'. +change-history-commit: + git commit -m'; make $@' $(CHANGELOG_N) $(auctexlog) + +# ---------------------------------------------------------------------- # The targets below are concerned with the release process and # intended to be used only by the maintainers. # Steps for making a release: # -# 1) release-commit TAG= COMMITTER= +# 0) check +# Run tests using ERT tool. Not necessary but strongly suggested before a +# release. +# +# 1) change-history +# Update the ChangeLog file. +# +# 2) release-commit TAG= COMMITTER= # Tag the release. # Pass `COMMITTER=' argument only if it is different from # your git name and email. `' should be in the form # "John Doe " # -# 2) dist TAG= +# 3) dist TAG= # Create the tar ball and other release files and put them into $FTPDIR. # -# 3) xemacs-package TAG= +# 4) xemacs-package TAG= # Create the precompiled XEmacs package. # -# 4) windows-package WEMACSVER= TAG= +# 5) windows-package WEMACSVER= TAG= # Create the precompiled AUCTeX package for Windows. # This requires a compiled Emacs of the same version at location $WEMACS. +# NOTA BENE: you may need to use bash shell for this recipe to work. # -# 5) release-sign TAG= -# Sign the tar ball and create directive files for upload. +# 6) release-sign TAG= +# Sign the tar ball and create directive files for upload. NOTA BENE: you +# may need to use bash shell for this recipe to work. # -# 6) release-upload +# 7) release-upload # Upload files to GNU FTP server. # -# 7) www-doc TAG= GENDOCSPATCH= +# 8) www-doc TAG= # Create documentation for AUCTeX home page. # -# 8) preview-ball TAG= +# 9) preview-ball TAG= # Create preview package. (Not for GNU FTP server but for CTAN.) dist: check-tag tar-ball @@ -366,21 +508,24 @@ check-tag: @if [ "X$(TAG)" = "X" ]; then echo "*** Error: No TAG ***"; exit 1; fi +check: + cd tests && $(MAKE) check + release-commit: check-tag @echo "Tagging release $(TAG) in Git ..." sleep 5 - mv ChangeLog ChangeLog.old - mv preview/ChangeLog preview/ChangeLog.old -# Make sure the release ChangeLog entry is encoded with ISO-8859-1. This -# requires the `iconv' program. - echo `date "+%Y-%m-%d "`" ${COMMITTER}" | iconv -t ISO-8859-1 - > ChangeLog - echo >> ChangeLog - echo " * Version" $(TAG) released. >> ChangeLog - echo >> ChangeLog - cp ChangeLog preview/ChangeLog - cat ChangeLog.old >> ChangeLog - cat preview/ChangeLog.old >> preview/ChangeLog - git commit -m 'Release_$(TAG)' -- ChangeLog preview/ChangeLog + mv $(CHANGELOG_N) ChangeLog.old + mv ChangeLog-preview ChangeLog-preview.old +# Make sure the release ChangeLog entry is encoded with UTF-8. +# This requires the `iconv' program. + echo `date "+%Y-%m-%d "`" ${COMMITTER}" | iconv -t UTF-8 - > $(CHANGELOG_N) + echo >> $(CHANGELOG_N) + echo " * Version" $(TAG) released. >> $(CHANGELOG_N) + echo >> $(CHANGELOG_N) + cp $(CHANGELOG_N) ChangeLog-preview + cat ChangeLog.old >> $(CHANGELOG_N) + cat ChangeLog-preview.old >> ChangeLog-preview + git commit -m 'Release_$(TAG)' -- $(CHANGELOG_N) ChangeLog-preview git tag release_`echo $(TAG) | sed -e 's/[.]/_/g'` @echo @echo "Congratulations! Release $(TAG) of AUCTeX is ready." @@ -407,7 +552,7 @@ cd doc && $(MAKE) extradist rm -f doc/version.texi $(CP) doc/auctex.ps doc/auctex.pdf doc/tex-ref.ps doc/tex-ref.pdf $(FTPDIR) - $(CP) ChangeLog $(FTPDIR) + $(CP) $(CHANGELOG_N) $(FTPDIR) rpm-packages: rpmbuild -ta $(RPM_SIGN) $(FTPDIR)/auctex-$(TAG).tar.gz @@ -425,15 +570,39 @@ $(CP_A) auctex-$(TAG) $(XEMACS_BUILD_DIR) cd $(XEMACS_BUILD_DIR) \ && ./configure INSTALL_INFO=: TEXHASH=: --with-xemacs --with-packagedir=`pwd`/xemacs-package --without-texmf-dir --with-auto-dir=etc/auctex/auto \ - && make all install-man install && cd xemacs-package && tar -cf - --owner=root --group=root . | gzip --best > $(FTPDIR)/auctex-$(TAG)-pkg.tar.gz + && $(MAKE) all install-man install && cd xemacs-package && tar -cf - --owner=root --group=root . | gzip --best > $(FTPDIR)/auctex-$(TAG)-pkg.tar.gz # Pre-compiled AUCTeX package for Emacs on Windows WBUILDDIR=$(PWD)/windows-package WEMACS=/usr/src/emacs-$(WEMACSVER)/src/emacs WPACKAGE=auctex-$(TAG)-e$(WEMACSVER)-msw.zip -WPACKAGEFILES=site-lisp/auctex site-lisp/site-start.d site-lisp/site-start.el \ - site-lisp/tex-site.el var/auctex doc info/dir info/auctex.info* \ - info/preview-latex.info* +# Starting from Emacs 24.4, the name of the Windows package and the tree +# structure of the package have been changed. The following variables cater for +# these differences. +ifeq ($(shell echo "$(WEMACSVER)" | grep '\(2[2-3].[1-4]\|24.[1-3]\)' -),$(WEMACSVER)) + WEMACSDATAROOTDIR="" + WEMACSEXTRACTDIR="" + WEMACSPACKAGE="emacs-$(WEMACSVER)-bin-i386.zip" + WEMACSSITELISP="site-lisp" +else + WEMACSDATAROOTDIR="share/" + WEMACSEXTRACTDIR="emacs-$(WEMACSVER)" +# And just to add more complexity, the package name changed again with Emacs +# 24.5. Actually, we don't really need to keep track of all these changes as we +# should support only the latest Emacs version, but unless something else +# changes again again in the near future we can keep them (and it's useful to +# reproduce old AUCTeX packages!). + ifeq (24.4,$(WEMACSVER)) + WEMACSPACKAGE="emacs-$(WEMACSVER)-bin-i686-pc-mingw32.zip" + else + WEMACSPACKAGE="emacs-$(WEMACSVER)-bin-i686-mingw32.zip" + endif + WEMACSSITELISP="$(WEMACSDATAROOTDIR)/emacs/site-lisp" +endif +WPACKAGEFILES=$(WEMACSSITELISP)/auctex $(WEMACSSITELISP)/site-start.d \ + $(WEMACSSITELISP)/site-start.el $(WEMACSSITELISP)/tex-site.el \ + var/auctex $(WEMACSDOC) $(WEMACSDATAROOTDIR)doc $(WEMACSDATAROOTDIR)info/dir \ + $(WEMACSDATAROOTDIR)info/auctex.info* $(WEMACSDATAROOTDIR)info/preview-latex.info* windows-package: check-tag @if [ "X$(WEMACSVER)" = "X" ]; then \ echo "*** Error: No Emacs version (WEMACSVER) ***"; \ @@ -441,9 +610,9 @@ fi # Make sure the prerequisites are available test -d $(WBUILDDIR) || mkdir $(WBUILDDIR) - test -f $(WBUILDDIR)/emacs-$(WEMACSVER)-bin-i386.zip \ + test -f $(WBUILDDIR)/$(WEMACSPACKAGE) \ || { cd $(WBUILDDIR) \ - && wget http://ftp.gnu.org/gnu/emacs/windows/emacs-$(WEMACSVER)-bin-i386.zip; } + && wget http://ftp.gnu.org/gnu/emacs/windows/$(WEMACSPACKAGE); } test -f $(WBUILDDIR)/auctex-$(TAG).zip \ || { test -f $(FTPDIR)/auctex-$(TAG).zip \ && $(CP) $(FTPDIR)/auctex-$(TAG).zip $(WBUILDDIR); } \ @@ -453,11 +622,11 @@ cd $(WBUILDDIR) \ && rm -rf emacs-$(WEMACSVER) \ && rm -rf auctex-$(TAG) \ - && unzip emacs-$(WEMACSVER)-bin-i386.zip \ + && unzip -d "$(WEMACSEXTRACTDIR)" $(WEMACSPACKAGE) \ && unzip auctex-$(TAG).zip rm -f $(WPACKAGE) # Create site-start.el and site-start.d - cd $(WBUILDDIR)/emacs-$(WEMACSVER)/site-lisp \ + cd $(WBUILDDIR)/emacs-$(WEMACSVER)/$(WEMACSSITELISP) \ && echo -e ";; Load files in \`site-start.d' directory.\ \n(dolist (file (directory-files\ \n (concat (file-name-directory load-file-name) \"site-start.d\")\ @@ -468,13 +637,14 @@ cd $(WBUILDDIR)/auctex-$(TAG) \ && ./configure --prefix=$(WBUILDDIR)/emacs-$(WEMACSVER) \ --without-texmf-dir --with-emacs=$(WEMACS) \ - --with-lispdir=$(WBUILDDIR)/emacs-$(WEMACSVER)/site-lisp \ - --datarootdir=$(WBUILDDIR)/emacs-$(WEMACSVER) \ - && make \ + --with-lispdir=$(WBUILDDIR)/emacs-$(WEMACSVER)/$(WEMACSSITELISP) \ + --datarootdir=$(WBUILDDIR)/emacs-$(WEMACSVER)/$(WEMACSDATAROOTDIR) \ + && $(MAKE) \ && sed -i -e 's/"\/[^\n]\+/(expand-file-name "..\/var\/auctex" (file-name-directory load-file-name))/' tex-site.el \ - && make install + && $(MAKE) install # Create the package test -d $(FTPDIR) || mkdir -p $(FTPDIR) + rm -f $(FTPDIR)/$(WPACKAGE) cd $(WBUILDDIR)/emacs-$(WEMACSVER) \ && zip -r $(FTPDIR)/$(WPACKAGE) $(WPACKAGEFILES) @@ -509,7 +679,8 @@ $(CP) auctex-$(TAG)/doc/*.texi $(WWWDIR)/manual cd $(WWWDIR)/manual \ && wget -O gendocs.sh 'http://cvs.savannah.gnu.org/viewvc/%2acheckout%2a/texinfo/texinfo/util/gendocs.sh' \ - && patch <$(GENDOCSPATCH) \ + && wget -O gendocs.sh.patch 'http://git.savannah.gnu.org/gitweb/?p=auctex.git;a=blob_plain;f=gendocs.sh.patch;hb=gendocspatch' \ + && patch $(FTPDIR)/preview-$(TAG).tar.gz + test -d $(CTANDIR) || mkdir -p $(CTANDIR) +# CTAN requires a top level directory "preview/" for the archive. + cd $(PREVIEW_BUILD_DIR) && mkdir -p preview && \ + cp README preview.dtx preview.ins preview.pdf preview/ && \ + tar -cf - --owner=root --group=root preview/ | gzip --best > $(CTANDIR)/preview-$(TAG).tar.gz diff -Nru auctex-11.88/multi-prompt.el auctex-11.90/multi-prompt.el --- auctex-11.88/multi-prompt.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/multi-prompt.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,6 +1,6 @@ ;;; multi-prompt.el --- Completing read of multiple strings -;; Copyright (C) 1996, 1997, 2000, 2009 Free Software Foundation +;; Copyright (C) 1996, 1997, 2000, 2009, 2014 Free Software Foundation, Inc. ;; Author: Per Abrahamsen ;; Maintainer: auctex-devel@gnu.org @@ -62,7 +62,6 @@ (let* ((minibuffer-local-completion-map new-map) (minibuffer-local-must-match-map new-map) (multi-prompt-found nil) - (done nil) (filter (cond (unique (lambda (x) (and (not (member (car x) multi-prompt-found)) @@ -119,8 +118,8 @@ (interactive) (when (call-interactively 'minibuffer-complete) (let ((content (buffer-substring-no-properties (point-min) (point-max)))) - (when (or (not require-match) - (assoc content table)) + (when (or ;; (not require-match) + (assoc content minibuffer-completion-table)) (throw 'multi-prompt-next content))))) diff -Nru auctex-11.88/plain-tex.el auctex-11.90/plain-tex.el --- auctex-11.88/plain-tex.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/plain-tex.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,6 +1,6 @@ ;;; plain-tex.el --- Support for plain TeX documents. -;; Copyright (C) 2010 Free Software Foundation, Inc. +;; Copyright (C) 2010, 2013, 2016 Free Software Foundation, Inc. ;; Maintainer: auctex-devel@gnu.org ;; Keywords: tex @@ -103,6 +103,12 @@ ;;; The mode +(defconst plain-TeX-dialect :plain-tex + "Default dialect for use with function `TeX-add-style-hook' for +argument DIALECT-EXPR when the hook is to be run only on +plain-TeX file, or any mode derived thereof. See variable +`TeX-style-hook-dialect'." ) + (defcustom plain-TeX-mode-hook nil "A hook run in plain TeX mode buffers." :type 'hook @@ -143,6 +149,7 @@ (VirTeX-common-initialization) (set-syntax-table TeX-mode-syntax-table) (setq local-abbrev-table plain-tex-mode-abbrev-table) + (set (make-local-variable 'TeX-style-hook-dialect) plain-TeX-dialect) (setq paragraph-start (concat "\\(^[ \t]*$" diff -Nru auctex-11.88/preview/auto.el.in auctex-11.90/preview/auto.el.in --- auctex-11.88/preview/auto.el.in 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/preview/auto.el.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,5 +0,0 @@ -@lispGS@ -(defvar preview-lispdir @lisppackagelispdir@) -(add-to-list 'load-path preview-lispdir) -(defvar preview-datadir @lisppackagedatadir@) -@lisppackagetexstyles@ diff -Nru auctex-11.88/preview/ChangeLog auctex-11.90/preview/ChangeLog --- auctex-11.88/preview/ChangeLog 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/preview/ChangeLog 1970-01-01 00:00:00.000000000 +0000 @@ -1,1851 +0,0 @@ -2014-10-29 Mosè Giordano - - * Version 11.88 released. - -2014-10-29 Mosè Giordano - - * latex/preview.dtx: Manually change the release version. - - * preview.el.in: Rename from "preview/preview.el". - (preview-version): Use @PREVIEWVERSION@ autoconf variable. - (preview-release-date): Use @PREVIEWDATE@ autoconf variable. - (preview-report-bug): Adapt to new `preview-version' format. - -2014-06-24 Tassilo Horn - - * preview.el (preview-gs-command): Don't run the mgs command if - mgs is not installed. - -2013-09-05 Tassilo Horn - - * preview.el (preview-lispdir): New defvar. - - * auto.el.in (preview-lispdir): Set it to @lisppackagelispdir@. - -2013-07-03 Tassilo Horn - - * preview.el (preview-gs-command): Change test for `mgs' - functionality to "gs -q -dNODISPLAY -c quit". - -2013-07-02 Tassilo Horn - - * preview.el (preview-gs-command): Better test if `mgs' is - working. - -2013-07-01 Tassilo Horn - - * preview.el (preview-gs-command): Test `mgs' for functionality - before using it. - -2013-06-29 Tassilo Horn - - * preview.el (preview-gs-command): Prefer the TeX distro - ghostscript wrapper scripts `rungs' and `mgs' over calling `gs' - directly which requires it to be in PATH. - -2013-06-26 Tassilo Horn - - * Makefile.in (use-hint): Don't warn about problems with overly - obsolete packages. - -2013-04-08 Tassilo Horn - - * latex/preview.dtx: Fix date format which got converted from - YYYY/MM/DD to YYYY-MM-DD during conversion to git. - -2012-12-04 Tassilo Horn - - Merge revno 314 (Stefan Monnier) from emacs elpa branch: Shorten - copyright year ranges. - - * preview.el: - -2011-01-23 Ralf Angeli - - * preview.el (preview-auto-reveal): Add `forward-char' and - `backward-char' to commands on which to open an overlay. - -2010-10-14 Ralf Angeli - - * preview.el (preview-gs-options): Start gs with -dDELAYSAFER - instead of -dSAFER. - (preview-prepare-fast-conversion): Add relevant files to - PermitFileReading list of paths. - -2010-02-14 Ralf Angeli - - * latex/preview.dtx: Add support for XeTeX. - -2009-06-18 Ralf Angeli - - * preview.el (preview-start-pdf2dsc): Determine the PDF source - depending on the previews being generated from the master or the - region file. - -2008-05-10 Reiner Steib - - * preview.el (preview-auto-cache-preamble): Fix markup in in doc - string. - -2008-02-03 Ralf Angeli - - * Relicense all "GPLv2 or later" files to "GPLv3 or later". - - * COPYING: Switch to GPLv3. - - * preview/Makefile.in, preview/configure.ac, - preview/preview-latex.spec, preview/latex/Makefile.in: Add - copyright and license notices. - -2007-04-29 Ralf Angeli - - * preview.el (preview-parse-messages): Match any closing - parenthesis. - -2007-03-25 David Kastrup - - * prv-xemacs.el (preview-dump-threshold): - - * prv-emacs.el (preview-dump-threshold): Make the dump threshold - closely match what mylatex.ltx expects. - - * latex/preview.dtx: Have the counter output appear before the - snippet start/end messages in order to have the counter - maintenance work out correctly regardless of the order of `auctex' - and `counters' options to preview.el. - -2007-02-09 Masayuki Ataka - - * preview.el (preview-report-bug): Use `AUCTeX-version' instead of - `AUC-TeX-version'. Reported by Ikumi Keita . - -2007-01-12 Ralf Angeli - - * configure.ac: Bump version number. - -2006-12-01 David Kastrup - - * prv-emacs.el (preview-move-point): Do not error out if - `distance' is nil. - - * prv-xemacs.el (preview-supports-image-type): Move so that the - following comment makes sense. - -2006-12-01 Ralf Angeli - - * prv-xemacs.el (preview-move-point): Do not error out if - `distance' is nil. - -2006-10-24 David Kastrup - - * prv-xemacs.el (preview-move-point): rearrange for calling - `preview-auto-reveal' with DISTANCE argument. - - * prv-emacs.el (preview-remove-urgentization): Small optimization. - (preview-move-point): Rearrange to be more efficient in the - absence of overlays. - - * preview.el (preview-auto-reveal): Fetch keybindings of [left] - and [right] at runtime. Change proposed default accordingly. - (preview-at-point): Fix change from 2005-03-15 for cursor - restoration. - (preview-auto-reveal-p): Implement integer MODE and take DISTANCE - argument. - (preview-auto-reveal): Allow DISTANCE. - -2006-10-19 David Kastrup - - * prv-xemacs.el (preview-defmacro): Use `fboundp' instead of - `functionp'. - (add-to-list): compatibility function not needed anymore since - 2006-10-11 change. - -2006-10-18 David Kastrup - - * preview.el (eval-when-compile): restore function definitions of - compatibility macros. - - * prv-xemacs.el (preview-defmacro): Also redefine functions that - actually exist, but save their definition. - - * preview.el (preview-parse-messages): Fix bad regexp. - -2006-10-16 David Kastrup - - * preview.el (preview-parse-messages): Rearrange the regexp for - matching and renumber the matches and match strings accordingly. - -2006-10-11 David Kastrup - - * preview.el (LaTeX-preview-setup): Move setup of - `TeX-error-description-list' and `TeX-expand-list' to AUCTeX - proper. - -2006-10-10 David Kastrup - - * preview.el (preview-gs-filter): Fix prompt match expression to - allow stack garbage > 10. - (preview-gs-open): Assume `.runandhide' is defined (Ghostscript - 6.53 and greater). Don't check Ghostscript stack for correctness, - just leave garbage. - (preview-prepare-fast-conversion): Use `.runandhide' to ignore - garbage left by preamble (such as Omega fonts). - (preview-LaTeX-command): Use "%'" and "%t" expansion strings in - order to allow filenames with spaces in them. - (preview-goto-info-page): Use `info' instead of `Info-goto-node'. - (preview-parse-messages): Spike up terminal log file name tracing - in order to have a reasonable chance of detecting spaces in file - names. - (preview-parse-messages): Massage match string for partial strings - to deal better with TeX-quoted control sequences. - (preview-dump-file-name): The format name should not contain - spaces. Replace them with underlines. - (preview-dump-replacements, preview-undump-replacements): Use a - different replacement in order to work with the new - `preview-LaTeX-command'. - (preview-cache-preamble): shell-quote `preview-format-name'. Keep - `mylatex.ltx' from ignoring spaces in file names. - (TeX-inline-preview-internal): shell-quote `preview-format-name'. - -2006-09-29 David Kastrup - - * preview.el (preview-gs-command): Make default depend on - `system-type', using "GSWIN32C.EXE" on `windows-nt'. - - * configure.ac: If no GhostScript or the standard setting for the - operating system is found, don't override the default. - -2006-09-21 David Kastrup - - * preview.el (preview-TeX-style-cooked): Fix bugs. - (preview-set-texinputs): Use `preview-TeX-style-cooked'. - (preview-TeX-style-dir): Change doc string to reflect new behavior - of `preview-set-texinputs'. - (preview-install-styles): Try to deal with `preview-TeX-style-dir' - properly. Bomb out if no styles found to install. - (preview-report-bug): Add `preview-TeX-style-dir' to reported - variables. - - * configure.ac: Remove `--with-kpathseasep' option. - -2006-09-01 David Kastrup - - * prv-xemacs.el (preview-import-image): Allow strings as image - properties. - - * prv-emacs.el (preview-remove-urgentization) - (preview-import-image): Allow strings as image properties. - - * preview.el (preview-clearout, preview-kill-buffer-cleanup) - (preview-place-preview): Use `timestamp' field universally for - dealing with when to overwrite and when to retain images, don't - rely on filename internals. - (desktop-buffer-preview-misc-data): Use `preview-image' to judge - the availability of savable data. - (preview-reinstate-preview): Allow saving images without - associated filenames. - (preview-format-mml): Deal with string type images. - -2006-08-25 David Kastrup - - * latex/preview.dtx: Use eTeX's `\protected' on redefinitions when - available. - -2006-08-15 David Kastrup - - * latex/preview.dtx: Change from 2006-07-12 could lose the - `AtBeginDvi' material. Fix that. Disable preview within output - routine. - And actually hijack `\output' instead of doing it half way. - -2006-07-28 Reiner Steib - - * latex/Makefile.in (install-texmf): Only update the relevant ls-R - file. - -2006-07-25 David Kastrup - - * latex/preview.dtx: Allow two optional parameters as in - memoir.cls for sections. Also preview chapter headings. - -2006-07-23 Ralf Angeli - - * configure.ac: Fix spelling of MiKTeX. - -2006-07-12 David Kastrup - - * latex/preview.dtx: Add a font-lock helping comment, remove - preview's hook into the output routine, deactivate `\shipout' in a - cleaner manner. - -2006-07-11 David Kastrup - - * latex/preview.dtx: Fix XymTeX catcodes again. - -2006-07-10 Ralf Angeli - - * Makefile.in, latex/Makefile.in (datarootdir): New variable used - by autoconf 2.59e. - -2006-06-12 Ralf Angeli - - * latex/README: Streamline. Add sections. Clean up. - -2006-06-08 David Kastrup - - * latex/README: Adapt to new realities. - -2006-05-25 David Kastrup - - * latex/preview.dtx: Add another fix for XyMTeX (which got the - catcode for @ wrong). - -2006-05-25 Ralf Angeli - - * configure.ac: Bump version number. - - Update address of FSF in GPL notices. - -2006-04-20 David Kastrup - - * preview.el (preview-parse-messages): Adapt parser to - `-file-line-error-style' messages. Try to make the detection of - the current file more robust. Utilize file-line-error messages - for that purpose if they are present. - -2006-03-22 Ralf Angeli - - * Makefile.in (.PHONY, install): Remove `install-metadata'. - (install-metadata): Remove. - -2006-03-22 David Kastrup - - * prv-install.el (preview-make-package-xemacs): Accept list of - files to be appended. - -2006-03-14 Ralf Angeli - - * configure.ac: Use `AC_PROG_MAKE_SET' instead of deprecated - `AC_SET_MAKE'. - -2006-02-21 Ikumi Keita - - * preview.el (preview-error-quote, TeX-inline-preview-internal): - Fix the problem that preview-latex put the preview-image in wrong - place if user compiles iso-2022-jp file on Windows or UNIX, by - using TeX-japanese-process-output-coding-system for - preview-coding-system instead of buffer-file-coding-system if - tex-jp.el is loaded. - -2006-01-29 Ralf Angeli - - * Makefile.in (install-metadata): Let `for' loop return an exit - status of 0. - -2006-01-20 Reiner Steib - - * preview.el (preview-TeX-style-cooked): Fix cond expression. - -2006-01-17 David Kastrup - - * preview.el (preview-TeX-style-cooked): New function, to be used - later. Just checked in so that nobody else feels compelled - writing it. - -2006-01-14 David Kastrup - - * configure.ac: Remove infodir and INSTALL_INFO checks. Don't - check for TEXHASH if it is already set. - -2006-01-13 David Kastrup - - * preview.el (preview-parse-messages): Some ugly fix for - `' style error messages. - -2005-12-31 David Kastrup - - * Makefile.in (ELCC, AUCTEX): Put "." in front of load-path to - avoid picking up outdated `prv-*.el*' files from the installation - directory. - -2005-12-17 Ralf Angeli - - * configure.ac: Bump version number. - -2005-10-24 Ralf Angeli - - * configure.ac: Import `TEX' in unquoted form. - -2005-10-13 Ralf Angeli - - * configure.ac: Change wrongly used `previewdatadir' to - `previewlispdir'. - Change version number in `AC_INIT'. - -2005-10-03 Ralf Angeli - - * prv-xemacs.el (preview-check-changes): Delete detached extents. - -2005-09-27 Ralf Angeli - - * configure.ac: Document option for specifying AUCTeX startfile as - --with-previewstartfile, not --with-preview-startfile which does - not work. - Use matching package names for determining the kpathsea path - separator both internally and in the option name which now is - --with-kpathseasep. - Fix the quadrigraph for the closing bracket in the - kpathsesep-related error message. - -2005-09-25 Ralf Angeli - - * latex/preview.dtx: Add space for nicer formatting in version - output. Adapt checksum. - -2005-09-25 David Kastrup - - * latex/preview.dtx: Try fixing the release parsing/grouping. - -2005-09-25 Ralf Angeli - - * latex/README (CTAN): Bump version number. - - * latex/preview.dtx: Fix case in release tag parsing. - -2005-09-24 David Kastrup - - * latex/preview.dtx: Try parsing version correctly by treating - underlines in the release tag properly. - -2005-09-24 Ralf Angeli - - * preview.el (preview-version): Extract version number from - release tag. - -2005-08-18 Ralf Angeli - - * configure.ac: Import unquoted variables from top-level configure - script. - -2005-07-15 David Kastrup - - * latex/preview.dtx: Don't talk nonsense about the footnote macro, - and don't define it nonsensical for AUCTeX. - Reproduce `\@startsection' command to keep numbering correct in - default configuration for AUCTeX. - -2005-07-14 David Kastrup - - * configure.ac: protect against packagedir starting with `-' - -2005-07-11 David Kastrup - - * preview.el (preview-at-point): Join adjacent touched previews - for regeneration. - - * prv-emacs.el (preview-mode-setup): - - * prv-xemacs.el (preview-mode-setup): Use correct string for - resetting watch on preamble. - -2005-07-05 David Kastrup - - * preview.el (preview-string-expand): Allow substrings to be - controlled by booleans. - (preview-expandable-string): Adapt type to that. - (preview-required-option-list): Make dependent on - `preview-preserve-counters'. - (preview-preserve-counters): New boolean. - -2005-06-30 jalar - - * latex/preview.dtx: : added comments - -2005-06-28 Jan-Ake Larsson - - * latex/preview.dtx: Add version number in a \special, in dvips - mode. Fix mismatched parantheses. - -2005-06-27 David Kastrup - - * latex/preview.dtx: Put version into `\pr@version'. - -2005-06-27 Jan-Ake Larsson - - * latex/preview.dtx: Add backwards-compatibility for dvipng <= 1.5 - - * latex/preview.dtx: Add preview@tightpage - -2005-06-24 David Kastrup - - * prv-install.el (preview-make-package-xemacs): Add author-version. - - * preview.el (preview-TeX-style-dir): Change docs. - - * latex/Makefile.in (preview.dvi): Depend on preview.sty - (preview.pdf): Same here. - - * configure.ac: Remove checks for PERL and info-related stuff. - Add . into search path first. - - * Makefile.in (texmf): Depend on latex/Makefile - (latex/Makefile, auto.el, configure, Makefile, config.status): - targets to make sure that Makefile and stuff are up to date. - (install-metadata): pass author version into prv-install.el - -2005-06-21 Ralf Angeli - - * configure.ac: Make message at end of configuration clearer. - Remove redundant build hint. - - * .cvsignore: Remove irrelevant entries. - -2005-06-21 David Kastrup - - * configure.ac: correct comparison. - -2005-06-20 David Kastrup - - * RELEASE: Remove (folded into ../RELEASE). - -2005-06-18 David Kastrup - - * preview.el (preview-gs-dvips-process-setup) - (preview-dvipng-process-setup): Improve error message. - (preview-parse-messages): Don't throw error on nil parsestate if - we are in error unwinding mode already. - -2005-06-14 David Kastrup - - * README.CVS: Remove. Top file should be sufficient. - - * autogen.sh: Remove. We have its functionality in the top - directory. - -2005-06-08 Ralf Angeli - - * Makefile.in (docs, install-docs): Remove. - (all): Do not depend on `docs' anymore. - (.PHONY): Do not depend on `docs' and `install-docs' anymore. - (clean, maintainer-clean): Do not descend into doc directory - anymore. - - * autogen.sh: Do not generate documentation anymore. - - * configure.ac: Remove doc/Makefile from AC_OUTPUT. - - * doc/todo.texi: Move to AUCTeX's main doc/ directory as - preview-todo.texi. - - * doc/readme.texi: Move to AUCTeX's main doc/ directory as - preview-readme.texi. - - * doc/problems.texi: Move to AUCTeX's main doc/ directory as - preview-problems.texi. - - * doc/preview-dtxdoc.pl, doc/preview-latex.texi: Move to AUCTeX's - main doc/ directory. - - * doc/faq.texi: Move to AUCTeX's main doc/ directory as - preview-faq.texi. - - * doc/copying.texi: Move to AUCTeX's main doc/ directory. - - * doc/Makefile.in: Remove. - - * doc/.cvsignore: Remove. - -2005-06-06 David Kastrup - - * configure.ac: Remove call to MAKEINFO_CHECK_MACROS: we expect a - recent enough makeinfo version for bootstrapping, anyway. - - * doc/Makefile.in (MAKEINFO_MACROS): remove - (TEXINFOINCLUDES): Remove unused TEXIPWD hack. Troublesome. - -2005-06-04 David Kastrup - - * doc/Makefile.in (TEXIFILES): Oops, depends on ../../doc/macros.texi - - * latex/Makefile.in (MKINSTALLDIRS): - - * doc/Makefile.in (MKINSTALLDIRS): - - * Makefile.in (MKINSTALLDIRS): Use mkinstalldirs from AUCTeX. - - * mkinstalldirs: remove in favor of ../mkinstalldirs - - * doc/Makefile.in (TEXI2HTML): Use TEXI* tools and TEXINFOINCLUDES. - (../README): et al. Depend on ../../doc/macros.texi - - * configure.ac: Check and test for TEXI* as well. Quotify if - necessary. - - * autogen.sh: Look in .. for macros. - - * doc/Makefile.in (preview-latex.dvi): Use texi2dvi. - (preview-latex.pdf): Use texi2pdf. - (preview-latex.ps): Use -Ppdf option. - (preview-latex.info, ../README, ../FAQ, ../PROBLEMS, ../TODO): - deal with ../../doc/macros.texi - -2005-05-25 David Kastrup - - * circ.tex (section{Die gerade Linie}): Make the intentional - errors more conspicuous. - -2005-05-24 David Kastrup - - * aclocal.m4: Use elif for prettiness. - - * prv-xemacs.el (preview-mode-setup): Change watch condition. - (preview-watch-preamble): Accept command. - (preview-unwatch-preamble): Change unwatch method. - (preview-preamble-check-change): Change check. - - * prv-emacs.el (preview-preamble-changed-function): First unwatch - preamble, then kill format. - (preview-watch-preamble): Accept command to watch for. - (preview-unwatch-preamble): Adapt to new `format-cons' format. - (preview-mode-setup): Change watch condition. - - * preview.el (preview-dumped-alist): Change definition. - (preview-parse-messages): Use `string-to-number' instead of - obsoleted `string-to-int'. - (preview-cache-preamble): Add format-cons arg. Only cache - preamble if there is no cache with the same command yet. - Precalculate command and check whether it matches previous one. - If so, omit dumping. - (preview-region, preview-document): Expand command here. - (preview-generate-preview): Accept expanded command. Always - tentatively dump command (unless disabled) and set sentinel only - if this succeeded. - (TeX-inline-preview-internal): Set command buffer at start. Use - `commandbuff' argument rather than `TeX-command-buffer'. - Raise error at different point. - -2005-05-22 David Kastrup - - * aclocal.m4: Allow --with-emacs=sth and --without-xemacs and - similar combinations as long as they are more or less consistent. - -2005-05-21 Ralf Angeli - - * prv-install.el (preview-make-package-xemacs): Cater for XEmacs - 21.5 which uses a different interface for generating autoloads at - present. - -2005-05-21 David Kastrup - - * doc/wininstall.texi: Editing changes. Last checkin before - removal. - - * doc/install.texi: Editing changes. Last checkin before removal. - - * doc/faq.texi (Customization): Don't use @var inappropriately. - - * autogen.sh: Remove generation of auto.texi. - - * doc/preview-latex.texi (Installation): Refer to AUCTeX manual. - (Keys and lisp): Some formatting changes. - - * doc/Makefile.in (TEXIFILES): Remove wininstall.texi and - install.texi. - (DISTTEXTS): Remove ../INSTALL and ../INSTALL.windows - (../INSTALL, ../INSTALL.windows): Remove. - - * doc/problems.texi (Known problems): Remove old AUCTeX advice. - Remove explicit node names. - (Emacs problems): Rewrite. Mention precompiled CVS Emacsen. - Refer to AUCTeX manual. - (AUCTeX prior to 11.0): Remove. - (Too small bounding boxes): Reword. - (x-symbol interoperation): Explain 8-bit cleanliness somewhat more. - -2005-05-20 Ralf Angeli - - * preview.el (preview-specs-type): Use an extra :value keyword to - avoid a bug in `widget-convert' of XEmacs 21.4 and Emacs 21. - -2005-05-18 David Kastrup - - * doc/preview-dtxdoc.pl: Don't use \n in character ranges since it - is not actually a character in Windows. - -2005-05-17 David Kastrup - - * Makefile.in (lisp): Rewrite condition to make `make -n' work, - also non-Posix shells. - (install-metadata): Rewrite stuff for non-Posix shells. - (preview-latex.el): Same here. - (install-metadata): ignore return state of mkinstalldirs. - -2005-05-02 David Kastrup - - * doc/wininstall.texi: - - * doc/install.texi: Overhaul, use auto.texi. - - * doc/Makefile.in (../INSTALL, ../INSTALL.windows): add auto.texi - dependence. - (maintainer-clean): remove auto.texi. - - * autogen.sh: Generate auto.texi - - * README.CVS: Some modifications. - - * aclocal.m4 (EMACS_PATH_LISPDIR): better help. - -2005-05-01 David Kastrup - - * doc/install.texi (Configure): Synch with auctex. - -2005-04-30 David Kastrup - - * configure.ac: Use existing variables packagedatadir, - packagelispdir. - If configuring a package and infodir is defaulted, disable - install-info. - Disable TEXHASH when installing --without-texmfdir. Move TEXHASH - test. - - * aclocal.m4: Use existing lispdir variable. - - * prv-install.el (preview): don't require - (preview-make-package-xemacs): several changes to command line - options. - - * Makefile.in (lisp): rename from elisp for harmony with AUCTeX. - (install-images): rename from install-icons. - (install-metadata): new options for prv-install.el - -2005-04-29 David Kastrup - - * aclocal.m4: echo date correctly. - -2005-04-28 David Kastrup - - * aclocal.m4 (AUCTEX_AUTO_DIR): simplify. - (AC_LISPIFY_DIR): add third argument. Simplify a few common - expressions. - -2005-04-27 David Kastrup - - * aclocal.m4: sed paranoia. - -2005-04-27 Ralf Angeli - - * aclocal.m4 (AC_DATE_VERSION_FROM_CHANGELOG): Escape `+'. Add - regexp group. Close function. - -2005-04-27 David Kastrup - - * preview.el (TeX-inline-preview-internal): Don't try interpreting - coding-system if it is nil. - - * aclocal.m4 (AC_DATE_VERSION_FROM_CHANGELOG): actually look into - the ChangeLog file. Uh. - - * latex/README (Note): Add bug reporting address. - -2005-04-19 David Kastrup - - * preview.el (preview-install-styles): Add autoload cookie. - -2005-04-18 David Kastrup - - * preview.el (preview-dump-state): New function to get run buffer - info. - (preview-report-bug): Use it. - - * Makefile.in (install-metadata): include directories in `MANIFEST'. - -2005-04-16 David Kastrup - - * latex/preview.dtx: Work around another ntheorem bug affecting - showlabels. - -2005-04-12 David Kastrup - - * configure.ac: Don't bother about pre-2.5 autoconf versions. - - * doc/faq.texi (Customization): Remove lamentation that PDF - foreground is fixed to black. - - * preview.el (preview-pdf-color-string): New function. - (preview-pdf2dsc-sentinel): Use it. - - * configure.ac: renamed from configure.in - -2005-04-11 jalar - - * configure.in: Minimal changes to printouts - -2005-04-11 Ralf Angeli - - * preview.el (preview-set-texinputs): Fix grouping. - -2005-04-11 David Kastrup - - * prv-install.el (preview-make-package-xemacs): Don't generate - manifest and take package name from command line. - - * configure.in: Don't expose `lispdir'. Explain `TEXHASH', - `PERL', `MAKEINFO', `INSTALL_INFO'. - - * latex/Makefile.in (texmfdir): Don't import. - - * Makefile.in (lispdir): Don't import. - - * preview.el (preview-counter-find): Fix bug with `(marker)'. - - * latex/Makefile.in (exec_prefix, libdir): Export. - - * doc/install.texi (Configure): Explain `--without-texmf-dir'. - (Advice for package providers): Don't trash talk AUCTeX - preactivation. - (Advice for package providers): Mention `--without-texmf-dir'. - - * doc/Makefile.in (exec_prefix, libdir): export. - - * preview.el (preview-datadir): Use instead of `preview-icondir'. - (preview-filter-specs): Use it. - (preview-TeX-style-dir): New variable for uninstalled styles - (preview-set-texinputs): Add or remove it from TEXINPUTS - environment. - (preview-TeX-style-dir): proper customization. - (preview-install-styles): New function to install styles - permanently. - - * configure.in: use `packagedatadir' instead of `icondir'. Add - check for `kpathseaseparator'. Shell-quote and export - `exec_prefix' and `libdir'. - - * auto.el.in (preview-datadir): replace preview-icondir, and add - `lisppackagetexstyles' invocation. - - * aclocal.m4 (TEX_PATH_TEXMFDIR): Allow --without-texmf-dir, stop - quoting a bunch of stuff, fix reference to load-file-name. - - * Makefile.in (exec_prefix, libdir, packagedatadir): export since - the XEmacs tree might call them. - (.PHONY, install): add install-nosearch target. - (install-nosearch): Install .nosearch file. - (install-icons): Use `$(packagedatadir)/images' instead of - `$(icondir)' - -2005-04-10 David Kastrup - - * configure.in: Use new backquote syntax. - - * doc/install.texi (Configure): Clarify. - -2005-04-10 Ralf Angeli - - * latex/preview.dtx: Dvipng --> dvipng. - - * RELEASE, circ.tex, configure.in, preview.el, doc/faq.texi, - doc/install.texi, doc/preview-latex.texi, doc/problems.texi, - doc/readme.texi, doc/wininstall.texi, latex/README, - latex/preview.dtx: GhostScript --> Ghostscript. - -2005-04-08 David Kastrup - - * Makefile.in (previewstartfile): import. - (install-startup): split lines with `$(MAKE)' and - `$(INSTALL_DATA)' so that `make -n' will properly recurse. - - * aclocal.m4 (AC_LISPIFY_DIR): resolve relative paths below - ${lispdir} hierarchy. AC_SUBST both lisp variant of directory as - well as original. - - * configure.in: Add `--with-preview-startfile', use new semantics - of `AC_LISPIFY_DIR', drop `AC_MAKE_FILENAME_ABSOLUTE' stuff. - - * doc/install.texi (Configure): explain new semantics of - `--with-lispdir' and new `--with-preview-startfile'. - - * doc/wininstall.texi: Document changes semantics for - `--with-lispdir' and new `with-preview-startfile'. - -2005-04-07 David Kastrup - - * aclocal.m4 (EMACS_LISP): properly echo result to log file. - (EMACS_EXAMINE_INSTALLATION_DIR): check that the result of - file-relative-name is not absolute, which can happen for unrelated - drives on Windows. - (AC_FULL_EXPAND): also check, set and restore exec_prefix if not - set. - -2005-04-05 Ralf Angeli - - * configure.in: Cosmetics for ./configure --help. - - * preview.el (desktop-buffer-preview): Return buffer even if no - information about previews is found. - -2005-04-04 David Kastrup - - * preview-latex.spec (URL, Source0): Fix addresses to point to - AUCTeX. Oops. - -2005-04-03 David Kastrup - - * Release 0.9.1 - - * latex/preview.dtx: Don't let negative dimensions into tightpage - comment. - - * doc/macros.texi: Make @previewlatex swallow argument in links. - Don't scrap sf declaration. Make it correct in links. - - * doc/readme.texi (What use is it?): - - * doc/problems.texi: - - * doc/install.texi (Top): Work around raisesection bug. - - * doc/Makefile.in (../INSTALL, ../INSTALL.windows, ../README) - (../FAQ, ../TODO): Remove --no-validate option. - (../PROBLEMS): remove --no-validate option, and number sections. - - * doc/faq.texi: Make validatable top entry. Don't raise sections - until after the first chapter. This is insane, but otherwise - everything will be unnumbered. - - * configure.in: Expand `packagelispdir' and `lispdir' before - checking for conflicts. - -2005-04-02 David Kastrup - - * autogen.sh: Remove autom4te.cache - - * doc/Makefile.in (.PHONY): Add a few targets. - - * doc/readme.texi (Basic modes of operation): Correct dvipng - information. - - * autogen.sh: make preview-latex.info generation work by passing - in PERL default. - - * README.CVS: Mention that `perl' is needed for autogen.sh, and - that `makeinfo' might need to be up to date. - - * latex/README: Renamed from latex/README-preview. Overhaul - availability. - - * doc/macros.texi: Synchronize to AUCTeX. - - * Makefile.in (tarball-ready): Remove this target for now: it - can't be used consistently really. It is probably better to do - just run autogen.sh on a freshly exported archive. - - * doc/Makefile.in (DISTTEXTS): Targets in parent dir. - (../INSTALL, ../INSTALL.windows, ../README, ../FAQ, ../PROBLEMS) - (../TODO): New targets instead of targets in current dir. - (clean): Don't remove targets in this dir. - (maintainer-clean): Remove DISTTEXTS targets. - - * autogen.sh: Use make for generating distribution texts and also - pregenerate the info file. - - * Makefile.in (emacsprefix): Remove. - (.PHONY): Collect phony targets here. - (DISTTEXTS): Move to doc/Makefile.in - (tarball-ready): Adapt - - * preview-latex.spec: Change version number. Change directory - choice to "xemacs-packages" on fedora. - - * doc/wininstall.texi: Mention that Perl is not needed if working - with the default tarball. - - * doc/preview-latex.texi: Bump versions numbers, fix copyrights. - - * doc/readme.texi (Activating preview-latex): Don't talk about - half a dozen non-sensical things. - (Availability): Change information to match move into AUCTeX. - - * configure.in: Add check for load-path shadowing. - - * aclocal.m4 (TEX_PATH_TEXMFDIR): We want "${texprefix}/share" in - most cases. - -2005-04-01 David Kastrup - - * doc/faq.texi: Some changes. This thing really is an outdated - unmaintained abomination. We need to do something about it at one - time. - -2005-04-01 Ralf Angeli - - * aclocal.m4 (EMACS_EXAMINE_INSTALLATION_DIR): Repair quoting. - -2005-04-01 David Kastrup - - * RELEASE: rearrange. Mention AUCTeX 11.80 as target. - - * aclocal.m4(EMACS_EXAMINE_INSTALLATION_DIR): avoid trailing - `/.'. - (TEX_PATH_TEXMFDIR): search order changed. - - * latex/Makefile.in (prefix, datadir, texmfdir, previewtexmfdir) - (previewdocdir): Use (null) to mask Windows backslashes. - - * configure.in: Adjust version info. - - * aclocal.m4 (EMACS_PATH_PREFIX): just generate a single output. - (EMACS_PROG_EMACS): Check for `emacsprefix'. - (EMACS_EXAMINE_INSTALLATION_DIR): accept list of prefix variables - as second argument. Decompose and compare directory names - starting from the back. - (EMACS_PATH_PACKAGEDIR): search in several prefixes. - (EMACS_PATH_LISPDIR): same. - (TEX_PATH_TEXMFDIR): set `texprefix' from kpsepath. - Use new `EMACS_EXAMINE_INSTALLATION_DIR' for getting TeX - directories. - -2005-03-31 David Kastrup - - * configure.in: Don't set prefix if it is not set. - - * aclocal.m4 (EMACS_PATH_PREFIX): new function. - (AC_FULL_EXPAND): set `prefix' from `ac_default_prefix' before - expansion if it is unset. - -2005-03-31 jalar - - * Makefile.in: - * aclocal.m4: Add $emacsprefix - -2005-03-31 David Kastrup - - * RELEASE: Update release info. - -2005-03-30 Ralf Angeli - - * Makefile.in (use-hint): Fix spelling. - - * preview.el (preview-report-bug): Use "preview-" prefix in - version information. - -2005-03-29 David Kastrup - - * configure.in (auctexdir): Use `AC_ARG_VAR' on `GS' and `TEXHASH' - (should probably also be used on a few other environment - variables). - Use `AC_SHELL_QUOTIFY' on `GS'. - -2005-03-28 David Kastrup - - * preview.el (preview): Change home page address to AUCTeX. - (preview-report-bug): Change bug reporting address. - - * doc/readme.texi (Contacts): Change mailing list info. - - * doc/problems.texi: Change mailing list info. - - * doc/faq.texi (Introduction to FAQ): Change mailing list address. - - * preview.el (if): Use (featurep 'xemacs) instead of - `(string-match "XEmacs" (emacs-version))'. - (preview-at-point): Don't check for XEmacs, just use - `TeX-active-mark' instead. - -2005-03-24 Ralf Angeli - - * Makefile.in (distclean, maintainer-clean, tarball-ready): Delete - autom4te.cache in maintainer-clean and tarball-ready targets. - -2005-03-24 Jan-Ake Larsson - - * doc/Makefile.in: Add *.pdf to clean target and - preview-dtxdoc.texi to maintainer-clean - -2005-03-23 jalar - - * doc/Makefile.in: - * Makefile.in: add maintainer-clean target - - * Makefile.in: add tarball-ready target - - * configure.in: Add check for perl - - * doc/Makefile.in: Use the configure-provided $PERL - -2005-03-22 David Kastrup - - * preview.el (preview-counter-find): Coerce `begin' to integer to - work around an Emacs 21.x bug. - - * Makefile.in (install): Install startup file before docs. - - * doc/Makefile.in (preview-latex/index.html): Don't ignore exit - status of makeinfo (this target is on-demand only, anyway). - - * doc/preview-dtxdoc.pl: Accept two arguments so that output file - will not get clobbered if Perl is not operative. - -2005-03-19 David Kastrup - - * prv-xemacs.el (preview-buffer-recoding-alist): Madness variable. - (preview-buffer-recode-system): Use it. - (tex-site, tex, latex): Require them. - - * prv-emacs.el (tex-site, tex, latex): require them to silence - byte compiler. - (preview-buffer-recode-system): Compatibility function. Probably - not necessary for Emacs. - - * preview.el (TeX-overlay-prioritize): don't redefine, test for - its presence at runtime. Less invasive, less offensive to the - byte compiler. - (preview-coding-system): New buffer-local variable to indicate the - coding system used for processes. - (preview-place-preview, preview-reinstate-preview): Use - `TeX-overlay-prioritize' only if it exists. - (mailcap-extension-to-mime): Use an autoload form instead of - `require' at runtime. - (preview-format-mml): Use `mailcap-extension-to-mime' directly - (preview-error-quote): take coding system of LaTeX process as - second argument. - (preview-parse-messages): initialize `run-coding-system' from - `preview-coding-system'. Use it for calling - `preview-error-quote'. - (TeX-inline-preview-internal): Initialize `preview-coding-system' - and make process use it. - -2005-03-18 David Kastrup - - * preview.el (TeX-region-create): Try shutting up the byte - compiler at load time. - - * doc/install.texi: Mention that "the usual procedure" is for - site-wide installation. - (Advice for package providers): Mention site-start.el. - (Advice for non-privileged users): Adapt to new conventions. - Some other small changes. - - * preview.el (TeX-overlay-prioritize): correct stupid typo. - (preview-log-error): Pop up run buffer in case of error. - -2005-03-17 David Kastrup - - * preview.el (tex-site): Require loads of stuff at the beginning: - preview.el is supposed to be autoloaded, so we can just load - everything that needs to get loaded, anyway. - (TeX-overlay-prioritize): alias to "ignore" if not defined - elsewhere. This will not set priorities. - (eval-when-compile): move out most requires. - (preview-place-preview): Use TeX-overlay-prioritize instead of - TeX-fold-prioritize. - (preview-counter-find): Pass begin in to reduce one compilation - error message. - (TeX-region-create): Don't preactivate `preview-counter' advice. - (preview-reinstate-preview): Rename priority function to - `TeX-overlay-prioritize'. - (LaTeX-preview-setup): Remove requires. - (TeX-region-create): Explicitly activate `preview-preamble' advice - even though it is preactivated. - -2005-03-16 David Kastrup - - * prv-emacs.el: Use the four-argument version of `face-attribute' - if it exists. - -2005-03-15 David Kastrup - - * doc/install.texi (Configure): Be somewhat more verbose. Be - explicit about Emacs-only options. - - * doc/wininstall.texi: Warn against Winzip. Reorganize docs - somewhat and clarify about Emacs-only procedures. - - * doc/preview-latex.texi (Keys and lisp): Document - preview-at-point allowing active region. - - * preview.el (preview-at-point): Remove nonsensical arguments. - Instead, allow for an active region. - - * configure.in: Add `packagelispdir' to quoted Makefile variables. - -2005-03-14 David Kastrup - - * latex/preview.dtx: Reformat the kaboodle to look nicer. - Move \nofiles to auctex option. - - * latex/README-preview (Note): Mention \nofiles problem. - - * preview.el (preview-LaTeX-command): Add \nofiles to startup. - -2005-03-14 Masayuki Ataka - - * preview.el (TeX-fold-prioritize): autoload. - (preview-place-preview, preview-reinstate-preview): Use it. - -2005-03-07 David Kastrup - - * preview.el (preview-gs-open): Make better error message for junk - left over on PostScript stack, so that we may better pass the - buck. - -2005-03-05 David Kastrup - - * latex/preview.dtx: Fix psfixbb option that must have become - illegal at some time accidentally. - - * doc/install.texi (Loading the package): Explain that - preview-latex.el should already be installed in-place. - -2005-03-04 David Kastrup - - * Organizational: preview-latex development has been moved from - into the - AUCTeX CVS Archive on - . - -2005-03-03 David Kastrup - - * Release 0.9 - - * prv-install.el (preview-make-package-xemacs): Add directory - information from autoe.el to autoloads. - - * Makefile.in (elisp): generate preview-latex.el only when no - package system. - (install-el): Depend on auto.el - (install-startup): Make and install preview-latex.el only when no - package system. - - * prv-emacs.el (preview-create-icon-1): Use adaptive heuristic - mask for transparency. - - * preview-latex.spec: Make preview.dvi. But preview-latex.pdf - - * latex/Makefile.in (all): Generate both dvi and pdf. - (install-texmf-doc): Install DVI (faster, compact). - - * latex/Makefile.in (install-texmf-doc): Install PDF instead of - DVI file. - - * doc/wininstall.texi: Simplify, rearrange, adapt to new - installation scheme. Add links to CVS precompiled versions. - - * doc/install.texi (Prerequisites): Revamp. - (Configure): Add explanations. - - * preview-latex.spec: Change rpm name to include "fedora". Adapt - to new configure stuff. Use pdf doc instead of DVI. - - * configure.in: icondir is absolute, reorder some stuff to - maintain directory locality. - - * aclocal.m4: Change a lot of $x to ${x}. - Simplify some stuff. - - * RELEASE: Add information for release. - - * configure.in: Correct prefix check. Add Emacs version check. - - * aclocal.m4: Move several functions around, completely overhaul - the stuff to just detect material in prefix-related directories. - Remove docstrip config detection, add version checking of major - and minor version. Rely on prefix being set by configure.in. - -2005-03-02 David Kastrup - - * Makefile.in (install-el): no means no for packagedir. - - * configure.in: Set prefix. - - * aclocal.m4: Use "no" for no packagedir in XEmacs. - Don't save prefix and stuff. - Expand stuff at some points. - - * doc/wininstall.texi: Use executable name directly to save - confusion. - - * prv-xemacs.el (preview-filter-specs): Rework specs. - - * prv-emacs.el (preview-filter-specs): Translate :type fields. - - * preview.el (preview-min-spec): Move. - (preview-filter-specs): Move from prv-emacs.el and prv-xemacs.el. - (preview-filter-specs-1): simplify. - (preview-icondir): Create icondir preset variable. - (preview-filter-specs): expand file specs against it here instead - of prv-emacs.el and prv-xemacs.el. - - * configure.in: Adapt to new variables. - Remove check for image-supporting Emacs: it is probably not - reliable on consoles. - Add packagelispdir and icondir options. - (GS): Don't try GSWIN32.EXE. - Create lispGS in auto.el - - * autogen.sh: Use --output option for makeinfo to get - tableofcontents in FAQ. - - * doc/Makefile.in (.PHONY): Add install here. - - * Makefile.in (install-el): Adapt targets to packagelispdir. - (.PHONY): Add install target for case insensitive filesystems. - - * aclocal.m4: Rewrite EMACS_EXAMINE_PACKAGEDIR. - EMACS_LISP now gets one argument less. - EMACS_TEST_LISP_DIR makes just one pass. - EMACS_PATH_LISPDIR expands less. - AC_LISPIFY_DIR is a new function. - AC_MAKE_FILENAME_ABSOLUTE - AC_LISP_RELATIVE new functions. - -2005-02-26 David Kastrup - - * doc/readme.texi (Basic modes of operation): Adapt PDFLaTeX - explanation to newer AUCTeX versions. - - * preview.el (preview-error-icon-specs): Choose somewhat oversized - errors. Adapt to set. - (preview-gs-restart, preview-gs-transact): Change image file name - prefix to `pr'. - (preview-clean-subdir): When cleaning out subdirectories, match - `pr' instead of `pre'. - - * Makefile.in (ICON_SOURCES): Adapt to existing set. - -2005-02-25 David Kastrup - - * preview.el (preview-gs-options): Remove "-dDELAYSAFER" from - option list. - (preview-gs-sequence): New variable. - (preview-gs-sentinel): Don't repeat startup echo if GhostScript - fails before prompting the first time. - (preview-gs-sentinel): When restarting, remove expected file names - from `preview-gs-outstanding'. - (preview-gs-restart): generate a unique output file name pattern - from `preview-gs-sequence' - (preview-gs-restart): list start command quoted. - (preview-gs-open): initialize `preview-gs-sequence'. - (preview-gs-open): if historic "DELAYSAFER" is still configured, - start safe mode manually. Remove all settings of OutputFile, and - all runandhide stuff. - (preview-gs-place): Don't generate a filename that might not be - needed. - (preview-gs-flag-error): Generate a synthetic OutputFile option. - Use it in error messages. - (preview-gs-transact): generate output file name in outstanding - queue. Don't fiddle with OutputFile settings. Advance - `preview-gs-sequence'. - (preview-dvipng-place-all): Generate file name. - - * prv-xemacs.el (null-device): Remove compatibility definition. - -2005-02-18 David Kastrup - - * preview.el (preview-specs-setter): New function. - (preview-nonready-icon-specs): Choose slightly smaller icons. - (preview-nonready-icon-specs, preview-error-icon-specs) - (preview-icon-specs): Use `preview-specs-setter'. - - * doc/wininstall.texi: Mention case problems. - - * doc/install.texi (Prerequisites): Update AUCTeX version info. - - * doc/problems.texi (Middle-clicks paste instead of toggling): - Remove reference to patches directory. Should no longer be - necessary. - (Problems with GhostScript): Mention use of gswin32.exe instead of - gswin32c.exe as a problem source. - - * preview.el (preview-nonready-icon-specs): Add size 14. - - * images/prvwrk24.xpm: New icon, dimmer, better shape. - - * images/prvwrk20.xpm: New icon - - * images/prvwrk16.xpm: New icon - - * images/prvwrk14.xpm: New icon - - * images/prvwrk12.xpm: New icon - -2005-02-15 David Kastrup - - * preview.el (preview-error-quote): Encode to raw-text to get - unibyte string. - -2005-02-13 David Kastrup - - * doc/preview-latex.texi (The Emacs interface): Adapt to new - `preview-use-balloon-help' default. - - * doc/faq.texi (Customization): Adapt to new - `preview-use-balloon-help' default. - - * prv-xemacs.el (preview-use-balloon-help): Default to nil. - - * preview.el (preview-gs-flag-error): For consistency, make error - icons have a context menu on right mouse button. - -2005-02-11 David Kastrup - - * doc/preview-latex.texi (Keys and lisp): Change descriptions to - cater only for interactive use. - (Keys and lisp): Explain mouse-3 better. - (Keys and lisp): Move preview-copy-region-as-mml explanation up. - Explain about the new border avoidance behavior. - (The Emacs interface): Explain about how to adapt the various - icon-specs. - - * preview.el (preview-specs-type): Type for specs defcustom. - - (preview-nonready-icon-specs, preview-error-icon-specs) - (preview-icon-specs): move lower and make defcustom from it. - -2005-02-10 David Kastrup - - * prv-emacs.el (preview-mode-setup): Only define a preview toolbar - entry when the icon is valid. - - * RELEASE: Mention the new icons. - - * prv-xemacs.el (preview-tb-icon): Use this instead of - (preview-icon-toolbar-button): in order to match - `preview-tb-icon-specs', as in prv-emacs.el - (preview-mode-setup): Don't install a toolbar item when no icon - image can be generated properly. - -2005-02-09 David Kastrup - - * prv-xemacs.el (add-to-list): only provide definition for - three-argument version if XEmacs doesn't. May be removed at some - time completely. - (null-device): Only defvar if unbound in order not to munge the - doc string. - (preview-transparent-border): Silence the byte-compiler. - (preview-supports-image-type): Move earlier. - (preview-filter-specs): Correct a few typos. - (preview-filter-specs): Don't forget to call `make-glyph'. - (preview-mode-setup): Correct toolbar icon setup. - - * preview.el (preview-error-quote): Remove unused variable `char'. - - * doc/faq.texi (Requirements): Stop talking about ancient XEmacs - versions. - (Requirements): Mention Emacs 22 instead of 21.4 - - * doc/install.texi (Prerequisites): same - - * doc/problems.texi (Emacs problems): same - - * preview-latex.spec (Conflicts): xemacs = 21.4.16 - - * RELEASE: Add some dvipng information, more detailed - recommendations. - - * preview.el (preview-region, preview-buffer, TeX-region-create) - (preview-document, preview-environment, preview-section): Move - down to avoid byte compiler warnings. - - * images/*: lots of renaming/moving stuff around. - - * configure.in: remove ICONFORM stuff. - - * Makefile.in (ICONFORM): removed. - (ICON_SOURCES): Change to different list. - - * prv-xemacs.el (preview-nonready-icon, preview-error-icon) - (preview-icon, preview-tb-icon): Removed in this form. - (preview-ascent-spec): New symbol for storing minimal data when - parsing specs. - (preview-filter-specs): New function. - (preview-icon-copy): Replaces `preview-nonready-copy'. - (preview-mode-setup): Create toolbar button. - - * prv-emacs.el (preview-nonready-icon, preview-error-icon) - (preview-icon): removed. - (preview-filter-specs): New function. - (preview-tb-icon-specs, preview-tb-icon): New variables for the - toolbar icon. - (preview-icon-copy): replaces `preview-nonready-copy' - (preview-mode-setup): Initialize `preview-tb-icon' - - * preview.el (preview-nonready-icon-specs) - (preview-nonready-icon, preview-error-icon-specs) - (preview-error-icon, preview-icon-specs, preview-icon) - (preview-min-spec): New variables. - (preview-gs-place): Use `preview-icon-copy' instead of - `preview-nonready-copy' - (preview-make-image): New function. - (preview-filter-specs-1): New function. - (preview-buffer-restore-internal): Call `preview-get-geometry' for - having size information. This may be incorrect at restore time. - (preview-get-geometry): Also constitute `preview-icon', - `preview-error-icon' and `preview-nonready-icon'. - -2005-02-06 David Kastrup - - * doc/wininstall.texi: Add note about `gswin32c.exe'. - -2005-01-29 David Kastrup - - * preview-latex.spec (Release): Bump version to prerelease, make - some changes that look like they'd fit into AUCTeX's scheme. - - * RELEASE: Some changes and mentions. - - * doc/preview-dtxdoc.pl: Convert AUC\TeX reference as well. - Convert `\#' to `#'. - - * latex/preview.dtx: Add `#' and `:' letters and documentation. - Make all commands pass on `#' on cleanly. Don't eliminate last - `{}' last in argument lists. - - * latex/Makefile.in (preview.pdf): New target. Since PDFs are - used for external documentation usually, generate only the - description (for internal docs, dvi is fine and adding the code, - too). - - * configure.in: Bump version number. - check for PDFLaTeX. - -2005-01-26 David Kastrup - - * preview.el (preview-copy-mml, preview-copy-region-as-mml) - (preview-format-mml): Ask whether user really wants to use - bordered graphics. - (preview-error-quote): Fix typo. Make the condition to call - decode-coding-string depend on (featurep 'mule) to match choice - for using raw process output. - (preview-get-geometry): Return the geometry instead of - manipulating a buffer. - (preview-set-geometry): New function to set the geometry into - buffer-local variables. - (preview-generate-preview): Start by getting geometry. - (TeX-inline-preview-internal): Additional geometry argument. - Don't switch into buffer where we are already. - -2005-01-25 David Kastrup - - * prv-emacs.el: Don't use transparent borders when Emacs is new - enough to have tolerable blinking. - - * preview.el (preview-dvipng-color-string): Pass the border into - dvipng. - (preview-dvipng-place-all): Record the border in the image data - structure. - -2005-01-24 David Kastrup - - * RELEASE: Ask for dvipng 1.4, mention utf-8 capability. - - * preview.el (preview-error-quote): Don't regexp codes out of the - ASCII range, and convert the resulting string using the buffer - encoding. This makes for utf-8. - (preview-parse-messages): Change match mechanism. - (TeX-inline-preview-internal): Set process encoding to raw-text - since TeX may deliver mixtures of encoded and clean bytes. - -2005-01-19 Jan-Ake Larsson - - * aclocal.m4: sync with AUCTeX - -2005-01-17 jalar - - * ChangeLog.1: Move dvipng changes to its Changelog - -2004-11-05 David Kastrup - - * doc/readme.texi (What use is it?): New section. - - * doc/preview-latex.texi (The Emacs interface) - (The preview images): Add a bit of information concerning - PDF/dvipng operation. - - * preview.el (preview-default-preamble): Require specific date of - preview package. - - * latex/preview.dtx: Let bop-hook and eop-hook work only on outer - level, so that previews can contain dvips -E generated files. - -2004-10-23 David Kastrup - - * preview.el (preview): Change group to 'AUCTeX. - -2004-10-21 David Kastrup - - * prv-xemacs.el (preview-mode-setup): Add `desktop-save-buffer' - setup. - - * prv-emacs.el (preview-mode-setup): Add `desktop-save-buffer' - setup. - - * preview.el (desktop-buffer-preview-misc-data): Let arguments be - ignored for desktop 2.06. - Add to `desktop-buffer-misc-functions' only after desktop has been - loaded. - (desktop-buffer-preview): take arguments for desktop 206. - -2004-10-18 David Kastrup - - * prv-xemacs.el (glyph-image-type): Removed. - (preview-create-icon-1, preview-create-icon): like in prv-emacs.el. - (preview-replace-active-icon): Use defsubst. - (preview-ps-image): Removed. - (preview-move-point): Reorganized. - (preview-export-image): Removed. - (preview-import-image): Changed to new preview-image semantics. - - * prv-emacs.el (preview-create-icon): replace macro with defsubst, - add border argument. - (preview-replace-active-icon): defsubst, and cater for new - preview-image structure. - (preview-int-bb, preview-ps-image): Removed, only needed for - postscript device. - (preview-move-point): Reorganized. - (preview-export-image): Removed. - - * preview.el (preview-image-creators): Remove postscript device, - it did not work, anyway. - (preview-dvipng-color-string): Add resolution to args in order to - properly convert border thickness. - (preview-gs-dvips-sentinel): Delete unused `gsfile' variable. - (preview-eps-open, preview-eps-dvips-process-setup, - preview-eps-place): Removed. - (preview-gs-place, preview-gs-transact, preview-dissect) - (preview-dvipng-place-all, preview-active-string) - (preview-reinstate-preview): add construction info to - `preview-image' property. - (preview-start-dvipng): Calculate resolution info correctly. - (preview-at-point): Fix an awful typo. - -2004-10-14 David Kastrup - - * latex/preview.dtx: Make the end of snarfed environments behave - normally if the environment is not being snarfed. - -2004-10-14 Jan-Åke Larsson - - * doc/wininstall.texi: Adjust text to conform with the AUCTeX aclocal. - - * configure.in: Add VALID_BUILD_DIR - -2004-10-13 Jan-Åke Larsson - - * configure.in: Adjust for the aclocal.m4 sync with AUCTeX - - * aclocal.m4: Sync with AUCTeX. Well, almost. Don't - use the version test. - -2004-10-09 David Kastrup - - * preview.el (preview-dvipng-command): Use -picky option. - (preview-error-quote): Convert character to buffer encoding if - mule allows it. - (preview-parse-messages): Strip incomplete 8bit character - transliterations from the error context. - -2004-08-21 Reiner Steib - - * doc/install.texi: Markup fixes, see "(texinfo)command". - - * doc/wininstall.texi: Ditto. - -2004-08-09 David Kastrup - - * doc/preview-latex.texi: Bump version number. - (top): Change preview-latex typesetting convention. - (Keys and lisp): AUCTeX menus are not changed. - (Simple customization): Don't talk about `.dvi'. - (For advanced users): Menu `The preview images' instead of `On EPS - previews'. - (The Emacs interface): Take PDF into account. - (The preview images): Describe `preview-gs-image-type-alist', - `preview-dvipng-image-type'. - - * doc/faq.texi (Introduction to FAQ): Change submission address to - preview-latex-devel since this appears to better reflect reality. - - * latex/preview.dtx (showlabels): work around ntheorem/amsmath - bug. - - * preview.el (preview-gs-image-type-alist): Add fallback for - 'postscript image type (not yet used). - (preview-dvipng-command): Add documentation about - `preview-dvipng-image-type'. Change options to `-picky - -noghostscript' to work with dvipng 1.2. - (preview-dvipng-image-type): New variable. - (preview-gs-open): Don't barf until we know what device will - actually be used. - (preview-gs-dvips-process-setup): Complain about unavailable - devices here. - (preview-dvipng-process-setup): And here. - (preview-dvipng-process-setup, preview-dvipng-place-all): Use - `preview-dvipng-image-type'. - (preview-TeX-inline-sentinel): Change "abnormally with code 1" and - "finished" exit status message. - (preview-dump-replacements, preview-undump-replacements): Don't - match command name as specifically. - (preview-report-bug): Report more variables. - -2004-08-07 David Kastrup - - * doc/macros.texi: New @ConTeXt{} macro, change appearance of - @previewlatex{}. - - * doc/faq.texi (Customization): Presentation classes should work - mostly. - (Customization): Remove troubleshooting for `xy.sty'. - (Requirements): Add AUCTeX 11.50 for PDFLaTeX. - (Requirements): Mention dvipng. - (Customization): PDFLaTeX is supported now. - (Customization): ConTeXt is supported by AUCTeX, PDFLaTeX too. - `Only' style support is missing now. - - * latex/preview.dtx: workaround for `xy.sty' in `textmath' code. - -2004-08-04 David Kastrup - - * aclocal.m4: Merge a few AUCTeX changes. - -2004-08-03 David Kastrup - - * preview.el (preview-walk-document): Current buffer and its - master are always considered part of the document. - (preview-dvipng-command): Use -noghostscript option. - (preview-dvipng): Remove the almost unused customization group - 'preview-dvipng. - -2004-08-02 David Kastrup - - * preview.el (preview-extract-bb): remove old outcommented version. - (preview-dvipng-command): Use -no-image-on-warn option. - (preview-pdf2dsc-process-setup): Oops, just use - `preview-gs-image-type' here. - (preview-dvipng-sentinel): Don't delete dvi file since it might be - needed in `dvipng-place-all'. - (preview-dvipng-place-all): Start dvips/GhostScript if some image - files are missing. Delete dvi file if none are missing. - -2004-07-28 David Kastrup - - * doc/problems.texi (Too small bounding boxes): Fix node - crosslinks. - - * latex/preview.dtx: Tiny change to placate font-latex. - - * latex/README-preview: Explain that PDF may be produced. - - * doc/wininstall.texi: Remove advice about failing byte-compiles: - we should have this covered by now. - - * doc/problems.texi (LaTeX international characters): remove node. - - * doc/preview-latex.texi (Misplaced previews): Refer to x-symbol - node instead of 8bit testing. - - * doc/install.texi (Configure): Remove --disable-8bit-test - description. - - * preview.el (preview-parse-messages): Simplify line match. - - * preview-latex.spec: Several changes of %{buildroot} uses and of - infodir. Doubtful whether this will work with Fedora. - - * configure.in: Remove all 8bit-cleanness testing. - - * aclocal.m4 (EMACS_LISP): just write out a string expression - without change or echo. Document the macro. - - * doc/Makefile.in (prefix) (packagedir) (datadir) (infodir): - preserve trailing backslashes. - - * Makefile.in (INSTALL) (INSTALL_DATA): Don't munge them for - trailing backslashes. - -2004-07-27 David Kastrup - - * preview.el (preview-dvipng): New customization group. - (preview-image-creators): Remove ghostscript options here. - (preview-gs-image-type-alist): New variable for lookup of - Ghostscript options. - (preview-gs-open): Remove imagetype and gs-optionlist arguments. - Instead, look them up in preview-gs-image-type-alist. - (preview-gs-dvips-process-setup): Setup GhostScript command line - at different place. - (preview-gs-dvips-process-setup): Use preview-gs-image-type, not - preview-image-type for extension. - (preview-dvipng-open): Removed. - (preview-dvipng-process-setup): Setup GhostScript fallback. - (preview-pdf2dsc-process-setup): Don't setup GhostScript here. - (preview-error-quote): Fix bugs, only convert last ^^ sequence - when a long string of ^^ exists. - -2004-07-16 David Kastrup - - * Makefile.in (INSTALL_DATA): Use `$(null)' at end of variables at - end of lines instead of `#' - -2004-07-15 David Kastrup - - * preview.el (preview-format-mml): Somewhat different code. - (preview-error-quote): New function for generating a matching - regexp to deal with ^^ type error messages. In short: forget - about 8-bit-cleanliness. - (preview-parse-messages): Use it. - -2004-05-08 David Kastrup - - * preview.el (preview-format-mml): Determine MIME format from - file name properly. And don't return anything for bad overlays. - - * Split ChangeLog.1 off, create dvipng/ChangeLog. - - * preview.el (preview-gs-sentinel): Add info about GhostScript - finishing to run buffer. - (preview-gs-restart): Same for start. - (preview-gs-color-string): Cater for border without mask color - (didn't we do that already?) - -2004-04-23 David Kastrup - - * preview.el (preview-gs-color-string) - (preview-dvipng-color-string): Try to do something reasonably sane - when a non-nil border thickness is specified, but no color. - -2004-04-20 Reiner Steib - - * .cvsignore: Added "autom4te.cache". - -2004-04-19 Reiner Steib - - * doc/preview-latex.texi (Simple customization): Don't "unlispify" - variable names. - -2004-04-12 David Kastrup - - * Release 0.8.1 - - * preview.el (preview-dump-replacements): Use regexp not - triggering bugs in older Emacsen. - (preview-dump-replacements): Same here. - - * RELEASE, configure.in, doc/preview-latex.texi: Adapt to 0.8.1 - - * preview-latex.spec: xemacspkgdir has changed in recent XEmacs - releases for Redhat. - - * prv-xemacs.el (preview-mode-setup): Remove non-existent menu. - - * prv-emacs.el (preview-mode-setup): Remove non-existent menu - "copied" from TeX-command-list to Command menu. - - * Release 0.8 - - * RELEASE: prepare for 0.8 - - * preview-latex.spec: prepare for 0.8, bump XEmacs to 21.4.9. - -;; Local Variables: -;; coding: iso-8859-1 -;; End: diff -Nru auctex-11.88/preview/ChangeLog.1 auctex-11.90/preview/ChangeLog.1 --- auctex-11.88/preview/ChangeLog.1 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/preview/ChangeLog.1 1970-01-01 00:00:00.000000000 +0000 @@ -1,3736 +0,0 @@ -2004-04-12 David Kastrup - - * Release 0.8.1 - - * preview.el (preview-dump-replacements): Use regexp not - triggering bugs in older Emacsen. - (preview-dump-replacements): Same here. - - * RELEASE, configure.in, doc/preview-latex.texi: Adapt to 0.8.1 - - * preview-latex.spec: xemacspkgdir has changed in recent XEmacs - releases for Redhat. - - * prv-xemacs.el (preview-mode-setup): Remove non-existent menu. - - * prv-emacs.el (preview-mode-setup): Remove non-existent menu - "copied" from TeX-command-list to Command menu. - - * Release 0.8 - - * RELEASE: prepare for 0.8 - - * preview-latex.spec: prepare for 0.8, bump XEmacs to 21.4.9. - -2004-04-11 David Kastrup - - * preview.el (preview-dvipng-color-string): Try to deliver border - thickness. - (preview-gs-transact): Don't set page size to 1,1 if that has - already been done. - (preview-start-dvipng): Use new -D convention for resolution. - (preview-pdf2dsc-process-setup): Add resolution to GhostScript - call for PDF. Doh. - - * circ.tex: Format with AUCTeX. - - * preview.el (preview-gs-open): Bypass page initialization if - page is 1bp times 1bp (that is: not yet set). - - * latex/preview.dtx: Remove tightpdf option again. Better - explanation for tightpage. - - * preview.el (preview-parsed-tightpage): New variable. - (preview-TeX-bb): Use tightpage borders if found in file. - (preview-gs-flag-error): Display correct file on error. - (preview-gs-transact): Don't pass page dimensions if tightpage is - active. - (preview-required-option-list): Replace dvips option with tightpdf - option. - (preview-parse-tightpage): New function. - (preview-parse-variables): Add preview-parse-tightpage, add - function quoting. - (preview-gs-open): Move color setup to BeginPage hook. Rename - preview-latex-* PostScript Variables to just preview-*. - (preview-gs-transact): Set minimal pagesize if tightpage detected - to speed up unimportant setpagedevice operations. - (preview-required-option-list): Use tightpage option always. - (preview-parse-variables): Remove function quoting: it lead to - double quotes and tears. - (preview-LaTeX-disable-pdfoutput): Move into separate constant - for easy access as it is no longer the standard. - (preview-LaTeX-command-replacements): Default to nil to enable - PDFTeX operation. Better customization type. - - * latex/preview.dtx: Some reformatting, add new parse items - and - >, add new option pdftex, adjust tightpage for it, add new - option tightpdf. - - * doc/preview-dtxdoc.pl: Eat spaces after %. - -2004-04-09 David Kastrup - - * images/preverr.xbm: - * images/preverr.xpm: invert upside-down icons. - -2004-03-15 David Kastrup - - * preview.el (preview-gs-color-string): Add missing space in - color setup (GhostScript syntax error). - (preview-gs-color-string): And another color setup bug. - -2004-03-11 David Kastrup - - * doc/readme.texi (Activating preview-latex): Make a few changes - with regard to keybindings and stuff. - (Contacts): Add Paypal info for myself. - - * doc/preview-latex.texi (Keys and lisp): Remove the C-c C-c g - pseudobinding from the description. - (Keys and lisp): Document mouse actions. - (Keys and lisp): Move Kill Job description. - -2004-03-10 David Kastrup - - * preview.el (preview-gs-colors): replaced with preview-colors. - (preview-pdf2dsc-command): replaces preview-pdftodsc-command - (preview-gs-open, preview-gs-color-value) - (preview-gs-color-string, preview-dvipng-color-string) - (preview-dvipng-open, preview-dvipng-process-setup) - (preview-pdf2dsc-process-setup, preview-pdf2dsc-sentinel) - (preview-gs-close, preview-dvipng-close) - (preview-prepare-fast-conversion, preview-attach-filename): lots - of small changed to accommodate pdf2dsc. - (preview-parse-messages): Change pattern to accommodate pdfTeX. - (preview-LaTeX-command-replacements): Changed to not rely on latex - being different from elatex. And for allowing pdflatex in DVI mode. - (preview-dump-replacements, preview-undump-replacements): Same. - (preview-cache-preamble): transfer setting of \pdfoutput to - dumped format. - - * prv-emacs.el (preview-gs-color-value): Moved to preview.el. - (preview-get-colors): Substitute for previous - preview-gs-get-colors. - (preview-dvipng-get-colors): Removed. - * prv-xemacs.el (preview-gs-color-value): Moved to preview.el. - (preview-get-colors): Substitute for previous - preview-gs-get-colors. - (preview-dvipng-get-colors): Removed. - -2004-03-02 Jan-Åke Larsson - - * preview.el: Fix xemacs' defalias problem - -2004-03-02 David Kastrup - - * preview.el (preview-image-creators): dvipng now uses different - place and close routines. - (preview-dvipng-command): Fix file name default. - (preview-pdf2dsc-command): for PDFLaTeX support - (preview-gs-dvips-process-setup): Pass image type. - (preview-dvipng-open), (preview-dvipng-process-setup), - (preview-dvipng-abort), (preview-dvipng-sentinel), - (preview-dvipng-close): New functions - (preview-gs-place): get imagetype as argument. - (preview-gs-place): don't create temporary file names for dvipng. - (preview-dvipng-place): deleted. - (preview-dvipng-place-all): New function. - (preview-attach-filename): New function for PDF support. - (preview-delete-file): Support attached files. - (preview-format-mml): Slight formatting changes. - -2004-01-14 David Kastrup - - * preview.el (preview-parsed-pdfoutput): Add detection for PDF - output from preview.sty. - (mail-header-encode-parameter): Encode the header ourselves: it - seems that versions of the library are not good at that. - (preview-parse-variables): Add `preview-parsed-pdfoutput'. - (preview-map): Add keybinding for `preview-copy-region-as-mml'. - (preview-copy-mml): factor out `preview-format-mml'. - (preview-copy-region-as-mml): New function. - (preview-format-mml): New function. - -2004-01-11 David Kastrup - - * latex/preview.dtx (subsection{Preview attaching commands}): - Tell preview-latex when the output format is PDF. - -2004-01-06 David Kastrup - - * preview.el (preview-region): Use "" for file name if - buffer not associated with a file. - (preview-parse-messages): recognize "" to mean - TeX-command-buffer. - (preview-region): Use `preview-generate-preview' instead of - `TeX-command'. - (preview-document): Same. - (preview-at-point): Add arguments to allow mouse use at later - time. - (LaTeX-preview-setup): Don't touch TeX-command-list. - (preview-cache-preamble): Use `preview-generate-preview' instead - of `TeX-command'. - (TeX-inline-preview): Deprecate. - (preview-generate-preview): New function. - (TeX-inline-preview-internal): Remove `name' argument. - -2004-01-04 David Kastrup - - * preview.el (preview-equality-transforms) - (preview-relaxed-string=, preview-walk-document) - (preview-required-option-list): Doc changes. - (preview-disabled-string, preview-inactive-string) - (preview-active-string, preview-place-preview) - (preview-reinstate-preview): Use new context menus and give help - strings for them. - (preview-copy-text, preview-copy-mml, preview-active-contents) - (preview-context-menu): Implement context menu and functionality. - (mail-header-encode-parameter): Add an autoload cookie for this - function taken from `mail-parse.el'. - -2003-11-11 Jan-Ake Larsson - - * Makefile.in, doc/Makefile.in, latex/Makefile.in: Add DESTDIR - variable - -2003-11-10 Jan-Åke Larsson - - * preview.el: Add 'dvipng preview-scale functionality - -2003-11-08 Stephen Reindl (tiny change) - - * preview-latex.spec (%install): rm texinfo 'dir' file because - this file is not needed for distribution (rpm 4.1+ complains about - this 'missing' file). - -2003-11-07 Jan-Åke Larsson - - * preview.el: Fix dvipng resolution - -2003-11-06 Jan-Åke Larsson - - * prv-xemacs.el: - * prv-emacs.el: - * preview.el: Add color handling for dvipng - -2003-11-05 Jan-Ake Larsson - - * preview.el: Primitive dvipng support. Lacking ascent and colors. - -2003-11-04 David Kastrup - - * doc/todo.texi: Add quite a few more wishes. Actually, it would - be nice to strike off a few instead. - -2003-11-02 David Kastrup - - * latex/preview.dtx (subsection{Selection options}): Fix the - carnage broken document classes like elsart.cls and IEEEtran.cls - do to \endfigure and \endtable, and complain about it in - appropriate warning messages. - -2003-10-15 David Kastrup - - * latex/preview.dtx (subsection{Selection options}): Let the - textmath option also preview the `math' environment. - -2003-07-10 David Kastrup - - * doc/wininstall.texi: fix web page of AUCTeX. - - * doc/install.texi (Prerequisites): fix web page of AUCTeX. - - * preview.el (LaTeX-preview-setup, preview-parse-messages) - (TeX-inline-preview): Fix references to AUCTeX. - - * aclocal.m4 (library): Fix references to AUCTeX. - - * RELEASE: Fix references to AUCTeX. - -2003-06-19 David Kastrup - - * latex/preview.dtx: Make \long what needs to be \long in order - to deal with argument lists and macros that might contain \par. - -2003-05-13 David Kastrup - - * configure.in: Really bail if 8bit test fails. - - * circ.tex (section{Die gerade Linie}): Add comments for - intentional bugs. - -2003-04-28 David Kastrup - - * configure.in: Fix check for images. - - * aclocal.m4 (library): Try setting the EMACS_cv_SYS_* variable - that we are actually checking. Is that correct? - -2003-04-17 Jan-Åke Larsson - - * doc/wininstall.texi: Corrected --with-lispdir and --with-packagedir - -2003-04-09 Jan-Åke Larsson - - * aclocal.m4: More sane emacs-macro path-searching. - -2003-03-31 Jan-Åke Larsson - - * aclocal.m4 (EMACS_PROG_EMACS): Make the test fail gracefully - when no binary executable is found. More generally, make the - emacs-macro path-searching tests run. - -2003-03-30 David Kastrup - - * doc/install.texi (Configure), doc/wininstall.texi: explain - --with-emacs and stuff even less ambiguously. - -2003-03-28 David Kastrup - - * doc/faq.texi (Installation Trouble): Update Windows info. - -2003-02-15 David Kastrup - - * configure.in: quote MAKEINFO. - - * README.CVS: Fix instructions because autoconf now does not need - patching anymore. - - * doc/preview-latex.texi: juggle the dircategory, hopefully right - now. - -2003-02-13 David Kastrup - - * doc/preview-latex.texi: Somewhat changed info dir entries. - (Simple customization): add hint for RefTeX. - - * doc/problems.texi, doc/macros.texi: anticipate name change of - AUC TeX to AUCTeX. - - * aclocal.m4, configure.in: resynch with AUCTeX aclocal.m4. - Lots of name changes. - - * configure.in: Remove redundant checks/substs. - - * aclocal.m4 (AC_EXAMINE_PACKAGEDIR): lots of fixes with regard - to quoting, bad code and other stuff. - (AC_CHECK_AUCTEX): remove trailing slash. - -2003-02-10 Alan Shutko - - * aclocal.m4: Changed all references of AUCTEXDIR to auctexdir. - - * Makefile.in (auctexdir): Changed all references of AUCTEXDIR to - auctexdir. - -2003-02-05 David Kastrup - - * latex/preview.dtx (section{Package options}): Correct doc of - \PreviewBbAdjust. - -2003-02-05 Alan Shutko - - * doc/problems.texi: Add documentencoding. - (Emacs problems): Move @end itemize after XEmacs. - -2003-02-03 David Kastrup - - * latex/preview.dtx (subsection{The \texttt{auctex} option}): - Make \item actually produce an \item. - -2003-01-27 David Kastrup - - * doc/problems.texi (Emacs problems): CVS Emacs supports PNG now. - - * doc/wininstall.texi: CVS Emacs supports PNG images now. - - * prv-xemacs.el (null-device): Add defvar for older XEmacsen. - -2003-01-24 David Kastrup - - * preview.el (preview-gs-sentinel): Delete PostScript file when - GhostScript has finished. - (preview-gs-dvips-sentinel): Don't mark PostScript file for - deletion when GhostScript will be run: otherwise preview.el will - delete the PostScript file automatically when the last preview has - been generated but before GhostScript exits. And since - GhostScript has the file still open, some "operating systems" will - refuse to delete the PostScript file at that moment. - -2003-01-20 David Kastrup - - * Release 0.7.8 - - * aclocal.m4: Correct environment spellings for Makefiles. - - * latex/preview.dtx (subsection{The internals}): comment out color - setup. That means that one might not be able to use color.sty for - setting up fore/background color, but it will also mean that - loading color.sty does not interfere with the initial colors set - up inside of GhostScript. In the long run, we will have to solve - this differently. - -2003-01-19 David Kastrup - - * latex/preview.dtx (section{Package options}) - (subsection{The \texttt{showlabels} option}), doc/todo.texi: - spell RefTeX correctly. - - * preview.el (preview-gs-open): Get really paranoid about closing - our output file in a way which should get rid of races. - (preview-ps-quote-filename): Get an optional argument for - avoiding making file names relative (like null-device). - (preview-equality-transforms, preview-relaxed-string=, - preview-canonical-spaces): Add functionality for relaxed check of - region changes (should allow outline-minor-mode in XEmacs, too, - and paragraph reformatting). - - * prv-emacs.el (preview-check-changes): use - `preview-relaxed-string=' for detecting relevant changes. - - * prv-xemacs.el (preview-create-icon): Use defsubst instead of - defmacro in order to avoid double evaluation of `file'. - (preview-check-changes): use `preview-relaxed-string=' for - detecting relevant changes. - - * latex/preview.dtx (section{Introduction}) - (section{Package options}, subsection{Supporting conversions}): - Mention that `tightpage' requires `dvips', too. - -2003-01-18 David Kastrup - - * Makefile.in (install-el, install-icons): Fix overquoting. - -2003-01-17 Jan-Ake Larsson - - * Makefile.in (install): Unquote $x so that the install prints - what is installed. - -2003-01-17 David Kastrup - - * aclocal.m4 (AC_SHELL_QUOTIFY): c\:\\bin is correct, but ugly. - Don't quote : specifically, it is not likely to be a special shell - character. - - * doc/Makefile.in (infodir): Add a few missing environment - variables. - - * latex/Makefile.in, Makefile.in, aclocal.m4, configure.in: try - to deal as perfectly as possible with spaces in file names, - quotes, backslashes and desperate things in general. - -2003-01-15 Jan-Ake Larsson - - * configure.in: Use AC_PROG_EMACS and more portable - AC_PATH_LISPDIR/PACKAGEDIR - - * aclocal.m4 (AC_PROG_EMACS): New. Sanitize AC_PATH_LISPDIR. Make - AC_PATH_PACKAGEDIR portable. - -2003-01-10 Jan-Ake Larsson - - * Makefile.in: Make Solaris make grok the remaining long lines - -2003-01-10 David Kastrup - - * preview.el (LaTeX-preview-setup): Change menu name for - generating customize menu to "Extend this menu". - - * configure.in (TEXMFGEN): Make this possibly more portable (at - the very least, we had some potential quoting problems). - - * autogen.sh, configure.in: Ok, darn them all. We now have a - configure.in that does no longer need to get patched up after - autoconf, regardless of which autoconf version gets used between - 2.13 and 2.57 or hopefully later. - -2003-01-07 David Kastrup - - * Makefile.in (AUCTEXLISP): quoting levels still unsufficient. - - * configure.in: Error message contained a single backquote, and - this made autoconf-213 barf. - - * Makefile.in (AUCTEXLISP): quote sed command correctly. - - * README.CVS: Update info about what autogen.sh generates. - - * doc/wininstall.texi: Well, forget a few details. Also added. - - * autogen.sh: Make much more simple, so that this will work with - more sed versions. - - * doc/wininstall.texi: Major overhaul, taking also GNU Emacs CVS - into account. - - * Makefile.in: Lots of quote fixes to make this hopefully compile - better when paths may contain spaces and backslashes (the horror, - the horror). - - * latex/Makefile.in: Lots of quote fixes to make this hopefully - compile better when paths may contain spaces and backslashes - (the horror, the horror). - - * doc/preview-latex.texi (Keys and lisp): Rearrange section, - cater for renamed menus, some better explanations. - - * doc/faq.texi (Installation Trouble): Some rearrangements and - additional explanations. - - * latex/preview.dtx (section{Provided Commands}): Add description - of \PreviewOpen and \PreviewClose. - (subsection{Selection options}): Typo in displaymath hook on \[ - fixed. - (subsection{Preview attaching commands}): Fix code of - \PreviewOpen and \PreviewClose which need to have their own - groups open and close always. - -2003-01-06 David Kastrup - - * latex/preview.dtx (section{Provided Commands}): Add a lot of - additional possibilities for previewing commands and document - them. - - * doc/preview-dtxdoc.pl: convert @ to @@, add braces around \marg - argument, allow spaces in \oarg argument. - - * doc/Makefile.in (install): rename INSTALLINFO to INSTALL_INFO - for consistency. - - * autogen.sh: Allow use of AUTOCONF, use sed. - - * configure.in: Rework the language stuff autoconf sickness. - Require autogen.sh for editing work. - -2002-12-29 David Kastrup - - * preview.el (preview-clearout-section): New function. - (preview-map): Add keybinding to it. - (LaTeX-preview-setup): Reorganize Preview menu for better user - friendliness. - -2002-12-22 David Kastrup - - * latex/Makefile.in (install-texmf): don't call TEXHASH with - argument: some of the substitutes might not like it. Better safe - than sorry. - - * configure.in: A few more texhash-related fixes. - -2002-12-20 David Kastrup - - * Makefile.in (LISP_SOURCES): Use = instead of := for non-GNU - make versions. Also in other variables. - -2002-12-19 David Kastrup - - * latex/preview.dtx (section{Package options}): Document - `footnotes' option. - (section{Provided Commands}): Document new second optional - argument to \PreviewMacro*. - (subsection{Parsing commands}): Obliterate \pr@seq and make - \pr@callafter have different semantics. - (subsection{Preview attaching commands}): New macroo \pr@endmacro - needed for new \pr@callafter semantics. - (subsection{Preview attaching commands}): Implement the new - second argument to \PreviewMacro* and \PreviewEnvironment*. - (subsection{Preview attaching commands}): Make \pr@startsnarf - adapt to new \pr@callafter semandtics. - (subsection{The \texttt{auctex} option}): Use the new semantics - in a number of cases. - - * doc/install.texi (Loading the package): Make this more - fool-proof by leaving out alternatives and reordering. - -2002-12-18 Jan-Ake Larsson - - * preview.dtx: Add \caption to auccfg - -2002-12-17 David Kastrup - - * Release 0.7.7 - - * prv-emacs.el (preview-unwatch-preamble): Fix a lethal typo. - - * Release 0.7.6 - - * preview-latex.spec (Requires): Bump to 0.7.6 - - * doc/faq.texi (Requirements): Change version requirements for - AUC TeX. - - * doc/readme.texi (Activating preview-latex): Explain about what - to do if preview-latex.el did not get installed properly. - - * doc/preview-latex.texi (Keys and lisp): Explain about new - commands and options. - (Simple customization): Explain how to keep counters accurate. - (The Emacs interface): document new options. - - * doc/install.texi (Prerequisites): Explain about AUCTeX and - XEmacs versions. - (Loading the package): Recommend using preview-latex.el as - standard measure. - - * Makefile.in (GS): Inherit GhostScript executable name. - (preview-latex.el): If GhostScript is not named "gs", change - preview-gs-command setting appropriately. Add the Lisp - installation directory to the load-path. - - * configure.in: use : instead of /bin/true - Check typical GhostScript executable names on Windows. Check for - initexmf -u (MikTeX specific). - - * RELEASE: Some more changes for 0.7.6 - -2002-12-16 David Kastrup - - * preview.el (preview-string-expand): Get optional separator - argument. - (preview-expandable-string): Change type somewhat. - (preview-clearout-document): doc change. - (preview-default-preamble, preview-LaTeX-command): Simplify to - changed definition of preview-expandable-string. - - * prv-xemacs.el (preview-mode-setup, preview-watch-preamble) - (preview-unwatch-preamble): Differentiate between unwanted formats - and formats without loaded master file. - - * prv-emacs.el (preview-watch-preamble, preview-unwatch-preamble, - preview-mode-setup): Differentiate between unwanted formats and - formats without loaded master file. - -2002-12-15 David Kastrup - - * Makefile.in (preview-latex.el): Avoid putting the output of pwd - inside of "...", because something like "C:\notagain" is not - quite the Lisp string we'd want. - - * preview.el (preview-walk-document): New function walking - through buffers of current document. - (preview-clearout-document): New function for completeness. - (preview-map): Add keybinding for it. - (LaTeX-preview-setup): Add menu entry for it. - - * configure.in: Preparations for 0.7.6 - - * RELEASE: Preparations for 0.7.6 - -2002-12-14 David Kastrup - - * aclocal.m4: Don't lie about name of option --with-texmf-dir - -2002-12-13 David Kastrup - - * latex/preview.dtx (subsection{The \texttt{footnotes} option}): - new option. - - * preview.el (preview-default-option-list): Switch on previews - for footnotes by default. - -2002-12-12 Jan-Ake Larsson - - * autogen.sh: Nitpicking - - * aclocal.m4, configure.in, doc/Makefile.in, doc/macros.texi: - Sanitize makeinfo macro tests - - * configure.in: Make LANG and LC_CTYPE saving work across - recursive call of ./configure (2.52) - -2002-12-12 David Kastrup - - * latex/preview.dtx (subsection{The internals}): Kill insertions - off that annoy our space strippers. That makes - \PreviewMacro[*[]{}]{\footnote} feasible. - -2002-12-11 Jan-Ake Larsson - - * images/preview-cap-up.xpm: Fix bg and fg color issues - -2002-12-10 Jan-Ake Larsson - - * autogen.sh: Make LANG and LC_CTYPE saving work across recursive - call of ./configure (2.13) - - * doc/macros.texi: Typo fixed - -2002-12-10 David Kastrup - - * preview.el (preview-counter-find): Take counters by searching - forward if searching backwards does not avail us. - (preview-reinstate-preview): Optimize queue/tempdir handling for - the most common case. - -2002-12-09 David Kastrup - - * preview.el (preview-counter-find): Factor out stuff from advice - since it will otherwise miss out on compatibility macros for XEmacs. - (TeX-region-create): Factor out advice. - (preview-reinstate-preview): Oops, wrong data if nothing - changed. Switched around. - - * latex/preview.dtx (subsection{Preview attaching commands}): - Don't \unskip in vertical modes in preview/nopreview - environments. - - * preview.el (preview-parsed-counters): New variable. - (preview-dissect): export counter info. - (preview-place-preview): get counter info. - (preview-reinstate-preview): resinstate counters also. - (preview-default-option-list): add counters option. - (preview-string-expand): New function. - (preview-expandable-string): New type. - (TeX-region-create): Advice for counter restoration. - (preview-last-counter): for restoring. - (preview-extract-counters): New function. - (desktop-buffer-preview-misc-data): Sort stuff when writing and - deal with counters. - (preview-dissect, preview-buffer-restore-internal) - (preview-place-preview): Deal with counters. - (preview-buffer-has-counters): New variable during parsing. - (preview-place-preview): Deal with counters. - (preview-required-option-list): New option. - (preview-make-options, preview-make-preamble): deleted - (preview-default-preamble, preview-LaTeX-command): redefine using - expandable strings. - (LaTeX-preview-setup): Replace entry in TeX-command-list with - dummy. - (LaTeX-preview-setup): Delete "%D" and "%P" fudges. - (preview-parse-counters): New function for parsing counters. - (preview-parse-variables): Add preview-parsed-counters to parse - list. - (preview-parse-messages): deal with counters. - (preview-dump-replacements): Add preview-LaTeX-command-replacements - (preview-cache-preamble): Don't generate string for - TeX-inline-preview, it does so itself. - (TeX-inline-preview): Generate command from preview-LaTeX-command - (preview-report-bug): Report more variables. - -2002-12-07 David Kastrup - - * preview.el (LaTeX-preview-setup): simplify "%m" entry in - TeX-expand-list. - (preview-create-subdirectory): return a quoted relative file name. - (preview-cache-preamble): various directory name related changes - so that everything will work master-relative. - (preview-cache-preamble-off): Same here. - (TeX-inline-preview-internal): Same here. - (preview-report-bug): Add autoload cookie. - (preview-create-subdirectory): Make dvips directory relative. - (preview-report-bug): also report LaTeX-command-style. - -2002-12-06 David Kastrup - - * preview.el (preview-gs-open): Another GhostScript security work - around, this time leaving off something that confuses 7.x - releases of AFPL GhostScript. - -2002-12-03 Jan-Ake Larsson - - * Makefile.in: - * prv-xemacs.el: handle the new toolbar image - - * images/preview-cap-up.xpm: toolbar image - -2002-11-29 Jan-Ake Larsson - - * doc/readme.texi: - * doc/preview-latex.texi: - * doc/macros.texi: - * doc/Makefile.in: - * configure.in: - * aclocal.m4 (AC_TEST_MAKEINFO_ACRONYM): Attempt to make docs - build with old texinfo - -2002-11-28 David Kastrup - - * Release 0.7.5 - - * latex/preview.dtx (subsection{Debugging options}): Typos. - - * Makefile.in (use-hint): Add XEmacs version hint. - - * prv-xemacs.el (preview-defmacro): define compatibility macros - only at compile time. - (preview-mode-setup): correct check for icon in toolbar. - - * preview.el (require): use load-library on prv-xemacs.el in - order to get the compatibility macros at compilation time. - -2002-11-22 David Kastrup - - * Release 0.7.4 - - * preview-latex.spec (Requires): New RPM brain damage means we - have to disable the 8bit test. - - * doc/faq.texi: Various updates. - - * doc/install.texi: Some cosmetic changes and version info - updates. - - * doc/preview-latex.texi (Keys and lisp): Adjust docs for changed - menu structure (Preview having a top-level entry). - (On EPS previews): phase out info about historical `postscript' - settings. - - * preview.el (preview-image-type): Don't offer `postscript' when - customizing. - - * configure.in: bump version. - - * doc/preview-latex.texi: bump version. - (Keys and lisp): reorder so that indexes refer to the start of - items. - - * preview.el (preview-gs-transact): add a bit of paranoia into - page shifts in case the coordinate origin is not upper left. - Similar to change in tightpage option of preview.dtx. - (preview-LaTeX-command-replacements): comment fix. - - * latex/preview.dtx (subsection{The \texttt{counters} option}): - new option and documentation: add counter checkpoints in - diagnostics. - -2002-11-21 David Kastrup - - * prv-xemacs.el (preview-mode-setup): And here we have the - toolbar icon for XEmacs users. Does not look too pretty, but - might inspire volunteers for improvements. - -2002-11-07 Jan-Ake Larsson - - * aclocal.m4: Cosmetic change to the AUC TeX path printout - -2002-11-20 David Kastrup - - * RELEASE: some changes for 0.7.4 - - * preview.el (preview-dump-command, preview-undump-command): - deleted. - (preview-do-replacements): New function for performing - replacements in strings. - (preview-LaTeX-command-replacements, preview-format-name) - (preview-dump-replacements, preview-undump-replacements): new - variables. - (preview-cache-preamble): adapt to new variables. - (TeX-inline-preview, TeX-inline-preview-internal): same. - -2002-11-18 David Kastrup - - * prv-emacs.el (preview-mode-setup): Add preview-at-point to the - toolbar, for those people that have not seen fit to disable it. - Volunteers for the XEmacs equivalent? - -2002-11-10 David Kastrup - - * preview.el (preview-ps-quote-filename): New function replacing - preview-ps-quote, generating a relative file name. - (preview-prepare-fast-conversion): Use it. - (preview-gs-transact): Use it. - (LaTeX-preview-setup): Make tmp directory name relative. - Problem is that Cygwin absolute paths are not suitable for - passing into MikTeX. Sigh. But perhaps relative file names are - nicer, anyway. - (preview-parse-messages): Fix regexps for the sake of people - incompetent to make the run buffer not contain ^M everywhere. - Another Windows-related "fix". - -2002-11-05 David Kastrup - - * preview.el (preview-gs-open): Place color setup after - setpagedevice. - - * latex/preview.dtx (subsection{Supporting conversions}): Make - the tightpage option generate proper /PageOffset values also for - devices with bottom-up coordinate systems. - - * doc/problems.texi: Remove preview-gs-broken-security docs. See - below. - - * preview.el (require): Don't abort compilation if desktop or - reporter packages are not installed. - (preview-gs-broken-security): Removed: - (preview-gs-open): Workaround for braindead security. - -2002-11-04 David Kastrup - - * Changes in order to preserve point in previews as follows: - * preview.el (preview-at-point): Pass selected window into - preview-toggle. - (preview-place-preview): Pass event into preview-toggle. - (preview-reinstate-preview): Same here. - * prv-emacs.el (preview-toggle): take additional argument (event - or window). - (preview-last-location): New variable, buffer-local. - (preview-mark-point): Remember point before moving out. - (preview-restore-position): New function. - * prv-xemacs.el (preview-toggle): take additional argument (event - or window). - (preview-last-location): New variable, buffer-local. - (preview-mark-point): Remember point before moving out. - (preview-restore-position): New function. - -2002-10-21 Jan-Ake Larsson - - * configure.in: Fix texhash check - -2002-09-16 David Kastrup - - * latex/preview.dtx (section{Introduction}): Mention tightpage - option for image conversion already here. - (\pr@endbox): set \reserved@a to something harmless for skipping - (if it was set to a conditional, we got into trouble). - (subsection{Selection options}): Redo the textmath option because - the exscale package (for example) does dirty things within - \frozen@everymath. - -2002-09-06 David Kastrup - - * doc/faq.texi: Explain about 'Preview-LaTeX exited abnormally - with code 1' message - -2002-09-02 David Kastrup - - * prv-xemacs.el (preview-mode-setup): Make behaved startup in - buffers without associated file (M-x calendar RET tfw produces - things like that). Generating previews will not work before you - save the buffer, but at least the stuff doesn't bomb out right - away. - - * prv-emacs.el (preview-mode-setup): Make behaved startup in - buffers without associated file (M-x calendar RET tfw produces - things like that). Generating previews will not work before you - save the buffer, but at least the stuff doesn't bomb out right - away. - - * circ.tex: Load and save once to make it X-Symbol-compatible - (changes are negligible, and it makes demoing mixtures of the two - tools nicer). - - * preview.el (LaTeX-preview-setup): Fix menu position of generated - customize menu. - (preview-format-kill, preview-dump-file-name) - (preview-cache-preamble, TeX-inline-preview-internal): Use prefix - `prv_' for dumped formats to avoid name collisions (for example, - with WhizzyTeX). - -2002-08-14 David Kastrup - - * Release 0.7.3 - - * preview.el (preview-auto-cache-preamble): Renamed from - preview-dump-default. Make the default 'ask: that way people - will be hard put to overlook this feature, but are not stuck on - it in case it causes trouble. Perhaps will make them read the - manual, too, in order to set this to T. - (preview-map): Use preview-cache-* - (preview-cache-preamble, preview-cache-preamble-off): renamed - from preview-dump-*. - - * doc/preview-latex.texi (Keys and lisp): Rename - preview-dump-format and its ilk to preview-cache-preamble. - (Simple customization): Mention automatic preamble caching. - -2002-08-13 David Kastrup - - * preview.el (TeX-inline-preview): Use set-process-coding-system - only when Mule is active. - (preview-document): Save document if necessary. - (TeX-inline-preview): Some overhaul. - (TeX-inline-preview-internal): Separated out so that - region/format dumps don't interfere. - - * prv-xemacs.el (preview-mode-setup): See below. - (preview-dump-threshold): See below. - (preview-preamble-format-cons): File local variable for watching. - (preview-preamble-check-change, preview-watch-preamble) - (preview-unwatch-preamble): See below. - (preview-handle-before-change): Call - preview-preamble-check-change. - - * prv-emacs.el (preview-dump-threshold): Regexp ending dump. - (preview-preamble-changed-function): New function. - (preview-watch-preamble): New function. - (preview-unwatch-preamble): New function. - (preview-mode-setup): Check whether we open a watched file. - - * preview.el (preview-buffer): Move region exclusion into advice - for TeX-region-create. - (preview-dump-default): New variable, tells us whether we should - dump formats automatically. - (preview-dumped-alist): Semantics change. - (preview-dump-format): Use watch functions from prv-*.el - (preview-clear-format): new optional argument, save last wanted - state. - (TeX-inline-preview): Use preview-dump-default. - -2002-08-07 Jan-Ake Larsson - - * autogen.sh: Fixed autoconf-fix message - -2002-08-07 David Kastrup - - * preview-latex.spec (Release): Set to 9 (prerelease) - (Requires): Add FAQ to docs. - - * doc/faq.texi: FAQ added. - -2002-08-06 David Kastrup - - * prv-xemacs.el (preview-use-balloon-help): New boolean - customization variable. - (preview-mode-setup): Use it. - - * doc/preview-latex.texi (The Emacs interface): Document it. - -2002-08-05 David Kastrup - - * latex/preview.dtx (subsection{Supporting conversions}): change - default of \PreviewBbAdjust from 0.5bp to 0.50001bp. - -2002-08-04 David Kastrup - - * preview.el (preview-back-command): New optional argument - NOCOMPLEX. - (preview-parse-messages): Use it for not skipping backwards over - braced expressions when start and end of triggered errors match. - -2002-08-03 David Kastrup - - * RELEASE: update RedHat distro info. - - * doc/preview-latex.texi: Remove documentlanguage setting: English - is the default anyway, and declaring it breaks the broken TeXlive 7 - texinfo distribution. - - * doc/todo.texi: Updates. - - * RELEASE: New leading commercial. - -2002-08-01 Jan-Ake Larsson - - * doc/preview-latex.texi: Typo corrected - -2002-07-31 David Kastrup - - * doc/Makefile.in (preview-latex/index.html, clean): clean out - preview-latex directory for html-docs. - - * doc/problems.texi (Problems with GhostScript): document - preview-gs-broken-security. - - * doc/preview-latex.texi: Bump version to 0.7.3. - (The Emacs interface): Document changes in options. - - * doc/install.texi (Prerequisites): GhostScript problem info. - - * doc/Makefile.in (TEXIFILES): New macro. - (preview-latex/index.html, preview-latex.dvi, preview-latex.info): - Make dependency on TEXIFILES. - (clean): remove INSTALL.windows - - * preview.el (preview-parsed-font-size) - (preview-parsed-magnification): documented. - (preview-hook-enquiry): Use value of symbol only if bound. - (preview-document-pt-list): Correct customization type. - -2002-07-30 David Kastrup - - * latex/preview.dtx (section{Package options}): document `lyx' - option. - - * doc/wininstall.texi: New file documenting XEmacs/Windows, - courtesy of Anthony Williams. - -2002-07-29 David Kastrup - - * preview.el (preview-parsed-font-size) - (preview-parsed-magnification): new variables set from - preview.sty - (preview-get-magnification): consults - preview-parsed-magnification. - (preview-gs-resolution): consult preview-get-magnification. - (preview-gs-open): Delay setup of preview-gs-command-line - (preview-gs-dvips-process-setup): complete it. - (preview-hook-enquiry): New function. - (preview-document-pt-list): Sources of document-pt. - (preview-auctex-font-size): Previously preview-document-pt - (preview-document-pt): Uses preview-document-pt-list - (preview-scale-from-face): defer part of calculation. - (preview-parse-variables): Variable list set from preview.sty - (preview-parse-messages): Clear them at start of parse. - (preview-parse-messages): New pattern for variable list. - (preview-parse-messages): magnification for PS bounding box. - (preview-parse-messages): Parse variables from preview.sty - (preview-get-geometry): Use preview-hook-enquiry for call of - preview-scale-function. - -2002-07-28 David Kastrup - - * latex/preview.dtx (subsection{Preview attaching commands}): Fix - \PreviewEnvironment* - (subsection{Preview attaching commands}): Type out font size and - magnification info at start of document. - (subsection{Supporting conversions}): Take DVI magnification into - account in `tightpage' option. - -2002-07-26 David Kastrup - - * circ.tex: Demonstrate showlabels (and fix a math oversight). - - * latex/preview.dtx (subsection{The \texttt{showlabels} option}): - Changes, different look, more robust. - -2002-07-25 Jan-Ake Larsson - - * doc/problems.texi: Info on windows-xemacs - -2002-07-25 David Kastrup - - * preview.el (LaTeX-preview-setup): Fix form of preview-entry in - order not to confuse customize. - -2002-07-24 David Kastrup - - * preview.el (TeX-inline-preview): Export buffer coding system to - TeX process output encoding (for our Polish friends and others). - Hope this does not break non-Mule XEmacsen if such are around. - -2002-07-23 David Kastrup - - * preview.el (preview-image-creators): Change tiff device to use - tiff12nc, which has a chance of working with the current - settings, at the cost of large file sizes. - -2002-07-23 Jan-Ake Larsson - - * doc/install.texi: Minor changes - - * doc/problems.texi: Documented GNU gs 7.05 security bug info - -2002-07-22 David Kastrup - - * latex/preview.dtx (subsection{The \texttt{showlabels} option}): - Make sanitization of labels more consistent and switch to - typewriter font. - -2002-07-19 David Kastrup - - * prv-xemacs.el (preview-mode-setup): Add preview menu. - - * prv-emacs.el (preview-mode-setup): Add preview menu. Why is it - before the LaTeX menus? - - * preview.el (preview-map): Prefix-keymap. - (LaTeX-preview-setup): Use it. - -2002-07-18 David Kastrup - - * prv-xemacs.el (face-attribute): shift stuff to compile time. - (preview-with-LaTeX-menus, preview-mode-setup): cosmetic changes. - - * preview.el (preview-LaTeX-command): Use Windows-friendly - quoting. - (preview-dump-command, preview-undump-command): Same here. - -2002-07-16 David Kastrup - - * preview.el (preview-ps-quote): New function. - (preview-prepare-fast-conversion): Use it. - (preview-gs-transact): Use it. - - * latex/preview.dtx (subsection{The \texttt{auctex} option}): - Output font size. - (subsection{The \texttt{lyx} option}): New option. - (subsection{Supporting conversions}): Write out tightpage - dimensions before each change. - (section{Various driver files}): generate prlyx.def. - -2002-07-11 David Kastrup - - * preview.el (preview-gs-broken-security): New option specifying - when to disable security. - (preview-gs-open): Use it. Also abort more predictably if - setpagedevice fails, usually due to broken security. - -2002-05-28 David Kastrup - - * preview.el (LaTeX-preview-setup, preview-parse-messages): cater - to abbreviated locator error message. - (preview-clearout-at-point): New function. - (LaTeX-preview-setup): add to menus and cleanup unnecessary flags. - - * latex/preview.dtx: replace "Package Preview Error" with - "Preview": too many people got confused. - - * doc/preview-latex.texi (Simple customization): Document new - auto-reveal default. - (Simple customization): Document a better way for default - options. - - * preview.el (preview-gs-open): bind preview-latex-do PostScript - operator. - (preview-auto-reveal): Change default to auto-open on move - left/right. - -2002-05-08 David Kastrup - - * doc/todo.texi: add request for other TeX formats. - - * preview.el (preview-parse-messages): There is little point in - being more picky about ( than we are about ), since all that this - buys us is bad nesting. - - * prv-emacs.el (preview-gs-get-colors): Warp outline borders to - integral pixels in order to avoid antialiasing artifacts. - -2002-05-06 - - * preview.el (preview-back-command): Changed semantics in order - not to backstep over punctuation. - (preview-get-geometry): Bad error message format. - -2002-04-30 Jan-Ake Larsson - - * preview.el (preview-dump-format): - Now checks if format has changed; if it hasn't, - no new dump is made. - - * preview.el (preview-buffer): Changed to mirror the behaviour of - TeX-region-create. This is probably the best we can do. - -2002-04-29 Jan-Ake Larsson - - * preview.el (preview-buffer): allow it to work with format - caching + added comment - -2002-04-28 Jan-Ake Larsson - - * doc/preview-latex.texi: - Document preview-clear-format and its keybindings - - * preview.el (preview-clear-format): - new, also changed keybinding for it - -2002-04-26 Jan-Ake Larsson - - * doc/preview-latex.texi: Documented preview-dump-format - - * preview.el: Cosmetic change in menu - -2002-04-26 David Kastrup - - * preview.el (LaTeX-preview-setup): Menu entries and keybindings - for preview-dump-format. - (preview-dumped-list): New variable: dumped formats. - (preview-dump-format): New command for pregenerating format files. - (TeX-inline-preview): Use dumped format if present. - (preview-dumped-list): Move. - (preview-cleanout-tempfiles): Also kill format files. - (preview-format-extensions): New variable for cleanup purposes. - (TeX-inline-preview): preview-dumped-list contains expanded file - names. - -2002-04-24 Jan-Ake Larsson - - * problems.texi: Slight index change - - * preview-latex.texi (Keys and lisp): Added the menu entries - -2002-04-23 Jan-Ake Larsson - - * autogen.sh: Test for unique file 'preview.el' in autoconf 2.13 - -2002-04-23 Alan Shutko - - * aclocal.m4 (AC_PATH_PROGS_REQUIRED): New. - - * configure.in: Lock in whole path of Emacs executable. - -2002-04-23 David Kastrup - - * Release 0.7.2b - - * Makefile.in (preview-latex.el): Quickfix - - * Release 0.7.2 - - * preview.el (preview-buffer-restore-internal): Remove expired - previews. - (preview-reinstate-preview): set timestamp. - -2002-04-22 Nix - - * doc/install.texi (Advice for non-privileged users): - Add XEmacs-specific instructions. - - * aclocal.m4 (AC_EXAMINE_PACKAGEDIR): Locate an existing preview-latex - package and install over it if found. - (AC_PATH_PACKAGEDIR): Support ~/ in package directory names. - -2002-04-22 David Kastrup - - * doc/install.texi (Advice for non-privileged users): new section. - - * configure.in: Quote TEXMFGEN. - - * doc/readme.texi (Getting started): mention the mouse buttons. - -2002-04-21 Nix - - * prv-emacs.el: Remove comment regarding XEmacs's lack of local - change hooks; it has them and we use them. - - * doc/problems.texi (XEmacs): Mention the process-liveness patch. - Fix some grammar. Call the support `quite new' rather than - `very new'. - - * configure.in (infodir): Define for XEmacs; point to the info - location in the package tree. - -2002-04-21 David Kastrup - - * preview.el (preview-parse-messages): Try a few changes making - bad buffer-local interac - shorten export format. Backward compatible. - - * prv-xemacs.el (preview-export-image, preview-import-image): - shorten export format. Backward compatible. - -2002-04-14 Nix - - * prv-xemacs.el (glyph-image-type): New, determine the - image type of a glyph. - (preview-export-image): Use it. - - * doc/problems.texi (XEmacs): Say that preview reinstating - works with a new enough desktop.el. - -2002-04-14 David Kastrup - - * prv-emacs.el (preview-export-image): New macro. - (preview-import-image): New macro. - - * preview.el (preview-reinstate-preview): use - preview-import-image. - (preview-dissect): Use preview-export-image. - - * prv-xemacs.el (preview-export-image, preview-import-image): New - functions for desktop.el. - - * doc/Makefile.in (preview-latex.info): In the interest of - release sanity, add --no-split option so that we have to cater - for just a single info file. Needs to be reverted later. - - * doc/readme.texi (Getting started): mention circ.tex here - instead of installation.texi. - - * preview.el (preview-gs-filter): Don't remove from "Compilation" - tag if just in filter routine. - - * patches/flyspell.patch, patches/mouse-drag.patch: update - inflicted Emacs version number. - - * doc/problems.texi (Middle-clicks paste instead of toggling): - Alas, those bugs persist into 21.2 although the CVS has had it - fixed for half a year almost. "Stable release" policies. Ha. - -2002-04-14 Nix - - * preview.el (preview-parse-messages): - Typo and grammar fixes in comments. - No longer wonder if XEmacs will like line-number regexps. - - * doc/problems.texi (XEmacs): - Say that it works modulo core bugs and new desktop.el package. - Point to the latest version of the core patch. - Suggest trying under MS Windows. - (GNU Emacs under Windows): Point out that preview-latex's not been tested - under Windows with XEmacs, either. - - * doc/install.texi (Prerequisites): - No longer describe XEmacs support as preliminary. - Mention the Known Problems link. - (Configure): Elaborate --with-packagedir. - (Loading the package): Mention that most of these instructions - are unnecessary for XEmacs, except if you used --with-packagedir. - (Maybe should split into Emacs/XEmacs subsections?) - -2002-04-14 Jan-Ake Larsson - - * install.texi: Added --with-xemacs - - * preview-latex.spec: Only require xemacs >= 21.1 - -2002-04-14 David Kastrup - - * doc/install.texi Added section for package providers, updated - the links. - - * preview.el (preview-error-condition): New variable for last - error condition. - (preview-log-error): Error reporting routine. Logs to run buffer. - (preview-reraise-error): At the end of routines, raise a true - error with beep and whatever else is necessary to get attention. - (preview-gs-sentinel, preview-gs-filter) - (preview-gs-dvips-sentinel, preview-gs-transact): use it. - (preview-gs-transact): Don't send to dead process. - (preview-parse-messages): Use error logger. - (preview-TeX-inline-sentinel): Same here. - (TeX-inline-preview): Catch initialization errors and abort. - Good for people without graphic display. - -2002-04-13 Jan-Ake Larsson - - * preview-latex.spec: Repair RedHat XEmacs braindamage - - * preview-latex.texi: Document new keybindings - -2002-04-13 Nix - - * prv-xemacs.el (preview-compatibility-macros): - Bind the final list of compiled macros into the bytecode at - the end of compilation. - -2002-04-13 David Kastrup - - * prv-xemacs.el (preview-make-clickable): Revert changes. - (preview-auto-reveal): revert default: reveal.el might be loaded - after preview.el, and we still want the default to follow - reveal-mode in that case. - -2002-04-13 Nix - - * prv-xemacs.el (preview-nonready-icon): - Give a reasonable error if the icon doesn't exist. - (preview-error-icon): Likewise. - (preview-icon): Likewise. - - (preview-make-clickable): Set `isearch-open-invisible' on new clickable regions. - (preview-toggle): Likewise. - (preview-auto-reveal): Only track reveal-mode if reveal-mode is defined. - If reveal-mode' is not defined, the default should be nil. - - (isearch-highlight): Make a protected, disabled advisement by default. - (replace-highlight): Never exists; don't bother to advise. - (preview-query-replace-reveal): Turn on the isearch-highlight advisement. - - * doc/todo.texi: Update XEmacs status: most things are now done. - -2002-04-13 David Kastrup - - * preview.el (preview-next-border): Fix a weird error where - regions beyond the file were demanded. - (preview-at-point): Include previews immediately before point for - toggling. - - * prv-xemacs.el (preview-toggle): Make isearch open the invisible - stuff, and make isearch-invisible track invisible so that isearch - will not "restore" things improperly. - (preview-move-point): isearch is manipulated by advising - isearch-highlight. No need to check here for isearch-mode. - (defadvice): only advise replace-highlight if defined. - - * latex/preview.dtx (subsection{The \texttt{showlabels} option}): - hotfix for strange label names. - - * preview.el (preview-disable): Go via toggle for disabling - strings. - - * prv-xemacs.el (preview-mode-setup, preview-marker) - (preview-temporary-opened, preview-mark-point) - (preview-auto-reveal, preview-move-point, preview-open-overlays) - (replace-highlight, preview-query-replace-reveal) - (preview-change-list, preview-register-change) - (preview-check-changes, preview-handle-before-change) - (preview-handle-after-change): Do the whole fake-intangibility - and change detection shmeer. isearch does not work yet. - -2002-04-12 David Kastrup - - * preview.el (LaTeX-preview-setup): call preview-mode-setup - and/or put it in LaTeX-mode-hook. - (preview-buffer, preview-document, LaTeX-preview-setup): New - commands, keybindings, menu entries. Things are now more - orthogonal and you do no longer need C-c C-c and their ilk (though - still supported): we have the commands all accessible via C-c C-p - now. - (preview-dsc-parse): Make DSC parsing more robust. - - * prv-xemacs.el (preview-mode-setup): New function. Enable - balloon help. - - * prv-emacs.el (preview-toggle): Move hook setup to - preview-mode-setup. - (preview-mode-setup): New function. - (preview-mark-active): make macro. - - * Makefile.in: New icons. - - * images/preverr.xbm, images/preverr.xpm: New icons. - - * prv-emacs.el (preview-error-icon): New icon. - - * preview.el (preview-mouse-open-error): Use other call - conventions in order not to confuse XEmacs. - (preview-gs-flag-error): switch to using error icon. - (preview-error-face): deleted. - - * prv-xemacs.el (preview-error-icon): New icon. - (preview-make-clickable): new properties preview-balloon-help and - preview-keymap. - (preview-click-reroute): changed to use preview-keymap. - (preview-reroute-map): new function. - (preview-balloon-reroute): new function. - (preview-toggle): change the juggling. - - * doc/preview-latex.texi (Simple customization): expound on the - center example. - -2002-04-11 Jan-Ake Larsson - - * preview-latex.spec: Adjustments for xemacs - - * doc/preview-latex.texi: Reinstate (reverse) textmath hint - -2002-04-11 David Kastrup - - * preview.el (preview-environment, preview-parse-messages): byte - compiler warnings. - (preview-buffer-restore-internal): basically the previous - preview-buffer-restore. - (preview-buffer-restore): delay resinstating previews vie - desktop-delay-hook. - - * prv-xemacs.el (face-attribute): Try getting calculation of - :height more correct. - (preview-inherited-face-attribute): Make a macro. - - * prv-install.el (preview-make-package): Avoid Emacs - unnecessarily loading all command line arguments as files. - - * prv-xemacs.el (preview-click-reroute): New routine to - discriminate between clicks on glyphs or else. - (preview-make-reroute): Generate a reroute map from original - glyph clickable keymap. - (preview-toggle): use the rerouter. - -2002-04-10 Jan-Ake Larsson - - * doc/preview-latex.texi: Added hint on getting custom - environments previewed due to John Jones, remove the textmath hint - - * latex/.cvsignore: New - - * .cvsignore: Changed due to the 'latex' subdir - - * patches/x-symbol.patch: Removed - - * preview-latex.spec: Simplifications from using a 'latex' subdir - - * doc/Makefile.in: Use mkinstalldirs - -2002-04-10 David Kastrup - - * preview.el (preview-default-option-list): set textmath per - default. - - * latex/README-preview: update to reflect added file footprint - from preview.dtx - -2002-04-10 Jan-Ake Larsson - - * Makefile.in: Move the texmf part to latex/Makefile.in, fix the - 'clean' target - - * configure.in: preview.dtx has moved, generate latex/Makefile - - * doc/Makefile.in: preview.dtx has moved - - * latex/README-preview, README-preview: - Renamed README-preview to latex/README-preview - - * latex/bootstrap.ins, bootstrap.ins: - Renamed bootstrap.ins to latex/bootstrap.ins - - * latex/preview.dtx, preview.dtx: - Renamed preview.dtx to latex/preview.dtx - - * latex/Makefile.in: Move latex style to subdir, Typo corrected - -2002-04-10 David Kastrup - - * prv-xemacs.el (face-attribute): GNU Emacs calculates face - heights differently. - (preview-replace-active-icon): For now do the full inefficient - stuff. Working this out later should be easy. XEmacs now - displays previews, but that's about all. - (preview-button-1, preview-button-2): define as XEmacs buttons - (preview-make-clickable): make balloon-help something that - balloon-help-mode understands. - -2002-04-09 Nix - - * prv-xemacs.el: Remove crufty destructive-copy stuff. - - (map-plist, destructive-replace-glyph, copy-glyph): Removed. - (preview-replace-active-icon): Just set the new image property rather than - destructively copying it. - -2002-04-09 Nix - - * prv-xemacs.el (preview-nonready-icon): Fix baseline. - (preview-icon): Likewise. - - Bug fixes: - - (destructive-replace-glyph): Don't confuse `new-glyph' and `glyph'. - - Sync with prv-emacs changes: - - (propertize): Create zero-length extents if possible. - (preview-image-from-icon): Removed. - (preview-string-from-image): Removed. - (preview-replace-icon): Removed. - (preview-nonready-copy): New, simple as anything. - (preview-replace-active-icon): New, albeit apparently broken. - - (preview-make-clickable): Handle glyphs as well as strings. - (preview-toggle): Clickable glyphs are now always on the `end-glyph'. - -2002-04-09 David Kastrup - - * prv-emacs.el (preview-nonready-copy): replaces - preview-image-from-icon - (preview-replace-active-icon): replaces preview-replace-icon - (preview-make-clickable): make preview-string-from-image - unnecessary. - - * preview.el (preview-gs-place): Don't return image, just enter - it. - (preview-gs-transact): Call preview-replace-active-icon - specialized routine instead of the more general hack used before. - (preview-disabled-string): kill preview-string-from-image - (preview-inactive-string): same here. - (preview-eps-place): change in place semantics as above. - (preview-active-string): Don't receive image argument. - (preview-place-preview): New place semantics. - - * doc/problems.texi (x-symbol interoperation): Bump recommended - version to 4.2.2. - (Middle-clicks paste instead of toggling): Mention fixes present - in Emacs-21.2. - (Middle-clicks paste instead of toggling): Mention isearch. - -2002-04-09 Jan-Ake Larsson - - * preview-latex.spec: Install icons - - * doc/preview-latex.texi: Put Nick in authors, slight other changes - - * doc/problems.texi: Added entry on fast conversion and bounding boxes - - * doc/todo.texi: Added manual stuff - -2002-04-08 David Kastrup - - * doc/todo.texi: New suggestion for manual. - - * doc/readme.texi (Getting started): Adapt text to new icons. - - * doc/preview-latex.texi (The Emacs interface): Add documentation - about the scaling variables/issues from preview-latex. - -2002-04-07 David Kastrup - - * preview.el (preview-parse-messages): Error message cosmetics - and a judicious save-excursion for fast hooks. - - * prv-emacs.el (preview-nonready-icon): Use new icons. - (preview-icon): Same here. - -2002-04-07 Nix - - * prv-install.el (preview-make-package-xemacs): - Revert last change; package version numbers must be integral. - Ensure that we get a valid integer even if `preview-version' - contains multiple periods. - -2002-04-07 David Kastrup - - * images: Icons, several revisions. - -2002-04-06 Nix - - * prv-install.el (preview-make-package-xemacs): - Prepend "0." to XEmacs package version numbers - for CVS versions of preview.el. - - * prv-xemacs.el (preview-icon,preview-nonready-icon): - Use new icon images. - - * Makefile.in (ICONFORM,ICON_XPM_SOURCES): New - variables, for icon installation. - (ICON_XBM_SOURCES,ICON_SOURCES,icondir): Likewise. - (ELCC): Include the ICONFORM. - - (install-icons): New, install the icons. - - (MKINSTALLDIRS): New (for later, when objdir!=srcdir support is added). - (install): Use it. - (install-el): Likewise. - (install-texmf): Likewise. - (install-texmf-doc): Likewise. - - * configure.in (icondir): - Set for GNU Emacs too (but blank), and substitute it. - (ICONFORM): New variable, comamnd-line switch to pass to (X)Emacs - to find the images at build time (if needed). Substitute it. - - * mkinstalldirs: New file, from automake-1.6. - -2002-04-06 Nix - - * doc/todo.texi: Update XEmacs status. - - * configure.in: Substitute the packagedir. - - * Makefile.in (packagedir): New variable, used by... - (install-el): ... this new package-installation handling. - - * prv-install.el: New file, containing... - (preview-make-package): New function. - (preview-make-package-xemacs): New function, derived from - emacs-w3m. - - * aclocal.m4 (AC_EXAMINE_PACKAGEDIR): Lowercasify PACKAGEDIR. - (AC_PATH_PACKAGEDIR): Likewise. - -2002-04-06 Alan Shutko - - * configure.in: Start adding XEmacs-specific hooks. Right now, - lispdir should be correctly set up, I think. icondir is sitting - there for when we add icons. - - * aclocal.m4 (AC_PATH_PACKAGEDIR,AC_EXAMINE_PACKAGEDIR): New - functions for XEmacs installation, borrowed from from emacs-w3m, - credit to Katsumi Yamaoka . - -2002-04-06 Jan-Ake Larsson - - * autogen.sh, doc/Makefile.in, doc/preview-latex.texi: - Include todo.texi - - * doc/todo.texi: Moved from TODO - - * TODO: Moved to todo.texi - -2002-04-05 David Kastrup - - * preview.el (preview-parse-messages): Another addition to the - fast location hook semantics. - (preview-parse-messages): one last change for Christoph. - - * prv-emacs.el (preview-add-urgentization): Cosmetic change. - - * Additional frobbing of urgentization. - -2002-04-05 Nix - - * prv-xemacs.el (preview-add-urgentization): Use - `set-extent-initial-redisplay-function' to force immediate - redisplay if already on-screen. - (preview-remove-urgentization): Likewise. - -2002-04-05 David Kastrup - - * prv-xemacs.el (preview-remove-urgentization): proper return - value. - (preview-add-urgentization): Make entry in - initial-redisplay-function easier to reextract for - preview-remove-urgentization. - - * TODO: small changes. - -2002-04-04 Nix - - * preview.el (preview-parse-messages): - Cater for XEmacs shy grouping bug (shy grouping - very nearly doesn't work in XEmacs-21.4...) - - * prv-xemacs.el (match-string-no-properties): - New, same as `match-string'. - (set-buffer-multibyte): Degenerate implementation. - - (face-attribute): Throw an error of the right error class. - (make-temp-file): Likewise. - - (preview-add-urgentization): Revise signature, as in prv-emacs. - (preview-with-LaTeX-menus): Do not copy useless menus around. - - (preview-string-from-image): Make obvious that this generates any - kind of glyph, not just begin-glyphs. - (preview-ps-image): Revise signature (but implementation is still - stubbed). - (preview-toggle): Revise signature slightly. Flip between begin - and end-glyphs to partially cater for XEmacs redisplay bug. - -2002-04-04 David Kastrup - - * preview.el (preview-gs-dvips-process-setup): Correct deletion - of dvi file. - (preview-dvips-abort): don't unnecessarily clean subdirs. - (preview-gs-dvips-sentinel): get the delete semantics right. - (preview-gs-close): same here. - (preview-delete): after deleting files, set files in overlay to - nil since in connection with urgentization we can get multiple - deletions. - (preview-parse-messages): initialize lfile to "", so that line - number caching does not fail when the filename is "nil". - (preview-parse-messages): AAAAAARGGG!!!. Fix the typo that - caused O(n^2) parsing time. - -2002-04-03 David Kastrup - - * preview.el (preview-gs-close): move. - (preview-gs-dvips-process-setup): New function for setting up - process just at the time of use. - (preview-dvips-abort): New function. - (preview-gs-dvips-sentinel): Overhaul. - (preview-gs-close): Overhaul in order to do the right thing - regardless of whether Dvips has finished or not. - (preview-eps-open): Some initial changes. 'postscript image - device likely to be broken by us (but it is broken in Emacs, - anyway). - (preview-parse-messages): Take `open-closure' as argument. - (preview-parse-messages): different hook semantics for fast - hooks. We are still in negotiations over this... - (preview-parse-messages): change parsestate to list of vectors. - -2002-04-03 Jan-Ake Larsson - - * doc/preview-latex.texi: documented showlabels - - * doc/install.texi, doc/readme.texi: Slight edits - - * doc/problems.texi: Document x-symbol.patch, slight other edits - - * patches/x-symbol.patch: Initial version - - * preview-latex.spec: Use texmfdir, slight other edits - -2002-04-03 Jan-Ake Larsson - - * preview-latex.spec: Use texmfdir, slight other edits - -2002-04-02 Jan-Ake Larsson - - * aclocal.m4: escaped usage of $texmfdir - -2002-04-01 Jan-Ake Larsson - - * Makefile.in: added texmf and elisp targets, also targets for - $TEXMFGEN - - * preview-latex.spec: Initial stab at triple-rpm spec - - * doc/Makefile.in: *.dvi and *.info cleaned again - - * preview-latex.spec: Typo corrected - -2002-04-01 David Kastrup - - * preview.el (LaTeX-preview-setup): Remove our own - TeX-translation-hook that did not really work (supposed to remove - Preview error messages from preview runs, but for document - problems you'd rather use the real run, anyhow). - (preview-parse-messages): remember directory when switching - buffers. Implement fast translation hooks. A pity nobody uses - them yet. - (TeX-inline-preview): Use TeX-run-command instead of - TeX-run-format: we miss out on the progress info in the mode - line, but it slowed down the filter routine. - - * preview.dtx (subsection{The \texttt{auctex} option}): Make the - error messages shorter to cut down on I/O time. - -2002-03-31 David Kastrup - - * preview.el (preview): add cross links. - - * Makefile.in: Rerun LaTeX to get references right. - - * preview.dtx (subsection{The \texttt{auctex} option}): Disable - \thanks and \and. - - * preview.el (preview-default-option-list): Update possibilities - and docs. - (preview-parse-messages): Don't do files not known to be - human-generated. - (preview-gs-queue-empty): New cleanout function. We use this - instead of just clearing preview-gs-queue in order to avoid - losing pointers to deletable temporary files. - (preview-gs-sentinel): Use it. - (preview-gs-close): Same here. - (preview-gs-open): And here. Use unwind-protect in order to - ascertain we process the queue. - (preview-prepare-fast-conversion): Accept non-dereferenced big ps - file. - (preview-gs-dvips-sentinel): better behavior when processes get - started and finished in unexpected orders. - -2002-03-31 Jan-Ake Larsson - - * preview-latex.spec: - Changed to include everything in /texmf/tex/latex/preview, - fix for %config files - -2002-03-30 David Kastrup - - * doc/preview-dtxdoc.pl, preview.dtx (section{Various driver - files}): Add \previewlatex macro for consistent translation. - - * doc/preview-dtxdoc.pl: add \% and ~ translations. - - * preview.dtx (section{Package options}): document new option - files. - - * doc/problems.texi (x-symbol interoperation): Mention speed - problem. - - * preview.dtx: loads of smaller and larger changes, new options - files. - - * preview.el (preview-back-command): typo. - - * autogen.sh (makeinfo): move into doc directory for - autogenerating files so that include files are found. - -2002-03-30 Jan-Ake Larsson - - * doc/Makefile.in: New dependency on macros.texi - - * doc/install.texi, doc/readme.texi, doc/copying.texi: - Macros in separate file - - * doc/problems.texi: Typo corrected, macros in separate file - - * doc/preview-dtxdoc.pl: Changed slightly wrt \cmd translation - - * doc/macros.texi: Macros for the texinfo generation - - * doc/preview-latex.texi: Typos corrected, macros in separate file. - -2002-03-30 Alan Shutko - - * Makefile.in (TEXMFGEN): Use new variable. - - * configure.in (TEXMFGEN): New variable with the tex stuff - generated which should be installed. - -2002-03-29 David Kastrup - - * preview.el (preview-back-command): Change call semantics to - something easier to understand and try out. - (preview-parse-messages): Remove unused variable `next-point'. - (preview-parse-messages): Correct thinko and use new - preview-back-command semantics. - -2002-03-28 David Kastrup - - * preview.dtx: move \pr@ship@start - - * preview-latex.spec (%configure): Use --with-texmf-dir. - -2002-03-27 Alan Shutko - - * doc/install.texi (Configure): Reflect changes in configure - options. - - * configure.in (--with-texmf): Changed to --with-texmf-dir per bug - 480837. - (--with-preview-dir): Changed to --with-tex-dir per bug 480837. - (--with-doc-dir): New. - -2002-03-28 David Kastrup - - * circ.tex: Correct labels. - -2002-03-27 David Kastrup - - * preview.dtx: be careful in unboxing so as not to remove - possibly shifted hboxes (bug reported by Jan-Åke) protected by an - otherwise inexplicable penalty. - - * preview.el: Complete overhaul of parsing to avoid (costly) - buffer switches. - (preview-gs-close): Transfer queue to - preview-gs-queue. - (preview-gs-open): Pass arglist to preview-parse-messages for - place functions. - (preview-eps-open): Same. - (preview-gs-place): Completely different args in order to avoid - buffer switching. Different return value. - (preview-inactive-string): Different semantics (were valid before - by accident, so no change in callers necessary). - (preview-eps-place): Rearranged to avoid buffer switching. - (preview-make-filename): require tempdir. - (preview-delete-file): changed API to avoid buffer switching. - (preview-place-preview): Same. - (preview-parse-messages): New args passed into place routines. - Completely rearranged and merged preview-analyze-error into it. - (preview-start-dvips): Pass tempdir to preview-make-filename - - * prv-emacs.el (preview-add-urgentization): Changed API, but it - turns out this gets called just like it did before. - -2002-03-27 Jan-Ake Larsson - - * doc/.cvsignore: Ignore preview-dtxdoc.texi - - * doc/Makefile.in: Autogeneration of ../preview.dtx -> - preview-dtxdoc.texi - - * doc/preview-dtxdoc.pl: Initial version - - * doc/preview-latex.texi: Moved menu to problems.texi, documented - preview-auto-reveal and preview-inner-environments, include - autogenerated preview-dtxdoc.texi - - * doc/problems.texi: Moved menu here from preview-latex.texi - - * doc/readme.texi: Removed out-commented parts - -2002-03-26 Jan-Ake Larsson - - * preview.dtx: Minimal change to simplify autogen of texinfo manuals - -2002-03-26 Alan Shutko - - * doc/.cvsignore: Add preview-latex.tmp. - - * .cvsignore: Add latex.out. - - * autogen.sh: Modify ed script to account for difference between - AC_INIT in 2.13 and 2.52 - - - * doc/Makefile.in (INSTALLINFO): Make it use configure value. - - * configure.in: Check for path of install-info. Check whether - Emacs supports images. - -2002-03-26 David Kastrup - - * TODO (Integrate into RefTeX): bemoan another shortcoming, or - rather feature wish. - -2002-03-25 David Kastrup - - * preview.el (preview-gs-dvips-sentinel): Treat absence of - previews in buffer more graciously. - (preview-parse-messages): require space before !name and !offset - tags from AUC TeX. - - * prv-emacs.el (preview-auto-reveal, replace-highlight) - (preview-query-replace-reveal): moved. - - * preview.dtx (subsection{The internals}): Remove spurious space - via \vsplit. - (subsection{The internals}): Set \deadcycles to avoid TeX - interfering with our \output fake. - (subsection{Selection options}): Implement hooking into equations - differently. Somewhat ugly hack to circumvent amslatex/3425 bug. - (subsection{Preview attaching commands}): keep \showboxbreadth - and \showboxdepth operative, though set to minimal values. - (\cmd{\everypar}): Cater for ugly LaTeX commands that hide things - like the startup code of \paragraph in \everypar. - - * doc/problems.texi (x-symbol interoperation): Update Web address. - - * doc/readme.texi (Contacts): Remove personal Email address from - README. - -2002-03-24 Jan-Ake Larsson - - * doc/install.texi: Incorporated "Prerequisites" from readme.texi - - * doc/preview-latex.texi: Moved "Getting started" to readme.texi, - also index changes - - * doc/readme.texi: Moved "Getting started" from - preview-latex.texi, moved "Prerequisites" to install.texi, Placed - appropriate pointers and crossreferences in README and other - manuals - -2002-03-24 David Kastrup - - * RELEASE: Info about RedHat 7.3 beta. - - * preview.dtx (subsection{The internals}): Spacing improvements. - - * prv-emacs.el (replace-highlight): advise so that query-replace - works as reasonable. - (preview-query-replace-reveal): Option to make this customizable. - -2002-03-23 David Kastrup - - * prv-emacs.el (preview-toggle): get rid of - isearch-open-invisible hooks and stuff; using the invisible - property was confusing to the display engine, anyhow, and was - about to be broken by changes in Emacs. The current behavior for - isearch is nicer than the default was before, so what. - (preview-auto-reveal): New customizable option. - - * doc/problems.texi (Emacs problems): Windows availability for CVS - Emacs. - - * doc/readme.texi: Windows availability for CVS Emacs. - - * preview.el (preview-parse-messages): Comment used regexps. - - * preview.dtx (subsection{The internals}): Removed an \everypar - that caused bad spacing. No idea why. Redundant anyway. - (subsection{Selection options}): changed displaymath option to - put in the \everydisplay tokens at a theoretically more correct - place. Explicitly hooked equation and equation*: AMSLaTeX calls - them too late to have them behave well. - (subsection{Preview attaching commands}): Corrected - \PreviewEnvironment which must have led to error messages for - months. Seems nobody cares. - (subsection{Selection options}): Still more displaymath cosmetics. - -2002-03-22 David Kastrup - - * preview.dtx (section{The Implementation}): fix typo in dvips - option. Ugh. - - * preview.el (preview-bb-filesize): move to preview-gs group. - (LaTeX-preview-setup): add bug reporter. - (preview-report-bug): update reported options. - -2002-03-22 Jan-Ake Larsson - - * doc/preview-latex.texi (preview-environment): - doc rewrite. Slight other layout changes - -2002-03-22 David Kastrup - - * doc/problems.texi: Edits. - - * doc/install.texi: Lots of editing - - * doc/readme.texi: same here - - * doc/preview-latex.texi: same here - - * RELEASE: Changes for 0.7. - - * TODO: Throw out stuff already implemented. - - * preview.el (preview-prefer-TeX-bb): Doc cosmetic. - (preview-fast-conversion): Now defaults to on. - (preview-fast-dvips-command): remove -tletter option, we do this - better now. - (preview-LaTeX-command): Pass new dvips option to preview. - - * preview.dtx (section{Package options}) - (section{The Implementation}): Add dvips option for overriding - page dimensions/landscape and such stuff. - - * preview.el (preview-TeX-bb): comment sanitized. - (preview-gs-init-string, preview-ps-file, preview-gs-dsc): new - variables. - (preview-fast-conversion): Set this customizable variable for an - impressive speedup, particularly of the DviPS pass. - (preview-dvips-command): moved. - (preview-fast-dvips-command): New command for fast conversion. - (preview-gs-restart): send initialization string to gs - (preview-gs-open): initialize preview-gs-init-string - (preview-gs-open): pass preview-fast-conversion into - preview-start-dvips - (preview-dsc-parse, preview-gs-dsc-cvx) - (preview-prepare-fast-conversion): New functions for using DSC - comments. - (preview-gs-dvips-sentinel): read DSC in. - (preview-gs-place): remember snippet in 'queued property. - (preview-mouse-open-eps): allow opening at position. - (preview-gs-flag-error): take preview-gs-init-string into - account, generate other message for fast PS conversion. - (preview-gs-transact): allow non-empty stack in prompt, use - preview-latex-do command in GhostScript. - (preview-place-preview): comment correction, no eps file if ps - generated. - (preview-analyze-error): doc change. - (preview-start-dvips): allow for fast version. - - * prv-emacs.el (preview-ps-image): Allow optional bounding box - from TeX. - -2002-03-21 David Kastrup - - * preview.dtx (subsection{Preview attaching commands}): Backward - compatible message with TeX bounding box. - - * preview.el (preview-parse-messages): Backward compatible - message parsing. - - * preview.dtx (subsection{The internals}, subsection{Preview - attaching commands}): provide additional bounding box info. - (subsection{The internals}): move location of \pr@shipend to - before shipping out \pr@box so that we may measure/change it. - (subsection{Selection options}): slightly changed call of old - \everydisplay hook. - (subsection{Preview attaching commands}): disable more warnings - in order to decrease possible parse errors of preview.el. - - * preview.el (preview-prefer-TeX-bb): New option to fish bounding - box from TeX output. Not enabled by default until we get to fix - a particular problem occuring with split environment nested in - equation. - (preview-TeX-bb-border): Additional slop around bounding box. - (preview-TeX-bb): New function to calculate PostScript bb from - TeX box dimensions in sp. - (preview-gs-place, preview-eps-place, preview-place-preview): - accept additional box argument. - (preview-gs-transact): consider more box sources. - (preview-delete-file, preview-make-filename): new semantics for - reference-counting files. - (preview-parse-messages, preview-analyze-error): Parse additional - bounding box information from AUC TeX run. - -2002-03-20 Nix - - * prv-xemacs.el (preview-with-LaTeX-menus): Handle the case - where the current menubar is not the AuCTeX one. Remove - dead code. - -2002-03-19 Nix - - * preview.dtx: Doc fix. - - * preview.el: Require `reporter'. - * preview.el (preview-image-creators): Doc extension. - * preview.el (preview-eps-place): Doc fix. - * preview.el (preview-analyze-error): Likewise. - * preview.el (preview-gs): Grammar fix. - * preview.el (preview-face): Likewise. - * preview.el (preview-temp-dirs): Layout fix. - * preview.el (preview-environment): Grammar and layout fix. - - * preview.el (preview-mouse-open-eps): Cater for XEmacs's - more limited PostScript mode. - * preview.el (LaTeX-preview-setup): Use `preview-mark-active' to - cater for Emacs/XEmacs active-region detection differences. - - * prv-emacs.el (preview-nonready-icon): Doc fix. - * prv-emacs.el (preview-image-from-icon): Likewise. - * prv-emacs.el (preview-mark-active): New. - - * prv-xemacs.el (preview-gs-color-value): New, from prv-emacs.el. - -2002-03-19 Nix - - * prv-xemacs.el: Require overlay always, not just at compile time. - - (preview-compatibility-macros): Define only when compiling. - (preview-defmacro): Likewise. Teach Emacs to indent this form properly. - - Code to compensate for features missing in XEmacs: - - (face-attribute): Teach how to fake :foreground and :background. - - (find-image): Remove. - (defimage): Likewise. There's no need for this call here; even if there - were, the image-type analysis should take place at instantiation - time, not definition time. - - (easy-menu-create-menu): New, after the Emacs function. - (next-single-char-property-change): Likewise. - (previous-single-char-property-change): Likewise. - (with-temp-message): Likewise. - (add-to-list): Likewise, redefining the two-argument XEmacs version. - - (copy-glyph): New, uses... - (destructive-replace-glyph): ... this. New (and ugly). Uses... - (map-plist): ... this. New, `map' for property lists. - - Code derived from prv-emacs.el: - - (preview-mark-active): New, handle the special XEmacs `mark-is-nil' case. - (preview-create-icon): New. - (preview-icon): XEmacsize from commented-out code; reindent. - (preview-nonready-icon): Likewise. - - (preview-add-urgentization): Add docstring. - (preview-add-urgentization): Likewise. - - (preview-image-from-icon): New. - (preview-string-from-image): Likewise. - (preview-make-clickable): Likewise. - (preview-ps-image): Likewise. - (preview-toggle): Likewise. - (preview-inherited-face-attribute): Likewise. - (preview-with-LaTeX-menus): Likewise. - (preview-gs-get-colors): Likewise. - - (provide): Add. - -2002-03-16 David Kastrup - - * doc/install.texi: Work in progress. - - * doc/readme.texi: Work in progress. - - * TODO: update wish list. This is getting longer by the minute. - - * doc/Makefile.in (INSTALL, README, PROBLEMS): add -D rawfile - option for raw text files. - - * doc/readme.texi: documentation restructuring for making README - good on preinstalled systems. - - * autogen.sh (makeinfo): add -D rawfile option for raw text files - -2002-03-15 David Kastrup - - * preview.dtx (subsection{Preview attaching commands}): disable - \showmaxdepth and \showmaxbreadth. - - * preview.el (preview-place-preview): (widen) paranoia. - (preview-back-command): same here. - (LaTeX-preview-setup): better safe than sorry (users might call - this wrong), so rerequire 'latex - (preview-parse-messages): New regexp parser. Nick, if the shy - groups \(?: ...\) worry XEmacs, make them non-shy and adjust the - match-... thingies appropriately. - (preview-analyze-error): and another save-restriction... - -2002-03-14 David Kastrup - - * preview.el (preview-parse-messages): Obliterate preview-snippet - and preview-snippet-start for general parsestate. - (preview-analyze-error): Use parsestate and cache line number - info from last call. This plugs a *big* performance hog - (goto-line). Made buffer parsing here about 8 times faster. - -2002-03-13 David Kastrup - - * preview.dtx (subsection{The internals}): Use - \@arrayparboxrestore for better reset of spacing. - - * preview.el (require): avoid compiler warning. - (preview-goto-info-page): new function - (LaTeX-preview-setup): add preview-goto-info-page binding - (info): add preview prefix for C-h F lookup - (LaTeX-preview-setup): add documentation and customization menu. - -2002-03-11 David Kastrup - - * Release 0.6.1 - -2002-03-10 David Kastrup - - * Makefile.in: Add preview.ins target. - - * doc/install.texi: Brown paper bag. - - * autogen.sh: don't prebuild doc. We offer a separate download - archive for people without texinfo. - - * preview-latex.spec (BuildRequires): changes for 0.6.1. - - * doc/install.texi: Some changes for 0.6.1. - - * RELEASE: Some adjustments for 0.6.1. - -2002-03-09 David Kastrup - - * preview.el (LaTeX-preview-setup): Use preview-with-LaTeX-menus. - - * prv-emacs.el (preview-with-LaTeX-menus): New function - temporarily making menus active. This is quite different for - XEmacs. - -2002-03-09 Nix - - * doc/preview-latex.texi: Minor typo fixes. - * doc/problems.texi: Likewise. - -2002-03-09 David Kastrup - - * preview.el (LaTeX-preview-setup): Deal with the easy-menu - sickness so that XEmacs might work. - (LaTeX-preview-setup): (require 'latex) unnecessary, we get - called only if the feature has been loaded already. - -2002-03-08 Alan Shutko - - * configure.in: When checking for texhash, use /bin/true if we - can't find it. - -2002-03-08 David Kastrup - - * doc/problems.texi (Emacs problems), doc/readme.texi: some - brighter outlook with regard to XEmacs port. - - * preview.el (preview-gs-transact): Throw in the towel. We don't - use .runandhide (and .setsafe) unless we are dealing with gs with - a version of at least 7.00. gs-6.53 seems to provide - .runandhide, while making it useless because - save .setsafe restore - does not return to unsafer mode. - -2002-03-05 David Kastrup - - * RELEASE: Few changes and explanations for 0.6.1. - - * doc/problems.texi (Font problems with Dvips): Changed pounds - sign. Not much of an improvement (we get the wrong character), - but 7bit safe. If Jan-Åke finds this as desirable as to have his - own name mangled, we should follow at least make it pay off. - - * doc/preview-latex.texi (On EPS previews): png16m is default - instead of png256. - - * doc/install.texi: Document 8bit problems. - - * README.CVS: updated. - - * configure.in: update to autoconf 2.52. - - * autogen.sh: Wheedle MY_LANG and MY_LC_CTYPE in if autoconf - failed to do so. - - * preview.el: copyright extended. Basically overhaul of - persistent data, leads to: - (preview-disable): clear timestamp. - (preview-delete): Don't fiddle with ovr after it is already - deleted. - (preview-clearout): additional argument timestamp - (preview-kill-buffer-cleanup): New function for killing buffers: - properly time-stamped previews will not get their files deleted. - (kill-buffer-hook): use it - (before-revert-hook): use it - (desktop-buffer-preview-misc-data): changed dissect call, work - only if buffer unmodified. - (preview-dissect): work with timestamp, don't destroy preview. - (preview-buffer-restore): new function, works from saved data. - (desktop-buffer-preview): use it. - (preview-cleanout-tempfiles): Do things differently. - (LaTeX-preview-setup): Call preview-buffer-restore if we - accidently got here before setting up the desktop hooks. - -2002-03-04 David Kastrup - - * doc/preview-latex.texi (Package options): doc changes, psfixbb - documented. - - * doc/problems.texi: doc changes. - - * doc/readme.texi: doc changes (@AUCTeX). - - * doc/install.texi: doc changes. - - * doc/preview-latex.texi: some documentation amendments. - - * preview.el (preview-dissect): improve false desktop cleanups. - (desktop-buffer-preview): handle file load oneself. - (preview-place-preview): subtle bug leading to empty previews - accumulating in secondary buffers. - (preview-reinstate-preview): don't reinstate previews where the - files have been deleted. - (preview-TeX-inline-sentinel): Make sure "Compilation" flag gets - cleared even on errors. - (preview-environment): Doc change. - (desktop-buffer-preview-misc-data, preview-dissect) - (desktop-buffer-preview, preview-cleanout-tempfiles) - (preview-active-string, preview-reinstate-preview) - (preview-default-preamble): Doc corrections/additions. - -2002-03-02 David Kastrup - - * preview.el (preview-gs-transact): Don't use .setsafe unless - .runandhide is defined. There might be no way back to unsafer - mode otherwise. - (preview-create-subdirectory): Be more forgiving about users - messing up the directory organization of preview-latex, by - manually deleting stuff under its control. - -2002-03-01 David Kastrup - - * preview.el (preview-default-option-list): add new options. - - * preview.dtx: add new package option psfixbb for getting better - bounding boxes in the presence of PStricks and the like. - -2002-02-28 David Kastrup - - * preview.el (preview-inner-environments): New variable for - avoiding ugly environments. - (preview-environment): Accept a count, and avoid bad environments. - (preview-section): Doc string fixed. - -2002-02-26 David Kastrup - - * preview.el (require): suppress desktop warnings - (preview-clearout): restrict to narrowed area. - (desktop-buffer-preview-misc-data): widen. - (preview-dissect): don't use subseq from cl-extra, rather butlast - from subr. - (preview-cleanout-tempfiles): new routine used in kill-emacs-hook - (preview-reinstate-preview): setup kill-emacs-hook late so that - preview-cleanout gets called after desktop saving - (preview-create-subdirectory): same here - -2002-02-25 David Kastrup - - * preview.el (TeX-active-tempdir): Changed the type. - (preview-gs-dvips-sentinel): adjusted for that. - (preview-gs-place): queued is now missing image - (preview-gs-transact): that is in overlay property preview-image - instead. - (preview-gs-transact): adapt to new queued - (desktop-buffer-preview-misc-data): save overlays when leaving - desktop. - (preview-dissect): gets details from overlay. - (desktop-buffer-preview): restore overlays on reentry - (kill-emacs-hook): must be run after desktop hook. - (preview-active-string): gets passed image instead of snippet. - (preview-make-filename): New TeX-active-tempdir type - (preview-delete-file): same here - (preview-place-preview): adapt to new preview-active-string - (preview-reinstate-preview): new function for restoring a preview - (preview-create-subdirectory): new TeX-active-tempdir type - -2002-02-24 Jan-Ake Larsson - - * doc/preview-latex.texi: Incorporated docs from preview.dtx, - minor other changes - -2002-02-20 Jan-Ake Larsson - - * doc/preview-latex.texi: Removed isolatin1 style include and chars - -2002-02-20 Alan Shutko - - * configure.in: Patch from Stephen Gildea - correcting the disable-8bit-test code. - -2002-02-19 Jan-Ake Larsson - - * Created 0.6b, which includes .info and .dvi manuals - - * doc/Makefile.in: Removed .info and .dvi from 'clean' target - -2002-02-19 David Kastrup - - * Release 0.6 - -2002-02-19 Jan-Ake Larsson - - * Makefile.in: - Changed target 'doc' to 'docs'. 'doc' matched the (unchanged) - directory 'doc'. - - * preview-latex.el: Startup file for site-start.d - - * preview-latex.spec: - Added site-start.d support and prauctex.cfg config file - -2002-02-19 David Kastrup - - * preview.dtx: Oops, prauctex.cfg inadvertantly overrode a - possible "sections" option. - (subsection{The internals}): The fake \shipout had a syntax - error. Why don't people report bugs? - -2002-02-18 Alan Shutko - - * Makefile.in (all): Split out docs target so install-hint is - still last. Ditto install. - -2002-02-18 David Kastrup - - * TODO: Add a few suggestions and throw out what has already been - accomplished. - - * README-preview: Slight edits. - - * README.CVS: mention PROBLEMS as autogenerated file, add warning - about autoconf earlier than 2.13. - - * RELEASE: explain about configuration files. - - * doc/preview-latex.texi: dircategory Emacs - - * doc/Makefile.in (install): correct install target for - install-info. - - * doc/preview-latex.texi (Misplaced previews): explain about - prauctex.cfg. - - * doc/install.texi: Write @LaTeX instead of La@TeX - - * preview.el (preview-default-preamble): Shorten stuff out that - sits now in prauctex.cfg. - - * Makefile.in (all): cater for prauctex.cfg. Same for other - targets. - - * preview.dtx (section{Introduction}): Replaced TeX by \TeX and - similar cosmetics. - (section{Package options}): Added noconfig option, explained - prdefault.cfg (not yet there) and prauctex.cfg. - (subsection{Preview attaching commands}): Predefine prauctex.cfg. - (section{Various drivers}): make installer extract it. - -2002-02-18 Jan-Ake Larsson - - * problems.texi: Simple layout fix - - * preview-latex.spec: For 0.6 proper - - * RELEASE: Mention AUC TeX RPM on project site - - * Makefile.in: Fixed 'make clean' in doc subdir, install info - files too - - * doc/Makefile.in: Typo corrected, fixed INSTALL_DATA - -2002-02-17 Alan Shutko - - * doc/Makefile.in: New file, replacing the former ad-hoc build. - - * doc/install.texi: Mention --disable-8bit-test. - - * doc/problems.texi (LaTeX international characters): Mention - --disable-8bit-test. - - * aclocal.m4 (AC_CHECK_AUCTEX): Correct --with-auctex to - --with-tex-site. - - * configure.in: 8bit test enhancements. Allow disabling test with - --disable-8bit-test. - Check for makeinfo. - Generate doc/Makefile. - -2002-02-17 David Kastrup - - * doc/install.texi: Mention problems with 8-bit-uncleanliness. - We need an override still. - - * doc/problems.texi (LaTeX international characters): Mention - that configure might barf. - -2002-02-15 Jan-Ake Larsson - - * RELEASE: RPM info added, "for RH 7.x" - -2002-02-14 Jan-Ake Larsson - - * preview-latex.spec: - For 0.6. Included code to build from CVS and temporary fix to allow - build before autoconf includes docs, included patches subdir in %doc - - * doc/Makefile: Typo corrected - -2002-02-11 Jan-Ake Larsson - - * doc/readme.texi, doc/install.texi, doc/problems.texi, - doc/copying.texi: Include @macro defs for text-file generation - - * doc/problems.texi: Minor changes - - * doc/readme.texi: Shortened - - * doc/Makefile: Added --no-validate on README - - * doc/install.texi: Layout changes, xref to PROBLEMS shortened - - * doc/problems.texi: - Layout changes, added text on bug reports and GS EPS handling - - * doc/preview-latex.texi: Layout changes, install-info fix, index - additions, fixed direntries for preview-latex - -2002-02-11 David Kastrup - - * doc/Makefile (install): install the renamed info files. - - * doc/preview-latex.texi: change output file name to - preview-latex.info in order to keep preview-latex as a directory - name for HTML output. - - * doc/Makefile (preview-latex/index.html): generate HTML with - makeinfo as texi2html does not grok @preview-latex. - - * doc/preview-latex.texi: Write Å instead of @AA (x-symbol sneaked - that in). And revert again: does not print. - - * doc/install.texi: Use @previewlatex. - - * doc/problems.texi: Use @previewlatex and @uref. - - * doc/readme.texi: Use @previewlatex. - - * doc/copying.texi: Use @previewlatex. - - * doc/preview-latex.texi (top): Introduce @previewlatex macro and - use it throughout. Some more changes. - -2002-02-09 David Kastrup - - * INSTALL README PROBLEMS: removed because autogenerated - * README.CVS and autogen.sh added. - - * doc/problems.texi: Initial rendition of PROBLEMS file in - texindex form. - - * doc/copying.texi: Change Preview La@TeX{} to preview-latex - - * preview.el (preview-image-creators): Change png default device - to png16m due to popular request. - - * doc/readme.texi: overhaul for 0.6. - - * doc/preview-latex.texi: fat overhaul. - - * preview.dtx (section{The Implementation}): Simplify \pr@advise, - it broke the delayed option. - (subsection{Preview attaching commands}): Same. - -2002-02-08 David Kastrup - - * preview.el (preview-gs-transact): Sigh. Some refinements to the - SAFER stuff: restart gs on errors that seem to stop in SAFER mode. - (preview-gs-transact): And another few changes, there are gs - versions that have .setsafer but not .runandhide. Rats. - -2002-02-07 David Kastrup - - * preview.dtx (subsection{Preview attaching commands}): Use - \nofiles instead of \@fileswfalse in order to suppress erroneous - log file output. - - * preview.el (preview-gs-options): Remove -DSAFER option that - causes OutputFile selection of GhostScript to fail (starting with - 7.04). This cannot be the final fix. - (preview-gs-options): Ok, so it isn't. Restored -dSAFER and added - -dDELAYSAFER (which should be ignored by earlier GhostScript - versions). Also: - (preview-gs-transact): call .setsafe procedure if defined in - systemdict, so we don't get unsafer in GhostScript 7.04. - -2002-02-06 Jan-Ake Larsson - - * readme.texi: Index and layout changes - -2002-02-05 Jan-Ake Larsson - - * copying.texi: Less zealous index - - * readme.texi: Typo corrected - - * preview-latex.texi: Document preview-default-preamble, bumped - release number, typos corrected. - - * doc/Makefile: Simpler index generation - -2002-02-04 Jan-Ake Larsson - - * preview-latex.texi: Simplify to only one section for keys and - lisp function sections. Also only one Index. - -2002-02-01 David Kastrup - - * PROBLEMS: Tell about x-symbol 4.0h/beta working successfully - with preview-latex. - -2002-02-01 Alan Shutko - - * configure.in: Corrected error message for 8-bit test. - -2002-01-30 Alan Shutko - - * configure.in: Added diversion at the beginning to allow us to - save LANG and LC_CTYPE for the 8-bit test. Also added test to see - if LaTeX is 8-bt clean. - -2002-01-24 Jan-Ake Larsson - - * preview-latex.spec: Initial version. On the 0.5.8.2 release. - -2002-01-22 David Kastrup - - * preview.el (LaTeX-preview-setup): quote created directory name - in %m fields. - -2002-01-18 David Kastrup - - * preview.dtx (subsection{The internals}): Try catering for output - routine changes. - -2002-01-18 Jan-Ake Larsson - - * preview.el (preview-make-preamble): Simplified the code by sorting - TeX-expand-list better. - -2002-01-18 David Kastrup - - * RELEASE: Document a few changes. - - * doc/preview-latex.texi: document preview-at-point - - * preview.el (preview-next-border): Doc change. - (preview-at-point): renamed from preview-dwim. - (LaTeX-preview-setup): use preview-at-point. - (LaTeX-preview-setup): menu change. - (preview-document-pt): Use TeX-style-list instead of - TeX-active-styles so that AucTeX may parse if not yet done. - (before-revert-hook): clearout previews on revert. - -2002-01-17 Jan-Ake Larsson - - * preview.el (preview-default-preamble): Added default preamble - for use when a document not configured for preview-latex is - previewed in AUC TeX. - - * preview-latex.texi (section Misplaced previews): Info on \emph - and \PreviewMacro*. - -2001-12-05 Jan-Ake Larsson - - * preview-latex.texi: Added new section: User-level lisp functions - - * install.texi: Layout improvements - - * doc/Makefile: Typo and dependencies corrected - -2001-12-04 Jan-Ake Larsson - - * doc/Makefile: Added index generation for DVI docs - -2001-12-03 Jan-Ake Larsson - - * preview-latex.texi: - Keymap documentation and general text on emacs interface added - - * readme.texi, install.texi: Layout changes - -2001-12-03 David Kastrup - - * preview.el (preview-clearout): add optional argument keep-dir. - (preview-place-preview): Don't clearout previews from current - run. This makes preview-latex keep multiple previews in command - arguments instead of just keeping the last such one. - -2001-11-30 David Kastrup - - * preview.dtx (section{Provided Commands}): Add descriptions of - new commands \PreviewMacro* and \PreviewEnvironment*. - (subsection{The internals}): New internal \pr@protect. - (subsection{Preview attaching commands}): Implement the new - `*'-forms. - (subsection{Preview attaching commands}): - Also treat \end{env} in \PreviewEnvironment*. - -2001-11-30 Jan-Ake Larsson - - * preview-latex.texi, install.texi: - Autoload the package rather than require it. - -2001-11-30 David Kastrup - - * prv-emacs.el (preview-register-change): widen before getting - substring in order to avoid error when narrowed. - (preview-check-changes): Same here. - (preview-handle-insert-in-front): Changed DOC string. - (preview-handle-insert-behind): same. - (preview-handle-modification): same. - -2001-11-29 Jan-Åke Larsson - - * doc/preview-latex.texi: Created first draft - - * doc/readme.texi: Created first draft - - * doc/readme.texi: Created first draft - - * doc/copying.texi: Created - - * doc/Makefile: Created layout. Now for autoconf, Alan? - -2001-11-28 Alan Shutko - - * INSTALL (--with-tex-site): Rename --with-auctex. - - * aclocal.m4 (AC_CHECK_AUCTEX): Try to fix things so that it looks - for tex-site, only tex-site, and adds the location of tex-site - into the load-path. - (AC_CHECK_REQUIRE): New. - (AC_CHECK_AUCTEX): Change name of --with-auctex to --with-tex-site. - -2001-11-12 Alan Shutko - - * Makefile.in (lispdir): Remove /preview because @lispdir@ now - includes it. - - * aclocal.m4 (AC_PATH_LISPDIR): Modify it so it prints out - that lisp files are going in $lispdir/preview. - -2001-11-20 David Kastrup - - * README-preview: adjust instructions because preview.ins will be - available on CTAN already. - - * prv-emacs.el (preview-make-clickable): consult - `preview-button-1' and `preview-button-2' at run-time. - (preview-overlay): Need insert-behind-hooks too in case someone - uses `insert-before-markers' at end of previews. - (preview-change-list): New variable. - (preview-register-change): New function. - (preview-check-changes): New function. All of this stuff is to - make sure we open/disable overlays only if permanent changes occur - inside. - (preview-handle-insert-in-front): some changes for new behaviour. - (preview-handle-insert-behind): New function. - (preview-move-point): Call `preview-check-changes' after commands. - (preview-gs-color-value): checkdoc-compatible comment. - - * preview.el: Change installation comments - -2001-11-15 David Kastrup - - * preview.dtx (section{Provided Commands}): Correct documentation - names for \PreviewEnvironment and \PreviewSnarfEnvironment - - * prv-emacs.el (preview-inherited-face-attribute): Add document - string, simplify some tests. - - * preview.el: Add autoload magic comments. - (preview-compatibility-macros): avoid byte compiler warning. - -2001-11-13 David Kastrup - - * PROBLEMS: Add patch for mouse-drag.el - - * INSTALL: add autoload instructions for fastest Emacs startup. - -2001-11-12 David Kastrup - - * preview.el (preview-gs-restart): Use push. - (preview-clearout-buffer): New function. Use in kill-buffer-hook. - (kill-emacs-hook): add cleanout of temp directories when leaving - Emacs. - (preview-make-options): cosmetics - (LaTeX-preview-setup): add keybindings for clearing buffer - (preview-clean-subdir): cosmetic changes. - (preview-clean-topdir): new function. - (preview-create-subdirectory): use it. - (preview-report-bug): report preview-dvips-command. - -2001-11-11 David Kastrup - - * Release 0.5.8.2 - -2001-11-11 Alan Shutko - - * aclocal.m4 (AC_EMACS_CHECK_LIB_WITH_LIB): varient of - AC_EMACS_CHECK_LIB which first requires a prereq lib. - (AC_CHECK_AUCTEX): Use AC_EMACS_CHECK_LIB_WITH_LIB to prereq - tex-site. - - * Makefile.in (use-hint): Get line wrapping right. - - * configure.in (--with-texmf): Applied patch from Hans Fredrik - Nordhaug making --with-texmf obey TDS. - -2001-11-11 David Kastrup - - * prv-emacs.el (preview-transparent-border): Change definition to - numeric/nil, set default to 3pt. - (preview-create-icon): adapt heuristic-mask accordingly - (preview-ps-image): same here - (preview-gs-get-colors): use new definition of - preview-transparent-border, use PostScript code not subject to - anti-aliasing effects. - (preview-transparent-border): Change default to take into - account that we previously got only half of requested width. - (preview-gs-get-colors): generate only necessary tokens. Disable - stroke adjustment in order to get more even borders. - -2001-11-10 David Kastrup - - * preview.dtx (subsection{The internals}): Make reassignment of - \@tempboxa that lead to missing section headers local. - Interesting bug. - -2001-11-09 David Kastrup - - * RELEASE: initial stab at release notes. - - * preview.el (preview-back-command): Make token backer somewhat - more robust. - (preview-analyze-error): Don't bomb out if no token matches. - - * README-preview: first draft. - - * prv-emacs.el (preview-int-bb): moved from preview.el - - * preview.el (preview-preserve-indentation): New option, on per - default. Switch off for old behaviour. - (preview-extract-bb): heed preview-preserve-indentation by faking - the bounding box left. - (preview-int-bb): move to prv-emacs.el - - * preview.dtx (subsection{The internals}): Try killing off indents - in order to get good horizontal positioning of preview. - - * preview.el (preview-start-dvips): fix bug WRT free variable - `buffer'. - - * prv-emacs.el (preview-transparent-color): change default for a - new default transparency scheme. - (preview-get-heuristic-mask): bug fix for specified color - (preview-create-icon): adjust for new policy - (preview-ps-image): same here - (preview-transparent-border): new option - (preview-gs-get-colors): heed this - -2001-11-08 David Kastrup - - * PROBLEMS: Recommend customizing new variable - preview-dvips-command for DviPS problems. - Add sections about Windows and XEmacs. - Add section about LaTeX/language environment problem. - Add section about flyspell.el including patch. - -2001-11-07 David Kastrup - - * preview.el (preview-gs): and other groups: set :prefix in - defgroup - (preview-get-geometry): Oops, make it work if - preview-scale-function is a constant instead of a function. - -2001-11-06 Alan Shutko - - * aclocal.m4 (AC_CHECK_AUCTEX): Revert the previous change, since - it was horribly broken, and fix --with-auctex, so that it doesn't - do the check if --with-auctex was specified. - -2001-11-06 Alan Shutko - - * aclocal.m4 (AC_CHECK_AUCTEX): Try looking for tex-site instead - of tex-buf... this may help since we're sure it's in load-path, - but I'm afraid that the contents of tex-site may not be standard - enough across installations. - - -2001-11-06 David Kastrup - - * preview.el (preview-image-creators): Add preview-eps-open - function for calling dvips conversion. - (preview-eps-open): Resume half-hearted support of postscript - image type. Does anybody use this, after all? If so, let him - run DviPS in background if he so desires... - - * preview.dtx (subsection{The internals}): add \leavevmode to make - things like \paragraph flush their \everypar tokens. Perhaps not - the right thing to do, let's wait for error reports about that - one. - - * preview.el: require 'tex-site when compiling - (preview-gs-file): new local variable - (preview-gs-sentinel): cater for "Compilation" flag in mode-line - (preview-gs-restart): changes in process setup - (preview-gs-close): Same here - (preview-gs-open): Same here - (preview-gs-dvips-sentinel): New function - (preview-gs-place): postpone Bounding Box extraction. - (preview-gs-flag-error): cosmetic changes - (preview-gs-transact): extract bounding box - (preview-LaTeX-command): Remove dvips call from command - (preview-dvips-command): New option for dvips call - (preview-parse-messages): add message while parsing - (preview-parse-messages): remove call to open, this calls parsing - instead. - (preview-start-dvips): New function. - (preview-TeX-inline-sentinel): Changed to new process model - Note: this breaks 'postscript image support. To be fixed. - -2001-11-03 Alan Shutko - - * aclocal.m4 - (AC_CHECK_PROG_REQUIRED,AC_CHECK_PROGS_REQUIRED,AC_PATH_PROG_REQUIRED): - New functions to check programs, and abort with a message if not - found. - (AC_EMACS_CHECK_LIB): Function stolen from Gnus to check whether - an elisp library exists. - (AC_CHECK_AUCTEX): Check if AUC-TeX is in a normal emacs load - path, and allow --with-auctex switch to specify it. SF Bug - #477262, #477260. - - * Makefile.in (use-hint, install-hint): New hints. SF Bug #477282. - (all, install): Use the above hints. - - * configure.in: Changed all AC_CHECK_PROG(S)/AC_PATH_PROG(S) to - new AC_*_REQUIRED, which abort and print a message if something - isn't found. Added AC_CHECK_AUCTEX. Add note at end of configure - to run "make". SF Bug #469741 (partial). - - Removed --with-auctex since that's now done in AC_CHECK_AUCTEX. - -2001-10-30 David Kastrup - - * prv-emacs.el (preview-make-clickable): Use 'keymap instead of - 'local-map, obliterating the need to inherit from LaTeX-mode-map. - (preview-toggle): Same here, and cater for null-length overlays. - (preview-mark-point): Jury's still out on that one. - - * preview.el (preview-gs-sentinel): Don't hickup if buffer got - killed. - (preview-gs-restart): Don't mind exiting Emacs if GhostScript - still running. - (preview-snippet): Buffer-locality not needed because parsing - occurs fully blocking. - (preview-snippet-start): Same - (preview-analyze-error): Somewhat saner behaviour if the error - message parsing fails due to macro arguments or other. This - cannot be the final verdict. - - * TODO: add a few items. - - * prv-emacs.el (preview-transparent-color): Make transparency - customizable. Note that due to a bug everything except "None" is - treated the same as "Autodetect" in 21.1. Fixed in CVS. - (preview-get-heuristic-mask): Function for calculating mask to use - from above. - (preview-create-icon): use preview-get-heuristic-mask - (preview-ps-image): same. - (preview-mark-point): move point out of previews before starting - next command for consistent implementation of intangibility. Not - sure whether this is actually a good idea, though. - (preview-inherited-face-attribute): New function - (preview-gs-get-colors): New function, replaces preview-get-colors - - * preview.el (preview-gs): New customization group hierarchy - (preview-appearance): same - (preview-latex): same - (preview-gs-colors): change string to single tokens. - (preview-gs-transact): construct string from same - (preview-scale-from-face): consult preview-reference-face instead - of default. Use new function preview-inherited-face-attribute for - this. - (preview-face): add different colours for dark backgrounds. - change default background to beige, probably less likely to match - users default background. - (preview-error-face): change preview-error-face for non-color terms. - (preview-reference-face): used for size and color determination of - previews. - (preview-TeX-inline-sentinel): tell user while we are parsing - -2001-10-27 David Kastrup - - * PROBLEMS: revert AucTeX patch to that before we tried our luck - with intangibility. Some changes in formatting. Add comment - about -Pwww font problems. - -2001-10-26 David Kastrup - - * Release 0.5.8.1 - - * preview.el (preview-mouse-open-eps): fix a typo in help - message. - (preview-analyze-error): Remove traces of inhibit-point-motion - madness. If search for (concat string after-string) fails, try - again just with string in order to support uses of Auc-TeX's - original interface. - - * prv-emacs.el (preview-toggle): Don't reactivate disabled - overlays (could happen in isearches ended by an editing operation). - (preview-move-point): While we are simulating point-adjustment, - heed disable-point-adjustment in order to make isearch (and - probably other utilities) Do The Right Thing (TM). Works - beatifully. - - * preview.el (preview-LaTeX-command): new customization variable. - (LaTeX-preview-setup): use it. - -2001-10-25 David Kastrup - - * We now cater for people with non-black-on-white setup. - - * prv-emacs.el (preview-get-colors): gets colors from default - font. - - * preview.el (preview-gs-colors): new variable for GhostScript - color setup string. - (preview-gs-transact): pass color setup. - (preview-get-geometry): pass color setup - - * prv-emacs.el (preview-ps-image): Don't expect white background - in heuristic-mask. - - * preview.el (preview-next-border): Can't get everything right - first try now, can I? - - * prv-emacs.el: replace preview-intangible by preview-state. - (preview-handle-insert-in-front): Same here. - (preview-toggle): Same here. - (preview-toggle): Let preview-toggle handle setting of category. - That way category is not set/used outside of prv-emacs.el. - (preview-move-point): replace preview-intangible by - preview-state. - - * preview.el (preview-dwim): replaces preview-again. - Excruciatingly useful function bound to C-c C-p C-p. Will do just - what you want whenever you call it. - (preview-next-border): Helper-function for that - (preview-disable): set property 'preview-state - (preview-clearout): use 'preview-state instead of 'category - (preview-place-preview): same here. - (LaTeX-preview-setup): use preview-dwim in keyboard bindings - -2001-10-23 David Kastrup - - * Release 0.5.8 - - * PROBLEMS (AucTeX): remove patch for intangibility problem. - - * preview.el (preview-regenerate): use preview-region - (preview-region): New user function. - (preview-environment): New user function. - (preview-section): New user function. - (preview-again): New user function. - (LaTeX-preview-setup): Add menus and keyboard shortcuts for new - user functions. - (preview-version): Don't recalculate version in compiled form. - - * prv-emacs.el: inherit from LaTeX-mode-map in order to have - normal commands work when cursor is on preview. - (preview-make-clickable): same. - (preview-overlay): don't make intangible, but preview-intangible. - In short, we now fake intangibility until Emacs will keep the - cursor out of overlay images like it does out of text property - images. - (preview-handle-insert-in-front): Same here. - (preview-toggle): Same here. Load pre-command-hook and - post-command-hook for fake intangibility. - (preview-marker): Added for fake intangibility. - (preview-mark-point): pre-command-hook function for fake - intangibility. - (preview-move-point): post-command-hook function for fakr - intangibility. - -2001-10-22 David Kastrup - - * README: Change info for Emacs release 21.1 - - * PROBLEMS: Change info for Emacs release 21.1 - - * INSTALL: Change info for Emacs release 21.1 - -2001-10-19 David Kastrup - - * preview.dtx (subsection{The internals}): Heed \AtBeginDvi - sequences. Small doc/formatting changes. - -2001-10-17 David Kastrup - - * preview.dtx: Get the version headers right (hopefully). - -2001-10-16 David Kastrup - - * preview.dtx: Make a stab at an automated version header - (subsection{Preview attaching commands}): Move the badness stuff - to the auctex option. - -2001-10-15 David Kastrup - - * prv-emacs.el: insert-in-front back. Discovered all-saving - undo-in-progress. - (preview-handle-insert-in-front): pseudo-advance if not in undo - while iconized. - (preview-handle-modification): fitting behaviour for that. commit - suicide on changes that leave the range empty, disable else. - - * preview.el (preview-place-preview): overlays get auto-advancing - front. - (preview-analyze-error): intangible. inhibit-point-motion-hooks. - what a mess. Made parsing saner in the presence of such stuff. - (preview-place-preview): overlays get non-auto-advancing front - back again, since we rather pseudo-advance in - preview-handle-insert-in-front. - - * prv-emacs.el: don't handle insert-in-front: impossible to do - consistently. Instead make beginning ofg overlays auto-advance - always. - (preview-handle-insert-in-front): removed - (preview-handle-modification): removed insert-in-front-hooks - -2001-10-13 David Kastrup - - * prv-xemacs.el: This is completely and utterly broken and - incomplete. The recent changes from Simon have not yet been - incorporated, some of the stuff still has old semantics and so - forth and so on. One needs to go through prv-emacs.el and make - sure that everything in there has an equivalent here. - - * prv-emacs.el: See preview.el. - - * preview.el: This is the big one. Changes too numerous to - mention. Lots of modularization for making XEmacs support - possible. Changed semantics, the works. See PROBLEMS file for - new AucTeX compatibility annoyances. - - * PROBLEMS (AucTeX versions from 11.01 up to version 11.05): Patch - added. Patch for earlier versions revised. - -2001-10-12 David Kastrup - - * preview.dtx (subsection{Preview attaching commands}): set - \hbadness and \vbadness to infinity in order to avoid - parse-unfriendly error messages. Would one want to see overfull - hbox rules in preview output? - -2001-10-12 Alan Shutko - - * Makefile.in (LISP_OBJS): New var. - ($(LISP_OBJS)): Got rid of elc target and used dependencies, so we - don't recompile every make. - -2001-10-12 David Kastrup - - * configure.in: Try fixing the emacs flavor detection. - And revert back to Alan's version. - -2001-10-12 Alan Shutko - - * configure.in: Change AC_PATH_PROG of emacs to AC_CHECK_PROG, as - it was breaking --with-xemacs. - -2001-10-12 David Kastrup - - * Makefile.in: Switch order of LISP_SOURCES in order to avoid - compiling preview.el with older versions of prv-emacs.elc or - prv-xemacs.elc - -2001-10-11 Alan Shutko - - * Makefile.in (ELCC): Bug 469742: Include . in load path. - - * configure.in: Added --with-xemacs option. Added AC_XEMACS_P to - determine if we're using xemacs. Added PLAT_LISP substitution - with the flavor-specific lisp file. - - * Makefile.in (LISP_SOURCES): New variable, listing files needing - byte-compilation. - (all): Depend on "elc" target to capture all the emacs files. - (install-el): Install more lisp files. - (elc): New target, compile all relevant files. - -2001-10-11 David Kastrup - - * preview.dtx (subsection{The internals}): Introduce count - \pr@snippet so as not to get confused by \include. - (subsection{Preview attaching commands}): Make auctex option use - this counter. - -2001-10-10 David Kastrup - - * circ.tex: Demonstrate new `sections' option. - - * preview.el (preview-default-option-list): Cater for new - `sections' option to preview.sty. - - * preview.dtx (section{Provided Commands}): New argument syntax as - in \PreviewMacro[{*[][]{}}]{\includegraphics}. - (subsection{Parsing commands}): introduce \pr@endparse and support - new syntax. - (subsection{Preview attaching commands}): same here. - (section{Package options}): explain new `sections' option. - (subsection{Selection options}): implement `sections' option. - -2001-10-09 David Kastrup - - * preview.el (preview-mouse-open-error): Don't have multiple - "*Preview-GhostScript-Error*" buffers gather, reuse single one. - (LaTeX-preview-setup): Enter us into "Command" menu. - -2001-10-08 David Kastrup - - * preview.dtx (subsection{Preview attaching commands}): Change - output routine to flush out floats. - Correct \CheckSum. - - * preview.el: Use `error' identifier only where really needed. - (preview-gs-behead-outstanding): see above. - (preview-gs-sentinel): see above. - (preview-gs-flag-error): see above. - Still require (defvar error) because of Auc-TeX - (TeX-active-tempdir): Move definition. - (preview-gs-place, preview-eps-place) - (preview-active-string, preview-make-filename) - (preview-place-preview, preview-parse-messages) - (preview-analyze-error): remove `tempdir' argument - (preview-get-geometry): some change in semantics - (preview-TeX-inline-sentinel): call `preview-parse-messages' with - process buffer active instead of source. - (TeX-inline-preview): adapt to changed `preview-get-geometry' - -2001-10-07 David Kastrup - - * preview.el (preview-get-geometry): comment clarification to - satisfy checkdoc. - (preview-version): added. - (preview-report-bug): use `preview-version' instead of current - ugliness. - - * .cvsignore (Module): Add a few more entries. - - * preview.el: Don't defvar AucTeX internal TeX-auto-file, make - auto-size detection of previews from parsed styles work. - (preview-document-pt): Use `TeX-active-styles' instead of bad AucTeX - internal `TeX-auto-file'. - (preview-get-geometry): Different arguments and semantics. Make - it work. - (TeX-inline-preview): Call changed `preview-get-geometry'. - - * prv-xemacs.el: add macros line-beginning-position and - line-end-position. - - * preview.el: Change manner of loading prv-xemacs - (preview-analyze-error): Use line-end-position again. - -2001-10-05 David Kastrup - - * preview.dtx: Include \ProvidesPackage and \CheckSum - (subsection{Preview attaching commands}): put \unskip in - \end{preview} where it will make a difference. - (section{Various drivers}): \askforoverwritefalse only generated - for make-intended installer. - - * prv-xemacs.el: require overlay - preview-compatibility-macros added - (find-image): some changes of compilation - (defimage): define using preview-defmacro - (make-temp-file): ignore temporary-filename: not needed in here. - -2001-10-04 David Kastrup - - * preview.el: first stab at XEmacs compatibility. - - * prv-xemacs.el: first stab at XEmacs compatibility. - - * circ.tex (section{Die gerade Linie}): built in two deliberate - bugs for testing. - - * preview.el (preview-gs-behead-outstanding): use - `preview-gs-flag-error'. - (preview-mouse-open-error, preview-mouse-open-eps): factored out - stuff from `preview-gs-flag-error'. - (preview-gs-flag-error): replaces `preview-gs-error-string' - (preview-gs-transact): Use `preview-gs-flag-error'. - - * PROBLEMS: be more specific about GhostScript errors - -2001-10-03 David Kastrup - - * preview.el (preview-delete-file): remove dont-register - (preview-make-filename): remove dont-register - (preview-regenerate): switch to clicked buffer if not there. - (preview-gs-error-string): try to avoid strange behaviour from - having `let' restore potential buffer-local-variables to the wrong - buffer. Make some functions (interactive "@"). - -2001-10-02 David Kastrup - - * release 0.5 - - * PROBLEMS: Completed summary of patches and made an outline-mode file. - - * INSTALL: - Gearing up for a release. Last modifications and clarifications. - - * preview.el: - Lots of cleanups for getting to release quality. Made good error - reporting with things masquerading as actual GhostScript sessions, - including command line, prompt, messages, the works. - - Removed preview-gs-urgent which actually has never been anything - but the front of preview-gs-queue. - - * TODO: Some more wishes. - - * preview.el: Make active error display. - - * preview.el: - Changed the process line appearance somewhat, added a bit of - robustness when error line parsing fails, beautified appearance of - opened previews (icon gets its own line only when previewed area - starts on a line). - -2001-10-01 David Kastrup - - * TODO: Added a few items. - - * README: Added CVS instructions and a few other odds and ends. - - * bootstrap.ins: Remove docstrip configuration related messages. - - * INSTALL: Some more massaging. - - * PROBLEMS: Initial checkin, preparation for first tarball release. - - * ChangeLog: Initial entry of ChangeLog. - -2001-10-01 alanshutko - - * aclocal.m4: Instead of /dev/null, throw stuff to FD 5, where it - might do some good. - -2001-09-30 David Kastrup - - * README: Mentioned M-x preview-report-bug. - - * README: Removed redundancies with INSTALL, cleared some stuff up. - - * preview.el: - Obliterated transaction queues. They did not help that much, and are - not implemented in earlier versions of XEmacs. More trouble than they - were worth, anyway. - - * preview.el: Define a few more image types. - -2001-09-29 David Kastrup - - * INSTALL: Some general information and stuff. - - * Makefile.in: - Use latex '\nonstopmode \input ...' instead of -interaction - nonstopmode - - Fixed string comparison in Emacs. - - * aclocal.m4: - Remove trailing slashes after path discovery, do some more things with - sed instead of various other utilities. One change in calling LaTeX - to make it work with older or non-web2c binaries. - - * preview.dtx: - Support those misguided people using $$ in their LaTeX documents. I - am not sure this is a good idea, but it will probably save us bug - reports. - - * TODO: Removed a few done points. - - * preview.el: - Made parsing good. Now the entire TeX error context gets used. In - most cases, regenerating previews should work now, as well as region - previewing. - -2001-09-28 alanshutko - - * INSTALL: New file - -2001-09-27 alanshutko - - * Makefile.in (preview.elc): Patch from Simon Josefsson to fix - build with non-standard AUCTeX location. - -2001-09-27 David Kastrup - - * preview.el: - Made error and abort messages appear in the faulty images. Reworked - file handling somewhat so that in the case of errors all involved - files can stay until the image overlay gets deleted. - - * preview.el: - Added bug reporting instructions and helper function for reports - to preview-latex-bugs@lists.sourceforge.net. - -2001-09-26 alanshutko - - * Makefile.in: (install-texmf) Install the dvi file - - * Makefile.in, aclocal.m4, configure.in: - * aclocal.m4: Removed some dross stolen from Gnus, since it is unused. - Fixed up AC_PATH_TEXMFDIR to try to find a dir to install the docs - and to export texmfdir. - - * configure.in: --with-auctex=DIR, new option - - * Makefile.in: Changed rules for byte-compilation to allow setting - AUCTEXDIR. - (install-texmf) Only texhash the directory we installed into - -2001-09-26 David Kastrup - - * preview.el: - Oodles of documentation and a much faster bounding box extractor - not relying on grep. Some small internal changes. - - * preview.el: - Background rendering now working without errors, even with crummy - default tq.el as currently shipped with Emacs (and XEmacs?). - -2001-09-25 David Kastrup - - * preview.el: - Some initial stab at trying to make do without tq.el. Figured out a - way to make do with tq's ugly semantics, however. Just keep this - somewhere. Only half done. - -2001-09-24 alanshutko - - * Makefile.in: - Makefile.in: clean and distclean targets from Simon Josefsson - -2001-09-24 David Kastrup - - * preview.el: - Sanitized temporary file handling by introducing a reference count - scheme. Temporary directories should now get deleted as they become - empty. We still do a general cleanup (in case a previous EMacs - session crashed) on first accessing any preview subdirectory, which - means bad luck when you are starting multiple instances of Emacs for - previewing purposes. - -2001-09-24 alanshutko - - * Makefile.in, configure.in: - Run texhash after tex installation. Also set full - pathnames for programs, since the path of the installing user may - not match the compiling user. - - * Makefile.in, aclocal.m4: First cut at previewdocdir - -2001-09-24 David Kastrup - - * preview.el: - PNG rendering now basically works and is the default. Errors during - transaction queue processing insert their messages into the TeX - background buffer; so do unexpected GhostScript messages. Good for - debugging. - -2001-09-22 David Kastrup - - * preview.el: - Forgot entering into queue and a condition. Still does not work with png. - - * preview.dtx: Fixed \begin{table} bug. - - * preview.el: Several changes from several people. - - The big one: support of other image formats. PNG. Unfortunately, not - yet functional. Checked in nevertheless since the old postscript - rendering is on by default and seems to work still. - - * preview.dtx: Forgotten macrocode, empty line. - -2001-09-21 alanshutko - - * Makefile.in, aclocal.m4, configure.in: - 2001-09-21 Alan Shutko - - * aclocal.m4: Correct handling of docstrip configuration for - non-TDS setup. Also, quote the $ in awk. - - * Makefile.in (TEX): New variable. - (all): preview-mk.ins instead of preview.ins - (preview-mk.ins, preview.sty prauctex.def preview.drv): Use $TEX. - - * configure.in: Added --with-preview-dir option. Check for tex - executable. - - * configure.in: Clarified --with-texmf help. - - * README: Updated build directions for autoconf build. - - * .cvsignore, Makefile, Makefile.in, aclocal.m4, configure.in, install-sh: - Makefile.in, aclocal.m4, configure.in: Create autoconf versions of - Makefile. Much of aclocal.m4 was stolen from Gnus, though the - AC_PATH_TEXMF is new. - - Added install-sh for use by the makefile if a compatible install - binary is not found. - -2001-09-20 David Kastrup - - * Makefile: First sketch at installation via make instead of docstrip. - - * bootstrap.ins: No error if no docstrip.cfg. - - * bootstrap.ins: - First sketch at bootstrap install file for extracting main installer - and giving directory info. - - * preview.dtx: Added missing macrocode environment (David Love). - Leave directory off installer when installing via make. - -2001-09-19 David Kastrup - - * README: Checked in antialiasing suggestions from Alan Shutko. - -2001-09-16 David Kastrup - - * preview.el: Still learning about customize-variable... - -2001-09-15 David Kastrup - - * preview.el: - Parse HiRes Bounding Boxes, remove accidental paste of definition of - shell-command-to-string, add support for graphical preview of files - not prepared for it. - - * preview.dtx: Another spurious space. - - * preview.dtx: - AucTeX option delays \nonstopmode. Spurious space in \pr@endbox removed. - - * README: Add instructions for anti-aliasing. - - * preview.dtx, README: Corrected Email address. - -2001-09-14 David Kastrup - - * README: Added some more descriptive stuff and my Email address. - - * preview.el: Added intelligent determination of EPS scale. - Changed Bounding Box determination to use a HiResBoundingBox if - present, and work without a shell. - Added some customization. - -2001-09-13 David Kastrup - - * .cvsignore: Ignore generated files. - - * preview.dtx: - Deleted no longer applicable comment. Fixed bug in connection with \item. - - * COPYING: Copy of GPL version 2 included. - - * README: Typo. - - * README: Clarified comment about how to improve EPS support in Emacs. - - * README: Removed link to pretest Emacs on request from Gerd Möllmann. - -2001-09-12 David Kastrup - - * circ.tex: New file. - - * circ.tex: This is the initial checkin of preview-latex. Enjoy. - - * Makefile, README, TODO, preview.dtx: New file. - - * Makefile, README, TODO, preview.dtx: - This is the initial checkin of preview-latex. Enjoy. - - * preview.el: New file. - - * preview.el: This is the initial checkin of preview-latex. Enjoy. - diff -Nru auctex-11.88/preview/circ.tex auctex-11.90/preview/circ.tex --- auctex-11.88/preview/circ.tex 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/preview/circ.tex 1970-01-01 00:00:00.000000000 +0000 @@ -1,479 +0,0 @@ -\documentclass[a4paper,twocolumn]{article} -\usepackage[german]{babel} -\usepackage[T1]{fontenc} -\usepackage[latin1]{inputenc} -\usepackage[showlabels,sections,floats,textmath,displaymath]{preview} -\newbox\chaos -\newdimen\tdim -\def\fframe{% -\tdim=\columnwidth -\advance\tdim by -2\fboxsep -\advance\tdim by -2\fboxrule -\setbox\chaos=\hbox\bgroup\begin{minipage}{\tdim}} -\def\endfframe{\end{minipage}\egroup\fbox{\box\chaos}} -\unitlength 1mm -\newcount\fives -\fives 14 -\newcount\ones -\ones\fives -\multiply \ones by 5 -\newsavebox{\raster} -\savebox{\raster}(\ones,\ones) -{\thicklines - \put(0,0){\line(0,1){\ones}} - \put(0,0){\line(1,0){\ones}} - \multiput(0,0)(5,0){\fives} - {\begin{picture}(0,0) - \put(5,0){\line(0,1){\ones}} - \thinlines\multiput(1,0)(1,0){4}{\line(0,1){\ones}} - \end{picture}} - \multiput(0,0)(0,5){\fives} - {\begin{picture}(0,0) - \put(0,5){\line(1,0){\ones}} - \thinlines\multiput(0,1)(0,1){4}{\line(1,0){\ones}} - \end{picture}} -} -\begin{document} -\title{Einfache Kurven auf Rastergrafiken} -\author{David Kastrup} -\maketitle - -\begin{abstract} -Es sollen hier einfache Methoden vorgestellt werden, um auf einer -Rastereinheit verschiedene Kurven darzustellen. Vorgestellt werden -Zeichenalgorithmen für Linien, Kreise und Hyperbeln. Die hier -hergeleiteten Gleichungen sind auch unter dem Namen {\tt DDA}s bekannt. -\end{abstract} - -\section{Einführung} -Bei den hier vorgestellten Algorithmen werden zunächst nur -Kurvenstücke betrachtet, die die folgenden Eigenschaften besitzen: -\begin{enumerate} -\item Sie lassen sich als Funktion $y = f(x)$ darstellen. -\item $y$ ist im betrachteten Bereich monoton, das heißt, entweder - durchgehend steigend oder durchgehend fallend. -\item Wenn $x$ sich um $1$ ändert, so ändert sich $y$ betragsmäßig - höchstens um $1$ - ($\left|\frac{\partial y}{\partial x}\right| \leq 1$). -\end{enumerate} - -\section{Die gerade Linie} -Wir betrachten hier zunächst nur die gerade Linie im ersten Oktanten, -die durch den Punkt $0 \choose 0$ geht. Alle anderen Linien lassen -sich durch Vertauschen von $x$ und~$y$ sowie Vorzeichenwechsel -erzeugen. Im ersten Oktanten gilt $x \geq y \geq 0$. Zum Zeichnen -einer Linie genügt es also, $x$ durchlaufen zu lassen und für $y$ die -dazugehörigen Werte zu berechnen und zu runden. - -Die Gleichung einer Geraden durch $\Delta x \choose \Delta y$ lautet: -\begin{equation} -\label{lgi} -y = \frac{\Delta y}{\Delta x}x -\end{equation} -% -Nun stellen wir $y$ als Summe eines ganzzahligen Wertes $e$ und eines -gebrochenen Wertes $f$ dar, für den gilt: $-0.5 \leq f < 0.5$. Somit -stellt dann $e$ den gewünschten, auf die nächste ganze Zahl gerundeten -$y$-Wert dar. Jetzt formen wir (\ref{lgi}) um: -\begin{eqnarray} -e + f &=& x \frac{\Delta y}{\Delta x}\nonumber\\ -e \Delta x + f \Delta x &=& x \Delta y\nonumber\\ -f \Delta x - \left\lceil\frac{\Delta x}2\right\rceil &=& -x \Delta y - e \Delta x - \left\lceil\frac{\Delta x}2\right\rceil \label{lgii} -\end{eqnarray} -% -Den linken Ausdruck in (\ref{lgii}) bezeichnen wir jetzt mit $d$. Für -positive gerade Werte von $\Delta x$ ist offensichtlich $d < 0$ eine -zu~$f < 0.5$ equivalente Bedingung. - -Für ungerade Werte von~$\Delta x$ ist $f < 0.5$ equivalent zu -$d + 0.5 < 0$. -Da $d$ stets eine ganze Zahl ist, ist dies wieder zu $d < 0$ -equivalent. - -% INTENTIONAL ERRORS! INTENTIONAL ERRORS! INTENTIONAL ERRORS! -% -% The following line should flag a PostScript error when previewing, -% but processing of other previews should continue. -% -Wird nun $\ifPreview\special{ps: junk}\fi f \geq 0.5$, wie sich durch -den Vergleich $d \stackrel{?}{<} 0$ feststellen läßt, so muß man -korrigieren, indem man $f$ um~1 erniedrigt und $e$ um~$1$ erhöht. -% -% The following line will make Ghostscript abort unexpectedly when -% previewing, but processing of other previews should continue. -% -$\ifPreview\special{ps: quit}\fi d$ muß dann auch entsprechend -angepaßt werden. - -Mit den angegebenen Formeln ergibt sich jetzt bei Berücksichtigung der -Einflüsse von $x$ und $e$ auf $d$ der in Tabelle~\ref{linalg} -angegebene Algorithmus. Eine optimierte C-function, die die -Oktantenaufteilung berücksichtigt, ist in Tabelle~\ref{linc} zu -finden. Einige hiermit gezeichnete Linien sind in -Abbildung~\ref{linpict} zu sehen. -\begin{table} - \caption{Linienzugalgorithmus} \label{linalg} - \begin{fframe} - \begin{enumerate} - \item Setze $x \gets 0$, $y \gets 0$, $d \gets - -\left\lceil\frac{\Delta x}2\right\rceil$ - \item Wiederhole bis $x = \Delta x$ - \begin{enumerate} - \item Zeichne Punkt an $x \choose y$ - \item Setze $x \gets x + 1$, $d \gets d + \Delta y$ - \item Falls $d \geq 0$ - \begin{enumerate} - \item Setze $d \gets d - \Delta x$ - \item Setze $y \gets y + 1$ - \end{enumerate} - \end{enumerate} - \end{enumerate} - \end{fframe} -\end{table} -\begin{table} -\caption{Linienziehen in C} \label{linc} -\begin{fframe} -\small -\begin{verbatim} -extern int x,y; -/* (x,y) ist Koordinate des nicht - * gezeichneten Startpunktes, zeigt - * nachher auf gezeichneten Endpunkt - */ -#define doline(dx,dy,advx,advy) { \ - d = -(((i = dx) + 1) >> 1); \ - while (i--) { \ - advx; \ - if ((d += dy) >= 0) { \ - d -= dx; advy; \ - } \ - dot(x,y); \ - } \ - return; \ -} /* Grundalgorithmus 1. Oktant */ -/* dx ist Distanz in unabh. Richtung, * - * dy in abh. Richtung, advx geht * - * in unabh. Richtung, advy in abh. */ - -#define docond(cond,advx,advy) { \ - if (cond) doline(dx,dy,advx,advy) \ - doline(dy,dx,advy,advx) \ -} /* Grundalgorithmus 1./2. Oktant */ -/* cond ist true falls |dx| > |dy| */ - -void -linedraw(int dx, int dy) -/* Von (x,y) nach (x+dx, y+dx). */ -{ - int i; - - if (dx >= 0) { - if (dy >= 0) - docond(dx > dy, ++x, ++y) - docond(dx > (dy = -dy), ++x, --y) - } - if (dy >= 0) - docond((dx = -dx) > dy,--x,++y) - docond((dx = -dx) > (dy = -dy), - --x, --y ) -} -\end{verbatim} -\end{fframe} -\end{table} -\begin{figure} - \begin{picture}(\ones,\ones) \put(0,0){\usebox{\raster}} - \newcount\x - \newcount\y - \newcount\d - \newcount\dx - \newcount\dy - \x 0 - \y 0 - \dx \ones - \dy \ones - \loop %{ - \d -\dx - \divide \d by 2 %} - \ifnum \dy > 0 %{ - {\loop %{ - \put(\x,\y){\circle*{1}}%} - \ifnum \x < \ones %{ - \advance \x by 1 - \advance \d by \dy %} - \ifnum \d > -1 %{ - \advance \y by 1 - \advance \d by -\dx %} - \fi %}} - \repeat} - \advance \x by 5 - \advance \dx by -5 - \advance \dy by -15 %} - \repeat - \end{picture} -\caption{Einige Linien}\label{linpict} -\end{figure} - -\section{Der Kreis} -Wir betrachten hier nur den Achtelkreis im zweiten Oktanten -($y \geq x \geq 0$). Hier gelten die oben angegebenen Beziehungen. -Alle anderen Achtelkreise lassen sich durch elementare Spiegelungen -erzeugen. - -Die Gleichung eines Kreises ist hier -\begin{equation} -y = ±\sqrt{r^2 - x^2} -\end{equation} - -Der Wert $y$ läßt sich darstellen als Summe einer ganzen Zahl $e$ und -einem Wert $f$ mit $-0.5 \leq f < 0.5$. Der Wertebereich von $f$ ist -so gewählt worden, damit $e$ einen auf ganze Zahlen gerundeten Wert -für $y$ darstellt. - -Nun gilt: -\begin{eqnarray} -e + f&=&\sqrt{r^2 - x^2}\nonumber\\ -\label{ggg}e^2 + 2ef + f^2&=&r^2 - x^2 -\end{eqnarray} -% -Die Gleichung (\ref{ggg}) hat für $x+1$ folgende Form: -\begin{eqnarray} -\label{hhh}e'^2 + 2e'f' + f'^2&=&r^2 - x^2 - 2x -1 -\end{eqnarray} -% -Zieht man die Gleichung (\ref{ggg}) von (\ref{hhh}) ab, so ergibt sich -nach Umsortieren: -\begin{eqnarray*} - e' = e:\\ - 2e'f' + f'^2&=&2ef+f^2-2x-1\\ - e' = e-1:\\ - 2e'f' + f'^2&=&2ef+f^2+2e-2x-2 -\end{eqnarray*} -% -Jetzt wird $2ef + f^2$ mit $m$ getauft. Also: -\begin{eqnarray*} - e' = e:\\ - m'&=&m -2x-1\\ - e' = e-1:\\ - m'&=&m +2e-1 -2x-1 -\end{eqnarray*} -Wie groß ist jetzt $m$? Für $x=0$ ist es sicher $0$. Solange $e$ -konstant bleibt, schrumpft $f$ stetig. Fällt $f$ unter $-0.5$, so -fällt $m$ (unter Vernachlässigung von $f^2$) unter $-e$. Dies wird -jetzt als Kriterium für einen Unterlauf von $f$ verwendet. Tritt -dieser auf, so muß $f$ um $1$ erhöht und $e$ um $1$ erniedrigt werden. - -Um die Abfragebedingung zu vereinfachen, setzt man jetzt $q$ = $m+e$. -Der resultierende Algorithmus ist in Tabelle \ref{alg}, ein -optimiertes C-Programm ist in Tabelle \ref{prog} zu finden. -\begin{table} - \caption{Kreiszeichenalgorithmus}\label{alg} - \begin{fframe} - \begin{enumerate} - \item Setze $x\gets 0$, $y\gets r$, $q\gets r$ - \item Wiederhole bis $x>y$: - \begin{enumerate} - \item Setze einen Punkt an $x \choose y$. - \item Setze $q\gets q-2x-1$ - \item Falls $q<0$ - \begin{enumerate} - \item Setze $q\gets q + 2y-2$ - \item Setze $y\gets y-1$ - \end{enumerate} - \item Setze $x\gets x+1$ - \end{enumerate} - \end{enumerate} - \end{fframe} -\end{table} -\begin{table} - \caption{Kreiszeichenprogramm}\label{prog} - \begin{fframe} - \small -\begin{verbatim} -void -fourfold(int x0, int y0, int x, int y) -/* Zeichne in Oktant 1,3,5,7 */ -/* Wird benutzt, um Anfangs- und End- * - * Punkte nicht zweimal zu zeichnen */ -{ - dot(x0+x,y0+y); - dot(x0-y,y0+x); - dot(x0-x,y0-y); - dot(x0+y,y0-x); -} - -void -eightfold(int x0, int y0, int x, int y) -/* Zeichne in allen Quadranten */ -{ - fourfold(x0,y0,x,y); /* 1357 */ - fourfold(x0,y0,x,-y); /* 8642 */ -} - -void -circle(int x0, int y0, int r) -{ - fourfold(x0,y0,0,r); - /* Die ersten vier Punkte */ - for (x=0, y=q=r;; ) { - if ((q -= 2* x++ + 1) < 0) - q += 2* --y; - if (x >= y) - break; - eightfold(x0,y0,x,y); - } - if (x==y) - fourfold(x0,y0,x,y); - /* Eventuell die letzten vier */ -} -\end{verbatim} - \end{fframe} -\end{table} -\begin{figure} - \begin{picture}(\ones,\ones) - \put(0,0){\usebox{\raster}} - \newcount\x - \newcount\y - \newcount\q - \loop - {\x 0 - \y \ones - \q \ones - \loop - \put(\x,\y){\circle*{1}} - \put(\y,\x){\circle*{1}} - \advance \q by -\x - \advance \x by 1 - \advance \q by -\x - \ifnum \x < \y - \ifnum \q < 0 - \advance \y by -1 - \advance \q by \y - \advance \q by \y - \fi - \repeat} - \advance \ones by -10 - \ifnum \ones > 0 - \repeat - \end{picture} - \caption{Viertelkreise}\label{zeich} -\end{figure} - -\section{Einfache Hyperbeln} -Als letztes Beispiel betrachten wir hier Hyperbeln, die der Formel -$y = r^2\!/x$ genügen, und zwar im Bereich~$x \geq r$. - -Mit dem Ansatz $y = e + f$ ergibt sich: -\begin{eqnarray} - e+f &=& r^2\!/x\nonumber\\ - ex + fx &=& r^2\nonumber\\ - fx &=& r^2 - ex\label{phyp} -\end{eqnarray} -\pagebreak[2] -Für $x' = x+1$ hat nun (\ref{phyp}) die Form -\begin{eqnarray*} - e' = e:\\ - f'x' &=& r^2 - ex - e\\ - e' = e - 1:\\ - f'x' &=& r^2 - ex - e + x + 1 -\end{eqnarray*} -Setzt man jetzt $d = (2f + 1)x$, so ist $f < -0.5$ mit~$d < 0$ -equivalent. Erreicht man diesen Fall unter Verwendung der Annahme -$e' = e$, -dann muß in bekannter Weise $f$ um~$1$ erhöht und $e$ um~$1$ -vermindert werden. - -\pagebreak -Für $d'$ ergeben sich dann die folgenden Werte: -\begin{eqnarray*} - e' = e:\\ - d' &=& d - 2e + 1\\ - e' = e - 1:\\ - d' &=& d - 2e + 2x + 2 + 1 -\end{eqnarray*} -Daraus ergibt sich der in Tabelle~\ref{halg} angegebene -Hyperbelalgorithmus für den ersten Oktanten. -\begin{table} - \caption{Hyperbelalgorithmus}\label{halg} - \begin{fframe} - \begin{enumerate} - \item Setze $d \gets r$, $x \gets r$, $y \gets r$ - \item Wiederhole bis zufrieden - \begin{enumerate} - \item Setze Punkt an $x \choose y$ - \item Setze $x \gets x + 1$ - \item Setze $d \gets d - 2y + 1$ - \item Falls $d < 0$ - \begin{enumerate} - \item Setze $d \gets d + 2x$ - \item Setze $y \gets y - 1$ - \end{enumerate} - \end{enumerate} - \end{enumerate} - \end{fframe} -\end{table} -\begin{table} - \caption{Hyperbeln in C} - \begin{fframe} - \small -\begin{verbatim} -void -four(int x0, int y0, int x, int y) -/* Hyperbeln sind nur in 4 Oktanten */ -{ - dot(x0+x,y0+y); - dot(x0+y,y0+x); - dot(x0-x,y0-y); - dot(x0-y,y0-x); -} - -void -hyperb(int x0, int y0, int r, int dx) -{ - int d, x, y; - - for (x = y = d = r; dx--;) { - four(x0,y0,x,y); - ++x; - if ((d -= 2*y + 1) < 0) { - d += 2*x; - --y; - } - } -} -\end{verbatim} - \end{fframe} -\end{table} -\begin{figure} - \begin{picture}(\ones,\ones) - \put(0,0){\usebox{\raster}} - \newcount\x - \newcount\y - \newcount\q - \newcount\r - \r\ones - \loop - \advance \r by -10 - \ifnum \r > 0 - {\x \r - \y \r - \q \r - \loop - \put(\x,\y){\circle*{1}} - \put(\y,\x){\circle*{1}} - \ifnum \x < \ones - \advance \x by 1 - \advance \q by -\y - \advance \q by -\y - \advance \q by 1 - \ifnum \q < 0 - \advance \q by \x - \advance \q by \x - \advance \y by -1 - \fi - \repeat} - \repeat - \end{picture} - \caption{Hyperbeln}\label{hzeich} -\end{figure} -\end{document} diff -Nru auctex-11.88/preview/configure auctex-11.90/preview/configure --- auctex-11.88/preview/configure 2014-10-29 19:21:35.000000000 +0000 +++ auctex-11.90/preview/configure 1970-01-01 00:00:00.000000000 +0000 @@ -1,4634 +0,0 @@ -#! /bin/sh -# Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for preview-latex 11.84. -# -# Report bugs to . -# -# -# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. -# -# -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. -## -------------------- ## -## M4sh Initialization. ## -## -------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : - emulate sh - NULLCMD=: - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in #( - *posix*) : - set -o posix ;; #( - *) : - ;; -esac -fi - - -as_nl=' -' -export as_nl -# Printing a long string crashes Solaris 7 /usr/bin/printf. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -# Prefer a ksh shell builtin over an external printf program on Solaris, -# but without wasting forks for bash or zsh. -if test -z "$BASH_VERSION$ZSH_VERSION" \ - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='print -r --' - as_echo_n='print -rn --' -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='printf %s\n' - as_echo_n='printf %s' -else - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' - as_echo_n='/usr/ucb/echo -n' - else - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' - as_echo_n_body='eval - arg=$1; - case $arg in #( - *"$as_nl"*) - expr "X$arg" : "X\\(.*\\)$as_nl"; - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; - esac; - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" - ' - export as_echo_n_body - as_echo_n='sh -c $as_echo_n_body as_echo' - fi - export as_echo_body - as_echo='sh -c $as_echo_body as_echo' -fi - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - PATH_SEPARATOR=: - (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { - (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || - PATH_SEPARATOR=';' - } -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -as_myself= -case $0 in #(( - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break - done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - exit 1 -fi - -# Unset variables that we do not need and which cause bugs (e.g. in -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" -# suppresses any "Segmentation fault" message there. '((' could -# trigger a bug in pdksh 5.2.14. -for as_var in BASH_ENV ENV MAIL MAILPATH -do eval test x\${$as_var+set} = xset \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -# Use a proper internal environment variable to ensure we don't fall - # into an infinite loop, continuously re-executing ourselves. - if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then - _as_can_reexec=no; export _as_can_reexec; - # We cannot yet assume a decent shell, so we have to provide a -# neutralization value for shells without unset; and this also -# works around shells that cannot unset nonexistent variables. -# Preserve -v and -x to the replacement shell. -BASH_ENV=/dev/null -ENV=/dev/null -(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV -case $- in # (((( - *v*x* | *x*v* ) as_opts=-vx ;; - *v* ) as_opts=-v ;; - *x* ) as_opts=-x ;; - * ) as_opts= ;; -esac -exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} -# Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 -as_fn_exit 255 - fi - # We don't want this to propagate to other subprocesses. - { _as_can_reexec=; unset _as_can_reexec;} -if test "x$CONFIG_SHELL" = x; then - as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : - emulate sh - NULLCMD=: - # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which - # is contrary to our usage. Disable this feature. - alias -g '\${1+\"\$@\"}'='\"\$@\"' - setopt NO_GLOB_SUBST -else - case \`(set -o) 2>/dev/null\` in #( - *posix*) : - set -o posix ;; #( - *) : - ;; -esac -fi -" - as_required="as_fn_return () { (exit \$1); } -as_fn_success () { as_fn_return 0; } -as_fn_failure () { as_fn_return 1; } -as_fn_ret_success () { return 0; } -as_fn_ret_failure () { return 1; } - -exitcode=0 -as_fn_success || { exitcode=1; echo as_fn_success failed.; } -as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } -as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } -as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } -if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : - -else - exitcode=1; echo positional parameters were not saved. -fi -test x\$exitcode = x0 || exit 1 -test -x / || exit 1" - as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO - as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO - eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && - test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" - if (eval "$as_required") 2>/dev/null; then : - as_have_required=yes -else - as_have_required=no -fi - if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : - -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -as_found=false -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - as_found=: - case $as_dir in #( - /*) - for as_base in sh bash ksh sh5; do - # Try only shells that exist, to save several forks. - as_shell=$as_dir/$as_base - if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : - CONFIG_SHELL=$as_shell as_have_required=yes - if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : - break 2 -fi -fi - done;; - esac - as_found=false -done -$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : - CONFIG_SHELL=$SHELL as_have_required=yes -fi; } -IFS=$as_save_IFS - - - if test "x$CONFIG_SHELL" != x; then : - export CONFIG_SHELL - # We cannot yet assume a decent shell, so we have to provide a -# neutralization value for shells without unset; and this also -# works around shells that cannot unset nonexistent variables. -# Preserve -v and -x to the replacement shell. -BASH_ENV=/dev/null -ENV=/dev/null -(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV -case $- in # (((( - *v*x* | *x*v* ) as_opts=-vx ;; - *v* ) as_opts=-v ;; - *x* ) as_opts=-x ;; - * ) as_opts= ;; -esac -exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} -# Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 -exit 255 -fi - - if test x$as_have_required = xno; then : - $as_echo "$0: This script requires a shell more modern than all" - $as_echo "$0: the shells that I found on your system." - if test x${ZSH_VERSION+set} = xset ; then - $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" - $as_echo "$0: be upgraded to zsh 4.3.4 or later." - else - $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-auctex@gnu.org -$0: about your system, including any error possibly output -$0: before this message. Then install a modern shell, or -$0: manually run the script under such a shell if you do -$0: have one." - fi - exit 1 -fi -fi -fi -SHELL=${CONFIG_SHELL-/bin/sh} -export SHELL -# Unset more variables known to interfere with behavior of common tools. -CLICOLOR_FORCE= GREP_OPTIONS= -unset CLICOLOR_FORCE GREP_OPTIONS - -## --------------------- ## -## M4sh Shell Functions. ## -## --------------------- ## -# as_fn_unset VAR -# --------------- -# Portably unset VAR. -as_fn_unset () -{ - { eval $1=; unset $1;} -} -as_unset=as_fn_unset - -# as_fn_set_status STATUS -# ----------------------- -# Set $? to STATUS, without forking. -as_fn_set_status () -{ - return $1 -} # as_fn_set_status - -# as_fn_exit STATUS -# ----------------- -# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. -as_fn_exit () -{ - set +e - as_fn_set_status $1 - exit $1 -} # as_fn_exit - -# as_fn_mkdir_p -# ------------- -# Create "$as_dir" as a directory, including parents if necessary. -as_fn_mkdir_p () -{ - - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || eval $as_mkdir_p || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" - - -} # as_fn_mkdir_p - -# as_fn_executable_p FILE -# ----------------------- -# Test if FILE is an executable regular file. -as_fn_executable_p () -{ - test -f "$1" && test -x "$1" -} # as_fn_executable_p -# as_fn_append VAR VALUE -# ---------------------- -# Append the text in VALUE to the end of the definition contained in VAR. Take -# advantage of any shell optimizations that allow amortized linear growth over -# repeated appends, instead of the typical quadratic growth present in naive -# implementations. -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : - eval 'as_fn_append () - { - eval $1+=\$2 - }' -else - as_fn_append () - { - eval $1=\$$1\$2 - } -fi # as_fn_append - -# as_fn_arith ARG... -# ------------------ -# Perform arithmetic evaluation on the ARGs, and store the result in the -# global $as_val. Take advantage of shells that can avoid forks. The arguments -# must be portable across $(()) and expr. -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : - eval 'as_fn_arith () - { - as_val=$(( $* )) - }' -else - as_fn_arith () - { - as_val=`expr "$@" || test $? -eq 1` - } -fi # as_fn_arith - - -# as_fn_error STATUS ERROR [LINENO LOG_FD] -# ---------------------------------------- -# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are -# provided, also output the error to LOG_FD, referencing LINENO. Then exit the -# script with STATUS, using 1 if that was 0. -as_fn_error () -{ - as_status=$1; test $as_status -eq 0 && as_status=1 - if test "$4"; then - as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 - fi - $as_echo "$as_me: error: $2" >&2 - as_fn_exit $as_status -} # as_fn_error - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - - - as_lineno_1=$LINENO as_lineno_1a=$LINENO - as_lineno_2=$LINENO as_lineno_2a=$LINENO - eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && - test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { - # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } - - # If we had to re-execute with $CONFIG_SHELL, we're ensured to have - # already done that, so ensure we don't try to do so again and fall - # in an infinite loop. This has already happened in practice. - _as_can_reexec=no; export _as_can_reexec - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in #((((( --n*) - case `echo 'xy\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - xy) ECHO_C='\c';; - *) echo `echo ksh88 bug on AIX 6.1` > /dev/null - ECHO_T=' ';; - esac;; -*) - ECHO_N='-n';; -esac - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir 2>/dev/null -fi -if (echo >conf$$.file) 2>/dev/null; then - if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -pR' - elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln - else - as_ln_s='cp -pR' - fi -else - as_ln_s='cp -pR' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - -if mkdir -p . 2>/dev/null; then - as_mkdir_p='mkdir -p "$as_dir"' -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -as_test_x='test -x' -as_executable_p=as_fn_executable_p - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -test -n "$DJDIR" || exec 7<&0 &1 - -# Name of the host. -# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, -# so uname gets run too. -ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` - -# -# Initializations. -# -ac_default_prefix=/usr/local -ac_clean_files= -ac_config_libobj_dir=. -LIBOBJS= -cross_compiling=no -subdirs= -MFLAGS= -MAKEFLAGS= - -# Identity of this package. -PACKAGE_NAME='preview-latex' -PACKAGE_TARNAME='preview-latex' -PACKAGE_VERSION='11.84' -PACKAGE_STRING='preview-latex 11.84' -PACKAGE_BUGREPORT='bug-auctex@gnu.org' -PACKAGE_URL='' - -ac_subst_vars='LTLIBOBJS -LIBOBJS -TEXHASH -packagetexstyles -lisppackagetexstyles -previewdocdir -previewtexmfdir -texmfdir -TEX -TEXMFGEN -PDFLATEX -LATEX -lispGS -GS -auctexdir -PLAT_LISP -packagedatadir -lisppackagedatadir -packagelispdir -lisppackagelispdir -previewstartfile -lispdir -packagedir -EMACS_FLAVOR -XEMACS -EMACS -INSTALL_DATA -INSTALL_SCRIPT -INSTALL_PROGRAM -SET_MAKE -target_alias -host_alias -build_alias -LIBS -ECHO_T -ECHO_N -ECHO_C -DEFS -mandir -localedir -libdir -psdir -pdfdir -dvidir -htmldir -infodir -docdir -oldincludedir -includedir -localstatedir -sharedstatedir -sysconfdir -datadir -datarootdir -libexecdir -sbindir -bindir -program_transform_name -prefix -exec_prefix -PACKAGE_URL -PACKAGE_BUGREPORT -PACKAGE_STRING -PACKAGE_VERSION -PACKAGE_TARNAME -PACKAGE_NAME -PATH_SEPARATOR -SHELL' -ac_subst_files='' -ac_user_opts=' -enable_option_checking -with_emacs -with_xemacs -enable_build_dir_test -with_packagedir -with_lispdir -with_previewstartfile -with_packagelispdir -with_packagedatadir -with_tex_site -with_texmf_dir -with_tex_dir -with_doc_dir -' - ac_precious_vars='build_alias -host_alias -target_alias -GS -TEXHASH' - - -# Initialize some variables set by options. -ac_init_help= -ac_init_version=false -ac_unrecognized_opts= -ac_unrecognized_sep= -# The variables have the same names as the options, with -# dashes changed to underlines. -cache_file=/dev/null -exec_prefix=NONE -no_create= -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -verbose= -x_includes=NONE -x_libraries=NONE - -# Installation directory options. -# These are left unexpanded so users can "make install exec_prefix=/foo" -# and all the variables that are supposed to be based on exec_prefix -# by default will actually change. -# Use braces instead of parens because sh, perl, etc. also accept them. -# (The list follows the same order as the GNU Coding Standards.) -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datarootdir='${prefix}/share' -datadir='${datarootdir}' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -includedir='${prefix}/include' -oldincludedir='/usr/include' -docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' -infodir='${datarootdir}/info' -htmldir='${docdir}' -dvidir='${docdir}' -pdfdir='${docdir}' -psdir='${docdir}' -libdir='${exec_prefix}/lib' -localedir='${datarootdir}/locale' -mandir='${datarootdir}/man' - -ac_prev= -ac_dashdash= -for ac_option -do - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval $ac_prev=\$ac_option - ac_prev= - continue - fi - - case $ac_option in - *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; - *=) ac_optarg= ;; - *) ac_optarg=yes ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case $ac_dashdash$ac_option in - --) - ac_dashdash=yes ;; - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir=$ac_optarg ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build_alias ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build_alias=$ac_optarg ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file=$ac_optarg ;; - - --config-cache | -C) - cache_file=config.cache ;; - - -datadir | --datadir | --datadi | --datad) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=*) - datadir=$ac_optarg ;; - - -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ - | --dataroo | --dataro | --datar) - ac_prev=datarootdir ;; - -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ - | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) - datarootdir=$ac_optarg ;; - - -disable-* | --disable-*) - ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: $ac_useropt" - ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` - case $ac_user_opts in - *" -"enable_$ac_useropt" -"*) ;; - *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" - ac_unrecognized_sep=', ';; - esac - eval enable_$ac_useropt=no ;; - - -docdir | --docdir | --docdi | --doc | --do) - ac_prev=docdir ;; - -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) - docdir=$ac_optarg ;; - - -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) - ac_prev=dvidir ;; - -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) - dvidir=$ac_optarg ;; - - -enable-* | --enable-*) - ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: $ac_useropt" - ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` - case $ac_user_opts in - *" -"enable_$ac_useropt" -"*) ;; - *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" - ac_unrecognized_sep=', ';; - esac - eval enable_$ac_useropt=\$ac_optarg ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix=$ac_optarg ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he | -h) - ac_init_help=long ;; - -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) - ac_init_help=recursive ;; - -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) - ac_init_help=short ;; - - -host | --host | --hos | --ho) - ac_prev=host_alias ;; - -host=* | --host=* | --hos=* | --ho=*) - host_alias=$ac_optarg ;; - - -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) - ac_prev=htmldir ;; - -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ - | --ht=*) - htmldir=$ac_optarg ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir=$ac_optarg ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir=$ac_optarg ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir=$ac_optarg ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir=$ac_optarg ;; - - -localedir | --localedir | --localedi | --localed | --locale) - ac_prev=localedir ;; - -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) - localedir=$ac_optarg ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst | --locals) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) - localstatedir=$ac_optarg ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir=$ac_optarg ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c | -n) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir=$ac_optarg ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix=$ac_optarg ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix=$ac_optarg ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix=$ac_optarg ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name=$ac_optarg ;; - - -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) - ac_prev=pdfdir ;; - -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) - pdfdir=$ac_optarg ;; - - -psdir | --psdir | --psdi | --psd | --ps) - ac_prev=psdir ;; - -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) - psdir=$ac_optarg ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir=$ac_optarg ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir=$ac_optarg ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site=$ac_optarg ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir=$ac_optarg ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir=$ac_optarg ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target_alias ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target_alias=$ac_optarg ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers | -V) - ac_init_version=: ;; - - -with-* | --with-*) - ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: $ac_useropt" - ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` - case $ac_user_opts in - *" -"with_$ac_useropt" -"*) ;; - *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" - ac_unrecognized_sep=', ';; - esac - eval with_$ac_useropt=\$ac_optarg ;; - - -without-* | --without-*) - ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: $ac_useropt" - ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` - case $ac_user_opts in - *" -"with_$ac_useropt" -"*) ;; - *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" - ac_unrecognized_sep=', ';; - esac - eval with_$ac_useropt=no ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes=$ac_optarg ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries=$ac_optarg ;; - - -*) as_fn_error $? "unrecognized option: \`$ac_option' -Try \`$0 --help' for more information" - ;; - - *=*) - ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` - # Reject names that are not valid shell variable names. - case $ac_envvar in #( - '' | [0-9]* | *[!_$as_cr_alnum]* ) - as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; - esac - eval $ac_envvar=\$ac_optarg - export $ac_envvar ;; - - *) - # FIXME: should be removed in autoconf 3.0. - $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 - expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 - : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" - ;; - - esac -done - -if test -n "$ac_prev"; then - ac_option=--`echo $ac_prev | sed 's/_/-/g'` - as_fn_error $? "missing argument to $ac_option" -fi - -if test -n "$ac_unrecognized_opts"; then - case $enable_option_checking in - no) ;; - fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; - *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; - esac -fi - -# Check all directory arguments for consistency. -for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ - datadir sysconfdir sharedstatedir localstatedir includedir \ - oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir -do - eval ac_val=\$$ac_var - # Remove trailing slashes. - case $ac_val in - */ ) - ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` - eval $ac_var=\$ac_val;; - esac - # Be sure to have absolute directory names. - case $ac_val in - [\\/$]* | ?:[\\/]* ) continue;; - NONE | '' ) case $ac_var in *prefix ) continue;; esac;; - esac - as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" -done - -# There might be people who depend on the old broken behavior: `$host' -# used to hold the argument of --host etc. -# FIXME: To remove some day. -build=$build_alias -host=$host_alias -target=$target_alias - -# FIXME: To remove some day. -if test "x$host_alias" != x; then - if test "x$build_alias" = x; then - cross_compiling=maybe - elif test "x$build_alias" != "x$host_alias"; then - cross_compiling=yes - fi -fi - -ac_tool_prefix= -test -n "$host_alias" && ac_tool_prefix=$host_alias- - -test "$silent" = yes && exec 6>/dev/null - - -ac_pwd=`pwd` && test -n "$ac_pwd" && -ac_ls_di=`ls -di .` && -ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || - as_fn_error $? "working directory cannot be determined" -test "X$ac_ls_di" = "X$ac_pwd_ls_di" || - as_fn_error $? "pwd does not report name of working directory" - - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then the parent directory. - ac_confdir=`$as_dirname -- "$as_myself" || -$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_myself" : 'X\(//\)[^/]' \| \ - X"$as_myself" : 'X\(//\)$' \| \ - X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_myself" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - srcdir=$ac_confdir - if test ! -r "$srcdir/$ac_unique_file"; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r "$srcdir/$ac_unique_file"; then - test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." - as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" -fi -ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" -ac_abs_confdir=`( - cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" - pwd)` -# When building in place, set srcdir=. -if test "$ac_abs_confdir" = "$ac_pwd"; then - srcdir=. -fi -# Remove unnecessary trailing slashes from srcdir. -# Double slashes in file names in object file debugging info -# mess up M-x gdb in Emacs. -case $srcdir in -*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; -esac -for ac_var in $ac_precious_vars; do - eval ac_env_${ac_var}_set=\${${ac_var}+set} - eval ac_env_${ac_var}_value=\$${ac_var} - eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} - eval ac_cv_env_${ac_var}_value=\$${ac_var} -done - -# -# Report the --help message. -# -if test "$ac_init_help" = "long"; then - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat <<_ACEOF -\`configure' configures preview-latex 11.84 to adapt to many kinds of systems. - -Usage: $0 [OPTION]... [VAR=VALUE]... - -To assign environment variables (e.g., CC, CFLAGS...), specify them as -VAR=VALUE. See below for descriptions of some of the useful variables. - -Defaults for the options are specified in brackets. - -Configuration: - -h, --help display this help and exit - --help=short display options specific to this package - --help=recursive display the short help of all the included packages - -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking ...' messages - --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' - -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] - -Installation directories: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [PREFIX] - -By default, \`make install' will install all the files in -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -an installation prefix other than \`$ac_default_prefix' using \`--prefix', -for instance \`--prefix=\$HOME'. - -For better control, use the options below. - -Fine tuning of the installation directories: - --bindir=DIR user executables [EPREFIX/bin] - --sbindir=DIR system admin executables [EPREFIX/sbin] - --libexecdir=DIR program executables [EPREFIX/libexec] - --sysconfdir=DIR read-only single-machine data [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] - --localstatedir=DIR modifiable single-machine data [PREFIX/var] - --libdir=DIR object code libraries [EPREFIX/lib] - --includedir=DIR C header files [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc [/usr/include] - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] - --datadir=DIR read-only architecture-independent data [DATAROOTDIR] - --infodir=DIR info documentation [DATAROOTDIR/info] - --localedir=DIR locale-dependent data [DATAROOTDIR/locale] - --mandir=DIR man documentation [DATAROOTDIR/man] - --docdir=DIR documentation root [DATAROOTDIR/doc/preview-latex] - --htmldir=DIR html documentation [DOCDIR] - --dvidir=DIR dvi documentation [DOCDIR] - --pdfdir=DIR pdf documentation [DOCDIR] - --psdir=DIR ps documentation [DOCDIR] -_ACEOF - - cat <<\_ACEOF -_ACEOF -fi - -if test -n "$ac_init_help"; then - case $ac_init_help in - short | recursive ) echo "Configuration of preview-latex 11.84:";; - esac - cat <<\_ACEOF - -Optional Features: - --disable-option-checking ignore unrecognized --enable/--with options - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --enable-build-dir-test test for build directory inside `load-path' - (on by default) - -Optional Packages: - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --with-emacs[=PATH] Use Emacs to build (on PATH if given) - --with-xemacs[=PATH] Use XEmacs to build (on PATH if given) - --with-packagedir=DIR package DIR for XEmacs - --with-lispdir=DIR A place in load-path for Lisp files; most - files will be place in a subdirectory. - --with-previewstartfile=FILE What file to use for preview startup. - --with-packagelispdir=DIR - Directory for the package lisp files. - --with-packagedatadir=DIR Where the data files go. - --with-tex-site=DIR Location of AUCTeX's tex-site.el, if not standard - --with-texmf-dir=DIR TEXMF tree to install into, - or --without-texmf-dir for runtime config - --with-tex-dir=DIR Location to install preview TeX sources - --with-doc-dir=DIR Location to install preview.dvi - -Some influential environment variables: - GS Ghostscript executable for batch operation - TEXHASH command to update the TeX filename database. Set to : to skip - updating the database on installation. This is the default for - --without-texmf-dir - -Use these variables to override the choices made by `configure' or to help -it to find libraries and programs with nonstandard names/locations. - -Report bugs to . -_ACEOF -ac_status=$? -fi - -if test "$ac_init_help" = "recursive"; then - # If there are subdirs, report their specific --help. - for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue - test -d "$ac_dir" || - { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || - continue - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - cd "$ac_dir" || { ac_status=$?; continue; } - # Check for guested configure. - if test -f "$ac_srcdir/configure.gnu"; then - echo && - $SHELL "$ac_srcdir/configure.gnu" --help=recursive - elif test -f "$ac_srcdir/configure"; then - echo && - $SHELL "$ac_srcdir/configure" --help=recursive - else - $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 - fi || ac_status=$? - cd "$ac_pwd" || { ac_status=$?; break; } - done -fi - -test -n "$ac_init_help" && exit $ac_status -if $ac_init_version; then - cat <<\_ACEOF -preview-latex configure 11.84 -generated by GNU Autoconf 2.69 - -Copyright (C) 2012 Free Software Foundation, Inc. -This configure script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it. -_ACEOF - exit -fi - -## ------------------------ ## -## Autoconf initialization. ## -## ------------------------ ## -cat >config.log <<_ACEOF -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. - -It was created by preview-latex $as_me 11.84, which was -generated by GNU Autoconf 2.69. Invocation command line was - - $ $0 $@ - -_ACEOF -exec 5>>config.log -{ -cat <<_ASUNAME -## --------- ## -## Platform. ## -## --------- ## - -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` - -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` - -_ASUNAME - -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - $as_echo "PATH: $as_dir" - done -IFS=$as_save_IFS - -} >&5 - -cat >&5 <<_ACEOF - - -## ----------- ## -## Core tests. ## -## ----------- ## - -_ACEOF - - -# Keep a trace of the command line. -# Strip out --no-create and --no-recursion so they do not pile up. -# Strip out --silent because we don't want to record it for future runs. -# Also quote any args containing shell meta-characters. -# Make two passes to allow for proper duplicate-argument suppression. -ac_configure_args= -ac_configure_args0= -ac_configure_args1= -ac_must_keep_next=false -for ac_pass in 1 2 -do - for ac_arg - do - case $ac_arg in - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - continue ;; - *\'*) - ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - case $ac_pass in - 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; - 2) - as_fn_append ac_configure_args1 " '$ac_arg'" - if test $ac_must_keep_next = true; then - ac_must_keep_next=false # Got value, back to normal. - else - case $ac_arg in - *=* | --config-cache | -C | -disable-* | --disable-* \ - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ - | -with-* | --with-* | -without-* | --without-* | --x) - case "$ac_configure_args0 " in - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; - esac - ;; - -* ) ac_must_keep_next=true ;; - esac - fi - as_fn_append ac_configure_args " '$ac_arg'" - ;; - esac - done -done -{ ac_configure_args0=; unset ac_configure_args0;} -{ ac_configure_args1=; unset ac_configure_args1;} - -# When interrupted or exit'd, cleanup temporary files, and complete -# config.log. We remove comments because anyway the quotes in there -# would cause problems or look ugly. -# WARNING: Use '\'' to represent an apostrophe within the trap. -# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. -trap 'exit_status=$? - # Save into config.log some information that might help in debugging. - { - echo - - $as_echo "## ---------------- ## -## Cache variables. ## -## ---------------- ##" - echo - # The following way of writing the cache mishandles newlines in values, -( - for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( - *) { eval $ac_var=; unset $ac_var;} ;; - esac ;; - esac - done - (set) 2>&1 | - case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - sed -n \ - "s/'\''/'\''\\\\'\'''\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" - ;; #( - *) - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) - echo - - $as_echo "## ----------------- ## -## Output variables. ## -## ----------------- ##" - echo - for ac_var in $ac_subst_vars - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - $as_echo "$ac_var='\''$ac_val'\''" - done | sort - echo - - if test -n "$ac_subst_files"; then - $as_echo "## ------------------- ## -## File substitutions. ## -## ------------------- ##" - echo - for ac_var in $ac_subst_files - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - $as_echo "$ac_var='\''$ac_val'\''" - done | sort - echo - fi - - if test -s confdefs.h; then - $as_echo "## ----------- ## -## confdefs.h. ## -## ----------- ##" - echo - cat confdefs.h - echo - fi - test "$ac_signal" != 0 && - $as_echo "$as_me: caught signal $ac_signal" - $as_echo "$as_me: exit $exit_status" - } >&5 - rm -f core *.core core.conftest.* && - rm -f -r conftest* confdefs* conf$$* $ac_clean_files && - exit $exit_status -' 0 -for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal -done -ac_signal=0 - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -f -r conftest* confdefs.h - -$as_echo "/* confdefs.h */" > confdefs.h - -# Predefined preprocessor variables. - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_URL "$PACKAGE_URL" -_ACEOF - - -# Let the site file select an alternate cache file if it wants to. -# Prefer an explicitly selected file to automatically selected ones. -ac_site_file1=NONE -ac_site_file2=NONE -if test -n "$CONFIG_SITE"; then - # We do not want a PATH search for config.site. - case $CONFIG_SITE in #(( - -*) ac_site_file1=./$CONFIG_SITE;; - */*) ac_site_file1=$CONFIG_SITE;; - *) ac_site_file1=./$CONFIG_SITE;; - esac -elif test "x$prefix" != xNONE; then - ac_site_file1=$prefix/share/config.site - ac_site_file2=$prefix/etc/config.site -else - ac_site_file1=$ac_default_prefix/share/config.site - ac_site_file2=$ac_default_prefix/etc/config.site -fi -for ac_site_file in "$ac_site_file1" "$ac_site_file2" -do - test "x$ac_site_file" = xNONE && continue - if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 -$as_echo "$as_me: loading site script $ac_site_file" >&6;} - sed 's/^/| /' "$ac_site_file" >&5 - . "$ac_site_file" \ - || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "failed to load site script $ac_site_file -See \`config.log' for more details" "$LINENO" 5; } - fi -done - -if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special files - # actually), so we avoid doing that. DJGPP emulates it as a regular file. - if test /dev/null != "$cache_file" && test -f "$cache_file"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 -$as_echo "$as_me: loading cache $cache_file" >&6;} - case $cache_file in - [\\/]* | ?:[\\/]* ) . "$cache_file";; - *) . "./$cache_file";; - esac - fi -else - { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 -$as_echo "$as_me: creating cache $cache_file" >&6;} - >$cache_file -fi - -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in $ac_precious_vars; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val=\$ac_cv_env_${ac_var}_value - eval ac_new_val=\$ac_env_${ac_var}_value - case $ac_old_set,$ac_new_set in - set,) - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 -$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - # differences in whitespace do not lead to failure. - ac_old_val_w=`echo x $ac_old_val` - ac_new_val_w=`echo x $ac_new_val` - if test "$ac_old_val_w" != "$ac_new_val_w"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 -$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - ac_cache_corrupted=: - else - { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 -$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} - eval $ac_var=\$ac_old_val - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 -$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 -$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} - fi;; - esac - # Pass precious variables to config.status. - if test "$ac_new_set" = set; then - case $ac_new_val in - *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; - *) ac_arg=$ac_var=$ac_new_val ;; - esac - case " $ac_configure_args " in - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) as_fn_append ac_configure_args " '$ac_arg'" ;; - esac - fi -done -if $ac_cache_corrupted; then - { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 -$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} - as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 -fi -## -------------------- ## -## Main body of script. ## -## -------------------- ## - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } -set x ${MAKE-make} -ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat >conftest.make <<\_ACEOF -SHELL = /bin/sh -all: - @echo '@@@%%%=$(MAKE)=@@@%%%' -_ACEOF -# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. -case `${MAKE-make} -f conftest.make 2>/dev/null` in - *@@@%%%=?*=@@@%%%*) - eval ac_cv_prog_make_${ac_make}_set=yes;; - *) - eval ac_cv_prog_make_${ac_make}_set=no;; -esac -rm -f conftest.make -fi -if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - SET_MAKE= -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - SET_MAKE="MAKE=${MAKE-make}" -fi - -ac_aux_dir= -for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do - if test -f "$ac_dir/install-sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f "$ac_dir/install.sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f "$ac_dir/shtool"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 -fi - -# These three variables are undocumented and unsupported, -# and are intended to be withdrawn in a future Autoconf release. -# They can cause serious problems if a builder's source tree is in a directory -# whose full name contains unusual characters. -ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. -ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. -ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. - - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -# Reject install programs that cannot install multiple files. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 -$as_echo_n "checking for a BSD-compatible install... " >&6; } -if test -z "$INSTALL"; then -if ${ac_cv_path_install+:} false; then : - $as_echo_n "(cached) " >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in #(( - ./ | .// | /[cC]/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - rm -rf conftest.one conftest.two conftest.dir - echo one > conftest.one - echo two > conftest.two - mkdir conftest.dir - if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && - test -s conftest.one && test -s conftest.two && - test -s conftest.dir/conftest.one && - test -s conftest.dir/conftest.two - then - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - fi - done - done - ;; -esac - - done -IFS=$as_save_IFS - -rm -rf conftest.one conftest.two conftest.dir - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 -$as_echo "$INSTALL" >&6; } - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - - -# Import unquoted variables. -TEX="$TEX_UNQUOTED" -packagedir="$packagedir_unquoted" -packagelispdir="$packagelispdir_unquoted" -packagedatadir="$packagedatadir_unquoted" -EMACS="$EMACS_UNQUOTED" - - -# Check for (X)Emacs, report its path, flavor and prefix - -# Apparently, if you run a shell window in Emacs, it sets the EMACS -# environment variable to 't'. Let's undo the damage. -if test "${EMACS}" = "t"; then - EMACS="" -fi - -# Check whether --with-emacs was given. -if test "${with_emacs+set}" = set; then : - withval=$with_emacs; if test "${withval}" = "yes"; then EMACS=emacs - elif test "${withval}" = "no"; then EMACS=xemacs - else EMACS="${withval}"; fi -fi - - - -# Check whether --with-xemacs was given. -if test "${with_xemacs+set}" = set; then : - withval=$with_xemacs; if test "x${withval}" != xno - then - if test "x${with_emacs}" != xno -a "x${with_emacs}" != x - then - as_fn_error $? "cannot use both Emacs and XEmacs" "$LINENO" 5 - fi - if test "x${withval}" = "xyes" - then - EMACS=xemacs - else - EMACS="${withval}" - fi - elif test "x${with_emacs}" = xno - then - as_fn_error $? "need to use either Emacs or XEmacs" "$LINENO" 5 - fi -fi - - -# "${prefix}/bin" is for Windows users -for ac_prog in ${EMACS} emacs xemacs -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_EMACS+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $EMACS in - [\\/]* | ?:[\\/]*) - ac_cv_path_EMACS="$EMACS" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in ${PATH} "${prefix}/bin" -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_EMACS="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -EMACS=$ac_cv_path_EMACS -if test -n "$EMACS"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EMACS" >&5 -$as_echo "$EMACS" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$EMACS" && break -done -test -n "$EMACS" || EMACS="""" - -if test -z "${EMACS}"; then - as_fn_error $? "(X)Emacs not found! Aborting!" "$LINENO" 5 -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${EMACS} is XEmacs" >&5 -$as_echo_n "checking if ${EMACS} is XEmacs... " >&6; } - - elisp="(if (featurep (quote xemacs)) \"yes\" \"no\")" - OUTPUT=./conftest-$$ - echo "${EMACS}" -batch -no-site-file -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1 - "${EMACS}" -batch -no-site-file -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1 - XEMACS="`cat ${OUTPUT}`" - echo "=> ${XEMACS}" >& 5 2>&1 - rm -f ${OUTPUT} - -if test "${XEMACS}" = "yes"; then - EMACS_FLAVOR=xemacs - EMACS_NAME="XEmacs" -elif test "${XEMACS}" = "no"; then - EMACS_FLAVOR=emacs - EMACS_NAME="Emacs" -else - as_fn_error $? "Unable to run ${EMACS}! Aborting!" "$LINENO" 5 -fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${XEMACS}" >&5 -$as_echo "${XEMACS}" >&6; } - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${EMACS_NAME} prefix" >&5 -$as_echo_n "checking for ${EMACS_NAME} prefix... " >&6; } - - - elisp="(condition-case nil (let* - ((prefix (directory-file-name (file-name-directory (executable-find cmd)))) - (parent (directory-file-name (file-name-directory prefix)))) - (if (string= (file-name-nondirectory prefix) \"bin\") - (setq prefix parent) - (if (string= (file-name-nondirectory parent) \"bin\") - (setq prefix (directory-file-name (file-name-directory parent))))) - prefix) (error "NONE"))" - OUTPUT=./conftest-$$ - echo "${EMACS}" -batch -no-site-file -eval "(let* ((cmd(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${EMACS}" >& 5 2>&1 - "${EMACS}" -batch -no-site-file -eval "(let* ((cmd(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${EMACS}" >& 5 2>&1 - emacsprefix="`cat ${OUTPUT}`" - echo "=> ${emacsprefix}" >& 5 2>&1 - rm -f ${OUTPUT} - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"${emacsprefix}\"" >&5 -$as_echo "\"${emacsprefix}\"" >&6; } - - -if test ${EMACS_FLAVOR} = xemacs -then - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${EMACS_NAME} is recent enough" >&5 -$as_echo_n "checking if ${EMACS_NAME} is recent enough... " >&6; } - - elisp="(cond ((< emacs-major-version 21) \"no\") - ((> emacs-major-version 21) \"yes\") - ((< emacs-minor-version 04) \"no\") - (t \"yes\"))" - OUTPUT=./conftest-$$ - echo "${EMACS}" -batch -no-site-file -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1 - "${EMACS}" -batch -no-site-file -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1 - result="`cat ${OUTPUT}`" - echo "=> ${result}" >& 5 2>&1 - rm -f ${OUTPUT} - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${result}" >&5 -$as_echo "${result}" >&6; } -if test "${result}" != "yes" -then - as_fn_error $? "This package requires at least ${EMACS_NAME} version 21.4 Aborting!" "$LINENO" 5 -fi - -else - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${EMACS_NAME} is recent enough" >&5 -$as_echo_n "checking if ${EMACS_NAME} is recent enough... " >&6; } - - elisp="(cond ((< emacs-major-version 21) \"no\") - ((> emacs-major-version 21) \"yes\") - ((< emacs-minor-version 01) \"no\") - (t \"yes\"))" - OUTPUT=./conftest-$$ - echo "${EMACS}" -batch -no-site-file -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1 - "${EMACS}" -batch -no-site-file -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1 - result="`cat ${OUTPUT}`" - echo "=> ${result}" >& 5 2>&1 - rm -f ${OUTPUT} - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${result}" >&5 -$as_echo "${result}" >&6; } -if test "${result}" != "yes" -then - as_fn_error $? "This package requires at least ${EMACS_NAME} version 21.1 Aborting!" "$LINENO" 5 -fi - -fi - -# The Debian package uses `--disable-build-dir-test'; normal users should -# never need to modify the default behavior. -# Check whether --enable-build-dir-test was given. -if test "${enable_build_dir_test+set}" = set; then : - enableval=$enable_build_dir_test; if ! [ "X-${enableval}" = "X-no" ] - then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is valid" >&5 -$as_echo_n "checking if build directory is valid... " >&6; } - - elisp="(if (or (member (directory-file-name default-directory) load-path)\ - (member (file-name-as-directory default-directory) load-path))\ - \"no\" \"yes\")" - OUTPUT=./conftest-$$ - echo "${EMACS}" -batch -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1 - "${EMACS}" -batch -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1 - valid_build_dir="`cat ${OUTPUT}`" - echo "=> ${valid_build_dir}" >& 5 2>&1 - rm -f ${OUTPUT} - - if test "${valid_build_dir}" = "no"; then - as_fn_error $? "Build directory inside load-path! Aborting!" "$LINENO" 5 - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - fi - - fi -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is valid" >&5 -$as_echo_n "checking if build directory is valid... " >&6; } - - elisp="(if (or (member (directory-file-name default-directory) load-path)\ - (member (file-name-as-directory default-directory) load-path))\ - \"no\" \"yes\")" - OUTPUT=./conftest-$$ - echo "${EMACS}" -batch -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1 - "${EMACS}" -batch -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1 - valid_build_dir="`cat ${OUTPUT}`" - echo "=> ${valid_build_dir}" >& 5 2>&1 - rm -f ${OUTPUT} - - if test "${valid_build_dir}" = "no"; then - as_fn_error $? "Build directory inside load-path! Aborting!" "$LINENO" 5 - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - fi - -fi - - -if test ${EMACS_FLAVOR} = "xemacs" ; then - PLAT_LISP=prv-xemacs.el - -# Check whether --with-packagedir was given. -if test "${with_packagedir+set}" = set; then : - withval=$with_packagedir; packagedir="`echo ${withval} | sed 's/^~\//${HOME}\//;s/[\/\\]$//'`" -else - if test ${EMACS_FLAVOR} = xemacs; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEmacs package directory" >&5 -$as_echo_n "checking for XEmacs package directory... " >&6; } - for currentprefix in '${datadir}/xemacs/xemacs-packages' \ - '${libdir}/xemacs/xemacs-packages' \ - '${datadir}' '${libdir}' "${emacsprefix}" - do - expprefix="${currentprefix}" - __ac_tmp_oldprefix__="${prefix}" - __ac_tmp_oldexec_prefix__="$exec_prefix" - test "x${prefix}" = xNONE && prefix="${ac_default_prefix}" - test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}' - while :;do case "$expprefix" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g' -eval "expprefix=`sed ${__ac_tmp__} <& 5 2>&1 - "${EMACS}" -batch -eval "(let* ((prefix(pop command-line-args-left)) (expanded(pop command-line-args-left)) (x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${currentprefix}" "${expprefix}" >& 5 2>&1 - packagedir="`cat ${OUTPUT}`" - echo "=> ${packagedir}" >& 5 2>&1 - rm -f ${OUTPUT} - - if test "$packagedir" != NONE; then break; fi; done - if test "x${packagedir}" = xNONE -o -z "${packagedir}"; then - as_fn_error $? "not found, exiting!" "$LINENO" 5 - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${packagedir}" >&5 -$as_echo "${packagedir}" >&6; } - else - packagedir=no - fi -fi - - -else - PLAT_LISP=prv-emacs.el - packagedir=no -fi - -if test "X${packagedir}" = Xno -then - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking where lisp files go" >&5 -$as_echo_n "checking where lisp files go... " >&6; } - -# Check whether --with-lispdir was given. -if test "${with_lispdir+set}" = set; then : - withval=$with_lispdir; lispdir="${withval}" -fi - - if test "X${lispdir}" = X; then - if test "X${packagedir}" = Xno; then - # Test paths relative to prefixes - for currentprefix in '${datadir}/'${EMACS_FLAVOR} '${libdir}/'${EMACS_FLAVOR} \ - "${emacsprefix}/share/${EMACS_FLAVOR}" \ - '${datadir}' '${libdir}' "${emacsprefix}" - do - expprefix="${currentprefix}" - __ac_tmp_oldprefix__="${prefix}" - __ac_tmp_oldexec_prefix__="$exec_prefix" - test "x${prefix}" = xNONE && prefix="${ac_default_prefix}" - test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}' - while :;do case "$expprefix" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g' -eval "expprefix=`sed ${__ac_tmp__} <& 5 2>&1 - "${EMACS}" -batch -eval "(let* ((prefix(pop command-line-args-left)) (expanded(pop command-line-args-left)) (x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${currentprefix}" "${expprefix}" >& 5 2>&1 - lispdir="`cat ${OUTPUT}`" - echo "=> ${lispdir}" >& 5 2>&1 - rm -f ${OUTPUT} - - if test "$lispdir" != NONE; then break; fi; done - if test "${lispdir}" = "NONE"; then - # No? notify user. - as_fn_error $? "Cannot locate lisp directory, -use --with-lispdir, --datadir, or possibly --prefix to rectify this" "$LINENO" 5 - fi - else - # XEmacs - lispdir="${packagedir}/lisp" - fi - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lispdir}" >&5 -$as_echo "${lispdir}" >&6; } - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking what file to use for preview startup" >&5 -$as_echo_n "checking what file to use for preview startup... " >&6; } - -# Check whether --with-previewstartfile was given. -if test "${with_previewstartfile+set}" = set; then : - withval=$with_previewstartfile; previewstartfile="${withval}" -else - _tmpdir_="${lispdir}" - __ac_tmp_oldprefix__="${prefix}" - __ac_tmp_oldexec_prefix__="$exec_prefix" - test "x${prefix}" = xNONE && prefix="${ac_default_prefix}" - test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}' - while :;do case "$_tmpdir_" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g' -eval "_tmpdir_=`sed ${__ac_tmp__} <&5 -$as_echo "${previewstartfile}" >&6; } - test "X$packagelispdir" = X && packagelispdir="${lispdir}/preview" - test "X$packagedatadir" = X && packagedatadir="${packagelispdir}" -else - #lispdir is only used for determining relative files. - lispdir="${packagedir}" - test "X$packagelispdir" = X && packagelispdir="${packagedir}/lisp/preview" - previewstartfile="${packagelispdir}"/auto-autoloads.el - test "X$packagedatadir" = X && packagedatadir="${packagedir}/etc/preview" -fi - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where the package lisp files go" >&5 -$as_echo_n "checking where the package lisp files go... " >&6; } - -# Check whether --with-packagelispdir was given. -if test "${with_packagelispdir+set}" = set; then : - withval=$with_packagelispdir; packagelispdir="${withval}" -fi - - - tmpdir="${packagelispdir}" - __ac_tmp_oldprefix__="${prefix}" - __ac_tmp_oldexec_prefix__="$exec_prefix" - test "x${prefix}" = xNONE && prefix="${ac_default_prefix}" - test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}' - while :;do case "$tmpdir" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g' -eval "tmpdir=`sed ${__ac_tmp__} <& 5 2>&1 - "${EMACS}" -batch -no-site-file -eval "(let* ((path(pop command-line-args-left)) (lispdir(pop command-line-args-left)) (startup(pop command-line-args-left)) (target(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${tmpdir}" "${explispdir}" "${expstartup}" >& 5 2>&1 - lisppackagelispdir="`cat ${OUTPUT}`" - echo "=> ${lisppackagelispdir}" >& 5 2>&1 - rm -f ${OUTPUT} - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${packagelispdir}" >&5 -$as_echo "${packagelispdir}" >&6; } - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where the data files go" >&5 -$as_echo_n "checking where the data files go... " >&6; } - -# Check whether --with-packagedatadir was given. -if test "${with_packagedatadir+set}" = set; then : - withval=$with_packagedatadir; packagedatadir="${withval}" -fi - - - tmpdir="${packagedatadir}" - __ac_tmp_oldprefix__="${prefix}" - __ac_tmp_oldexec_prefix__="$exec_prefix" - test "x${prefix}" = xNONE && prefix="${ac_default_prefix}" - test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}' - while :;do case "$tmpdir" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g' -eval "tmpdir=`sed ${__ac_tmp__} <& 5 2>&1 - "${EMACS}" -batch -no-site-file -eval "(let* ((path(pop command-line-args-left)) (lispdir(pop command-line-args-left)) (startup(pop command-line-args-left)) (target(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${tmpdir}" "${explispdir}" "${expstartup}" >& 5 2>&1 - lisppackagedatadir="`cat ${OUTPUT}`" - echo "=> ${lisppackagedatadir}" >& 5 2>&1 - rm -f ${OUTPUT} - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${packagedatadir}" >&5 -$as_echo "${packagedatadir}" >&6; } - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of AUCTeX's tex-site.el" >&5 -$as_echo_n "checking for the location of AUCTeX's tex-site.el... " >&6; } - -# Check whether --with-tex-site was given. -if test "${with_tex_site+set}" = set; then : - withval=$with_tex_site; auctexdir="${withval}" ; - __ac_tmp_oldprefix__="${prefix}" - __ac_tmp_oldexec_prefix__="$exec_prefix" - test "x${prefix}" = xNONE && prefix="${ac_default_prefix}" - test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}' - while :;do case "$withval" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g' -eval "withval=`sed ${__ac_tmp__} <&6 -else - - - elisp="(condition-case nil - (directory-file-name (file-name-directory - (locate-library \"tex-site\"))) - (error \"\"))" - OUTPUT=./conftest-$$ - echo "${EMACS}" -batch -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1 - "${EMACS}" -batch -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1 - EMACS_cv_ACCEPTABLE_AUCTEX="`cat ${OUTPUT}`" - echo "=> ${EMACS_cv_ACCEPTABLE_AUCTEX}" >& 5 2>&1 - rm -f ${OUTPUT} - - if test -z "${EMACS_cv_ACCEPTABLE_AUCTEX}" ; then - as_fn_error $? "Can't find AUCTeX! Please install it! -Check the PROBLEMS file for details." "$LINENO" 5 - fi - -fi - - auctexdir="${EMACS_cv_ACCEPTABLE_AUCTEX}" -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${auctexdir}" >&5 -$as_echo "${auctexdir}" >&6; } - - - - - -for ac_prog in gs GSWIN32C.EXE -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_GS+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$GS"; then - ac_cv_prog_GS="$GS" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_GS="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -GS=$ac_cv_prog_GS -if test -n "$GS"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5 -$as_echo "$GS" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$GS" && break -done -test -n "$GS" || GS="NONE" - - - - elisp="(if (member dir (list \"NONE\" (if (eq system-type 'windows-nt) \"GSWIN32C.EXE\" \"gs\"))) \"\" \`(defvar preview-gs-command ,dir))" - OUTPUT=./conftest-$$ - echo "${EMACS}" -batch -no-site-file -eval "(let* ((dir(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${GS}" >& 5 2>&1 - "${EMACS}" -batch -no-site-file -eval "(let* ((dir(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${GS}" >& 5 2>&1 - lispGS="`cat ${OUTPUT}`" - echo "=> ${lispGS}" >& 5 2>&1 - rm -f ${OUTPUT} - - - - - -# Extract the first word of "latex", so it can be a program name with args. -set dummy latex; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_LATEX+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $LATEX in - [\\/]* | ?:[\\/]*) - ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - test -z "$ac_cv_path_LATEX" && ac_cv_path_LATEX="NONE" - ;; -esac -fi -LATEX=$ac_cv_path_LATEX -if test -n "$LATEX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5 -$as_echo "$LATEX" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -if test "${LATEX}"x = NONEx ; then - as_fn_error $? "LaTeX not found, aborting! -You must install LaTeX for preview to work." "$LINENO" 5 -fi - - -# Extract the first word of "pdflatex", so it can be a program name with args. -set dummy pdflatex; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PDFLATEX+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $PDFLATEX in - [\\/]* | ?:[\\/]*) - ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -PDFLATEX=$ac_cv_path_PDFLATEX -if test -n "$PDFLATEX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5 -$as_echo "$PDFLATEX" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - -# Determine which latex-style components to install -# To match .sty, .def, .cfg, but _not_ .drv -TEXMFGEN=`sed -n 's/^%.*file[{]\\([^}.]*\\.[sdc][tef][yfg]\\)[}].*/\\1/p' latex/preview.dtx` -# Replace newlines with spaces. -TEXMFGEN="`echo ${TEXMFGEN}`" - - - -# Extract the first word of "tex", so it can be a program name with args. -set dummy tex; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_TEX+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $TEX in - [\\/]* | ?:[\\/]*) - ac_cv_path_TEX="$TEX" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_TEX="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - test -z "$ac_cv_path_TEX" && ac_cv_path_TEX="NONE" - ;; -esac -fi -TEX=$ac_cv_path_TEX -if test -n "$TEX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5 -$as_echo "$TEX" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -if test "${TEX}"x = NONEx ; then - as_fn_error $? "NONE" "$LINENO" 5 -fi - - - - -# Check whether --with-texmf-dir was given. -if test "${with_texmf_dir+set}" = set; then : - withval=$with_texmf_dir; texmfdir="${withval}" ; - if test "x${texmfdir}" = xno - then - previewtexmfdir="${packagedatadir}/latex" - previewdocdir="${packagedatadir}/doc" - else - __ac_tmp_oldprefix__="${prefix}" - __ac_tmp_oldexec_prefix__="$exec_prefix" - test "x${prefix}" = xNONE && prefix="${ac_default_prefix}" - test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}' - while :;do case "$withval" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g' -eval "withval=`sed ${__ac_tmp__} <&5 -$as_echo_n "checking for prefix from kpsepath... " >&6; } - - - - elisp="(condition-case nil (let* - ((prefix (directory-file-name (file-name-directory (executable-find cmd)))) - (parent (directory-file-name (file-name-directory prefix)))) - (if (string= (file-name-nondirectory prefix) \"bin\") - (setq prefix parent) - (if (string= (file-name-nondirectory parent) \"bin\") - (setq prefix (directory-file-name (file-name-directory parent))))) - prefix) (error "NONE"))" - OUTPUT=./conftest-$$ - echo "${EMACS}" -batch -no-site-file -eval "(let* ((cmd(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" kpsepath >& 5 2>&1 - "${EMACS}" -batch -no-site-file -eval "(let* ((cmd(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" kpsepath >& 5 2>&1 - texprefix="`cat ${OUTPUT}`" - echo "=> ${texprefix}" >& 5 2>&1 - rm -f ${OUTPUT} - - -if test "x${texprefix}" != "xNONE" -then - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"${texprefix}\"" >&5 -$as_echo "\"${texprefix}\"" >&6; } - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TDS-compliant directory" >&5 -$as_echo_n "checking for TDS-compliant directory... " >&6; } - -pathoutput="`kpsepath -n latex tex`" - - for currentprefix in '${datadir}/texmf' "${texprefix}/share/texmf-local" "${texprefix}/share/texmf" "${texprefix}/texmf-local" "${texprefix}/texmf" - do - expprefix="${currentprefix}" - __ac_tmp_oldprefix__="${prefix}" - __ac_tmp_oldexec_prefix__="$exec_prefix" - test "x${prefix}" = xNONE && prefix="${ac_default_prefix}" - test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}' - while :;do case "$expprefix" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g' -eval "expprefix=`sed ${__ac_tmp__} <& 5 2>&1 - "${EMACS}" -batch -no-site-file -eval "(let* ((prefix(pop command-line-args-left)) (expanded(pop command-line-args-left)) (pathoutput(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${currentprefix}" "${expprefix}" "${pathoutput}" >& 5 2>&1 - texmfdir="`cat ${OUTPUT}`" - echo "=> ${texmfdir}" >& 5 2>&1 - rm -f ${OUTPUT} - - if test "$texmfdir" != NONE; then break; fi; done - -if test -n "${texmfdir}" -a "${texmfdir}" != "NONE" ; then - previewdocdir="${texmfdir}/doc/latex/styles" - previewtexmfdir="${texmfdir}/tex/latex/preview" -fi - -if test -z "${previewtexmfdir}" -o "${previewtexmfdir}" = no ; then - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TeX directory hierarchy" >&5 -$as_echo_n "checking for TeX directory hierarchy... " >&6; } - - for currentprefix in '${datadir}/texmf' "${texprefix}/share/texmf-local" "${texprefix}/share/texmf" "${texprefix}/texmf-local" "${texprefix}/texmf" '${datadir}' "${texprefix}/share" "${texprefix}" - do - expprefix="${currentprefix}" - __ac_tmp_oldprefix__="${prefix}" - __ac_tmp_oldexec_prefix__="$exec_prefix" - test "x${prefix}" = xNONE && prefix="${ac_default_prefix}" - test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}' - while :;do case "$expprefix" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g' -eval "expprefix=`sed ${__ac_tmp__} <& 5 2>&1 - "${EMACS}" -batch -no-site-file -eval "(let* ((prefix(pop command-line-args-left)) (expanded(pop command-line-args-left)) (pathoutput(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${currentprefix}" "${expprefix}" "${pathoutput}" >& 5 2>&1 - texmfdir="`cat ${OUTPUT}`" - echo "=> ${texmfdir}" >& 5 2>&1 - rm -f ${OUTPUT} - - if test "$texmfdir" != NONE; then break; fi; done - -if test -n "${texmfdir}" -a "${texmfdir}" != "NONE" ; then - previewtexmfdir="${texmfdir}/preview" - previewdocdir="${texmfdir}/preview" -fi -fi - -if test -z "${previewtexmfdir}" -o "${previewtexmfdir}" = no ; then - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TeX input directory" >&5 -$as_echo_n "checking for TeX input directory... " >&6; } - - for currentprefix in '${datadir}' "${texprefix}/share" "${texprefix}" - do - expprefix="${currentprefix}" - __ac_tmp_oldprefix__="${prefix}" - __ac_tmp_oldexec_prefix__="$exec_prefix" - test "x${prefix}" = xNONE && prefix="${ac_default_prefix}" - test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}' - while :;do case "$expprefix" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g' -eval "expprefix=`sed ${__ac_tmp__} <& 5 2>&1 - "${EMACS}" -batch -no-site-file -eval "(let* ((prefix(pop command-line-args-left)) (expanded(pop command-line-args-left)) (pathoutput(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${currentprefix}" "${expprefix}" "${pathoutput}" >& 5 2>&1 - texmfdir="`cat ${OUTPUT}`" - echo "=> ${texmfdir}" >& 5 2>&1 - rm -f ${OUTPUT} - - if test "$texmfdir" != NONE; then break; fi; done - -if test -n "${texmfdir}" -a "${texmfdir}" != "NONE" ; then - previewtexmfdir="${texmfdir}" - previewdocdir="${texmfdir}" -fi -fi -fi - -if test -z "${previewtexmfdir}" -o "${previewtexmfdir}" = no ; then - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - as_fn_error $? "Cannot find the texmf directory! -Please use --with-texmf-dir=dir to specify where the preview tex files go" "$LINENO" 5 -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${texmfdir}" >&5 -$as_echo "${texmfdir}" >&6; } -fi -fi - -echo Preview will be placed in ${previewtexmfdir} -echo Preview docs will be placed in ${previewdocdir} - - - - -if test "x${texmfdir}" = "xno" -then - packagetexstyles="${packagedatadir}/latex" - - tmpdir="${packagetexstyles}" - __ac_tmp_oldprefix__="${prefix}" - __ac_tmp_oldexec_prefix__="$exec_prefix" - test "x${prefix}" = xNONE && prefix="${ac_default_prefix}" - test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}' - while :;do case "$tmpdir" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g' -eval "tmpdir=`sed ${__ac_tmp__} <& 5 2>&1 - "${EMACS}" -batch -no-site-file -eval "(let* ((path(pop command-line-args-left)) (lispdir(pop command-line-args-left)) (startup(pop command-line-args-left)) (target(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${tmpdir}" "${explispdir}" "${expstartup}" >& 5 2>&1 - lisppackagetexstyles="`cat ${OUTPUT}`" - echo "=> ${lisppackagetexstyles}" >& 5 2>&1 - rm -f ${OUTPUT} - - - - lisppackagetexstyles="(defvar preview-TeX-style-dir ${lisppackagetexstyles})" - test "X${TEXHASH}" = X && TEXHASH=: -else - lisppackagetexstyles= -fi - - -# Be very careful about assuming things about the available hash programs -# MiKTeX comes with a braindead link to mktexlsr, apparently, so first -# try the regular utility from them. - - -if test "X${TEXHASH}" = "X" -then - # Extract the first word of "texhash", so it can be a program name with args. -set dummy texhash; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_TEXHASH+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $TEXHASH in - [\\/]* | ?:[\\/]*) - ac_cv_path_TEXHASH="$TEXHASH" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_TEXHASH="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -TEXHASH=$ac_cv_path_TEXHASH -if test -n "$TEXHASH"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXHASH" >&5 -$as_echo "$TEXHASH" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - # Extract the first word of "initexmf", so it can be a program name with args. -set dummy initexmf; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_TEXHASH+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$TEXHASH"; then - ac_cv_prog_TEXHASH="$TEXHASH" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_TEXHASH="initexmf -u" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -TEXHASH=$ac_cv_prog_TEXHASH -if test -n "$TEXHASH"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXHASH" >&5 -$as_echo "$TEXHASH" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - if test "X${TEXHASH}" = X - then - for ac_prog in mktexlsr MakeTeXls-R -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_TEXHASH+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $TEXHASH in - [\\/]* | ?:[\\/]*) - ac_cv_path_TEXHASH="$TEXHASH" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_TEXHASH="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -TEXHASH=$ac_cv_path_TEXHASH -if test -n "$TEXHASH"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXHASH" >&5 -$as_echo "$TEXHASH" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$TEXHASH" && break -done -test -n "$TEXHASH" || TEXHASH=":" - - fi -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glaring installation conflicts" >&5 -$as_echo_n "checking for glaring installation conflicts... " >&6; } -exppackagelispdir="$packagelispdir" - __ac_tmp_oldprefix__="${prefix}" - __ac_tmp_oldexec_prefix__="$exec_prefix" - test "x${prefix}" = xNONE && prefix="${ac_default_prefix}" - test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}' - while :;do case "$exppackagelispdir" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g' -eval "exppackagelispdir=`sed ${__ac_tmp__} <& 5 2>&1 - "${EMACS}" -batch -eval "(let* ((packagelispdir(pop command-line-args-left)) (previewstartfile(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${exppackagelispdir}" "${exppreviewstartfile}" >& 5 2>&1 - shadows="`cat ${OUTPUT}`" - echo "=> ${shadows}" >& 5 2>&1 - rm -f ${OUTPUT} - -if test "NONE${shadows}" != NONE -then - conflictsmsg="Conflicts with previous installations have been detected. -Please fix them before continuing. -" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ouch! -" >&5 -$as_echo "ouch! -" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${shadows} -" >&5 -$as_echo "$as_me: WARNING: ${shadows} -" >&2;} -else - conflictsmsg= - { $as_echo "$as_me:${as_lineno-$LINENO}: result: probably none" >&5 -$as_echo "probably none" >&6; } -fi - - -texmfdir="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. - -_ACEOF - -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, we kill variables containing newlines. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -( - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( - *) { eval $ac_var=; unset $ac_var;} ;; - esac ;; - esac - done - - (set) 2>&1 | - case $as_nl`(ac_space=' '; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes: double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \. - sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; #( - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) | - sed ' - /^ac_cv_env_/b end - t clear - :clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - t end - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - :end' >>confcache -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else - if test -w "$cache_file"; then - if test "x$cache_file" != "x/dev/null"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 -$as_echo "$as_me: updating cache $cache_file" >&6;} - if test ! -f "$cache_file" || test -h "$cache_file"; then - cat confcache >"$cache_file" - else - case $cache_file in #( - */* | ?:*) - mv -f confcache "$cache_file"$$ && - mv -f "$cache_file"$$ "$cache_file" ;; #( - *) - mv -f confcache "$cache_file" ;; - esac - fi - fi - else - { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 -$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} - fi -fi -rm -f confcache - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -# -# If the first sed substitution is executed (which looks for macros that -# take arguments), then branch to the quote section. Otherwise, -# look for a macro that doesn't take arguments. -ac_script=' -:mline -/\\$/{ - N - s,\\\n,, - b mline -} -t clear -:clear -s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g -t quote -s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g -t quote -b any -:quote -s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g -s/\[/\\&/g -s/\]/\\&/g -s/\$/$$/g -H -:any -${ - g - s/^\n// - s/\n/ /g - p -} -' -DEFS=`sed -n "$ac_script" confdefs.h` - - -ac_libobjs= -ac_ltlibobjs= -U= -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue - # 1. Remove the extension, and $U if already installed. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' - ac_i=`$as_echo "$ac_i" | sed "$ac_script"` - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR - # will be set to the directory where LIBOBJS objects are built. - as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" - as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' -done -LIBOBJS=$ac_libobjs - -LTLIBOBJS=$ac_ltlibobjs - - - -: "${CONFIG_STATUS=./config.status}" -ac_write_fail=0 -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 -$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} -as_write_fail=0 -cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 -#! $SHELL -# Generated by $as_me. -# Run this file to recreate the current configuration. -# Compiler output produced by configure, useful for debugging -# configure, is in config.log if it exists. - -debug=false -ac_cs_recheck=false -ac_cs_silent=false - -SHELL=\${CONFIG_SHELL-$SHELL} -export SHELL -_ASEOF -cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 -## -------------------- ## -## M4sh Initialization. ## -## -------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : - emulate sh - NULLCMD=: - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in #( - *posix*) : - set -o posix ;; #( - *) : - ;; -esac -fi - - -as_nl=' -' -export as_nl -# Printing a long string crashes Solaris 7 /usr/bin/printf. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -# Prefer a ksh shell builtin over an external printf program on Solaris, -# but without wasting forks for bash or zsh. -if test -z "$BASH_VERSION$ZSH_VERSION" \ - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='print -r --' - as_echo_n='print -rn --' -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='printf %s\n' - as_echo_n='printf %s' -else - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' - as_echo_n='/usr/ucb/echo -n' - else - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' - as_echo_n_body='eval - arg=$1; - case $arg in #( - *"$as_nl"*) - expr "X$arg" : "X\\(.*\\)$as_nl"; - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; - esac; - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" - ' - export as_echo_n_body - as_echo_n='sh -c $as_echo_n_body as_echo' - fi - export as_echo_body - as_echo='sh -c $as_echo_body as_echo' -fi - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - PATH_SEPARATOR=: - (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { - (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || - PATH_SEPARATOR=';' - } -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -as_myself= -case $0 in #(( - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break - done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - exit 1 -fi - -# Unset variables that we do not need and which cause bugs (e.g. in -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" -# suppresses any "Segmentation fault" message there. '((' could -# trigger a bug in pdksh 5.2.14. -for as_var in BASH_ENV ENV MAIL MAILPATH -do eval test x\${$as_var+set} = xset \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - - -# as_fn_error STATUS ERROR [LINENO LOG_FD] -# ---------------------------------------- -# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are -# provided, also output the error to LOG_FD, referencing LINENO. Then exit the -# script with STATUS, using 1 if that was 0. -as_fn_error () -{ - as_status=$1; test $as_status -eq 0 && as_status=1 - if test "$4"; then - as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 - fi - $as_echo "$as_me: error: $2" >&2 - as_fn_exit $as_status -} # as_fn_error - - -# as_fn_set_status STATUS -# ----------------------- -# Set $? to STATUS, without forking. -as_fn_set_status () -{ - return $1 -} # as_fn_set_status - -# as_fn_exit STATUS -# ----------------- -# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. -as_fn_exit () -{ - set +e - as_fn_set_status $1 - exit $1 -} # as_fn_exit - -# as_fn_unset VAR -# --------------- -# Portably unset VAR. -as_fn_unset () -{ - { eval $1=; unset $1;} -} -as_unset=as_fn_unset -# as_fn_append VAR VALUE -# ---------------------- -# Append the text in VALUE to the end of the definition contained in VAR. Take -# advantage of any shell optimizations that allow amortized linear growth over -# repeated appends, instead of the typical quadratic growth present in naive -# implementations. -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : - eval 'as_fn_append () - { - eval $1+=\$2 - }' -else - as_fn_append () - { - eval $1=\$$1\$2 - } -fi # as_fn_append - -# as_fn_arith ARG... -# ------------------ -# Perform arithmetic evaluation on the ARGs, and store the result in the -# global $as_val. Take advantage of shells that can avoid forks. The arguments -# must be portable across $(()) and expr. -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : - eval 'as_fn_arith () - { - as_val=$(( $* )) - }' -else - as_fn_arith () - { - as_val=`expr "$@" || test $? -eq 1` - } -fi # as_fn_arith - - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in #((((( --n*) - case `echo 'xy\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - xy) ECHO_C='\c';; - *) echo `echo ksh88 bug on AIX 6.1` > /dev/null - ECHO_T=' ';; - esac;; -*) - ECHO_N='-n';; -esac - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir 2>/dev/null -fi -if (echo >conf$$.file) 2>/dev/null; then - if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -pR' - elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln - else - as_ln_s='cp -pR' - fi -else - as_ln_s='cp -pR' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - - -# as_fn_mkdir_p -# ------------- -# Create "$as_dir" as a directory, including parents if necessary. -as_fn_mkdir_p () -{ - - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || eval $as_mkdir_p || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" - - -} # as_fn_mkdir_p -if mkdir -p . 2>/dev/null; then - as_mkdir_p='mkdir -p "$as_dir"' -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - - -# as_fn_executable_p FILE -# ----------------------- -# Test if FILE is an executable regular file. -as_fn_executable_p () -{ - test -f "$1" && test -x "$1" -} # as_fn_executable_p -as_test_x='test -x' -as_executable_p=as_fn_executable_p - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -exec 6>&1 -## ----------------------------------- ## -## Main body of $CONFIG_STATUS script. ## -## ----------------------------------- ## -_ASEOF -test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -# Save the log message, to keep $0 and so on meaningful, and to -# report actual input values of CONFIG_FILES etc. instead of their -# values after options handling. -ac_log=" -This file was extended by preview-latex $as_me 11.84, which was -generated by GNU Autoconf 2.69. Invocation command line was - - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS - CONFIG_LINKS = $CONFIG_LINKS - CONFIG_COMMANDS = $CONFIG_COMMANDS - $ $0 $@ - -on `(hostname || uname -n) 2>/dev/null | sed 1q` -" - -_ACEOF - -case $ac_config_files in *" -"*) set x $ac_config_files; shift; ac_config_files=$*;; -esac - - - -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -# Files that config.status was made for. -config_files="$ac_config_files" - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -ac_cs_usage="\ -\`$as_me' instantiates files and other configuration actions -from templates according to the current configuration. Unless the files -and actions are specified as TAGs, all are instantiated by default. - -Usage: $0 [OPTION]... [TAG]... - - -h, --help print this help, then exit - -V, --version print version number and configuration settings, then exit - --config print configuration, then exit - -q, --quiet, --silent - do not print progress messages - -d, --debug don't remove temporary files - --recheck update $as_me by reconfiguring in the same conditions - --file=FILE[:TEMPLATE] - instantiate the configuration file FILE - -Configuration files: -$config_files - -Report bugs to ." - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" -ac_cs_version="\\ -preview-latex config.status 11.84 -configured by $0, generated by GNU Autoconf 2.69, - with options \\"\$ac_cs_config\\" - -Copyright (C) 2012 Free Software Foundation, Inc. -This config.status script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it." - -ac_pwd='$ac_pwd' -srcdir='$srcdir' -INSTALL='$INSTALL' -test -n "\$AWK" || AWK=awk -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -# The default lists apply if the user does not specify any file. -ac_need_defaults=: -while test $# != 0 -do - case $1 in - --*=?*) - ac_option=`expr "X$1" : 'X\([^=]*\)='` - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` - ac_shift=: - ;; - --*=) - ac_option=`expr "X$1" : 'X\([^=]*\)='` - ac_optarg= - ac_shift=: - ;; - *) - ac_option=$1 - ac_optarg=$2 - ac_shift=shift - ;; - esac - - case $ac_option in - # Handling of the options. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - ac_cs_recheck=: ;; - --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) - $as_echo "$ac_cs_version"; exit ;; - --config | --confi | --conf | --con | --co | --c ) - $as_echo "$ac_cs_config"; exit ;; - --debug | --debu | --deb | --de | --d | -d ) - debug=: ;; - --file | --fil | --fi | --f ) - $ac_shift - case $ac_optarg in - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; - '') as_fn_error $? "missing file argument" ;; - esac - as_fn_append CONFIG_FILES " '$ac_optarg'" - ac_need_defaults=false;; - --he | --h | --help | --hel | -h ) - $as_echo "$ac_cs_usage"; exit ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil | --si | --s) - ac_cs_silent=: ;; - - # This is an error. - -*) as_fn_error $? "unrecognized option: \`$1' -Try \`$0 --help' for more information." ;; - - *) as_fn_append ac_config_targets " $1" - ac_need_defaults=false ;; - - esac - shift -done - -ac_configure_extra_args= - -if $ac_cs_silent; then - exec 6>/dev/null - ac_configure_extra_args="$ac_configure_extra_args --silent" -fi - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -if \$ac_cs_recheck; then - set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion - shift - \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 - CONFIG_SHELL='$SHELL' - export CONFIG_SHELL - exec "\$@" -fi - -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -exec 5>>config.log -{ - echo - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX -## Running $as_me. ## -_ASBOX - $as_echo "$ac_log" -} >&5 - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 - -# Handling of arguments. -for ac_config_target in $ac_config_targets -do - case $ac_config_target in - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; - "auto.el") CONFIG_FILES="$CONFIG_FILES auto.el" ;; - "latex/Makefile") CONFIG_FILES="$CONFIG_FILES latex/Makefile" ;; - - *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; - esac -done - - -# If the user did not use the arguments to specify the items to instantiate, -# then the envvar interface is used. Set only those that are not. -# We use the long form for the default assignment because of an extremely -# bizarre bug on SunOS 4.1.3. -if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files -fi - -# Have a temporary directory for convenience. Make it in the build tree -# simply because there is no reason against having it here, and in addition, -# creating and moving files from /tmp can sometimes cause problems. -# Hook for its removal unless debugging. -# Note that there is a small window in which the directory will not be cleaned: -# after its creation but before its name has been assigned to `$tmp'. -$debug || -{ - tmp= ac_tmp= - trap 'exit_status=$? - : "${ac_tmp:=$tmp}" - { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status -' 0 - trap 'as_fn_exit 1' 1 2 13 15 -} -# Create a (secure) tmp directory for tmp files. - -{ - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && - test -d "$tmp" -} || -{ - tmp=./conf$$-$RANDOM - (umask 077 && mkdir "$tmp") -} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 -ac_tmp=$tmp - -# Set up the scripts for CONFIG_FILES section. -# No need to generate them if there are no CONFIG_FILES. -# This happens for instance with `./config.status config.h'. -if test -n "$CONFIG_FILES"; then - - -ac_cr=`echo X | tr X '\015'` -# On cygwin, bash can eat \r inside `` if the user requested igncr. -# But we know of no other shell where ac_cr would be empty at this -# point, so we can use a bashism as a fallback. -if test "x$ac_cr" = x; then - eval ac_cr=\$\'\\r\' -fi -ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` -if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then - ac_cs_awk_cr='\\r' -else - ac_cs_awk_cr=$ac_cr -fi - -echo 'BEGIN {' >"$ac_tmp/subs1.awk" && -_ACEOF - - -{ - echo "cat >conf$$subs.awk <<_ACEOF" && - echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && - echo "_ACEOF" -} >conf$$subs.sh || - as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 -ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - . ./conf$$subs.sh || - as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 - - ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` - if test $ac_delim_n = $ac_delim_num; then - break - elif $ac_last_try; then - as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done -rm -f conf$$subs.sh - -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && -_ACEOF -sed -n ' -h -s/^/S["/; s/!.*/"]=/ -p -g -s/^[^!]*!// -:repl -t repl -s/'"$ac_delim"'$// -t delim -:nl -h -s/\(.\{148\}\)..*/\1/ -t more1 -s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ -p -n -b repl -:more1 -s/["\\]/\\&/g; s/^/"/; s/$/"\\/ -p -g -s/.\{148\}// -t nl -:delim -h -s/\(.\{148\}\)..*/\1/ -t more2 -s/["\\]/\\&/g; s/^/"/; s/$/"/ -p -b -:more2 -s/["\\]/\\&/g; s/^/"/; s/$/"\\/ -p -g -s/.\{148\}// -t delim -' >$CONFIG_STATUS || ac_write_fail=1 -rm -f conf$$subs.awk -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -_ACAWK -cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && - for (key in S) S_is_set[key] = 1 - FS = "" - -} -{ - line = $ 0 - nfields = split(line, field, "@") - substed = 0 - len = length(field[1]) - for (i = 2; i < nfields; i++) { - key = field[i] - keylen = length(key) - if (S_is_set[key]) { - value = S[key] - line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) - len += length(value) + length(field[++i]) - substed = 1 - } else - len += 1 + keylen - } - - print line -} - -_ACAWK -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then - sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" -else - cat -fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ - || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 -_ACEOF - -# VPATH may cause trouble with some makes, so we remove sole $(srcdir), -# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and -# trailing colons and then remove the whole line if VPATH becomes empty -# (actually we leave an empty line to preserve line numbers). -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ -h -s/// -s/^/:/ -s/[ ]*$/:/ -s/:\$(srcdir):/:/g -s/:\${srcdir}:/:/g -s/:@srcdir@:/:/g -s/^:*// -s/:*$// -x -s/\(=[ ]*\).*/\1/ -G -s/\n// -s/^[^=]*=[ ]*$// -}' -fi - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -fi # test -n "$CONFIG_FILES" - - -eval set X " :F $CONFIG_FILES " -shift -for ac_tag -do - case $ac_tag in - :[FHLC]) ac_mode=$ac_tag; continue;; - esac - case $ac_mode$ac_tag in - :[FHL]*:*);; - :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; - :[FH]-) ac_tag=-:-;; - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; - esac - ac_save_IFS=$IFS - IFS=: - set x $ac_tag - IFS=$ac_save_IFS - shift - ac_file=$1 - shift - - case $ac_mode in - :L) ac_source=$1;; - :[FH]) - ac_file_inputs= - for ac_f - do - case $ac_f in - -) ac_f="$ac_tmp/stdin";; - *) # Look for the file first in the build tree, then in the source tree - # (if the path is not absolute). The absolute path cannot be DOS-style, - # because $ac_f cannot contain `:'. - test -f "$ac_f" || - case $ac_f in - [\\/$]*) false;; - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; - esac || - as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; - esac - case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac - as_fn_append ac_file_inputs " '$ac_f'" - done - - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated by config.status. */ - configure_input='Generated from '` - $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' - `' by configure.' - if test x"$ac_file" != x-; then - configure_input="$ac_file. $configure_input" - { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 -$as_echo "$as_me: creating $ac_file" >&6;} - fi - # Neutralize special characters interpreted by sed in replacement strings. - case $configure_input in #( - *\&* | *\|* | *\\* ) - ac_sed_conf_input=`$as_echo "$configure_input" | - sed 's/[\\\\&|]/\\\\&/g'`;; #( - *) ac_sed_conf_input=$configure_input;; - esac - - case $ac_tag in - *:-:* | *:-) cat >"$ac_tmp/stdin" \ - || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; - esac - ;; - esac - - ac_dir=`$as_dirname -- "$ac_file" || -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - as_dir="$ac_dir"; as_fn_mkdir_p - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - - case $ac_mode in - :F) - # - # CONFIG_FILE - # - - case $INSTALL in - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; - esac -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -# If the template does not know about datarootdir, expand it. -# FIXME: This hack should be removed a few years after 2.60. -ac_datarootdir_hack=; ac_datarootdir_seen= -ac_sed_dataroot=' -/datarootdir/ { - p - q -} -/@datadir@/p -/@docdir@/p -/@infodir@/p -/@localedir@/p -/@mandir@/p' -case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in -*datarootdir*) ac_datarootdir_seen=yes;; -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 -$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 - ac_datarootdir_hack=' - s&@datadir@&$datadir&g - s&@docdir@&$docdir&g - s&@infodir@&$infodir&g - s&@localedir@&$localedir&g - s&@mandir@&$mandir&g - s&\\\${datarootdir}&$datarootdir&g' ;; -esac -_ACEOF - -# Neutralize VPATH when `$srcdir' = `.'. -# Shell code in configure.ac might set extrasub. -# FIXME: do we really want to maintain this feature? -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -ac_sed_extra="$ac_vpsub -$extrasub -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -:t -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s|@configure_input@|$ac_sed_conf_input|;t t -s&@top_builddir@&$ac_top_builddir_sub&;t t -s&@top_build_prefix@&$ac_top_build_prefix&;t t -s&@srcdir@&$ac_srcdir&;t t -s&@abs_srcdir@&$ac_abs_srcdir&;t t -s&@top_srcdir@&$ac_top_srcdir&;t t -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t -s&@builddir@&$ac_builddir&;t t -s&@abs_builddir@&$ac_abs_builddir&;t t -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t -s&@INSTALL@&$ac_INSTALL&;t t -$ac_datarootdir_hack -" -eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ - >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 - -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && - { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ - "$ac_tmp/out"`; test -z "$ac_out"; } && - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined" >&5 -$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined" >&2;} - - rm -f "$ac_tmp/stdin" - case $ac_file in - -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; - *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; - esac \ - || as_fn_error $? "could not create $ac_file" "$LINENO" 5 - ;; - - - - esac - -done # for ac_tag - - -as_fn_exit 0 -_ACEOF -ac_clean_files=$ac_clean_files_save - -test $ac_write_fail = 0 || - as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 - - -# configure is writing to config.log, and then calls config.status. -# config.status does its own redirection, appending to config.log. -# Unfortunately, on DOS this fails, as config.log is still kept open -# by configure, so config.status won't be able to write to it; its -# output is simply discarded. So we exec the FD to /dev/null, -# effectively closing config.log, so it can be properly (re)opened and -# appended to by config.status. When coming back to configure, we -# need to make the FD available again. -if test "$no_create" != yes; then - ac_cs_success=: - ac_config_status_args= - test "$silent" = yes && - ac_config_status_args="$ac_config_status_args --quiet" - exec 5>/dev/null - $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false - exec 5>>config.log - # Use ||, not &&, to avoid exiting from the if with $? = 1, which - # would make configure fail if this is the last instruction. - $ac_cs_success || as_fn_exit 1 -fi -if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 -$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} -fi - -cat >&2 <.*file[{]\\([^}.]*\\.[sdc][tef][yfg]\\)[}].*/\\1/p' latex/preview.dtx`] -# Replace newlines with spaces. -TEXMFGEN="`echo ${TEXMFGEN}`" -AC_SUBST(TEXMFGEN) - -AC_PATH_PROG_REQUIRED(TEX, tex, NONE) - -TEX_PATH_TEXMFDIR - -if test "x${texmfdir}" = "xno" -then - packagetexstyles="${packagedatadir}/latex" - AC_LISPIFY_DIR(packagetexstyles,"${previewstartfile}") - lisppackagetexstyles="(defvar preview-TeX-style-dir ${lisppackagetexstyles})" - test "X${TEXHASH}" = X && TEXHASH=: -else - lisppackagetexstyles= -fi -AC_SUBST(lisppackagetexstyles) - -# Be very careful about assuming things about the available hash programs -# MiKTeX comes with a braindead link to mktexlsr, apparently, so first -# try the regular utility from them. -AC_ARG_VAR(TEXHASH,[command to update the TeX filename database. -Set to : to skip updating the database on installation. -This is the default for --without-texmf-dir]) - -if test "X${TEXHASH}" = "X" -then - AC_PATH_PROG(TEXHASH, texhash) - AC_CHECK_PROG(TEXHASH, initexmf, initexmf -u) - if test "X${TEXHASH}" = X - then - AC_PATH_PROGS(TEXHASH, mktexlsr MakeTeXls-R, :) - fi -fi - -AC_MSG_CHECKING([[for glaring installation conflicts]]) -exppackagelispdir="$packagelispdir" -AC_FULL_EXPAND(exppackagelispdir) -exppreviewstartfile="$previewstartfile" -AC_FULL_EXPAND(exppreviewstartfile) - -EMACS_LISP(shadows,[[ - (concat - (and (setq tmp (locate-library \"preview.elc\")) - (not (string= (file-truename tmp) - (file-truename (expand-file-name \"preview.elc\" - packagelispdir)))) - (format \"Conflicting previous installation in \`%s' found!\n\" - (file-name-directory tmp))) - (and (setq tmp (locate-library \"preview-latex.el\")) - (not (string= (file-truename tmp) - (file-truename previewstartfile))) - (format \"Conflicting previous startup file \`%s' found!\n\" tmp)))]],, - [[packagelispdir previewstartfile]],[["${exppackagelispdir}" "${exppreviewstartfile}"]]) -if test "NONE${shadows}" != NONE -then - conflictsmsg="Conflicts with previous installations have been detected. -Please fix them before continuing. -" - AC_MSG_RESULT([[ouch! -]]) -AC_MSG_WARN([[${shadows} -]]) -else - conflictsmsg= - AC_MSG_RESULT([[probably none]]) -fi - - -AC_SHELL_QUOTIFY(texmfdir) -AC_SHELL_QUOTIFY(prefix) -AC_SHELL_QUOTIFY(exec_prefix) -AC_SHELL_QUOTIFY(libdir) -AC_SHELL_QUOTIFY(previewtexmfdir) -AC_SHELL_QUOTIFY(previewdocdir) -AC_SHELL_QUOTIFY(packagedir) -AC_SHELL_QUOTIFY(packagelispdir) -AC_SHELL_QUOTIFY(previewstartfile) -AC_SHELL_QUOTIFY(lispdir) -AC_SHELL_QUOTIFY(packagedatadir) -AC_SHELL_QUOTIFY(auctexdir) -AC_SHELL_QUOTIFY(datadir) -AC_SHELL_QUOTIFY(GS) -AC_SHELL_QUOTIFY(TEXHASH) -AC_SHELL_QUOTIFY(EMACS) -AC_SHELL_QUOTIFY(TEX) -AC_SHELL_QUOTIFY(LATEX) -AC_SHELL_QUOTIFY(PDFLATEX) - -AC_OUTPUT(Makefile auto.el latex/Makefile) -cat >&2 < - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU General Public License is a free, copyleft license for -software and other kinds of works. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -the GNU General Public License is intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. We, the Free Software Foundation, use the -GNU General Public License for most of our software; it applies also to -any other work released this way by its authors. You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - To protect your rights, we need to prevent others from denying you -these rights or asking you to surrender the rights. Therefore, you have -certain responsibilities if you distribute copies of the software, or if -you modify it: responsibilities to respect the freedom of others. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must pass on to the recipients the same -freedoms that you received. You must make sure that they, too, receive -or can get the source code. And you must show them these terms so they -know their rights. - - Developers that use the GNU GPL protect your rights with two steps: -(1) assert copyright on the software, and (2) offer you this License -giving you legal permission to copy, distribute and/or modify it. - - For the developers' and authors' protection, the GPL clearly explains -that there is no warranty for this free software. For both users' and -authors' sake, the GPL requires that modified versions be marked as -changed, so that their problems will not be attributed erroneously to -authors of previous versions. - - Some devices are designed to deny users access to install or run -modified versions of the software inside them, although the manufacturer -can do so. This is fundamentally incompatible with the aim of -protecting users' freedom to change the software. The systematic -pattern of such abuse occurs in the area of products for individuals to -use, which is precisely where it is most unacceptable. Therefore, we -have designed this version of the GPL to prohibit the practice for those -products. If such problems arise substantially in other domains, we -stand ready to extend this provision to those domains in future versions -of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. -States should not allow patents to restrict development and use of -software on general-purpose computers, but in those that do, we wish to -avoid the special danger that patents applied to a free program could -make it effectively proprietary. To prevent this, the GPL assures that -patents cannot be used to render the program non-free. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Use with the GNU Affero General Public License. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU Affero General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the special requirements of the GNU Affero General Public License, -section 13, concerning interaction through a network will apply to the -combination as such. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If the program does terminal interaction, make it output a short -notice like this when it starts in an interactive mode: - - Copyright (C) - This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, your program's commands -might be different; for a GUI interface, you would use an "about box". - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU GPL, see -. - - The GNU General Public License does not permit incorporating your program -into proprietary programs. If your program is a subroutine library, you -may consider it more useful to permit linking proprietary applications with -the library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. But first, please read -. diff -Nru auctex-11.88/preview/images/prverr16.xpm auctex-11.90/preview/images/prverr16.xpm --- auctex-11.88/preview/images/prverr16.xpm 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/preview/images/prverr16.xpm 1970-01-01 00:00:00.000000000 +0000 @@ -1,31 +0,0 @@ -/* XPM */ -static char *noway16[] = { -/* columns rows colors chars-per-pixel */ -"16 16 9 1", -" c red", -". c #FD0D0D", -"X c #FA1C1C", -"o c #F52D2D", -"O c #FB5B5B", -"+ c #FC6060", -"@ c #FFBBBB", -"# c #FEFEFE", -"$ c None", -/* pixels */ -"$$$$$ XXXX $$$$$", -"$$$X. .X$$$", -"$$o o$$", -"$X. .X$", -"$. .$", -" ", -"O@@@@@@@@@@@@@@O", -"+##############+", -"+##############+", -"O@@@@@@@@@@@@@@O", -" ", -"$. .$", -"$X. .X$", -"$$o o$$", -"$$$X. .X$$$", -"$$$$$ XXXX $$$$$" -}; diff -Nru auctex-11.88/preview/images/prverr20.xpm auctex-11.90/preview/images/prverr20.xpm --- auctex-11.88/preview/images/prverr20.xpm 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/preview/images/prverr20.xpm 1970-01-01 00:00:00.000000000 +0000 @@ -1,35 +0,0 @@ -/* XPM */ -static char *noway20[] = { -/* columns rows colors chars-per-pixel */ -"20 20 9 1", -" c red", -". c #FF0404", -"X c #FD0F0F", -"o c #F91919", -"O c #F82828", -"+ c #F33636", -"@ c #ED4A4A", -"# c #FEFEFE", -"$ c None", -/* pixels */ -"$$$$$$@+OXXO+@$$$$$$", -"$$$$OO. .OO$$$$", -"$$$@. .@$$$", -"$$@. .@$$", -"$O. .O$", -"$o o$", -"@. .@", -"+ +", -"o##################o", -"o##################o", -"o##################o", -"o##################o", -"+ +", -"@. .@", -"$o o$", -"$O. .O$", -"$$@. .@$$", -"$$$@. .@$$$", -"$$$$OO. .OO$$$$", -"$$$$$$@+OXXO+@$$$$$$" -}; diff -Nru auctex-11.88/preview/images/prverr24.xbm auctex-11.90/preview/images/prverr24.xbm --- auctex-11.88/preview/images/prverr24.xbm 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/preview/images/prverr24.xbm 1970-01-01 00:00:00.000000000 +0000 @@ -1,9 +0,0 @@ -#define wutz_width 24 -#define wutz_height 24 -static unsigned char wutz_bits[] = { - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0xc0, 0xff, 0x03, 0xf0, 0xff, 0x0f, - 0xf8, 0xff, 0x1f, 0xf8, 0xff, 0x1f, 0xfc, 0xff, 0x3f, 0xfc, 0xff, 0x3f, - 0xfe, 0xff, 0x7f, 0x02, 0x00, 0x40, 0x01, 0x00, 0x80, 0x01, 0x00, 0x80, - 0x01, 0x00, 0x80, 0x01, 0x00, 0x80, 0x02, 0x00, 0x40, 0xfe, 0xff, 0x7f, - 0xfc, 0xff, 0x3f, 0xfc, 0xff, 0x3f, 0xf8, 0xff, 0x1f, 0xf8, 0xff, 0x1f, - 0xf0, 0xff, 0x0f, 0xc0, 0xff, 0x03, 0x00, 0xff, 0x00, 0x00, 0x00, 0x00 }; diff -Nru auctex-11.88/preview/images/prverr24.xpm auctex-11.90/preview/images/prverr24.xpm --- auctex-11.88/preview/images/prverr24.xpm 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/preview/images/prverr24.xpm 1970-01-01 00:00:00.000000000 +0000 @@ -1,39 +0,0 @@ -/* XPM */ -static char *noway24[] = { -/* columns rows colors chars-per-pixel */ -"24 24 9 1", -" c red", -". c #FF0404", -"X c #FD0C0C", -"o c #F91919", -"O c #F62929", -"+ c #F34C4C", -"@ c #FF9090", -"# c #FEFEFE", -"$ c None", -/* pixels */ -"$$$$$$$$+OOXXOO+$$$$$$$$", -"$$$$$$OX XO$$$$$$", -"$$$$+X X+$$$$", -"$$$+ +$$$", -"$$+ +$$", -"$$X X$$", -"$O O$", -"$X X$", -"+ +", -"O+@@@@@@@@@@@@@@@@@@@@+O", -"o######################o", -"X######################X", -"X######################X", -"o######################o", -"O+@@@@@@@@@@@@@@@@@@@@+O", -"+ +", -"$X X$", -"$O O$", -"$$X X$$", -"$$+ +$$", -"$$$+ +$$$", -"$$$$+X X+$$$$", -"$$$$$$OX XO$$$$$$", -"$$$$$$$$+OOXXOO+$$$$$$$$" -}; diff -Nru auctex-11.88/preview/images/prvtex12.xbm auctex-11.90/preview/images/prvtex12.xbm --- auctex-11.88/preview/images/prvtex12.xbm 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/preview/images/prvtex12.xbm 1970-01-01 00:00:00.000000000 +0000 @@ -1,6 +0,0 @@ -/* Created with The GIMP */ -#define preview12_width 12 -#define preview12_height 12 -static unsigned char preview12_bits[] = { - 0xff, 0x0f, 0x41, 0x08, 0x21, 0x08, 0x6f, 0x0d, 0x35, 0x0a, 0x75, 0x0a, - 0x6b, 0x0b, 0x82, 0x0c, 0x7c, 0x08, 0xf0, 0x08, 0x00, 0x0f, 0x00, 0x00 }; diff -Nru auctex-11.88/preview/images/prvtex12.xpm auctex-11.90/preview/images/prvtex12.xpm --- auctex-11.88/preview/images/prvtex12.xpm 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/preview/images/prvtex12.xpm 1970-01-01 00:00:00.000000000 +0000 @@ -1,32 +0,0 @@ -/* XPM */ -static char * preview12_xpm[] = { -"12 12 17 1", -" c None", -". c #020202", -"+ c #1E1E1A", -"@ c #626256", -"# c #7D7D70", -"$ c #8A8A7A", -"% c #969686", -"& c #A6A692", -"* c #B2B29E", -"= c #46463E", -"- c #BEBEAA", -"; c #1A1A16", -"> c #CECEB2", -", c #363632", -"' c #6E6E62", -") c #0E0E0E", -"! c #52524A", -"............", -".>>>>$*>>>>.", -".>>>>&>>>>>.", -".'.,@+##&$%.", -".>)>'#>>&!>.", -".>=%#%%>@&>.", -"..,@>*>-@&>=", -" # #,>>#-%%.", -" . @,%>>>>.", -" . !;#>>>.", -" . . ,;.", -" . .. .."}; diff -Nru auctex-11.88/preview/images/prvtex16.xbm auctex-11.90/preview/images/prvtex16.xbm --- auctex-11.88/preview/images/prvtex16.xbm 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/preview/images/prvtex16.xbm 1970-01-01 00:00:00.000000000 +0000 @@ -1,7 +0,0 @@ -/* Created with The GIMP */ -#define preview16_width 16 -#define preview16_height 16 -static unsigned char preview16_bits[] = { - 0xff, 0xff, 0x01, 0x81, 0x81, 0x80, 0xbd, 0xad, 0x49, 0xa8, 0xc9, 0x91, - 0x49, 0x90, 0x9e, 0x99, 0x1c, 0xac, 0x7d, 0x84, 0xf1, 0x80, 0xf2, 0x87, - 0x22, 0xfa, 0x24, 0x52, 0x24, 0x5a, 0xc8, 0x94 }; diff -Nru auctex-11.88/preview/images/prvtex16.xpm auctex-11.90/preview/images/prvtex16.xpm --- auctex-11.88/preview/images/prvtex16.xpm 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/preview/images/prvtex16.xpm 1970-01-01 00:00:00.000000000 +0000 @@ -1,36 +0,0 @@ -/* XPM */ -static char * preview16_xpm[] = { -"16 16 17 1", -" c None", -". c #020202", -"+ c #1A1A16", -"@ c #636357", -"# c #6E6E62", -"$ c #828276", -"% c #8A8A7A", -"& c #969686", -"* c #A6A692", -"= c #B2B29E", -"- c #BABAA6", -"; c #363632", -"> c #BEBEAA", -", c #52524A", -"' c #CECEB2", -") c #46463E", -"! c #7A7A6E", -"................", -".''''''>@''''''.", -".''''''%>''''''.", -".'!..#*;,=#*'#=.", -".''.''!*>''&=@'.", -".''.''#@>''>)='.", -".'',,'#!@>'&@''.", -" .;@;''*>'')%''.", -" -$$;'''''%!>@=.", -". &$@;&'''*''>'.", -". @,+$'''''''.", -" . ...;;;+''''.", -" . . . .....", -" . . . . . ", -" . . . .. . ", -" . .. . . ."}; diff -Nru auctex-11.88/preview/images/prvtex20.xpm auctex-11.90/preview/images/prvtex20.xpm --- auctex-11.88/preview/images/prvtex20.xpm 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/preview/images/prvtex20.xpm 1970-01-01 00:00:00.000000000 +0000 @@ -1,40 +0,0 @@ -/* XPM */ -static char * preview20_xpm[] = { -"20 20 17 1", -" c None", -". c #000200", -"+ c #151614", -"@ c #20211F", -"# c #31312A", -"$ c #3D3C35", -"% c #474439", -"& c #504F48", -"* c #626054", -"= c #727063", -"- c #7E7E6F", -"; c #888A7A", -"> c #969987", -", c #A9A992", -"' c #B8B8A1", -") c #C6C5AA", -"! c #CFCDB1", -" .@@@@@@@@@@@@@@@@. ", -" %!!!!!!!''!!!!!!!% ", -" %!!!!!!)&>!!!!!!!% ", -" %!!!!!!>*'!!!!!!!% ", -" %!!!!!)&*')')!!''% ", -" @&@+#*&*=#;&*)'%-% ", -" %!,>!,=;,)!)=,-$'% ", -" %!,>!'=&-!!!'*#;!% ", -" %!,-),=>','!!$&)!% ", -" %!)$$'&&=%)!,+;!!% ", -" %!','!);;!!)%**!!% ", -" $;*$!!!!!!!;%'->)% ", -" *=$!!!!!!)*-!'*;% ", -" @>;*='!!!!),)!!''% ", -" . *&&,!!!!!!!!!!% ", -" ..+##@>,,,,,,,$ ", -" . . . ......... ", -" . . . ... . . ", -" . . . . ... . ", -" . . "}; diff -Nru auctex-11.88/preview/images/prvtex24.xbm auctex-11.90/preview/images/prvtex24.xbm --- auctex-11.88/preview/images/prvtex24.xbm 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/preview/images/prvtex24.xbm 1970-01-01 00:00:00.000000000 +0000 @@ -1,10 +0,0 @@ -/* Created with The GIMP */ -#define preview_width 24 -#define preview_height 24 -static unsigned char preview_bits[] = { - 0xfe, 0xff, 0x7f, 0x02, 0x00, 0x40, 0x02, 0x18, 0x40, 0x02, 0x0c, 0x40, - 0x02, 0x04, 0x40, 0x02, 0x00, 0x50, 0xfe, 0xde, 0x59, 0x32, 0x03, 0x49, - 0x32, 0x0f, 0x4f, 0x32, 0x07, 0x46, 0x32, 0x23, 0x46, 0x62, 0x1e, 0x47, - 0x02, 0x0c, 0x47, 0x02, 0x80, 0x4d, 0x32, 0x80, 0x48, 0x2c, 0xc0, 0x58, - 0x42, 0x00, 0x40, 0xc2, 0x01, 0x40, 0xe4, 0x0e, 0x40, 0x44, 0xf4, 0x7f, - 0x48, 0xa4, 0x24, 0x48, 0xb4, 0x24, 0x90, 0x29, 0x47, 0x10, 0x00, 0x40 }; diff -Nru auctex-11.88/preview/images/prvtex24.xpm auctex-11.90/preview/images/prvtex24.xpm --- auctex-11.88/preview/images/prvtex24.xpm 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/preview/images/prvtex24.xpm 1970-01-01 00:00:00.000000000 +0000 @@ -1,37 +0,0 @@ -/* XPM */ -static char * preview_xpm[] = { -"24 24 10 1", -" c None", -". c #000000", -"+ c #CECEB2", -"@ c #656559", -"# c #818174", -"$ c #B9B9A4", -"% c #969686", -"& c #181815", -"* c #363630", -"= c #53534B", -" ...................... ", -" .++++++++++++++++++++. ", -" .+++++++++@#+++++++++. ", -" .++++++++$.%+++++++++. ", -" .++++++++@#++++++++++. ", -" .+++++++$&@$+$$++++%+. ", -" .@....*#&@=.#@.%++@&+. ", -" .++%%++@#++$++$*+$.#+. ", -" .++%%++%=*#++++##=*++. ", -" .++%%++#@@%+++++*.%++. ", -" .++%@$+@#++%%+++&=+++. ", -" .+++&.+%.@=&+++#.#+++. ", -" .+++$$++$@#++++.@=+++. ", -" .+$**+++++++++@&+=$++. ", -" .*@*++++++++$.%+$*@+. ", -" $##*++++++++#*+++%*+. ", -" . %#@*%++++++++++++++. ", -" . @=&#+++++++++++++. ", -" . ...***&$$++++++++. ", -" . . . ........... ", -" . . . . . . . ", -" . . . .. . . . ", -" . .. . . ... . ", -" . . "}; diff -Nru auctex-11.88/preview/images/prvtex-cap-up.xpm auctex-11.90/preview/images/prvtex-cap-up.xpm --- auctex-11.88/preview/images/prvtex-cap-up.xpm 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/preview/images/prvtex-cap-up.xpm 1970-01-01 00:00:00.000000000 +0000 @@ -1,48 +0,0 @@ -/* XPM */ -static char * preview_cap_up_xpm[] = { -"33 33 12 1", -" c None", -". c #BFBFBF s backgroundToolBarColor", -"+ c #000000 s foregroundToolBarColor", -"! c #000000", -"@ c #FFFFFF", -"# c #7C7C7C", -"$ c #A0A0A0", -"% c #E5E5E5", -"& c #BABABA", -"* c #1D1D1D", -"= c #424242", -"- c #676767", -".................................", -".....!!!!!!!!!!!!!!!!!!!!!!......", -".....!@@@@@@@@@@@@@@@@@@@@!......", -".....!@@@@@@@@@#$@@@@@@@@@!......", -".....!@@@@@@@@%!&@@@@@@@@@!......", -".....!@@@@@@@@#$@@@@@@@@@@!......", -".....!@@@@@@@%*#%@%%@@@@&@!......", -".....!#!!!!=$*#-!$#!&@@#*@!......", -".....!@@&&@@#$@@%@@%=@%!$@!......", -".....!@@&&@@&-=$@@@@$$-=@@!......", -".....!@@&&@@$##&@@@@@=!&@@!......", -".....!@@&#%@#$@@&&@@@*-@@@!......", -".....!@@@*!@&!#-*@@@$!$@@@!......", -".....!@@@%%@@%#$@@@@!#-@@@!......", -".....!@%==@@@@@@@@@#*@-%@@!......", -"......!=#=@@@@@@@@%!&@%=#@!......", -"......%$$=@@@@@@@@$=@@@&=@!......", -".....#.&$#=&@@@@@@@@@@@@@@!......", -".....#...#-*$@@@@@@@@@@@@@!......", -"......#..###===*%%@@@@@@@@!......", -"......#...#...#.!!!!!!!!!!!......", -".......#..#...#..#.#..#..#.......", -".......#..#...#.##.#..#..#.......", -"........#..##..#.#..###...#......", -"........#.................#......", -"..+++............................", -"..+..+.+.+.+..+..+.+..+..+.+.+...", -"..+..+.++.+.+.+..+...+.+.+.+.+...", -"..+++..+..+++.+..+.+.+++.+.+.+...", -"..+....+..+...+.+..+.+....+.+....", -"..+....+...++..+...+..++..+.+....", -".................................", -"................................."}; diff -Nru auctex-11.88/preview/images/prvwrk12.xpm auctex-11.90/preview/images/prvwrk12.xpm --- auctex-11.88/preview/images/prvwrk12.xpm 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/preview/images/prvwrk12.xpm 1970-01-01 00:00:00.000000000 +0000 @@ -1,32 +0,0 @@ -/* XPM */ -static char * nwork12_xpm[] = { -"12 12 17 1", -" c None", -". c #0F110E", -"+ c #161815", -"@ c #1F211E", -"# c #383937", -"$ c #6A6C69", -"% c #818380", -"& c #E46767", -"* c #FF6467", -"= c #959794", -"- c #DC9897", -"; c #ADAFAC", -"> c #FF9797", -", c #C6C8C5", -"' c #FFCBCA", -") c #E4E6E3", -"! c #FBFDFA", -" >> ", -" '**' ", -" >>>> ", -" '*''*' ", -" >>!)>> ", -" '*,==,*' ", -" >>$@=!>> ", -" '*';#;!'*' ", -" >>!$$=!,-> ", -"'*'=)%!%.@&'", -">>!=!=;..+$>", -" ********** "}; diff -Nru auctex-11.88/preview/images/prvwrk14.xpm auctex-11.90/preview/images/prvwrk14.xpm --- auctex-11.88/preview/images/prvwrk14.xpm 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/preview/images/prvwrk14.xpm 1970-01-01 00:00:00.000000000 +0000 @@ -1,34 +0,0 @@ -/* XPM */ -static char * nwork14_xpm[] = { -"14 14 17 1", -" c None", -". c #000100", -"+ c #161816", -"@ c #222421", -"# c #2A2C29", -"$ c #363836", -"% c #525451", -"& c #686A67", -"* c #828481", -"= c #FF6467", -"- c #949693", -"; c #A4A6A3", -"> c #FF9797", -", c #B8BAB7", -"' c #D8D6D4", -") c #FFCBCA", -"! c #FAFDF9", -" >> ", -" )==) ", -" >>>> ", -" )=))=) ", -" >>!!>> ", -" )=)!!)=) ", -" >>''@!>> ", -" )=&%#!!)=) ", -" >>-@$!!!>> ", -" )=);%&!!!)=) ", -" >>!&&;,!&,>> ", -")=)*',,'@.+'=)", -">>!-!';$+++%>>", -" ============ "}; diff -Nru auctex-11.88/preview/images/prvwrk16.xpm auctex-11.90/preview/images/prvwrk16.xpm --- auctex-11.88/preview/images/prvwrk16.xpm 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/preview/images/prvwrk16.xpm 1970-01-01 00:00:00.000000000 +0000 @@ -1,36 +0,0 @@ -/* XPM */ -static char * nwork16_xpm[] = { -"16 16 17 1", -" c None", -". c #040703", -"+ c #0E100D", -"@ c #262825", -"# c #434542", -"$ c #4C4E4B", -"% c #5B5D5A", -"& c #70726F", -"* c #868885", -"= c #D86467", -"- c #FF6467", -"; c #A69F9F", -"> c #FF9797", -", c #B6B8B5", -"' c #C7C9C6", -") c #D5D7D4", -"! c #FAFCF9", -" >> ", -" -- ", -" >--> ", -" ->>- ", -" >-!!-> ", -" ->!!>- ", -" >-!!&*-> ", -" -;#@;)>- ", -" >-#&.;!!-> ", -" ->!+@,!!>- ", -" >-!&@%;!!!-> ", -" ->)#,%,,&.;- ", -" >-!%'!#!$..+=> ", -" ->!&!!&&..++#- ", -">->>>>>>>>>>>>->", -" >>>>>>>>>>>>>> "}; diff -Nru auctex-11.88/preview/images/prvwrk20.xpm auctex-11.90/preview/images/prvwrk20.xpm --- auctex-11.88/preview/images/prvwrk20.xpm 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/preview/images/prvwrk20.xpm 1970-01-01 00:00:00.000000000 +0000 @@ -1,40 +0,0 @@ -/* XPM */ -static char * nwork20_xpm[] = { -"20 20 17 1", -" c None", -". c #000100", -"+ c #262825", -"@ c #2B2D2A", -"# c #444643", -"$ c #575956", -"% c #726D6B", -"& c #D16668", -"* c #FF6467", -"= c #979794", -"- c #E4999A", -"; c #B1B3B0", -"> c #FF9797", -", c #C9CBC8", -"' c #D3D5D2", -") c #E5E7E3", -"! c #FDFFFB", -" ** ", -" >**> ", -" **** ", -" >****> ", -" **>>** ", -" >**!!**> ", -" **>!!>** ", -" >**!!)!**> ", -" **>!'.)>** ", -" >*%$$;,!!**> ", -" *&=;.=!!!>** ", -" >*&;@@=!!!!**> ", -" **>,$=;!!!!>** ", -" >**)#%;=!!!!!**> ", -" **>=,;=';!,#;>** ", -" >**)%!)%!!=+..,**> ", -" **>='!)%!;....@-** ", -">**!;!!!='#####$=**>", -"********************", -"********************"}; diff -Nru auctex-11.88/preview/images/prvwrk24.xbm auctex-11.90/preview/images/prvwrk24.xbm --- auctex-11.88/preview/images/prvwrk24.xbm 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/preview/images/prvwrk24.xbm 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -/* ©2002 David Kastrup, GPL */ -#define prevwork_width 24 -#define prevwork_height 24 -#define prevwork_x_hot 0 -#define prevwork_y_hot 20 -static unsigned char prevwork_bits[] = { - 0x00, 0x3c, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x7e, 0x00, - 0x00, 0xe7, 0x00, 0x00, 0xe7, 0x00, 0x80, 0xc3, 0x01, 0x80, 0xc3, 0x01, - 0xc0, 0x81, 0x03, 0xc0, 0x81, 0x03, 0xe0, 0x30, 0x07, 0xe0, 0x3f, 0x07, - 0x70, 0x0d, 0x0e, 0x70, 0x0d, 0x0e, 0x38, 0x0e, 0x1c, 0x38, 0x0f, 0x1c, - 0x1c, 0x1f, 0x38, 0x9c, 0xa5, 0x3b, 0x8e, 0xc4, 0x77, 0xce, 0xe4, 0x7f, - 0x47, 0xec, 0xef, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; diff -Nru auctex-11.88/preview/images/prvwrk24.xpm auctex-11.90/preview/images/prvwrk24.xpm --- auctex-11.88/preview/images/prvwrk24.xpm 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/preview/images/prvwrk24.xpm 1970-01-01 00:00:00.000000000 +0000 @@ -1,44 +0,0 @@ -/* XPM */ -static char * nwork24_xpm[] = { -"24 24 17 1", -" c None", -". c #000100", -"+ c #141513", -"@ c #212320", -"# c #313230", -"$ c #3B3D3A", -"% c #484947", -"& c #626461", -"* c #8C8E8B", -"= c #FF6467", -"- c #B6AFAC", -"; c #FF9696", -"> c #C4C6C3", -", c #D0D2CE", -"' c #FFCBCA", -") c #DDDFDC", -"! c #FBFDFA", -" ;; ", -" ;==; ", -" ==== ", -" ;====; ", -" ==;;== ", -" ;==''==; ", -" ==;!!;== ", -" ;=='!!'==; ", -" ==;!!!!;== ", -" ;=='!!>,'==; ", -" ==;!!!.%!;== ", -" ;=;$#$*,)!'==; ", -" ==&,*..!!!!;== ", -" ;==#,@.$!!!!'==; ", -" ==;!&.&&!!!!!;== ", -" ;==')*&*&!!!!!'==; ", -" ==;!*#&>&!!!!!!;== ", -" ;==')$)&->-!!)&*'==; ", -" ==;!&-!,&!!-,%..*;== ", -" ;==',%!!)$!!>#....-==; ", -" ==;!&>!!)@!>+.....+;== ", -";=='!-!!!!*!&%%%%%&&*==;", -"========================", -" ====================== "}; diff -Nru auctex-11.88/preview/latex/bootstrap.ins auctex-11.90/preview/latex/bootstrap.ins --- auctex-11.88/preview/latex/bootstrap.ins 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/preview/latex/bootstrap.ins 1970-01-01 00:00:00.000000000 +0000 @@ -1,4 +0,0 @@ -\input docstrip -\askforoverwritefalse -\generate{\file{preview-mk.ins}{\from{preview.dtx}{installer,make}}} -\endbatchfile diff -Nru auctex-11.88/preview/latex/Makefile.in auctex-11.90/preview/latex/Makefile.in --- auctex-11.88/preview/latex/Makefile.in 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/preview/latex/Makefile.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,91 +0,0 @@ -# Makefile for AUCTeX - -# Maintainer: auctex-devel@gnu.org - -# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. - -# This file is part of AUCTeX. - -# AUCTeX is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3, or (at your option) -# any later version. - -# AUCTeX is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with AUCTeX; see the file COPYING. If not, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, -# MA 02110-1301, USA. - -@SET_MAKE@ -LATEX=@LATEX@ -PDFLATEX=@PDFLATEX@ -TEX=@TEX@ -TEXHASH=@TEXHASH@ - -prefix=@prefix@$(null) -datarootdir=@datarootdir@$(null) -datadir=@datadir@$(null) -exec_prefix=@exec_prefix@$(null) -libdir=@libdir@$(null) -previewtexmfdir = @previewtexmfdir@$(null) -previewdocdir = @previewdocdir@$(null) -TEXMFGEN = @TEXMFGEN@ - -DESTDIR= -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -MKINSTALLDIRS = ../../mkinstalldirs - -all: $(TEXMFGEN) preview.drv preview-mk.ins preview.dvi preview.pdf - -install: install-texmf install-texmf-doc - -install-texmf: $(TEXMFGEN) - -$(MKINSTALLDIRS) $(DESTDIR)$(previewtexmfdir) - for x in $(TEXMFGEN) ; do \ - echo $(INSTALL_DATA) $$x $(DESTDIR)$(previewtexmfdir) ; \ - $(INSTALL_DATA) $$x $(DESTDIR)$(previewtexmfdir) ; \ - done -# Isn't the texmfdir directory without "tex/latex/preview" available? - @ texmfdir="$(DESTDIR)$(previewtexmfdir)/../../.."; \ - if [ -r "$$texmfdir"/ls-R ]; then \ - $(TEXHASH) "$$texmfdir"; \ - else \ - echo "Warning: Cannot update ls-R database in $$texmfdir"; \ - sleep 2; \ - fi - -install-texmf-doc: preview.dvi - -$(MKINSTALLDIRS) $(DESTDIR)$(previewdocdir) - $(INSTALL_DATA) preview.dvi $(DESTDIR)$(previewdocdir) - -preview-mk.ins: preview.dtx bootstrap.ins - $(TEX) '\nonstopmode \input bootstrap.ins' - -#only for standalone preview.sty package: -preview.ins: preview.dtx - $(TEX) '\nonstopmode\def\jobname{.ins}\input docstrip ' \ - '\generate{\file{preview.ins}{\from{preview.dtx}{installer}}}' \ - '\endbatchfile' - -$(TEXMFGEN) preview.drv: preview.dtx preview-mk.ins - $(TEX) '\nonstopmode \input preview-mk.ins' - -preview.dvi: preview.drv preview.dtx preview.sty - $(LATEX) '\nonstopmode \input preview.drv' - $(LATEX) '\nonstopmode \input preview.drv' - $(LATEX) '\nonstopmode \input preview.drv' - -preview.pdf: preview.drv preview.dtx preview.sty - $(PDFLATEX) '\nonstopmode \AtBeginDocument{\OnlyDescription}\input{preview.drv}' - $(PDFLATEX) '\nonstopmode \AtBeginDocument{\OnlyDescription}\input{preview.drv}' - $(PDFLATEX) '\nonstopmode \AtBeginDocument{\OnlyDescription}\input{preview.drv}' - -clean: - rm -f *~ *.aux *.dvi *.drv *.log - rm -f $(TEXMFGEN) preview.ins preview-mk.ins diff -Nru auctex-11.88/preview/latex/preview.dtx auctex-11.90/preview/latex/preview.dtx --- auctex-11.88/preview/latex/preview.dtx 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/preview/latex/preview.dtx 1970-01-01 00:00:00.000000000 +0000 @@ -1,1872 +0,0 @@ -% \iffalse -%% The preview style for extracting previews from LaTeX documents. -%% Developed as part of AUCTeX . -% -% Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, -% 2010 Free Software Foundation -% -% This program is free software; you can redistribute it and/or modify -% it under the terms of the GNU General Public License as published by -% the Free Software Foundation; either version 3 of the License, or -% (at your option) any later version. -% -% This program is distributed in the hope that it will be useful, -% but WITHOUT ANY WARRANTY; without even the implied warranty of -% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -% GNU General Public License for more details. -% -% You should have received a copy of the GNU General Public License -% along with this program; if not, write to the -% Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, -% Boston, MA 02110-1301 USA -% \fi -% \CheckSum{1758} -% \GetFileInfo{preview.sty} -% \date{\filedate} -% \author{David Kastrup\thanks{\texttt{dak@gnu.org}}} -% \title{The \texttt{preview} Package for \LaTeX\\Version \fileversion} -% \maketitle -% \section{Introduction} -% The main purpose of this package is the extraction of certain -% environments (most notably displayed formulas) from \LaTeX\ sources -% as graphics. This works with DVI files postprocessed by either -% Dvips and Ghostscript or dvipng, but it also works when you are -% using PDF\TeX\ for generating PDF files (usually also postprocessed -% by Ghostscript). -% -% Current uses of the package include the \previewlatex\ package for -% WYSIWYG functionality in the AUC\TeX\ editing environment, -% generation of previews in LyX, as part of the operation of the -% ps4pdf package, the tbook XML system and some other tools. -% -% Producing EPS files with Dvips and its derivatives using the -% \texttt{-E} option is not a good alternative: People make do by -% fiddling around with |\thispagestyle{empty}| and hoping for the best -% (namely, that the specified contents will indeed fit on single -% pages), and then trying to guess the baseline of the resulting code -% and stuff, but this is at best dissatisfactory. The preview package -% provides an easy way to ensure that exactly one page per request -% gets shipped, with a well-defined baseline and no page decorations. -% While you still can use the preview package with the `classic' -% \begin{quote} -% |dvips -E -i| -% \end{quote} -% invocation, there are better ways available that don't rely on Dvips -% not getting confused by PostScript specials. -% -% For most applications, you'll want to make use of the |tightpage| -% option. This will embed the page dimensions into the PostScript or -% PDF code, obliterating the need to use the |-E -i| options to Dvips. -% You can then produce all image files with a single run of -% Ghostscript from a single PDF or PostScript (as opposed to EPS) -% file. -% -% Various options exist that will pass \TeX\ dimensions and other -% information about the respective shipped out material (including -% descender size) into the log file, where external applications might -% make use of it. -% -% The possibility for generating a whole set of graphics with a single -% run of Ghostscript (whether from \LaTeX\ or PDF\LaTeX) increases -% both speed and robustness of applications. It is also feasible to -% use dvipng on a DVI file with the options -% \begin{quote} -% |-picky -noghostscript| -% \end{quote} -% to omit generating any image file that requires Ghostscript, then -% let a script generate all missing files using Dvips/Ghostscript. -% This will usually speed up the process significantly. -% -% \section{Package options} -% The package is included with the customary -% \begin{quote} -% |\usepackage|\oarg{options}|{preview}| -% \end{quote} -% You should usually load this package as the last one, since it -% redefines several things that other packages may also provide. -% -% The following options are available: -% \begin{description} -% \item[|active|] is the most essential option. If this option is not -% specified, the |preview| package will be inactive and the document -% will be typeset as if the |preview| package were not loaded, -% except that all declarations and environments defined by the -% package are still legal but have no effect. This allows defining -% previewing characteristics in your document, and only activating -% them by calling \LaTeX\ as -% \begin{quote} -% \raggedright -% |latex '\PassOptionsToPackage{active}{preview}| |\input|\marg{filename}|'| -% \end{quote} -% \item[|noconfig|] Usually the file |prdefault.cfg| gets loaded -% whenever the |preview| package gets activated. |prdefault.cfg| is -% supposed to contain definitions that can cater for otherwise bad -% results, for example, if a certain document class would otherwise -% lead to trouble. It also can be used to override any settings -% made in this package, since it is loaded at the very end of it. -% In addition, there may be configuration files specific for certain -% |preview| options like |auctex| which have more immediate needs. -% The |noconfig| option suppresses loading of those option files, -% too. -% \item[|psfixbb|] Dvips determines the bounding boxes from the -% material in the DVI file it understands. Lots of PostScript -% specials are not part of that. Since the \TeX\ boxes do not make -% it into the DVI file, but merely characters, rules and specials -% do, Dvips might include far too small areas. The option |psfixbb| -% will include |/dev/null| as a graphic file in the ultimate upper -% left and lower right corner of the previewed box. This will make -% Dvips generate an appropriate bounding box. -% \item[|dvips|] If this option is specified as a class option or to -% other packages, several packages pass things like page size -% information to Dvips, or cause crop marks or draft messages -% written on pages. This seriously hampers the usability of -% previews. If this option is specified, the changes will be undone -% if possible. -% \item[|pdftex|] If this option is set, PDF\TeX\ is assumed as the -% output driver. This mainly affects the |tightpage| option. -% \item[|xetex|] If this option is set, Xe\TeX\ is assumed as the -% output driver. This mainly affects the |tightpage| option. -% \item[|displaymath|] will make all displayed math environments -% subject to preview processing. This will typically be the most -% desired option. -% \item[|floats|] will make all float objects subject to preview -% processing. If you want to be more selective about what floats to -% pass through to a preview, you should instead use the -% \cmd{\PreviewSnarfEnvironment} command on the floats you want to -% have previewed. -% \item[|textmath|] will make all text math subject to previews. -% Since math mode is used throughly inside of \LaTeX\ even for other -% purposes, this works by redefining \cmd\(, \cmd\) -% and |$| and the |math| environment (apparently some people use -% that). Only occurences of these text math delimiters in later -% loaded packages and in the main document will thus be affected. -% \item[|graphics|] will subject all \cmd{\includegraphics} commands -% to a preview. -% \item[|sections|] will subject all section headers to a preview. -% \item[|delayed|] will delay all activations and redefinitions the -% |preview| package makes until |\||begin{document}|. The purpose -% of this is to cater for documents which should be subjected to the -% |preview| package without having been prepared for it. You can -% process such documents with -% \begin{quote} -% |latex '\RequirePackage[active,delayed,|\meta{options}|]{preview}| -% |\input|\marg{filename}|'| -% \end{quote} -% This relaxes the requirement to be loading the |preview| package -% as last package. -% \item[\meta{driver}] loads a special driver file -% |pr|\meta{driver}|.def|. The remaining options are implemented -% through the use of driver files. -% \item[|auctex|] This driver will produce fake error messages at the -% start and end of every preview environment that enable the Emacs -% package \previewlatex\ in connection with AUC\TeX\ to pinpoint -% the exact source location where the previews have originated. -% Unfortunately, there is no other reliable means of passing the -% current \TeX\ input position \emph{in} a line to external -% programs. In order to make the parsing more robust, this option -% also switches off quite a few diagnostics that could be -% misinterpreted. -% -% You should not specify this option manually, since it will only be -% needed by automated runs that want to parse the pseudo error -% messages. Those runs will then use \cmd{\PassOptionsToPackage} in -% order to effect the desired behaviour. In addition, -% |prauctex.cfg| will get loaded unless inhibited by the |noconfig| -% option. This caters for the most frequently encountered -% problematic commands. -% \item[|showlabels|] During the editing process, some people like to -% see the label names in their equations, figures and the like. Now -% if you are using Emacs for editing, and in particular -% \previewlatex, I'd strongly recommend that you check out the -% Ref\TeX\ package which pretty much obliterates the need for this -% kind of functionality. If you still want it, standard \LaTeX\ -% provides it with the |showkeys| package, and there is also the -% less encompassing |showlabels| package. Unfortunately, since -% those go to some pain not to change the page layout and spacing, -% they also don't change |preview|'s idea of the \TeX\ dimensions of -% the involved boxes. So if you are using |preview| for determing -% bounding boxes, those packages are mostly useless. The option -% |showlabels| offers a substitute for them. -% \item[|tightpage|] It is not uncommon to want to use the results of -% |preview| as graphic images for some other application. One -% possibility is to generate a flurry of EPS files with -% \begin{quote} -% |dvips -E -i -Pwww -o| \meta{outputfile}|.000| \meta{inputfile} -% \end{quote} -% However, in case those are to be processed further into graphic -% image files by Ghostscript, this process is inefficient since all -% of those files need to be processed one by one. In addition, it -% is necessary to extract the bounding box comments from the EPS -% files and convert them into page dimension parameters for -% Ghostscript in order to avoid full-page graphics. This is not -% even possible if you wanted to use Ghostscript in a~\emph{single} -% run for generating the files from a single PostScript file, since -% Dvips will in that case leave no bounding box information -% anywhere. -% -% The solution is to use the |tightpage| option. That way a single -% command line like -% \begin{quote} -% \raggedright -% \texttt{gs -sDEVICE=png16m -dTextAlphaBits=4 -r300 -% -dGraphicsAlphaBits=4 -dSAFER -q -dNOPAUSE -% -sOutputFile=\meta{outputfile}\%d.png \meta{inputfile}.ps} -% \end{quote} -% will be able to produce tight graphics from a single PostScript -% file generated with Dvips \emph{without} use of the options -% |-E -i|, in a single run. -% -% The |tightpage| option actually also works when using the |pdftex| -% option and generating PDF files with PDF\TeX. The resulting PDF -% file has separate page dimensions for every page and can directly -% be converted with one run of Ghostscript into image files. -% -% If neither |dvips| or |pdftex| have been specified, the -% corresponding option will get autodetected and invoked. -% -% If you need this in a batch environment where you don't want to -% use |preview|'s automatic extraction facilities, no problem: just -% don't use any of the extraction options, and wrap everything to be -% previewed into |preview| environments. This is how LyX does its -% math previews. -% -% If the pages under the |tightpage| option are just too tight, you -% can adjust by setting the length |\PreviewBorder| to a different -% value by using \cmd{\setlength}. The default value is -% |0.50001bp|, which is half of a usual PostScript point, rounded -% up. If you go below this value, the resulting page size may drop -% below |1bp|, and Ghostscript does not seem to like that. If you -% need finer control, you can adjust the bounding box dimensions -% individually by changing the macro |\PreviewBbAdjust| with the -% help of |\renewcommand|. Its default value is -% \begin{quote} -% \raggedright -% |\newcommand| |\PreviewBbAdjust| -% |{-\PreviewBorder| |-\PreviewBorder| -% |\PreviewBorder| |\PreviewBorder}| -% \end{quote} -% This adjusts the left, lower, right and upper borders by the given -% amount. The macro must contain 4~\TeX\ dimensions after another, -% and you may not omit the units if you specify them explicitly -% instead of by register. PostScript points have the unit~|bp|. -% \item[|lyx|] This option is for the sake of LyX developers. It will -% output a few diagnostics relevant for the sake of LyX' preview -% functionality (at the time of writing, mostly implemented for math -% insets, in versions of LyX starting with 1.3.0). -% \item[|counters|] This writes out diagnostics at the start and the -% end of previews. Only the counters changed since the last output -% get written, and if no counters changed, nothing gets written at -% all. The list consists of counter name and value, both enclosed -% in |{}| braces, followed by a space. The last such pair is -% followed by a colon (|:|) if it is at the start of the preview -% snippet, and by a period (|.|) if it is at the end. The order of -% different diagnostics like this being issued depends on the order -% of the specification of the options when calling the package. -% -% Systems like \previewlatex\ use this for keeping counters accurate -% when single previews are regenerated. -% \item[|footnotes|] This makes footnotes render as previews, and only -% as their footnote symbol. A convenient editing feature inside of -% Emacs. -% \end{description} -% The following options are just for debugging purposes of the package -% and similar to the corresponding \TeX\ commands they allude to: -% \begin{description} -% \item[|tracingall|] causes lots of diagnostic output to appear in -% the log file during the preview collecting phases of \TeX's -% operation. In contrast to the similarly named \TeX\ command, it -% will not switch to |\errorstopmode|, nor will it change the -% setting of |\tracingonline|. -% \item[|showbox|] This option will show the contents of the boxes -% shipped out to the DVI files. It also sets |\showboxbreadth| and -% |\showboxdepth| to their maximum values at the end of loading this -% package, but you may reset them if you don't like that. -% \end{description} -% \section{Provided Commands} -% \DescribeEnv{preview} The |preview| environment causes its contents -% to be set as a single preview image. Insertions like figures and -% footnotes (except those included in minipages) will typically lead -% to error messages or be lost. In case the |preview| package has not -% been activated, the contents of this environment will be typeset -% normally. -% -% \DescribeEnv{nopreview} The |nopreview| environment will cause its -% contents not to undergo any special treatment by the |preview| -% package. When |preview| is active, the contents will be discarded -% like all main text that does not trigger the |preview| hooks. When -% |preview| is not active, the contents will be typeset just like the -% main text. -% -% Note that both of these environments typeset things as usual when -% preview is not active. If you need something typeset conditionally, -% use the \cmd{\ifPreview} conditional for it. -% -% \DescribeMacro{\PreviewMacro} If you want to make a macro like -% \cmd{\includegraphics} (actually, this is what is done by the -% |graphics| option to |preview|) produce a preview image, you put a -% declaration like -% \begin{quote} -% |\PreviewMacro[*[[!]{\includegraphics}| -% \end{quote} -% or, more readable, -% \begin{quote} -% |\PreviewMacro[{*[][]{}}]{\includegraphics}| -% \end{quote} -% into your preamble. The optional argument to \cmd{\PreviewMacro} -% specifies the arguments \cmd{\includegraphics} accepts, since this -% is necessary information for properly ending the preview box. Note -% that if you are using the more readable form, you have to enclose -% the argument in a |[{| and |}]| pair. The inner braces are -% necessary to stop any included |[]| pairs from prematurely ending -% the optional argument, and to make a single |{}| -% denoting an optional argument not get stripped away by \TeX's -% argument parsing. -% -% The letters simply mean -% \begin{description} -% \item[|*|] indicates an optional |*| modifier, as in -% |\includegraphics*|. -% \item[|[|]^^A] -% indicates an optional argument in brackets. This syntax -% is somewhat baroque, but brief. -% \item[{|[]|}] also indicates an optional argument in brackets. Be -% sure to have encluded the entire optional argument specification -% in an additional pair of braces as described above. -% \item[|!|] indicates a mandatory argument. -% \item[|\char`{\char`}|] indicates the same. Again, be sure to have -% that additional level of braces around the whole argument -% specification. -% \item[|?|\meta{delimiter}\marg{true case}\marg{false case}] is a -% conditional. The next character is checked against being equal to -% \meta{delimiter}. If it is, the specification \meta{true case} is -% used for the further parsing, otherwise \meta{false case} will be -% employed. In neither case is something consumed from the input, -% so \marg{true case} will still have to deal with the upcoming -% delimiter. -% \item[|@|\marg{literal sequence}] will insert the given sequence -% literally into the executed call of the command. -% \item[|-|] will just drop the next token. It will probably be most -% often used in the true branch of a |?| specification. -% \item[|\#|\marg{argument}\marg{replacement}] is a transformation -% rule that calls a macro with the given argument and replacement -% text on the rest of the argument list. The replacement is used in -% the executed call of the command. This can be used for parsing -% arbitrary constructs. For example, the |[]| option could manually -% be implemented with the option string |?[{#{[#1]}{[{#1}]}}{}|. -% PStricks users might enjoy this sort of flexibility. -% \item[|:|\marg{argument}\marg{replacement}] is again a -% transformation rule. As opposed to |#|, however, the result of -% the transformation is parsed again. You'll rarely need this. -% \end{description} -% -% There is a second optional argument in brackets that can be used to -% declare any default action to be taken instead. This is mostly for -% the sake of macros that influence numbering: you would want to keep -% their effects in that respect. The default action should use |#1| -% for referring to the original (not the patched) command with the -% parsed options appended. Not specifying a second optional argument -% here is equivalent to specifying~|[#1]|. -% -% \DescribeMacro{\PreviewMacro*} A similar invocation -% \cmd{\PreviewMacro*} simply throws the macro and all of its -% arguments declared in the manner above away. This is mostly useful -% for having things like \cmd{\footnote} not do their magic on their -% arguments. More often than not, you don't want to declare any -% arguments to scan to \cmd{\PreviewMacro*} since you would want the -% remaining arguments to be treated as usual text and typeset in that -% manner instead of being thrown away. An exception might be, say, -% sort keys for \cmd{\cite}. -% -% A second optional argument in brackets can be used to declare any -% default action to be taken instead. This is for the sake of macros -% that influence numbering: you would want to keep their effects in -% that respect. The default action might use |#1| for referring to -% the original (not the patched) command with the parsed options -% appended. Not specifying a second optional argument here is -% equivalent to specifying~|[]| since the command usually gets thrown -% away. -% -% As an example for using this argument, you might want to specify -% \begin{quote} -% |\PreviewMacro*\footnote[{[]}][#1{}]| -% \end{quote} -% This will replace a footnote by an empty footnote, but taking any -% optional parameter into account, since an optional paramter changes -% the numbering scheme. That way the real argument for the footnote -% remains for processing by \previewlatex. -% -% \DescribeMacro{\PreviewEnvironment} The macro -% \cmd{\PreviewEnvironment} works just as \cmd{\PreviewMacro} does, -% only for environments. \DescribeMacro{\PreviewEnvironment*} And the -% same goes for \cmd{\PreviewEnvironment*} as compared to -% \cmd{\PreviewMacro*}. -% -% \DescribeMacro{\PreviewSnarfEnvironment} This macro does not typeset -% the original environment inside of a preview box, but instead -% typesets just the contents of the original environment inside of the -% preview box, leaving nothing for the original environment. This has -% to be used for figures, for example, since they would -% \begin{enumerate} -% \item produce insertion material that cannot be extracted to the -% preview properly, -% \item complain with an error message about not being in outer par -% mode. -% \end{enumerate} -% -% \DescribeMacro{\PreviewOpen} -% \DescribeMacro{\PreviewClose} -% Those Macros form a matched preview pair. This is for macros that -% behave similar as \cmd{\begin} and \cmd{\end} of an environment. It -% is essential for the operation of \cmd{\PreviewOpen} that the macro -% treated with it will open an additional group even when the preview -% falls inside of another preview or inside of a |nopreview| -% environment. Similarly, the macro treated with \cmd{PreviewClose} -% will close an environment even when inactive. -% -% \DescribeMacro{\ifPreview} In case you need to know whether -% |preview| is active, you can use the conditional \cmd{\ifPreview} -% together with |\else| and |\fi|. -% -% \StopEventually{} -% \section{The Implementation} -% Here we go: the start is somewhat obtuse since we figure out version -% number and date from RCS strings. This should really be done at -% docstrip time instead. Takers? -% \begin{macro}{\pr@version} -% \begin{macrocode} -%<*style> -%<*!active> -\NeedsTeXFormat{LaTeX2e} \def\reserved@a #1#2$#3: -#4${\xdef#1{\reserved@c #2#4 $}} \def\reserved@c #1 #2${#1} -\begingroup \catcode`\_=12 -\reserved@a\pr@version $Name: release_11_88 $ \ifx\pr@version\@empty -\reserved@a\pr@version CVS-$Revision: 1.126 $ \endgroup \else - \def\next release_{} \lccode`\_=`. - \edef\next{\lowercase{\endgroup - \def\noexpand\pr@version{\expandafter\next\pr@version}}} \next \fi -\reserved@a\next $Date: 2010/02/14 16:19:00 $ -\edef\next{\noexpand\ProvidesPackage{preview}% - [\next\space \pr@version\space (AUCTeX/preview-latex)]} -\next -% \end{macrocode} -% \end{macro} -% Since many parts here will not be needed as long as the package is -% inactive, we will include them enclosed with |<*active>| and -% || guards. That way, we can append all of this stuff at a -% place where it does not get loaded if not necessary. -% -%\begin{macro}{\ifPreview} -% Setting the \cmd{\ifPreview} command should not be done by the -% user, so we don't use \cmd{\newif} here. As a consequence, there -% are no \cmd{\Previewtrue} and \cmd{\Previewfalse} commands. -% \begin{macrocode} -\let\ifPreview\iffalse -% -% \end{macrocode} -%\end{macro} -%\begin{macro}{\ifpr@outer} -% We don't allow previews inside of previews. The macro -% \cmd{\ifpr@outer} can be used for checking whether we are outside -% of any preview code. -% \begin{macrocode} -%<*active> -\newif\ifpr@outer -\pr@outertrue -% -% \end{macrocode} -%\end{macro} -% -%\begin{macro}{\preview@delay} -% The usual meaning of \cmd{\preview@delay} is to just echo its -% argument in normal |preview| operation. If |preview| is inactive, -% it swallows its argument. If the |delayed| option is active, the -% contents will be passed to the \cmd{\AtBeginDocument} hook. -%\begin{macro}{\pr@advise} -% The core macro for modifying commands is \cmd{\pr@advise}. You -% pass it the original command name as first argument and what should -% be executed before the saved original command as second argument. -%\begin{macro}{\pr@advise@ship} -% The most often used macro for modifying commands is -% \cmd{\pr@advise@ship}. It receives three arguments. The first is -% the macro to modify, the second specifies some actions to be done -% inside of a box to be created before the original macro gets -% executed, the third one specifies actions after the original macro -% got executed. -%\begin{macro}{\pr@loadcfg} -% The macro \cmd{\pr@loadcfg} is used for loading in configuration -% files, unless disabled by the |noconfig| option. -% \begin{macrocode} -%<*!active> -\let\preview@delay=\@gobble -\let\pr@advise=\@gobbletwo -\long\def\pr@advise@ship#1#2#3{} -\def\pr@loadcfg#1{\InputIfFileExists{#1.cfg}{}{}} -\DeclareOption{noconfig}{\let\pr@loadcfg=\@gobble} -% \end{macrocode} -%\begin{macro}{\pr@addto@front} -% This adds code globally to the front of a macro. -% \begin{macrocode} -\long\def\pr@addto@front#1#2{% - \toks@{#2}\toks@\expandafter{\the\expandafter\toks@#1}% - \xdef#1{\the\toks@}} -% \end{macrocode} -% \end{macro} -% These commands get more interesting when |preview| is active: -% \begin{macrocode} -\DeclareOption{active}{% - \let\ifPreview\iftrue - \def\pr@advise#1{% - \expandafter\pr@adviseii\csname pr@\string#1\endcsname#1}% - \long\def\pr@advise@ship#1#2#3{\pr@advise#1{\pr@protect@ship{#2}{#3}}}% - \let\preview@delay\@firstofone} -% \end{macrocode} -% \end{macro} -% \end{macro} -% \end{macro} -% \end{macro} -% -% \begin{macro}{\pr@adviseii} -% Now \cmd{\pr@advise} needs its helper macro. In order to avoid -% recursive definitions, we advise only macros that are not yet -% advised. Or, more exactly, we throw away the old advice and only -% take the new one. We use e\TeX's \cmd{\protected} where available -% for some extra robustness. -% \begin{macrocode} -\long\def\pr@adviseii#1#2#3{\preview@delay{% - \ifx#1\relax \let#1#2\fi - \toks@{#3#1}% - \ifx\@undefined\protected \else \protected\fi - \long\edef#2{\the\toks@}}} -% \end{macrocode} -%\end{macro} -% -% The |delayed| option is easy to implement: this is \emph{not} done -% with \cmd{\let} since at the course of document processing, \LaTeX\ -% redefines \cmd{\AtBeginDocument} and we want to follow that -% redefinition. -% \begin{macrocode} -\DeclareOption{delayed}{% - \ifPreview \def\preview@delay{\AtBeginDocument}\fi -} -% \end{macrocode} -% -%\begin{macro}{\ifpr@fixbb} -% Another conditional. \cmd{\ifpr@fixbb} tells us whether we want to -% surround the typeset materials with invisible rules so that Dvips -% gets the bounding boxes right for, say, pure PostScript inclusions. -% -% If you are installing this on an operating system different from -% the one |preview| has been developed on, you might want to redefine -% |\pr@markerbox| in your |prdefault.cfg| file to use a file known to -% be empty, like |/dev/null| is under Unix. Make this redefinition -% depend on \cmd{\ifpr@fixbb} since only then |\pr@markerbox| will be -% defined. -% \begin{macrocode} -\newif\ifpr@fixbb -\pr@fixbbfalse -\DeclareOption{psfixbb}{\ifPreview% - \pr@fixbbtrue - \newbox\pr@markerbox - \setbox\pr@markerbox\hbox{\special{psfile=/dev/null}}\fi -} -% \end{macrocode} -% \end{macro} -% \begin{macro}{\pr@graphicstype} -% The |dvips| option redefines the |bop-hook| to reset the page -% size. -% \begin{macrocode} -\let\pr@graphicstype=\z@ -\DeclareOption{dvips}{% - \let\pr@graphicstype\@ne - \preview@delay{\AtBeginDvi{% - \special{!/preview@version(\pr@version)def} - \special{!userdict begin/preview-bop-level 0 def% - /bop-hook{/preview-bop-level dup load dup 0 le{/isls false def% - /vsize 792 def/hsize 612 def}if 1 add store}bind def% - /eop-hook{/preview-bop-level dup load dup 0 gt{1 sub}if - store}bind def end}}}} -% \end{macrocode} -% The |pdftex| option just sets \cmd{\pr@graphicstype}. -% \begin{macrocode} -\DeclareOption{pdftex}{% - \let\pr@graphicstype\tw@} -% \end{macrocode} -% And so does the |xetex| option. -% \begin{macrocode} -\DeclareOption{xetex}{% - \let\pr@graphicstype\thr@@} -% -% \end{macrocode} -% \end{macro} -% \subsection{The internals} -% -% Those are only needed if |preview| is active. -% \begin{macrocode} -%<*active> -% \end{macrocode} -% \begin{macro}{\pr@snippet} -% \cmd{\pr@snippet} is the current snippet number. We need a -% separate counter to \cmd{\c@page} since several other commands -% might fiddle with the page number. -% \begin{macrocode} -\newcount\pr@snippet -\global\pr@snippet=1 -% \end{macrocode} -% \end{macro} -% \begin{macro}{\pr@protect} -% This macro gets one argument which is unpacked and executed in -% typesetting situations where we are not yet inside of a preview. -% \begin{macrocode} -\def\pr@protect{\ifx\protect\@typeset@protect - \ifpr@outer \expandafter\expandafter\expandafter - \@secondoftwo\fi\fi\@gobble} -% \end{macrocode} -% \end{macro} -% \begin{macro}{\pr@protect@ship} -% Now for the above mentioned \cmd{\pr@protect@ship}. This gets -% three arguments. The first is what to do at the beginning of the -% preview, the second what to do at the end, the third is the macro -% where we stored the original definition. -% -% In case we are not in a typesetting situation, -% \cmd{\pr@protect@ship} leaves the stored macro to fend for its -% own. No better or worse protection than the original. And we -% only do anything different when \cmd{\ifpr@outer} turns out to be -% true. -% \begin{macrocode} -\def\pr@protect@ship{\pr@protect{\@firstoftwo\pr@startbox}% - \@gobbletwo} -% \end{macrocode} -% \end{macro} -% \begin{macro}{\pr@insert} -% \begin{macro}{\pr@mark} -% \begin{macro}{\pr@marks} -% We don't want insertions to end up on our lists. So we disable -% them right now by replacing them with the following: -% \begin{macrocode} -\def\pr@insert{\begingroup\afterassignment\pr@insertii\count@} -\def\pr@insertii{\endgroup\setbox\pr@box\vbox} -% \end{macrocode} -% Similar things hold for marks. -% \begin{macrocode} -\def\pr@mark{{\afterassignment}\toks@} -\def\pr@marks{{\aftergroup\pr@mark\afterassignment}\count@} -% \end{macrocode} -% \end{macro} -% \end{macro} -% \end{macro} -% \begin{macro}{\pr@box} -% \begin{macro}{\pr@startbox} -% Previews will be stored in \cmd{\box}\cmd{\pr@box}. -% \cmd{\pr@startbox} gets two arguments: code to execute immediately -% before the following stuff, code to execute afterwards. You have -% to cater for \cmd{\pr@endbox} being called at the right time -% yourself. We will use a \cmd{\vsplit} on the box later in order -% to remove any leading glues, penalties and similar stuff. For -% this reason we start off the box with an optimal break point. -% \begin{macrocode} -\newbox\pr@box -\long\def\pr@startbox#1#2{% - \ifpr@outer - \toks@{#2}% - \edef\pr@cleanup{\the\toks@}% - \setbox\pr@box\vbox\bgroup - \break - \pr@outerfalse\@arrayparboxrestore - \let\insert\pr@insert - \let\mark\pr@mark - \let\marks\pr@marks - \expandafter\expandafter\expandafter - \pr@ship@start - \expandafter\@firstofone - \else - \expandafter \@gobble - \fi{#1}} -% \end{macrocode} -% \end{macro} -% \end{macro} -% \begin{macro}{\pr@endbox} -% Cleaning up also is straightforward. If we have to watch the -% bounding \TeX\ box, we want to remove spurious skips. We also -% want to unwrap a possible single line paragraph, so that the box -% is not full line length. We use \cmd{\vsplit} to clean up leading -% glue and stuff, and we make some attempt of removing trailing -% ones. After that, we wrap up the box including possible material -% from \cmd{\AtBeginDvi}. If the |psfixbb| option is active, we -% adorn the upper left and lower right corners with copies of -% \cmd{\pr@markerbox}. The first few lines cater for \LaTeX\ hiding -% things like like the code for \cmd{\paragraph} in \cmd{\everypar}. -% \begin{macrocode} -\def\pr@endbox{% - \let\reserved@a\relax - \ifvmode \edef\reserved@a{\the\everypar}% - \ifx\reserved@a\@empty\else - \dimen@\prevdepth - \noindent\par - \setbox\z@\lastbox\unskip\unpenalty - \prevdepth\dimen@ - \setbox\z@\hbox\bgroup\penalty-\maxdimen\unhbox\z@ - \ifnum\lastpenalty=-\maxdimen\egroup - \else\egroup\box\z@ \fi\fi\fi - \ifhmode \par\unskip\setbox\z@\lastbox - \nointerlineskip\hbox{\unhbox\z@\/}% - \else \unskip\unpenalty\unskip \fi - \egroup - \setbox\pr@box\vbox{% - \baselineskip\z@skip \lineskip\z@skip \lineskiplimit\z@ - \@begindvi - \nointerlineskip - \splittopskip\z@skip\setbox\z@\vsplit\pr@box to\z@ - \unvbox\z@ - \nointerlineskip - %\color@setgroup - \box\pr@box - %\color@endgroup - }% -% \end{macrocode} -% \begin{macro}{\pr@ship@end} -% \label{sec:prshipend}At this point, \cmd{\pr@ship@end} gets -% called. You must not under any circumstances change |\box\pr@box| -% in any way that would add typeset material at the front of it, -% except for PostScript header specials, since the front of -% |\box\pr@box| may contain stuff from \cmd{\AtBeginDvi}. -% \cmd{\pr@ship@end} contains two types of code additions: stuff -% that adds to |\box\pr@box|, like the |labels| option does, and -% stuff that measures out things or otherwise takes a look at the -% finished |\box\pr@box|, like the |auctex| or |showbox| option do. -% The former should use \cmd{pr@addto@front} for adding to this -% hook, the latter use \cmd{g@addto@macro} for adding at the end of -% this hook. -% -% Note that we shift the output box up by its height via -% \cmd{\voffset}. This has three reasons: first we make sure that -% no package-inflicted non-zero value of \cmd{\voffset} or -% \cmd{\hoffset} will have any influence on the positioning of our -% box. Second we shift the box such that its basepoint will exactly -% be at the (1in,1in)~mark defined by \TeX. That way we can -% properly take ascenders into account. And the third reason is -% that \TeX\ treats a \cmd{\hbox} and a \cmd{\vbox} differently with -% regard to the treating of its depth. Shifting \cmd{\voffset} and -% \cmd{\hoffset} can be inhibited by setting |\pr@offset@override|. -% \begin{macrocode} - \pr@ship@end - {\let\protect\noexpand - \ifx\pr@offset@override\@undefined - \voffset=-\ht\pr@box - \hoffset=\z@ - \fi - \c@page=\pr@snippet - \pr@shipout - \ifpr@fixbb\hbox{% - \dimen@\wd\pr@box - \@tempdima\ht\pr@box - \@tempdimb\dp\pr@box - \box\pr@box - \llap{\raise\@tempdima\copy\pr@markerbox\kern\dimen@}% - \lower\@tempdimb\copy\pr@markerbox}% - \else \box\pr@box \fi}% - \global\advance\pr@snippet\@ne - \pr@cleanup -} -% \end{macrocode} -% \end{macro} -% \end{macro} -% Oh, and we kill off the usual meaning of \cmd{\shipout} in case -% somebody makes a special output routine. The following test is -% pretty much the same as in |everyshi.sty|. One of its implications -% is that if someone does a \cmd{\shipout} of a \emph{void} box, -% things will go horribly wrong. -% \begin{macro}{\shipout} -% \begin{macrocode} -\let\pr@shipout=\shipout -\def\shipout{\deadcycles\z@\bgroup\setbox\z@\box\voidb@x - \afterassignment\pr@shipoutegroup\setbox\z@} -\def\pr@shipoutegroup{\ifvoid\z@ \expandafter\aftergroup\fi \egroup} -% \end{macrocode} -% \end{macro} -% \subsection{Parsing commands} -% \begin{macro}{\pr@parseit} -% \begin{macro}{\pr@endparse} -% \begin{macro}{\pr@callafter} -% The following stuff is for parsing the arguments of commands we -% want to somehow surround with stuff. Usage is -% \begin{quote} -% \cmd{\pr@callafter}\meta{aftertoken}\meta{parsestring}\cmd{\pr@endparse}\\ -% \qquad\meta{macro}\meta{parameters} -% \end{quote} -% \meta{aftertoken} is stored away and gets executed once parsing -% completes, with its first argument being the parsed material. -% \meta{parsestring} would be, for example for the -% \cmd{\includegraphics} macro, |*[[!|, an optional |*| argument -% followed by two optional arguments enclosed in |[]|, followed by -% one mandatory argument. -% -% For the sake of a somewhat more intuitive syntax, we now support -% also the syntax |{*[]{}}| in the optional argument. Since \TeX\ -% strips redundant braces, we have to write |[{{}}]| in this syntax -% for a single mandatory argument. Hard to avoid. We use an -% unusual character for ending the parsing. The implementation is -% rather trivial. -% \begin{macrocode} -\def\pr@parseit#1{\csname pr@parse#1\endcsname} -\let\pr@endparse=\@percentchar -\def\next#1{% -\def\pr@callafter{% - \afterassignment\pr@parseit - \let#1= }} -\expandafter\next\csname pr@parse\pr@endparse\endcsname -% \end{macrocode} -% \end{macro} -% \end{macro} -% \end{macro} -% \begin{macro}{\pr@parse*} -% Straightforward, same mechanism \LaTeX\ itself employs. We take -% some care not to pass potential |#| tokens unprotected through -% macros. -% \begin{macrocode} -\long\expandafter\def\csname pr@parse*\endcsname#1\pr@endparse#2{% - \begingroup\toks@{#1\pr@endparse{#2}}% - \edef\next##1{\endgroup##1\the\toks@}% - \@ifstar{\next{\pr@parse@*}}{\next\pr@parseit}} -% \end{macrocode} -% \end{macro} -% \begin{macro}{\pr@parse[} -% \begin{macro}{\pr@brace} -% Copies optional parameters in brackets if present. The additional -% level of braces is necessary to ensure that braces the user might -% have put to hide a~|]| bracket in an optional argument don't get -% lost. There will be no harm if such braces were not there at the -% start. -% \begin{macrocode} -\long\expandafter\def\csname pr@parse[\endcsname#1\pr@endparse#2{% - \begingroup\toks@{#1\pr@endparse{#2}}% - \edef\next##1{\endgroup##1\the\toks@}% - \@ifnextchar[{\next\pr@bracket}{\next\pr@parseit}} -\long\def\pr@bracket#1\pr@endparse#2[#3]{% - \pr@parseit#1\pr@endparse{#2[{#3}]}} -% \end{macrocode} -% \end{macro} -% \end{macro} -% \begin{macro}{\pr@parse]} -% This is basically a do-nothing, so that we may use the syntax -% |{*[][]!}| in the optional argument instead of the more concise -% but ugly |*[[!| which confuses the brace matchers of editors. -% \begin{macrocode} -\expandafter\let\csname pr@parse]\endcsname=\pr@parseit -% \end{macrocode} -% \end{macro} -% \begin{macro}{\pr@parse} -% \begin{macro}{\pr@parse!} -% Mandatory arguments are perhaps easiest to parse. -% \begin{macrocode} -\long\def\pr@parse#1\pr@endparse#2#3{% - \pr@parseit#1\pr@endparse{#2{#3}}} -\expandafter\let\csname pr@parse!\endcsname=\pr@parse -% \end{macrocode} -% \end{macro} -% \end{macro} -% \begin{macro}{\pr@parse?} -% \begin{macro}{\pr@parsecond} -% This does an explicit call of |\@ifnextchar| and forks into the -% given two alternatives as a result. -% \begin{macrocode} -\long\expandafter\def\csname pr@parse?\endcsname#1#2\pr@endparse#3{% - \begingroup\toks@{#2\pr@endparse{#3}}% - \@ifnextchar#1{\pr@parsecond\@firstoftwo}% - {\pr@parsecond\@secondoftwo}} -\def\pr@parsecond#1{\expandafter\endgroup - \expandafter\expandafter\expandafter\pr@parseit - \expandafter#1\the\toks@} -% \end{macrocode} -% \end{macro} -% \end{macro} -% \begin{macro}{\pr@parse@} -% This makes it possible to insert literal material into the -% argument list. -% \begin{macrocode} - \long\def\pr@parse@#1#2\pr@endparse#3{% - \pr@parseit #2\pr@endparse{#3#1}} -% \end{macrocode} -% \end{macro} -% \begin{macro}{\pr@parse-} -% This will just drop the next token. -% \begin{macrocode} -\long\expandafter\def\csname pr@parse-\endcsname - #1\pr@endparse#2{\begingroup - \toks@{\endgroup\pr@parseit #1\pr@endparse{#2}}% - {\aftergroup\the\aftergroup\toks@ \afterassignment}% - \let\next= } -% \end{macrocode} -% \end{macro} -% \begin{macro}{\pr@parse:} -% The following is a transform rule. A macro is being defined with -% the given argument list and replacement, and the transformed -% version replaces the original. The result of the transform is -% still subject to being parsed. -% \begin{macrocode} -\long\expandafter\def\csname pr@parse:\endcsname - #1#2#3\pr@endparse#4{\begingroup - \toks@{\endgroup \pr@parseit#3\pr@endparse{#4}}% - \long\def\next#1{#2}% - \the\expandafter\toks@\next} -% \end{macrocode} -% \end{macro} -% \edef\next{\noexpand\begin{macro}{\noexpand -% \pr@parse\string#}} -% \next -% Another transform rule, but this passes the transformed material -% into the token list. -% \begin{macrocode} -\long\expandafter\def\csname pr@parse#\endcsname - #1#2#3\pr@endparse#4{\begingroup - \toks@{#4}% - \long\edef\next##1{\toks@{\the\toks@##1}}% - \toks@{\endgroup \pr@parseit#3\pr@endparse}% - \long\def\reserved@a#1{{#2}}% - \the\expandafter\next\reserved@a} -% -% \end{macrocode} -% \end{macro} -% -% \subsection{Selection options} -% The |displaymath| option. The |equation| environments in AMS\LaTeX\ -% already do too much before our hook gets to interfere, so we hook -% earlier. Some juggling is involved to ensure we get the original -% |\everydisplay| tokens only once and where appropriate. -% -% The incredible hack with |\dt@ptrue| is necessary for working around -% bug `amslatex/3425'. -% \begin{macrocode} -%<*!active> -\begingroup -\catcode`\*=11 -\@firstofone{\endgroup -\DeclareOption{displaymath}{% - \preview@delay{\toks@{% - \pr@startbox{\noindent$$% - \aftergroup\pr@endbox\@gobbletwo}{$$}\@firstofone}% - \everydisplay\expandafter{\the\expandafter\toks@ - \expandafter{\the\everydisplay}}}% - \pr@advise@ship\equation{\begingroup\aftergroup\pr@endbox - \def\dt@ptrue{\m@ne=\m@ne}\noindent}% - {\endgroup}% - \pr@advise@ship\equation*{\begingroup\aftergroup\pr@endbox - \def\dt@ptrue{\m@ne=\m@ne}\noindent}% - {\endgroup}% - \PreviewOpen[][\def\dt@ptrue{\m@ne=\m@ne}\noindent#1]\[% - \PreviewClose\]% - \PreviewEnvironment[][\noindent#1]{eqnarray}% - \PreviewEnvironment[][\noindent#1]{eqnarray*}% - \PreviewEnvironment{displaymath}% -}} -% \end{macrocode} -% -% The |textmath| option. Some folderol in order to define the active -% |$| -% math mode delimiter. \cmd\pr@textmathcheck is used for checking -% whether we have a single |$| or double |$$|. -% In the latter case, we enter display math (this sort of display math -% is not allowed inside of \LaTeX\ because of inconsistent spacing, -% but surprisingly many people use it nevertheless). Strictly -% speaking, this is incorrect, since not every -% |$$| actually means display math. For example, |\hbox{$$}| will -% because of restricted horizontal mode rather yield an empty text -% math formula. Since our implementation moved the sequence inside of -% a |\vbox|, the interpretation will change. People should just not -% enter rubbish like that. -% \begin{macrocode} -\begingroup -\def\next#1#2{% - \endgroup - \DeclareOption{textmath}{% - \PreviewEnvironment{math}% - \preview@delay{\ifx#1\@undefined \let#1=$%$ - \fi\catcode`\$=\active - \ifx\xyreuncatcodes\@undefined\else - \edef\next{\catcode`@=\the\catcode`@\relax}% - \makeatother\expandafter\xyreuncatcodes\next\fi}% - \pr@advise@ship\(\pr@endaftergroup{}% \) - \pr@advise@ship#1{\@firstoftwo{\let#1=#2% - \futurelet\reserved@a\pr@textmathcheck}}{}}% - \def\pr@textmathcheck{\expandafter\pr@endaftergroup - \ifx\reserved@a#1{#2#2}\expandafter\@gobbletwo\fi#2}} -\lccode`\~=`\$ -\lowercase{\expandafter\next\expandafter~}% - \csname pr@\string$%$ - \endcsname -% -% \end{macrocode} -% \begin{macro}{\pr@endaftergroup} -% This justs ends the box after the group opened by |#1| is closed -% again. -% \begin{macrocode} -%<*active> -\def\pr@endaftergroup#1{#1\aftergroup\pr@endbox} -% -% \end{macrocode} -% \end{macro} -% -% The |graphics| option. -% \begin{macrocode} -%<*!active> -\DeclareOption{graphics}{% - \PreviewMacro[*[[!]{\includegraphics}%]] -} -% \end{macrocode} -% The |floats| option. The complications here are merely to spare us -% bug reports about broken document classes that use |\let| on -% |\endfigure| and similar. Notable culprits that have not been -% changed in years in spite of reports are |elsart.cls| and -% |IEEEtran.cls|. Complain when you are concerned. -% \begin{macrocode} -\def\pr@floatfix#1#2{\ifx#1#2% - \ifx#1\@undefined\else - \PackageWarningNoLine{preview}{% -Your document class has a bad definition^^J -of \string#1, most likely^^J -\string\let\string#1=\string#2^^J -which has now been changed to^^J -\string\def\string#1{\string#2}^^J -because otherwise subsequent changes to \string#2^^J -(like done by several packages changing float behaviour)^^J -can't take effect on \string#1.^^J -Please complain to your document class author}% - \def#1{#2}\fi\fi} -\begingroup -\def\next#1#2{\endgroup - \DeclareOption{floats}{% - \pr@floatfix\endfigure\end@float - \pr@floatfix\endtable\end@float - \pr@floatfix#1\end@dblfloat - \pr@floatfix#2\end@dblfloat - \PreviewSnarfEnvironment[![]{@float}%] - \PreviewSnarfEnvironment[![]{@dblfloat}%] - }} -\expandafter\next\csname endfigure*\expandafter\endcsname - \csname endtable*\endcsname -% \end{macrocode} -% The |sections| option. Two optional parameters might occur in -% |memoir.cls|. -% \begin{macrocode} -\DeclareOption{sections}{% - \PreviewMacro[!!!!!!*[[!]{\@startsection}%]] - \PreviewMacro[*[[!]{\chapter}%]] -} -% \end{macrocode} -% We now interpret any further options as driver files we load. Note -% that these driver files are loaded even when |preview| is not -% active. The reason is that they might define commands (like -% \cmd{\PreviewCommand}) that should be available even in case of an -% inactive package. Large parts of the |preview| package will not -% have been loaded in this case: you have to cater for that. -% \begin{macrocode} -\DeclareOption* - {\InputIfFileExists{pr\CurrentOption.def}{}{\OptionNotUsed}} -% \end{macrocode} -% -% \subsection{Preview attaching commands} -% \begin{macro}{\PreviewMacro} -% As explained above. Detect possible |*| and call appropriate -% macro. -% \begin{macrocode} -\def\PreviewMacro{\@ifstar\pr@starmacro\pr@macro} -% \end{macrocode} -% The version without |*| is now rather straightforward. -% \begin{macro}{\pr@macro} -% \begin{macro}{\pr@domacro} -% \begin{macro}{\pr@macroii} -% \begin{macro}{\pr@endmacro} -% \begin{macrocode} -\long\def\pr@domacro#1#2{% - \long\def\next##1{#2}% - \pr@callafter\next#1]\pr@endparse} -\newcommand\pr@macro[1][]{% - \toks@{\pr@domacro{#1}}% - \long\edef\next[##1]##2{% - \noexpand\pr@advise@ship{##2}{\the\toks@{##1\noexpand\pr@endbox}}{}}% - \@ifnextchar[\next\pr@macroii} -\def\pr@macroii{\next[##1]} -\long\def\pr@endmacro#1{#1\pr@endbox} -% \end{macrocode} -% \end{macro} -% \end{macro} -% \end{macro} -% \end{macro} -% \end{macro} -% \begin{macro}{PreviewMacro*} -% \begin{macro}{\pr@protect@domacro} -% \begin{macro}{\pr@starmacro} -% The version with |*| has to parse the arguments, then throw them -% away. Some internal macros first, then the interface call. -% \begin{macrocode} -\long\def\pr@protect@domacro#1#2{\pr@protect{% - \long\def\next##1{#2}% - \pr@callafter\next#1]\pr@endparse}} -\newcommand\pr@starmacro[1][]{\toks@{\pr@protect@domacro{#1}}% - \long\edef\next[##1]##2{% - \noexpand\pr@advise##2{\the\toks@{##1}}}% - \@ifnextchar[\next{\next[]}} -% \end{macrocode} -% \end{macro} -% \end{macro} -% \end{macro} -% \begin{macro}{\PreviewOpen} -% As explained above. Detect possible |*| and call appropriate macro. -% \begin{macrocode} -\def\PreviewOpen{\@ifstar\pr@starmacro\pr@open} -% \end{macrocode} -% The version without |*| is now rather straightforward. -% \begin{macro}{\pr@open} -% \begin{macrocode} -\newcommand\pr@open[1][]{% - \toks@{\pr@domacro{#1}}% - \long\edef\next[##1]##2{% - \noexpand\pr@advise##2{\begingroup - \noexpand\pr@protect@ship - {\the\toks@{\begingroup\aftergroup\noexpand\pr@endbox##1}}% - {\endgroup}}}% - \@ifnextchar[\next\pr@macroii} -% \end{macrocode} -% \end{macro} -% \end{macro} -% \begin{macro}{\PreviewClose} -% As explained above. Detect possible |*| and call appropriate -% macro. -% \begin{macrocode} -\def\PreviewClose{\@ifstar\pr@starmacro\pr@close} -% \end{macrocode} -% The version without |*| is now rather straightforward. -% \begin{macro}{\pr@close} -% \begin{macrocode} -\newcommand\pr@close[1][]{% - \toks@{\pr@domacro{#1}}% - \long\edef\next[##1]##2{% - \noexpand\pr@advise{##2}{\the\toks@{##1\endgroup}}}% - \@ifnextchar[\next\pr@macroii} -% \end{macrocode} -% \end{macro} -% \end{macro} -% \begin{macro}{\PreviewEnvironment} -% Actually, this ignores any syntax argument. But don't tell -% anybody. Except for the |*|~variant, it respects (actually -% ignores) any argument! Of course, we'll need to deactivate -% |\end{|\meta{environment}|}| as well. -% \begin{macrocode} -\def\PreviewEnvironment{\@ifstar\pr@starenv\pr@env} -\newcommand\pr@starenv[1][]{\toks@{\pr@starmacro[{#1}]}% - \long\edef\next##1##2{% - \the\toks@[{##2}]##1}% - \begingroup\pr@starenvii} -\newcommand\pr@starenvii[2][]{\endgroup - \expandafter\next\csname#2\endcsname{#1}% - \expandafter\pr@starmacro\csname end#2\endcsname} -\newcommand\pr@env[1][]{% - \toks@{\pr@domacro{#1}}% - \long\edef\next[##1]##2{% - \noexpand\expandafter\noexpand\pr@advise@ship - \noexpand\csname##2\noexpand\endcsname{\the\toks@ - {\begingroup\aftergroup\noexpand\pr@endbox##1}}{\endgroup}}% - \@ifnextchar[\next\pr@macroii %] - } -% \end{macrocode} -% \end{macro} -% \begin{macro}{\PreviewSnarfEnvironment} -% This is a nuisance since we have to advise \emph{both} the -% environment and its end. -% \begin{macrocode} -\newcommand{\PreviewSnarfEnvironment}[2][]{% - \expandafter\pr@advise - \csname #2\endcsname{\pr@snarfafter{#1}}% - \expandafter\pr@advise - \csname end#2\endcsname{\pr@endsnarf}} -% -% \end{macrocode} -% \end{macro} -% \begin{macro}{\pr@snarfafter} -% \begin{macro}{\pr@startsnarf} -% \begin{macro}{\pr@endsnarf} -% Ok, this looks complicated, but we have to start a group in order -% to be able to hook \cmd{\pr@endbox} into the game only when -% \cmd{\ifpr@outer} has triggered the start. And we need to get our -% start messages out before parsing the arguments. -% \begin{macrocode} -%<*active> -\let\pr@endsnarf\relax -\long\def\pr@snarfafter#1{\ifpr@outer - \pr@ship@start - \let\pr@ship@start\relax - \let\pr@endsnarf\endgroup - \else - \let\pr@endsnarf\relax - \fi - \pr@protect{\pr@callafter\pr@startsnarf#1]\pr@endparse}} -\def\pr@startsnarf#1{#1\begingroup - \pr@startbox{\begingroup\aftergroup\pr@endbox}{\endgroup}% - \ignorespaces} -% -% \end{macrocode} -% \end{macro} -% \end{macro} -% \end{macro} -% \begin{macro}{\pr@ship@start} -% \begin{macro}{\pr@ship@end} -% The hooks \cmd{\pr@ship@start} and \cmd{\pr@ship@end} can be added -% to by option files by the help of the \cmd{\g@addto@macro} command -% from \LaTeX, and by the \cmd{\pr@addto@front} command from -% |preview.sty| itself. They are called just before starting to -% process some preview, and just after it. Here is the policy for -% adding to them: \cmd{\pr@ship@start} is called inside of the vbox -% |\pr@box| before typeset material gets produced. It is, however, -% preceded by a break command that is intended for usage in -% \cmd{\vsplit}, so that any following glue might disappear. In -% case you want to add any material on the list, you have to precede -% it with \cmd{\unpenalty} and have to follow it with \cmd{\break}. -% You have make sure that under no circumstances any other legal -% breakpoints appear before that, and your material should -% contribute no nonzero dimensions to the page. For the policies of -% the \cmd{\pr@ship@end} hook, see the description on -% page~\pageref{sec:prshipend}. -% \begin{macrocode} -%<*!active> -\let\pr@ship@start\@empty -\let\pr@ship@end\@empty -% \end{macrocode} -% \end{macro} -% \end{macro} -% \begin{environment}{preview} -% \begin{environment}{nopreview} -% First we write the definitions of these environments when -% |preview| is inactive. We will redefine them if |preview| gets -% activated. -% \begin{macrocode} -\newenvironment{preview}{\ignorespaces}{\ifhmode\unskip\fi} -\newenvironment{nopreview}{\ignorespaces}{\ifhmode\unskip\fi} -% \end{macrocode} -% \end{environment} -% \end{environment} -% -% We now process the options and finish in case we are not active. -% \begin{macrocode} -\ProcessOptions\relax -\ifPreview\else\expandafter\endinput\fi -% -% \end{macrocode} -% Now for the redefinition of the |preview| and |endpreview| -% environments: -% \begin{macrocode} -%<*active> -\renewenvironment{preview}{\begingroup - \pr@startbox{\begingroup\aftergroup\pr@endbox}% - {\endgroup}% - \ignorespaces}% - {\ifhmode\unskip\fi\endgroup} -\renewenvironment{nopreview}{\pr@outerfalse\ignorespaces}% - {\ifhmode\unskip\fi} -% \end{macrocode} -% We use the normal output routine, but hijack it a bit for our -% purposes to preserve \cmd{\AtBeginDvi} hooks and not get previews -% while in output: that could become rather ugly. -% -% The main work of disabling normal output relies on a \cmd{\shipout} -% redefinition. -% \begin{macro}{\pr@output} -% \begin{macrocode} -\newtoks\pr@output -\pr@output\output -\output{% - \pr@outerfalse - \let\@begindvi\@empty - \the\pr@output} -\let\output\pr@output -% \end{macrocode} -% \end{macro} -% \begin{macro}{\pr@typeinfos} -% Then we have some document info that style files might want to -% output. -% \begin{macrocode} -\def\pr@typeinfos{\typeout{Preview: Fontsize \f@size pt}% - \ifnum\mag=\@m\else\typeout{Preview: Magnification \number\mag}\fi - \ifx\pdfoutput\@undefined - \ifx\XeTeXversion\@undefined \else - % FIXME: The message should not be emitted if XeTeX does not produce - % PDF. There does not seem to be a primitive for that, though. - \typeout{Preview: PDFoutput 1}% - \fi - \else - \ifx\pdfoutput\relax \else - \ifnum\pdfoutput>\z@ - \typeout{Preview: PDFoutput 1}% - \fi - \fi - \fi -} -\AtBeginDocument{\pr@typeinfos} -% \end{macrocode} -% \end{macro} -% And at the end we load the default configuration file, so that it -% may override settings from this package: -% \begin{macrocode} -\pr@loadcfg{prdefault} -% -% -% \end{macrocode} -% -% \section{The option files} -% \subsection{The \texttt{auctex} option} -% The AUC\TeX\ option will cause error messages to spew. We want them -% on the terminal, but we don't want \LaTeX\ to stop its automated -% run. We delay \cmd{\nonstopmode} in case the user has any -% pseudo-interactive folderol like reading in of file names in his -% preamble. Because we are so good-hearted, we will not break this as -% long as the document has not started, but after that we need the -% error message mechanism operative. -% -% The |\nofiles| command here tries to avoid clobbering input files -% used for references and similar. It will come too late if you call -% the package with \cmd{\AtBeginDocument}, so you'll need to issue -% |\nofiles| yourself in that case. Previously, this was done -% unconditionally in the main style file, but since we don't know what -% the package may be used for, this was inappropriate. -% -% So here is the contents of the |prauctex.def| file: -% \begin{macrocode} -%\ifPreview\else\expandafter\endinput\fi -%\nofiles -%\preview@delay{\nonstopmode} -% \end{macrocode} -% Ok, here comes creative error message formatting. It turns out a -% sizable portion of the runtime is spent in I/O. Making the error -% messages short is an advantage. It is not possible to convince -% \TeX\ to make shorter error messages than this: \TeX\ always wants -% to include context. This is about the shortest \ae sthetic one we -% can muster. -% \begin{macrocode} -%\begingroup -%\lccode`\~=`\- -%\lccode`\{=`\< -%\lccode`\}=`\> -%\lowercase{\endgroup -% \def\pr@msgi{{~}}} -%\def\pr@msgii{Preview: -% Snippet \number\pr@snippet\space} -%\begingroup -%\catcode`\-=13 -%\catcode`\<=13 -%\@firstofone{\endgroup -%\def\pr@msg#1{{% -% \let<\pr@msgi -% \def-{\pr@msgii#1}% -% \errhelp{Not a real error.}% -% \errmessage<}}} -%\g@addto@macro\pr@ship@start{\pr@msg{started}} -%\g@addto@macro\pr@ship@end{\pr@msg{ended.% -% (\number\ht\pr@box+\number\dp\pr@box x\number\wd\pr@box)}} -% \end{macrocode} -% This looks pretty baffling, but it produces something short and -% semi-graphical, namely |<-><->|. That is a macro |<| that expands -% into |<->|, where |<| and |>| are the braces around an -% \cmd{\errmessage} argument and |-| is a macro expanding to the full -% text of the error message. Cough cough. You did not really want to -% know, did you? -% -% Since over/underfull boxes are about the messiest things to parse, -% we disable them by setting the appropriate badness limits and making -% the variables point to junk. We also disable other stuff. While we -% set \cmd{\showboxbreadth} and \cmd{\showboxdepth} to indicate as -% little diagnostic output as possible, we keep them operative, so -% that the user retains the option of debugging using this stuff. The -% other variables concerning the generation of warnings and -% daignostics, however, are more often set by commonly employed -% packages and macros such as \cmd{\sloppy}. So we kill them off for -% good. -% \begin{macrocode} -%\hbadness=\maxdimen -%\newcount\hbadness -%\vbadness=\maxdimen -%\let\vbadness=\hbadness -%\hfuzz=\maxdimen -%\newdimen\hfuzz -%\vfuzz=\maxdimen -%\let\vfuzz=\hfuzz -%\showboxdepth=-1 -%\showboxbreadth=-1 -% \end{macrocode} -% Ok, now we load a possible configuration file. -% \begin{macrocode} -%\pr@loadcfg{prauctex} -% \end{macrocode} -% And here we cater for several frequently used commands in -% |prauctex.cfg|: -% \begin{macrocode} -%\PreviewMacro*[[][#1{}]\footnote -%\PreviewMacro*[?[{@{[]}}{}][#1]\item -%\PreviewMacro*\emph -%\PreviewMacro*\textrm -%\PreviewMacro*\textit -%\PreviewMacro*\textsc -%\PreviewMacro*\textsf -%\PreviewMacro*\textsl -%\PreviewMacro*\texttt -%\PreviewMacro*\textcolor -%\PreviewMacro*\mbox -%\PreviewMacro*[][#1{}]\author -%\PreviewMacro*[][#1{}]\title -%\PreviewMacro*\and -%\PreviewMacro*\thanks -%\PreviewMacro*[][#1{}]\caption -%\preview@delay{\@ifundefined{pr@\string\@startsection}{% -% \PreviewMacro*[!!!!!!*][#1{}]\@startsection}{}} -%\preview@delay{\@ifundefined{pr@\string\chapter}{% -% \PreviewMacro*[*][#1{}]\chapter}{}} -%\PreviewMacro*\index -% \end{macrocode} -% -% \subsection{The \texttt{lyx} option} -% The following is the option providing LyX with info for its preview -% implementation. -% \begin{macrocode} -%\ifPreview\else\expandafter\endinput\fi -%\pr@loadcfg{prlyx} -%\g@addto@macro\pr@ship@end{\typeout{Preview: -% Snippet \number\pr@snippet\space -% \number\ht\pr@box\space \number\dp\pr@box \space\number\wd\pr@box}} -% \end{macrocode} -% -% \subsection{The \texttt{counters} option} -% This outputs a checkpoint. We do this by saving all counter -% registers in backup macros starting with |\pr@c@| in their name. A -% checkpoint first writes out all changed counters (previously -% unchecked counters are not written out unless different from zero), -% then saves all involved counter values. \LaTeX\ tracks its counters -% in the global variable \cmd{\cl@ckpt}. -% \begin{macrocode} -%\ifPreview\else\expandafter\endinput\fi -%\def\pr@eltprint#1{\expandafter\@gobble\ifnum\value{#1}=0% -% \csname pr@c@#1\endcsname\else\relax -% \space{#1}{\arabic{#1}}\fi} -%\def\pr@eltdef#1{\expandafter\xdef -% \csname pr@c@#1\endcsname{\arabic{#1}}} -%\def\pr@ckpt#1{{\let\@elt\pr@eltprint\edef\next{\cl@@ckpt}% -% \ifx\next\@empty\else\typeout{Preview: Counters\next#1}% -% \let\@elt\pr@eltdef\cl@@ckpt\fi}} -%\pr@addto@front\pr@ship@start{\pr@ckpt:} -%\pr@addto@front\pr@ship@end{\pr@ckpt.} -% \end{macrocode} -% -% \subsection{Debugging options} -% Those are for debugging the operation of |preview|, and thus are -% mostly of interest for people that want to use |preview| for their -% own purposes. Since debugging output is potentially confusing to -% the error message parsing from AUC\TeX, you should not turn on -% |\tracingonline| or switch from |\nonstopmode| unless you are -% certain your package will never be used with \previewlatex. -% -% \paragraph{The \texttt{showbox} option} will generate diagnostic -% output for every produced box. It does not delay the resetting of -% the |\showboxbreadth| and |\showboxdepth| parameters so that you can -% still change them after the loading of the package. It does, -% however, move them to the end of the package loading, so that they -% will not be affected by the |auctex| option. -% \begin{macrocode} -%\ifPreview\else\expandafter\endinput\fi -%\AtEndOfPackage{% -% \showboxbreadth\maxdimen -% \showboxdepth\maxdimen} -%\g@addto@macro\pr@ship@end{\showbox\pr@box} -% \end{macrocode} -% -% \paragraph{The \texttt{tracingall} option} is for the really heavy -% diagnostic stuff. For the reasons mentioned above, we do not want -% to change the setting of the interaction mode, nor of the -% |tracingonline| flag. If the user wants them different, he should -% set them outside of the preview boxes. -% \begin{macrocode} -%\ifPreview\else\expandafter\endinput\fi -%\pr@addto@front\pr@ship@start{\let\tracingonline\count@ -% \let\errorstopmode\@empty\tracingall} -% \end{macrocode} -% -% \subsection{Supporting conversions} -% It is not uncommon to want to use the results of |preview| as -% images. One possibility is to generate a flurry of EPS files with -% \begin{quote} -% |dvips -E -i -Ppdf -o| \meta{outputfile}|.000| \meta{inputfile} -% \end{quote} -% However, in case those are to be processed further into graphic -% image files by Ghostscript, this process is inefficient. One cannot -% use Ghostscript in a single run for generating the files, however, -% since one needs to set the page size (or full size pages will be -% produced). The |tightpage| option will set the page dimensions at -% the start of each PostScript page so that the output will be sized -% appropriately. That way, a single pass of Dvips followed by a -% single pass of Ghostscript will be sufficient for generating all -% images. -% -% You will have to specify the output driver to be used, either -% |dvips| or |pdftex|. -% -% \begin{macro}{\PreviewBorder} -% \begin{macro}{\PreviewBbAdjust} -% We start this off with the user tunable parameters which get -% defined even in the case of an inactive package, so that -% redefinitions and assignments to them will always work: -% \begin{macrocode} -%\ifx\PreviewBorder\@undefined -% \newdimen\PreviewBorder -% \PreviewBorder=0.50001bp -%\fi -%\ifx\PreviewBbAdjust\@undefined -% \def\PreviewBbAdjust{-\PreviewBorder -\PreviewBorder -% \PreviewBorder \PreviewBorder} -%\fi -% \end{macrocode} -% \end{macro} -% \end{macro} -% Here is stuff used for parsing this: -% \begin{macrocode} -%\ifPreview\else\expandafter\endinput\fi -%\def\pr@nextbb{\edef\next{\next\space\number\dimen@}% -% \expandafter\xdef\csname pr@bb@% -% \romannumeral\count@\endcsname{\the\dimen@}% -% \advance\count@\@ne\ifnum\count@<5 -% \afterassignment\pr@nextbb\dimen@=\fi} -% \end{macrocode} -% And here is the stuff that we fudge into our hook. Of course, we -% have to do it in a box, and we start this box off with our special. -% There is one small consideration here: it might come before any -% |\AtBeginDvi| stuff containing header specials. It turns out Dvips -% rearranges this amicably: header code specials get transferred to -% the appropriate header section, anyhow, so this ensures that we come -% right after the bop section. We insert the 7~numbers here: the -% 4~bounding box adjustments, and the 3~\TeX\ box dimensions. In case -% the box adjustments have changed since the last time, we write them -% out to the console. -% \begin{macrocode} -%\ifnum\pr@graphicstype=\z@ -% \ifcase -% \ifx\XeTeXversion\@undefined -% \ifx\pdfoutput\@undefined \@ne\fi -% \ifx\pdfoutput\relax \@ne\fi -% \ifnum\pdfoutput>\z@ \tw@\fi \@ne -% \else \thr@@\fi -% \or \ExecuteOptions{dvips}\relax -% \or \ExecuteOptions{pdftex}\relax -% \or \ExecuteOptions{xetex}\relax\fi\fi -%\global\let\pr@bbadjust\@empty -%\pr@addto@front\pr@ship@end{\begingroup -% \let\next\@gobble -% \count@\@ne\afterassignment\pr@nextbb -% \dimen@\PreviewBbAdjust -% \ifx\pr@bbadjust\next -% \else \global\let\pr@bbadjust\next -% \typeout{Preview: Tightpage \pr@bbadjust}% -% \fi\endgroup} -%\ifcase\pr@graphicstype -%\or -% \g@addto@macro\pr@ship@end{\setbox\pr@box\hbox{% -% \special{ps::\pr@bbadjust\space -% \number\ifdim\ht\pr@box>\z@ \ht\pr@box -% \else \z@ -% \fi \space -% \number\ifdim\dp\pr@box>\z@ \dp\pr@box -% \else \z@ -% \fi \space -% \number\ifdim\wd\pr@box>\z@ \wd\pr@box -% \else \z@ -% \fi}\box\pr@box}} -%\or -% \g@addto@macro\pr@ship@end{{\dimen@\ht\pr@box -% \ifdim\dimen@<\z@ \dimen@\z@\fi -% \advance\dimen@\pr@bb@iv -% \dimen@ii=\dimen@ -% \global\pdfvorigin\dimen@ -% \dimen@\dp\pr@box -% \ifdim\dimen@<\z@ \dimen@\z@\fi -% \advance\dimen@-\pr@bb@ii -% \advance\dimen@\dimen@ii -% \global\pdfpageheight\dimen@ -% \dimen@\wd\pr@box -% \ifdim\dimen@<\z@ \dimen@=\z@\fi -% \advance\dimen@-\pr@bb@i -% \advance\dimen@\pr@bb@iii -% \global\pdfpagewidth\dimen@ -% \global\pdfhorigin-\pr@bb@i}} -%\or -% \g@addto@macro\pr@ship@end{\dimen@\ht\pr@box -% \ifdim\dimen@<\z@ \dimen@\z@\fi -% \advance\dimen@\pr@bb@iv -% \dimen@ii=\dimen@ -% \voffset=-1in -% \advance\voffset\dimen@ -% \advance\voffset-\ht\pr@box -% \dimen@\dp\pr@box -% \ifdim\dimen@<\z@ \dimen@\z@\fi -% \advance\dimen@-\pr@bb@ii -% \advance\dimen@\dimen@ii -% \global\pdfpageheight\dimen@ -% \global\paperheight\dimen@ -% \dimen@\wd\pr@box -% \ifdim\dimen@<\z@ \dimen@=\z@\fi -% \advance\dimen@-\pr@bb@i -% \advance\dimen@\pr@bb@iii -% \global\pdfpagewidth\dimen@ -% \hoffset=-1in -% \advance\hoffset-\pr@bb@i -% \let\pr@offset@override\@empty} -%\fi -% \end{macrocode} -% Ok, here comes the beef. First we fish the 7~numbers from the file -% with |token| and convert them from \TeX~|sp| to PostScript points. -% \begin{macrocode} -%\ifnum\pr@graphicstype=\@ne -%\preview@delay{\AtBeginDvi{% -% \end{macrocode} -% Backwards-compatibility. Once we are certain that dvipng-1.6 or -% later is widely used, the three following specials can be exchanged -% for the simple |\special{!/preview@tightpage true def}| -% \begin{macrocode} -% \special{!/preview@tightpage true def (% -% compatibility PostScript comment for dvipng<=1.5 } -% \special{!userdict begin/bop-hook{% -% 7{currentfile token not{stop}if -% 65781.76 div DVImag mul}repeat -% 72 add 72 2 copy gt{exch}if 4 2 roll -% neg 2 copy lt{exch}if dup 0 gt{pop 0 exch}% -% {exch dup 0 lt{pop 0}if}ifelse 720 add exch 720 add -% 3 1 roll -% 4{5 -1 roll add 4 1 roll}repeat -% < /PageOffset[7 -2 roll [1 1 dtransform exch]% -% {0 ge{neg}if exch}forall]>>setpagedevice% -% //bop-hook exec}bind def end} -% \special{!userdict (some extra code to avoid -% dvipng>=1.6 unknown special: -% 7{currentfile token not{stop}if 65781.76 div })) pop} -% \end{macrocode} -% The ``userdict'' at the start of the last special is also there to -% avoid an unknown special in dvipng<=1.6. This is the end of the -% backwards-compatibility code. -% \begin{macrocode} -% \special{!userdict begin/bop-hook{% -% preview-bop-level 0 le{% -% 7{currentfile token not{stop}if -% 65781.76 div DVImag mul}repeat -% \end{macrocode} -% Next we produce the horizontal part of the bounding box as -% \[ (1\mathrm{in},1\mathrm{in}) + -% \bigl(\min(|\wd\pr@box|,0),\max(|\wd\pr@box|,0)\bigr) \] -% and roll it to the bottom of the stack: -% \begin{macrocode} -% 72 add 72 2 copy gt{exch}if 4 2 roll -% \end{macrocode} -% Next is the vertical part of the bounding box. Depth counts in -% negatively, and we again take $\min$ and $\max$ of possible extents -% in the vertical direction, limited by 0. 720 corresponds to -% $10\,\mathrm{in}$ and is the famous $1\,\mathrm{in}$ distance away -% from the edge of letterpaper. -% \begin{macrocode} -% neg 2 copy lt{exch}if dup 0 gt{pop 0 exch}% -% {exch dup 0 lt{pop 0}if}ifelse 720 add exch 720 add -% 3 1 roll -% \end{macrocode} -% Ok, we now have the bounding box on the stack in the proper order -% llx, lly, urx, ury. We add the adjustments: -% \begin{macrocode} -% 4{5 -1 roll add 4 1 roll}repeat -% \end{macrocode} -% The page size is calculated as the appropriate differences, the page -% offset consists of the coordinates of the lower left corner, with -% those coordinates negated that would be reckoned positive in the -% device coordinate system. -% \begin{macrocode} -% < /PageOffset[7 -2 roll [1 1 dtransform exch]% -% {0 ge{neg}if exch}forall]>>setpagedevice}if% -% \end{macrocode} -% So we now bind the old definition of |bop-hook| into our new -% definition and finish it. -% \begin{macrocode} -% //bop-hook exec}bind def end}}} -%\fi -% \end{macrocode} -% -% \subsection{The \texttt{showlabels} option} -% During the editing process, some people like to see the label names -% in their equations, figures and the like. Now if you are using -% Emacs for editing, and in particular \previewlatex, I'd strongly -% recommend that you check out the Ref\TeX\ package which pretty much -% obliterates the need for this kind of functionality. If you still -% want it, standard \LaTeX\ provides it with the |showkeys| package, -% and there is also the less encompassing |showlabels| package. -% Unfortunately, since those go to some pain not to change the page -% layout and spacing, they also don't change |preview|'s idea of the -% \TeX\ dimensions of the involved boxes. -% -% So those packages are mostly useless. So we present here an -% alternative hack that will get the labels through. -% \begin{macro}{\pr@labelbox} -% This works by collecting them into a separate box which we then -% tack to the right of the previews. -% \begin{macrocode} -%\ifPreview\else\expandafter\endinput\fi -%\newbox\pr@labelbox -% \end{macrocode} -% \end{macro} -% \begin{macro}{\pr@label} -% We follow up with our own definition of the \cmd{\label} macro -% which will be active only in previews. The original definition is -% stored in |\pr@@label|. |\pr@lastlabel| contains the last typeset -% label in order to avoid duplication in certain environments, and -% we keep the stuff in |\pr@labelbox|. -% \begin{macrocode} -%\def\pr@label#1{\pr@@label{#1}% -% \end{macrocode} -% Ok, now we generate the box, by placing the label below any existing -% stuff. -% \begin{macrocode} -% \ifpr@setbox\z@{#1}% -% \global\setbox\pr@labelbox\vbox{\unvbox\pr@labelbox -% \box\z@}\egroup\fi} -% \end{macrocode} -% \end{macro} -% \begin{macro}{\ifpr@setbox} -% |\ifpr@setbox| receives two arguments, |#1| is the box into which -% to set a label, |#2| is the label text itself. If a label needs -% to be set (if it is not a duplicate in the current box, and is -% nonempty, and we are in the course of typesetting and so on), we -% are left in a true conditional and an open group with the preset -% box. If nothing should be set, no group is opened, and we get -% into skipping to the closing of the conditional. Since -% |\ifpr@setbox| is a macro, you should not place the call to it -% into conditional text, since it will not pair up with |\fi| until -% being expanded. -% -% We have some trickery involved here. |\romannumeral\z@| expands -% to empty, and will also remove everything between the two of them -% that also expands to empty, like a chain of |\fi|. -% \begin{macrocode} -%\def\ifpr@setbox#1#2{% -% \romannumeral% -% \ifx\protect\@typeset@protect\ifpr@outer\else -% \end{macrocode} -% Ignore empty labels\dots -% \begin{macrocode} -% \z@\bgroup -% \protected@edef\next{#2}\@onelevel@sanitize\next -% \ifx\next\@empty\egroup\romannumeral\else -% \end{macrocode} -% and labels equal to the last one. -% \begin{macrocode} -% \ifx\next\pr@lastlabel\egroup\romannumeral\else -% \global\let\pr@lastlabel\next -% \setbox#1\pr@boxlabel\pr@lastlabel -% \expandafter\expandafter\romannumeral\fi\fi\fi\fi -% \z@\iffalse\iftrue\fi} -% \end{macrocode} -% \end{macro} -% \begin{macro}{\pr@boxlabel} -% Now the actual typesetting of a label box is done. We use a small -% typewriter font inside of a framed box (the default frame/box -% separating distance is a bit large). -% \begin{macrocode} -%\def\pr@boxlabel#1{\hbox{\normalfont -% \footnotesize\ttfamily\fboxsep0.4ex\relax\fbox{#1}}} -% \end{macrocode} -% \end{macro} -% \begin{macro}{\pr@maketag} -% And here is a version for |amsmath| equations. They look better -% when the label is right beside the tag, so we place it there, but -% augment |\box\pr@labelbox| with an appropriate placeholder. -% \begin{macrocode} -%\def\pr@maketag#1{\pr@@maketag{#1}% -% \ifpr@setbox\z@{\df@label}% -% \global\setbox\pr@labelbox\vbox{% -% \hrule\@width\wd\z@\@height\z@ -% \unvbox\pr@labelbox}% -% \end{macrocode} -% Set the width of the box to empty so that the label placement gets -% not disturbed, then append it. -% \begin{macrocode} -% \wd\z@\z@\box\z@ \egroup\fi} -% \end{macrocode} -% \end{macro} -% \begin{macro}{\pr@lastlabel} -% Ok, here is how we activate this: we clear out box and label info -% \begin{macrocode} -%\g@addto@macro\pr@ship@start{% -% \global\setbox\pr@labelbox\box\voidb@x -% \xdef\pr@lastlabel{}% -% \end{macrocode} -% The definitions above are global because we might be in any amount -% of nesting. We then reassign the appropriate labelling macros: -% \begin{macrocode} -% \global\let\pr@@label\label \let\label\pr@label -% \global\let\pr@@maketag\maketag@@@ -% \let\maketag@@@\pr@maketag -%} -% \end{macrocode} -% \end{macro} -% Now all we have to do is to add the stuff to the box in question. -% The stuff at the front works around a bug in |ntheorem.sty|. -% \begin{macrocode} -%\pr@addto@front\pr@ship@end{% -% \ifx \label\pr@label \global\let\label\pr@@label \fi -% \ifx \maketag@@@\pr@maketag -% \global\let\maketag@@@\pr@@maketag \fi -% \ifvoid\pr@labelbox -% \else \setbox\pr@box\hbox{% -% \box\pr@box\,\box\pr@labelbox}% -% \fi} -% \end{macrocode} -% \subsection{The \texttt{footnotes} option} -% This is rather simplistic right now. It overrides the default -% footnote action (which is to disable footnotes altogether for better -% visibility). -% \begin{macrocode} -%\PreviewMacro[[!]\footnote %] -% \end{macrocode} -% -% \section{Various driver files} -% The installer, in case it is missing. If it is to be used via -% |make|, we don't specify an installation path, since -% \begin{quote} -% |make install| -% \end{quote} -% is supposed to cater for the installation itself. -% \begin{macrocode} -% \input docstrip -% \askforoverwritefalse -% \generate{ -% \file{preview.drv}{\from{preview.dtx}{driver}} -% \usedir{tex/latex/preview} -% \file{preview.sty}{\from{preview.dtx}{style} -% \from{preview.dtx}{style,active}} -% \file{prauctex.def}{\from{preview.dtx}{auctex}} -% \file{prauctex.cfg}{\from{preview.dtx}{auccfg}} -% \file{prshowbox.def}{\from{preview.dtx}{showbox}} -% \file{prshowlabels.def}{\from{preview.dtx}{showlabels}} -% \file{prtracingall.def}{\from{preview.dtx}{tracingall}} -% \file{prtightpage.def}{\from{preview.dtx}{tightpage}} -% \file{prlyx.def}{\from{preview.dtx}{lyx}} -% \file{prcounters.def}{\from{preview.dtx}{counters}} -% \file{prfootnotes.def}{\from{preview.dtx}{footnotes}} -% } -% \endbatchfile -% \end{macrocode} -% And here comes the documentation driver. -% \begin{macrocode} -% \documentclass{ltxdoc} -% \usepackage{preview} -% \let\ifPreview\relax -% \newcommand\previewlatex{\texttt{preview-latex}} -% \begin{document} -% \DocInput{preview.dtx} -% \end{document} -% \end{macrocode} -% \Finale{} -% \iffalse -% Local Variables: -% mode: doctex -% TeX-master: "preview.drv" -% End: -% \fi diff -Nru auctex-11.88/preview/latex/README auctex-11.90/preview/latex/README --- auctex-11.88/preview/latex/README 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/preview/latex/README 1970-01-01 00:00:00.000000000 +0000 @@ -1,64 +0,0 @@ -The preview.sty style file -========================== - -Purpose -------- - -The main purpose of the preview package is the extraction of selected -elements from a LaTeX source, like formulas or graphics, into separate -pages of a DVI file. A flexible and convenient interface allows it to -specify what commands and constructs should be extracted. This works -with DVI files postprocessed by either Dvips and Ghostscript or -dvipng, but it also works when you are using PDFTeX for generating PDF -files. - -Current uses of the package include the preview-latex package for -WYSIWYG functionality in the AUCTeX editing environment, generation of -previews in LyX, as part of the operation of the ps4pdf and pst-pdf -packages, the tbook XML system and some other tools. - -Availability ------------- - -The preview package is being developed along and distributed with -AUCTeX. It can therefore be obtained as part of AUCTeX distribution -files available at or its -mirror at . CTAN also provides a standalone -version at . The project page at - offers downloads and -anonymous CVS access for cutting edge versions. For more information -about the preview package please refer to the home page of AUCTeX at -. - -Installation ------------- - -To install the preview style file on its own without the entire AUCTeX -package, run -tex preview.ins -If preview.ins happens to be missing, you can regenerate it by running -tex docstrip -on preview.dtx with the option `installer'. - -Running TeX on preview.ins will then extract further files: -preview.drv which you can run through LaTeX in order to get the -documentation for preview.sty, preview.sty itself, a bunch of option -files with extension .def and a few configuration files with extension -.cfg. In case your docstrip configuration has not already taken care -of that, install the files with extension .sty, .def and .cfg to a -location where LaTeX will be able to find them, generate the -documentation and have fun. - -The license of the original file is the GPL which you'll find a copy -of in the complete AUCTeX distribution. The distribution will also -unpack and install the respective LaTeX files with an -autoconf-supported mechanism, so you might consider using that. - -Bug reporting -------------- - -Please report problems to , including a -small example file which uses the \listfiles statement, and the -resulting log file. - -David Kastrup diff -Nru auctex-11.88/preview/Makefile.in auctex-11.90/preview/Makefile.in --- auctex-11.88/preview/Makefile.in 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/preview/Makefile.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,162 +0,0 @@ -# Makefile for AUCTeX - -# Maintainer: auctex-devel@gnu.org - -# Copyright (C) 2001, 2002, 2003, 2004, 2005, -# 2006 Free Software Foundation, Inc. - -# This file is part of AUCTeX. - -# AUCTeX is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3, or (at your option) -# any later version. - -# AUCTeX is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with AUCTeX; see the file COPYING. If not, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, -# MA 02110-1301, USA. - -@SET_MAKE@ -PACKAGE=preview -PACKAGE_INFO=preview-latex -EMACS=@EMACS@ -ELCC=$(EMACS) -batch -q -no-site-file -no-init-file -AUCTEX=-eval '(let ((dir (pop command-line-args-left))) \ - (if (not (string-equal dir "")) (push dir load-path)))' $(auctexdir) --eval '(push "." load-path)' -AUTOLOAD=--eval '(let ((generated-autoload-file (expand-file-name "$@"))) \ - (update-file-autoloads "preview.el")(save-buffers-kill-emacs t))' - -LISP_SOURCES = @PLAT_LISP@ preview.el -LISP_OBJS = $(LISP_SOURCES:.el=.elc) - -ICON_SOURCES = \ - images/prverr16.xpm images/prverr20.xpm images/prverr24.xbm \ - images/prverr24.xpm images/prvtex-cap-up.xpm images/prvtex12.xbm \ - images/prvtex12.xpm images/prvtex16.xbm images/prvtex16.xpm \ - images/prvtex20.xpm images/prvtex24.xbm images/prvtex24.xpm \ - images/prvwrk12.xpm images/prvwrk14.xpm images/prvwrk16.xpm \ - images/prvwrk20.xpm images/prvwrk24.xbm images/prvwrk24.xpm - -prefix = @prefix@$(null) -exec_prefix = @exec_prefix@$(null) -libdir = @libdir@$(null) -packagedatadir = @packagedatadir@$(null) -datarootdir = @datarootdir@$(null) -datadir = @datadir@$(null) -previewstartfile = @previewstartfile@ -packagedir = @packagedir@$(null) -packagelispdir = @packagelispdir@$(null) -auctexdir = @auctexdir@$(null) -DESTDIR= - -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -MKINSTALLDIRS = ../mkinstalldirs - -all: texmf lisp install-hint - -lisp: $(LISP_OBJS) - test "x$(packagedir)" != xno || $(MAKE) preview-latex.el - -texmf: latex/Makefile - (cd latex ; $(MAKE) all) - -latex/Makefile: latex/Makefile.in Makefile config.status - ./config.status - -auto.el: auto.el.in Makefile config.status - ./config.status - -configure: configure.ac ../aclocal.m4 - autoconf -I.. - -Makefile: Makefile.in config.status - ./config.status - -config.status: configure - ./config.status --recheck - -install-hint: - @echo 'Congratulations! Build is complete.' - @echo - @echo 'Now, run "make install" as root, or whatever user has permissions' - @echo 'to write to the install directory.' - - -.PHONY: install install-texmf install-el install-images install-startup \ - install-nosearch use-hint all lisp texmf - -install: install-texmf install-el install-nosearch install-images \ - install-startup use-hint - -use-hint: - @echo "Installation completed." - @echo - @echo "Read the PROBLEMS file if you experience problems." - @echo "Please use M-x preview-report-bug if you experience any" - @echo "problems not mentioned in there." - -install-el: $(LISP_OBJS) auto.el - -$(MKINSTALLDIRS) $(DESTDIR)$(packagelispdir) - for x in $(LISP_SOURCES) ; do \ - echo $(INSTALL_DATA) $$x $(DESTDIR)$(packagelispdir) ; \ - $(INSTALL_DATA) $$x $(DESTDIR)$(packagelispdir) ; \ - echo $(INSTALL_DATA) $${x}c $(DESTDIR)$(packagelispdir) ; \ - $(INSTALL_DATA) $${x}c $(DESTDIR)$(packagelispdir) ; \ - done - -install-nosearch: - -$(MKINSTALLDIRS) $(DESTDIR)$(packagedatadir) - : >$(DESTDIR)$(packagedatadir)/.nosearch - -install-images: $(ICON_SOURCES) - -$(MKINSTALLDIRS) $(DESTDIR)$(packagedatadir)/images - for x in $(ICON_SOURCES); do \ - echo $(INSTALL_DATA) $$x $(DESTDIR)$(packagedatadir)/images ; \ - $(INSTALL_DATA) $$x $(DESTDIR)$(packagedatadir)/images ; \ - done - -install-texmf: - (cd latex ; $(MAKE) DESTDIR=$(DESTDIR) install) - -install-startup: - test $(packagedir) != no || $(MAKE) preview-latex.el - test $(packagedir) != no || \ - $(INSTALL_DATA) preview-latex.el $(DESTDIR)$(previewstartfile) - -$(LISP_OBJS): $(LISP_SOURCES) - for x in $(LISP_SOURCES) ; do \ - echo $(ELCC) $(AUCTEX) -f batch-byte-compile $$x ; \ - $(ELCC) $(AUCTEX) -f batch-byte-compile $$x ; \ - done - -preview-latex.el: preview.el auto.el - rm -f preview-latex.el - -$(EMACS) -batch -no-site-file -no-init-file $(AUTOLOAD) ; \ - test -r $@ || { \ - echo ";; Auto-generated preview-latex.el" > $@ ; \ - echo " " >> $@ ; \ - $(EMACS) -batch -no-site-file -no-init-file $(AUTOLOAD) ; \ - } - cat auto.el >> $@ - -.PHONY: clean distclean maintainer-clean tarball-ready - -clean: - rm -f latex.out testdocstrip.tex preview-latex.el - rm -rf *.prv *.elc *~ *.aux *.dvi *.log - (cd latex ; $(MAKE) clean) - -distclean: clean - rm -f config.log config.cache config.status - rm -f Makefile */Makefile auto.el - -maintainer-clean: - $(MAKE) distclean - rm -rf autom4te.cache diff -Nru auctex-11.88/preview/preview.el.in auctex-11.90/preview/preview.el.in --- auctex-11.88/preview/preview.el.in 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/preview/preview.el.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,3606 +0,0 @@ -;;; preview.el --- embed preview LaTeX images in source buffer - -;; Copyright (C) 2001-2006, 2010-2014 Free Software Foundation, Inc. - -;; Author: David Kastrup -;; Keywords: tex, wp, convenience - -;; This file is free software; you can redistribute it and/or modify -;; it under the terms of the GNU General Public License as published by -;; the Free Software Foundation; either version 3, or (at your option) -;; any later version. - -;; This file is distributed in the hope that it will be useful, -;; but WITHOUT ANY WARRANTY; without even the implied warranty of -;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -;; GNU General Public License for more details. - -;; You should have received a copy of the GNU General Public License -;; along with GNU Emacs; see the file COPYING. If not, write to -;; the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, -;; Boston, MA 02110-1301, USA. - -;;; Commentary: - -;; This style is for the "seamless" embedding of generated images -;; into LaTeX source code. Please see the README and INSTALL files -;; for further instruction. -;; -;; Please use the usual configure script for installation: more than -;; just Elisp files are involved: a LaTeX style, icon files, startup -;; code and so on. -;; -;; Quite a few things with regard to preview-latex's operation can be -;; configured by using -;; M-x customize-group RET preview RET -;; -;; Please report bugs with M-x preview-report-bug RET. - -;;; Code: - -(require 'tex-site) -(require 'tex) -(require 'tex-buf) -(require 'latex) - -(eval-when-compile - (condition-case nil - (require 'desktop) - (file-error (message "Missing desktop package: -preview-latex buffers will not survive across sessions."))) - (condition-case nil - (require 'reporter) - (file-error (message "Missing reporter library, probably from the mail-lib package: -preview-latex's bug reporting commands will probably not work."))) - (require 'info) - (defvar error)) - -;; we need the compatibility macros which do _not_ get byte-compiled. -(eval-when-compile - (if (featurep 'xemacs) - (load-library "prv-xemacs.el"))) - -;; if the above load-library kicked in, this will not cause anything -;; to get loaded. -(require (if (featurep 'xemacs) - 'prv-xemacs 'prv-emacs)) - -(defgroup preview nil "Embed Preview images into LaTeX buffers." - :group 'AUCTeX - :prefix "preview-" - :link '(custom-manual "(preview-latex)Top") - :link '(info-link "(preview-latex)The Emacs interface") - :link '(url-link :tag "Homepage" "http://www.gnu.org/software/auctex/")) - -(defgroup preview-gs nil "Preview's Ghostscript renderer." - :group 'preview - :prefix "preview-") - -(defgroup preview-appearance nil "Preview image appearance." - :group 'preview - :prefix "preview-") - -(defconst preview-specs-type - '(repeat - (list :tag "Image spec" - ;; Use an extra :value keyword to avoid a bug in - ;; `widget-convert' of XEmacs 21.4 and Emacs 21. - ;; Analogously for the following `const' statements. - (const :format "" :value :type) - (choice :tag "Image type" - (const xpm) - (const xbm) - (symbol :tag "Other")) - (set :inline t :tag "Minimum font size" - (list :inline t :tag "" - (const :format "" :value :min) - (integer :tag "pixels"))) - (const :format "" :value :file) (string :tag "Filename") - (set :inline t :tag "Ascent ratio" - (list :inline t :tag "" - (const :format "" :value :ascent) - (integer :tag "percent of image" - :value 50)))))) - -(defun preview-specs-setter (symbol value) - "Set SYMBOL to VALUE and clear `preview-min-alist' property. -This is used in icon specs, so that customizing will -clear cached icons." - (put symbol 'preview-min-alist nil) - (set-default symbol value)) - -(defcustom preview-nonready-icon-specs - '((:type xpm :min 26 :file "prvwrk24.xpm" :ascent 90) - (:type xpm :min 22 :file "prvwrk20.xpm" :ascent 90) - (:type xpm :min 17 :file "prvwrk16.xpm" :ascent 90) - (:type xpm :min 15 :file "prvwrk14.xpm" :ascent 90) - (:type xpm :file "prvwrk12.xpm" :ascent 90) - (:type xbm :file "prvwrk24.xbm" :ascent 90)) - "The icon used for previews to be generated. -The spec must begin with `:type'. File names are relative to -`load-path' and `data-directory', a spec `:min' requires a -minimal pixel height for `preview-reference-face' before the spec -will be considered. Since evaluating the `:file' spec takes -considerable time under XEmacs, it should come after the `:min' -spec to avoid unnecessary evaluation time." - :group 'preview-appearance - :type preview-specs-type - :set #'preview-specs-setter) - -(defvar preview-nonready-icon) - -(defcustom preview-error-icon-specs - '((:type xpm :min 22 :file "prverr24.xpm" :ascent 90) - (:type xpm :min 18 :file "prverr20.xpm" :ascent 90) - (:type xpm :file "prverr16.xpm" :ascent 90) - (:type xbm :file "prverr24.xbm" :ascent 90)) - "The icon used for PostScript errors. -The spec must begin with `:type'. File names are relative to -`load-path' and `data-directory', a spec `:min' requires a -minimal pixel height for `preview-reference-face' before the spec -will be considered. Since evaluating the `:file' spec takes -considerable time under XEmacs, it should come after the `:min' -spec to avoid unnecessary evaluation time." - :group 'preview-appearance - :type preview-specs-type - :set #'preview-specs-setter -) - -(defvar preview-error-icon) - -(defcustom preview-icon-specs - '((:type xpm :min 24 :file "prvtex24.xpm" :ascent 75) - (:type xpm :min 20 :file "prvtex20.xpm" :ascent 75) - (:type xpm :min 16 :file "prvtex16.xpm" :ascent 75) - (:type xpm :file "prvtex12.xpm" :ascent 75) - (:type xbm :min 24 :file "prvtex24.xbm" :ascent 75) - (:type xbm :min 16 :file "prvtex16.xbm" :ascent 75) - (:type xbm :file "prvtex12.xbm" :ascent 75)) - "The icon used for an open preview. -The spec must begin with `:type'. File names are relative to -`load-path' and `data-directory', a spec `:min' requires a -minimal pixel height for `preview-reference-face' before the spec -will be considered. Since evaluating the `:file' spec takes -considerable time under XEmacs, it should come after the `:min' -spec to avoid unnecessary evaluation time." - :group 'preview-appearance - :type preview-specs-type - :set #'preview-specs-setter) - -(defvar preview-icon) - -(defgroup preview-latex nil "LaTeX options for preview." - :group 'preview - :prefix "preview-") - -(defcustom preview-image-creators - '((dvipng - (open preview-gs-open preview-dvipng-process-setup) - (place preview-gs-place) - (close preview-dvipng-close)) - (png (open preview-gs-open) - (place preview-gs-place) - (close preview-gs-close)) - (jpeg (open preview-gs-open) - (place preview-gs-place) - (close preview-gs-close)) - (pnm (open preview-gs-open) - (place preview-gs-place) - (close preview-gs-close)) - (tiff (open preview-gs-open) - (place preview-gs-place) - (close preview-gs-close))) - "Define functions for generating images. -These functions get called in the process of generating inline -images of the specified type. The open function is called -at the start of a rendering pass, the place function for -placing every image, the close function at the end of -the pass. Look at the documentation of the various -functions used here for the default settings, and at -the function `preview-call-hook' through which those are -called. Additional argument lists specified in here -are passed to the functions before any additional -arguments given to `preview-call-hook'. - -Not all of these image types may be supported by your copy -of Ghostscript, or by your copy of Emacs." - :group 'preview-gs - :type '(alist :key-type (symbol :tag "Preview's image type") - :value-type - (alist :tag "Handler" :key-type (symbol :tag "Operation:") - :value-type (list :tag "Handler" - (function :tag "Handler function") - (repeat :tag "Additional \ -function args" :inline t sexp)) - :options (open place close)))) - -(defcustom preview-gs-image-type-alist - '((png png "-sDEVICE=png16m") - (dvipng png "-sDEVICE=png16m") - (jpeg jpeg "-sDEVICE=jpeg") - (pnm pbm "-sDEVICE=pnmraw") - (tiff tiff "-sDEVICE=tiff12nc")) - "*Alist of image types and corresponding Ghostscript options. -The `dvipng' and `postscript' (don't use) entries really specify -a fallback device when images can't be processed by the requested -method, like when PDFTeX was used." - :group 'preview-gs - :type '(repeat (list :tag nil (symbol :tag "preview image-type") - (symbol :tag "Emacs image-type") - (repeat :inline t :tag "Ghostscript options" string)))) - -(defcustom preview-image-type 'png - "*Image type to be used in images." - :group 'preview-gs - :type (append '(choice) - (mapcar (lambda (symbol) (list 'const (car symbol))) - preview-image-creators) - '((symbol :tag "Other")))) - -(defun preview-call-hook (symbol &rest rest) - "Call a function from `preview-image-creators'. -This looks up SYMBOL in the `preview-image-creators' entry -for the image type `preview-image-type' and calls the -hook function given there with the arguments specified there -followed by REST. If such a function is specified in there, -that is." - (let ((hook (cdr (assq symbol - (cdr (assq preview-image-type - preview-image-creators)))))) - (when hook - (apply (car hook) (append (cdr hook) rest))))) - - -(defvar TeX-active-tempdir nil - "List of directory name, top directory name and reference count.") -(make-variable-buffer-local 'TeX-active-tempdir) - -(defcustom preview-bb-filesize 1024 - "Size of file area scanned for bounding box information." - :group 'preview-gs :type 'integer) - -(defcustom preview-preserve-indentation t - "*Whether to keep additional whitespace at the left of a line." - :group 'preview-appearance :type 'boolean) - -(defun preview-extract-bb (filename) - "Extract EPS bounding box vector from FILENAME." - (with-temp-buffer - (insert-file-contents-literally filename nil 0 preview-bb-filesize - t) - (goto-char (point-min)) - (when (search-forward-regexp "%%BoundingBox:\ - +\\([-+]?[0-9.]+\\)\ - +\\([-+]?[0-9.]+\\)\ - +\\([-+]?[0-9.]+\\)\ - +\\([-+]?[0-9.]+\\)" nil t) - (vector - (if preview-preserve-indentation - (min 72 (string-to-number (match-string 1))) - (string-to-number (match-string 1))) - (string-to-number (match-string 2)) - (string-to-number (match-string 3)) - (string-to-number (match-string 4)) - )))) - -(defcustom preview-prefer-TeX-bb nil - "*Prefer TeX bounding box to EPS one if available. -If `preview-fast-conversion' is set, this option is not - consulted since the TeX bounding box has to be used anyway." - :group 'preview-gs - :type 'boolean) - -(defcustom preview-TeX-bb-border 0.5 - "*Additional space in pt around Bounding Box from TeX." - :group 'preview-gs - :type 'number) - -(defvar preview-coding-system nil - "Coding system used for LaTeX process.") -(make-variable-buffer-local 'preview-coding-system) -(defvar preview-parsed-font-size nil - "Font size as parsed from the log of LaTeX run.") -(make-variable-buffer-local 'preview-parsed-font-size) -(defvar preview-parsed-magnification nil - "Magnification as parsed from the log of LaTeX run.") -(make-variable-buffer-local 'preview-parsed-magnification) -(defvar preview-parsed-pdfoutput nil - "PDFoutput as parsed from the log of LaTeX run.") -(make-variable-buffer-local 'preview-parsed-pdfoutput) -(defvar preview-parsed-counters nil - "Counters as parsed from the log of LaTeX run.") -(make-variable-buffer-local 'preview-parsed-counters) -(defvar preview-parsed-tightpage nil - "Tightpage as parsed from the log of LaTeX run.") -(make-variable-buffer-local 'preview-parsed-tightpage) - -(defun preview-get-magnification () - "Get magnification from `preview-parsed-magnification'." - (if preview-parsed-magnification - (/ preview-parsed-magnification 1000.0) 1.0)) - -(defun preview-TeX-bb (list) - "Calculate bounding box from (ht dp wd). -LIST consists of TeX dimensions in sp (1/65536 TeX point)." - (and - (consp list) - (let* ((dims (vconcat (mapcar - #'(lambda (x) - (/ x 65781.76)) list))) - (box - (vector - (+ 72 (min 0 (aref dims 2))) - (+ 720 (min (aref dims 0) (- (aref dims 1)) 0)) - (+ 72 (max 0 (aref dims 2))) - (+ 720 (max (aref dims 0) (- (aref dims 1)) 0)))) - (border (if preview-parsed-tightpage - (vconcat (mapcar - #'(lambda(x) - (/ x 65781.76)) preview-parsed-tightpage)) - (vector (- preview-TeX-bb-border) - (- preview-TeX-bb-border) - preview-TeX-bb-border - preview-TeX-bb-border)))) - (dotimes (i 4 box) - (aset box i (+ (aref box i) (aref border i))))))) - -(defcustom preview-gs-command - (or ;; The GS wrapper coming with TeX Live - (executable-find "rungs") - ;; The MikTeX builtin GS - (let ((gs (executable-find "mgs"))) - ;; Check if mgs is functional for external non-MikTeX apps. - ;; See http://blog.miktex.org/post/2005/04/07/Starting-mgsexe-at-the-DOS-Prompt.aspx - (when (and gs (= 0 (shell-command (concat gs " -q -dNODISPLAY -c quit")))) - gs)) - ;; Windows ghostscript - (executable-find "GSWIN32C.EXE") - ;; standard GhostScript - (executable-find "gs")) - "*How to call gs for conversion from EPS. See also `preview-gs-options'." - :group 'preview-gs - :type 'string) - -(defcustom preview-gs-options '("-q" "-dDELAYSAFER" "-dNOPAUSE" - "-DNOPLATFONTS" "-dPrinted" - "-dTextAlphaBits=4" - "-dGraphicsAlphaBits=4") - "*Options with which to call gs for conversion from EPS. -See also `preview-gs-command'." - :group 'preview-gs - :type '(repeat string)) - -(defvar preview-gs-queue nil - "List of overlays to convert using gs. -Buffer-local to the appropriate TeX process buffer.") -(make-variable-buffer-local 'preview-gs-queue) - -(defvar preview-gs-outstanding nil - "Overlays currently processed.") -(make-variable-buffer-local 'preview-gs-outstanding) - -(defcustom preview-gs-outstanding-limit 2 - "*Number of requests allowed to be outstanding. -This is the number of not-yet-completed requests we -might at any time have piped into Ghostscript. If -this number is larger, the probability of Ghostscript -working continuously is higher when Emacs is rather -busy. If this number is smaller, redisplay will -follow changes in the displayed buffer area faster." - :group 'preview-gs - :type '(restricted-sexp - :match-alternatives - ((lambda (value) (and - (integerp value) - (> value 0) - (< value 10)))) - :tag "small number")) - -(defvar preview-gs-answer nil - "Accumulated answer of Ghostscript process.") -(make-variable-buffer-local 'preview-gs-answer) - -(defvar preview-gs-image-type nil - "Image type for gs produced images.") -(make-variable-buffer-local 'preview-gs-image-type) - -(defvar preview-gs-sequence nil - "Pair of sequence numbers for gs produced images.") -(make-variable-buffer-local 'preview-gs-sequence) - -(defvar preview-scale nil - "Screen scale of images. -Magnify by this factor to make images blend with other -screen content. Buffer-local to rendering buffer.") -(make-variable-buffer-local 'preview-scale) - -(defvar preview-colors nil - "Color setup list. -An array with elements 0, 1 and 2 for background, -foreground and border colors, respectively. Each element -is a list of 3 real numbers between 0 and 1, or NIL -of nothing special should be done for the color") -(make-variable-buffer-local 'preview-colors) - -(defvar preview-gs-init-string nil - "Ghostscript setup string.") -(make-variable-buffer-local 'preview-gs-init-string) - -(defvar preview-ps-file nil - "PostScript file name for fast conversion.") -(make-variable-buffer-local 'preview-ps-file) - -(defvar preview-gs-dsc nil - "Parsed DSC information.") -(make-variable-buffer-local 'preview-gs-dsc) - -(defvar preview-resolution nil - "Screen resolution where rendering started. -Cons-cell of x and y resolution, given in -dots per inch. Buffer-local to rendering buffer.") -(make-variable-buffer-local 'preview-resolution) - -(defun preview-gs-resolution (scale xres yres) - "Generate resolution argument for gs. -Calculated from real-life factor SCALE and XRES and -YRES, the screen resolution in dpi." - (format "-r%gx%g" - (/ (* scale xres) (preview-get-magnification)) - (/ (* scale yres) (preview-get-magnification)))) - -(defun preview-gs-behead-outstanding (err) - "Remove leading element of outstanding queue after error. -Return element if non-nil. ERR is the error string to -show as response of Ghostscript." - (let ((ov (pop preview-gs-outstanding))) - (when ov - (preview-gs-flag-error ov err) - (overlay-put ov 'queued nil)) - ov)) - -(defvar preview-gs-command-line nil) -(make-variable-buffer-local 'preview-gs-command-line) -(defvar preview-gs-file nil) -(make-variable-buffer-local 'preview-gs-file) - -(defcustom preview-fast-conversion t - "*Set this for single-file PostScript conversion. -This will have no effect when `preview-image-type' is -set to `postscript'." - :group 'preview-latex - :type 'boolean) - -(defun preview-string-expand (arg &optional separator) - "Expand ARG as a string. -It can already be a string. Or it can be a list, then it is -recursively evaluated using SEPARATOR as separator. If a list -element is in itself a CONS cell, the CAR of the list (after symbol -dereferencing) can evaluate to either a string, in which case it is -used as a separator for the rest of the list, -or a boolean (t or nil) in which case the rest of the list is -either evaluated and concatenated or ignored, respectively. -ARG can be a symbol, and so can be the CDR -of a cell used for string concatenation." - (cond - ((stringp arg) arg) - ((consp arg) - (mapconcat - #'identity - (delq nil - (mapcar - (lambda(x) - (if (consp x) - (let ((sep (car x))) - (while (and (symbolp sep) - (not (memq sep '(t nil)))) - (setq sep (symbol-value sep))) - (if (stringp sep) - (preview-string-expand (cdr x) sep) - (and sep - (preview-string-expand (cdr x))))) - (preview-string-expand x))) - arg)) - (or separator ""))) - ((and (symbolp arg) (not (memq arg '(t nil)))) - (preview-string-expand (symbol-value arg) separator)) - (t (error "Bad string expansion")))) - -(defconst preview-expandable-string - ((lambda (f) (funcall f (funcall f 'sexp))) - (lambda (x) - `(choice - string - (repeat :tag "Concatenate" - (choice - string - (cons :tag "Separated list" - (choice (string :tag "Separator") - (symbol :tag "Indirect separator or flag")) - ,x) - (symbol :tag "Indirect variable (no separator)"))) - (symbol :tag "Indirect variable (with separator)")))) - "Type to be used for `preview-string-expand'. -Just a hack until we get to learn how to do this properly. -Recursive definitions are not popular with Emacs, -so we define this type just two levels deep. This -kind of expandible string can either be just a string, or a -cons cell with a separator string in the CAR, and either -an explicit list of elements in the CDR, or a symbol to -be consulted recursively.") - -(defcustom preview-dvipng-command - "dvipng -picky -noghostscript %d -o \"%m/prev%%03d.png\"" - "*Command used for converting to separate PNG images. - -You might specify options for converting to other image types, -but then you'll need to adapt `preview-dvipng-image-type'." - :group 'preview-latex - :type 'string) - -(defcustom preview-dvipng-image-type - 'png - "*Image type that dvipng produces. - -You'll need to change `preview-dvipng-command' too, -if you customize this." - :group 'preview-latex - :type '(choice (const png) - (const gif) - (symbol :tag "Other" :value png))) - -(defcustom preview-dvips-command - "dvips -Pwww -i -E %d -o %m/preview.000" - "*Command used for converting to separate EPS images." - :group 'preview-latex - :type 'string) - -(defcustom preview-fast-dvips-command - "dvips -Pwww %d -o %m/preview.ps" - "*Command used for converting to a single PS file." - :group 'preview-latex - :type 'string) - -(defcustom preview-pdf2dsc-command - "pdf2dsc %s.pdf %m/preview.dsc" - "*Command used for generating dsc from a PDF file." - :group 'preview-latex - :type 'string) - -(defun preview-gs-queue-empty () - "Kill off everything remaining in `preview-gs-queue'." - (mapc #'preview-delete preview-gs-outstanding) - (dolist (ov preview-gs-queue) - (if (overlay-get ov 'queued) - (preview-delete ov))) - (setq preview-gs-outstanding nil) - (setq preview-gs-queue nil)) - -(defvar preview-error-condition nil - "Last error raised and to be reported.") - -(defun preview-log-error (err context &optional process) - "Log an error message to run buffer. -ERR is the caught error syndrome, CONTEXT is where it -occured, PROCESS is the process for which the run-buffer -is to be used." - (when (or (null process) (buffer-name (process-buffer process))) - (with-current-buffer (or (and process - (process-buffer process)) - (current-buffer)) - (save-excursion - (goto-char (or (and process - (process-buffer process) - (marker-buffer (process-mark process)) - (process-mark process)) - (point-max))) - (insert-before-markers - (format "%s: %s\n" - context (error-message-string err))) - (display-buffer (current-buffer))))) - (setq preview-error-condition err)) - -(defun preview-reraise-error (&optional process) - "Raise an error that has been logged. -Makes sure that PROCESS is removed from the \"Compilation\" -tag in the mode line." - (when preview-error-condition - (unwind-protect - (signal (car preview-error-condition) (cdr preview-error-condition)) - (setq preview-error-condition nil - compilation-in-progress (delq process compilation-in-progress))))) - -(defun preview-gs-sentinel (process string) - "Sentinel function for rendering process. -Gets the default PROCESS and STRING arguments -and tries to restart Ghostscript if necessary." - (condition-case err - (let ((status (process-status process))) - (when (memq status '(exit signal)) - (setq compilation-in-progress (delq process compilation-in-progress))) - (when (buffer-name (process-buffer process)) - (with-current-buffer (process-buffer process) - (goto-char (point-max)) - (insert-before-markers "\n" mode-name " " string) - (forward-char -1) - (insert " at " - (substring (current-time-string) 0 -5)) - (forward-char 1) - (TeX-command-mode-line process) - (when (memq status '(exit signal)) - ;; process died. - ;; Throw away culprit, go on. - (let* ((err (concat preview-gs-answer "\n" - (process-name process) " " string)) - (ov (preview-gs-behead-outstanding err))) - (when (and (null ov) preview-gs-queue) - (save-excursion - (goto-char (if (marker-buffer (process-mark process)) - (process-mark process) - (point-max))) - (insert-before-markers err))) - (delete-process process) - (if (or (null ov) - (eq status 'signal)) - ;; if process was killed explicitly by signal, or if nothing - ;; was processed, we give up on the matter altogether. - (progn - (when preview-ps-file - (condition-case nil - (preview-delete-file preview-ps-file) - (file-error nil))) - (preview-gs-queue-empty)) - - ;; restart only if we made progress since last call - (let (filenames) - (dolist (ov preview-gs-outstanding) - (setq filenames (overlay-get ov 'filenames)) - (condition-case nil - (preview-delete-file (nth 1 filenames)) - (file-error nil)) - (setcdr filenames nil))) - (setq preview-gs-queue (nconc preview-gs-outstanding - preview-gs-queue)) - (setq preview-gs-outstanding nil) - (preview-gs-restart))))))) - (error (preview-log-error err "Ghostscript" process))) - (preview-reraise-error process)) - -(defun preview-gs-filter (process string) - "Filter function for processing Ghostscript output. -Gets the usual PROCESS and STRING parameters, see -`set-process-filter' for a description." - (with-current-buffer (process-buffer process) - (setq preview-gs-answer (concat preview-gs-answer string)) - (while (string-match "GS\\(<[0-9]+\\)?>" preview-gs-answer) - (let* ((pos (match-end 0)) - (answer (substring preview-gs-answer 0 pos))) - (setq preview-gs-answer (substring preview-gs-answer pos)) - (condition-case err - (preview-gs-transact process answer) - (error (preview-log-error err "Ghostscript filter" process)))))) - (preview-reraise-error)) - -(defun preview-gs-restart () - "Start a new Ghostscript conversion process." - (when preview-gs-queue - (if preview-gs-sequence - (setcar preview-gs-sequence (1+ (car preview-gs-sequence))) - (setq preview-gs-sequence (list 1))) - (setcdr preview-gs-sequence 1) - (let* ((process-connection-type nil) - (outfile (format "-dOutputFile=%s" - (preview-ps-quote-filename - (format "%s/pr%d-%%d.%s" - (car TeX-active-tempdir) - (car preview-gs-sequence) - preview-gs-image-type)))) - (process - (apply #'start-process - "Preview-Ghostscript" - (current-buffer) - preview-gs-command - outfile - preview-gs-command-line))) - (goto-char (point-max)) - (insert-before-markers "Running `Preview-Ghostscript' with ``" - (mapconcat #'shell-quote-argument - (append - (list preview-gs-command - outfile) - preview-gs-command-line) - " ") "''\n") - (setq preview-gs-answer "") - (process-kill-without-query process) - (set-process-sentinel process #'preview-gs-sentinel) - (set-process-filter process #'preview-gs-filter) - (process-send-string process preview-gs-init-string) - (setq mode-name "Preview-Ghostscript") - (push process compilation-in-progress) - (TeX-command-mode-line process) - (set-buffer-modified-p (buffer-modified-p)) - process))) - -(defun preview-gs-open (&optional setup) - "Start a Ghostscript conversion pass. -SETUP may contain a parser setup function." - (let ((image-info (assq preview-image-type preview-gs-image-type-alist))) - (setq preview-gs-image-type (nth 1 image-info)) - (setq preview-gs-sequence nil) - (setq preview-gs-command-line (append - preview-gs-options - (nthcdr 2 image-info)) - preview-gs-init-string - (format "{DELAYSAFER{.setsafe}if}stopped pop\ -/.preview-BP currentpagedevice/BeginPage get dup \ -null eq{pop{pop}bind}if def\ -<>setpagedevice\ -/preview-do{[count 3 roll save]3 1 roll dup length 0 eq\ -{pop}{setpagedevice}{ifelse .runandhide}\ -stopped{handleerror quit}if \ -aload pop restore}bind def " - (preview-gs-color-string preview-colors))) - (preview-gs-queue-empty) - (preview-parse-messages (or setup #'preview-gs-dvips-process-setup)))) - -(defun preview-gs-color-value (value) - "Return string to be used as color value for an RGB component. -Conversion from Emacs color numbers (0 to 65535) in VALUE -to Ghostscript floats." - (format "%g" (/ value 65535.0))) - -(defun preview-pdf-color-string (colors) - "Return a string that patches PDF foreground color to work properly." - ;; Actually, this is rather brutal. It will only be invoked in - ;; cases, however, where previously it was not expected that - ;; anything readable turned up, anyway. - (let ((fg (aref colors 1))) - (if fg - (concat - "/GS_PDF_ProcSet GS_PDF_ProcSet dup maxlength dict copy dup begin\ -/graphicsbeginpage{//graphicsbeginpage exec " - (mapconcat #'preview-gs-color-value fg " ") - " 3 copy rg RG}bind store end readonly store ")))) - -(defun preview-gs-color-string (colors) - "Return a string setting up colors" - (let ((bg (aref colors 0)) - (fg (aref colors 1)) - (mask (aref colors 2)) - (border (aref colors 3))) - (concat - (and (or (and mask border) (and bg (not fg))) - "gsave ") - (and bg - (concat - (mapconcat #'preview-gs-color-value bg " ") - " setrgbcolor clippath fill ")) - (and mask border - (format "%s setrgbcolor false setstrokeadjust %g \ -setlinewidth clippath strokepath \ -matrix setmatrix true \ -{2 index{newpath}if round exch round exch moveto pop false}\ -{round exch round exch lineto}{curveto}{closepath}\ -pathforall pop fill " - (mapconcat #'preview-gs-color-value mask " ") - (* 2 border))) - ;; I hate antialiasing. Warp border to integral coordinates. - (and (or (and mask border) (and bg (not fg))) - "grestore ") - (and fg - (concat - (mapconcat #'preview-gs-color-value fg " ") - " setrgbcolor"))))) - -(defun preview-dvipng-color-string (colors res) - "Return color setup tokens for dvipng. -Makes a string of options suitable for passing to dvipng. -Pure borderless black-on-white will return an empty string." - (let - ((bg (aref colors 0)) - (fg (aref colors 1)) - (mask (aref colors 2)) - (border (aref colors 3))) - (concat - (and bg - (format "--bg 'rgb %s' " - (mapconcat #'preview-gs-color-value bg " "))) - (and fg - (format "--fg 'rgb %s' " - (mapconcat #'preview-gs-color-value fg " "))) - (and mask border - (format "--bd 'rgb %s' " - (mapconcat #'preview-gs-color-value mask " "))) - (and border - (format "--bd %d" (max 1 (round (/ (* res border) 72.0)))))))) - -(defun preview-gs-dvips-process-setup () - "Set up Dvips process for conversions via gs." - (unless (preview-supports-image-type preview-gs-image-type) - (error "preview-image-type setting '%s unsupported by this Emacs" - preview-gs-image-type)) - (setq preview-gs-command-line (append - preview-gs-command-line - (list (preview-gs-resolution - (preview-hook-enquiry preview-scale) - (car preview-resolution) - (cdr preview-resolution))))) - (if preview-parsed-pdfoutput - (preview-pdf2dsc-process-setup) - (let ((process (preview-start-dvips preview-fast-conversion))) - (setq TeX-sentinel-function #'preview-gs-dvips-sentinel) - (list process (current-buffer) TeX-active-tempdir preview-ps-file - preview-gs-image-type)))) - -(defun preview-dvipng-process-setup () - "Set up dvipng process for conversion." - (setq preview-gs-command-line (append - preview-gs-command-line - (list (preview-gs-resolution - (preview-hook-enquiry preview-scale) - (car preview-resolution) - (cdr preview-resolution))))) - (if preview-parsed-pdfoutput - (if (preview-supports-image-type preview-gs-image-type) - (preview-pdf2dsc-process-setup) - (error "preview-image-type setting '%s unsupported by this Emacs" - preview-gs-image-type)) - (unless (preview-supports-image-type preview-dvipng-image-type) - (error "preview-dvipng-image-type setting '%s unsupported by this Emacs" - preview-dvipng-image-type)) - (let ((process (preview-start-dvipng))) - (setq TeX-sentinel-function #'preview-dvipng-sentinel) - (list process (current-buffer) TeX-active-tempdir t - preview-dvipng-image-type)))) - - -(defun preview-pdf2dsc-process-setup () - (let ((process (preview-start-pdf2dsc))) - (setq TeX-sentinel-function #'preview-pdf2dsc-sentinel) - (list process (current-buffer) TeX-active-tempdir preview-ps-file - preview-gs-image-type))) - -(defun preview-dvips-abort () - "Abort a Dvips run." - (preview-gs-queue-empty) - (condition-case nil - (delete-file - (let ((gsfile preview-gs-file)) - (with-current-buffer TeX-command-buffer - (funcall (car gsfile) "dvi")))) - (file-error nil)) - (when preview-ps-file - (condition-case nil - (preview-delete-file preview-ps-file) - (file-error nil))) - (setq TeX-sentinel-function nil)) - -(defalias 'preview-dvipng-abort 'preview-dvips-abort) -; "Abort a DviPNG run.") - -(defun preview-gs-dvips-sentinel (process command &optional gsstart) - "Sentinel function for indirect rendering DviPS process. -The usual PROCESS and COMMAND arguments for -`TeX-sentinel-function' apply. Starts gs if GSSTART is set." - (condition-case err - (let ((status (process-status process)) - (gsfile preview-gs-file)) - (cond ((eq status 'exit) - (delete-process process) - (setq TeX-sentinel-function nil) - (condition-case nil - (delete-file - (with-current-buffer TeX-command-buffer - (funcall (car gsfile) "dvi"))) - (file-error nil)) - (if preview-ps-file - (preview-prepare-fast-conversion)) - (when gsstart - (if preview-gs-queue - (preview-gs-restart) - (when preview-ps-file - (condition-case nil - (preview-delete-file preview-ps-file) - (file-error nil)))))) - ((eq status 'signal) - (delete-process process) - (preview-dvips-abort)))) - (error (preview-log-error err "DviPS sentinel" process))) - (preview-reraise-error process)) - -(defun preview-pdf2dsc-sentinel (process command &optional gsstart) - "Sentinel function for indirect rendering PDF process. -The usual PROCESS and COMMAND arguments for -`TeX-sentinel-function' apply. Starts gs if GSSTART is set." - (condition-case err - (let ((status (process-status process))) - (cond ((eq status 'exit) - (delete-process process) - (setq TeX-sentinel-function nil) - (setq preview-gs-init-string - (concat preview-gs-init-string - (preview-pdf-color-string preview-colors))) - (preview-prepare-fast-conversion) - (when gsstart - (if preview-gs-queue - (preview-gs-restart) - (when preview-ps-file - (condition-case nil - (preview-delete-file preview-ps-file) - (file-error nil)))))) - ((eq status 'signal) - (delete-process process) - (preview-dvips-abort)))) - (error (preview-log-error err "PDF2DSC sentinel" process))) - (preview-reraise-error process)) - -(defun preview-gs-close (process closedata) - "Clean up after PROCESS and set up queue accumulated in CLOSEDATA." - (setq preview-gs-queue (nconc preview-gs-queue closedata)) - (if process - (if preview-gs-queue - (if TeX-process-asynchronous - (if (and (eq (process-status process) 'exit) - (null TeX-sentinel-function)) - ;; Process has already finished and run sentinel - (progn - (when preview-ps-file - (condition-case nil - (preview-delete-file preview-ps-file) - (file-error nil))) - (preview-gs-restart)) - (setq TeX-sentinel-function - `(lambda (process command) - (,(if preview-parsed-pdfoutput - 'preview-pdf2dsc-sentinel - 'preview-gs-dvips-sentinel) - process - command - t)))) - (TeX-synchronous-sentinel "Preview-DviPS" (cdr preview-gs-file) - process)) - ;; pathological case: no previews although we sure thought so. - (delete-process process) - (unless (eq (process-status process) 'signal) - (preview-dvips-abort))))) - -(defun preview-dvipng-sentinel (process command &optional placeall) - "Sentinel function for indirect rendering DviPNG process. -The usual PROCESS and COMMAND arguments for -`TeX-sentinel-function' apply. Places all snippets if PLACEALL is set." - (condition-case err - (let ((status (process-status process))) - (cond ((eq status 'exit) - (delete-process process) - (setq TeX-sentinel-function nil) - (when placeall - (preview-dvipng-place-all))) - ((eq status 'signal) - (delete-process process) - (preview-dvipng-abort)))) - (error (preview-log-error err "DviPNG sentinel" process))) - (preview-reraise-error process)) - -(defun preview-dvipng-close (process closedata) - "Clean up after PROCESS and set up queue accumulated in CLOSEDATA." - (if preview-parsed-pdfoutput - (preview-gs-close process closedata) - (setq preview-gs-queue (nconc preview-gs-queue closedata)) - (if process - (if preview-gs-queue - (if TeX-process-asynchronous - (if (and (eq (process-status process) 'exit) - (null TeX-sentinel-function)) - ;; Process has already finished and run sentinel - (preview-dvipng-place-all) - (setq TeX-sentinel-function (lambda (process command) - (preview-dvipng-sentinel - process - command - t)))) - (TeX-synchronous-sentinel "Preview-DviPNG" (cdr preview-gs-file) - process)) - ;; pathological case: no previews although we sure thought so. - (delete-process process) - (unless (eq (process-status process) 'signal) - (preview-dvipng-abort)))))) - -(defun preview-dsc-parse (file) - "Parse DSC comments of FILE. -Returns a vector with offset/length pairs corresponding to -the pages. Page 0 corresponds to the initialization section." - (with-temp-buffer - (set-buffer-multibyte nil) - (insert-file-contents-literally file) - (let ((last-pt (point-min)) - trailer - pagelist - lastbegin - pt - case-fold-search - (level 0)) - (while (search-forward-regexp "\ -%%\\(?:\\(BeginDocument:\\)\\|\ -\\(EndDocument[\n\r]\\)\\|\ -\\(Page:\\)\\|\ -\\(Trailer[\n\r]\\)\\)" nil t) - (setq pt (match-beginning 0)) - (cond ((null (memq (char-before pt) '(?\C-j ?\C-m nil)))) - (trailer (error "Premature %%%%Trailer in `%s' at offsets %d/%d" - file trailer pt)) - ((match-beginning 1) - (if (zerop level) - (setq lastbegin pt)) - (setq level (1+ level))) - ((match-beginning 2) - (if (zerop level) - (error "Unmatched %%%%EndDocument in `%s' at offset %d" - file pt) - (setq level (1- level)))) - ((> level 0)) - ((match-beginning 3) - (push (list last-pt (- pt last-pt)) pagelist) - (setq last-pt pt)) - ((match-beginning 4) - (setq trailer pt)))) - (unless (zerop level) - (error "Unmatched %%%%BeginDocument in `%s' at offset %d" - file lastbegin)) - (push (list last-pt - (- (or trailer (point-max)) last-pt)) pagelist) - (vconcat (nreverse pagelist))))) - -(defun preview-gs-dsc-cvx (page dsc) - "Generate PostScript code accessing PAGE in the DSC object. -The returned PostScript code will need the file on -top of the stack, and will replace it with an executable -object corresponding to the wanted page." - (let ((curpage (aref dsc page))) - (format "dup %d setfileposition %d()/SubFileDecode filter cvx" - (1- (car curpage)) (nth 1 curpage)))) - -(defun preview-ps-quote-filename (str &optional nonrel) - "Make a PostScript string from filename STR. -The file name is first made relative unless -NONREL is not NIL." - (unless nonrel (setq str (file-relative-name str))) - (let ((index 0)) - (while (setq index (string-match "[\\()]" str index)) - (setq str (replace-match "\\\\\\&" t nil str) - index (+ 2 index))) - (concat "(" str ")"))) - -(defun preview-prepare-fast-conversion () - "This fixes up all parameters for fast conversion." - (let* ((file (if (consp (car preview-ps-file)) - (if (consp (caar preview-ps-file)) - (car (last (caar preview-ps-file))) - (caar preview-ps-file)) - (car preview-ps-file))) - (all-files (if (and (consp (car preview-ps-file)) - (consp (caar preview-ps-file))) - (caar preview-ps-file) - (list file)))) - (setq preview-gs-dsc (preview-dsc-parse file)) - (setq preview-gs-init-string - (concat (format "{<> setuserparams \ -.locksafe} stopped pop " - (mapconcat 'preview-ps-quote-filename all-files "")) - preview-gs-init-string - (format "[%s(r)file]aload exch %s .runandhide aload pop " - (preview-ps-quote-filename file) - (preview-gs-dsc-cvx 0 preview-gs-dsc)))))) - -(defun preview-gs-urgentize (ov buff) - "Make a displayed overlay render with higher priority. -This function is used in fake conditional display properties -for reordering the conversion order to prioritize on-screen -images. OV is the overlay in question, and BUFF is the -Ghostscript process buffer where the buffer-local queue -is located." - ;; It does not matter that ov gets queued twice in that process: the - ;; first version to get rendered will clear the 'queued property. - ;; It cannot get queued more than twice since we remove the - ;; conditional display property responsible for requeuing here. - ;; We don't requeue if the overlay has been killed (its buffer made - ;; nil). Not necessary, but while we are checking... - ;; We must return t. - (preview-remove-urgentization ov) - (when (and (overlay-get ov 'queued) - (overlay-buffer ov)) - (with-current-buffer buff - (push ov preview-gs-queue))) - t) - - -(defun preview-gs-place (ov snippet box run-buffer tempdir ps-file imagetype) - "Generate an image placeholder rendered over by Ghostscript. -This enters OV into all proper queues in order to make it render -this image for real later, and returns the overlay after setting -a placeholder image. SNIPPET gives the number of the -snippet in question for the file to be generated. -BOX is a bounding box if we already know one via TeX. -RUN-BUFFER is the buffer of the TeX process, -TEMPDIR is the correct copy of `TeX-active-tempdir', -PS-FILE is a copy of `preview-ps-file', IMAGETYPE is the image type -for the file extension." - (overlay-put ov 'filenames - (unless (eq ps-file t) - (list - (preview-make-filename - (or ps-file - (format "preview.%03d" snippet)) - tempdir)))) - (overlay-put ov 'queued - (vector box nil snippet)) - (overlay-put ov 'preview-image - (list (preview-icon-copy preview-nonready-icon))) - (preview-add-urgentization #'preview-gs-urgentize ov run-buffer) - (list ov)) - -(defun preview-mouse-open-error (string) - "Display STRING in a new view buffer on click." - (let ((buff (get-buffer-create - "*Preview-Ghostscript-Error*"))) - (with-current-buffer buff - (kill-all-local-variables) - (set (make-local-variable 'view-exit-action) #'kill-buffer) - (setq buffer-undo-list t) - (erase-buffer) - (insert string) - (goto-char (point-min))) - (view-buffer-other-window buff))) - -(defun preview-mouse-open-eps (file &optional position) - "Display eps FILE in a view buffer on click. -Place point at POSITION, else beginning of file." - (let ((default-major-mode - (or - (assoc-default "x.ps" auto-mode-alist #'string-match) - default-major-mode)) - (buff (get-file-buffer file))) - (save-excursion - (if buff - (pop-to-buffer buff) - (view-file-other-window file)) - (goto-char (or position (point-min))) - (if (eq major-mode 'ps-mode) ; Bundled with GNU Emacs - (message "%s" (substitute-command-keys "\ -Try \\[ps-run-start] \\[ps-run-buffer] and \ -\\\\[ps-run-mouse-goto-error] on error offset." ))) - (if (eq major-mode 'postscript-mode) ; Bundled with XEmacs, limited - (message "%s" (substitute-command-keys "\ -Try \\[ps-shell] and \\[ps-execute-buffer].")))))) - -(defun preview-gs-flag-error (ov err) - "Make an eps error flag in overlay OV for ERR string." - (let* ((filenames (overlay-get ov 'filenames)) - (file (car (nth 0 filenames))) - (outfile (format "-dOutputFile=%s" - (preview-ps-quote-filename - (car (nth 1 filenames))))) - (ps-open - `(lambda() (interactive "@") - (preview-mouse-open-error - ,(concat - (mapconcat #'shell-quote-argument - (append (list - preview-gs-command - outfile) - preview-gs-command-line) - " ") - "\nGS>" - preview-gs-init-string - (aref (overlay-get ov 'queued) 1) - err)))) - (str - (preview-make-clickable - nil - preview-error-icon - "%s views error message -%s more options" - ps-open - `(lambda() (interactive) - (popup-menu - '("PostScript error" - ["View error" ,ps-open] - ["View source" - (lambda () (interactive "@") - ,(if preview-ps-file - `(preview-mouse-open-eps - ,(if (consp (car file)) - (nth 1 (car file)) - (car file)) - ,(nth 0 (aref preview-gs-dsc - (aref (overlay-get ov 'queued) 2)))) - `(preview-mouse-open-eps ,file)))])))))) - (overlay-put ov 'strings (cons str str)) - (preview-toggle ov))) - -(defun preview-gs-transact (process answer) - "Work off Ghostscript transaction. -This routine is the action routine called via the process filter. -The Ghostscript process buffer of PROCESS will already be selected, and -and the standard output of Ghostscript up to the next prompt will be -given as ANSWER." - (let ((ov (pop preview-gs-outstanding)) - (have-error (not - (string-match "\\`GS\\(<[0-9]+\\)?>\\'" answer )))) - (when (and ov (overlay-buffer ov)) - (let ((queued (overlay-get ov 'queued))) - (when queued - (let* ((bbox (aref queued 0)) - (filenames (overlay-get ov 'filenames)) - (oldfile (nth 0 filenames)) - (newfile (nth 1 filenames))) - (if have-error - (preview-gs-flag-error ov answer) - (condition-case nil - (preview-delete-file oldfile) - (file-error nil)) - (overlay-put ov 'filenames (cdr filenames)) - (preview-replace-active-icon - ov - (preview-create-icon (car newfile) - preview-gs-image-type - (preview-ascent-from-bb - bbox) - (aref preview-colors 2)))) - (overlay-put ov 'queued nil))))) - (while (and (< (length preview-gs-outstanding) - preview-gs-outstanding-limit) - (setq ov (pop preview-gs-queue))) - (let ((queued (overlay-get ov 'queued))) - (when (and queued - (not (memq ov preview-gs-outstanding)) - (overlay-buffer ov)) - (let* ((filenames (overlay-get ov 'filenames)) - (oldfile (car (nth 0 - (nconc filenames - (list - (preview-make-filename - (format "pr%d-%d.%s" - (car preview-gs-sequence) - (cdr preview-gs-sequence) - preview-gs-image-type) - TeX-active-tempdir)))))) - (bbox (aset queued 0 - (or (and preview-prefer-TeX-bb - (aref queued 0)) - (and (stringp oldfile) - (preview-extract-bb - oldfile)) - (aref queued 0) - (error "No bounding box")))) - (snippet (aref queued 2)) - (gs-line - (format - "%s<<%s>>preview-do\n" - (if preview-ps-file - (concat "dup " - (preview-gs-dsc-cvx - snippet - preview-gs-dsc)) - (format "%s(r)file cvx" - (preview-ps-quote-filename - (if (listp oldfile) - (car (last oldfile)) - oldfile)))) - (if preview-parsed-tightpage - "" - (format "/PageSize[%g %g]/PageOffset[%g \ -%g[1 1 dtransform exch]{0 ge{neg}if exch}forall]" - (- (aref bbox 2) (aref bbox 0)) - (- (aref bbox 3) (aref bbox 1)) - (aref bbox 0) (aref bbox 1)))))) - (setcdr preview-gs-sequence (1+ (cdr preview-gs-sequence))) - (setq preview-gs-outstanding - (nconc preview-gs-outstanding - (list ov))) - (aset queued 1 gs-line) - ;; ignore errors because of dying processes: they will get - ;; caught by the sentinel, anyway. - (condition-case nil - (process-send-string - process - gs-line) - (error nil)))))) - (unless preview-gs-outstanding - (condition-case nil - (process-send-eof process) - (error nil))))) - -(defun preview-hook-enquiry (hook) - "Gets a value from a configured hook. -HOOK is a list or single item, for which the first resolving to -non-nil counts. Entries can be a callable function, or -a symbol that is consulted, or a value. Lists are evaluated -recursively." - (cond ((functionp hook) - (funcall hook)) - ((consp hook) - (let (res) - (while (and (not res) hook) - (setq res (preview-hook-enquiry (car hook)) - hook (cdr hook))) - res)) - ((and (symbolp hook) (boundp hook)) - (symbol-value hook)) - (t hook))) - -(defcustom preview-scale-function #'preview-scale-from-face - "*Scale factor for included previews. -This can be either a function to calculate the scale, or -a fixed number." - :group 'preview-appearance - :type '(choice (function-item preview-scale-from-face) - (const 1.0) - (number :value 1.0) - (function :value preview-scale-from-face))) - -(defcustom preview-default-document-pt 10 - "*Assumed document point size for `preview-scale-from-face'. -If the point size (such as 11pt) of the document cannot be -determined from the document options itself, assume this size. -This is for matching screen font size and previews." - :group 'preview-appearance - :type - '(choice (const :tag "10pt" 10) - (const :tag "11pt" 11) - (const :tag "12pt" 12) - (number :tag "Other" :value 11.0)) -) - -(defcustom preview-document-pt-list '(preview-parsed-font-size - preview-auctex-font-size - preview-default-document-pt) - "*How `preview-document-pt' figures out the document size." - :group 'preview-appearance - :type - '(repeat (choice - ;; This is a bug: type function seems to match variables, too. - (restricted-sexp :match-alternatives (functionp) - :tag "Function" :value preview-auctex-font-size) - (variable :value preview-parsed-font-size) - (number :value 11)))) - -(defun preview-auctex-font-size () - "Calculate the default font size of document. -If packages, classes or styles were called with an option -like 10pt, size is taken from the first such option if you -had let your document be parsed by AucTeX." - (catch 'return (dolist (option (TeX-style-list)) - (if (string-match "\\`\\([0-9]+\\)pt\\'" option) - (throw 'return - (string-to-number - (match-string 1 option))))))) - -(defsubst preview-document-pt () - "Calculate the default font size of document." - (preview-hook-enquiry preview-document-pt-list)) - -(defun preview-scale-from-face () - "Calculate preview scale from `preview-reference-face'. -This calculates the scale of EPS images from a document assumed -to have a default font size given by function `preview-document-pt' -so that they match the reference face in height." - `(lambda nil - (/ ,(/ (preview-inherited-face-attribute 'preview-reference-face :height - 'default) 10.0) - (preview-document-pt)))) - -(defvar preview-min-spec) - -(defun preview-make-image (symbol) - "Make an image from a preview spec list. -The first spec that is workable (given the current setting of -`preview-min-spec') from the given symbol is used here. The -icon is cached in the property list of the symbol." - (let ((alist (get 'preview-min-alist symbol))) - (cdr (or - (assq preview-min-spec alist) - (car (put symbol 'preview-min-alist - (cons - (cons preview-min-spec - (preview-filter-specs - (symbol-value symbol))) - alist))))))) - -(defun preview-filter-specs (spec-list) - "Find the first of the fitting specs and make an image." - (let (image) - (while (and spec-list - (not (setq image - (catch 'preview-filter-specs - (preview-filter-specs-1 (car spec-list)))))) - (setq spec-list (cdr spec-list))) - image)) - -(defun preview-filter-specs-1 (specs) - (and specs - (if (get 'preview-filter-specs (car specs)) - (apply (get 'preview-filter-specs (car specs)) specs) - `(,(nth 0 specs) ,(nth 1 specs) - ,@(preview-filter-specs-1 (nthcdr 2 specs)))))) - -(put 'preview-filter-specs :min - #'(lambda (keyword value &rest args) - (if (> value preview-min-spec) - (throw 'preview-filter-specs nil) - (preview-filter-specs-1 args)))) - -(defvar preview-datadir (file-name-directory load-file-name) - "The directory relative to which package data may be found. -This should be hardwired into the startup file containing the -autoloads for preview-latex.") - -(put 'preview-filter-specs :file - #'(lambda (keyword value &rest args) - `(:file ,(expand-file-name value (expand-file-name "images" - preview-datadir)) - ,@(preview-filter-specs-1 args)))) - -(defvar preview-lispdir TeX-lisp-directory - "The directory where the preview lisp files are located.") - -(defun preview-ascent-from-bb (bb) - "This calculates the image ascent from its bounding box. -The bounding box BB needs to be a 4-component vector of -numbers (can be float if available)." - ;; baseline is at 1in from the top of letter paper (11in), so it is - ;; at 10in from the bottom precisely, which is 720 in PostScript - ;; coordinates. If our bounding box has its bottom not above this - ;; line, and its top above, we can calculate a useful ascent value. - ;; If not, something is amiss. We just use 100 in that case. - - (let ((bottom (aref bb 1)) - (top (aref bb 3))) - (if (and (<= bottom 720) - (> top 720)) - (round (* 100.0 (/ (- top 720.0) (- top bottom)))) - 100))) - -(defface preview-face '((((background dark)) - (:background "dark slate gray")) - (t - (:background "beige"))) - "Face to use for the preview source." - :group 'preview-appearance) - -(defface preview-reference-face '((t nil)) - "Face consulted for colors and scale of active previews. -Fallback to :inherit and 'default implemented." - :group 'preview-appearance) - -(defcustom preview-auto-reveal - '(eval (preview-arrived-via (key-binding [left]) (key-binding [right]) - 'backward-char 'forward-char)) - "*Cause previews to open automatically when entered. -Possibilities are: -T autoopens, -NIL doesn't, -a symbol will have its value consulted if it exists, -defaulting to NIL if it doesn't. -An integer will specify a maximum cursor movement distance. -Larger movements won't open the preview. -A CONS-cell means to call a function for determining the value. -The CAR of the cell is the function to call which receives -the CDR of the CONS-cell in the rest of the arguments, while -point and current buffer point to the position in question. -All of the options show reasonable defaults." - :group 'preview-appearance - :type '(choice (const :tag "Off" nil) - (const :tag "On" t) - (symbol :tag "Indirect variable" :value reveal-mode) - (integer :tag "Maximum distance" :value 1) - (cons :tag "Function call" - :value (eval (preview-arrived-via - (key-binding [left]) - (key-binding [right]))) - function (list :tag "Argument list" - (repeat :inline t sexp))))) - -(defun preview-auto-reveal-p (mode distance) - "Decide whether to auto-reveal. -Returns non-NIL if region should be auto-opened. -See `preview-auto-reveal' for definitions of MODE, which gets -set to `preview-auto-reveal'. DISTANCE specifies the movement -distance with which point has been reached in case it has been -a movement starting in the current buffer." - (cond ((symbolp mode) - (and (boundp mode) - (symbol-value mode))) - ((integerp mode) - (and distance (/= 0 distance) (<= (abs distance) mode))) - ((consp mode) - (apply (car mode) (cdr mode))) - (t mode))) - -(defun preview-arrived-via (&rest list) - "Indicate auto-opening. -Returns non-NIL if called by one of the commands in LIST." - (memq this-command list)) - -(defcustom preview-equality-transforms '(identity - preview-canonical-spaces) -"Transformation functions for region changes. -These functions are tried in turn on the strings from the -regions of a preview to decide whether a preview is to be considered -changed. If any transform leads to equal results, the preview is -considered unchanged." - :group 'preview-appearance - :type '(repeat function)) - -(defun preview-relaxed-string= (&rest args) -"Check for functional equality of arguments. -The arguments ARGS are checked for equality by using -`preview-equality-transforms' on them until it is exhausted -or one transform returns equality." - (let ((lst preview-equality-transforms)) - (while (and lst (not (apply #'string= (mapcar (car lst) args)))) - (setq lst (cdr lst))) - lst)) - -(defun preview-canonical-spaces (arg) - "Convert ARG into canonical form. -Removes comments and collapses white space, except for multiple newlines." - (let (pos) - (while (setq pos (string-match "\\s<.*[\n\r][ \t]*" arg pos)) - (setq arg (replace-match "" t t arg 0))) - (while (setq pos (string-match "[ \t]*\\(\\([ \t]\\)\\|[\n\r][ \t]*\\)" - arg pos)) - (setq arg (replace-match (if (match-beginning 2) " " "\n") t t arg 0) - pos (1+ pos))) - (while (setq pos (string-match "\n+" arg pos)) - (if (string= "\n" (match-string 0 arg)) - (setq arg (replace-match " " t t arg 0) - pos (1+ pos)) - (setq pos (match-end 0))))) - arg) - -(defun preview-regenerate (ovr) - "Pass the modified region in OVR again through LaTeX." - (let ((begin (overlay-start ovr)) - (end (overlay-end ovr))) - (with-current-buffer (overlay-buffer ovr) - (preview-delete ovr) - (preview-region begin end)))) - -(defcustom preview-inner-environments '("Bmatrix" "Vmatrix" "aligned" - "array" "bmatrix" "cases" - "gathered" "matrix" "pmatrix" - "smallmatrix" "split" - "subarray" "vmatrix") - "Environments not to be previewed on their own." - :group 'preview-latex - :type '(repeat string)) - - -(defun preview-next-border (backwards) - "Search for the next interesting border for `preview-at-point'. -Searches backwards if BACKWARDS is non-nil." - (let (history preview-state (pt (point))) - (catch 'exit - (while - (null - (memq - (setq preview-state - (if backwards - (if (> (setq pt - (previous-single-char-property-change - pt 'preview-state)) (point-min)) - (get-char-property (1- pt) 'preview-state) - (throw 'exit (or history (point-min)))) - (if (< (setq pt - (next-single-char-property-change - pt 'preview-state)) (point-max)) - (get-char-property pt 'preview-state) - (throw 'exit (or history (point-max)))))) - '(active inactive))) - (setq history (and (not preview-state) pt))) - (or history pt)))) - -(defun preview-at-point () - "Do the appropriate preview thing at point. -If point is positioned on or inside of an unmodified preview area, -its visibility is toggled. - -If not, the surroundings are run through preview. The -surroundings don't extend into unmodified previews or past -contiguous previews invalidated by modifications. - -Overriding any other action, if a region is -active (`transient-mark-mode' or `zmacs-regions'), it is run -through `preview-region'." - (interactive) - (if (TeX-active-mark) - (preview-region (region-beginning) (region-end)) - (catch 'exit - (dolist (ovr (overlays-in (max (point-min) (1- (point))) - (min (point-max) (1+ (point))))) - (let ((preview-state (overlay-get ovr 'preview-state))) - (when preview-state - (unless (eq preview-state 'disabled) - (preview-toggle ovr 'toggle (selected-window)) - (throw 'exit t))))) - (preview-region (preview-next-border t) - (preview-next-border nil))))) - -(defun preview-disabled-string (ov) - "Generate a before-string for disabled preview overlay OV." - (concat (preview-make-clickable - (overlay-get ov 'preview-map) - preview-icon - "\ -%s regenerates preview -%s more options" - `(lambda() (interactive) (preview-regenerate ,ov))) -;; icon on separate line only for stuff starting on its own line - (with-current-buffer (overlay-buffer ov) - (save-excursion - (save-restriction - (widen) - (goto-char (overlay-start ov)) - (if (bolp) "\n" "")))))) - -(defun preview-disable (ovr) - "Change overlay behaviour of OVR after source edits." - (overlay-put ovr 'queued nil) - (preview-remove-urgentization ovr) - (overlay-put ovr 'preview-image nil) - (overlay-put ovr 'timestamp nil) - (setcdr (overlay-get ovr 'strings) (preview-disabled-string ovr)) - (preview-toggle ovr) - (overlay-put ovr 'preview-state 'disabled) - (dolist (filename (overlay-get ovr 'filenames)) - (condition-case nil - (preview-delete-file filename) - (file-error nil)) - (overlay-put ovr 'filenames nil))) - -(defun preview-delete (ovr &rest ignored) - "Delete preview overlay OVR, taking any associated file along. -IGNORED arguments are ignored, making this function usable as -a hook in some cases" - (let ((filenames (overlay-get ovr 'filenames))) - (overlay-put ovr 'filenames nil) - (delete-overlay ovr) - (dolist (filename filenames) - (condition-case nil - (preview-delete-file filename) - (file-error nil))))) - -(defun preview-clearout (&optional start end timestamp) - "Clear out all previews in the current region. -When called interactively, the current region is used. -Non-interactively, the region between START and END is -affected. Those two values default to the borders of -the entire buffer. If TIMESTAMP is non-nil, previews -with a `timestamp' property of it are kept." - (interactive "r") - (dolist (ov (overlays-in (or start (point-min)) - (or end (point-max)))) - (and (overlay-get ov 'preview-state) - (not (and timestamp - (equal timestamp (overlay-get ov 'timestamp)))) - (preview-delete ov)))) - -(defun preview-clearout-buffer (&optional buffer) - "Clearout BUFFER from previews, current buffer if nil." - (interactive) - (if buffer - (with-current-buffer buffer (preview-clearout)) - (preview-clearout))) - -(defun preview-clearout-section () - "Clearout previews from LaTeX section." - (interactive) - (save-excursion - (LaTeX-mark-section) - (preview-clearout (region-beginning) (region-end)))) - -(defun preview-clearout-at-point () - "Clearout any preview at point." - (interactive) - (preview-clearout (max (point-min) (1- (point))) - (min (point-max) (1+ (point))))) - -(defun preview-walk-document (func) - "Cycle through all buffers belonging to current document. -Each buffer having the same master file as the current file -has FUNC called with its current buffer being set to it." - (let* ((buffers (buffer-list)) - (master (expand-file-name (TeX-master-file t))) - (default-buffers (list (current-buffer) - (find-buffer-visiting master)))) - (while buffers - (with-current-buffer (pop buffers) - (when - (or (memq (current-buffer) default-buffers) - (and (memq major-mode '(plain-tex-mode latex-mode)) - (or (stringp TeX-master) - (eq TeX-master t)) - (string= (expand-file-name (TeX-master-file t)) - master))) - (funcall func)))))) - -(defun preview-clearout-document () - "Clear out all previews in current document. -The document consists of all buffers that have the same master file -as the current buffer. This makes the current document lose -all previews." - (interactive) - (preview-walk-document #'preview-clearout-buffer)) - -(defun preview-kill-buffer-cleanup (&optional buf) - "This is a cleanup function just for use in hooks. -Cleans BUF or current buffer. The difference to -`preview-clearout-buffer' is that previews -associated with the last buffer modification time are -kept." - (with-current-buffer (or buf (current-buffer)) - (save-restriction - (widen) - (preview-clearout (point-min) (point-max) (visited-file-modtime))))) - -(add-hook 'kill-buffer-hook #'preview-kill-buffer-cleanup) -(add-hook 'before-revert-hook #'preview-kill-buffer-cleanup) - -(defvar preview-last-counter) - -(defun preview-extract-counters (ctr) - (setq preview-last-counter - (prog1 (copy-sequence ctr) - (dolist (elt preview-last-counter) - (setq ctr (delete elt ctr))))) - (apply #'concat ctr)) - -(defun desktop-buffer-preview-misc-data (&rest ignored) - "Hook function that extracts previews for persistent sessions." - (unless (buffer-modified-p) - (setq preview-last-counter nil) - (save-restriction - (widen) - (let (save-info (timestamp (visited-file-modtime))) - (dolist (ov (sort (overlays-in (point-min) (point-max)) - (lambda (x y) (< (overlay-start x) - (overlay-start y))))) - (when (and (memq (overlay-get ov 'preview-state) '(active inactive)) - (null (overlay-get ov 'queued)) - (cdr (overlay-get ov 'preview-image))) - (push (preview-dissect ov timestamp) save-info))) - (and save-info - (cons 'preview (cons timestamp (nreverse save-info)))))))) - -(eval-after-load "desktop" - '(add-hook - 'desktop-buffer-misc-functions - #'desktop-buffer-preview-misc-data)) - -(defvar preview-temp-dirs nil -"List of top level temporary directories in use from preview. -Any directory not in this list will be cleared out by preview -on first use.") - -(defun preview-dissect (ov timestamp) - "Extract all persistent data from OV and TIMESTAMP it." - (let ((filenames (butlast (nth 0 (overlay-get ov 'filenames))))) - (overlay-put ov 'timestamp timestamp) - (list (overlay-start ov) - (overlay-end ov) - (cdr (overlay-get ov 'preview-image)) - filenames - (let ((ctr (overlay-get ov 'preview-counters))) - (and ctr - (cons (preview-extract-counters (car ctr)) - (preview-extract-counters (cdr ctr)))))))) - -(defun preview-buffer-restore-internal (buffer-misc) - "Restore previews from BUFFER-MISC if proper. -Remove them if they have expired." - (let ((timestamp (visited-file-modtime)) tempdirlist files) - (setq preview-parsed-counters nil) - (when (eq 'preview (pop buffer-misc)) - (preview-get-geometry) - (if (equal (pop buffer-misc) timestamp) - (dolist (ovdata buffer-misc) - (setq tempdirlist - (apply #'preview-reinstate-preview tempdirlist - timestamp ovdata))) - (dolist (ovdata buffer-misc) - (setq files (nth 3 ovdata)) - (condition-case nil - (delete-file (nth 0 files)) - (file-error nil)) - (unless (member (nth 1 files) tempdirlist) - (push (nth 1 files) tempdirlist))) - (dolist (dir tempdirlist) - (condition-case nil - (delete-directory dir) - (file-error nil))))))) - - -(defun preview-buffer-restore (buffer-misc) - "At end of desktop load, reinstate previews. -This delay is so that minor modes changing buffer positions -\(like `x-symbol-mode' does) will not wreak havoc. -BUFFER-MISC is the appropriate data to be used." - (add-hook 'desktop-delay-hook `(lambda () - (with-current-buffer ,(current-buffer) - (preview-buffer-restore-internal - ',buffer-misc))))) - -(defun desktop-buffer-preview (desktop-buffer-file-name - desktop-buffer-name - desktop-buffer-misc) - "Hook function for restoring persistent previews into a buffer." - (when (and desktop-buffer-file-name - (file-readable-p desktop-buffer-file-name)) - (let ((buf (find-file-noselect desktop-buffer-file-name))) - (if (eq (car desktop-buffer-misc) 'preview) - (with-current-buffer buf - (preview-buffer-restore desktop-buffer-misc) - buf) - buf)))) - -(eval-after-load "desktop" - '(if (boundp 'desktop-buffer-mode-handlers) - (add-to-list 'desktop-buffer-mode-handlers - '(latex-mode . desktop-buffer-preview)) - (add-hook 'desktop-buffer-handlers '(lambda () - (desktop-buffer-preview - desktop-buffer-file-name - desktop-buffer-name - desktop-buffer-misc))))) - -(defcustom preview-auto-cache-preamble 'ask - "*Whether to generate a preamble cache format automatically. -Possible values are nil, t, and `ask'." - :group 'preview-latex - :type '(choice (const :tag "Cache" t) - (const :tag "Don't cache" nil) - (const :tag "Ask" ask))) - -(defvar preview-dumped-alist nil - "Alist of dumped masters. -The elements are (NAME . ASSOC). NAME is the master file name -\(without extension), ASSOC is what to do with regard to this -format. Possible values: NIL means no format is available -and none should be generated. T means no format is available, -it should be generated on demand. If the value is a cons cell, -the CAR of the cons cell is the command with which the format -has been generated, and the CDR is some Emacs-flavor specific -value used for maintaining a watch on possible changes of the -preamble.") - -(defun preview-cleanout-tempfiles () - "Clean out all directories and files with non-persistent data. -This is called as a hook when exiting Emacs." - (mapc #'preview-kill-buffer-cleanup (buffer-list)) - (mapc #'preview-format-kill preview-dumped-alist)) - -(defun preview-inactive-string (ov) - "Generate before-string for an inactive preview overlay OV. -This is for overlays where the source text has been clicked -visible. For efficiency reasons it is expected that the buffer -is already selected and unnarrowed." - (concat - (preview-make-clickable (overlay-get ov 'preview-map) - preview-icon - "\ -%s redisplays preview -%s more options") -;; icon on separate line only for stuff starting on its own line - (with-current-buffer (overlay-buffer ov) - (save-excursion - (save-restriction - (widen) - (goto-char (overlay-start ov)) - (if (bolp) "\n" "")))))) - -(defun preview-dvipng-place-all () - "Place all images dvipng has created, if any. -Deletes the dvi file when finished." - (let (filename queued oldfiles snippet) - (dolist (ov (prog1 preview-gs-queue (setq preview-gs-queue nil))) - (when (and (setq queued (overlay-get ov 'queued)) - (setq snippet (aref (overlay-get ov 'queued) 2)) - (setq filename (preview-make-filename - (format "prev%03d.%s" - snippet preview-dvipng-image-type) - TeX-active-tempdir))) - (if (file-exists-p (car filename)) - (progn - (overlay-put ov 'filenames (list filename)) - (preview-replace-active-icon - ov - (preview-create-icon (car filename) - preview-dvipng-image-type - (preview-ascent-from-bb - (aref queued 0)) - (aref preview-colors 2))) - (overlay-put ov 'queued nil)) - (push filename oldfiles) - (overlay-put ov 'filenames nil) - (push ov preview-gs-queue)))) - (if (setq preview-gs-queue (nreverse preview-gs-queue)) - (progn - (preview-start-dvips preview-fast-conversion) - (setq TeX-sentinel-function (lambda (process command) - (preview-gs-dvips-sentinel - process - command - t))) - (dolist (ov preview-gs-queue) - (setq snippet (aref (overlay-get ov 'queued) 2)) - (overlay-put ov 'filenames - (list - (preview-make-filename - (or preview-ps-file - (format "preview.%03d" snippet)) - TeX-active-tempdir)))) - (while (setq filename (pop oldfiles)) - (condition-case nil - (preview-delete-file filename) - (file-error nil)))) - (condition-case nil - (let ((gsfile preview-gs-file)) - (delete-file - (with-current-buffer TeX-command-buffer - (funcall (car gsfile) "dvi")))) - (file-error nil))))) - -(defun preview-active-string (ov) - "Generate before-string for active image overlay OV." - (preview-make-clickable - (overlay-get ov 'preview-map) - (car (overlay-get ov 'preview-image)) - "%s opens text -%s more options")) - -(defun preview-make-filename (file tempdir) - "Generate a preview filename from FILE and TEMPDIR. -Filenames consist of a CONS-cell with absolute file name as CAR -and TEMPDIR as CDR. TEMPDIR is a copy of `TeX-active-tempdir' -with the directory name, the reference count and its top directory -name elements. If FILE is already in that form, the file name itself -gets converted into a CONS-cell with a name and a reference count." - (if (consp file) - (progn - (if (consp (car file)) - (setcdr (car file) (1+ (cdr (car file)))) - (setcar file (cons (car file) 1))) - file) - (setcar (nthcdr 2 tempdir) (1+ (nth 2 tempdir))) - (cons (expand-file-name file (nth 0 tempdir)) - tempdir))) - -(defun preview-attach-filename (attached file) - "Attaches the absolute file name ATTACHED to FILE." - (if (listp (caar file)) - (setcar (car file) (cons attached (caar file))) - (setcar (car file) (list attached (caar file)))) - file) - -(defun preview-delete-file (file) - "Delete a preview FILE. -See `preview-make-filename' for a description of the data -structure. If the containing directory becomes empty, -it gets deleted as well." - (let ((filename - (if (consp (car file)) - (and (zerop - (setcdr (car file) (1- (cdr (car file))))) - (car (car file))) - (car file)))) - (if filename - (unwind-protect - (if (listp filename) - (dolist (elt filename) (delete-file elt)) - (delete-file filename)) - (let ((tempdir (cdr file))) - (when tempdir - (if (> (nth 2 tempdir) 1) - (setcar (nthcdr 2 tempdir) (1- (nth 2 tempdir))) - (setcdr file nil) - (delete-directory (nth 0 tempdir))))))))) - -(defvar preview-buffer-has-counters nil) -(make-variable-buffer-local 'preview-buffer-has-counters) - -(defun preview-place-preview (snippet start end - box counters tempdir place-opts) - "Generate and place an overlay preview image. -This generates the filename for the preview -snippet SNIPPET in the current buffer, and uses it for the -region between START and END. BOX is an optional preparsed -TeX bounding BOX passed on to the `place' hook. -COUNTERS is the info about saved counter structures. -TEMPDIR is a copy of `TeX-active-tempdir'. -PLACE-OPTS are additional arguments passed into -`preview-parse-messages'. Returns -a list with additional info from the placement hook. -Those lists get concatenated together and get passed -to the close hook." - (preview-clearout start end tempdir) - (let ((ov (make-overlay start end nil nil nil))) - (when (fboundp 'TeX-overlay-prioritize) - (overlay-put ov 'priority (TeX-overlay-prioritize start end))) - (overlay-put ov 'preview-map - (preview-make-clickable - nil nil nil - `(lambda(event) (interactive "e") - (preview-toggle ,ov 'toggle event)) - `(lambda(event) (interactive "e") - (preview-context-menu ,ov event)))) - (overlay-put ov 'timestamp tempdir) - (when (cdr counters) - (overlay-put ov 'preview-counters counters) - (setq preview-buffer-has-counters t)) - (prog1 (apply #'preview-call-hook 'place ov snippet box - place-opts) - (overlay-put ov 'strings - (list (preview-active-string ov))) - (preview-toggle ov t)))) - -;; The following is a brutal hack. It relies on `begin' being let to -;; the start of the interesting area when TeX-region-create is being -;; called. - -(defun preview-counter-find (begin) - "Fetch the next preceding or next preview-counters property. -Factored out because of compatibility macros XEmacs would -not use in advice." - ;; The following two lines are bug workaround for Emacs < 22.1. - (if (markerp begin) - (setq begin (marker-position begin))) - (or (car (get-char-property begin 'preview-counters)) - (cdr (get-char-property (max (point-min) - (1- begin)) - 'preview-counters)) - (cdr (get-char-property - (max (point-min) - (1- (previous-single-char-property-change - begin - 'preview-counters))) - 'preview-counters)) - (car (get-char-property - (next-single-char-property-change begin 'preview-counters) - 'preview-counters)))) - -(defadvice TeX-region-create (around preview-counters) - "Write out counter information to region." - (let ((TeX-region-extra - (concat - (and (boundp 'begin) - preview-buffer-has-counters - (mapconcat - #'identity - (cons - "" - (preview-counter-find (symbol-value 'begin))) - "\\setcounter")) - TeX-region-extra))) - ad-do-it)) - -(defun preview-reinstate-preview (tempdirlist timestamp start end - image filename &optional counters) - "Reinstate a single preview. -This gets passed TEMPDIRLIST, a list consisting of the kind -of entries used in `TeX-active-tempdir', and TIMESTAMP, the -time stamp under which the file got read in. It returns an augmented -list. START and END give the buffer location where the preview -is to be situated, IMAGE the image to place there, and FILENAME -the file to use: a triple consisting of filename, its temp directory -and the corresponding topdir. COUNTERS is saved counter information, -if any." - (when - (or (null filename) (file-readable-p (car filename))) - (when filename - (unless (equal (nth 1 filename) (car TeX-active-tempdir)) - (setq TeX-active-tempdir - (or (assoc (nth 1 filename) tempdirlist) - (car (push (append (cdr filename) (list 0)) - tempdirlist)))) - (setcar (cdr TeX-active-tempdir) - (car (or (member (nth 1 TeX-active-tempdir) - preview-temp-dirs) - (progn - (add-hook 'kill-emacs-hook - #'preview-cleanout-tempfiles t) - (push (nth 1 TeX-active-tempdir) - preview-temp-dirs)))))) - (setcar (nthcdr 2 TeX-active-tempdir) - (1+ (nth 2 TeX-active-tempdir))) - (setcdr filename TeX-active-tempdir) - (setq filename (list filename))) - (let ((ov (make-overlay start end nil nil nil))) - (when (fboundp 'TeX-overlay-prioritize) - (overlay-put ov 'priority (TeX-overlay-prioritize start end))) - (overlay-put ov 'preview-map - (preview-make-clickable - nil nil nil - `(lambda(event) (interactive "e") - (preview-toggle ,ov 'toggle event)) - `(lambda(event) (interactive "e") - (preview-context-menu ,ov event)))) - (when counters - (overlay-put - ov 'preview-counters - (cons - (mapcar #'cdr - (if (string= (car counters) "") - preview-parsed-counters - (setq preview-parsed-counters - (preview-parse-counters (car counters))))) - (mapcar #'cdr - (if (string= (cdr counters) "") - preview-parsed-counters - (setq preview-parsed-counters - (preview-parse-counters (cdr counters))))))) - (setq preview-buffer-has-counters t)) - (overlay-put ov 'filenames filename) - (overlay-put ov 'preview-image (cons (preview-import-image image) - image)) - (overlay-put ov 'strings - (list (preview-active-string ov))) - (overlay-put ov 'timestamp timestamp) - (preview-toggle ov t))) - tempdirlist) - -(defun preview-back-command (&optional nocomplex) - "Move backward a TeX token. -If NOCOMPLEX is set, only basic tokens and no argument sequences -will be skipped over backwards." - (let ((oldpos (point)) oldpoint) - (condition-case nil - (or (search-backward-regexp "\\(\\$\\$?\ -\\|\\\\[^a-zA-Z@]\ -\\|\\\\[a-zA-Z@]+\ -\\|\\\\begin[ \t]*{[^}]+}\ -\\)\\=" (line-beginning-position) t) - nocomplex - (if (eq ?\) (char-syntax (char-before))) - (while - (progn - (setq oldpoint (point)) - (backward-sexp) - (and (not (eq oldpoint (point))) - (eq ?\( (char-syntax (char-after)))))) - (backward-char))) - (error (goto-char oldpos))))) - -(defcustom preview-required-option-list '("active" "tightpage" "auctex" - (preview-preserve-counters - "counters")) - "Specifies required options passed to the preview package. -These are passed regardless of whether there is an explicit -\\usepackage of that package present." - :group 'preview-latex - :type preview-expandable-string) - -(defcustom preview-preserve-counters nil - "Try preserving counters for partial runs if set." - :group 'preview-latex - :type 'boolean) - -(defcustom preview-default-option-list '("displaymath" "floats" - "graphics" "textmath" "sections" - "footnotes") - "*Specifies default options to pass to preview package. -These options are only used when the LaTeX document in question does -not itself load the preview package, namely when you use preview -on a document not configured for preview. \"auctex\", \"active\", -\"dvips\" and \"delayed\" need not be specified here." - :group 'preview-latex - :type '(list (set :inline t :tag "Options known to work" - :format "%t:\n%v%h" :doc - "The above options are all the useful ones -at the time of the release of this package. -You should not need \"Other options\" unless you -upgraded to a fancier version of just the LaTeX style. -Please also note that `psfixbb' fails to have an effect if -`preview-fast-conversion' or `preview-prefer-TeX-bb' -are selected." - (const "displaymath") - (const "floats") - (const "graphics") - (const "textmath") - (const "sections") - (const "footnotes") - (const "showlabels") - (const "psfixbb")) - (set :tag "Expert options" :inline t - :format "%t:\n%v%h" :doc - "Expert options should not be enabled permanently." - (const "noconfig") - (const "showbox") - (const "tracingall")) - (repeat :inline t :tag "Other options" (string)))) - -(defcustom preview-default-preamble - '("\\RequirePackage[" ("," . preview-default-option-list) - "]{preview}[2004/11/05]") - "*Specifies default preamble code to add to a LaTeX document. -If the document does not itself load the preview package, that is, -when you use preview on a document not configured for preview, this -list of LaTeX commands is inserted just before \\begin{document}." - :group 'preview-latex - :type preview-expandable-string) - -(defcustom preview-LaTeX-command '("%`%l \"\\nonstopmode\\nofiles\ -\\PassOptionsToPackage{" ("," . preview-required-option-list) "}{preview}\ -\\AtBeginDocument{\\ifx\\ifPreview\\undefined" -preview-default-preamble "\\fi}\"%' %t") - "*Command used for starting a preview. -See description of `TeX-command-list' for details." - :group 'preview-latex - :type preview-expandable-string) - -(defun preview-goto-info-page () - "Read documentation for preview-latex in the info system." - (interactive) - (info "(preview-latex)")) - -(eval-after-load 'info '(add-to-list 'Info-file-list-for-emacs - '("preview" . "preview-latex"))) - -(defvar preview-map - (let ((map (make-sparse-keymap))) - (define-key map "\C-p" #'preview-at-point) - (define-key map "\C-r" #'preview-region) - (define-key map "\C-b" #'preview-buffer) - (define-key map "\C-d" #'preview-document) - (define-key map "\C-f" #'preview-cache-preamble) - (define-key map "\C-c\C-f" #'preview-cache-preamble-off) - (define-key map "\C-i" #'preview-goto-info-page) - ;; (define-key map "\C-q" #'preview-paragraph) - (define-key map "\C-e" #'preview-environment) - (define-key map "\C-s" #'preview-section) - (define-key map "\C-w" #'preview-copy-region-as-mml) - (define-key map "\C-c\C-p" #'preview-clearout-at-point) - (define-key map "\C-c\C-r" #'preview-clearout) - (define-key map "\C-c\C-s" #'preview-clearout-section) - (define-key map "\C-c\C-b" #'preview-clearout-buffer) - (define-key map "\C-c\C-d" #'preview-clearout-document) - map)) - -(defun preview-copy-text (ov) - "Copy the text of OV into the kill buffer." - (save-excursion - (set-buffer (overlay-buffer ov)) - (copy-region-as-kill (overlay-start ov) (overlay-end ov)))) - -(defun preview-copy-mml (ov) - "Copy an MML representation of OV into the kill buffer. -This can be used to send inline images in mail and news when -using MML mode." - (when (catch 'badcolor - (let ((str (car (preview-format-mml ov)))) - (if str - (if (eq last-command 'kill-region) - (kill-append str nil) - (kill-new str)) - (error "No image file available"))) - nil) - (let (preview-transparent-border) - (preview-regenerate ov)))) - -(defun preview-copy-region-as-mml (start end) - (interactive "r") - (when (catch 'badcolor - (let (str lst dont-ask) - (dolist (ov (overlays-in start end)) - (when (setq str (preview-format-mml ov dont-ask)) - (setq dont-ask (cdr str)) - (and - (>= (overlay-start ov) start) - (<= (overlay-end ov) end) - (push (list (- (overlay-start ov) start) - (- (overlay-end ov) start) - (car str)) lst)))) - (setq str (buffer-substring start end)) - (dolist (elt (nreverse (sort lst #'car-less-than-car))) - (setq str (concat (substring str 0 (nth 0 elt)) - (nth 2 elt) - (substring str (nth 1 elt))))) - (if (eq last-command 'kill-region) - (kill-append str nil) - (kill-new str))) - nil) - (let (preview-transparent-border) - (preview-region start end)))) - -(autoload 'mailcap-extension-to-mime "mailcap") - -(defun preview-format-mml (ov &optional dont-ask) - "Return an MML representation of OV as string. -This can be used to send inline images in mail and news when -using MML mode. If there is nothing current available, -NIL is returned. If the image has a colored border and the -user wants it removed when asked (unless DONT-ASK is set), -'badcolor is thrown a t. The MML is returned in the car of the -result, DONT-ASK in the cdr." - (and (memq (overlay-get ov 'preview-state) '(active inactive)) - (not (overlay-get ov 'queued)) - (let* ((text (with-current-buffer (overlay-buffer ov) - (buffer-substring (overlay-start ov) - (overlay-end ov)))) - (image (cdr (overlay-get ov 'preview-image))) - file type) - (cond ((consp image) - (and (not dont-ask) - (nth 3 image) - (if (y-or-n-p "Replace colored borders? ") - (throw 'badcolor t) - (setq dont-ask t))) - (setq file (car (car (last (overlay-get ov 'filenames)))) - type (mailcap-extension-to-mime - (file-name-extension file))) - (cons - (format "<#part %s -description=\"%s\" -filename=%s> -<#/part>" - (if type - (format "type=\"%s\" disposition=inline" type) - "disposition=attachment") - (if (string-match "[\n\"]" text) - "preview-latex image" - text) - (if (string-match "[ \n<>]" file) - (concat "\"" file "\"") - file)) - dont-ask)) - ((stringp image) - (cons image dont-ask)))))) - -(defun preview-active-contents (ov) - "Check whether we have a valid image associated with OV." - (and (memq (overlay-get ov 'preview-state) '(active inactive)) t)) - -(defun preview-context-menu (ov ev) - "Pop up a menu for OV at position EV." - (popup-menu - `("Preview" - ["Toggle" (preview-toggle ,ov 'toggle ',ev) - (preview-active-contents ,ov)] - ["Regenerate" (preview-regenerate ,ov)] - ["Remove" (preview-delete ,ov)] - ["Copy text" (preview-copy-text ,ov)] - ["Copy MIME" (preview-copy-mml ,ov) - (preview-active-contents ,ov)]) - ev)) - -(defvar preview-TeX-style-dir) - -(defun preview-TeX-style-cooked () - "Return `preview-TeX-style-dir' in cooked form. -This will be fine for prepending to a `TEXINPUT' style -environment variable, including an initial `.' at the front." - (if (or (zerop (length preview-TeX-style-dir)) - (member (substring preview-TeX-style-dir -1) '(";" ":"))) - preview-TeX-style-dir - (let ((sep - (cond - ((stringp TeX-kpathsea-path-delimiter) - TeX-kpathsea-path-delimiter) - ((string-match - "\\`.[:]" - (if (file-name-absolute-p preview-TeX-style-dir) - preview-TeX-style-dir - (expand-file-name preview-TeX-style-dir))) - ";") - (t ":")))) - (concat "." sep preview-TeX-style-dir sep)))) - -(defun preview-set-texinputs (&optional remove) - "Add `preview-TeX-style-dir' into `TEXINPUTS' variables. -With prefix argument REMOVE, remove it again." - (interactive "P") - (let ((case-fold-search nil) - (preview-TeX-style-dir (preview-TeX-style-cooked)) - pattern) - (if remove - (progn - (setq pattern (concat "\\`\\(TEXINPUTS[^=]*\\)=\\(.*\\)" - (regexp-quote preview-TeX-style-dir))) - (dolist (env (copy-sequence process-environment)) - (if (string-match pattern env) - (setenv (match-string 1 env) - (and (or (< (match-beginning 2) (match-end 2)) - (< (match-end 0) (length env))) - (concat (match-string 2 env) - (substring env (match-end 0)))))))) - (setq pattern (regexp-quote preview-TeX-style-dir)) - (dolist (env (cons "TEXINPUTS=" (copy-sequence process-environment))) - (if (string-match "\\`\\(TEXINPUTS[^=]*\\)=" env) - (unless (string-match pattern env) - (setenv (match-string 1 env) - (concat preview-TeX-style-dir - (substring env (match-end 0)))))))))) - -(defcustom preview-TeX-style-dir nil - "This variable contains the location of uninstalled TeX styles. -If this is nil, the preview styles are considered to be part of -the installed TeX system. - -Otherwise, it can either just specify an absolute directory, or -it can be a complete TEXINPUTS specification. If it is the -latter, it has to be followed by the character with which -kpathsea separates path components, either `:' on Unix-like -systems, or `;' on Windows-like systems. And it should be -preceded with .: or .; accordingly in order to have . first in -the search path. - -The `TEXINPUT' environment type variables will get this prepended -at load time calling \\[preview-set-texinputs] to reflect this. -You can permanently install the style files using -\\[preview-install-styles]. - -Don't set this variable other than with customize so that its -changes get properly reflected in the environment." - :group 'preview-latex - :set (lambda (var value) - (and (boundp var) - (symbol-value var) - (preview-set-texinputs t)) - (set var value) - (and (symbol-value var) - (preview-set-texinputs))) - :type '(choice (const :tag "Installed" nil) - (string :tag "Style directory or TEXINPUTS path"))) - -;;;###autoload -(defun preview-install-styles (dir &optional force-overwrite - force-save) - "Installs the TeX style files into a permanent location. -This must be in the TeX search path. If FORCE-OVERWRITE is greater -than 1, files will get overwritten without query, if it is less -than 1 or nil, the operation will fail. The default of 1 for interactive -use will query. - -Similarly FORCE-SAVE can be used for saving -`preview-TeX-style-dir' to record the fact that the uninstalled -files are no longer needed in the search path." - (interactive "DPermanent location for preview TeX styles -pp") - (unless preview-TeX-style-dir - (error "Styles are already installed")) - (dolist (file (or - (condition-case nil - (directory-files - (progn - (string-match - "\\`\\(\\.[:;]\\)?\\(.*?\\)\\([:;]\\)?\\'" - preview-TeX-style-dir) - (match-string 2 preview-TeX-style-dir)) - t "\\.\\(sty\\|def\\|cfg\\)\\'") - (error nil)) - (error "Can't find files to install"))) - (copy-file file dir (cond ((eq force-overwrite 1) 1) - ((numberp force-overwrite) - (> force-overwrite 1)) - (t force-overwrite)))) - (if (cond ((eq force-save 1) - (y-or-n-p "Stop using non-installed styles permanently ")) - ((numberp force-save) - (> force-save 1)) - (t force-save)) - (customize-save-variable 'preview-TeX-style-dir nil) - (customize-set-variable 'preview-TeX-style-dir nil))) - -;;;###autoload -(defun LaTeX-preview-setup () - "Hook function for embedding the preview package into AUCTeX. -This is called by `LaTeX-mode-hook' and changes AUCTeX variables -to add the preview functionality." - (remove-hook 'LaTeX-mode-hook #'LaTeX-preview-setup) - (add-hook 'LaTeX-mode-hook #'preview-mode-setup) - (define-key LaTeX-mode-map "\C-c\C-p" preview-map) - (easy-menu-define preview-menu LaTeX-mode-map - "This is the menu for preview-latex." - '("Preview" - "Generate previews" - ["(or toggle) at point" preview-at-point] - ["for environment" preview-environment] - ["for section" preview-section] - ["for region" preview-region (preview-mark-active)] - ["for buffer" preview-buffer] - ["for document" preview-document] - "---" - "Remove previews" - ["at point" preview-clearout-at-point] - ["from section" preview-clearout-section] - ["from region" preview-clearout (preview-mark-active)] - ["from buffer" preview-clearout-buffer] - ["from document" preview-clearout-document] - "---" - "Turn preamble cache" - ["on" preview-cache-preamble] - ["off" preview-cache-preamble-off] - "---" - ("Customize" - ["Browse options" - (customize-group 'preview)] - ["Extend this menu" - (easy-menu-add-item - nil '("Preview") - (customize-menu-create 'preview))]) - ["Read documentation" preview-goto-info-page] - ["Report Bug" preview-report-bug])) - (if (eq major-mode 'latex-mode) - (preview-mode-setup)) - (if (boundp 'desktop-buffer-misc) - (preview-buffer-restore desktop-buffer-misc))) - -(defun preview-clean-subdir (dir) - "Cleans out a temporary DIR with preview image files." - (condition-case err - (progn - (mapc #'delete-file - (directory-files dir t "\\`pr" t)) - (delete-directory dir)) - (error (message "Deletion of `%s' failed: %s" dir - (error-message-string err))))) - -(defun preview-clean-topdir (topdir) - "Cleans out TOPDIR from temporary directories. -This does not erase the directory itself since its permissions -might be needed for colloborative work on common files." - (mapc #'preview-clean-subdir - (condition-case nil - (directory-files topdir t "\\`tmp" t) - (file-error nil)))) - -(defun preview-create-subdirectory () - "Create a temporary subdir for the current TeX process. -If necessary, generates a fitting top -directory or cleans out an existing one (if not yet -visited in this session), then returns the name of -the created subdirectory relative to the master directory, -in shell-quoted form. `TeX-active-tempdir' is -set to the corresponding TEMPDIR descriptor as described -in `preview-make-filename'. The directory is registered -in `preview-temp-dirs' in order not to be cleaned out -later while in use." - (let ((topdir (expand-file-name (TeX-active-master "prv")))) - (if (file-directory-p topdir) - (unless (member topdir preview-temp-dirs) - ;; Cleans out the top preview directory by - ;; removing subdirs possibly left from a previous session. - (preview-clean-topdir topdir) - (push topdir preview-temp-dirs)) - (make-directory topdir) - (add-to-list 'preview-temp-dirs topdir)) - (add-hook 'kill-emacs-hook #'preview-cleanout-tempfiles t) - (setq TeX-active-tempdir - (list (make-temp-file (expand-file-name - "tmp" (file-name-as-directory topdir)) t) - topdir - 0)) - (shell-quote-argument - (concat (file-name-as-directory (file-name-nondirectory topdir)) - (file-name-nondirectory (nth 0 TeX-active-tempdir)))))) - -;; Hook into TeX immediately if it's loaded, use LaTeX-mode-hook if not. -(if (featurep 'latex) - (LaTeX-preview-setup) - (add-hook 'LaTeX-mode-hook #'LaTeX-preview-setup)) - -;;;###autoload (add-hook 'LaTeX-mode-hook #'LaTeX-preview-setup) - -(defun preview-parse-counters (string) - "Extract counter information from STRING." - (let ((list preview-parsed-counters) (pos 0)) - (while (eq pos (string-match " *\\({\\([^{}]+\\)}{[-0-9]+}\\)" string pos)) - (setcdr (or (assoc (match-string 2 string) list) - (car (push (list (match-string 2 string)) list))) - (match-string 1 string)) - (setq pos (match-end 1))) - list)) - -(defun preview-parse-tightpage (string) - "Build tightpage vector from STRING," - (read (concat "[" string "]"))) - -(defvar preview-parse-variables - '(("Fontsize" preview-parsed-font-size - "\\` *\\([0-9.]+\\)pt\\'" 1 string-to-number) - ("Magnification" preview-parsed-magnification - "\\` *\\([0-9]+\\)\\'" 1 string-to-number) - ("PDFoutput" preview-parsed-pdfoutput - "" 0 stringp) - ("Counters" preview-parsed-counters - ".*" 0 preview-parse-counters) - ("Tightpage" preview-parsed-tightpage - "\\` *\\(-?[0-9]+ *\\)\\{4\\}\\'" 0 preview-parse-tightpage))) - -(defun preview-error-quote (string run-coding-system) - "Turn STRING with potential ^^ sequences into a regexp. -To preserve sanity, additional ^ prefixes are matched literally, -so the character represented by ^^^ preceding extended characters -will not get matched, usually." - (let (output case-fold-search) - (when (featurep 'mule) - (setq string (encode-coding-string string run-coding-system))) - (while (string-match "\\^\\{2,\\}\\(\\([@-_?]\\)\\|[8-9a-f][0-9a-f]\\)" - string) - (setq output - (concat output - (regexp-quote (substring string - 0 - (- (match-beginning 1) 2))) - (if (match-beginning 2) - (concat - "\\(?:" (regexp-quote - (substring string - (- (match-beginning 1) 2) - (match-end 0))) - "\\|" - (char-to-string - (logxor (aref string (match-beginning 2)) 64)) - "\\)") - (char-to-string - (string-to-number (match-string 1 string) 16)))) - string (substring string (match-end 0)))) - (setq output (concat output (regexp-quote string))) - (if (featurep 'mule) - (decode-coding-string output - (or (and (boundp 'TeX-japanese-process-output-coding-system) - TeX-japanese-process-output-coding-system) - buffer-file-coding-system)) - output))) - -(defun preview-parse-messages (open-closure) - "Turn all preview snippets into overlays. -This parses the pseudo error messages from the preview -document style for LaTeX. OPEN-CLOSURE is called once -it is certain that we have a valid output file, and it has -to return in its CAR the PROCESS parameter for the CLOSE -call, and in its CDR the final stuff for the placement hook." - (with-temp-message "locating previews..." - (let (TeX-error-file TeX-error-offset snippet box counters - file line - (lsnippet 0) lstart (lfile "") lline lbuffer lpoint - lcounters - string after-string error context-start - context offset - parsestate (case-fold-search nil) - (run-buffer (current-buffer)) - (run-coding-system preview-coding-system) - (run-directory default-directory) - tempdir - close-data - open-data - fast-hook - slow-hook) - ;; clear parsing variables - (dolist (var preview-parse-variables) - (set (nth 1 var) nil)) - (goto-char (point-min)) - (unwind-protect - (progn - (while - (re-search-forward "\ -^\\(!\\|\\(.*?\\):[0-9]+:\\) \\|\ -\(\\(/*\ -\\(?:\\.+[^()\r\n{} /]*\\|[^()\r\n{} ./]+\ -\\(?: [^()\r\n{} ./]+\\)*\\(?:\\.[-0-9a-zA-Z_.]*\\)?\\)\ -\\(?:/+\\(?:\\.+[^()\r\n{} /]*\\|[^()\r\n{} ./]+\ -\\(?: [^()\r\n{} ./]+\\)*\\(?:\\.[-0-9a-zA-Z_.]*\\)?\\)?\\)*\\)\ -)*\\(?: \\|\r?$\\)\\|\ -\\()+\\)\\|\ - !\\(?:offset(\\([---0-9]+\\))\\|\ -name(\\([^)]+\\))\\)\\|\ -^Preview: \\([a-zA-Z]+\\) \\([^\n\r]*\\)\r?$" nil t) -;;; Ok, here is a line by line breakdown: -;;; match-alternative 1: -;;; error indicator for TeX error, either style. -;;; match-alternative 2: -;;; The same, but file-line-error-style, matching on file name. -;;; match-alternative 3: -;;; Too ugly to describe in detail. In short, we try to catch file -;;; names built from path components that don't contain spaces or -;;; other special characters once the file extension has started. -;;; -;;; Position for searching immediately after the file name so as to -;;; not miss closing parens or something. -;;; (match-string 3) is the file name. -;;; match-alternative 4: -;;; )+\( \|$\) -;;; a closing paren followed by the end of line or a space: a just -;;; closed file. -;;; match-alternative 5 (wrapped into one shy group with -;;; match-alternative 6, so that the match on first char is slightly -;;; faster): -;;; !offset(\([---0-9]+\)) -;;; an AUCTeX offset message. (match-string 5) is the offset itself -;;; !name(\([^)]+\)) -;;; an AUCTeX file name message. (match-string 6) is the file name -;;; TODO: Actually, the latter two should probably again match only -;;; after a space or newline, since that it what \message produces. -;;;disabled in prauctex.def: -;;;\(?:Ov\|Und\)erfull \\.*[0-9]*--[0-9]* -;;;\(?:.\{79\} -;;;\)*.*$\)\| -;;; This would have caught overfull box messages that consist of -;;; several lines of context all with 79 characters in length except -;;; of the last one. prauctex.def kills all such messages. - (setq file (match-string-no-properties 2)) - (cond - ((match-beginning 1) - (if (looking-at "\ -\\(?:Preview\\|Package Preview Error\\): Snippet \\([---0-9]+\\) \\(started\\|ended\\(\ -\\.? *(\\([---0-9]+\\)\\+\\([---0-9]+\\)x\\([---0-9]+\\))\\)?\\)\\.") - (progn - (when file - (unless TeX-error-file - (push nil TeX-error-file) - (push nil TeX-error-offset)) - (unless (car TeX-error-offset) - (rplaca TeX-error-file file))) - (setq snippet (string-to-number (match-string 1)) - box (unless - (string= (match-string 2) "started") - (if (match-string 4) - (mapcar #'(lambda (x) - (* (preview-get-magnification) - (string-to-number x))) - (list - (match-string 4) - (match-string 5) - (match-string 6))) - t)) - counters (mapcar #'cdr preview-parsed-counters) - error (progn - (setq lpoint (point)) - (end-of-line) - (buffer-substring lpoint (point))) - - ;; And the context for the help window. - context-start (point) - - ;; And the line number to position the cursor. -;;; variant 1: profiling seems to indicate the regexp-heavy solution -;;; to be favorable. Removing incomplete characters from the error -;;; context is an absolute nuisance. - line (and (re-search-forward "\ -^l\\.\\([0-9]+\\) \\(\\.\\.\\.\\(?:\\^*\\(?:[89a-f][0-9a-f]\\|[]@-\\_?]\\)\\|\ -\[0-9a-f]?\\)\\)?\\([^\n\r]*?\\)\r? -\\([^\n\r]*?\\)\\(\\(?:\\^+[89a-f]?\\)?\\.\\.\\.\\)?\r?$" nil t) - (string-to-number (match-string 1))) - ;; And a string of the context to search for. - string (and line (match-string 3)) - after-string (and line (buffer-substring - (+ (match-beginning 4) - (- (match-end 3) - (match-beginning 0))) - (match-end 4))) - - ;; And we have now found to the end of the context. - context (buffer-substring context-start (point)) - ;; We may use these in another buffer. - offset (or (car TeX-error-offset) 0) - file (car TeX-error-file)) - (when (and (stringp file) - (or (string= file "") - (TeX-match-extension file))) - ;; if we are the first time round, check for fast hooks: - (when (null parsestate) - (setq open-data - (save-excursion (funcall open-closure)) - tempdir TeX-active-tempdir) - (dolist - (lst (if (listp TeX-translate-location-hook) - TeX-translate-location-hook - (list TeX-translate-location-hook))) - (let ((fast - (and (symbolp lst) - (get lst 'TeX-translate-via-list)))) - (if fast - (setq fast-hook - (nconc fast-hook (list fast))) - (setq slow-hook - (nconc slow-hook (list lst))))))) - (condition-case err - (save-excursion (run-hooks 'slow-hook)) - (error (preview-log-error err "Translation hook"))) - (push (vector file (+ line offset) - string after-string - snippet box counters) parsestate))) - ;; else normal error message - (forward-line) - (re-search-forward "^l\\.[0-9]" nil t) - (forward-line 2))) - ((match-beginning 3) - ;; New file -- Push on stack - (push (match-string-no-properties 3) TeX-error-file) - (push nil TeX-error-offset) - (goto-char (match-end 3))) - ((match-beginning 4) - ;; End of file -- Pop from stack - (when (> (length TeX-error-file) 1) - (pop TeX-error-file) - (pop TeX-error-offset)) - (goto-char (1+ (match-beginning 0)))) - ((match-beginning 5) - ;; Hook to change line numbers - (setq TeX-error-offset - (list (string-to-number (match-string 5))))) - ((match-beginning 6) - ;; Hook to change file name - (setq TeX-error-file (list (match-string-no-properties 6)))) - ((match-beginning 7) - (let ((var - (assoc (match-string-no-properties 7) - preview-parse-variables)) - (offset (- (match-beginning 0) (match-beginning 8))) - (str (match-string-no-properties 8))) - ;; paste together continuation lines: - (while (= (- (length str) offset) 79) - (search-forward-regexp "^\\([^\n\r]*\\)\r?$") - (setq offset (- (length str)) - str (concat str (match-string-no-properties 1)))) - (when (and var - (string-match (nth 2 var) str)) - (set (nth 1 var) - (funcall (nth 4 var) - (match-string-no-properties - (nth 3 var) - str)))))))) - (when (null parsestate) - (error "LaTeX found no preview images"))) - (unwind-protect - (save-excursion - (setq parsestate (nreverse parsestate)) - (condition-case err - (dolist (fun fast-hook) - (setq parsestate - (save-excursion (funcall fun parsestate)))) - (error (preview-log-error err "Fast translation hook"))) - (setq snippet 0) - (dolist (state parsestate) - (setq lsnippet snippet - file (aref state 0) - line (aref state 1) - string (aref state 2) - after-string (aref state 3) - snippet (aref state 4) - box (aref state 5) - counters (aref state 6)) - (unless (string= lfile file) - (set-buffer (if (string= file "") - (with-current-buffer run-buffer - TeX-command-buffer) - (find-file-noselect - (expand-file-name file run-directory)))) - (setq lfile file)) - (save-excursion - (save-restriction - (widen) - ;; a fast hook might have positioned us already: - (if (number-or-marker-p string) - (progn - (goto-char string) - (setq lpoint - (if (number-or-marker-p after-string) - after-string - (line-beginning-position)))) - (if (and (eq (current-buffer) lbuffer) - (<= lline line)) - ;; while Emacs does the perfectly correct - ;; thing even when when the line differences - ;; get zero or negative, I don't trust this - ;; to be universally the case across other - ;; implementations. Besides, if the line - ;; number gets smaller again, we are probably - ;; rereading the file, and restarting from - ;; the beginning will probably be faster. - (progn - (goto-char lpoint) - (if (/= lline line) - (if (eq selective-display t) - (re-search-forward "[\n\C-m]" nil - 'end - (- line lline)) - (forward-line (- line lline))))) - (goto-line line)) - (setq lpoint (point)) - (cond - ((search-forward (concat string after-string) - (line-end-position) t) - (backward-char (length after-string))) - ;;ok, transform ^^ sequences - ((search-forward-regexp - (concat "\\(" - (setq string - (preview-error-quote - string - run-coding-system)) - "\\)" - (setq after-string - (preview-error-quote - after-string - run-coding-system))) - (line-end-position) t) - (goto-char (match-end 1))) - ((search-forward-regexp - (concat "\\(" - (if (string-match - "^[^\0-\177]\\{1,6\\}" string) - (setq string - (substring string (match-end 0))) - string) - "\\)" - (if (string-match - "[^\0-\177]\\{1,6\\}$" after-string) - (setq after-string - (substring after-string - 0 (match-beginning 0))))) - (line-end-position) t) - (goto-char (match-end 1))) - (t (search-forward-regexp - string - (line-end-position) t)))) - (setq lline line - lbuffer (current-buffer)) - (if box - (progn - (if (and lstart (= snippet lsnippet)) - (setq close-data - (nconc - (preview-place-preview - snippet - (save-excursion - (preview-back-command - (= (prog1 (point) - (goto-char lstart)) - lstart)) - (point)) - (point) - (preview-TeX-bb box) - (cons lcounters counters) - tempdir - (cdr open-data)) - close-data)) - (with-current-buffer run-buffer - (preview-log-error - (list 'error - (format - "End of Preview snippet %d unexpected" - snippet)) "Parser"))) - (setq lstart nil)) - ;; else-part of if box - (setq lstart (point) lcounters counters) - ;; >= because snippets in between might have - ;; been ignored because of TeX-default-extension - (unless (>= snippet (1+ lsnippet)) - (with-current-buffer run-buffer - (preview-log-error - (list 'error - (format - "Preview snippet %d out of sequence" - snippet)) "Parser")))))))) - (preview-call-hook 'close (car open-data) close-data)))))) - -(defun preview-get-geometry () - "Transfer display geometry parameters from current display. -Returns list of scale, resolution and colors. Calculation -is done in current buffer." - (condition-case err - (let* ((geometry - (list (preview-hook-enquiry preview-scale-function) - (cons (/ (* 25.4 (display-pixel-width)) - (display-mm-width)) - (/ (* 25.4 (display-pixel-height)) - (display-mm-height))) - (preview-get-colors))) - (preview-min-spec - (* (cdr (nth 1 geometry)) - (/ - (preview-inherited-face-attribute - 'preview-reference-face :height 'default) - 720.0)))) - (setq preview-icon (preview-make-image 'preview-icon-specs) - preview-error-icon (preview-make-image - 'preview-error-icon-specs) - preview-nonready-icon (preview-make-image - 'preview-nonready-icon-specs)) - geometry) - (error (error "Display geometry unavailable: %s" - (error-message-string err))))) - -(defun preview-set-geometry (geometry) - "Set geometry variables from GEOMETRY. -Buffer-local `preview-scale', `preview-resolution', -and `preview-colors' are set as given." - (setq preview-scale (nth 0 geometry) - preview-resolution (nth 1 geometry) - preview-colors (nth 2 geometry))) - -(defun preview-start-dvipng () - "Start a DviPNG process.." - (let* ((file preview-gs-file) - tempdir - (res (/ (* (car preview-resolution) - (preview-hook-enquiry preview-scale)) - (preview-get-magnification))) - (resolution (format " -D%d " res)) - (colors (preview-dvipng-color-string preview-colors res)) - (command (with-current-buffer TeX-command-buffer - (prog1 - (concat (TeX-command-expand preview-dvipng-command - (car file)) - " " colors resolution) - (setq tempdir TeX-active-tempdir)))) - (name "Preview-DviPNG")) - (setq TeX-active-tempdir tempdir) - (goto-char (point-max)) - (insert-before-markers "Running `" name "' with ``" command "''\n") - (setq mode-name name) - (setq TeX-sentinel-function - (lambda (process name) (message "%s: done." name))) - (if TeX-process-asynchronous - (let ((process (start-process name (current-buffer) TeX-shell - TeX-shell-command-option - command))) - (if TeX-after-start-process-function - (funcall TeX-after-start-process-function process)) - (TeX-command-mode-line process) - (set-process-filter process 'TeX-command-filter) - (set-process-sentinel process 'TeX-command-sentinel) - (set-marker (process-mark process) (point-max)) - (push process compilation-in-progress) - (sit-for 0) - process) - (setq mode-line-process ": run") - (set-buffer-modified-p (buffer-modified-p)) - (sit-for 0) ; redisplay - (call-process TeX-shell nil (current-buffer) nil - TeX-shell-command-option - command)))) - -(defun preview-start-dvips (&optional fast) - "Start a DviPS process. -If FAST is set, do a fast conversion." - (let* ((file preview-gs-file) - tempdir - (command (with-current-buffer TeX-command-buffer - (prog1 - (TeX-command-expand (if fast - preview-fast-dvips-command - preview-dvips-command) - (car file)) - (setq tempdir TeX-active-tempdir)))) - (name "Preview-DviPS")) - (setq TeX-active-tempdir tempdir) - (setq preview-ps-file (and fast - (preview-make-filename - (preview-make-filename - "preview.ps" tempdir) tempdir))) - (goto-char (point-max)) - (insert-before-markers "Running `" name "' with ``" command "''\n") - (setq mode-name name) - (setq TeX-sentinel-function - (lambda (process name) (message "%s: done." name))) - (if TeX-process-asynchronous - (let ((process (start-process name (current-buffer) TeX-shell - TeX-shell-command-option - command))) - (if TeX-after-start-process-function - (funcall TeX-after-start-process-function process)) - (TeX-command-mode-line process) - (set-process-filter process 'TeX-command-filter) - (set-process-sentinel process 'TeX-command-sentinel) - (set-marker (process-mark process) (point-max)) - (push process compilation-in-progress) - (sit-for 0) - process) - (setq mode-line-process ": run") - (set-buffer-modified-p (buffer-modified-p)) - (sit-for 0) ; redisplay - (call-process TeX-shell nil (current-buffer) nil - TeX-shell-command-option - command)))) - -(defun preview-start-pdf2dsc () - "Start a PDF2DSC process." - (let* ((file preview-gs-file) - tempdir - pdfsource - (command (with-current-buffer TeX-command-buffer - (prog1 - (TeX-command-expand preview-pdf2dsc-command - (car file)) - (setq tempdir TeX-active-tempdir - pdfsource (funcall `,(car file) "pdf"))))) - (name "Preview-PDF2DSC")) - (setq TeX-active-tempdir tempdir) - (setq preview-ps-file (preview-attach-filename - pdfsource - (preview-make-filename - (preview-make-filename - "preview.dsc" tempdir) tempdir))) - (goto-char (point-max)) - (insert-before-markers "Running `" name "' with ``" command "''\n") - (setq mode-name name) - (setq TeX-sentinel-function - (lambda (process name) (message "%s: done." name))) - (if TeX-process-asynchronous - (let ((process (start-process name (current-buffer) TeX-shell - TeX-shell-command-option - command))) - (if TeX-after-start-process-function - (funcall TeX-after-start-process-function process)) - (TeX-command-mode-line process) - (set-process-filter process 'TeX-command-filter) - (set-process-sentinel process 'TeX-command-sentinel) - (set-marker (process-mark process) (point-max)) - (push process compilation-in-progress) - (sit-for 0) - process) - (setq mode-line-process ": run") - (set-buffer-modified-p (buffer-modified-p)) - (sit-for 0) ; redisplay - (call-process TeX-shell nil (current-buffer) nil - TeX-shell-command-option - command)))) - -(defun preview-TeX-inline-sentinel (process name) - "Sentinel function for preview. -See `TeX-sentinel-function' and `set-process-sentinel' -for definition of PROCESS and NAME." - (if process (TeX-format-mode-line process)) - (let ((status (process-status process))) - (if (memq status '(signal exit)) - (delete-process process)) - (when (eq status 'exit) - (save-excursion - (goto-char (point-max)) - (forward-line -1) - (if (search-forward "abnormally with code 1" nil t) - (replace-match "as expected with code 1" t t) - (if (search-forward "finished" nil t) - (insert " with nothing to show")))) - (condition-case err - (preview-call-hook 'open) - (error (preview-log-error err "LaTeX" process))) - (preview-reraise-error process)))) - -(defcustom preview-format-extensions '(".fmt" ".efmt") - "Possible extensions for format files. -Those are just needed for cleanup." - :group 'preview-latex - :type '(repeat string)) - -(defun preview-format-kill (format-cons) - "Kill a cached format. -FORMAT-CONS is intended to be an element of `preview-dumped-alist'. -Tries through `preview-format-extensions'." - (dolist (ext preview-format-extensions) - (condition-case nil - (delete-file (preview-dump-file-name (concat (car format-cons) ext))) - (file-error nil)))) - -(defun preview-dump-file-name (file) - "Make a file name suitable for dumping from FILE." - (if file - (concat (file-name-directory file) - "prv_" - (progn - (setq file (file-name-nondirectory file)) - (while (string-match " " file) - (setq file (replace-match "_" t t file))) - file)) - "prv_texput")) - -(defun preview-do-replacements (string replacements) - "Perform replacements in string. -STRING is the input string, REPLACEMENTS is a list of replacements. -A replacement is a cons-cell, where the car is the match string, -and the cdr is a list of strings or symbols. Symbols get dereferenced, -and strings get evaluated as replacement strings." - (let (rep case-fold-search) - (while replacements - (setq rep (pop replacements)) - (cond ((symbolp rep) - (setq string (preview-do-replacements - string (symbol-value rep)))) - ((string-match (car rep) string) - (setq string - (mapconcat (lambda(x) - (if (symbolp x) - (symbol-value x) - (replace-match x t nil string))) - (cdr rep) "")))))) - string) - -(defconst preview-LaTeX-disable-pdfoutput - '(("\\`\\(pdf[^ ]*\\)\ -\\(\\( [-&]\\([^ \"]\\|\"[^\"]*\"\\)*\\|\ - \"[-&][^\"]*\"\\)*\\)\\(.*\\)\\'" - . ("\\1\\2 \"\\\\pdfoutput=0 \" \\5"))) - "This replacement places `\"\\pdfoutput=0 \"' after the options -of any command starting with `pdf'.") - -(defcustom preview-LaTeX-command-replacements - nil - "Replacement for `preview-LaTeX-command'. -This is passed through `preview-do-replacements'." - :group 'preview-latex - :type '(repeat - (choice - (symbol :tag "Named replacement" :value preview-LaTeX-disable-pdfoutput) - (cons (string :tag "Matched string") - (repeat :tag "Concatenated elements for replacement" - (choice (symbol :tag "Variable with literal string") - (string :tag "non-literal regexp replacement"))))))) - -(defvar preview-format-name) - -(defcustom preview-dump-replacements - '(preview-LaTeX-command-replacements - ("\\`\\([^ ]+\\)\ -\\(\\( +-\\([^ \\\\\"]\\|\\\\\\.\\|\"[^\"]*\"\\)*\\)*\\)\\(.*\\)\\'" - . ("\\1 -ini -interaction=nonstopmode \"&\\1\" " preview-format-name ".ini \\5"))) - "Generate a dump command from the usual preview command." - :group 'preview-latex - :type '(repeat - (choice (symbol :tag "Named replacement") - (cons string (repeat (choice symbol string)))))) - -(defcustom preview-undump-replacements - '(("\\`\\([^ ]+\\)\ - .*? \"\\\\input\" \\(.*\\)\\'" - . ("\\1 -interaction=nonstopmode \"&" preview-format-name "\" \\2"))) - "Use a dumped format for reading preamble." - :group 'preview-latex - :type '(repeat - (choice (symbol :tag "Named replacement") - (cons string (repeat (choice symbol string)))))) - - -(defun preview-cache-preamble (&optional format-cons) - "Dump a pregenerated format file. -For the rest of the session, this file is used when running -on the same master file. - -Returns the process for dumping, nil if there is still a valid -format available. - -If FORMAT-CONS is non-nil, a previous format may get reused." - (interactive) - (let* ((dump-file - (expand-file-name (preview-dump-file-name (TeX-master-file "ini")))) - (master (TeX-master-file)) - (format-name (expand-file-name master)) - (preview-format-name (shell-quote-argument - (preview-dump-file-name (file-name-nondirectory - master)))) - (master-file (expand-file-name (TeX-master-file t))) - (command (preview-do-replacements - (TeX-command-expand - (preview-string-expand preview-LaTeX-command) - 'TeX-master-file) - preview-dump-replacements)) - (preview-auto-cache-preamble nil)) - (unless (and (consp (cdr format-cons)) - (string= command (cadr format-cons))) - (unless format-cons - (setq format-cons (assoc format-name preview-dumped-alist))) - (if format-cons - (preview-cache-preamble-off format-cons) - (setq format-cons (list format-name)) - (push format-cons preview-dumped-alist)) - ;; mylatex.ltx expects a file name to follow. Bad. `.tex' - ;; in the tools bundle is an empty file. - (write-region "\\ifx\\pdfoutput\\undefined\\else\ -\\let\\PREVIEWdump\\dump\\def\\dump{% -\\edef\\next{{\\catcode`\\ 9 \\pdfoutput=\\the\\pdfoutput\\relax\ -\\the\\everyjob}}\\everyjob\\next\\catcode`\\ 10 \\let\\dump\\PREVIEWdump\\dump}\\fi\\input mylatex.ltx \\relax\n" nil dump-file) - (TeX-save-document master) - (prog1 - (preview-generate-preview - nil (file-name-nondirectory master) - command) - (add-hook 'kill-emacs-hook #'preview-cleanout-tempfiles t) - (setq TeX-sentinel-function - `(lambda (process string) - (condition-case err - (progn - (if (and (eq (process-status process) 'exit) - (zerop (process-exit-status process))) - (preview-watch-preamble - ',master-file - ',command - ',format-cons) - (preview-format-kill ',format-cons)) - (delete-file ',dump-file)) - (error (preview-log-error err "Dumping" process))) - (preview-reraise-error process))))))) - -(defun preview-cache-preamble-off (&optional old-format) - "Clear the pregenerated format file. -The use of the format file is discontinued. -OLD-FORMAT may already contain a format-cons as -stored in `preview-dumped-alist'." - (interactive) - (unless old-format - (setq old-format - (let ((master-file (expand-file-name (TeX-master-file)))) - (or (assoc master-file preview-dumped-alist) - (car (push (list master-file) preview-dumped-alist)))))) - (preview-unwatch-preamble old-format) - (preview-format-kill old-format) - (setcdr old-format nil)) - -(defun preview-region (begin end) - "Run preview on region between BEGIN and END." - (interactive "r") - (TeX-region-create (TeX-region-file TeX-default-extension) - (buffer-substring begin end) - (if buffer-file-name - (file-name-nondirectory buffer-file-name) - "") - (save-restriction - (widen) - (let ((inhibit-point-motion-hooks t) - (inhibit-field-text-motion t)) - (+ (count-lines (point-min) begin) - (save-excursion - (goto-char begin) - (if (bolp) 0 -1)))))) - (preview-generate-preview t (TeX-region-file nil t) - (preview-do-replacements - (TeX-command-expand - (preview-string-expand preview-LaTeX-command) - 'TeX-region-file) - preview-LaTeX-command-replacements))) - -(defun preview-buffer () - "Run preview on current buffer." - (interactive) - (preview-region (point-min) (point-max))) - -;; We have a big problem: When we are dumping preambles, diagnostics -;; issued in later runs will not make it to the output when the -;; predumped format skips the preamble. So we have to place those -;; after \begin{document}. This we can only do if regions never -;; include the preamble. We could do this in our own functions, but -;; that would not extend to the operation of C-c C-r g RET. So we -;; make this preamble skipping business part of TeX-region-create. -;; This will fail if the region is to contain just part of the -;; preamble -- a bad idea anyhow. - -(defadvice TeX-region-create (before preview-preamble preactivate activate) - "Skip preamble for the sake of predumped formats." - (when (string-match TeX-header-end (ad-get-arg 1)) - (ad-set-arg 1 - (prog1 (substring (ad-get-arg 1) (match-end 0)) - (ad-set-arg 3 - (with-temp-buffer - (insert (substring (ad-get-arg 1) - 0 (match-end 0))) - (+ (ad-get-arg 3) - (count-lines (point-min) (point-max)) - (if (bolp) 0 -1)))))))) - -(defun preview-document () - "Run preview on master document." - (interactive) - (TeX-save-document (TeX-master-file)) - (preview-generate-preview - nil (TeX-master-file nil t) - (preview-do-replacements - (TeX-command-expand - (preview-string-expand preview-LaTeX-command) - 'TeX-master-file) - preview-LaTeX-command-replacements))) - -(defun preview-environment (count) - "Run preview on LaTeX environment. -This avoids running environments through preview that are -indicated in `preview-inner-environments'. If you use a prefix -argument COUNT, the corresponding level of outward nested -environments is selected." - (interactive "p") - (save-excursion - (let (currenv) - (dotimes (i (1- count)) - (setq currenv (LaTeX-current-environment)) - (if (string= currenv "document") - (error "No enclosing outer environment found")) - (LaTeX-find-matching-begin)) - (while (member (setq currenv (LaTeX-current-environment)) - preview-inner-environments) - (LaTeX-find-matching-begin)) - (if (string= currenv "document") - (error "No enclosing outer environment found")) - (preview-region - (save-excursion (LaTeX-find-matching-begin) (point)) - (save-excursion (LaTeX-find-matching-end) (point)))))) - -(defun preview-section () - "Run preview on LaTeX section." (interactive) - (save-excursion - (LaTeX-mark-section) - (preview-region (region-beginning) (region-end)))) - - -(defun preview-generate-preview (region-p file command) - "Generate a preview. -REGION-P is the region flag, FILE the file (without default -extension and directory), COMMAND is the command to use. - -It returns the started process." - (setq TeX-current-process-region-p region-p) - (let* ((geometry (preview-get-geometry)) - (commandbuff (current-buffer)) - (pr-file (cons - (if TeX-current-process-region-p - 'TeX-region-file - 'TeX-master-file) - file)) - (master (TeX-master-file)) - (master-file (expand-file-name master)) - (dumped-cons (assoc master-file - preview-dumped-alist)) - process) - (unless dumped-cons - (push (setq dumped-cons (cons master-file - (if (eq preview-auto-cache-preamble 'ask) - (y-or-n-p "Cache preamble? ") - preview-auto-cache-preamble))) - preview-dumped-alist)) - (when (cdr dumped-cons) - (let* (TeX-current-process-region-p) - (setq process (preview-cache-preamble dumped-cons)) - (if process - (setq TeX-sentinel-function - `(lambda (process string) - (funcall ,TeX-sentinel-function process string) - (TeX-inline-preview-internal - ,command ,file - ',pr-file ,commandbuff - ',dumped-cons - ',master - ',geometry - (buffer-string))))))) - (or process - (TeX-inline-preview-internal command file - pr-file commandbuff - dumped-cons master - geometry)))) - -(defun TeX-inline-preview-internal (command file pr-file - commandbuff dumped-cons master - geometry - &optional str) - "Internal stuff for previewing. -COMMAND and FILE should be explained in `TeX-command-list'. -PR-FILE is the target file name in the form for `preview-gs-file'. -COMMANDBUFF, DUMPED-CONS, MASTER, and GEOMETRY are -internal parameters, STR may be a log to insert into the current log." - (set-buffer commandbuff) - (let* - ((preview-format-name (shell-quote-argument - (preview-dump-file-name - (file-name-nondirectory master)))) - (process - (TeX-run-command - "Preview-LaTeX" - (if (consp (cdr dumped-cons)) - (preview-do-replacements - command preview-undump-replacements) - command) file))) - (condition-case err - (progn - (when str - (save-excursion - (goto-char (point-min)) - (insert str) - (when (= (process-mark process) (point-min)) - (set-marker (process-mark process) (point))))) - (preview-set-geometry geometry) - (setq preview-gs-file pr-file) - (setq TeX-sentinel-function 'preview-TeX-inline-sentinel) - (when (featurep 'mule) - (setq preview-coding-system - (or (and (boundp 'TeX-japanese-process-output-coding-system) - TeX-japanese-process-output-coding-system) - (with-current-buffer commandbuff - buffer-file-coding-system))) - (when preview-coding-system - (setq preview-coding-system - (preview-buffer-recode-system - (coding-system-base preview-coding-system)))) - (set-process-coding-system - process preview-coding-system)) - (TeX-parse-reset) - (setq TeX-parse-function 'TeX-parse-TeX) - (if TeX-process-asynchronous - process - (TeX-synchronous-sentinel "Preview-LaTeX" file process))) - (error (preview-log-error err "Preview" process) - (delete-process process) - (preview-reraise-error process))))) - -(defconst preview-version "@PREVIEWVERSION@" - "Preview version. -If not a regular release, the date of the last change.") - -(defconst preview-release-date "@PREVIEWDATE@" - "Preview release date using the ISO 8601 format, yyyy-mm-dd.") - -(defun preview-dump-state (buffer) - (condition-case nil - (progn - (unless (local-variable-p 'TeX-command-buffer (current-buffer)) - (setq buffer (with-current-buffer buffer (TeX-active-buffer)))) - (when (bufferp buffer) - (insert "\nRun buffer contents:\n\n") - (if (< (buffer-size buffer) 5000) - (insert-buffer-substring buffer) - (insert-buffer-substring buffer 1 2500) - (insert "...\n\n[...]\n\n\t...") - (insert-buffer-substring buffer - (- (buffer-size buffer) 2500) - (buffer-size buffer))) - (insert "\n"))) - (error nil))) - -;;;###autoload -(defun preview-report-bug () "Report a bug in the preview-latex package." - (interactive) - (let ((reporter-prompt-for-summary-p "Bug report subject: ")) - (reporter-submit-bug-report - "bug-auctex@gnu.org" - preview-version - '(AUCTeX-version - LaTeX-command-style - image-types - preview-image-type - preview-image-creators - preview-dvipng-image-type - preview-dvipng-command - preview-pdf2dsc-command - preview-gs-command - preview-gs-options - preview-gs-image-type-alist - preview-fast-conversion - preview-prefer-TeX-bb - preview-dvips-command - preview-fast-dvips-command - preview-scale-function - preview-LaTeX-command - preview-required-option-list - preview-preserve-counters - preview-default-option-list - preview-default-preamble - preview-LaTeX-command-replacements - preview-dump-replacements - preview-undump-replacements - preview-auto-cache-preamble - preview-TeX-style-dir) - `(lambda () (preview-dump-state ,(current-buffer))) - (lambda () - (insert (format "\nOutput from running `%s -h':\n" - preview-gs-command)) - (call-process preview-gs-command nil t nil "-h") - (insert "\n")) - "Remember to cover the basics. Including a minimal LaTeX example -file exhibiting the problem might help." - ))) - -(eval-when-compile - (when (boundp 'preview-compatibility-macros) - (dolist (elt preview-compatibility-macros) - (if (consp elt) - (fset (car elt) (cdr elt)) - (fmakunbound elt))))) - -(makunbound 'preview-compatibility-macros) - -(provide 'preview) -;;; preview.el ends here diff -Nru auctex-11.88/preview/preview-latex.spec auctex-11.90/preview/preview-latex.spec --- auctex-11.88/preview/preview-latex.spec 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/preview/preview-latex.spec 1970-01-01 00:00:00.000000000 +0000 @@ -1,260 +0,0 @@ -# Spec file for preview-latex - -# Maintainer: auctex-devel@gnu.org - -# Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc. - -# This file is part of AUCTeX. - -# AUCTeX is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3, or (at your option) -# any later version. - -# AUCTeX is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with AUCTeX; see the file COPYING. If not, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, -# MA 02110-1301, USA. - -%define HAVE_EMACS %(which emacs >/dev/null 2>/dev/null && echo 1 || echo 0) -%define HAVE_XEMACS %(which xemacs >/dev/null 2>/dev/null && echo 1 || echo 0) - -%define FOR_SUSE %{?suse_version:1}%{!?suse_version:0} - -%if %{FOR_SUSE} -%define distri .suse -%define commongroup Productivity/Editors/Emacs -# This is awful, but I don't have the clue to avoid it: -%define xemacspkgdir %{_datadir}/xemacs/xemacs-packages -%define xemacspkgconfdir ${datadir}/xemacs/xemacs-packages -%else -%define distri .fedora -%define commongroup Applications/Editors -# This is awful, but I don't have the clue to avoid it: -%define xemacspkgdir %{_datadir}/xemacs/xemacs-packages -%define xemacspkgconfdir ${datadir}/xemacs/xemacs-packages -%endif - -# we use xemacs-packages because the system packages can be found -# here, and preview-latex is not yet a part of any sumo tarball or -# similar. The choice for AUCTeX would probably be site-packages -# instead. - -Summary: Emacs/LaTeX inline preview -Name: preview-latex -Version: 0.9.1 -Release: 1%{distri} -License: GPL -BuildArchitectures: noarch -URL: http://www.gnu.org/software/auctex -Source0: ftp://ftp.gnu.org/pub/auctex/%{name}-%{version}.tar.gz -Group: %{commongroup} -BuildRoot: %{_tmppath}/%{name}-root -Prereq: info -Requires: ghostscript >= 6.51 -Requires: tetex tetex-dvips -BuildRequires: texinfo >= 4.0 - -%description -Does your neck hurt from turning between previewer windows and the -source too often? This Elisp/LaTeX package will render your displayed -LaTeX equations right into the editing window where they belong. - -%package common -Summary: Emacs/LaTeX inline preview (LaTeX style and docs) -Group: %{commongroup} - -%description common -Does your neck hurt from turning between previewer windows and the -source too often? This Elisp/LaTeX package will render your displayed -LaTeX equations right into the editing window where they belong. - -This package contains the LaTeX style files and the documentation. - -%package emacs -Summary: Emacs/LaTeX inline preview (GNU Emacs lisp files) -Group: %{commongroup} -Requires: %{name}-common = %{version}-%{release} -Requires: emacs >= 21.1 -Requires: auctex >= 11.0 -Obsoletes: preview-latex - -%description emacs -Does your neck hurt from turning between previewer windows and the -source too often? This Elisp/LaTeX package will render your displayed -LaTeX equations right into the editing window where they belong. - -This package contains the lisp modules for GNU Emacs 21.1 or higher. - -%package xemacs -Summary: Emacs/LaTeX inline preview (XEmacs lisp files) -Group: %{commongroup} -Requires: %{name}-common = %{version}-%{release} -Requires: xemacs >= 21.4.9 -Conflicts: xemacs = 21.4.16 - -%description xemacs -Does your neck hurt from turning between previewer windows and the -source too often? This Elisp/LaTeX package will render your displayed -LaTeX equations right into the editing window where they belong. - -This package contains the lisp modules for XEmacs 21.4.9 or higher. - -%prep -%setup -c -q - -%if %{HAVE_EMACS} - mkdir emacs - pushd emacs - ln -sf ../%{name}-%{version}/* . - popd -%endif - -%if %{HAVE_XEMACS} - mkdir xemacs - pushd xemacs - ln -sf ../%{name}-%{version}/* . - popd -%endif - -%build - -for i in *emacs; do - pushd $i - # The below will make the package build from a tar straight from CVS - # NOT RECOMMENDED, but useful for testing! - test -f ./configure || ./autogen.sh - # --with-packagedir repairs RedHat XEmacs braindamage texmf-dir - # moves the installation to a location searched before the (possibly - # conflicting) system tree. Unfortunately, this is the site-wide - # tree that we should not really be touching. Sigh. - if [ $i = "emacs" ]; then - %configure '--with-lispdir=${datadir}/emacs/site-lisp/site-start.d' \ - --with-packagelispdir=../preview '--with-texmf-dir=${prefix}/local/share/texmf' - else - %configure --with-xemacs '--with-packagedir=%{xemacspkgconfdir}' '--with-texmf-dir=${prefix}/local/share/texmf' - fi - make 'infodir=%{_infodir}' - cd doc - make preview-latex.pdf - popd -done - -%install - -rm -rf '%{buildroot}' -for i in *emacs; do - pushd $i - if [ $i == "emacs" ]; then - # Make directory non-searchable. - mkdir -p '%{buildroot}%{_datadir}/emacs/site-lisp/preview' - touch .nosearch - install -c -m 644 .nosearch \ - '%{buildroot}%{_datadir}/emacs/site-lisp/preview' - %makeinstall TEXHASH=: - else - # XEmacs MANIFEST doesn't get created unless the target dir exists - mkdir -p %{buildroot}%{xemacspkgdir}/pkginfo - %makeinstall TEXHASH=: - fi - popd -done - -# Package documentation in /usr/share/doc/preview-latex-n.n -# rather than /usr/share/doc/preview-latex-common-n.n -%define docs %{_defaultdocdir}/%{name}-%{version} -mkdir -p '%{buildroot}%{docs}' -pushd %{name}-%{version} -for i in ChangeLog circ.tex COPYING FAQ INSTALL PROBLEMS README \ - RELEASE TODO doc/preview-latex.pdf; do - cp -R "$i" '%{buildroot}%{docs}' -done -cp latex/README '%{buildroot}%{docs}/README-preview' - -# Remove dir file that has been created by the makeinfo calls because this -# file will not been included in the rpm distribution (make RPM 4.1+ happy) -# Apparently RPM 4.2 removes the file itself? -rm -f '%{buildroot}%{_infodir}/dir' - -%clean -rm -rf '%{buildroot}' - -%post common -/sbin/install-info '--info-dir=%{_infodir}' '%{_infodir}/preview-latex.info' -texhash /usr/local/share/texmf - -%preun common -# $1 is the number of versions of this package installed -# after this uninstallation -if [ $1 -eq 0 ]; then - /sbin/install-info '--info-dir=%{_infodir}' --delete \ - '%{_infodir}/preview-latex.info' -fi - -%files common -%defattr(-,root,root) -%dir %{_prefix}/local/share/texmf/tex/latex/preview -%{_prefix}/local/share/texmf/tex/latex/preview/*.sty -%{_prefix}/local/share/texmf/tex/latex/preview/*.def -%config %{_prefix}/local/share/texmf/tex/latex/preview/*.cfg -%doc %{_prefix}/local/share/texmf/doc/latex/styles/preview.dvi -%doc %{_infodir}/preview-latex.info* -%doc %{docs} - -%if %{HAVE_EMACS} -%files emacs -%defattr(-,root,root) -%{_datadir}/emacs/site-lisp/preview -%{_datadir}/emacs/site-lisp/site-start.d/preview-latex.el -%endif - -%if %{HAVE_XEMACS} -%files xemacs -%defattr(-,root,root) -%{xemacspkgdir}/lisp/preview -%{xemacspkgdir}/etc/preview -%verify() %{xemacspkgdir}/pkginfo/MANIFEST.preview -%endif - -%changelog -* Wed Jul 28 2004 David Kastrup -- Remove 8bit-test stuff, some changes to directories. - -* Mon Apr 12 2004 David Kastrup -- bump XEmacs requirements to 21.4.9 - -* Thu Jan 29 2004 Jan-Åke Larsson -- add support for SuSE - (kudos to Martin Väth ) - -* Wed Aug 7 2002 David Kastrup -- add FAQ - -* Tue Apr 16 2002 David Kastrup -- allow split info file, docs now go in preview-latex-n.n - -* Mon Apr 15 2002 Jan-Ake Larsson -- Docs now goes in preview-latex-n.n-n directory - -* Wed Apr 10 2002 Jan-Ake Larsson -- Triple-rpm simplifications - -* Sun Mar 31 2002 Jan-Ake Larsson -- Prepare for 0.7, initial triple rpm attempt - -* Sun Mar 10 2002 David Kastrup -- Prepare for 0.6.1 - -* Tue Feb 19 2002 Jan-Ake Larsson -- Added site-start.d support and prauctex.cfg config file - -* Thu Feb 14 2002 Jan-Ake Larsson -- Adjusted for 0.6 - -* Wed Jan 23 2002 Jan-Ake Larsson -- Initial build. diff -Nru auctex-11.88/preview/prv-emacs.el auctex-11.90/preview/prv-emacs.el --- auctex-11.88/preview/prv-emacs.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/preview/prv-emacs.el 1970-01-01 00:00:00.000000000 +0000 @@ -1,600 +0,0 @@ -;;; prv-emacs.el --- GNU Emacs specific code for preview.el - -;; Copyright (C) 2001, 02, 03, 04, 05 Free Software Foundation, Inc. - -;; Author: David Kastrup -;; Keywords: convenience, tex, wp - -;; This file is free software; you can redistribute it and/or modify -;; it under the terms of the GNU General Public License as published by -;; the Free Software Foundation; either version 3, or (at your option) -;; any later version. - -;; This file is distributed in the hope that it will be useful, -;; but WITHOUT ANY WARRANTY; without even the implied warranty of -;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -;; GNU General Public License for more details. - -;; You should have received a copy of the GNU General Public License -;; along with GNU Emacs; see the file COPYING. If not, write to -;; the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, -;; Boston, MA 02110-1301, USA. - -;;; Commentary: - -;; - -;;; Code: - -(require 'tex-site) -(require 'tex) -(require 'latex) - -(defvar preview-compatibility-macros nil - "List of macros only present when compiling/loading.") - -(defcustom preview-transparent-color '(highlight :background) - "Color to appear transparent in previews. -Set this to something unusual when using `preview-transparent-border', -to the default background in most other cases." - :type '(radio (const :tag "None" nil) - (const :tag "Autodetect" t) - (color :tag "By name" :value "white") - (list :tag "Take from face" - :value (default :background) - (face) - (choice :tag "What to take" - (const :tag "Background" :value :background) - (const :tag "Foreground" :value :foreground)))) - :group 'preview-appearance) - -;;; Note that the following default introduces a border only when -;;; Emacs blinks politely when point is on an image (the tested -;;; unrelated function was introduced at about the time image blinking -;;; became tolerable). -(defcustom preview-transparent-border (unless (fboundp 'posn-object-x-y) 1.5) - "Width of transparent border for previews in pt. -Setting this to a numeric value will add a border of -`preview-transparent-color' around images, and will turn -the heuristic-mask setting of images to default to 't since -then the borders are correctly detected even in case of -palette operations. If the transparent color is something -not present otherwise in the image, the cursor display -will affect just this border. A width of 0 is interpreted -by PostScript as meaning a single pixel, other widths are -interpreted as PostScript points (1/72 of 1in)" - :group 'preview-appearance - :type '(choice (const :value nil :tag "No border") - (number :value 1.5 :tag "Border width in pt"))) - -(defun preview-get-heuristic-mask () - "Get heuristic-mask to use for previews. -Consults `preview-transparent-color'." - (cond ((stringp preview-transparent-color) - (color-values preview-transparent-color)) - ((or (not (consp preview-transparent-color)) - (integerp (car preview-transparent-color))) - preview-transparent-color) - (t (color-values (preview-inherited-face-attribute - (nth 0 preview-transparent-color) - (nth 1 preview-transparent-color) - 'default))))) - -(defsubst preview-create-icon-1 (file type ascent border) - `(image - :file ,file - :type ,type - :ascent ,ascent - ,@(and border - '(:mask (heuristic t))))) - -(defun preview-create-icon (file type ascent border) - "Create an icon from FILE, image TYPE, ASCENT and BORDER." - (list - (preview-create-icon-1 file type ascent border) - file type ascent border)) - -(put 'preview-filter-specs :type - #'(lambda (keyword value &rest args) - (if (image-type-available-p value) - `(image :type ,value - ,@(preview-filter-specs-1 args)) - (throw 'preview-filter-specs nil)))) - -;; No defcustom here: does not seem to make sense. - -(defvar preview-tb-icon-specs - '((:type xpm :file "prvtex24.xpm") - (:type xbm :file "prvtex24.xbm"))) - -(defvar preview-tb-icon nil) - -(defun preview-add-urgentization (fun ov &rest rest) - "Cause FUN (function call form) to be called when redisplayed. -FUN must be a form with OV as first argument, -REST as the remainder, returning T." - (let ((dispro (overlay-get ov 'display))) - (unless (eq (car dispro) 'when) - (overlay-put ov 'display `(when (,fun ,ov ,@rest) . ,dispro))))) - -(defun preview-remove-urgentization (ov) - "Undo urgentization of OV by `preview-add-urgentization'. -Returns the old arguments to `preview-add-urgentization' -if there was any urgentization." - (let ((dispro (overlay-get ov 'display))) - (when (eq (car-safe dispro) 'when) - (prog1 - (car (cdr dispro)) - (overlay-put ov 'display (cdr (cdr dispro))))))) - -(defsubst preview-icon-copy (icon) - "Prepare a later call of `preview-replace-active-icon'." - - ;; This is just a GNU Emacs specific efficiency hack because it - ;; is easy to do. When porting, don't do anything complicated - ;; here, rather deliver just the unchanged icon and make - ;; `preview-replace-active-icon' do the necessary work of replacing - ;; the icon where it actually has been stored, probably - ;; in the car of the strings property of the overlay. This string - ;; might probably serve as a begin-glyph as well, in which case - ;; modifying the string in the strings property would change that - ;; glyph automatically. - - (cons 'image (cdr icon))) - -(defsubst preview-replace-active-icon (ov replacement) - "Replace the active Icon in OV by REPLACEMENT, another icon." - (let ((img (overlay-get ov 'preview-image))) - (setcdr (car img) (cdar replacement)) - (setcdr img (cdr replacement)))) - -(defvar preview-button-1 [mouse-2]) -(defvar preview-button-2 [mouse-3]) - -(defmacro preview-make-clickable (&optional map glyph helpstring click1 click2) - "Generate a clickable string or keymap. -If MAP is non-nil, it specifies a keymap to add to, otherwise -a new one is created. If GLYPH is given, the result is made -to display it wrapped in a string. In that case, -HELPSTRING is a format string with one or two %s specifiers -for preview's clicks, displayed as a help-echo. CLICK1 and CLICK2 -are functions to call on preview's clicks." - `(let ((resmap ,(or map '(make-sparse-keymap)))) - ,@(if click1 - `((define-key resmap preview-button-1 ,click1))) - ,@(if click2 - `((define-key resmap preview-button-2 ,click2))) - ,(if glyph - `(propertize - "x" - 'display ,glyph - 'mouse-face 'highlight - 'help-echo - ,(if (stringp helpstring) - (format helpstring preview-button-1 preview-button-2) - `(format ,helpstring preview-button-1 preview-button-2)) - 'keymap resmap) - 'resmap))) - -(defvar preview-overlay nil) - -(put 'preview-overlay - 'modification-hooks - '(preview-handle-modification)) - -(put 'preview-overlay - 'insert-in-front-hooks - '(preview-handle-insert-in-front)) - -(put 'preview-overlay - 'insert-behind-hooks - '(preview-handle-insert-behind)) - -;; We have to fake our way around atomicity. - -;; Here is the beef: for best intuitiveness, we want to have -;; insertions be carried out as expected before iconized text -;; passages, but we want to insert *into* the overlay when not -;; iconized. A preview that has become empty can not get content -;; again: we remove it. A disabled preview needs no insert-in-front -;; handler. - -(defvar preview-change-list nil - "List of tentatively changed overlays.") - -(defcustom preview-dump-threshold - "^ *\\\\begin *{document}[ %]*$" - "*Regexp denoting end of preamble. -This is the location up to which preamble changes are considered -to require redumping of a format." - :group 'preview-latex - :type 'string) - -(defun preview-preamble-changed-function - (ov after-change beg end &optional length) - "Hook function for change hooks on preamble. -See info node `(elisp) Overlay Properties' for -definition of OV, AFTER-CHANGE, BEG, END and LENGTH." - (let ((format-cons (overlay-get ov 'format-cons))) - (preview-unwatch-preamble format-cons) - (preview-format-kill format-cons) - (setcdr format-cons t))) - -(defun preview-watch-preamble (file command format-cons) - "Set up a watch on master file FILE. -FILE can be an associated buffer instead of a filename. -COMMAND is the command that generated the format. -FORMAT-CONS contains the format info for the main -format dump handler." - (let ((buffer (if (bufferp file) - file - (find-buffer-visiting file))) ov) - (setcdr - format-cons - (cons command - (when buffer - (with-current-buffer buffer - (save-excursion - (save-restriction - (widen) - (goto-char (point-min)) - (unless (re-search-forward preview-dump-threshold nil t) - (error "Can't find preamble of `%s'" file)) - (setq ov (make-overlay (point-min) (point))) - (overlay-put ov 'format-cons format-cons) - (overlay-put ov 'insert-in-front-hooks - '(preview-preamble-changed-function)) - (overlay-put ov 'modification-hooks - '(preview-preamble-changed-function)) - ov)))))))) - -(defun preview-unwatch-preamble (format-cons) - "Stop watching a format on FORMAT-CONS. -The watch has been set up by `preview-watch-preamble'." - (when (consp (cdr format-cons)) - (when (cddr format-cons) - (delete-overlay (cddr format-cons))) - (setcdr (cdr format-cons) nil))) - -(defun preview-register-change (ov) - "Register not yet changed OV for verification. -This stores the old contents of the overlay in the -`preview-prechange' property and puts the overlay into -`preview-change-list' where `preview-check-changes' will -find it at some later point of time." - (unless (overlay-get ov 'preview-prechange) - (if (eq (overlay-get ov 'preview-state) 'disabled) - (overlay-put ov 'preview-prechange t) - (overlay-put ov 'preview-prechange - (save-restriction - (widen) - (buffer-substring-no-properties - (overlay-start ov) (overlay-end ov))))) - (push ov preview-change-list))) - -(defun preview-check-changes () - "Check whether the contents under the overlay have changed. -Disable it if that is the case. Ignores text properties." - (dolist (ov preview-change-list) - (condition-case nil - (with-current-buffer (overlay-buffer ov) - (let ((text (save-restriction - (widen) - (buffer-substring-no-properties - (overlay-start ov) (overlay-end ov))))) - (if (zerop (length text)) - (preview-delete ov) - (unless - (or (eq (overlay-get ov 'preview-state) 'disabled) - (preview-relaxed-string= - text (overlay-get ov 'preview-prechange))) - (overlay-put ov 'insert-in-front-hooks nil) - (overlay-put ov 'insert-behind-hooks nil) - (preview-disable ov))))) - (error nil)) - (overlay-put ov 'preview-prechange nil)) - (setq preview-change-list nil)) - -(defun preview-handle-insert-in-front - (ov after-change beg end &optional length) - "Hook function for `insert-in-front-hooks' property. -See info node `(elisp) Overlay Properties' for -definition of OV, AFTER-CHANGE, BEG, END and LENGTH." - (if after-change - (unless undo-in-progress - (if (eq (overlay-get ov 'preview-state) 'active) - (move-overlay ov end (overlay-end ov)))) - (preview-register-change ov))) - -(defun preview-handle-insert-behind - (ov after-change beg end &optional length) - "Hook function for `insert-behind-hooks' property. -This is needed in case `insert-before-markers' is used at the -end of the overlay. See info node `(elisp) Overlay Properties' -for definition of OV, AFTER-CHANGE, BEG, END and LENGTH." - (if after-change - (unless undo-in-progress - (if (eq (overlay-get ov 'preview-state) 'active) - (move-overlay ov (overlay-start ov) beg))) - (preview-register-change ov))) - -(defun preview-handle-modification - (ov after-change beg end &optional length) - "Hook function for `modification-hooks' property. -See info node `(elisp) Overlay Properties' for -definition of OV, AFTER-CHANGE, BEG, END and LENGTH." - (unless after-change - (preview-register-change ov))) - -(defun preview-toggle (ov &optional arg event) - "Toggle visibility of preview overlay OV. -ARG can be one of the following: t displays the overlay, -nil displays the underlying text, and 'toggle toggles. -If EVENT is given, it indicates the window where the event -occured, either by being a mouse event or by directly being -the window in question. This may be used for cursor restoration -purposes." - (let ((old-urgent (preview-remove-urgentization ov)) - (preview-state - (if (if (eq arg 'toggle) - (null (eq (overlay-get ov 'preview-state) 'active)) - arg) - 'active - 'inactive)) - (strings (overlay-get ov 'strings))) - (unless (eq (overlay-get ov 'preview-state) 'disabled) - (overlay-put ov 'preview-state preview-state) - (if (eq preview-state 'active) - (progn - (overlay-put ov 'category 'preview-overlay) - (if (eq (overlay-start ov) (overlay-end ov)) - (overlay-put ov 'before-string (car strings)) - (dolist (prop '(display keymap mouse-face help-echo)) - (overlay-put ov prop - (get-text-property 0 prop (car strings)))) - (overlay-put ov 'before-string nil)) - (overlay-put ov 'face nil)) - (dolist (prop '(display keymap mouse-face help-echo)) - (overlay-put ov prop nil)) - (overlay-put ov 'face 'preview-face) - (unless (cdr strings) - (setcdr strings (preview-inactive-string ov))) - (overlay-put ov 'before-string (cdr strings))) - (if old-urgent - (apply 'preview-add-urgentization old-urgent)))) - (if event - (preview-restore-position - ov - (if (windowp event) - event - (posn-window (event-start event)))))) - -(defsubst preview-buffer-recode-system (base) - "This is supposed to translate unrepresentable base encodings -into something that can be used safely for byte streams in the -run buffer. A noop for Emacs." - base) - -(defun preview-mode-setup () - "Setup proper buffer hooks and behavior for previews." - (set (make-local-variable 'desktop-save-buffer) - #'desktop-buffer-preview-misc-data) - (add-hook 'pre-command-hook #'preview-mark-point nil t) - (add-hook 'post-command-hook #'preview-move-point nil t) - (easy-menu-add preview-menu LaTeX-mode-map) - (unless preview-tb-icon - (setq preview-tb-icon (preview-filter-specs preview-tb-icon-specs))) - (when preview-tb-icon - (define-key LaTeX-mode-map [tool-bar preview] - `(menu-item "Preview at point" preview-at-point - :image ,preview-tb-icon - :help "Preview on/off at point"))) - (when buffer-file-name - (let* ((filename (expand-file-name buffer-file-name)) - format-cons) - (when (string-match (concat "\\." TeX-default-extension "\\'") - filename) - (setq filename (substring filename 0 (match-beginning 0)))) - (setq format-cons (assoc filename preview-dumped-alist)) - (when (consp (cdr format-cons)) - (preview-unwatch-preamble format-cons) - (preview-watch-preamble (current-buffer) - (cadr format-cons) - format-cons))))) - -(defvar preview-marker (make-marker) - "Marker for fake intangibility.") - -(defvar preview-temporary-opened nil) - -(defvar preview-last-location nil - "Restored cursor position marker for reopened previews.") -(make-variable-buffer-local 'preview-last-location) - -(defun preview-mark-point () - "Mark position for fake intangibility." - (when (eq (get-char-property (point) 'preview-state) 'active) - (unless preview-last-location - (setq preview-last-location (make-marker))) - (set-marker preview-last-location (point)) - (set-marker preview-marker (point)) - (preview-move-point)) - (set-marker preview-marker (point))) - -(defun preview-restore-position (ov window) - "Tweak position after opening/closing preview. -The treated overlay OV has been triggered in WINDOW. This function -records the original buffer position for reopening, or restores it -after reopening. Note that by using the mouse, you can open/close -overlays not in the active window." - (when (eq (overlay-buffer ov) (window-buffer window)) - (with-current-buffer (overlay-buffer ov) - (if (eq (overlay-get ov 'preview-state) 'active) - (setq preview-last-location - (set-marker (or preview-last-location (make-marker)) - (window-point window))) - (when (and - (markerp preview-last-location) - (eq (overlay-buffer ov) (marker-buffer preview-last-location)) - (< (overlay-start ov) preview-last-location) - (> (overlay-end ov) preview-last-location)) - (set-window-point window preview-last-location)))))) - -(defun preview-move-point () - "Move point out of fake-intangible areas." - (preview-check-changes) - (let* (newlist (pt (point)) (lst (overlays-at pt)) distance) - (setq preview-temporary-opened - (dolist (ov preview-temporary-opened newlist) - (and (overlay-buffer ov) - (eq (overlay-get ov 'preview-state) 'inactive) - (if (and (eq (overlay-buffer ov) (current-buffer)) - (or (<= pt (overlay-start ov)) - (>= pt (overlay-end ov)))) - (preview-toggle ov t) - (push ov newlist))))) - (when lst - (if (or disable-point-adjustment - global-disable-point-adjustment - (preview-auto-reveal-p - preview-auto-reveal - (setq distance - (and (eq (marker-buffer preview-marker) - (current-buffer)) - (- pt (marker-position preview-marker)))))) - (preview-open-overlays lst) - (while lst - (setq lst - (if (and - (eq (overlay-get (car lst) 'preview-state) 'active) - (> pt (overlay-start (car lst)))) - (overlays-at - (setq pt (if (and distance (< distance 0)) - (overlay-start (car lst)) - (overlay-end (car lst))))) - (cdr lst)))) - (goto-char pt))))) - -(defun preview-open-overlays (list &optional pos) - "Open all previews in LIST, optionally restricted to enclosing POS." - (dolist (ovr list) - (when (and (eq (overlay-get ovr 'preview-state) 'active) - (or (null pos) - (and - (> pos (overlay-start ovr)) - (< pos (overlay-end ovr))))) - (preview-toggle ovr) - (push ovr preview-temporary-opened)))) - -(defadvice replace-highlight (before preview) - "Make `query-replace' open preview text about to be replaced." - (preview-open-overlays - (overlays-in (ad-get-arg 0) (ad-get-arg 1)))) - -(defcustom preview-query-replace-reveal t - "*Make `query-replace' autoreveal previews." - :group 'preview-appearance - :type 'boolean - :require 'preview - :set (lambda (symbol value) - (set-default symbol value) - (if value - (ad-enable-advice 'replace-highlight 'before 'preview) - (ad-disable-advice 'replace-highlight 'before 'preview)) - (ad-activate 'replace-highlight)) - :initialize #'custom-initialize-reset) - -;; Check whether the four-argument form of `face-attribute' exists. -;; If not, we will get a `wrong-number-of-arguments' error thrown. -;; Use `defun' instead of `defsubst' here so that the decision may be -;; reverted at load time if you are compiling with one Emacs and using -;; another. -(if (condition-case nil - (progn - (face-attribute 'default :height nil nil) - t) - (wrong-number-of-arguments nil)) - - (defun preview-inherited-face-attribute (face attribute &optional inherit) - "Fetch face attribute while adhering to inheritance. -This searches FACE for an ATTRIBUTE, using INHERIT -for resolving unspecified or relative specs. See the fourth -argument of function `face-attribute' for details." - (face-attribute face attribute nil inherit)) - - (defun preview-inherited-face-attribute (face attribute &optional inherit) - "Fetch face attribute while adhering to inheritance. -This searches FACE for an ATTRIBUTE. If it is 'unspecified, -first inheritance is consulted (if INHERIT is non-NIL), then -INHERIT is searched if it is a face or a list of faces. -Relative specs are evaluated recursively until they get absolute or -are not resolvable. Relative specs are float values." - (let ((value (face-attribute face attribute))) - (when inherit - (setq inherit - (append - (let ((ancestors (face-attribute face :inherit))) - (cond ((facep ancestors) (list ancestors)) - ((consp ancestors) ancestors))) - (cond ((facep inherit) (list inherit)) - ((consp inherit) inherit))))) - (cond ((null inherit) value) - ((floatp value) - (let ((avalue - (preview-inherited-face-attribute - (car inherit) attribute (or (cdr inherit) t)))) - (cond ((integerp avalue) - (round (* avalue value))) - ((floatp avalue) - (* value avalue)) - (t value)))) - ((eq value 'unspecified) - (preview-inherited-face-attribute - (car inherit) attribute (or (cdr inherit) t))) - (t value))))) - -(defun preview-get-colors () - "Return colors from the current display. -Fetches the current screen colors and makes a vector -of colors as numbers in the range 0..65535. -Pure borderless black-on-white will return triple NIL. -The fourth value is the transparent border thickness." - (let - ((bg (color-values (preview-inherited-face-attribute - 'preview-reference-face :background 'default))) - (fg (color-values (preview-inherited-face-attribute - 'preview-reference-face :foreground 'default))) - (mask (preview-get-heuristic-mask))) - (if (equal '(65535 65535 65535) bg) - (setq bg nil)) - (if (equal '(0 0 0) fg) - (setq fg nil)) - (unless (and (numberp preview-transparent-border) - (consp mask) (integerp (car mask))) - (setq mask nil)) - (vector bg fg mask preview-transparent-border))) - -(defmacro preview-mark-active () - "Return t if the mark is active." - 'mark-active) - -(defun preview-import-image (image) - "Convert the printable IMAGE rendition back to an image." - (cond ((stringp image) - (propertize image 'face 'preview-face)) - ((eq (car image) 'image) - image) - (t - (preview-create-icon-1 (nth 0 image) - (nth 1 image) - (nth 2 image) - (if (< (length image) 4) - (preview-get-heuristic-mask) - (nth 3 image)))))) - -(defsubst preview-supports-image-type (imagetype) - "Check if IMAGETYPE is supported." - (image-type-available-p imagetype)) - -(provide 'prv-emacs) -;;; prv-emacs.el ends here diff -Nru auctex-11.88/preview/prv-install.el auctex-11.90/preview/prv-install.el --- auctex-11.88/preview/prv-install.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/preview/prv-install.el 1970-01-01 00:00:00.000000000 +0000 @@ -1,114 +0,0 @@ -;;; prv-install.el --- Complicated install-time magic for preview-latex. - -;; Copyright (C) 2002, 2005 Free Software Foundation, Inc. - -;; Author: David Kastrup -;; Keywords: convenience, tex, wp - -;; This file is free software; you can redistribute it and/or modify -;; it under the terms of the GNU General Public License as published by -;; the Free Software Foundation; either version 3, or (at your option) -;; any later version. - -;; This file is distributed in the hope that it will be useful, -;; but WITHOUT ANY WARRANTY; without even the implied warranty of -;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -;; GNU General Public License for more details. - -;; You should have received a copy of the GNU General Public License -;; along with GNU Emacs; see the file COPYING. If not, write to -;; the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, -;; Boston, MA 02110-1301, USA. - -;;; Commentary: - -;; This contains package-building stuff and other install-time magic. -;; It may well contain Emacs-version-specific code, but certain -;; functions here should be *callable* from any Emacs version. - -;;; Code: - -(defun preview-make-package () - "Do anything required to make a package in this version of Emacs, -other than actually copying the Lisp files. - -Takes arguments on the comamnd line: the package directory and any -number of Lisp files to generate autoloads from. - -Does nothing in Emacsen that do not support a package system." - (if (featurep 'xemacs) - (preview-make-package-xemacs)) - (setq command-line-args-left nil)) - -(defun preview-make-package-xemacs () - "Do anything required to make a package in XEmacs, -other than actually copying the Lisp files. - -Generates auto-autoloads, custom-loads, and package metadata file -in the right locations. Takes from the command line the package directory, -package name, and version (to be evaluated), followed by a file to append." - (let* ((package-dir (pop command-line-args-left)) - (package-name (pop command-line-args-left)) - (release-version (eval (read (pop command-line-args-left)))) - (author-version (eval (read (pop command-line-args-left)))) - append-file - (lisp-dir (expand-file-name (format "lisp/%s/" package-name) - package-dir)) - (metadata (expand-file-name "_pkg.el" lisp-dir)) - (custom-load (expand-file-name "custom-load.el" lisp-dir)) - (generated-autoload-file (expand-file-name "auto-autoloads.el" - lisp-dir)) - (si:message (symbol-function 'message)) - make-backup-files noninteractive) - ;; Delete and regenerate the custom-load file. - (when (file-exists-p custom-load) - (delete-file custom-load)) - (when (file-exists-p (concat custom-load "c")) - (delete-file (concat custom-load "c"))) - (Custom-make-dependencies lisp-dir) - (when (file-exists-p custom-load) - (require 'cus-load) - (byte-compile-file custom-load)) - ; Delete and regenerate the package metadata file. - ; There is no compiled form of this file. - (message "Updating metadata for the directory %s..." lisp-dir) - (with-temp-file metadata - (insert - (concat ";;;###autoload\n" - "(package-provide '" package-name "\n" - " :version " - release-version "\n" - " :author-version " - "\"" author-version "\"\n" - " :type 'regular)\n"))) - ; Delete and regenerate the auto-autoloads file. - (message "Updating autoloads for the directory %s..." lisp-dir) - (when (file-exists-p generated-autoload-file) - (delete-file generated-autoload-file)) - (when (file-exists-p (concat generated-autoload-file "c")) - (delete-file (concat generated-autoload-file "c"))) - (defun message (fmt &rest args) - "Ignore useless messages while generating autoloads." - (cond ((and (string-equal "Generating autoloads for %s..." fmt) - (file-exists-p (file-name-nondirectory (car args)))) - (funcall si:message - fmt (file-name-nondirectory (car args)))) - ((string-equal "No autoloads found in %s" fmt)) - ((string-equal "Generating autoloads for %s...done" fmt)) - (t (apply si:message fmt args)))) - (unwind-protect - (cond ((fboundp 'update-autoloads-from-directory) - (update-autoloads-from-directory lisp-dir)) - ((fboundp 'update-autoload-files) - (update-autoload-files (list lisp-dir) "auctex")) - (t (error "Failed to generate autoloads."))) - (fset 'message si:message)) - (while (setq append-file (pop command-line-args-left)) - (when (file-exists-p generated-autoload-file) - (with-temp-buffer (insert-file append-file) - (append-to-file (point-min) (point-max) - generated-autoload-file)))) - (byte-compile-file generated-autoload-file))) - - -;;; prv-install.el ends here diff -Nru auctex-11.88/preview/prv-xemacs.el auctex-11.90/preview/prv-xemacs.el --- auctex-11.88/preview/prv-xemacs.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/preview/prv-xemacs.el 1970-01-01 00:00:00.000000000 +0000 @@ -1,743 +0,0 @@ -;;; prv-xemacs.el --- XEmacs support for preview-latex - -;; Copyright (C) 2001, 02, 03, 04, 05, -;; 2006 Free Software Foundation, Inc. - -;; Author: David Kastrup -;; Keywords: convenience, tex, wp - -;; This file is free software; you can redistribute it and/or modify -;; it under the terms of the GNU General Public License as published by -;; the Free Software Foundation; either version 3, or (at your option) -;; any later version. - -;; This file is distributed in the hope that it will be useful, -;; but WITHOUT ANY WARRANTY; without even the implied warranty of -;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -;; GNU General Public License for more details. - -;; You should have received a copy of the GNU General Public License -;; along with GNU Emacs; see the file COPYING. If not, write to -;; the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, -;; Boston, MA 02110-1301, USA. - -;;; Commentary: - -;; - -;;; Code: - -(require 'overlay) -(require 'tex-site) -(require 'tex) -(require 'latex) - -;; Compatibility macros and functions. - -(eval-when-compile - (defvar preview-compatibility-macros nil - "List of macros only present when compiling/loading uncompiled.") - - (defmacro preview-defmacro (name &rest rest) - (push - (if (fboundp name) - (cons name (symbol-function name)) - name) - preview-compatibility-macros) - `(eval-when-compile (defmacro ,name ,@rest))) - (push 'preview-defmacro preview-compatibility-macros)) - -(preview-defmacro assoc-default (key alist test) - `(cdr (assoc* ,key ,alist - :test #'(lambda(a b) (funcall ,test b a))))) - -(preview-defmacro display-mm-height () '(device-mm-height)) -(preview-defmacro display-mm-width () '(device-mm-width)) -(preview-defmacro display-pixel-height () '(device-pixel-height)) -(preview-defmacro display-pixel-width () '(device-pixel-width)) -(preview-defmacro line-beginning-position () '(point-at-bol)) -(preview-defmacro line-end-position () '(point-at-eol)) - -;; This is not quite the case, but unless we're playing with duplicable extents, -;; the two are equivalent in XEmacs. -(preview-defmacro match-string-no-properties (&rest args) - `(match-string ,@args)) - -(preview-defmacro face-attribute (face attr) - (cond - ((eq attr :height) - `(round (/ (* ,(/ 720.0 25.4) - (face-height ,face) - (device-mm-height)) - (device-pixel-height)))) - ((eq attr :foreground) - `(face-foreground-instance ,face)) - ((eq attr :background) - `(face-background-instance ,face)) - (t - (error 'unimplemented (format "Don't know how to fake %s" attr))))) - -(preview-defmacro make-temp-file (prefix dir-flag) - (if (not dir-flag) - (error 'unimplemented "Can only fake make-temp-file for directories")) - `(let (file) - (while (condition-case () - (progn - (setq file - (make-temp-name ,prefix)) - (make-directory file) - nil) - (file-already-exists t)) - nil) - file)) - -(preview-defmacro set-buffer-multibyte (multibyte) - "Set the representation type of the current buffer. If MULTIBYTE -is non-`nil', the buffer becomes multibyte. If MULTIBYTE is -`nil', the buffer becomes unibyte. - -Because XEmacs does not implement multibyte versus unibyte buffers -per se (they just have encodings which may be unibyte or multibyte), -this is only implemented for the `nil' case." - (if (not multibyte) - `(if (fboundp 'set-buffer-file-coding-system) - (set-buffer-file-coding-system 'binary)) - (error 'unimplemented "`set-buffer-multibyte is only implemented for the binary case."))) - -(preview-defmacro next-single-char-property-change (pos prop) - "Return the position of next property change for a specific property. -This is like `next-single-property-change', except that if no -change is found before the end of the buffer, it returns -\(point-max) rather than `nil'." - `(or (next-single-property-change ,pos ,prop) - (point-max))) - -(preview-defmacro previous-single-char-property-change (pos prop) - "Return the position of previous property change for a specific property. -This is like `next-single-property-change', except that if no -change is found before the end of the buffer, it returns -\(point-min) rather than `nil'." - `(or (previous-single-property-change ,pos ,prop) - (point-min))) - -(preview-defmacro with-temp-message (message &rest body) - "Display MESSAGE temporarily if non-nil while BODY is evaluated. -The original message is restored to the echo area after BODY has finished. -The value returned is the value of the last form in BODY. -MESSAGE is written to the message log buffer if `message-log-max' is non-nil. -If MESSAGE is nil, the echo area and message log buffer are unchanged. -Use a MESSAGE of \"\" to temporarily clear the echo area. - -The message is displayed with label `progress'; see `display-message'." - (let ((current-message (make-symbol "current-message")) - (temp-message (make-symbol "with-temp-message"))) - `(let ((,temp-message ,message) - (,current-message)) - (unwind-protect - (progn - (when ,temp-message - (setq ,current-message (current-message)) - (display-message 'progress ,temp-message)) - ,@body) - (and ,temp-message - (if ,current-message - (display-message 'progress ,current-message) - (message nil))))))) - -(defun preview-mark-active () - "Return t if the mark is active." - (and (mark) - t)) - -(defvar preview-transparent-border) - -;; Images. - -(defsubst preview-supports-image-type (imagetype) - "Return whether IMAGETYPE is supported by XEmacs." - (memq imagetype (image-instantiator-format-list))) - -;; TODO: Generalize this so we can create the fixed icons using it. - -;; Argh, dired breaks :file :( -;; This is a temporary kludge to get around that until a fixed dired -;; or a fixed XEmacs is released. - -(defun preview-create-icon-1 (file type ascent) - "Create an icon from FILE, image TYPE and ASCENT." - (let ((glyph - (make-glyph - (vector type - :file file - :data (with-temp-buffer - (insert-file-contents-literally file) - (buffer-string)))))) - (set-glyph-baseline glyph ascent) - glyph)) - -(defun preview-create-icon (file type ascent border) - "Create an icon from FILE, image TYPE, ASCENT and BORDER." - (list - (preview-create-icon-1 file type ascent) - file type ascent border)) - -(defvar preview-ascent-spec) - -(put 'preview-filter-specs :type - #'(lambda (keyword value &rest args) - (if (preview-supports-image-type value) - (let* (preview-ascent-spec - (glyph (make-glyph `[,value - ,@(preview-filter-specs-1 args)]))) - (when preview-ascent-spec - (set-glyph-baseline glyph preview-ascent-spec)) - glyph) - (throw 'preview-filter-specs nil)))) - -(put 'preview-filter-specs :ascent - #'(lambda (keyword value &rest args) - (setq preview-ascent-spec value) - (preview-filter-specs-1 args))) - -;; No defcustom here: does not seem to make sense. - -(defvar preview-tb-icon-specs - '((:type xpm :file "prvtex-cap-up.xpm" :ascent 75) - (:type xbm :file "prvtex24.xbm" :ascent 75))) - -(defvar preview-tb-icon nil) - -;; Image frobbing. - -(defun preview-add-urgentization (fun ov &rest rest) - "Cause FUN (function call form) to be called when redisplayed. -FUN must be a form with OV as first argument, -REST as the remainder, returning T. An alternative is to give -what `preview-remove-urgentization' returns, this will reinstate -the previous state." - (set-extent-initial-redisplay-function - ov - (if (null rest) - fun - `(lambda (ov) (,fun ,ov ,@rest))))) - -(defun preview-remove-urgentization (ov) - "Undo urgentization of OV by `preview-add-urgentization'. -Returns the old arguments to `preview-add-urgentization' -if there was any urgentization." - (prog1 (list (extent-property ov 'initial-redisplay-function) ov) - (set-extent-initial-redisplay-function ov nil))) - -(defsubst preview-icon-copy (icon) - "Prepare for a later call of `preview-replace-active-icon'." - icon) - -(defsubst preview-replace-active-icon (ov replacement) - "Replace the active Icon in OV by REPLACEMENT, another icon." - (set-extent-property ov 'preview-image replacement) - (add-text-properties 0 1 (list 'end-glyph (car replacement)) - (car (extent-property ov 'strings))) - (if (eq (extent-property ov 'preview-state) 'active) - (set-extent-end-glyph ov (car replacement)))) - -(defvar preview-button-1 'button2) -(defvar preview-button-2 'button3) - -;; The `x' and invisible junk is because XEmacs doesn't bother to insert -;; the extents of a zero-length string. Bah. -;; When this is fixed, we'll autodetect this case and use zero-length -;; strings where possible. -(defmacro preview-make-clickable (&optional map glyph helpstring click1 click2) - "Generate a clickable string or keymap. -If MAP is non-nil, it specifies a keymap to add to, otherwise -a new one is created. If GLYPH is given, the result is made -to display it wrapped in a string. In that case, -HELPSTRING is a format string with one or two %s specifiers -for preview's clicks, displayed as a help-echo. CLICK1 and CLICK2 -are functions to call on preview's clicks." - `(let (,@(and glyph '((res (copy-sequence "x")))) - (resmap ,(or map '(make-sparse-keymap)))) - ,@(if click1 - `((define-key resmap preview-button-1 ,click1))) - ,@(if click2 - `((define-key resmap preview-button-2 ,click2))) - ,@(if glyph - `((add-text-properties - 0 1 - (list 'end-glyph ,glyph - 'mouse-face 'highlight - 'preview-balloon-help - ,(if (stringp helpstring) - (format helpstring preview-button-1 preview-button-2) - `(format ,helpstring preview-button-1 preview-button-2)) - 'preview-keymap resmap) - res) - res) - '(resmap)))) - -(defun preview-click-reroute (ov event) - "If OV received a click EVENT on a glyph, reroute to special map." - (let ((oldmap (extent-keymap ov))) - (unwind-protect - (progn - (set-extent-keymap ov - (and (event-over-glyph-p event) - (extent-property ov 'preview-keymap))) - (dispatch-event event)) - (set-extent-keymap ov oldmap)))) - -(defun preview-reroute-map (ov) - "Get rerouting keymap for OV for catching glyph clicks only." - (let ((map (make-sparse-keymap)) - (fun `(lambda (event) - (interactive "e") - (preview-click-reroute ,ov event)))) - (define-key map preview-button-1 fun) - (define-key map preview-button-2 fun) - map)) - -(defun preview-balloon-reroute (ov) - "Give balloon help only if over glyph of OV." - (and (eq ov (event-glyph-extent (mouse-position-as-motion-event))) - (extent-property ov 'preview-balloon-help))) - -;; Most of the changes to this are junking the use of overlays; -;; a bit of it is different, and there's a little extra paranoia. - -;; We also have to move the image from the begin to the end-glyph -;; whenever the extent is invisible because of a bug in XEmacs-21.4's -;; redisplay engine. -(defun preview-toggle (ov &optional arg event) - "Toggle visibility of preview overlay OV. -ARG can be one of the following: t displays the overlay, -nil displays the underlying text, and 'toggle toggles. -If EVENT is given, it indicates the window where the event -occured, either by being a mouse event or by directly being -the window in question. This may be used for cursor restoration -purposes." - (if (not (bufferp (extent-object ov))) - (error 'wrong-type-argument ov)) - (let ((old-urgent (preview-remove-urgentization ov)) - (preview-state - (if (if (eq arg 'toggle) - (not (eq (extent-property ov 'preview-state) 'active)) - arg) - 'active - 'inactive)) - (strings (extent-property ov 'strings))) - (unless (eq (extent-property ov 'preview-state) 'disabled) - (set-extent-property ov 'preview-state preview-state) - (if (eq preview-state 'active) - (progn - (unless (extent-keymap ov) - (set-extent-keymap ov (preview-reroute-map ov)) - (set-extent-property ov 'balloon-help #'preview-balloon-reroute)) - (set-extent-begin-glyph ov nil) - (set-extent-end-glyph-layout ov 'text) - (set-extent-end-glyph ov (get-text-property - 0 'end-glyph (car strings))) - (set-extent-properties ov '(invisible t - isearch-open-invisible ignore - isearch-invisible t - face nil)) - (dolist (prop '(preview-keymap - mouse-face preview-balloon-help)) - (set-extent-property ov prop - (get-text-property 0 prop (car strings))))) - (unless (cdr strings) - (setcdr strings (preview-inactive-string ov))) - (set-extent-end-glyph ov nil) - (set-extent-begin-glyph-layout ov 'text) - (set-extent-begin-glyph ov (get-text-property - 0 'end-glyph (cdr strings))) - (set-extent-properties ov `(face preview-face - mouse-face nil - invisible nil - isearch-invisible nil - preview-keymap - ,(get-text-property - 0 'preview-keymap (cdr strings)) - preview-balloon-help - ,(get-text-property - 0 'preview-balloon-help (cdr strings))))) - (if old-urgent - (apply 'preview-add-urgentization old-urgent)))) - (if event - (preview-restore-position - ov - (if (windowp event) - event - (event-window event))))) - -; Does FALLBACKS need to be implemented? Likely not. -(defmacro preview-inherited-face-attribute (face attribute &optional - fallbacks) - "Fetch face attribute while adhering to inheritance. -This searches FACE and all its ancestors for an ATTRIBUTE. -FALLBACKS is unused." - `(face-attribute ,face ,attribute)) - -(defun preview-get-colors () - "Return colors from the current display. -Fetches the current screen colors and makes a vector -of colors as numbers in the range 0..65535. -Pure borderless black-on-white will return quadruple NIL." - (let - ((bg (color-instance-rgb-components (preview-inherited-face-attribute - 'preview-reference-face :background 'default))) - (fg (color-instance-rgb-components (preview-inherited-face-attribute - 'preview-reference-face :foreground 'default)))) - (if (equal '(65535 65535 65535) bg) - (setq bg nil)) - (if (equal '(0 0 0) fg) - (setq fg nil)) - (vector bg fg nil nil))) - -(defcustom preview-use-balloon-help nil - "*Is balloon help enabled in preview-latex?" - :group 'preview-appearance - :type 'boolean) - -(defcustom preview-buffer-recoding-alist - (if (and (= emacs-major-version 21) - (< emacs-minor-version 5)) - '((utf-8-unix . raw-text-unix) - (utf-8-dos . raw-text-dos) - (utf-8-mac . raw-text-mac) - (utf-8 . raw-text))) - "Translate buffer encodings into process encodings. -TeX is sometimes bad dealing with 8bit encodings and rather bad -dealing with multibyte encodings. So the process encoding output -might need to get temporarily reprocessed into the original byte -stream before the buffer characters can be identified. XEmacs -21.4 is rather bad at preserving incomplete multibyte characters -in that process. This variable makes it possible to use a -reconstructable coding system in the run buffer instead. Specify -an alist of base coding system names here, which you can get -using - - \(coding-system-name (coding-system-base buffer-file-coding-system)) - -in properly detected buffers." - :group 'preview-latex - :type '(repeat (cons symbol symbol))) - -(defun preview-buffer-recode-system (base) - "This is supposed to translate unrepresentable base encodings - into something that can be used safely for byte streams in the - run buffer. XEmacs mule-ucs is so broken that this may be - needed." - (or (cdr (assq (coding-system-name base) - preview-buffer-recoding-alist)) - base)) - -(defun preview-mode-setup () - "Setup proper buffer hooks and behavior for previews." - (set (make-local-variable 'desktop-save-buffer) - #'desktop-buffer-preview-misc-data) - (mapc #'make-local-hook - '(pre-command-hook post-command-hook - before-change-functions after-change-functions)) - (add-hook 'pre-command-hook #'preview-mark-point nil t) - (add-hook 'post-command-hook #'preview-move-point nil t) - (and preview-use-balloon-help - (not (and (boundp 'balloon-help-mode) - balloon-help-mode)) - (balloon-help-minor-mode 1)) - (add-hook 'before-change-functions #'preview-handle-before-change nil t) - (add-hook 'after-change-functions #'preview-handle-after-change nil t) - (easy-menu-add preview-menu) - (unless preview-tb-icon - (setq preview-tb-icon (preview-filter-specs - preview-tb-icon-specs)) - (when preview-tb-icon - (setq preview-tb-icon - (vector - (list preview-tb-icon) - #'preview-at-point - t - "Preview on/off at point")))) -;;; [Courtesy Stephen J. Turnbull, with some modifications -;;; Message-ID: <87el9fglsj.fsf@tleepslib.sk.tsukuba.ac.jp> -;;; I could not have figured this out for the world] -;;; Hm, there really ought to be a way to get the spec that would be -;;; instantiated in a given domain - (when preview-tb-icon - (let ((tb (cdadar (or (specifier-spec-list default-toolbar (current-buffer)) - (specifier-spec-list default-toolbar 'global))))) - (unless (member preview-tb-icon tb) - (set-specifier default-toolbar - (append tb (list preview-tb-icon)) - (current-buffer))))) - (when buffer-file-name - (let* ((filename (expand-file-name buffer-file-name)) - format-cons) - (when (string-match (concat "\\." TeX-default-extension "\\'") - filename) - (setq filename (substring filename 0 (match-beginning 0)))) - (setq format-cons (assoc filename preview-dumped-alist)) - (when (consp (cdr format-cons)) - (preview-unwatch-preamble format-cons) - (preview-watch-preamble (current-buffer) - (cadr format-cons) - format-cons))))) - -(defvar preview-marker (make-marker) - "Marker for fake intangibility.") - -(defvar preview-temporary-opened nil) - -(defvar preview-last-location nil - "Restored cursor position marker for reopened previews.") -(make-variable-buffer-local 'preview-last-location) - -(defun preview-mark-point () - "Mark position for fake intangibility." - (when (eq (get-char-property (point) 'preview-state) 'active) - (unless preview-last-location - (setq preview-last-location (make-marker))) - (set-marker preview-last-location (point)) - (set-marker preview-marker (point)) - (preview-move-point)) - (set-marker preview-marker (point))) - -(defun preview-restore-position (ov window) - "Tweak position after opening/closing preview. -The treated overlay OV has been triggered in WINDOW. This function -records the original buffer position for reopening, or restores it -after reopening. Note that by using the mouse, you can open/close -overlays not in the active window." - (when (eq (extent-object ov) (window-buffer window)) - (with-current-buffer (extent-object ov) - (if (eq (extent-property ov 'preview-state) 'active) - (setq preview-last-location - (set-marker (or preview-last-location (make-marker)) - (window-point window))) - (when (and - (markerp preview-last-location) - (eq (extent-object ov) (marker-buffer preview-last-location)) - (< (extent-start-position ov) preview-last-location) - (> (extent-end-position ov) preview-last-location)) - (set-window-point window preview-last-location)))))) - -(defun preview-move-point () - "Move point out of fake-intangible areas." - (preview-check-changes) - (let (newlist (pt (point)) distance) - (setq preview-temporary-opened - (dolist (ov preview-temporary-opened newlist) - (and (extent-object ov) - (not (extent-detached-p ov)) - (eq (extent-property ov 'preview-state) 'inactive) - (if (and (eq (extent-object ov) (current-buffer)) - (or (<= pt (extent-start-position ov)) - (>= pt (extent-end-position ov)))) - (preview-toggle ov t) - (push ov newlist))))) - (if (preview-auto-reveal-p - preview-auto-reveal - (setq distance - (and (eq (marker-buffer preview-marker) - (current-buffer)) - (- pt (marker-position preview-marker))))) - (map-extents #'preview-open-overlay nil - pt pt nil nil 'preview-state 'active) - (let (newpt) - (while (setq newpt - (map-extents #'preview-skip-overlay nil - pt pt (and distance (< distance 0)) nil - 'preview-state 'active)) - (setq pt newpt)) - (goto-char pt))))) - -(defun preview-skip-overlay (ovr backward) - "Skip point over OVR, BACKWARD is set if backwards. -Returns new position or NIL." - (if backward - (and (> (extent-start-position ovr) (point-min)) - (1- (extent-start-position ovr))) - (and (<= (extent-end-position ovr) (point-max)) - (> (extent-end-position ovr) (extent-start-position ovr)) - (extent-end-position ovr)))) - -(defun preview-open-overlay (ovr ignored) - "Open the active preview OVR, IGNORED gets ignored. -NIL is returned: this is for `map-extents'." - (preview-toggle ovr) - (push ovr preview-temporary-opened) - nil) - -(defadvice isearch-highlight (before preview protect disable) - "Make isearch open preview text that's a search hit. -Also make `query-replace' open preview text about to be replaced." - (map-extents #'preview-open-overlay nil - (ad-get-arg 0) (ad-get-arg 1) - nil nil 'preview-state 'active)) - -(defcustom preview-query-replace-reveal t - "*Make `isearch' and `query-replace' autoreveal previews." - :group 'preview-appearance - :type 'boolean - :require 'preview - :set (lambda (symbol value) - (set-default symbol value) - (if value - (ad-enable-advice 'isearch-highlight 'before 'preview) - (ad-disable-advice 'isearch-highlight 'before 'preview)) - (ad-activate 'isearch-highlight)) - :initialize #'custom-initialize-reset) - -;; Here is the beef: for best intuitiveness, we want to have -;; insertions be carried out as expected before iconized text -;; passages, but we want to insert *into* the overlay when not -;; iconized. A preview that has become empty can not get content -;; again: we remove it. A disabled preview needs no insert-in-front -;; handler. - -(defvar preview-change-list nil - "List of tentatively changed overlays.") - -(defcustom preview-dump-threshold - "^ *\\\\begin *{document}[ %]*$" - "*Regexp denoting end of preamble. -This is the location up to which preamble changes are considered -to require redumping of a format." - :group 'preview-latex - :type 'string) - -(defvar preview-preamble-format-cons nil - "Where our preamble is supposed to end.") -(make-variable-buffer-local 'preview-preamble-format-cons) - -(defun preview-preamble-check-change (beg end) - "Hook function for change hooks on preamble. -Reacts to changes between BEG and END." - (when (and (consp (cdr preview-preamble-format-cons)) - (cddr preview-preamble-format-cons) - (< beg (cddr preview-preamble-format-cons))) - (preview-unwatch-preamble preview-preamble-format-cons) - (preview-format-kill preview-preamble-format-cons) - (setcdr preview-preamble-format-cons t))) - -(defun preview-watch-preamble (file command format-cons) - "Set up a watch on master file FILE. -FILE can be an associated buffer instead of a filename. -COMMAND is the command that generated the format. -FORMAT-CONS contains the format info for the main -format dump handler." - (let ((buffer (if (bufferp file) - file - (find-buffer-visiting file))) ov) - (setq preview-preamble-format-cons nil) - (setcdr - format-cons - (cons command - (when buffer - (with-current-buffer buffer - (save-excursion - (save-restriction - (widen) - (goto-char (point-min)) - (unless (re-search-forward preview-dump-threshold nil t) - (error "Can't find preamble of `%s'" file)) - (setq preview-preamble-format-cons format-cons) - (point))))))))) - -(defun preview-unwatch-preamble (format-cons) - "Stop watching a format on FORMAT-CONS. -The watch has been set up by `preview-watch-preamble'." - (when (consp (cdr format-cons)) - (setcdr (cdr format-cons) nil))) - -(defun preview-register-change (ov map-arg) - "Register not yet changed OV for verification. -This stores the old contents of the overlay in the -`preview-prechange' property and puts the overlay into -`preview-change-list' where `preview-check-changes' will -find it at some later point of time. MAP-ARG is ignored; -it is usually generated by `map-extents'." - (unless (extent-property ov 'preview-prechange) - (if (eq (extent-property ov 'preview-state) 'disabled) - (set-extent-property ov 'preview-prechange t) - (set-extent-property ov - 'preview-prechange - (save-restriction - (widen) - (buffer-substring-no-properties - (extent-start-position ov) - (extent-end-position ov))))) - (push ov preview-change-list)) - nil) - -(defun preview-check-changes () - "Check whether the contents under the overlay have changed. -Disable it if that is the case. Ignores text properties." - (dolist (ov preview-change-list) - (condition-case nil - (with-current-buffer (extent-object ov) - (let ((text (save-restriction - (widen) - (buffer-substring-no-properties - (extent-start-position ov) - (extent-end-position ov))))) - (if (or (zerop (length text)) - (extent-detached-p ov)) - (preview-delete ov) - (unless - (or (eq (extent-property ov 'preview-state) 'disabled) - (preview-relaxed-string= - text (extent-property ov 'preview-prechange))) - (preview-disable ov))))) - (error nil)) - (set-extent-property ov 'preview-prechange nil)) - (setq preview-change-list nil)) - -(defun preview-handle-before-change (beg end) - "Hook function for `before-change-functions'. -Receives BEG and END, the affected region." - (map-extents #'preview-register-change nil beg end - nil nil 'preview-state) - (preview-preamble-check-change beg end)) - -(defun preview-handle-after-change (beg end length) - "Hook function for `after-change-functions'. -Receives BEG and END, the affected region, and LENGTH -of an insertion." - (when (and preview-change-list - (zerop length) - (not (eq this-command 'undo))) - (map-extents (lambda (ov maparg) - (set-extent-endpoints - ov maparg (extent-end-position ov))) nil - beg beg end 'start-in-region 'preview-state 'active) - (map-extents (lambda (ov maparg) - (set-extent-endpoints - ov (extent-start-position ov) maparg)) nil - end end beg 'end-in-region 'preview-state 'active))) - -(defun preview-import-image (image) - "Convert the printable IMAGE rendition back to an image." - (cond ((stringp image) - (setq image (copy-sequence image)) - (add-text-properties 0 (length image) - '(face preview-face) - image) - image) - ((eq (car image) 'image) - (let ((plist (cdr image))) - (preview-create-icon-1 - (plist-get plist :file) - (plist-get plist :type) - (plist-get plist :ascent)))) - (t - (preview-create-icon-1 (nth 0 image) - (nth 1 image) - (nth 2 image))))) - -(provide 'prv-xemacs) - -;;; Local variables: -;;; eval: (put 'preview-defmacro 'lisp-indent-function 'defun) -;;; end: - -;;; prv-xemacs.el ends here diff -Nru auctex-11.88/preview.el.in auctex-11.90/preview.el.in --- auctex-11.88/preview.el.in 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/preview.el.in 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,3595 @@ +;;; preview.el --- embed preview LaTeX images in source buffer + +;; Copyright (C) 2001-2006, 2010-2015 Free Software Foundation, Inc. + +;; Author: David Kastrup +;; Keywords: tex, wp, convenience + +;; This file is free software; you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; This file is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with GNU Emacs; see the file COPYING. If not, write to +;; the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, +;; Boston, MA 02110-1301, USA. + +;;; Commentary: + +;; This style is for the "seamless" embedding of generated images +;; into LaTeX source code. Please see the README and INSTALL files +;; for further instruction. +;; +;; Please use the usual configure script for installation: more than +;; just Elisp files are involved: a LaTeX style, icon files, startup +;; code and so on. +;; +;; Quite a few things with regard to preview-latex's operation can be +;; configured by using +;; M-x customize-group RET preview RET +;; +;; Please report bugs with M-x preview-report-bug RET. + +;;; Code: + +(require 'tex-site) +(require 'tex) +(require 'tex-buf) +(require 'latex) + +(eval-when-compile + (condition-case nil + (require 'desktop) + (file-error (message "Missing desktop package: +preview-latex buffers will not survive across sessions."))) + (condition-case nil + (require 'reporter) + (file-error (message "Missing reporter library, probably from the mail-lib package: +preview-latex's bug reporting commands will probably not work."))) + (require 'info)) + +;; we need the compatibility macros which do _not_ get byte-compiled. +(eval-when-compile + (if (featurep 'xemacs) + (load-library "prv-xemacs.el"))) + +;; if the above load-library kicked in, this will not cause anything +;; to get loaded. +(require (if (featurep 'xemacs) + 'prv-xemacs 'prv-emacs)) + +(defgroup preview nil "Embed Preview images into LaTeX buffers." + :group 'AUCTeX + :prefix "preview-" + :link '(custom-manual "(preview-latex)Top") + :link '(info-link "(preview-latex)The Emacs interface") + :link '(url-link :tag "Homepage" "http://www.gnu.org/software/auctex/")) + +(defgroup preview-gs nil "Preview's Ghostscript renderer." + :group 'preview + :prefix "preview-") + +(defgroup preview-appearance nil "Preview image appearance." + :group 'preview + :prefix "preview-") + +(defconst preview-specs-type + '(repeat + (list :tag "Image spec" + ;; Use an extra :value keyword to avoid a bug in + ;; `widget-convert' of XEmacs 21.4 and Emacs 21. + ;; Analogously for the following `const' statements. + (const :format "" :value :type) + (choice :tag "Image type" + (const xpm) + (const xbm) + (symbol :tag "Other")) + (set :inline t :tag "Minimum font size" + (list :inline t :tag "" + (const :format "" :value :min) + (integer :tag "pixels"))) + (const :format "" :value :file) (string :tag "Filename") + (set :inline t :tag "Ascent ratio" + (list :inline t :tag "" + (const :format "" :value :ascent) + (integer :tag "percent of image" + :value 50)))))) + +(defun preview-specs-setter (symbol value) + "Set SYMBOL to VALUE and clear `preview-min-alist' property. +This is used in icon specs, so that customizing will +clear cached icons." + (put symbol 'preview-min-alist nil) + (set-default symbol value)) + +(defcustom preview-nonready-icon-specs + '((:type xpm :min 26 :file "prvwrk24.xpm" :ascent 90) + (:type xpm :min 22 :file "prvwrk20.xpm" :ascent 90) + (:type xpm :min 17 :file "prvwrk16.xpm" :ascent 90) + (:type xpm :min 15 :file "prvwrk14.xpm" :ascent 90) + (:type xpm :file "prvwrk12.xpm" :ascent 90) + (:type xbm :file "prvwrk24.xbm" :ascent 90)) + "The icon used for previews to be generated. +The spec must begin with `:type'. File names are relative to +`load-path' and `data-directory', a spec `:min' requires a +minimal pixel height for `preview-reference-face' before the spec +will be considered. Since evaluating the `:file' spec takes +considerable time under XEmacs, it should come after the `:min' +spec to avoid unnecessary evaluation time." + :group 'preview-appearance + :type preview-specs-type + :set #'preview-specs-setter) + +(defvar preview-nonready-icon) + +(defcustom preview-error-icon-specs + '((:type xpm :min 22 :file "prverr24.xpm" :ascent 90) + (:type xpm :min 18 :file "prverr20.xpm" :ascent 90) + (:type xpm :file "prverr16.xpm" :ascent 90) + (:type xbm :file "prverr24.xbm" :ascent 90)) + "The icon used for PostScript errors. +The spec must begin with `:type'. File names are relative to +`load-path' and `data-directory', a spec `:min' requires a +minimal pixel height for `preview-reference-face' before the spec +will be considered. Since evaluating the `:file' spec takes +considerable time under XEmacs, it should come after the `:min' +spec to avoid unnecessary evaluation time." + :group 'preview-appearance + :type preview-specs-type + :set #'preview-specs-setter +) + +(defvar preview-error-icon) + +(defcustom preview-icon-specs + '((:type xpm :min 24 :file "prvtex24.xpm" :ascent 75) + (:type xpm :min 20 :file "prvtex20.xpm" :ascent 75) + (:type xpm :min 16 :file "prvtex16.xpm" :ascent 75) + (:type xpm :file "prvtex12.xpm" :ascent 75) + (:type xbm :min 24 :file "prvtex24.xbm" :ascent 75) + (:type xbm :min 16 :file "prvtex16.xbm" :ascent 75) + (:type xbm :file "prvtex12.xbm" :ascent 75)) + "The icon used for an open preview. +The spec must begin with `:type'. File names are relative to +`load-path' and `data-directory', a spec `:min' requires a +minimal pixel height for `preview-reference-face' before the spec +will be considered. Since evaluating the `:file' spec takes +considerable time under XEmacs, it should come after the `:min' +spec to avoid unnecessary evaluation time." + :group 'preview-appearance + :type preview-specs-type + :set #'preview-specs-setter) + +(defvar preview-icon) + +(defgroup preview-latex nil "LaTeX options for preview." + :group 'preview + :prefix "preview-") + +(defcustom preview-image-creators + '((dvipng + (open preview-gs-open preview-dvipng-process-setup) + (place preview-gs-place) + (close preview-dvipng-close)) + (png (open preview-gs-open) + (place preview-gs-place) + (close preview-gs-close)) + (jpeg (open preview-gs-open) + (place preview-gs-place) + (close preview-gs-close)) + (pnm (open preview-gs-open) + (place preview-gs-place) + (close preview-gs-close)) + (tiff (open preview-gs-open) + (place preview-gs-place) + (close preview-gs-close))) + "Define functions for generating images. +These functions get called in the process of generating inline +images of the specified type. The open function is called +at the start of a rendering pass, the place function for +placing every image, the close function at the end of +the pass. Look at the documentation of the various +functions used here for the default settings, and at +the function `preview-call-hook' through which those are +called. Additional argument lists specified in here +are passed to the functions before any additional +arguments given to `preview-call-hook'. + +Not all of these image types may be supported by your copy +of Ghostscript, or by your copy of Emacs." + :group 'preview-gs + :type '(alist :key-type (symbol :tag "Preview's image type") + :value-type + (alist :tag "Handler" :key-type (symbol :tag "Operation:") + :value-type (list :tag "Handler" + (function :tag "Handler function") + (repeat :tag "Additional \ +function args" :inline t sexp)) + :options (open place close)))) + +(defcustom preview-gs-image-type-alist + '((png png "-sDEVICE=png16m") + (dvipng png "-sDEVICE=png16m") + (jpeg jpeg "-sDEVICE=jpeg") + (pnm pbm "-sDEVICE=pnmraw") + (tiff tiff "-sDEVICE=tiff12nc")) + "*Alist of image types and corresponding Ghostscript options. +The `dvipng' and `postscript' (don't use) entries really specify +a fallback device when images can't be processed by the requested +method, like when PDFTeX was used." + :group 'preview-gs + :type '(repeat (list :tag nil (symbol :tag "preview image-type") + (symbol :tag "Emacs image-type") + (repeat :inline t :tag "Ghostscript options" string)))) + +(defcustom preview-image-type 'png + "*Image type to be used in images." + :group 'preview-gs + :type (append '(choice) + (mapcar (lambda (symbol) (list 'const (car symbol))) + preview-image-creators) + '((symbol :tag "Other")))) + +(defun preview-call-hook (symbol &rest rest) + "Call a function from `preview-image-creators'. +This looks up SYMBOL in the `preview-image-creators' entry +for the image type `preview-image-type' and calls the +hook function given there with the arguments specified there +followed by REST. If such a function is specified in there, +that is." + (let ((hook (cdr (assq symbol + (cdr (assq preview-image-type + preview-image-creators)))))) + (when hook + (apply (car hook) (append (cdr hook) rest))))) + + +(defvar TeX-active-tempdir nil + "List of directory name, top directory name and reference count.") +(make-variable-buffer-local 'TeX-active-tempdir) + +(defcustom preview-bb-filesize 1024 + "Size of file area scanned for bounding box information." + :group 'preview-gs :type 'integer) + +(defcustom preview-preserve-indentation t + "*Whether to keep additional whitespace at the left of a line." + :group 'preview-appearance :type 'boolean) + +(defun preview-extract-bb (filename) + "Extract EPS bounding box vector from FILENAME." + (with-temp-buffer + (insert-file-contents-literally filename nil 0 preview-bb-filesize + t) + (goto-char (point-min)) + (when (search-forward-regexp "%%BoundingBox:\ + +\\([-+]?[0-9.]+\\)\ + +\\([-+]?[0-9.]+\\)\ + +\\([-+]?[0-9.]+\\)\ + +\\([-+]?[0-9.]+\\)" nil t) + (vector + (if preview-preserve-indentation + (min 72 (string-to-number (match-string 1))) + (string-to-number (match-string 1))) + (string-to-number (match-string 2)) + (string-to-number (match-string 3)) + (string-to-number (match-string 4)) + )))) + +(defcustom preview-prefer-TeX-bb nil + "*Prefer TeX bounding box to EPS one if available. +If `preview-fast-conversion' is set, this option is not + consulted since the TeX bounding box has to be used anyway." + :group 'preview-gs + :type 'boolean) + +(defcustom preview-TeX-bb-border 0.5 + "*Additional space in pt around Bounding Box from TeX." + :group 'preview-gs + :type 'number) + +(defvar preview-coding-system nil + "Coding system used for LaTeX process.") +(make-variable-buffer-local 'preview-coding-system) +(defvar preview-parsed-font-size nil + "Font size as parsed from the log of LaTeX run.") +(make-variable-buffer-local 'preview-parsed-font-size) +(defvar preview-parsed-magnification nil + "Magnification as parsed from the log of LaTeX run.") +(make-variable-buffer-local 'preview-parsed-magnification) +(defvar preview-parsed-pdfoutput nil + "PDFoutput as parsed from the log of LaTeX run.") +(make-variable-buffer-local 'preview-parsed-pdfoutput) +(defvar preview-parsed-counters nil + "Counters as parsed from the log of LaTeX run.") +(make-variable-buffer-local 'preview-parsed-counters) +(defvar preview-parsed-tightpage nil + "Tightpage as parsed from the log of LaTeX run.") +(make-variable-buffer-local 'preview-parsed-tightpage) + +(defun preview-get-magnification () + "Get magnification from `preview-parsed-magnification'." + (if preview-parsed-magnification + (/ preview-parsed-magnification 1000.0) 1.0)) + +(defun preview-TeX-bb (list) + "Calculate bounding box from (ht dp wd). +LIST consists of TeX dimensions in sp (1/65536 TeX point)." + (and + (consp list) + (let* ((dims (vconcat (mapcar + #'(lambda (x) + (/ x 65781.76)) + list))) + (box + (vector + (+ 72 (min 0 (aref dims 2))) + (+ 720 (min (aref dims 0) (- (aref dims 1)) 0)) + (+ 72 (max 0 (aref dims 2))) + (+ 720 (max (aref dims 0) (- (aref dims 1)) 0)))) + (border (if preview-parsed-tightpage + (vconcat (mapcar + #'(lambda(x) + (/ x 65781.76)) + preview-parsed-tightpage)) + (vector (- preview-TeX-bb-border) + (- preview-TeX-bb-border) + preview-TeX-bb-border + preview-TeX-bb-border)))) + (dotimes (i 4) + (aset box i (+ (aref box i) (aref border i)))) + box))) + +(defcustom preview-gs-command + (or ;; The GS wrapper coming with TeX Live + (executable-find "rungs") + ;; The MikTeX builtin GS + (let ((gs (executable-find "mgs"))) + ;; Check if mgs is functional for external non-MikTeX apps. + ;; See http://blog.miktex.org/post/2005/04/07/Starting-mgsexe-at-the-DOS-Prompt.aspx + (when (and gs (= 0 (shell-command (concat gs " -q -dNODISPLAY -c quit")))) + gs)) + ;; Windows ghostscript + (executable-find "GSWIN32C.EXE") + ;; standard GhostScript + (executable-find "gs")) + "*How to call gs for conversion from EPS. See also `preview-gs-options'." + :group 'preview-gs + :type 'string) + +(defcustom preview-gs-options '("-q" "-dDELAYSAFER" "-dNOPAUSE" + "-DNOPLATFONTS" "-dPrinted" + "-dTextAlphaBits=4" + "-dGraphicsAlphaBits=4") + "*Options with which to call gs for conversion from EPS. +See also `preview-gs-command'." + :group 'preview-gs + :type '(repeat string)) + +(defvar preview-gs-queue nil + "List of overlays to convert using gs. +Buffer-local to the appropriate TeX process buffer.") +(make-variable-buffer-local 'preview-gs-queue) + +(defvar preview-gs-outstanding nil + "Overlays currently processed.") +(make-variable-buffer-local 'preview-gs-outstanding) + +(defcustom preview-gs-outstanding-limit 2 + "*Number of requests allowed to be outstanding. +This is the number of not-yet-completed requests we +might at any time have piped into Ghostscript. If +this number is larger, the probability of Ghostscript +working continuously is higher when Emacs is rather +busy. If this number is smaller, redisplay will +follow changes in the displayed buffer area faster." + :group 'preview-gs + :type '(restricted-sexp + :match-alternatives + ((lambda (value) (and + (integerp value) + (> value 0) + (< value 10)))) + :tag "small number")) + +(defvar preview-gs-answer nil + "Accumulated answer of Ghostscript process.") +(make-variable-buffer-local 'preview-gs-answer) + +(defvar preview-gs-image-type nil + "Image type for gs produced images.") +(make-variable-buffer-local 'preview-gs-image-type) + +(defvar preview-gs-sequence nil + "Pair of sequence numbers for gs produced images.") +(make-variable-buffer-local 'preview-gs-sequence) + +(defvar preview-scale nil + "Screen scale of images. +Magnify by this factor to make images blend with other +screen content. Buffer-local to rendering buffer.") +(make-variable-buffer-local 'preview-scale) + +(defvar preview-colors nil + "Color setup list. +An array with elements 0, 1 and 2 for background, +foreground and border colors, respectively. Each element +is a list of 3 real numbers between 0 and 1, or NIL +of nothing special should be done for the color") +(make-variable-buffer-local 'preview-colors) + +(defvar preview-gs-init-string nil + "Ghostscript setup string.") +(make-variable-buffer-local 'preview-gs-init-string) + +(defvar preview-ps-file nil + "PostScript file name for fast conversion.") +(make-variable-buffer-local 'preview-ps-file) + +(defvar preview-gs-dsc nil + "Parsed DSC information.") +(make-variable-buffer-local 'preview-gs-dsc) + +(defvar preview-resolution nil + "Screen resolution where rendering started. +Cons-cell of x and y resolution, given in +dots per inch. Buffer-local to rendering buffer.") +(make-variable-buffer-local 'preview-resolution) + +(defun preview-gs-resolution (scale xres yres) + "Generate resolution argument for gs. +Calculated from real-life factor SCALE and XRES and +YRES, the screen resolution in dpi." + (format "-r%gx%g" + (/ (* scale xres) (preview-get-magnification)) + (/ (* scale yres) (preview-get-magnification)))) + +(defun preview-gs-behead-outstanding (err) + "Remove leading element of outstanding queue after error. +Return element if non-nil. ERR is the error string to +show as response of Ghostscript." + (let ((ov (pop preview-gs-outstanding))) + (when ov + (preview-gs-flag-error ov err) + (overlay-put ov 'queued nil)) + ov)) + +(defvar preview-gs-command-line nil) +(make-variable-buffer-local 'preview-gs-command-line) +(defvar preview-gs-file nil) +(make-variable-buffer-local 'preview-gs-file) + +(defcustom preview-fast-conversion t + "*Set this for single-file PostScript conversion. +This will have no effect when `preview-image-type' is +set to `postscript'." + :group 'preview-latex + :type 'boolean) + +(defun preview-string-expand (arg &optional separator) + "Expand ARG as a string. +It can already be a string. Or it can be a list, then it is +recursively evaluated using SEPARATOR as separator. If a list +element is in itself a CONS cell, the CAR of the list (after symbol +dereferencing) can evaluate to either a string, in which case it is +used as a separator for the rest of the list, +or a boolean (t or nil) in which case the rest of the list is +either evaluated and concatenated or ignored, respectively. +ARG can be a symbol, and so can be the CDR +of a cell used for string concatenation." + (cond + ((stringp arg) arg) + ((consp arg) + (mapconcat + #'identity + (delq nil + (mapcar + (lambda(x) + (if (consp x) + (let ((sep (car x))) + (while (and (symbolp sep) + (not (memq sep '(t nil)))) + (setq sep (symbol-value sep))) + (if (stringp sep) + (preview-string-expand (cdr x) sep) + (and sep + (preview-string-expand (cdr x))))) + (preview-string-expand x))) + arg)) + (or separator ""))) + ((and (symbolp arg) (not (memq arg '(t nil)))) + (preview-string-expand (symbol-value arg) separator)) + (t (error "Bad string expansion")))) + +(defconst preview-expandable-string + (let ((f (lambda (x) + `(choice + string + (repeat :tag "Concatenate" + (choice + string + (cons :tag "Separated list" + (choice (string :tag "Separator") + (symbol :tag + "Indirect separator or flag")) + ,x) + (symbol :tag "Indirect variable (no separator)"))) + (symbol :tag "Indirect variable (with separator)"))))) + (funcall f (funcall f 'sexp))) + "Type to be used for `preview-string-expand'. +Just a hack until we get to learn how to do this properly. +Recursive definitions are not popular with Emacs, +so we define this type just two levels deep. This +kind of expandible string can either be just a string, or a +cons cell with a separator string in the CAR, and either +an explicit list of elements in the CDR, or a symbol to +be consulted recursively.") + +(defcustom preview-dvipng-command + "dvipng -picky -noghostscript %d -o \"%m/prev%%03d.png\"" + "*Command used for converting to separate PNG images. + +You might specify options for converting to other image types, +but then you'll need to adapt `preview-dvipng-image-type'." + :group 'preview-latex + :type 'string) + +(defcustom preview-dvipng-image-type + 'png + "*Image type that dvipng produces. + +You'll need to change `preview-dvipng-command' too, +if you customize this." + :group 'preview-latex + :type '(choice (const png) + (const gif) + (symbol :tag "Other" :value png))) + +(defcustom preview-dvips-command + "dvips -Pwww -i -E %d -o %m/preview.000" + "*Command used for converting to separate EPS images." + :group 'preview-latex + :type 'string) + +(defcustom preview-fast-dvips-command + "dvips -Pwww %d -o %m/preview.ps" + "*Command used for converting to a single PS file." + :group 'preview-latex + :type 'string) + +(defcustom preview-pdf2dsc-command + "pdf2dsc %s.pdf %m/preview.dsc" + "*Command used for generating dsc from a PDF file." + :group 'preview-latex + :type 'string) + +(defun preview-gs-queue-empty () + "Kill off everything remaining in `preview-gs-queue'." + (mapc #'preview-delete preview-gs-outstanding) + (dolist (ov preview-gs-queue) + (if (overlay-get ov 'queued) + (preview-delete ov))) + (setq preview-gs-outstanding nil) + (setq preview-gs-queue nil)) + +(defvar preview-error-condition nil + "Last error raised and to be reported.") + +(defun preview-log-error (err context &optional process) + "Log an error message to run buffer. +ERR is the caught error syndrome, CONTEXT is where it +occured, PROCESS is the process for which the run-buffer +is to be used." + (when (or (null process) (buffer-name (process-buffer process))) + (with-current-buffer (or (and process + (process-buffer process)) + (current-buffer)) + (save-excursion + (goto-char (or (and process + (process-buffer process) + (marker-buffer (process-mark process)) + (process-mark process)) + (point-max))) + (insert-before-markers + (format "%s: %s\n" + context (error-message-string err))) + (display-buffer (current-buffer))))) + (setq preview-error-condition err)) + +(defun preview-reraise-error (&optional process) + "Raise an error that has been logged. +Makes sure that PROCESS is removed from the \"Compilation\" +tag in the mode line." + (when preview-error-condition + (unwind-protect + (signal (car preview-error-condition) (cdr preview-error-condition)) + (setq preview-error-condition nil + compilation-in-progress (delq process compilation-in-progress))))) + +(defun preview-gs-sentinel (process string) + "Sentinel function for rendering process. +Gets the default PROCESS and STRING arguments +and tries to restart Ghostscript if necessary." + (condition-case err + (let ((status (process-status process))) + (when (memq status '(exit signal)) + (setq compilation-in-progress (delq process compilation-in-progress))) + (when (buffer-name (process-buffer process)) + (with-current-buffer (process-buffer process) + (goto-char (point-max)) + (insert-before-markers "\n" mode-name " " string) + (forward-char -1) + (insert " at " + (substring (current-time-string) 0 -5)) + (forward-char 1) + (TeX-command-mode-line process) + (when (memq status '(exit signal)) + ;; process died. + ;; Throw away culprit, go on. + (let* ((err (concat preview-gs-answer "\n" + (process-name process) " " string)) + (ov (preview-gs-behead-outstanding err))) + (when (and (null ov) preview-gs-queue) + (save-excursion + (goto-char (if (marker-buffer (process-mark process)) + (process-mark process) + (point-max))) + (insert-before-markers err))) + (delete-process process) + (if (or (null ov) + (eq status 'signal)) + ;; if process was killed explicitly by signal, or if nothing + ;; was processed, we give up on the matter altogether. + (progn + (when preview-ps-file + (condition-case nil + (preview-delete-file preview-ps-file) + (file-error nil))) + (preview-gs-queue-empty)) + + ;; restart only if we made progress since last call + (let (filenames) + (dolist (ov preview-gs-outstanding) + (setq filenames (overlay-get ov 'filenames)) + (condition-case nil + (preview-delete-file (nth 1 filenames)) + (file-error nil)) + (setcdr filenames nil))) + (setq preview-gs-queue (nconc preview-gs-outstanding + preview-gs-queue)) + (setq preview-gs-outstanding nil) + (preview-gs-restart))))))) + (error (preview-log-error err "Ghostscript" process))) + (preview-reraise-error process)) + +(defun preview-gs-filter (process string) + "Filter function for processing Ghostscript output. +Gets the usual PROCESS and STRING parameters, see +`set-process-filter' for a description." + (with-current-buffer (process-buffer process) + (setq preview-gs-answer (concat preview-gs-answer string)) + (while (string-match "GS\\(<[0-9]+\\)?>" preview-gs-answer) + (let* ((pos (match-end 0)) + (answer (substring preview-gs-answer 0 pos))) + (setq preview-gs-answer (substring preview-gs-answer pos)) + (condition-case err + (preview-gs-transact process answer) + (error (preview-log-error err "Ghostscript filter" process)))))) + (preview-reraise-error)) + +(defun preview-gs-restart () + "Start a new Ghostscript conversion process." + (when preview-gs-queue + (if preview-gs-sequence + (setcar preview-gs-sequence (1+ (car preview-gs-sequence))) + (setq preview-gs-sequence (list 1))) + (setcdr preview-gs-sequence 1) + (let* ((process-connection-type nil) + (outfile (format "-dOutputFile=%s" + (preview-ps-quote-filename + (format "%s/pr%d-%%d.%s" + (car TeX-active-tempdir) + (car preview-gs-sequence) + preview-gs-image-type)))) + (process + (apply #'start-process + "Preview-Ghostscript" + (current-buffer) + preview-gs-command + outfile + preview-gs-command-line))) + (goto-char (point-max)) + (insert-before-markers "Running `Preview-Ghostscript' with ``" + (mapconcat #'shell-quote-argument + (append + (list preview-gs-command + outfile) + preview-gs-command-line) + " ") "''\n") + (setq preview-gs-answer "") + (process-kill-without-query process) + (set-process-sentinel process #'preview-gs-sentinel) + (set-process-filter process #'preview-gs-filter) + (process-send-string process preview-gs-init-string) + (setq mode-name "Preview-Ghostscript") + (push process compilation-in-progress) + (TeX-command-mode-line process) + (set-buffer-modified-p (buffer-modified-p)) + process))) + +(defun preview-gs-open (&optional setup) + "Start a Ghostscript conversion pass. +SETUP may contain a parser setup function." + (let ((image-info (assq preview-image-type preview-gs-image-type-alist))) + (setq preview-gs-image-type (nth 1 image-info)) + (setq preview-gs-sequence nil) + (setq preview-gs-command-line (append + preview-gs-options + (nthcdr 2 image-info)) + preview-gs-init-string + (format "{DELAYSAFER{.setsafe}if}stopped pop\ +/.preview-BP currentpagedevice/BeginPage get dup \ +null eq{pop{pop}bind}if def\ +<>setpagedevice\ +/preview-do{[count 3 roll save]3 1 roll dup length 0 eq\ +{pop}{setpagedevice}{ifelse .runandhide}\ +stopped{handleerror quit}if \ +aload pop restore}bind def " + (preview-gs-color-string preview-colors))) + (preview-gs-queue-empty) + (preview-parse-messages (or setup #'preview-gs-dvips-process-setup)))) + +(defun preview-gs-color-value (value) + "Return string to be used as color value for an RGB component. +Conversion from Emacs color numbers (0 to 65535) in VALUE +to Ghostscript floats." + (format "%g" (/ value 65535.0))) + +(defun preview-pdf-color-string (colors) + "Return a string that patches PDF foreground color to work properly." + ;; Actually, this is rather brutal. It will only be invoked in + ;; cases, however, where previously it was not expected that + ;; anything readable turned up, anyway. + (let ((fg (aref colors 1))) + (if fg + (concat + "/GS_PDF_ProcSet GS_PDF_ProcSet dup maxlength dict copy dup begin\ +/graphicsbeginpage{//graphicsbeginpage exec " + (mapconcat #'preview-gs-color-value fg " ") + " 3 copy rg RG}bind store end readonly store ")))) + +(defun preview-gs-color-string (colors) + "Return a string setting up colors" + (let ((bg (aref colors 0)) + (fg (aref colors 1)) + (mask (aref colors 2)) + (border (aref colors 3))) + (concat + (and (or (and mask border) (and bg (not fg))) + "gsave ") + (and bg + (concat + (mapconcat #'preview-gs-color-value bg " ") + " setrgbcolor clippath fill ")) + (and mask border + (format "%s setrgbcolor false setstrokeadjust %g \ +setlinewidth clippath strokepath \ +matrix setmatrix true \ +{2 index{newpath}if round exch round exch moveto pop false}\ +{round exch round exch lineto}{curveto}{closepath}\ +pathforall pop fill " + (mapconcat #'preview-gs-color-value mask " ") + (* 2 border))) + ;; I hate antialiasing. Warp border to integral coordinates. + (and (or (and mask border) (and bg (not fg))) + "grestore ") + (and fg + (concat + (mapconcat #'preview-gs-color-value fg " ") + " setrgbcolor"))))) + +(defun preview-dvipng-color-string (colors res) + "Return color setup tokens for dvipng. +Makes a string of options suitable for passing to dvipng. +Pure borderless black-on-white will return an empty string." + (let + ((bg (aref colors 0)) + (fg (aref colors 1)) + (mask (aref colors 2)) + (border (aref colors 3))) + (concat + (and bg + (format "--bg 'rgb %s' " + (mapconcat #'preview-gs-color-value bg " "))) + (and fg + (format "--fg 'rgb %s' " + (mapconcat #'preview-gs-color-value fg " "))) + (and mask border + (format "--bd 'rgb %s' " + (mapconcat #'preview-gs-color-value mask " "))) + (and border + (format "--bd %d" (max 1 (round (/ (* res border) 72.0)))))))) + +(defun preview-gs-dvips-process-setup () + "Set up Dvips process for conversions via gs." + (unless (preview-supports-image-type preview-gs-image-type) + (error "preview-image-type setting '%s unsupported by this Emacs" + preview-gs-image-type)) + (setq preview-gs-command-line (append + preview-gs-command-line + (list (preview-gs-resolution + (preview-hook-enquiry preview-scale) + (car preview-resolution) + (cdr preview-resolution))))) + (if preview-parsed-pdfoutput + (preview-pdf2dsc-process-setup) + (let ((process (preview-start-dvips preview-fast-conversion))) + (setq TeX-sentinel-function #'preview-gs-dvips-sentinel) + (list process (current-buffer) TeX-active-tempdir preview-ps-file + preview-gs-image-type)))) + +(defun preview-dvipng-process-setup () + "Set up dvipng process for conversion." + (setq preview-gs-command-line (append + preview-gs-command-line + (list (preview-gs-resolution + (preview-hook-enquiry preview-scale) + (car preview-resolution) + (cdr preview-resolution))))) + (if preview-parsed-pdfoutput + (if (preview-supports-image-type preview-gs-image-type) + (preview-pdf2dsc-process-setup) + (error "preview-image-type setting '%s unsupported by this Emacs" + preview-gs-image-type)) + (unless (preview-supports-image-type preview-dvipng-image-type) + (error "preview-dvipng-image-type setting '%s unsupported by this Emacs" + preview-dvipng-image-type)) + (let ((process (preview-start-dvipng))) + (setq TeX-sentinel-function #'preview-dvipng-sentinel) + (list process (current-buffer) TeX-active-tempdir t + preview-dvipng-image-type)))) + + +(defun preview-pdf2dsc-process-setup () + (let ((process (preview-start-pdf2dsc))) + (setq TeX-sentinel-function #'preview-pdf2dsc-sentinel) + (list process (current-buffer) TeX-active-tempdir preview-ps-file + preview-gs-image-type))) + +(defun preview-dvips-abort () + "Abort a Dvips run." + (preview-gs-queue-empty) + (condition-case nil + (delete-file + (let ((gsfile preview-gs-file)) + (with-current-buffer TeX-command-buffer + (funcall (car gsfile) "dvi")))) + (file-error nil)) + (when preview-ps-file + (condition-case nil + (preview-delete-file preview-ps-file) + (file-error nil))) + (setq TeX-sentinel-function nil)) + +(defalias 'preview-dvipng-abort 'preview-dvips-abort) +; "Abort a DviPNG run.") + +(defun preview-gs-dvips-sentinel (process _command &optional gsstart) + "Sentinel function for indirect rendering DviPS process. +The usual PROCESS and COMMAND arguments for +`TeX-sentinel-function' apply. Starts gs if GSSTART is set." + (condition-case err + (let ((status (process-status process)) + (gsfile preview-gs-file)) + (cond ((eq status 'exit) + (delete-process process) + (setq TeX-sentinel-function nil) + (condition-case nil + (delete-file + (with-current-buffer TeX-command-buffer + (funcall (car gsfile) "dvi"))) + (file-error nil)) + (if preview-ps-file + (preview-prepare-fast-conversion)) + (when gsstart + (if preview-gs-queue + (preview-gs-restart) + (when preview-ps-file + (condition-case nil + (preview-delete-file preview-ps-file) + (file-error nil)))))) + ((eq status 'signal) + (delete-process process) + (preview-dvips-abort)))) + (error (preview-log-error err "DviPS sentinel" process))) + (preview-reraise-error process)) + +(defun preview-pdf2dsc-sentinel (process _command &optional gsstart) + "Sentinel function for indirect rendering PDF process. +The usual PROCESS and COMMAND arguments for +`TeX-sentinel-function' apply. Starts gs if GSSTART is set." + (condition-case err + (let ((status (process-status process))) + (cond ((eq status 'exit) + (delete-process process) + (setq TeX-sentinel-function nil) + (setq preview-gs-init-string + (concat preview-gs-init-string + (preview-pdf-color-string preview-colors))) + (preview-prepare-fast-conversion) + (when gsstart + (if preview-gs-queue + (preview-gs-restart) + (when preview-ps-file + (condition-case nil + (preview-delete-file preview-ps-file) + (file-error nil)))))) + ((eq status 'signal) + (delete-process process) + (preview-dvips-abort)))) + (error (preview-log-error err "PDF2DSC sentinel" process))) + (preview-reraise-error process)) + +(defun preview-gs-close (process closedata) + "Clean up after PROCESS and set up queue accumulated in CLOSEDATA." + (setq preview-gs-queue (nconc preview-gs-queue closedata)) + (if process + (if preview-gs-queue + (if TeX-process-asynchronous + (if (and (eq (process-status process) 'exit) + (null TeX-sentinel-function)) + ;; Process has already finished and run sentinel + (progn + (when preview-ps-file + (condition-case nil + (preview-delete-file preview-ps-file) + (file-error nil))) + (preview-gs-restart)) + (setq TeX-sentinel-function + `(lambda (process command) + (,(if preview-parsed-pdfoutput + 'preview-pdf2dsc-sentinel + 'preview-gs-dvips-sentinel) + process + command + t)))) + (TeX-synchronous-sentinel "Preview-DviPS" (cdr preview-gs-file) + process)) + ;; pathological case: no previews although we sure thought so. + (delete-process process) + (unless (eq (process-status process) 'signal) + (preview-dvips-abort))))) + +(defun preview-dvipng-sentinel (process _command &optional placeall) + "Sentinel function for indirect rendering DviPNG process. +The usual PROCESS and COMMAND arguments for +`TeX-sentinel-function' apply. Places all snippets if PLACEALL is set." + (condition-case err + (let ((status (process-status process))) + (cond ((eq status 'exit) + (delete-process process) + (setq TeX-sentinel-function nil) + (when placeall + (preview-dvipng-place-all))) + ((eq status 'signal) + (delete-process process) + (preview-dvipng-abort)))) + (error (preview-log-error err "DviPNG sentinel" process))) + (preview-reraise-error process)) + +(defun preview-dvipng-close (process closedata) + "Clean up after PROCESS and set up queue accumulated in CLOSEDATA." + (if preview-parsed-pdfoutput + (preview-gs-close process closedata) + (setq preview-gs-queue (nconc preview-gs-queue closedata)) + (if process + (if preview-gs-queue + (if TeX-process-asynchronous + (if (and (eq (process-status process) 'exit) + (null TeX-sentinel-function)) + ;; Process has already finished and run sentinel + (preview-dvipng-place-all) + (setq TeX-sentinel-function (lambda (process command) + (preview-dvipng-sentinel + process + command + t)))) + (TeX-synchronous-sentinel "Preview-DviPNG" (cdr preview-gs-file) + process)) + ;; pathological case: no previews although we sure thought so. + (delete-process process) + (unless (eq (process-status process) 'signal) + (preview-dvipng-abort)))))) + +(defun preview-dsc-parse (file) + "Parse DSC comments of FILE. +Returns a vector with offset/length pairs corresponding to +the pages. Page 0 corresponds to the initialization section." + (with-temp-buffer + (set-buffer-multibyte nil) + (insert-file-contents-literally file) + (let ((last-pt (point-min)) + trailer + pagelist + lastbegin + pt + case-fold-search + (level 0)) + (while (search-forward-regexp "\ +%%\\(?:\\(BeginDocument:\\)\\|\ +\\(EndDocument[\n\r]\\)\\|\ +\\(Page:\\)\\|\ +\\(Trailer[\n\r]\\)\\)" nil t) + (setq pt (match-beginning 0)) + (cond ((null (memq (char-before pt) '(?\C-j ?\C-m nil)))) + (trailer (error "Premature %%%%Trailer in `%s' at offsets %d/%d" + file trailer pt)) + ((match-beginning 1) + (if (zerop level) + (setq lastbegin pt)) + (setq level (1+ level))) + ((match-beginning 2) + (if (zerop level) + (error "Unmatched %%%%EndDocument in `%s' at offset %d" + file pt) + (setq level (1- level)))) + ((> level 0)) + ((match-beginning 3) + (push (list last-pt (- pt last-pt)) pagelist) + (setq last-pt pt)) + ((match-beginning 4) + (setq trailer pt)))) + (unless (zerop level) + (error "Unmatched %%%%BeginDocument in `%s' at offset %d" + file lastbegin)) + (push (list last-pt + (- (or trailer (point-max)) last-pt)) pagelist) + (vconcat (nreverse pagelist))))) + +(defun preview-gs-dsc-cvx (page dsc) + "Generate PostScript code accessing PAGE in the DSC object. +The returned PostScript code will need the file on +top of the stack, and will replace it with an executable +object corresponding to the wanted page." + (let ((curpage (aref dsc page))) + (format "dup %d setfileposition %d()/SubFileDecode filter cvx" + (1- (car curpage)) (nth 1 curpage)))) + +(defun preview-ps-quote-filename (str &optional nonrel) + "Make a PostScript string from filename STR. +The file name is first made relative unless +NONREL is not NIL." + (unless nonrel (setq str (file-relative-name str))) + (let ((index 0)) + (while (setq index (string-match "[\\()]" str index)) + (setq str (replace-match "\\\\\\&" t nil str) + index (+ 2 index))) + (concat "(" str ")"))) + +(defun preview-prepare-fast-conversion () + "This fixes up all parameters for fast conversion." + (let* ((file (if (consp (car preview-ps-file)) + (if (consp (caar preview-ps-file)) + (car (last (caar preview-ps-file))) + (caar preview-ps-file)) + (car preview-ps-file))) + (all-files (if (and (consp (car preview-ps-file)) + (consp (caar preview-ps-file))) + (caar preview-ps-file) + (list file)))) + (setq preview-gs-dsc (preview-dsc-parse file)) + (setq preview-gs-init-string + (concat (format "{<> setuserparams \ +.locksafe} stopped pop " + (mapconcat 'preview-ps-quote-filename all-files "")) + preview-gs-init-string + (format "[%s(r)file]aload exch %s .runandhide aload pop " + (preview-ps-quote-filename file) + (preview-gs-dsc-cvx 0 preview-gs-dsc)))))) + +(defun preview-gs-urgentize (ov buff) + "Make a displayed overlay render with higher priority. +This function is used in fake conditional display properties +for reordering the conversion order to prioritize on-screen +images. OV is the overlay in question, and BUFF is the +Ghostscript process buffer where the buffer-local queue +is located." + ;; It does not matter that ov gets queued twice in that process: the + ;; first version to get rendered will clear the 'queued property. + ;; It cannot get queued more than twice since we remove the + ;; conditional display property responsible for requeuing here. + ;; We don't requeue if the overlay has been killed (its buffer made + ;; nil). Not necessary, but while we are checking... + ;; We must return t. + (preview-remove-urgentization ov) + (when (and (overlay-get ov 'queued) + (overlay-buffer ov)) + (with-current-buffer buff + (push ov preview-gs-queue))) + t) + + +(defun preview-gs-place (ov snippet box run-buffer tempdir ps-file _imagetype) + "Generate an image placeholder rendered over by Ghostscript. +This enters OV into all proper queues in order to make it render +this image for real later, and returns the overlay after setting +a placeholder image. SNIPPET gives the number of the +snippet in question for the file to be generated. +BOX is a bounding box if we already know one via TeX. +RUN-BUFFER is the buffer of the TeX process, +TEMPDIR is the correct copy of `TeX-active-tempdir', +PS-FILE is a copy of `preview-ps-file', IMAGETYPE is the image type +for the file extension." + (overlay-put ov 'filenames + (unless (eq ps-file t) + (list + (preview-make-filename + (or ps-file + (format "preview.%03d" snippet)) + tempdir)))) + (overlay-put ov 'queued + (vector box nil snippet)) + (overlay-put ov 'preview-image + (list (preview-icon-copy preview-nonready-icon))) + (preview-add-urgentization #'preview-gs-urgentize ov run-buffer) + (list ov)) + +(defvar view-exit-action) + +(defun preview-mouse-open-error (string) + "Display STRING in a new view buffer on click." + (let ((buff (get-buffer-create + "*Preview-Ghostscript-Error*"))) + (with-current-buffer buff + (kill-all-local-variables) + (set (make-local-variable 'view-exit-action) #'kill-buffer) + (setq buffer-undo-list t) + (erase-buffer) + (insert string) + (goto-char (point-min))) + (view-buffer-other-window buff))) + +(defun preview-mouse-open-eps (file &optional position) + "Display eps FILE in a view buffer on click. +Place point at POSITION, else beginning of file." + (let ((default-major-mode + ;; FIXME: Yuck! Just arrange for the file name to have the right + ;; extension instead! + (or + (assoc-default "x.ps" auto-mode-alist #'string-match) + (default-value 'major-mode))) + (buff (get-file-buffer file))) + (save-excursion + (if buff + (pop-to-buffer buff) + (view-file-other-window file)) + (goto-char (or position (point-min))) + (if (eq major-mode 'ps-mode) ; Bundled with GNU Emacs + (message "%s" (substitute-command-keys "\ +Try \\[ps-run-start] \\[ps-run-buffer] and \ +\\\\[ps-run-mouse-goto-error] on error offset." ))) + (if (eq major-mode 'postscript-mode) ; Bundled with XEmacs, limited + (message "%s" (substitute-command-keys "\ +Try \\[ps-shell] and \\[ps-execute-buffer].")))))) + +(defun preview-gs-flag-error (ov err) + "Make an eps error flag in overlay OV for ERR string." + (let* ((filenames (overlay-get ov 'filenames)) + (file (car (nth 0 filenames))) + (outfile (format "-dOutputFile=%s" + (preview-ps-quote-filename + (car (nth 1 filenames))))) + (ps-open + `(lambda() (interactive "@") + (preview-mouse-open-error + ,(concat + (mapconcat #'shell-quote-argument + (append (list + preview-gs-command + outfile) + preview-gs-command-line) + " ") + "\nGS>" + preview-gs-init-string + (aref (overlay-get ov 'queued) 1) + err)))) + (str + (preview-make-clickable + nil + preview-error-icon + "%s views error message +%s more options" + ps-open + `(lambda() (interactive) + (popup-menu + '("PostScript error" + ["View error" ,ps-open] + ["View source" + (lambda () (interactive "@") + ,(if preview-ps-file + `(preview-mouse-open-eps + ,(if (consp (car file)) + (nth 1 (car file)) + (car file)) + ,(nth 0 (aref preview-gs-dsc + (aref (overlay-get ov 'queued) 2)))) + `(preview-mouse-open-eps ,file)))])))))) + (overlay-put ov 'strings (cons str str)) + (preview-toggle ov))) + +(defun preview-gs-transact (process answer) + "Work off Ghostscript transaction. +This routine is the action routine called via the process filter. +The Ghostscript process buffer of PROCESS will already be selected, and +and the standard output of Ghostscript up to the next prompt will be +given as ANSWER." + (let ((ov (pop preview-gs-outstanding)) + (have-error (not + (string-match "\\`GS\\(<[0-9]+\\)?>\\'" answer )))) + (when (and ov (overlay-buffer ov)) + (let ((queued (overlay-get ov 'queued))) + (when queued + (let* ((bbox (aref queued 0)) + (filenames (overlay-get ov 'filenames)) + (oldfile (nth 0 filenames)) + (newfile (nth 1 filenames))) + (if have-error + (preview-gs-flag-error ov answer) + (condition-case nil + (preview-delete-file oldfile) + (file-error nil)) + (overlay-put ov 'filenames (cdr filenames)) + (preview-replace-active-icon + ov + (preview-create-icon (car newfile) + preview-gs-image-type + (preview-ascent-from-bb + bbox) + (aref preview-colors 2)))) + (overlay-put ov 'queued nil))))) + (while (and (< (length preview-gs-outstanding) + preview-gs-outstanding-limit) + (setq ov (pop preview-gs-queue))) + (let ((queued (overlay-get ov 'queued))) + (when (and queued + (not (memq ov preview-gs-outstanding)) + (overlay-buffer ov)) + (let* ((filenames (overlay-get ov 'filenames)) + (oldfile (car (nth 0 + (nconc filenames + (list + (preview-make-filename + (format "pr%d-%d.%s" + (car preview-gs-sequence) + (cdr preview-gs-sequence) + preview-gs-image-type) + TeX-active-tempdir)))))) + (bbox (aset queued 0 + (or (and preview-prefer-TeX-bb + (aref queued 0)) + (and (stringp oldfile) + (preview-extract-bb + oldfile)) + (aref queued 0) + (error "No bounding box")))) + (snippet (aref queued 2)) + (gs-line + (format + "%s<<%s>>preview-do\n" + (if preview-ps-file + (concat "dup " + (preview-gs-dsc-cvx + snippet + preview-gs-dsc)) + (format "%s(r)file cvx" + (preview-ps-quote-filename + (if (listp oldfile) + (car (last oldfile)) + oldfile)))) + (if preview-parsed-tightpage + "" + (format "/PageSize[%g %g]/PageOffset[%g \ +%g[1 1 dtransform exch]{0 ge{neg}if exch}forall]" + (- (aref bbox 2) (aref bbox 0)) + (- (aref bbox 3) (aref bbox 1)) + (aref bbox 0) (aref bbox 1)))))) + (setcdr preview-gs-sequence (1+ (cdr preview-gs-sequence))) + (setq preview-gs-outstanding + (nconc preview-gs-outstanding + (list ov))) + (aset queued 1 gs-line) + ;; ignore errors because of dying processes: they will get + ;; caught by the sentinel, anyway. + (condition-case nil + (process-send-string + process + gs-line) + (error nil)))))) + (unless preview-gs-outstanding + (condition-case nil + (process-send-eof process) + (error nil))))) + +(defun preview-hook-enquiry (hook) + "Gets a value from a configured hook. +HOOK is a list or single item, for which the first resolving to +non-nil counts. Entries can be a callable function, or +a symbol that is consulted, or a value. Lists are evaluated +recursively." + (cond ((functionp hook) + (funcall hook)) + ((consp hook) + (let (res) + (while (and (not res) hook) + (setq res (preview-hook-enquiry (car hook)) + hook (cdr hook))) + res)) + ((and (symbolp hook) (boundp hook)) + (symbol-value hook)) + (t hook))) + +(defcustom preview-scale-function #'preview-scale-from-face + "*Scale factor for included previews. +This can be either a function to calculate the scale, or +a fixed number." + :group 'preview-appearance + :type '(choice (function-item preview-scale-from-face) + (const 1.0) + (number :value 1.0) + (function :value preview-scale-from-face))) + +(defcustom preview-default-document-pt 10 + "*Assumed document point size for `preview-scale-from-face'. +If the point size (such as 11pt) of the document cannot be +determined from the document options itself, assume this size. +This is for matching screen font size and previews." + :group 'preview-appearance + :type + '(choice (const :tag "10pt" 10) + (const :tag "11pt" 11) + (const :tag "12pt" 12) + (number :tag "Other" :value 11.0)) +) + +(defcustom preview-document-pt-list '(preview-parsed-font-size + preview-auctex-font-size + preview-default-document-pt) + "*How `preview-document-pt' figures out the document size." + :group 'preview-appearance + :type + '(repeat (choice + ;; This is a bug: type function seems to match variables, too. + (restricted-sexp :match-alternatives (functionp) + :tag "Function" :value preview-auctex-font-size) + (variable :value preview-parsed-font-size) + (number :value 11)))) + +(defun preview-auctex-font-size () + "Calculate the default font size of document. +If packages, classes or styles were called with an option +like 10pt, size is taken from the first such option if you +had let your document be parsed by AucTeX." + (catch 'return (dolist (option (TeX-style-list)) + (if (string-match "\\`\\([0-9]+\\)pt\\'" option) + (throw 'return + (string-to-number + (match-string 1 option))))))) + +(defsubst preview-document-pt () + "Calculate the default font size of document." + (preview-hook-enquiry preview-document-pt-list)) + +(defun preview-scale-from-face () + "Calculate preview scale from `preview-reference-face'. +This calculates the scale of EPS images from a document assumed +to have a default font size given by function `preview-document-pt' +so that they match the reference face in height." + `(lambda nil + (/ ,(/ (preview-inherited-face-attribute 'preview-reference-face :height + 'default) 10.0) + (preview-document-pt)))) + +(defvar preview-min-spec) + +(defun preview-make-image (symbol) + "Make an image from a preview spec list. +The first spec that is workable (given the current setting of +`preview-min-spec') from the given symbol is used here. The +icon is cached in the property list of the symbol." + (let ((alist (get 'preview-min-alist symbol))) + (cdr (or + (assq preview-min-spec alist) + (car (put symbol 'preview-min-alist + (cons + (cons preview-min-spec + (preview-filter-specs + (symbol-value symbol))) + alist))))))) + +(defun preview-filter-specs (spec-list) + "Find the first of the fitting specs and make an image." + (let (image) + (while (and spec-list + (not (setq image + (catch 'preview-filter-specs + (preview-filter-specs-1 (car spec-list)))))) + (setq spec-list (cdr spec-list))) + image)) + +(defun preview-filter-specs-1 (specs) + (and specs + (if (get 'preview-filter-specs (car specs)) + (apply (get 'preview-filter-specs (car specs)) specs) + `(,(nth 0 specs) ,(nth 1 specs) + ,@(preview-filter-specs-1 (nthcdr 2 specs)))))) + +(put 'preview-filter-specs :min + #'(lambda (_keyword value &rest args) + (if (> value preview-min-spec) + (throw 'preview-filter-specs nil) + (preview-filter-specs-1 args)))) + +(put 'preview-filter-specs :file + #'(lambda (_keyword value &rest args) + `(:file ,(expand-file-name value (expand-file-name "images" + TeX-data-directory)) + ,@(preview-filter-specs-1 args)))) + +(defun preview-ascent-from-bb (bb) + "This calculates the image ascent from its bounding box. +The bounding box BB needs to be a 4-component vector of +numbers (can be float if available)." + ;; baseline is at 1in from the top of letter paper (11in), so it is + ;; at 10in from the bottom precisely, which is 720 in PostScript + ;; coordinates. If our bounding box has its bottom not above this + ;; line, and its top above, we can calculate a useful ascent value. + ;; If not, something is amiss. We just use 100 in that case. + + (let ((bottom (aref bb 1)) + (top (aref bb 3))) + (if (and (<= bottom 720) + (> top 720)) + (round (* 100.0 (/ (- top 720.0) (- top bottom)))) + 100))) + +(defface preview-face '((((background dark)) + (:background "dark slate gray")) + (t + (:background "beige"))) + "Face to use for the preview source." + :group 'preview-appearance) + +(defface preview-reference-face '((t nil)) + "Face consulted for colors and scale of active previews. +Fallback to :inherit and 'default implemented." + :group 'preview-appearance) + +(defcustom preview-auto-reveal + '(eval (preview-arrived-via (key-binding [left]) (key-binding [right]) + 'backward-char 'forward-char)) + "*Cause previews to open automatically when entered. +Possibilities are: +T autoopens, +NIL doesn't, +a symbol will have its value consulted if it exists, +defaulting to NIL if it doesn't. +An integer will specify a maximum cursor movement distance. +Larger movements won't open the preview. +A CONS-cell means to call a function for determining the value. +The CAR of the cell is the function to call which receives +the CDR of the CONS-cell in the rest of the arguments, while +point and current buffer point to the position in question. +All of the options show reasonable defaults." + :group 'preview-appearance + :type '(choice (const :tag "Off" nil) + (const :tag "On" t) + (symbol :tag "Indirect variable" :value reveal-mode) + (integer :tag "Maximum distance" :value 1) + (cons :tag "Function call" + :value (eval (preview-arrived-via + (key-binding [left]) + (key-binding [right]))) + function (list :tag "Argument list" + (repeat :inline t sexp))))) + +(defun preview-auto-reveal-p (mode distance) + "Decide whether to auto-reveal. +Returns non-NIL if region should be auto-opened. +See `preview-auto-reveal' for definitions of MODE, which gets +set to `preview-auto-reveal'. DISTANCE specifies the movement +distance with which point has been reached in case it has been +a movement starting in the current buffer." + (cond ((symbolp mode) + (and (boundp mode) + (symbol-value mode))) + ((integerp mode) + (and distance (/= 0 distance) (<= (abs distance) mode))) + ((consp mode) + (apply (car mode) (cdr mode))) + (t mode))) + +(defun preview-arrived-via (&rest list) + "Indicate auto-opening. +Returns non-NIL if called by one of the commands in LIST." + (memq this-command list)) + +(defcustom preview-equality-transforms '(identity + preview-canonical-spaces) +"Transformation functions for region changes. +These functions are tried in turn on the strings from the +regions of a preview to decide whether a preview is to be considered +changed. If any transform leads to equal results, the preview is +considered unchanged." + :group 'preview-appearance + :type '(repeat function)) + +(defun preview-relaxed-string= (&rest args) +"Check for functional equality of arguments. +The arguments ARGS are checked for equality by using +`preview-equality-transforms' on them until it is exhausted +or one transform returns equality." + (let ((lst preview-equality-transforms)) + (while (and lst (not (apply #'string= (mapcar (car lst) args)))) + (setq lst (cdr lst))) + lst)) + +(defun preview-canonical-spaces (arg) + "Convert ARG into canonical form. +Removes comments and collapses white space, except for multiple newlines." + (let (pos) + (while (setq pos (string-match "\\s<.*[\n\r][ \t]*" arg pos)) + (setq arg (replace-match "" t t arg 0))) + (while (setq pos (string-match "[ \t]*\\(\\([ \t]\\)\\|[\n\r][ \t]*\\)" + arg pos)) + (setq arg (replace-match (if (match-beginning 2) " " "\n") t t arg 0) + pos (1+ pos))) + (while (setq pos (string-match "\n+" arg pos)) + (if (string= "\n" (match-string 0 arg)) + (setq arg (replace-match " " t t arg 0) + pos (1+ pos)) + (setq pos (match-end 0))))) + arg) + +(defun preview-regenerate (ovr) + "Pass the modified region in OVR again through LaTeX." + (let ((begin (overlay-start ovr)) + (end (overlay-end ovr))) + (with-current-buffer (overlay-buffer ovr) + (preview-delete ovr) + (preview-region begin end)))) + +(defcustom preview-inner-environments '("Bmatrix" "Vmatrix" "aligned" + "array" "bmatrix" "cases" + "gathered" "matrix" "pmatrix" + "smallmatrix" "split" + "subarray" "vmatrix") + "Environments not to be previewed on their own." + :group 'preview-latex + :type '(repeat string)) + + +(defun preview-next-border (backwards) + "Search for the next interesting border for `preview-at-point'. +Searches backwards if BACKWARDS is non-nil." + (let (history preview-state (pt (point))) + (catch 'exit + (while + (null + (memq + (setq preview-state + (if backwards + (if (> (setq pt + (previous-single-char-property-change + pt 'preview-state)) (point-min)) + (get-char-property (1- pt) 'preview-state) + (throw 'exit (or history (point-min)))) + (if (< (setq pt + (next-single-char-property-change + pt 'preview-state)) (point-max)) + (get-char-property pt 'preview-state) + (throw 'exit (or history (point-max)))))) + '(active inactive))) + (setq history (and (not preview-state) pt))) + (or history pt)))) + +(defun preview-at-point () + "Do the appropriate preview thing at point. +If point is positioned on or inside of an unmodified preview area, +its visibility is toggled. + +If not, the surroundings are run through preview. The +surroundings don't extend into unmodified previews or past +contiguous previews invalidated by modifications. + +Overriding any other action, if a region is +active (`transient-mark-mode' or `zmacs-regions'), it is run +through `preview-region'." + (interactive) + (if (TeX-active-mark) + (preview-region (region-beginning) (region-end)) + (catch 'exit + (dolist (ovr (overlays-in (max (point-min) (1- (point))) + (min (point-max) (1+ (point))))) + (let ((preview-state (overlay-get ovr 'preview-state))) + (when preview-state + (unless (eq preview-state 'disabled) + (preview-toggle ovr 'toggle (selected-window)) + (throw 'exit t))))) + (preview-region (preview-next-border t) + (preview-next-border nil))))) + +(defun preview-disabled-string (ov) + "Generate a before-string for disabled preview overlay OV." + (concat (preview-make-clickable + (overlay-get ov 'preview-map) + preview-icon + "\ +%s regenerates preview +%s more options" + `(lambda() (interactive) (preview-regenerate ,ov))) +;; icon on separate line only for stuff starting on its own line + (with-current-buffer (overlay-buffer ov) + (save-excursion + (save-restriction + (widen) + (goto-char (overlay-start ov)) + (if (bolp) "\n" "")))))) + +(defun preview-disable (ovr) + "Change overlay behaviour of OVR after source edits." + (overlay-put ovr 'queued nil) + (preview-remove-urgentization ovr) + (overlay-put ovr 'preview-image nil) + (overlay-put ovr 'timestamp nil) + (setcdr (overlay-get ovr 'strings) (preview-disabled-string ovr)) + (preview-toggle ovr) + (overlay-put ovr 'preview-state 'disabled) + (dolist (filename (overlay-get ovr 'filenames)) + (condition-case nil + (preview-delete-file filename) + (file-error nil)) + (overlay-put ovr 'filenames nil))) + +(defun preview-delete (ovr &rest ignored) + "Delete preview overlay OVR, taking any associated file along. +IGNORED arguments are ignored, making this function usable as +a hook in some cases" + (let ((filenames (overlay-get ovr 'filenames))) + (overlay-put ovr 'filenames nil) + (delete-overlay ovr) + (dolist (filename filenames) + (condition-case nil + (preview-delete-file filename) + (file-error nil))))) + +(defun preview-clearout (&optional start end timestamp) + "Clear out all previews in the current region. +When called interactively, the current region is used. +Non-interactively, the region between START and END is +affected. Those two values default to the borders of +the entire buffer. If TIMESTAMP is non-nil, previews +with a `timestamp' property of it are kept." + (interactive "r") + (dolist (ov (overlays-in (or start (point-min)) + (or end (point-max)))) + (and (overlay-get ov 'preview-state) + (not (and timestamp + (equal timestamp (overlay-get ov 'timestamp)))) + (preview-delete ov)))) + +(defun preview-clearout-buffer (&optional buffer) + "Clearout BUFFER from previews, current buffer if nil." + (interactive) + (if buffer + (with-current-buffer buffer (preview-clearout)) + (preview-clearout))) + +(defun preview-clearout-section () + "Clearout previews from LaTeX section." + (interactive) + (save-excursion + (LaTeX-mark-section) + (preview-clearout (region-beginning) (region-end)))) + +(defun preview-clearout-at-point () + "Clearout any preview at point." + (interactive) + (preview-clearout (max (point-min) (1- (point))) + (min (point-max) (1+ (point))))) + +(defun preview-walk-document (func) + "Cycle through all buffers belonging to current document. +Each buffer having the same master file as the current file +has FUNC called with its current buffer being set to it." + (let* ((buffers (buffer-list)) + (master (expand-file-name (TeX-master-file t))) + (default-buffers (list (current-buffer) + (find-buffer-visiting master)))) + (while buffers + (with-current-buffer (pop buffers) + (when + (or (memq (current-buffer) default-buffers) + (and (memq major-mode '(plain-tex-mode latex-mode)) + (or (stringp TeX-master) + (eq TeX-master t)) + (string= (expand-file-name (TeX-master-file t)) + master))) + (funcall func)))))) + +(defun preview-clearout-document () + "Clear out all previews in current document. +The document consists of all buffers that have the same master file +as the current buffer. This makes the current document lose +all previews." + (interactive) + (preview-walk-document #'preview-clearout-buffer)) + +(defun preview-kill-buffer-cleanup (&optional buf) + "This is a cleanup function just for use in hooks. +Cleans BUF or current buffer. The difference to +`preview-clearout-buffer' is that previews +associated with the last buffer modification time are +kept." + (with-current-buffer (or buf (current-buffer)) + (save-restriction + (widen) + (preview-clearout (point-min) (point-max) (visited-file-modtime))))) + +(add-hook 'kill-buffer-hook #'preview-kill-buffer-cleanup) +(add-hook 'before-revert-hook #'preview-kill-buffer-cleanup) + +(defvar preview-last-counter) + +(defun preview-extract-counters (ctr) + (setq preview-last-counter + (prog1 (copy-sequence ctr) + (dolist (elt preview-last-counter) + (setq ctr (delete elt ctr))))) + (apply #'concat ctr)) + +(defun desktop-buffer-preview-misc-data (&rest ignored) + "Hook function that extracts previews for persistent sessions." + (unless (buffer-modified-p) + (setq preview-last-counter nil) + (save-restriction + (widen) + (let (save-info (timestamp (visited-file-modtime))) + (dolist (ov (sort (overlays-in (point-min) (point-max)) + (lambda (x y) (< (overlay-start x) + (overlay-start y))))) + (when (and (memq (overlay-get ov 'preview-state) '(active inactive)) + (null (overlay-get ov 'queued)) + (cdr (overlay-get ov 'preview-image))) + (push (preview-dissect ov timestamp) save-info))) + (and save-info + (cons 'preview (cons timestamp (nreverse save-info)))))))) + +(eval-after-load "desktop" + '(add-hook + 'desktop-buffer-misc-functions + #'desktop-buffer-preview-misc-data)) + +(defvar preview-temp-dirs nil +"List of top level temporary directories in use from preview. +Any directory not in this list will be cleared out by preview +on first use.") + +(defun preview-dissect (ov timestamp) + "Extract all persistent data from OV and TIMESTAMP it." + (let ((filenames (butlast (nth 0 (overlay-get ov 'filenames))))) + (overlay-put ov 'timestamp timestamp) + (list (overlay-start ov) + (overlay-end ov) + (cdr (overlay-get ov 'preview-image)) + filenames + (let ((ctr (overlay-get ov 'preview-counters))) + (and ctr + (cons (preview-extract-counters (car ctr)) + (preview-extract-counters (cdr ctr)))))))) + +(defun preview-buffer-restore-internal (buffer-misc) + "Restore previews from BUFFER-MISC if proper. +Remove them if they have expired." + (let ((timestamp (visited-file-modtime)) tempdirlist files) + (setq preview-parsed-counters nil) + (when (eq 'preview (pop buffer-misc)) + (preview-get-geometry) + (if (equal (pop buffer-misc) timestamp) + (dolist (ovdata buffer-misc) + (setq tempdirlist + (apply #'preview-reinstate-preview tempdirlist + timestamp ovdata))) + (dolist (ovdata buffer-misc) + (setq files (nth 3 ovdata)) + (condition-case nil + (delete-file (nth 0 files)) + (file-error nil)) + (unless (member (nth 1 files) tempdirlist) + (push (nth 1 files) tempdirlist))) + (dolist (dir tempdirlist) + (condition-case nil + (delete-directory dir) + (file-error nil))))))) + + +(defun preview-buffer-restore (buffer-misc) + "At end of desktop load, reinstate previews. +This delay is so that minor modes changing buffer positions +\(like `x-symbol-mode' does) will not wreak havoc. +BUFFER-MISC is the appropriate data to be used." + (add-hook 'desktop-delay-hook `(lambda () + (with-current-buffer ,(current-buffer) + (preview-buffer-restore-internal + ',buffer-misc))))) + +(defun desktop-buffer-preview (file-name _buffer-name misc) + "Hook function for restoring persistent previews into a buffer." + (when (and file-name (file-readable-p file-name)) + (let ((buf (find-file-noselect file-name))) + (if (eq (car misc) 'preview) + (with-current-buffer buf + (preview-buffer-restore misc) + buf) + buf)))) + +(eval-after-load "desktop" + '(if (boundp 'desktop-buffer-mode-handlers) + (add-to-list 'desktop-buffer-mode-handlers + '(latex-mode . desktop-buffer-preview)) + (add-hook 'desktop-buffer-handlers '(lambda () + (desktop-buffer-preview + desktop-buffer-file-name + desktop-buffer-name + desktop-buffer-misc))))) + +(defcustom preview-auto-cache-preamble 'ask + "*Whether to generate a preamble cache format automatically. +Possible values are nil, t, and `ask'." + :group 'preview-latex + :type '(choice (const :tag "Cache" t) + (const :tag "Don't cache" nil) + (const :tag "Ask" ask))) + +(defvar preview-dumped-alist nil + "Alist of dumped masters. +The elements are (NAME . ASSOC). NAME is the master file name +\(without extension), ASSOC is what to do with regard to this +format. Possible values: NIL means no format is available +and none should be generated. T means no format is available, +it should be generated on demand. If the value is a cons cell, +the CAR of the cons cell is the command with which the format +has been generated, and the CDR is some Emacs-flavor specific +value used for maintaining a watch on possible changes of the +preamble.") + +(defun preview-cleanout-tempfiles () + "Clean out all directories and files with non-persistent data. +This is called as a hook when exiting Emacs." + (mapc #'preview-kill-buffer-cleanup (buffer-list)) + (mapc #'preview-format-kill preview-dumped-alist)) + +(defun preview-inactive-string (ov) + "Generate before-string for an inactive preview overlay OV. +This is for overlays where the source text has been clicked +visible. For efficiency reasons it is expected that the buffer +is already selected and unnarrowed." + (concat + (preview-make-clickable (overlay-get ov 'preview-map) + preview-icon + "\ +%s redisplays preview +%s more options") +;; icon on separate line only for stuff starting on its own line + (with-current-buffer (overlay-buffer ov) + (save-excursion + (save-restriction + (widen) + (goto-char (overlay-start ov)) + (if (bolp) "\n" "")))))) + +(defun preview-dvipng-place-all () + "Place all images dvipng has created, if any. +Deletes the dvi file when finished." + (let (filename queued oldfiles snippet) + (dolist (ov (prog1 preview-gs-queue (setq preview-gs-queue nil))) + (when (and (setq queued (overlay-get ov 'queued)) + (setq snippet (aref (overlay-get ov 'queued) 2)) + (setq filename (preview-make-filename + (format "prev%03d.%s" + snippet preview-dvipng-image-type) + TeX-active-tempdir))) + (if (file-exists-p (car filename)) + (progn + (overlay-put ov 'filenames (list filename)) + (preview-replace-active-icon + ov + (preview-create-icon (car filename) + preview-dvipng-image-type + (preview-ascent-from-bb + (aref queued 0)) + (aref preview-colors 2))) + (overlay-put ov 'queued nil)) + (push filename oldfiles) + (overlay-put ov 'filenames nil) + (push ov preview-gs-queue)))) + (if (setq preview-gs-queue (nreverse preview-gs-queue)) + (progn + (preview-start-dvips preview-fast-conversion) + (setq TeX-sentinel-function (lambda (process command) + (preview-gs-dvips-sentinel + process + command + t))) + (dolist (ov preview-gs-queue) + (setq snippet (aref (overlay-get ov 'queued) 2)) + (overlay-put ov 'filenames + (list + (preview-make-filename + (or preview-ps-file + (format "preview.%03d" snippet)) + TeX-active-tempdir)))) + (while (setq filename (pop oldfiles)) + (condition-case nil + (preview-delete-file filename) + (file-error nil)))) + (condition-case nil + (let ((gsfile preview-gs-file)) + (delete-file + (with-current-buffer TeX-command-buffer + (funcall (car gsfile) "dvi")))) + (file-error nil))))) + +(defun preview-active-string (ov) + "Generate before-string for active image overlay OV." + (preview-make-clickable + (overlay-get ov 'preview-map) + (car (overlay-get ov 'preview-image)) + "%s opens text +%s more options")) + +(defun preview-make-filename (file tempdir) + "Generate a preview filename from FILE and TEMPDIR. +Filenames consist of a CONS-cell with absolute file name as CAR +and TEMPDIR as CDR. TEMPDIR is a copy of `TeX-active-tempdir' +with the directory name, the reference count and its top directory +name elements. If FILE is already in that form, the file name itself +gets converted into a CONS-cell with a name and a reference count." + (if (consp file) + (progn + (if (consp (car file)) + (setcdr (car file) (1+ (cdr (car file)))) + (setcar file (cons (car file) 1))) + file) + (setcar (nthcdr 2 tempdir) (1+ (nth 2 tempdir))) + (cons (expand-file-name file (nth 0 tempdir)) + tempdir))) + +(defun preview-attach-filename (attached file) + "Attaches the absolute file name ATTACHED to FILE." + (if (listp (caar file)) + (setcar (car file) (cons attached (caar file))) + (setcar (car file) (list attached (caar file)))) + file) + +(defun preview-delete-file (file) + "Delete a preview FILE. +See `preview-make-filename' for a description of the data +structure. If the containing directory becomes empty, +it gets deleted as well." + (let ((filename + (if (consp (car file)) + (and (zerop + (setcdr (car file) (1- (cdr (car file))))) + (car (car file))) + (car file)))) + (if filename + (unwind-protect + (if (listp filename) + (dolist (elt filename) (delete-file elt)) + (delete-file filename)) + (let ((tempdir (cdr file))) + (when tempdir + (if (> (nth 2 tempdir) 1) + (setcar (nthcdr 2 tempdir) (1- (nth 2 tempdir))) + (setcdr file nil) + (delete-directory (nth 0 tempdir))))))))) + +(defvar preview-buffer-has-counters nil) +(make-variable-buffer-local 'preview-buffer-has-counters) + +(defun preview-place-preview (snippet start end + box counters tempdir place-opts) + "Generate and place an overlay preview image. +This generates the filename for the preview +snippet SNIPPET in the current buffer, and uses it for the +region between START and END. BOX is an optional preparsed +TeX bounding BOX passed on to the `place' hook. +COUNTERS is the info about saved counter structures. +TEMPDIR is a copy of `TeX-active-tempdir'. +PLACE-OPTS are additional arguments passed into +`preview-parse-messages'. Returns +a list with additional info from the placement hook. +Those lists get concatenated together and get passed +to the close hook." + (preview-clearout start end tempdir) + (let ((ov (make-overlay start end nil nil nil))) + (when (fboundp 'TeX-overlay-prioritize) + (overlay-put ov 'priority (TeX-overlay-prioritize start end))) + (overlay-put ov 'preview-map + (preview-make-clickable + nil nil nil + `(lambda(event) (interactive "e") + (preview-toggle ,ov 'toggle event)) + `(lambda(event) (interactive "e") + (preview-context-menu ,ov event)))) + (overlay-put ov 'timestamp tempdir) + (when (cdr counters) + (overlay-put ov 'preview-counters counters) + (setq preview-buffer-has-counters t)) + (prog1 (apply #'preview-call-hook 'place ov snippet box + place-opts) + (overlay-put ov 'strings + (list (preview-active-string ov))) + (preview-toggle ov t)))) + +;; The following is a brutal hack. It relies on `begin' being let to +;; the start of the interesting area when TeX-region-create is being +;; called. + +(defun preview-counter-find (begin) + "Fetch the next preceding or next preview-counters property. +Factored out because of compatibility macros XEmacs would +not use in advice." + ;; The following two lines are bug workaround for Emacs < 22.1. + (if (markerp begin) + (setq begin (marker-position begin))) + (or (car (get-char-property begin 'preview-counters)) + (cdr (get-char-property (max (point-min) + (1- begin)) + 'preview-counters)) + (cdr (get-char-property + (max (point-min) + (1- (previous-single-char-property-change + begin + 'preview-counters))) + 'preview-counters)) + (car (get-char-property + (next-single-char-property-change begin 'preview-counters) + 'preview-counters)))) + +(defadvice TeX-region-create (around preview-counters) + "Write out counter information to region." + (let ((TeX-region-extra + (concat + (and (boundp 'begin) + preview-buffer-has-counters + (mapconcat + #'identity + (cons + "" + (preview-counter-find (symbol-value 'begin))) + "\\setcounter")) + TeX-region-extra))) + ad-do-it)) + +(defun preview-reinstate-preview (tempdirlist timestamp start end + image filename &optional counters) + "Reinstate a single preview. +This gets passed TEMPDIRLIST, a list consisting of the kind +of entries used in `TeX-active-tempdir', and TIMESTAMP, the +time stamp under which the file got read in. It returns an augmented +list. START and END give the buffer location where the preview +is to be situated, IMAGE the image to place there, and FILENAME +the file to use: a triple consisting of filename, its temp directory +and the corresponding topdir. COUNTERS is saved counter information, +if any." + (when + (or (null filename) (file-readable-p (car filename))) + (when filename + (unless (equal (nth 1 filename) (car TeX-active-tempdir)) + (setq TeX-active-tempdir + (or (assoc (nth 1 filename) tempdirlist) + (car (push (append (cdr filename) (list 0)) + tempdirlist)))) + (setcar (cdr TeX-active-tempdir) + (car (or (member (nth 1 TeX-active-tempdir) + preview-temp-dirs) + (progn + (add-hook 'kill-emacs-hook + #'preview-cleanout-tempfiles t) + (push (nth 1 TeX-active-tempdir) + preview-temp-dirs)))))) + (setcar (nthcdr 2 TeX-active-tempdir) + (1+ (nth 2 TeX-active-tempdir))) + (setcdr filename TeX-active-tempdir) + (setq filename (list filename))) + (let ((ov (make-overlay start end nil nil nil))) + (when (fboundp 'TeX-overlay-prioritize) + (overlay-put ov 'priority (TeX-overlay-prioritize start end))) + (overlay-put ov 'preview-map + (preview-make-clickable + nil nil nil + `(lambda(event) (interactive "e") + (preview-toggle ,ov 'toggle event)) + `(lambda(event) (interactive "e") + (preview-context-menu ,ov event)))) + (when counters + (overlay-put + ov 'preview-counters + (cons + (mapcar #'cdr + (if (string= (car counters) "") + preview-parsed-counters + (setq preview-parsed-counters + (preview-parse-counters (car counters))))) + (mapcar #'cdr + (if (string= (cdr counters) "") + preview-parsed-counters + (setq preview-parsed-counters + (preview-parse-counters (cdr counters))))))) + (setq preview-buffer-has-counters t)) + (overlay-put ov 'filenames filename) + (overlay-put ov 'preview-image (cons (preview-import-image image) + image)) + (overlay-put ov 'strings + (list (preview-active-string ov))) + (overlay-put ov 'timestamp timestamp) + (preview-toggle ov t))) + tempdirlist) + +(defun preview-back-command (&optional nocomplex) + "Move backward a TeX token. +If NOCOMPLEX is set, only basic tokens and no argument sequences +will be skipped over backwards." + (let ((oldpos (point)) oldpoint) + (condition-case nil + (or (search-backward-regexp "\\(\\$\\$?\ +\\|\\\\[^a-zA-Z@]\ +\\|\\\\[a-zA-Z@]+\ +\\|\\\\begin[ \t]*{[^}]+}\ +\\)\\=" (line-beginning-position) t) + nocomplex + (if (eq ?\) (char-syntax (char-before))) + (while + (progn + (setq oldpoint (point)) + (backward-sexp) + (and (not (eq oldpoint (point))) + (eq ?\( (char-syntax (char-after)))))) + (backward-char))) + (error (goto-char oldpos))))) + +(defcustom preview-required-option-list '("active" "tightpage" "auctex" + (preview-preserve-counters + "counters")) + "Specifies required options passed to the preview package. +These are passed regardless of whether there is an explicit +\\usepackage of that package present." + :group 'preview-latex + :type preview-expandable-string) + +(defcustom preview-preserve-counters nil + "Try preserving counters for partial runs if set." + :group 'preview-latex + :type 'boolean) + +(defcustom preview-default-option-list '("displaymath" "floats" + "graphics" "textmath" "sections" + "footnotes") + "*Specifies default options to pass to preview package. +These options are only used when the LaTeX document in question does +not itself load the preview package, namely when you use preview +on a document not configured for preview. \"auctex\", \"active\", +\"dvips\" and \"delayed\" need not be specified here." + :group 'preview-latex + :type '(list (set :inline t :tag "Options known to work" + :format "%t:\n%v%h" :doc + "The above options are all the useful ones +at the time of the release of this package. +You should not need \"Other options\" unless you +upgraded to a fancier version of just the LaTeX style. +Please also note that `psfixbb' fails to have an effect if +`preview-fast-conversion' or `preview-prefer-TeX-bb' +are selected." + (const "displaymath") + (const "floats") + (const "graphics") + (const "textmath") + (const "sections") + (const "footnotes") + (const "showlabels") + (const "psfixbb")) + (set :tag "Expert options" :inline t + :format "%t:\n%v%h" :doc + "Expert options should not be enabled permanently." + (const "noconfig") + (const "showbox") + (const "tracingall")) + (repeat :inline t :tag "Other options" (string)))) + +(defcustom preview-default-preamble + '("\\RequirePackage[" ("," . preview-default-option-list) + "]{preview}[2004/11/05]") + "*Specifies default preamble code to add to a LaTeX document. +If the document does not itself load the preview package, that is, +when you use preview on a document not configured for preview, this +list of LaTeX commands is inserted just before \\begin{document}." + :group 'preview-latex + :type preview-expandable-string) + +(defcustom preview-LaTeX-command '("%`%l \"\\nonstopmode\\nofiles\ +\\PassOptionsToPackage{" ("," . preview-required-option-list) "}{preview}\ +\\AtBeginDocument{\\ifx\\ifPreview\\undefined" +preview-default-preamble "\\fi}\"%' %t") + "*Command used for starting a preview. +See description of `TeX-command-list' for details." + :group 'preview-latex + :type preview-expandable-string) + +(defun preview-goto-info-page () + "Read documentation for preview-latex in the info system." + (interactive) + (info "(preview-latex)")) + +(eval-after-load 'info '(add-to-list 'Info-file-list-for-emacs + '("preview" . "preview-latex"))) + +(defvar preview-map + (let ((map (make-sparse-keymap))) + (define-key map "\C-p" #'preview-at-point) + (define-key map "\C-r" #'preview-region) + (define-key map "\C-b" #'preview-buffer) + (define-key map "\C-d" #'preview-document) + (define-key map "\C-f" #'preview-cache-preamble) + (define-key map "\C-c\C-f" #'preview-cache-preamble-off) + (define-key map "\C-i" #'preview-goto-info-page) + ;; (define-key map "\C-q" #'preview-paragraph) + (define-key map "\C-e" #'preview-environment) + (define-key map "\C-s" #'preview-section) + (define-key map "\C-w" #'preview-copy-region-as-mml) + (define-key map "\C-c\C-p" #'preview-clearout-at-point) + (define-key map "\C-c\C-r" #'preview-clearout) + (define-key map "\C-c\C-s" #'preview-clearout-section) + (define-key map "\C-c\C-b" #'preview-clearout-buffer) + (define-key map "\C-c\C-d" #'preview-clearout-document) + map)) + +(defun preview-copy-text (ov) + "Copy the text of OV into the kill buffer." + (with-current-buffer (overlay-buffer ov) + (copy-region-as-kill (overlay-start ov) (overlay-end ov)))) + +(defun preview-copy-mml (ov) + "Copy an MML representation of OV into the kill buffer. +This can be used to send inline images in mail and news when +using MML mode." + (when (catch 'badcolor + (let ((str (car (preview-format-mml ov)))) + (if str + (if (eq last-command 'kill-region) + (kill-append str nil) + (kill-new str)) + (error "No image file available"))) + nil) + (let (preview-transparent-border) + (preview-regenerate ov)))) + +(defun preview-copy-region-as-mml (start end) + (interactive "r") + (when (catch 'badcolor + (let (str lst dont-ask) + (dolist (ov (overlays-in start end)) + (when (setq str (preview-format-mml ov dont-ask)) + (setq dont-ask (cdr str)) + (and + (>= (overlay-start ov) start) + (<= (overlay-end ov) end) + (push (list (- (overlay-start ov) start) + (- (overlay-end ov) start) + (car str)) lst)))) + (setq str (buffer-substring start end)) + (dolist (elt (nreverse (sort lst #'car-less-than-car))) + (setq str (concat (substring str 0 (nth 0 elt)) + (nth 2 elt) + (substring str (nth 1 elt))))) + (if (eq last-command 'kill-region) + (kill-append str nil) + (kill-new str))) + nil) + (let (preview-transparent-border) + (preview-region start end)))) + +(autoload 'mailcap-extension-to-mime "mailcap") + +(defun preview-format-mml (ov &optional dont-ask) + "Return an MML representation of OV as string. +This can be used to send inline images in mail and news when +using MML mode. If there is nothing current available, +NIL is returned. If the image has a colored border and the +user wants it removed when asked (unless DONT-ASK is set), +'badcolor is thrown a t. The MML is returned in the car of the +result, DONT-ASK in the cdr." + (and (memq (overlay-get ov 'preview-state) '(active inactive)) + (not (overlay-get ov 'queued)) + (let* ((text (with-current-buffer (overlay-buffer ov) + (buffer-substring (overlay-start ov) + (overlay-end ov)))) + (image (cdr (overlay-get ov 'preview-image))) + file type) + (cond ((consp image) + (and (not dont-ask) + (nth 3 image) + (if (y-or-n-p "Replace colored borders? ") + (throw 'badcolor t) + (setq dont-ask t))) + (setq file (car (car (last (overlay-get ov 'filenames)))) + type (mailcap-extension-to-mime + (file-name-extension file))) + (cons + (format "<#part %s +description=\"%s\" +filename=%s> +<#/part>" + (if type + (format "type=\"%s\" disposition=inline" type) + "disposition=attachment") + (if (string-match "[\n\"]" text) + "preview-latex image" + text) + (if (string-match "[ \n<>]" file) + (concat "\"" file "\"") + file)) + dont-ask)) + ((stringp image) + (cons image dont-ask)))))) + +(defun preview-active-contents (ov) + "Check whether we have a valid image associated with OV." + (and (memq (overlay-get ov 'preview-state) '(active inactive)) t)) + +(defun preview-context-menu (ov ev) + "Pop up a menu for OV at position EV." + (popup-menu + `("Preview" + ["Toggle" (preview-toggle ,ov 'toggle ',ev) + (preview-active-contents ,ov)] + ["Regenerate" (preview-regenerate ,ov)] + ["Remove" (preview-delete ,ov)] + ["Copy text" (preview-copy-text ,ov)] + ["Copy MIME" (preview-copy-mml ,ov) + (preview-active-contents ,ov)]) + ev)) + +(defvar preview-TeX-style-dir) + +(defun preview-TeX-style-cooked () + "Return `preview-TeX-style-dir' in cooked form. +This will be fine for prepending to a `TEXINPUT' style +environment variable, including an initial `.' at the front." + (if (or (zerop (length preview-TeX-style-dir)) + (member (substring preview-TeX-style-dir -1) '(";" ":"))) + preview-TeX-style-dir + (let ((sep + (cond + ((stringp TeX-kpathsea-path-delimiter) + TeX-kpathsea-path-delimiter) + ((string-match + "\\`.[:]" + (if (file-name-absolute-p preview-TeX-style-dir) + preview-TeX-style-dir + (expand-file-name preview-TeX-style-dir))) + ";") + (t ":")))) + (concat "." sep preview-TeX-style-dir sep)))) + +(defun preview-set-texinputs (&optional remove) + "Add `preview-TeX-style-dir' into `TEXINPUTS' variables. +With prefix argument REMOVE, remove it again." + (interactive "P") + (let ((case-fold-search nil) + (preview-TeX-style-dir (preview-TeX-style-cooked)) + pattern) + (if remove + (progn + (setq pattern (concat "\\`\\(TEXINPUTS[^=]*\\)=\\(.*\\)" + (regexp-quote preview-TeX-style-dir))) + (dolist (env (copy-sequence process-environment)) + (if (string-match pattern env) + (setenv (match-string 1 env) + (and (or (< (match-beginning 2) (match-end 2)) + (< (match-end 0) (length env))) + (concat (match-string 2 env) + (substring env (match-end 0)))))))) + (setq pattern (regexp-quote preview-TeX-style-dir)) + (dolist (env (cons "TEXINPUTS=" (copy-sequence process-environment))) + (if (string-match "\\`\\(TEXINPUTS[^=]*\\)=" env) + (unless (string-match pattern env) + (setenv (match-string 1 env) + (concat preview-TeX-style-dir + (substring env (match-end 0)))))))))) + +(defcustom preview-TeX-style-dir nil + "This variable contains the location of uninstalled TeX styles. +If this is nil, the preview styles are considered to be part of +the installed TeX system. + +Otherwise, it can either just specify an absolute directory, or +it can be a complete TEXINPUTS specification. If it is the +latter, it has to be followed by the character with which +kpathsea separates path components, either `:' on Unix-like +systems, or `;' on Windows-like systems. And it should be +preceded with .: or .; accordingly in order to have . first in +the search path. + +The `TEXINPUT' environment type variables will get this prepended +at load time calling \\[preview-set-texinputs] to reflect this. +You can permanently install the style files using +\\[preview-install-styles]. + +Don't set this variable other than with customize so that its +changes get properly reflected in the environment." + :group 'preview-latex + :set (lambda (var value) + (and (boundp var) + (symbol-value var) + (preview-set-texinputs t)) + (set var value) + (and (symbol-value var) + (preview-set-texinputs))) + :type '(choice (const :tag "Installed" nil) + (string :tag "Style directory or TEXINPUTS path"))) + +;;;###autoload +(defun preview-install-styles (dir &optional force-overwrite + force-save) + "Installs the TeX style files into a permanent location. +This must be in the TeX search path. If FORCE-OVERWRITE is greater +than 1, files will get overwritten without query, if it is less +than 1 or nil, the operation will fail. The default of 1 for interactive +use will query. + +Similarly FORCE-SAVE can be used for saving +`preview-TeX-style-dir' to record the fact that the uninstalled +files are no longer needed in the search path." + (interactive "DPermanent location for preview TeX styles +pp") + (unless preview-TeX-style-dir + (error "Styles are already installed")) + (dolist (file (or + (condition-case nil + (directory-files + (progn + (string-match + "\\`\\(\\.[:;]\\)?\\(.*?\\)\\([:;]\\)?\\'" + preview-TeX-style-dir) + (match-string 2 preview-TeX-style-dir)) + t "\\.\\(sty\\|def\\|cfg\\)\\'") + (error nil)) + (error "Can't find files to install"))) + (copy-file file dir (cond ((eq force-overwrite 1) 1) + ((numberp force-overwrite) + (> force-overwrite 1)) + (t force-overwrite)))) + (if (cond ((eq force-save 1) + (y-or-n-p "Stop using non-installed styles permanently ")) + ((numberp force-save) + (> force-save 1)) + (t force-save)) + (customize-save-variable 'preview-TeX-style-dir nil) + (customize-set-variable 'preview-TeX-style-dir nil))) + +;;;###autoload +(defun LaTeX-preview-setup () + "Hook function for embedding the preview package into AUCTeX. +This is called by `LaTeX-mode-hook' and changes AUCTeX variables +to add the preview functionality." + ;; This has to be done only once. + (unless (and (boundp 'LaTeX-mode-hook) + (memq #'preview-mode-setup LaTeX-mode-hook)) + (remove-hook 'LaTeX-mode-hook #'LaTeX-preview-setup) + (add-hook 'LaTeX-mode-hook #'preview-mode-setup) + (define-key LaTeX-mode-map "\C-c\C-p" preview-map) + (easy-menu-define preview-menu LaTeX-mode-map + "This is the menu for preview-latex." + '("Preview" + "Generate previews" + ["(or toggle) at point" preview-at-point] + ["for environment" preview-environment] + ["for section" preview-section] + ["for region" preview-region (preview-mark-active)] + ["for buffer" preview-buffer] + ["for document" preview-document] + "---" + "Remove previews" + ["at point" preview-clearout-at-point] + ["from section" preview-clearout-section] + ["from region" preview-clearout (preview-mark-active)] + ["from buffer" preview-clearout-buffer] + ["from document" preview-clearout-document] + "---" + "Turn preamble cache" + ["on" preview-cache-preamble] + ["off" preview-cache-preamble-off] + "---" + ("Customize" + ["Browse options" + (customize-group 'preview)] + ["Extend this menu" + (easy-menu-add-item + nil '("Preview") + (customize-menu-create 'preview))]) + ["Read documentation" preview-goto-info-page] + ["Report Bug" preview-report-bug])) + (if (eq major-mode 'latex-mode) + (preview-mode-setup)) + (if (boundp 'desktop-buffer-misc) + (preview-buffer-restore desktop-buffer-misc)))) + +(defun preview-clean-subdir (dir) + "Cleans out a temporary DIR with preview image files." + (condition-case err + (progn + (mapc #'delete-file + (directory-files dir t "\\`pr" t)) + (delete-directory dir)) + (error (message "Deletion of `%s' failed: %s" dir + (error-message-string err))))) + +(defun preview-clean-topdir (topdir) + "Cleans out TOPDIR from temporary directories. +This does not erase the directory itself since its permissions +might be needed for colloborative work on common files." + (mapc #'preview-clean-subdir + (condition-case nil + (directory-files topdir t "\\`tmp" t) + (file-error nil)))) + +(defun preview-create-subdirectory () + "Create a temporary subdir for the current TeX process. +If necessary, generates a fitting top +directory or cleans out an existing one (if not yet +visited in this session), then returns the name of +the created subdirectory relative to the master directory, +in shell-quoted form. `TeX-active-tempdir' is +set to the corresponding TEMPDIR descriptor as described +in `preview-make-filename'. The directory is registered +in `preview-temp-dirs' in order not to be cleaned out +later while in use." + (let ((topdir (expand-file-name (TeX-active-master "prv")))) + (if (file-directory-p topdir) + (unless (member topdir preview-temp-dirs) + ;; Cleans out the top preview directory by + ;; removing subdirs possibly left from a previous session. + (preview-clean-topdir topdir) + (push topdir preview-temp-dirs)) + (make-directory topdir) + (add-to-list 'preview-temp-dirs topdir)) + (add-hook 'kill-emacs-hook #'preview-cleanout-tempfiles t) + (setq TeX-active-tempdir + (list (make-temp-file (expand-file-name + "tmp" (file-name-as-directory topdir)) t) + topdir + 0)) + (shell-quote-argument + (concat (file-name-as-directory (file-name-nondirectory topdir)) + (file-name-nondirectory (nth 0 TeX-active-tempdir)))))) + +(defun preview-parse-counters (string) + "Extract counter information from STRING." + (let ((list preview-parsed-counters) (pos 0)) + (while (eq pos (string-match " *\\({\\([^{}]+\\)}{[-0-9]+}\\)" string pos)) + (setcdr (or (assoc (match-string 2 string) list) + (car (push (list (match-string 2 string)) list))) + (match-string 1 string)) + (setq pos (match-end 1))) + list)) + +(defun preview-parse-tightpage (string) + "Build tightpage vector from STRING," + (read (concat "[" string "]"))) + +(defvar preview-parse-variables + '(("Fontsize" preview-parsed-font-size + "\\` *\\([0-9.]+\\)pt\\'" 1 string-to-number) + ("Magnification" preview-parsed-magnification + "\\` *\\([0-9]+\\)\\'" 1 string-to-number) + ("PDFoutput" preview-parsed-pdfoutput + "" 0 stringp) + ("Counters" preview-parsed-counters + ".*" 0 preview-parse-counters) + ("Tightpage" preview-parsed-tightpage + "\\` *\\(-?[0-9]+ *\\)\\{4\\}\\'" 0 preview-parse-tightpage))) + +(defun preview-error-quote (string run-coding-system) + "Turn STRING with potential ^^ sequences into a regexp. +To preserve sanity, additional ^ prefixes are matched literally, +so the character represented by ^^^ preceding extended characters +will not get matched, usually." + (let (output case-fold-search) + (when (featurep 'mule) + (setq string (encode-coding-string string run-coding-system))) + (while (string-match "\\^\\{2,\\}\\(\\([@-_?]\\)\\|[8-9a-f][0-9a-f]\\)" + string) + (setq output + (concat output + (regexp-quote (substring string + 0 + (- (match-beginning 1) 2))) + (if (match-beginning 2) + (concat + "\\(?:" (regexp-quote + (substring string + (- (match-beginning 1) 2) + (match-end 0))) + "\\|" + (char-to-string + (logxor (aref string (match-beginning 2)) 64)) + "\\)") + (char-to-string + (string-to-number (match-string 1 string) 16)))) + string (substring string (match-end 0)))) + (setq output (concat output (regexp-quote string))) + (if (featurep 'mule) + (decode-coding-string output + (or (and (boundp 'TeX-japanese-process-output-coding-system) + TeX-japanese-process-output-coding-system) + buffer-file-coding-system)) + output))) + +(defun preview-parse-messages (open-closure) + "Turn all preview snippets into overlays. +This parses the pseudo error messages from the preview +document style for LaTeX. OPEN-CLOSURE is called once +it is certain that we have a valid output file, and it has +to return in its CAR the PROCESS parameter for the CLOSE +call, and in its CDR the final stuff for the placement hook." + (with-temp-message "locating previews..." + (let (TeX-error-file TeX-error-offset snippet box counters + file line + (lsnippet 0) lstart (lfile "") lline lbuffer lpoint + lcounters + string after-string + offset + parsestate (case-fold-search nil) + (run-buffer (current-buffer)) + (run-coding-system preview-coding-system) + (run-directory default-directory) + tempdir + close-data + open-data + fast-hook + slow-hook) + ;; clear parsing variables + (dolist (var preview-parse-variables) + (set (nth 1 var) nil)) + (goto-char (point-min)) + (unwind-protect + (progn + (while + (re-search-forward "\ +^\\(!\\|\\(.*?\\):[0-9]+:\\) \\|\ +\(\\(/*\ +\\(?:\\.+[^()\r\n{} /]*\\|[^()\r\n{} ./]+\ +\\(?: [^()\r\n{} ./]+\\)*\\(?:\\.[-0-9a-zA-Z_.]*\\)?\\)\ +\\(?:/+\\(?:\\.+[^()\r\n{} /]*\\|[^()\r\n{} ./]+\ +\\(?: [^()\r\n{} ./]+\\)*\\(?:\\.[-0-9a-zA-Z_.]*\\)?\\)?\\)*\\)\ +)*\\(?: \\|\r?$\\)\\|\ +\\()+\\)\\|\ + !\\(?:offset(\\([---0-9]+\\))\\|\ +name(\\([^)]+\\))\\)\\|\ +^Preview: \\([a-zA-Z]+\\) \\([^\n\r]*\\)\r?$" nil t) +;;; Ok, here is a line by line breakdown: +;;; match-alternative 1: +;;; error indicator for TeX error, either style. +;;; match-alternative 2: +;;; The same, but file-line-error-style, matching on file name. +;;; match-alternative 3: +;;; Too ugly to describe in detail. In short, we try to catch file +;;; names built from path components that don't contain spaces or +;;; other special characters once the file extension has started. +;;; +;;; Position for searching immediately after the file name so as to +;;; not miss closing parens or something. +;;; (match-string 3) is the file name. +;;; match-alternative 4: +;;; )+\( \|$\) +;;; a closing paren followed by the end of line or a space: a just +;;; closed file. +;;; match-alternative 5 (wrapped into one shy group with +;;; match-alternative 6, so that the match on first char is slightly +;;; faster): +;;; !offset(\([---0-9]+\)) +;;; an AUCTeX offset message. (match-string 5) is the offset itself +;;; !name(\([^)]+\)) +;;; an AUCTeX file name message. (match-string 6) is the file name +;;; TODO: Actually, the latter two should probably again match only +;;; after a space or newline, since that it what \message produces. +;;; disabled in prauctex.def: +;;; \(?:Ov\|Und\)erfull \\.*[0-9]*--[0-9]* +;;; \(?:.\{79\} +;;; \)*.*$\)\| +;;; This would have caught overfull box messages that consist of +;;; several lines of context all with 79 characters in length except +;;; of the last one. prauctex.def kills all such messages. + (setq file (match-string-no-properties 2)) + (cond + ((match-beginning 1) + (if (looking-at "\ +\\(?:Preview\\|Package Preview Error\\): Snippet \\([---0-9]+\\) \\(started\\|ended\\(\ +\\.? *(\\([---0-9]+\\)\\+\\([---0-9]+\\)x\\([---0-9]+\\))\\)?\\)\\.") + (progn + (when file + (unless TeX-error-file + (push nil TeX-error-file) + (push nil TeX-error-offset)) + (unless (car TeX-error-offset) + (rplaca TeX-error-file file))) + (setq snippet (string-to-number (match-string 1)) + box (unless + (string= (match-string 2) "started") + (if (match-string 4) + (mapcar #'(lambda (x) + (* (preview-get-magnification) + (string-to-number x))) + (list + (match-string 4) + (match-string 5) + (match-string 6))) + t)) + counters (mapcar #'cdr preview-parsed-counters) + + ;; And the line number to position the cursor. + line (progn + (setq lpoint (point)) + (end-of-line) +;;; variant 1: profiling seems to indicate the regexp-heavy solution +;;; to be favorable. Removing incomplete characters from the error +;;; context is an absolute nuisance. + (and (re-search-forward "\ +^l\\.\\([0-9]+\\) \\(\\.\\.\\.\\(?:\\^*\\(?:[89a-f][0-9a-f]\\|[]@-\\_?]\\)\\|\ +\[0-9a-f]?\\)\\)?\\([^\n\r]*?\\)\r? +\\([^\n\r]*?\\)\\(\\(?:\\^+[89a-f]?\\)?\\.\\.\\.\\)?\r?$" nil t) + (string-to-number (match-string 1)))) + ;; And a string of the context to search for. + string (and line (match-string 3)) + after-string (and line (buffer-substring + (+ (match-beginning 4) + (- (match-end 3) + (match-beginning 0))) + (match-end 4))) + + ;; We may use these in another buffer. + offset (or (car TeX-error-offset) 0) + file (car TeX-error-file)) + (when (and (stringp file) + (or (string= file "") + (TeX-match-extension file))) + ;; if we are the first time round, check for fast hooks: + (when (null parsestate) + (setq open-data + (save-excursion (funcall open-closure)) + tempdir TeX-active-tempdir) + (dolist + (lst (if (listp TeX-translate-location-hook) + TeX-translate-location-hook + (list TeX-translate-location-hook))) + (let ((fast + (and (symbolp lst) + (get lst 'TeX-translate-via-list)))) + (if fast + (setq fast-hook + (nconc fast-hook (list fast))) + (setq slow-hook + (nconc slow-hook (list lst))))))) + (condition-case err + (save-excursion (mapc #'funcall slow-hook)) + (error (preview-log-error err "Translation hook"))) + (push (vector file (+ line offset) + string after-string + snippet box counters) + parsestate))) + ;; else normal error message + (forward-line) + (re-search-forward "^l\\.[0-9]" nil t) + (forward-line 2))) + ((match-beginning 3) + ;; New file -- Push on stack + (push (match-string-no-properties 3) TeX-error-file) + (push nil TeX-error-offset) + (goto-char (match-end 3))) + ((match-beginning 4) + ;; End of file -- Pop from stack + (when (> (length TeX-error-file) 1) + (pop TeX-error-file) + (pop TeX-error-offset)) + (goto-char (1+ (match-beginning 0)))) + ((match-beginning 5) + ;; Hook to change line numbers + (setq TeX-error-offset + (list (string-to-number (match-string 5))))) + ((match-beginning 6) + ;; Hook to change file name + (setq TeX-error-file (list (match-string-no-properties 6)))) + ((match-beginning 7) + (let ((var + (assoc (match-string-no-properties 7) + preview-parse-variables)) + (offset (- (match-beginning 0) (match-beginning 8))) + (str (match-string-no-properties 8))) + ;; paste together continuation lines: + (while (= (- (length str) offset) 79) + (search-forward-regexp "^\\([^\n\r]*\\)\r?$") + (setq offset (- (length str)) + str (concat str (match-string-no-properties 1)))) + (when (and var + (string-match (nth 2 var) str)) + (set (nth 1 var) + (funcall (nth 4 var) + (match-string-no-properties + (nth 3 var) + str)))))))) + (when (null parsestate) + (error "LaTeX found no preview images"))) + (unwind-protect + (save-excursion + (setq parsestate (nreverse parsestate)) + (condition-case err + (dolist (fun fast-hook) + (setq parsestate + (save-excursion (funcall fun parsestate)))) + (error (preview-log-error err "Fast translation hook"))) + (setq snippet 0) + (dolist (state parsestate) + (setq lsnippet snippet + file (aref state 0) + line (aref state 1) + string (aref state 2) + after-string (aref state 3) + snippet (aref state 4) + box (aref state 5) + counters (aref state 6)) + (unless (string= lfile file) + (set-buffer (if (string= file "") + (with-current-buffer run-buffer + TeX-command-buffer) + (find-file-noselect + (expand-file-name file run-directory)))) + (setq lfile file)) + (save-excursion + (save-restriction + (widen) + ;; a fast hook might have positioned us already: + (if (number-or-marker-p string) + (progn + (goto-char string) + (setq lpoint + (if (number-or-marker-p after-string) + after-string + (line-beginning-position)))) + (if (and (eq (current-buffer) lbuffer) + (<= lline line)) + ;; while Emacs does the perfectly correct + ;; thing even when when the line differences + ;; get zero or negative, I don't trust this + ;; to be universally the case across other + ;; implementations. Besides, if the line + ;; number gets smaller again, we are probably + ;; rereading the file, and restarting from + ;; the beginning will probably be faster. + (progn + (goto-char lpoint) + (if (/= lline line) + (if (eq selective-display t) + (re-search-forward "[\n\C-m]" nil + 'end + (- line lline)) + (forward-line (- line lline))))) + (goto-char (point-min)) + (forward-line (1- line))) + (setq lpoint (point)) + (cond + ((search-forward (concat string after-string) + (line-end-position) t) + (backward-char (length after-string))) + ;;ok, transform ^^ sequences + ((search-forward-regexp + (concat "\\(" + (setq string + (preview-error-quote + string + run-coding-system)) + "\\)" + (setq after-string + (preview-error-quote + after-string + run-coding-system))) + (line-end-position) t) + (goto-char (match-end 1))) + ((search-forward-regexp + (concat "\\(" + (if (string-match + "^[^\0-\177]\\{1,6\\}" string) + (setq string + (substring string (match-end 0))) + string) + "\\)" + (if (string-match + "[^\0-\177]\\{1,6\\}$" after-string) + (setq after-string + (substring after-string + 0 (match-beginning 0))))) + (line-end-position) t) + (goto-char (match-end 1))) + (t (search-forward-regexp + string + (line-end-position) t)))) + (setq lline line + lbuffer (current-buffer)) + (if box + (progn + (if (and lstart (= snippet lsnippet)) + (setq close-data + (nconc + (preview-place-preview + snippet + (save-excursion + (preview-back-command + (= (prog1 (point) + (goto-char lstart)) + lstart)) + (point)) + (point) + (preview-TeX-bb box) + (cons lcounters counters) + tempdir + (cdr open-data)) + close-data)) + (with-current-buffer run-buffer + (preview-log-error + (list 'error + (format + "End of Preview snippet %d unexpected" + snippet)) "Parser"))) + (setq lstart nil)) + ;; else-part of if box + (setq lstart (point) lcounters counters) + ;; >= because snippets in between might have + ;; been ignored because of TeX-default-extension + (unless (>= snippet (1+ lsnippet)) + (with-current-buffer run-buffer + (preview-log-error + (list 'error + (format + "Preview snippet %d out of sequence" + snippet)) "Parser")))))))) + (preview-call-hook 'close (car open-data) close-data)))))) + +(defun preview-get-geometry () + "Transfer display geometry parameters from current display. +Returns list of scale, resolution and colors. Calculation +is done in current buffer." + (condition-case err + (let* ((geometry + (list (preview-hook-enquiry preview-scale-function) + (cons (/ (* 25.4 (display-pixel-width)) + (display-mm-width)) + (/ (* 25.4 (display-pixel-height)) + (display-mm-height))) + (preview-get-colors))) + (preview-min-spec + (* (cdr (nth 1 geometry)) + (/ + (preview-inherited-face-attribute + 'preview-reference-face :height 'default) + 720.0)))) + (setq preview-icon (preview-make-image 'preview-icon-specs) + preview-error-icon (preview-make-image + 'preview-error-icon-specs) + preview-nonready-icon (preview-make-image + 'preview-nonready-icon-specs)) + geometry) + (error (error "Display geometry unavailable: %s" + (error-message-string err))))) + +(defun preview-set-geometry (geometry) + "Set geometry variables from GEOMETRY. +Buffer-local `preview-scale', `preview-resolution', +and `preview-colors' are set as given." + (setq preview-scale (nth 0 geometry) + preview-resolution (nth 1 geometry) + preview-colors (nth 2 geometry))) + +(defun preview-start-dvipng () + "Start a DviPNG process.." + (let* ((file preview-gs-file) + tempdir + (res (/ (* (car preview-resolution) + (preview-hook-enquiry preview-scale)) + (preview-get-magnification))) + (resolution (format " -D%d " res)) + (colors (preview-dvipng-color-string preview-colors res)) + (command (with-current-buffer TeX-command-buffer + (prog1 + (concat (TeX-command-expand preview-dvipng-command + (car file)) + " " colors resolution) + (setq tempdir TeX-active-tempdir)))) + (name "Preview-DviPNG")) + (setq TeX-active-tempdir tempdir) + (goto-char (point-max)) + (insert-before-markers "Running `" name "' with ``" command "''\n") + (setq mode-name name) + (setq TeX-sentinel-function + (lambda (_process name) (message "%s: done." name))) + (if TeX-process-asynchronous + (let ((process (start-process name (current-buffer) TeX-shell + TeX-shell-command-option + command))) + (if TeX-after-start-process-function + (funcall TeX-after-start-process-function process)) + (TeX-command-mode-line process) + (set-process-filter process 'TeX-command-filter) + (set-process-sentinel process 'TeX-command-sentinel) + (set-marker (process-mark process) (point-max)) + (push process compilation-in-progress) + (sit-for 0) + process) + (setq mode-line-process ": run") + (set-buffer-modified-p (buffer-modified-p)) + (sit-for 0) ; redisplay + (call-process TeX-shell nil (current-buffer) nil + TeX-shell-command-option + command)))) + +(defun preview-start-dvips (&optional fast) + "Start a DviPS process. +If FAST is set, do a fast conversion." + (let* ((file preview-gs-file) + tempdir + (command (with-current-buffer TeX-command-buffer + (prog1 + (TeX-command-expand (if fast + preview-fast-dvips-command + preview-dvips-command) + (car file)) + (setq tempdir TeX-active-tempdir)))) + (name "Preview-DviPS")) + (setq TeX-active-tempdir tempdir) + (setq preview-ps-file (and fast + (preview-make-filename + (preview-make-filename + "preview.ps" tempdir) + tempdir))) + (goto-char (point-max)) + (insert-before-markers "Running `" name "' with ``" command "''\n") + (setq mode-name name) + (setq TeX-sentinel-function + (lambda (_process name) (message "%s: done." name))) + (if TeX-process-asynchronous + (let ((process (start-process name (current-buffer) TeX-shell + TeX-shell-command-option + command))) + (if TeX-after-start-process-function + (funcall TeX-after-start-process-function process)) + (TeX-command-mode-line process) + (set-process-filter process 'TeX-command-filter) + (set-process-sentinel process 'TeX-command-sentinel) + (set-marker (process-mark process) (point-max)) + (push process compilation-in-progress) + (sit-for 0) + process) + (setq mode-line-process ": run") + (set-buffer-modified-p (buffer-modified-p)) + (sit-for 0) ; redisplay + (call-process TeX-shell nil (current-buffer) nil + TeX-shell-command-option + command)))) + +(defun preview-start-pdf2dsc () + "Start a PDF2DSC process." + (let* ((file preview-gs-file) + tempdir + pdfsource + (command (with-current-buffer TeX-command-buffer + (prog1 + (TeX-command-expand preview-pdf2dsc-command + (car file)) + (setq tempdir TeX-active-tempdir + pdfsource (funcall `,(car file) "pdf"))))) + (name "Preview-PDF2DSC")) + (setq TeX-active-tempdir tempdir) + (setq preview-ps-file (preview-attach-filename + pdfsource + (preview-make-filename + (preview-make-filename + "preview.dsc" tempdir) + tempdir))) + (goto-char (point-max)) + (insert-before-markers "Running `" name "' with ``" command "''\n") + (setq mode-name name) + (setq TeX-sentinel-function + (lambda (_process name) (message "%s: done." name))) + (if TeX-process-asynchronous + (let ((process (start-process name (current-buffer) TeX-shell + TeX-shell-command-option + command))) + (if TeX-after-start-process-function + (funcall TeX-after-start-process-function process)) + (TeX-command-mode-line process) + (set-process-filter process 'TeX-command-filter) + (set-process-sentinel process 'TeX-command-sentinel) + (set-marker (process-mark process) (point-max)) + (push process compilation-in-progress) + (sit-for 0) + process) + (setq mode-line-process ": run") + (set-buffer-modified-p (buffer-modified-p)) + (sit-for 0) ; redisplay + (call-process TeX-shell nil (current-buffer) nil + TeX-shell-command-option + command)))) + +(defun preview-TeX-inline-sentinel (process _name) + "Sentinel function for preview. +See `TeX-sentinel-function' and `set-process-sentinel' +for definition of PROCESS and NAME." + (if process (TeX-format-mode-line process)) + (let ((status (process-status process))) + (if (memq status '(signal exit)) + (delete-process process)) + (when (eq status 'exit) + (save-excursion + (goto-char (point-max)) + (forward-line -1) + (if (search-forward "abnormally with code 1" nil t) + (replace-match "as expected with code 1" t t) + (if (search-forward "finished" nil t) + (insert " with nothing to show")))) + (condition-case err + (preview-call-hook 'open) + (error (preview-log-error err "LaTeX" process))) + (preview-reraise-error process)))) + +(defcustom preview-format-extensions '(".fmt" ".efmt") + "Possible extensions for format files. +Those are just needed for cleanup." + :group 'preview-latex + :type '(repeat string)) + +(defun preview-format-kill (format-cons) + "Kill a cached format. +FORMAT-CONS is intended to be an element of `preview-dumped-alist'. +Tries through `preview-format-extensions'." + (dolist (ext preview-format-extensions) + (condition-case nil + (delete-file (preview-dump-file-name (concat (car format-cons) ext))) + (file-error nil)))) + +(defun preview-dump-file-name (file) + "Make a file name suitable for dumping from FILE." + (if file + (concat (file-name-directory file) + "prv_" + (progn + (setq file (file-name-nondirectory file)) + (while (string-match " " file) + (setq file (replace-match "_" t t file))) + file)) + "prv_texput")) + +(defun preview-do-replacements (string replacements) + "Perform replacements in string. +STRING is the input string, REPLACEMENTS is a list of replacements. +A replacement is a cons-cell, where the car is the match string, +and the cdr is a list of strings or symbols. Symbols get dereferenced, +and strings get evaluated as replacement strings." + (let (rep case-fold-search) + (while replacements + (setq rep (pop replacements)) + (cond ((symbolp rep) + (setq string (preview-do-replacements + string (symbol-value rep)))) + ((string-match (car rep) string) + (setq string + (mapconcat (lambda(x) + (if (symbolp x) + (symbol-value x) + (replace-match x t nil string))) + (cdr rep) "")))))) + string) + +(defconst preview-LaTeX-disable-pdfoutput + '(("\\`\\(pdf[^ ]*\\)\ +\\(\\( +[-&]\\([^ \"]\\|\"[^\"]*\"\\)*\\|\ + +\"[-&][^\"]*\"\\)*\\)\\(.*\\)\\'" + . ("\\1\\2 \"\\\\pdfoutput=0 \" \\5"))) + "This replacement places `\"\\pdfoutput=0 \"' after the options +of any command starting with `pdf'.") + +(defcustom preview-LaTeX-command-replacements + nil + "Replacement for `preview-LaTeX-command'. +This is passed through `preview-do-replacements'." + :group 'preview-latex + :type '(repeat + (choice + (symbol :tag "Named replacement" :value preview-LaTeX-disable-pdfoutput) + (cons (string :tag "Matched string") + (repeat :tag "Concatenated elements for replacement" + (choice (symbol :tag "Variable with literal string") + (string :tag "non-literal regexp replacement"))))))) + +(defvar preview-format-name) + +(defcustom preview-dump-replacements + '(preview-LaTeX-command-replacements + ("\\`\\([^ ]+\\)\ +\\(\\( +-\\([^ \\\\\"]\\|\\\\\\.\\|\"[^\"]*\"\\)*\\)*\\)\\(.*\\)\\'" + . ("\\1 -ini -interaction=nonstopmode \"&\\1\" " preview-format-name ".ini \\5"))) + "Generate a dump command from the usual preview command." + :group 'preview-latex + :type '(repeat + (choice (symbol :tag "Named replacement") + (cons string (repeat (choice symbol string)))))) + +(defcustom preview-undump-replacements + '(("\\`\\([^ ]+\\)\ + .*? \"\\\\input\" \\(.*\\)\\'" + . ("\\1 -interaction=nonstopmode \"&" preview-format-name "\" \\2"))) + "Use a dumped format for reading preamble." + :group 'preview-latex + :type '(repeat + (choice (symbol :tag "Named replacement") + (cons string (repeat (choice symbol string)))))) + + +(defun preview-cache-preamble (&optional format-cons) + "Dump a pregenerated format file. +For the rest of the session, this file is used when running +on the same master file. + +Returns the process for dumping, nil if there is still a valid +format available. + +If FORMAT-CONS is non-nil, a previous format may get reused." + (interactive) + (let* ((dump-file + (expand-file-name (preview-dump-file-name (TeX-master-file "ini")))) + (master (TeX-master-file)) + (format-name (expand-file-name master)) + (preview-format-name (shell-quote-argument + (preview-dump-file-name (file-name-nondirectory + master)))) + (master-file (expand-file-name (TeX-master-file t))) + (command (preview-do-replacements + (TeX-command-expand + (preview-string-expand preview-LaTeX-command) + 'TeX-master-file) + preview-dump-replacements)) + (preview-auto-cache-preamble nil)) + (unless (and (consp (cdr format-cons)) + (string= command (cadr format-cons))) + (unless format-cons + (setq format-cons (assoc format-name preview-dumped-alist))) + (if format-cons + (preview-cache-preamble-off format-cons) + (setq format-cons (list format-name)) + (push format-cons preview-dumped-alist)) + ;; mylatex.ltx expects a file name to follow. Bad. `.tex' + ;; in the tools bundle is an empty file. + (write-region "\\ifx\\pdfoutput\\undefined\\else\ +\\let\\PREVIEWdump\\dump\\def\\dump{% +\\edef\\next{{\\catcode`\\ 9 \\pdfoutput=\\the\\pdfoutput\\relax\ +\\the\\everyjob}}\\everyjob\\next\\catcode`\\ 10 \\let\\dump\\PREVIEWdump\\dump}\\fi\\input mylatex.ltx \\relax\n" nil dump-file) + (TeX-save-document master) + (prog1 + (preview-generate-preview + nil (file-name-nondirectory master) + command) + (add-hook 'kill-emacs-hook #'preview-cleanout-tempfiles t) + (setq TeX-sentinel-function + `(lambda (process string) + (condition-case err + (progn + (if (and (eq (process-status process) 'exit) + (zerop (process-exit-status process))) + (preview-watch-preamble + ',master-file + ',command + ',format-cons) + (preview-format-kill ',format-cons)) + (delete-file ',dump-file)) + (error (preview-log-error err "Dumping" process))) + (preview-reraise-error process))))))) + +(defun preview-cache-preamble-off (&optional old-format) + "Clear the pregenerated format file. +The use of the format file is discontinued. +OLD-FORMAT may already contain a format-cons as +stored in `preview-dumped-alist'." + (interactive) + (unless old-format + (setq old-format + (let ((master-file (expand-file-name (TeX-master-file)))) + (or (assoc master-file preview-dumped-alist) + (car (push (list master-file) preview-dumped-alist)))))) + (preview-unwatch-preamble old-format) + (preview-format-kill old-format) + (setcdr old-format nil)) + +(defun preview-region (begin end) + "Run preview on region between BEGIN and END." + (interactive "r") + (TeX-region-create (TeX-region-file TeX-default-extension) + (buffer-substring begin end) + (if buffer-file-name + (file-name-nondirectory buffer-file-name) + "") + (save-restriction + (widen) + (let ((inhibit-point-motion-hooks t) + (inhibit-field-text-motion t)) + (+ (count-lines (point-min) begin) + (save-excursion + (goto-char begin) + (if (bolp) 0 -1)))))) + (preview-generate-preview t (TeX-region-file nil t) + (preview-do-replacements + (TeX-command-expand + (preview-string-expand preview-LaTeX-command) + 'TeX-region-file) + preview-LaTeX-command-replacements))) + +(defun preview-buffer () + "Run preview on current buffer." + (interactive) + (preview-region (point-min) (point-max))) + +;; We have a big problem: When we are dumping preambles, diagnostics +;; issued in later runs will not make it to the output when the +;; predumped format skips the preamble. So we have to place those +;; after \begin{document}. This we can only do if regions never +;; include the preamble. We could do this in our own functions, but +;; that would not extend to the operation of C-c C-r g RET. So we +;; make this preamble skipping business part of TeX-region-create. +;; This will fail if the region is to contain just part of the +;; preamble -- a bad idea anyhow. + +(defadvice TeX-region-create (before preview-preamble preactivate activate) + "Skip preamble for the sake of predumped formats." + (when (string-match TeX-header-end (ad-get-arg 1)) + (ad-set-arg 1 + (prog1 (substring (ad-get-arg 1) (match-end 0)) + (ad-set-arg 3 + (with-temp-buffer + (insert (substring (ad-get-arg 1) + 0 (match-end 0))) + (+ (ad-get-arg 3) + (count-lines (point-min) (point-max)) + (if (bolp) 0 -1)))))))) + +(defun preview-document () + "Run preview on master document." + (interactive) + (TeX-save-document (TeX-master-file)) + (preview-generate-preview + nil (TeX-master-file nil t) + (preview-do-replacements + (TeX-command-expand + (preview-string-expand preview-LaTeX-command) + 'TeX-master-file) + preview-LaTeX-command-replacements))) + +(defun preview-environment (count) + "Run preview on LaTeX environment. +This avoids running environments through preview that are +indicated in `preview-inner-environments'. If you use a prefix +argument COUNT, the corresponding level of outward nested +environments is selected." + (interactive "p") + (save-excursion + (let (currenv) + (dotimes (i (1- count)) + (setq currenv (LaTeX-current-environment)) + (if (string= currenv "document") + (error "No enclosing outer environment found")) + (LaTeX-find-matching-begin)) + (while (member (setq currenv (LaTeX-current-environment)) + preview-inner-environments) + (LaTeX-find-matching-begin)) + (if (string= currenv "document") + (error "No enclosing outer environment found")) + (preview-region + (save-excursion (LaTeX-find-matching-begin) (point)) + (save-excursion (LaTeX-find-matching-end) (point)))))) + +(defun preview-section () + "Run preview on LaTeX section." (interactive) + (save-excursion + (LaTeX-mark-section) + (preview-region (region-beginning) (region-end)))) + + +(defun preview-generate-preview (region-p file command) + "Generate a preview. +REGION-P is the region flag, FILE the file (without default +extension and directory), COMMAND is the command to use. + +It returns the started process." + (setq TeX-current-process-region-p region-p) + (let* ((geometry (preview-get-geometry)) + (commandbuff (current-buffer)) + (pr-file (cons + (if TeX-current-process-region-p + 'TeX-region-file + 'TeX-master-file) + file)) + (master (TeX-master-file)) + (master-file (expand-file-name master)) + (dumped-cons (assoc master-file + preview-dumped-alist)) + process) + (unless dumped-cons + (push (setq dumped-cons (cons master-file + (if (eq preview-auto-cache-preamble 'ask) + (y-or-n-p "Cache preamble? ") + preview-auto-cache-preamble))) + preview-dumped-alist)) + (when (cdr dumped-cons) + (let* (TeX-current-process-region-p) + (setq process (preview-cache-preamble dumped-cons)) + (if process + (setq TeX-sentinel-function + `(lambda (process string) + (funcall ,TeX-sentinel-function process string) + (TeX-inline-preview-internal + ,command ,file + ',pr-file ,commandbuff + ',dumped-cons + ',master + ',geometry + (buffer-string))))))) + (or process + (TeX-inline-preview-internal command file + pr-file commandbuff + dumped-cons master + geometry)))) + +(defun TeX-inline-preview-internal (command file pr-file + commandbuff dumped-cons master + geometry + &optional str) + "Internal stuff for previewing. +COMMAND and FILE should be explained in `TeX-command-list'. +PR-FILE is the target file name in the form for `preview-gs-file'. +COMMANDBUFF, DUMPED-CONS, MASTER, and GEOMETRY are +internal parameters, STR may be a log to insert into the current log." + (set-buffer commandbuff) + (let* + ((preview-format-name (shell-quote-argument + (preview-dump-file-name + (file-name-nondirectory master)))) + (process + (TeX-run-command + "Preview-LaTeX" + (if (consp (cdr dumped-cons)) + (preview-do-replacements + command preview-undump-replacements) + command) file))) + (condition-case err + (progn + (when str + (save-excursion + (goto-char (point-min)) + (insert str) + (when (= (process-mark process) (point-min)) + (set-marker (process-mark process) (point))))) + (preview-set-geometry geometry) + (setq preview-gs-file pr-file) + (setq TeX-sentinel-function 'preview-TeX-inline-sentinel) + (when (featurep 'mule) + (setq preview-coding-system + (or (and (boundp 'TeX-japanese-process-output-coding-system) + TeX-japanese-process-output-coding-system) + (with-current-buffer commandbuff + buffer-file-coding-system))) + (when preview-coding-system + (setq preview-coding-system + (preview-buffer-recode-system + (coding-system-base preview-coding-system)))) + (set-process-coding-system + process preview-coding-system)) + (TeX-parse-reset) + (setq TeX-parse-function 'TeX-parse-TeX) + (if TeX-process-asynchronous + process + (TeX-synchronous-sentinel "Preview-LaTeX" file process))) + (error (preview-log-error err "Preview" process) + (delete-process process) + (preview-reraise-error process))))) + +(defconst preview-version "@PREVIEWVERSION@" + "Preview version. +If not a regular release, the date of the last change.") + +(defconst preview-release-date "@PREVIEWDATE@" + "Preview release date using the ISO 8601 format, yyyy-mm-dd.") + +(defun preview-dump-state (buffer) + (condition-case nil + (progn + (unless (local-variable-p 'TeX-command-buffer (current-buffer)) + (setq buffer (with-current-buffer buffer (TeX-active-buffer)))) + (when (bufferp buffer) + (insert "\nRun buffer contents:\n\n") + (if (< (buffer-size buffer) 5000) + (insert-buffer-substring buffer) + (insert-buffer-substring buffer 1 2500) + (insert "...\n\n[...]\n\n\t...") + (insert-buffer-substring buffer + (- (buffer-size buffer) 2500) + (buffer-size buffer))) + (insert "\n"))) + (error nil))) + +;;;###autoload +(defun preview-report-bug () "Report a bug in the preview-latex package." + (interactive) + (let ((reporter-prompt-for-summary-p "Bug report subject: ")) + (reporter-submit-bug-report + "bug-auctex@gnu.org" + preview-version + '(AUCTeX-version + LaTeX-command-style + image-types + preview-image-type + preview-image-creators + preview-dvipng-image-type + preview-dvipng-command + preview-pdf2dsc-command + preview-gs-command + preview-gs-options + preview-gs-image-type-alist + preview-fast-conversion + preview-prefer-TeX-bb + preview-dvips-command + preview-fast-dvips-command + preview-scale-function + preview-LaTeX-command + preview-required-option-list + preview-preserve-counters + preview-default-option-list + preview-default-preamble + preview-LaTeX-command-replacements + preview-dump-replacements + preview-undump-replacements + preview-auto-cache-preamble + preview-TeX-style-dir) + `(lambda () (preview-dump-state ,(current-buffer))) + (lambda () + (insert (format "\nOutput from running `%s -h':\n" + preview-gs-command)) + (call-process preview-gs-command nil t nil "-h") + (insert "\n")) + "Remember to cover the basics. Including a minimal LaTeX example +file exhibiting the problem might help." + ))) + +(eval-when-compile + (when (boundp 'preview-compatibility-macros) + (dolist (elt preview-compatibility-macros) + (if (consp elt) + (fset (car elt) (cdr elt)) + (fmakunbound elt))))) + +(makunbound 'preview-compatibility-macros) + +(provide 'preview) +;;; preview.el ends here diff -Nru auctex-11.88/preview-latex.spec auctex-11.90/preview-latex.spec --- auctex-11.88/preview-latex.spec 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/preview-latex.spec 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,260 @@ +# Spec file for preview-latex + +# Maintainer: auctex-devel@gnu.org + +# Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc. + +# This file is part of AUCTeX. + +# AUCTeX is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. + +# AUCTeX is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with AUCTeX; see the file COPYING. If not, write to the Free +# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, +# MA 02110-1301, USA. + +%define HAVE_EMACS %(which emacs >/dev/null 2>/dev/null && echo 1 || echo 0) +%define HAVE_XEMACS %(which xemacs >/dev/null 2>/dev/null && echo 1 || echo 0) + +%define FOR_SUSE %{?suse_version:1}%{!?suse_version:0} + +%if %{FOR_SUSE} +%define distri .suse +%define commongroup Productivity/Editors/Emacs +# This is awful, but I don't have the clue to avoid it: +%define xemacspkgdir %{_datadir}/xemacs/xemacs-packages +%define xemacspkgconfdir ${datadir}/xemacs/xemacs-packages +%else +%define distri .fedora +%define commongroup Applications/Editors +# This is awful, but I don't have the clue to avoid it: +%define xemacspkgdir %{_datadir}/xemacs/xemacs-packages +%define xemacspkgconfdir ${datadir}/xemacs/xemacs-packages +%endif + +# we use xemacs-packages because the system packages can be found +# here, and preview-latex is not yet a part of any sumo tarball or +# similar. The choice for AUCTeX would probably be site-packages +# instead. + +Summary: Emacs/LaTeX inline preview +Name: preview-latex +Version: 0.9.1 +Release: 1%{distri} +License: GPL +BuildArchitectures: noarch +URL: http://www.gnu.org/software/auctex +Source0: ftp://ftp.gnu.org/pub/auctex/%{name}-%{version}.tar.gz +Group: %{commongroup} +BuildRoot: %{_tmppath}/%{name}-root +Prereq: info +Requires: ghostscript >= 6.51 +Requires: tetex tetex-dvips +BuildRequires: texinfo >= 4.0 + +%description +Does your neck hurt from turning between previewer windows and the +source too often? This Elisp/LaTeX package will render your displayed +LaTeX equations right into the editing window where they belong. + +%package common +Summary: Emacs/LaTeX inline preview (LaTeX style and docs) +Group: %{commongroup} + +%description common +Does your neck hurt from turning between previewer windows and the +source too often? This Elisp/LaTeX package will render your displayed +LaTeX equations right into the editing window where they belong. + +This package contains the LaTeX style files and the documentation. + +%package emacs +Summary: Emacs/LaTeX inline preview (GNU Emacs lisp files) +Group: %{commongroup} +Requires: %{name}-common = %{version}-%{release} +Requires: emacs >= 21.1 +Requires: auctex >= 11.0 +Obsoletes: preview-latex + +%description emacs +Does your neck hurt from turning between previewer windows and the +source too often? This Elisp/LaTeX package will render your displayed +LaTeX equations right into the editing window where they belong. + +This package contains the lisp modules for GNU Emacs 21.1 or higher. + +%package xemacs +Summary: Emacs/LaTeX inline preview (XEmacs lisp files) +Group: %{commongroup} +Requires: %{name}-common = %{version}-%{release} +Requires: xemacs >= 21.4.9 +Conflicts: xemacs = 21.4.16 + +%description xemacs +Does your neck hurt from turning between previewer windows and the +source too often? This Elisp/LaTeX package will render your displayed +LaTeX equations right into the editing window where they belong. + +This package contains the lisp modules for XEmacs 21.4.9 or higher. + +%prep +%setup -c -q + +%if %{HAVE_EMACS} + mkdir emacs + pushd emacs + ln -sf ../%{name}-%{version}/* . + popd +%endif + +%if %{HAVE_XEMACS} + mkdir xemacs + pushd xemacs + ln -sf ../%{name}-%{version}/* . + popd +%endif + +%build + +for i in *emacs; do + pushd $i + # The below will make the package build from a tar straight from CVS + # NOT RECOMMENDED, but useful for testing! + test -f ./configure || ./autogen.sh + # --with-packagedir repairs RedHat XEmacs braindamage texmf-dir + # moves the installation to a location searched before the (possibly + # conflicting) system tree. Unfortunately, this is the site-wide + # tree that we should not really be touching. Sigh. + if [ $i = "emacs" ]; then + %configure '--with-lispdir=${datadir}/emacs/site-lisp/site-start.d' \ + --with-packagelispdir=../preview '--with-texmf-dir=${prefix}/local/share/texmf' + else + %configure --with-xemacs '--with-packagedir=%{xemacspkgconfdir}' '--with-texmf-dir=${prefix}/local/share/texmf' + fi + make 'infodir=%{_infodir}' + cd doc + make preview-latex.pdf + popd +done + +%install + +rm -rf '%{buildroot}' +for i in *emacs; do + pushd $i + if [ $i == "emacs" ]; then + # Make directory non-searchable. + mkdir -p '%{buildroot}%{_datadir}/emacs/site-lisp/preview' + touch .nosearch + install -c -m 644 .nosearch \ + '%{buildroot}%{_datadir}/emacs/site-lisp/preview' + %makeinstall TEXHASH=: + else + # XEmacs MANIFEST doesn't get created unless the target dir exists + mkdir -p %{buildroot}%{xemacspkgdir}/pkginfo + %makeinstall TEXHASH=: + fi + popd +done + +# Package documentation in /usr/share/doc/preview-latex-n.n +# rather than /usr/share/doc/preview-latex-common-n.n +%define docs %{_defaultdocdir}/%{name}-%{version} +mkdir -p '%{buildroot}%{docs}' +pushd %{name}-%{version} +for i in ChangeLog circ.tex COPYING FAQ INSTALL PROBLEMS README \ + RELEASE TODO doc/preview-latex.pdf; do + cp -R "$i" '%{buildroot}%{docs}' +done +cp latex/README '%{buildroot}%{docs}/README-preview' + +# Remove dir file that has been created by the makeinfo calls because this +# file will not been included in the rpm distribution (make RPM 4.1+ happy) +# Apparently RPM 4.2 removes the file itself? +rm -f '%{buildroot}%{_infodir}/dir' + +%clean +rm -rf '%{buildroot}' + +%post common +/sbin/install-info '--info-dir=%{_infodir}' '%{_infodir}/preview-latex.info' +texhash /usr/local/share/texmf + +%preun common +# $1 is the number of versions of this package installed +# after this uninstallation +if [ $1 -eq 0 ]; then + /sbin/install-info '--info-dir=%{_infodir}' --delete \ + '%{_infodir}/preview-latex.info' +fi + +%files common +%defattr(-,root,root) +%dir %{_prefix}/local/share/texmf/tex/latex/preview +%{_prefix}/local/share/texmf/tex/latex/preview/*.sty +%{_prefix}/local/share/texmf/tex/latex/preview/*.def +%config %{_prefix}/local/share/texmf/tex/latex/preview/*.cfg +%doc %{_prefix}/local/share/texmf/doc/latex/styles/preview.dvi +%doc %{_infodir}/preview-latex.info* +%doc %{docs} + +%if %{HAVE_EMACS} +%files emacs +%defattr(-,root,root) +%{_datadir}/emacs/site-lisp/preview +%{_datadir}/emacs/site-lisp/site-start.d/preview-latex.el +%endif + +%if %{HAVE_XEMACS} +%files xemacs +%defattr(-,root,root) +%{xemacspkgdir}/lisp/preview +%{xemacspkgdir}/etc/preview +%verify() %{xemacspkgdir}/pkginfo/MANIFEST.preview +%endif + +%changelog +* Wed Jul 28 2004 David Kastrup +- Remove 8bit-test stuff, some changes to directories. + +* Mon Apr 12 2004 David Kastrup +- bump XEmacs requirements to 21.4.9 + +* Thu Jan 29 2004 Jan-Åke Larsson +- add support for SuSE + (kudos to Martin Väth ) + +* Wed Aug 7 2002 David Kastrup +- add FAQ + +* Tue Apr 16 2002 David Kastrup +- allow split info file, docs now go in preview-latex-n.n + +* Mon Apr 15 2002 Jan-Ake Larsson +- Docs now goes in preview-latex-n.n-n directory + +* Wed Apr 10 2002 Jan-Ake Larsson +- Triple-rpm simplifications + +* Sun Mar 31 2002 Jan-Ake Larsson +- Prepare for 0.7, initial triple rpm attempt + +* Sun Mar 10 2002 David Kastrup +- Prepare for 0.6.1 + +* Tue Feb 19 2002 Jan-Ake Larsson +- Added site-start.d support and prauctex.cfg config file + +* Thu Feb 14 2002 Jan-Ake Larsson +- Adjusted for 0.6 + +* Wed Jan 23 2002 Jan-Ake Larsson +- Initial build. diff -Nru auctex-11.88/prv-emacs.el auctex-11.90/prv-emacs.el --- auctex-11.88/prv-emacs.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/prv-emacs.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,600 @@ +;;; prv-emacs.el --- GNU Emacs specific code for preview.el + +;; Copyright (C) 2001, 02, 03, 04, 05 Free Software Foundation, Inc. + +;; Author: David Kastrup +;; Keywords: convenience, tex, wp + +;; This file is free software; you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; This file is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with GNU Emacs; see the file COPYING. If not, write to +;; the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, +;; Boston, MA 02110-1301, USA. + +;;; Commentary: + +;; + +;;; Code: + +(require 'tex-site) +(require 'tex) +(require 'latex) + +(defvar preview-compatibility-macros nil + "List of macros only present when compiling/loading.") + +(defcustom preview-transparent-color '(highlight :background) + "Color to appear transparent in previews. +Set this to something unusual when using `preview-transparent-border', +to the default background in most other cases." + :type '(radio (const :tag "None" nil) + (const :tag "Autodetect" t) + (color :tag "By name" :value "white") + (list :tag "Take from face" + :value (default :background) + (face) + (choice :tag "What to take" + (const :tag "Background" :value :background) + (const :tag "Foreground" :value :foreground)))) + :group 'preview-appearance) + +;;; Note that the following default introduces a border only when +;;; Emacs blinks politely when point is on an image (the tested +;;; unrelated function was introduced at about the time image blinking +;;; became tolerable). +(defcustom preview-transparent-border (unless (fboundp 'posn-object-x-y) 1.5) + "Width of transparent border for previews in pt. +Setting this to a numeric value will add a border of +`preview-transparent-color' around images, and will turn +the heuristic-mask setting of images to default to 't since +then the borders are correctly detected even in case of +palette operations. If the transparent color is something +not present otherwise in the image, the cursor display +will affect just this border. A width of 0 is interpreted +by PostScript as meaning a single pixel, other widths are +interpreted as PostScript points (1/72 of 1in)" + :group 'preview-appearance + :type '(choice (const :value nil :tag "No border") + (number :value 1.5 :tag "Border width in pt"))) + +(defun preview-get-heuristic-mask () + "Get heuristic-mask to use for previews. +Consults `preview-transparent-color'." + (cond ((stringp preview-transparent-color) + (color-values preview-transparent-color)) + ((or (not (consp preview-transparent-color)) + (integerp (car preview-transparent-color))) + preview-transparent-color) + (t (color-values (preview-inherited-face-attribute + (nth 0 preview-transparent-color) + (nth 1 preview-transparent-color) + 'default))))) + +(defsubst preview-create-icon-1 (file type ascent border) + `(image + :file ,file + :type ,type + :ascent ,ascent + ,@(and border + '(:mask (heuristic t))))) + +(defun preview-create-icon (file type ascent border) + "Create an icon from FILE, image TYPE, ASCENT and BORDER." + (list + (preview-create-icon-1 file type ascent border) + file type ascent border)) + +(put 'preview-filter-specs :type + #'(lambda (keyword value &rest args) + (if (image-type-available-p value) + `(image :type ,value + ,@(preview-filter-specs-1 args)) + (throw 'preview-filter-specs nil)))) + +;; No defcustom here: does not seem to make sense. + +(defvar preview-tb-icon-specs + '((:type xpm :file "prvtex24.xpm") + (:type xbm :file "prvtex24.xbm"))) + +(defvar preview-tb-icon nil) + +(defun preview-add-urgentization (fun ov &rest rest) + "Cause FUN (function call form) to be called when redisplayed. +FUN must be a form with OV as first argument, +REST as the remainder, returning T." + (let ((dispro (overlay-get ov 'display))) + (unless (eq (car dispro) 'when) + (overlay-put ov 'display `(when (,fun ,ov ,@rest) . ,dispro))))) + +(defun preview-remove-urgentization (ov) + "Undo urgentization of OV by `preview-add-urgentization'. +Returns the old arguments to `preview-add-urgentization' +if there was any urgentization." + (let ((dispro (overlay-get ov 'display))) + (when (eq (car-safe dispro) 'when) + (prog1 + (car (cdr dispro)) + (overlay-put ov 'display (cdr (cdr dispro))))))) + +(defsubst preview-icon-copy (icon) + "Prepare a later call of `preview-replace-active-icon'." + + ;; This is just a GNU Emacs specific efficiency hack because it + ;; is easy to do. When porting, don't do anything complicated + ;; here, rather deliver just the unchanged icon and make + ;; `preview-replace-active-icon' do the necessary work of replacing + ;; the icon where it actually has been stored, probably + ;; in the car of the strings property of the overlay. This string + ;; might probably serve as a begin-glyph as well, in which case + ;; modifying the string in the strings property would change that + ;; glyph automatically. + + (cons 'image (cdr icon))) + +(defsubst preview-replace-active-icon (ov replacement) + "Replace the active Icon in OV by REPLACEMENT, another icon." + (let ((img (overlay-get ov 'preview-image))) + (setcdr (car img) (cdar replacement)) + (setcdr img (cdr replacement)))) + +(defvar preview-button-1 [mouse-2]) +(defvar preview-button-2 [mouse-3]) + +(defmacro preview-make-clickable (&optional map glyph helpstring click1 click2) + "Generate a clickable string or keymap. +If MAP is non-nil, it specifies a keymap to add to, otherwise +a new one is created. If GLYPH is given, the result is made +to display it wrapped in a string. In that case, +HELPSTRING is a format string with one or two %s specifiers +for preview's clicks, displayed as a help-echo. CLICK1 and CLICK2 +are functions to call on preview's clicks." + `(let ((resmap ,(or map '(make-sparse-keymap)))) + ,@(if click1 + `((define-key resmap preview-button-1 ,click1))) + ,@(if click2 + `((define-key resmap preview-button-2 ,click2))) + ,(if glyph + `(propertize + "x" + 'display ,glyph + 'mouse-face 'highlight + 'help-echo + ,(if (stringp helpstring) + (format helpstring preview-button-1 preview-button-2) + `(format ,helpstring preview-button-1 preview-button-2)) + 'keymap resmap) + 'resmap))) + +(defvar preview-overlay nil) + +(put 'preview-overlay + 'modification-hooks + '(preview-handle-modification)) + +(put 'preview-overlay + 'insert-in-front-hooks + '(preview-handle-insert-in-front)) + +(put 'preview-overlay + 'insert-behind-hooks + '(preview-handle-insert-behind)) + +;; We have to fake our way around atomicity. + +;; Here is the beef: for best intuitiveness, we want to have +;; insertions be carried out as expected before iconized text +;; passages, but we want to insert *into* the overlay when not +;; iconized. A preview that has become empty can not get content +;; again: we remove it. A disabled preview needs no insert-in-front +;; handler. + +(defvar preview-change-list nil + "List of tentatively changed overlays.") + +(defcustom preview-dump-threshold + "^ *\\\\begin *{document}[ %]*$" + "*Regexp denoting end of preamble. +This is the location up to which preamble changes are considered +to require redumping of a format." + :group 'preview-latex + :type 'string) + +(defun preview-preamble-changed-function + (ov after-change beg end &optional length) + "Hook function for change hooks on preamble. +See info node `(elisp) Overlay Properties' for +definition of OV, AFTER-CHANGE, BEG, END and LENGTH." + (let ((format-cons (overlay-get ov 'format-cons))) + (preview-unwatch-preamble format-cons) + (preview-format-kill format-cons) + (setcdr format-cons t))) + +(defun preview-watch-preamble (file command format-cons) + "Set up a watch on master file FILE. +FILE can be an associated buffer instead of a filename. +COMMAND is the command that generated the format. +FORMAT-CONS contains the format info for the main +format dump handler." + (let ((buffer (if (bufferp file) + file + (find-buffer-visiting file))) ov) + (setcdr + format-cons + (cons command + (when buffer + (with-current-buffer buffer + (save-excursion + (save-restriction + (widen) + (goto-char (point-min)) + (unless (re-search-forward preview-dump-threshold nil t) + (error "Can't find preamble of `%s'" file)) + (setq ov (make-overlay (point-min) (point))) + (overlay-put ov 'format-cons format-cons) + (overlay-put ov 'insert-in-front-hooks + '(preview-preamble-changed-function)) + (overlay-put ov 'modification-hooks + '(preview-preamble-changed-function)) + ov)))))))) + +(defun preview-unwatch-preamble (format-cons) + "Stop watching a format on FORMAT-CONS. +The watch has been set up by `preview-watch-preamble'." + (when (consp (cdr format-cons)) + (when (cddr format-cons) + (delete-overlay (cddr format-cons))) + (setcdr (cdr format-cons) nil))) + +(defun preview-register-change (ov) + "Register not yet changed OV for verification. +This stores the old contents of the overlay in the +`preview-prechange' property and puts the overlay into +`preview-change-list' where `preview-check-changes' will +find it at some later point of time." + (unless (overlay-get ov 'preview-prechange) + (if (eq (overlay-get ov 'preview-state) 'disabled) + (overlay-put ov 'preview-prechange t) + (overlay-put ov 'preview-prechange + (save-restriction + (widen) + (buffer-substring-no-properties + (overlay-start ov) (overlay-end ov))))) + (push ov preview-change-list))) + +(defun preview-check-changes () + "Check whether the contents under the overlay have changed. +Disable it if that is the case. Ignores text properties." + (dolist (ov preview-change-list) + (condition-case nil + (with-current-buffer (overlay-buffer ov) + (let ((text (save-restriction + (widen) + (buffer-substring-no-properties + (overlay-start ov) (overlay-end ov))))) + (if (zerop (length text)) + (preview-delete ov) + (unless + (or (eq (overlay-get ov 'preview-state) 'disabled) + (preview-relaxed-string= + text (overlay-get ov 'preview-prechange))) + (overlay-put ov 'insert-in-front-hooks nil) + (overlay-put ov 'insert-behind-hooks nil) + (preview-disable ov))))) + (error nil)) + (overlay-put ov 'preview-prechange nil)) + (setq preview-change-list nil)) + +(defun preview-handle-insert-in-front + (ov after-change beg end &optional length) + "Hook function for `insert-in-front-hooks' property. +See info node `(elisp) Overlay Properties' for +definition of OV, AFTER-CHANGE, BEG, END and LENGTH." + (if after-change + (unless undo-in-progress + (if (eq (overlay-get ov 'preview-state) 'active) + (move-overlay ov end (overlay-end ov)))) + (preview-register-change ov))) + +(defun preview-handle-insert-behind + (ov after-change beg end &optional length) + "Hook function for `insert-behind-hooks' property. +This is needed in case `insert-before-markers' is used at the +end of the overlay. See info node `(elisp) Overlay Properties' +for definition of OV, AFTER-CHANGE, BEG, END and LENGTH." + (if after-change + (unless undo-in-progress + (if (eq (overlay-get ov 'preview-state) 'active) + (move-overlay ov (overlay-start ov) beg))) + (preview-register-change ov))) + +(defun preview-handle-modification + (ov after-change beg end &optional length) + "Hook function for `modification-hooks' property. +See info node `(elisp) Overlay Properties' for +definition of OV, AFTER-CHANGE, BEG, END and LENGTH." + (unless after-change + (preview-register-change ov))) + +(defun preview-toggle (ov &optional arg event) + "Toggle visibility of preview overlay OV. +ARG can be one of the following: t displays the overlay, +nil displays the underlying text, and 'toggle toggles. +If EVENT is given, it indicates the window where the event +occured, either by being a mouse event or by directly being +the window in question. This may be used for cursor restoration +purposes." + (let ((old-urgent (preview-remove-urgentization ov)) + (preview-state + (if (if (eq arg 'toggle) + (null (eq (overlay-get ov 'preview-state) 'active)) + arg) + 'active + 'inactive)) + (strings (overlay-get ov 'strings))) + (unless (eq (overlay-get ov 'preview-state) 'disabled) + (overlay-put ov 'preview-state preview-state) + (if (eq preview-state 'active) + (progn + (overlay-put ov 'category 'preview-overlay) + (if (eq (overlay-start ov) (overlay-end ov)) + (overlay-put ov 'before-string (car strings)) + (dolist (prop '(display keymap mouse-face help-echo)) + (overlay-put ov prop + (get-text-property 0 prop (car strings)))) + (overlay-put ov 'before-string nil)) + (overlay-put ov 'face nil)) + (dolist (prop '(display keymap mouse-face help-echo)) + (overlay-put ov prop nil)) + (overlay-put ov 'face 'preview-face) + (unless (cdr strings) + (setcdr strings (preview-inactive-string ov))) + (overlay-put ov 'before-string (cdr strings))) + (if old-urgent + (apply 'preview-add-urgentization old-urgent)))) + (if event + (preview-restore-position + ov + (if (windowp event) + event + (posn-window (event-start event)))))) + +(defsubst preview-buffer-recode-system (base) + "This is supposed to translate unrepresentable base encodings +into something that can be used safely for byte streams in the +run buffer. A noop for Emacs." + base) + +(defun preview-mode-setup () + "Setup proper buffer hooks and behavior for previews." + (set (make-local-variable 'desktop-save-buffer) + #'desktop-buffer-preview-misc-data) + (add-hook 'pre-command-hook #'preview-mark-point nil t) + (add-hook 'post-command-hook #'preview-move-point nil t) + (easy-menu-add preview-menu LaTeX-mode-map) + (unless preview-tb-icon + (setq preview-tb-icon (preview-filter-specs preview-tb-icon-specs))) + (when preview-tb-icon + (define-key LaTeX-mode-map [tool-bar preview] + `(menu-item "Preview at point" preview-at-point + :image ,preview-tb-icon + :help "Preview on/off at point"))) + (when buffer-file-name + (let* ((filename (expand-file-name buffer-file-name)) + format-cons) + (when (string-match (concat "\\." TeX-default-extension "\\'") + filename) + (setq filename (substring filename 0 (match-beginning 0)))) + (setq format-cons (assoc filename preview-dumped-alist)) + (when (consp (cdr format-cons)) + (preview-unwatch-preamble format-cons) + (preview-watch-preamble (current-buffer) + (cadr format-cons) + format-cons))))) + +(defvar preview-marker (make-marker) + "Marker for fake intangibility.") + +(defvar preview-temporary-opened nil) + +(defvar preview-last-location nil + "Restored cursor position marker for reopened previews.") +(make-variable-buffer-local 'preview-last-location) + +(defun preview-mark-point () + "Mark position for fake intangibility." + (when (eq (get-char-property (point) 'preview-state) 'active) + (unless preview-last-location + (setq preview-last-location (make-marker))) + (set-marker preview-last-location (point)) + (set-marker preview-marker (point)) + (preview-move-point)) + (set-marker preview-marker (point))) + +(defun preview-restore-position (ov window) + "Tweak position after opening/closing preview. +The treated overlay OV has been triggered in WINDOW. This function +records the original buffer position for reopening, or restores it +after reopening. Note that by using the mouse, you can open/close +overlays not in the active window." + (when (eq (overlay-buffer ov) (window-buffer window)) + (with-current-buffer (overlay-buffer ov) + (if (eq (overlay-get ov 'preview-state) 'active) + (setq preview-last-location + (set-marker (or preview-last-location (make-marker)) + (window-point window))) + (when (and + (markerp preview-last-location) + (eq (overlay-buffer ov) (marker-buffer preview-last-location)) + (< (overlay-start ov) preview-last-location) + (> (overlay-end ov) preview-last-location)) + (set-window-point window preview-last-location)))))) + +(defun preview-move-point () + "Move point out of fake-intangible areas." + (preview-check-changes) + (let* (newlist (pt (point)) (lst (overlays-at pt)) distance) + (setq preview-temporary-opened + (dolist (ov preview-temporary-opened newlist) + (and (overlay-buffer ov) + (eq (overlay-get ov 'preview-state) 'inactive) + (if (and (eq (overlay-buffer ov) (current-buffer)) + (or (<= pt (overlay-start ov)) + (>= pt (overlay-end ov)))) + (preview-toggle ov t) + (push ov newlist))))) + (when lst + (if (or disable-point-adjustment + global-disable-point-adjustment + (preview-auto-reveal-p + preview-auto-reveal + (setq distance + (and (eq (marker-buffer preview-marker) + (current-buffer)) + (- pt (marker-position preview-marker)))))) + (preview-open-overlays lst) + (while lst + (setq lst + (if (and + (eq (overlay-get (car lst) 'preview-state) 'active) + (> pt (overlay-start (car lst)))) + (overlays-at + (setq pt (if (and distance (< distance 0)) + (overlay-start (car lst)) + (overlay-end (car lst))))) + (cdr lst)))) + (goto-char pt))))) + +(defun preview-open-overlays (list &optional pos) + "Open all previews in LIST, optionally restricted to enclosing POS." + (dolist (ovr list) + (when (and (eq (overlay-get ovr 'preview-state) 'active) + (or (null pos) + (and + (> pos (overlay-start ovr)) + (< pos (overlay-end ovr))))) + (preview-toggle ovr) + (push ovr preview-temporary-opened)))) + +(defadvice replace-highlight (before preview) + "Make `query-replace' open preview text about to be replaced." + (preview-open-overlays + (overlays-in (ad-get-arg 0) (ad-get-arg 1)))) + +(defcustom preview-query-replace-reveal t + "*Make `query-replace' autoreveal previews." + :group 'preview-appearance + :type 'boolean + :require 'preview + :set (lambda (symbol value) + (set-default symbol value) + (if value + (ad-enable-advice 'replace-highlight 'before 'preview) + (ad-disable-advice 'replace-highlight 'before 'preview)) + (ad-activate 'replace-highlight)) + :initialize #'custom-initialize-reset) + +;; Check whether the four-argument form of `face-attribute' exists. +;; If not, we will get a `wrong-number-of-arguments' error thrown. +;; Use `defun' instead of `defsubst' here so that the decision may be +;; reverted at load time if you are compiling with one Emacs and using +;; another. +(if (condition-case nil + (progn + (face-attribute 'default :height nil nil) + t) + (wrong-number-of-arguments nil)) + + (defun preview-inherited-face-attribute (face attribute &optional inherit) + "Fetch face attribute while adhering to inheritance. +This searches FACE for an ATTRIBUTE, using INHERIT +for resolving unspecified or relative specs. See the fourth +argument of function `face-attribute' for details." + (face-attribute face attribute nil inherit)) + + (defun preview-inherited-face-attribute (face attribute &optional inherit) + "Fetch face attribute while adhering to inheritance. +This searches FACE for an ATTRIBUTE. If it is 'unspecified, +first inheritance is consulted (if INHERIT is non-NIL), then +INHERIT is searched if it is a face or a list of faces. +Relative specs are evaluated recursively until they get absolute or +are not resolvable. Relative specs are float values." + (let ((value (face-attribute face attribute))) + (when inherit + (setq inherit + (append + (let ((ancestors (face-attribute face :inherit))) + (cond ((facep ancestors) (list ancestors)) + ((consp ancestors) ancestors))) + (cond ((facep inherit) (list inherit)) + ((consp inherit) inherit))))) + (cond ((null inherit) value) + ((floatp value) + (let ((avalue + (preview-inherited-face-attribute + (car inherit) attribute (or (cdr inherit) t)))) + (cond ((integerp avalue) + (round (* avalue value))) + ((floatp avalue) + (* value avalue)) + (t value)))) + ((eq value 'unspecified) + (preview-inherited-face-attribute + (car inherit) attribute (or (cdr inherit) t))) + (t value))))) + +(defun preview-get-colors () + "Return colors from the current display. +Fetches the current screen colors and makes a vector +of colors as numbers in the range 0..65535. +Pure borderless black-on-white will return triple NIL. +The fourth value is the transparent border thickness." + (let + ((bg (color-values (preview-inherited-face-attribute + 'preview-reference-face :background 'default))) + (fg (color-values (preview-inherited-face-attribute + 'preview-reference-face :foreground 'default))) + (mask (preview-get-heuristic-mask))) + (if (equal '(65535 65535 65535) bg) + (setq bg nil)) + (if (equal '(0 0 0) fg) + (setq fg nil)) + (unless (and (numberp preview-transparent-border) + (consp mask) (integerp (car mask))) + (setq mask nil)) + (vector bg fg mask preview-transparent-border))) + +(defmacro preview-mark-active () + "Return t if the mark is active." + 'mark-active) + +(defun preview-import-image (image) + "Convert the printable IMAGE rendition back to an image." + (cond ((stringp image) + (propertize image 'face 'preview-face)) + ((eq (car image) 'image) + image) + (t + (preview-create-icon-1 (nth 0 image) + (nth 1 image) + (nth 2 image) + (if (< (length image) 4) + (preview-get-heuristic-mask) + (nth 3 image)))))) + +(defsubst preview-supports-image-type (imagetype) + "Check if IMAGETYPE is supported." + (image-type-available-p imagetype)) + +(provide 'prv-emacs) +;;; prv-emacs.el ends here diff -Nru auctex-11.88/prv-install.el auctex-11.90/prv-install.el --- auctex-11.88/prv-install.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/prv-install.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,114 @@ +;;; prv-install.el --- Complicated install-time magic for preview-latex. + +;; Copyright (C) 2002, 2005, 2014 Free Software Foundation, Inc. + +;; Author: David Kastrup +;; Keywords: convenience, tex, wp + +;; This file is free software; you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; This file is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with GNU Emacs; see the file COPYING. If not, write to +;; the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, +;; Boston, MA 02110-1301, USA. + +;;; Commentary: + +;; This contains package-building stuff and other install-time magic. +;; It may well contain Emacs-version-specific code, but certain +;; functions here should be *callable* from any Emacs version. + +;;; Code: + +(defun preview-make-package () + "Do anything required to make a package in this version of Emacs, +other than actually copying the Lisp files. + +Takes arguments on the comamnd line: the package directory and any +number of Lisp files to generate autoloads from. + +Does nothing in Emacsen that do not support a package system." + (if (featurep 'xemacs) + (preview-make-package-xemacs)) + (setq command-line-args-left nil)) + +(defun preview-make-package-xemacs () + "Do anything required to make a package in XEmacs, +other than actually copying the Lisp files. + +Generates auto-autoloads, custom-loads, and package metadata file +in the right locations. Takes from the command line the package directory, +package name, and version (to be evaluated), followed by a file to append." + (let* ((package-dir (pop command-line-args-left)) + (package-name (pop command-line-args-left)) + (release-version (eval (read (pop command-line-args-left)))) + (author-version (eval (read (pop command-line-args-left)))) + append-file + (lisp-dir (expand-file-name (format "lisp/%s/" package-name) + package-dir)) + (metadata (expand-file-name "_pkg.el" lisp-dir)) + (custom-load (expand-file-name "custom-load.el" lisp-dir)) + (generated-autoload-file (expand-file-name "auto-autoloads.el" + lisp-dir)) + (si:message (symbol-function 'message)) + make-backup-files noninteractive) + ;; Delete and regenerate the custom-load file. + (when (file-exists-p custom-load) + (delete-file custom-load)) + (when (file-exists-p (concat custom-load "c")) + (delete-file (concat custom-load "c"))) + (Custom-make-dependencies lisp-dir) + (when (file-exists-p custom-load) + (require 'cus-load) + (byte-compile-file custom-load)) + ; Delete and regenerate the package metadata file. + ; There is no compiled form of this file. + (message "Updating metadata for the directory %s..." lisp-dir) + (with-temp-file metadata + (insert + (concat ";;;###autoload\n" + "(package-provide '" package-name "\n" + " :version " + release-version "\n" + " :author-version " + "\"" author-version "\"\n" + " :type 'regular)\n"))) + ; Delete and regenerate the auto-autoloads file. + (message "Updating autoloads for the directory %s..." lisp-dir) + (when (file-exists-p generated-autoload-file) + (delete-file generated-autoload-file)) + (when (file-exists-p (concat generated-autoload-file "c")) + (delete-file (concat generated-autoload-file "c"))) + (defun message (fmt &rest args) + "Ignore useless messages while generating autoloads." + (cond ((and (string-equal "Generating autoloads for %s..." fmt) + (file-exists-p (file-name-nondirectory (car args)))) + (funcall si:message + fmt (file-name-nondirectory (car args)))) + ((string-equal "No autoloads found in %s" fmt)) + ((string-equal "Generating autoloads for %s...done" fmt)) + (t (apply si:message fmt args)))) + (unwind-protect + (cond ((fboundp 'update-autoloads-from-directory) + (update-autoloads-from-directory lisp-dir)) + ((fboundp 'update-autoload-files) + (update-autoload-files (list lisp-dir) "auctex")) + (t (error "Failed to generate autoloads."))) + (fset 'message si:message)) + (while (setq append-file (pop command-line-args-left)) + (when (file-exists-p generated-autoload-file) + (with-temp-buffer (insert-file-contents append-file) + (append-to-file (point-min) (point-max) + generated-autoload-file)))) + (byte-compile-file generated-autoload-file))) + + +;;; prv-install.el ends here diff -Nru auctex-11.88/prv-xemacs.el auctex-11.90/prv-xemacs.el --- auctex-11.88/prv-xemacs.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/prv-xemacs.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,743 @@ +;;; prv-xemacs.el --- XEmacs support for preview-latex + +;; Copyright (C) 2001-2006 Free Software Foundation, Inc. + +;; Author: David Kastrup +;; Keywords: convenience, tex, wp + +;; This file is free software; you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; This file is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with GNU Emacs; see the file COPYING. If not, write to +;; the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, +;; Boston, MA 02110-1301, USA. + +;;; Commentary: + +;; + +;;; Code: + +(require 'overlay) +(require 'tex-site) +(require 'tex) +(require 'latex) + +;; Compatibility macros and functions. + +(eval-when-compile + (defvar preview-compatibility-macros nil + "List of macros only present when compiling/loading uncompiled.") + + (defmacro preview-defmacro (name &rest rest) + (when (featurep 'xemacs) + (push + (if (fboundp name) + (cons name (symbol-function name)) + name) + preview-compatibility-macros) + `(eval-when-compile (defmacro ,name ,@rest)))) + (push 'preview-defmacro preview-compatibility-macros)) + +(preview-defmacro assoc-default (key alist test) + `(cdr (assoc* ,key ,alist + :test #'(lambda(a b) (funcall ,test b a))))) + +(preview-defmacro display-mm-height () '(device-mm-height)) +(preview-defmacro display-mm-width () '(device-mm-width)) +(preview-defmacro display-pixel-height () '(device-pixel-height)) +(preview-defmacro display-pixel-width () '(device-pixel-width)) +(preview-defmacro line-beginning-position () '(point-at-bol)) +(preview-defmacro line-end-position () '(point-at-eol)) + +;; This is not quite the case, but unless we're playing with duplicable extents, +;; the two are equivalent in XEmacs. +(preview-defmacro match-string-no-properties (&rest args) + `(match-string ,@args)) + +(preview-defmacro face-attribute (face attr) + (cond + ((eq attr :height) + `(round (/ (* ,(/ 720.0 25.4) + (face-height ,face) + (device-mm-height)) + (device-pixel-height)))) + ((eq attr :foreground) + `(face-foreground-instance ,face)) + ((eq attr :background) + `(face-background-instance ,face)) + (t + (error 'unimplemented (format "Don't know how to fake %s" attr))))) + +(preview-defmacro make-temp-file (prefix dir-flag) + (if (not dir-flag) + (error 'unimplemented "Can only fake make-temp-file for directories")) + `(let (file) + (while (condition-case () + (progn + (setq file + (make-temp-name ,prefix)) + (make-directory file) + nil) + (file-already-exists t)) + nil) + file)) + +(preview-defmacro set-buffer-multibyte (multibyte) + "Set the representation type of the current buffer. If MULTIBYTE +is non-`nil', the buffer becomes multibyte. If MULTIBYTE is +`nil', the buffer becomes unibyte. + +Because XEmacs does not implement multibyte versus unibyte buffers +per se (they just have encodings which may be unibyte or multibyte), +this is only implemented for the `nil' case." + (if (not multibyte) + `(if (fboundp 'set-buffer-file-coding-system) + (set-buffer-file-coding-system 'binary)) + (error 'unimplemented "`set-buffer-multibyte is only implemented for the binary case."))) + +(preview-defmacro next-single-char-property-change (pos prop) + "Return the position of next property change for a specific property. +This is like `next-single-property-change', except that if no +change is found before the end of the buffer, it returns +\(point-max) rather than `nil'." + `(or (next-single-property-change ,pos ,prop) + (point-max))) + +(preview-defmacro previous-single-char-property-change (pos prop) + "Return the position of previous property change for a specific property. +This is like `next-single-property-change', except that if no +change is found before the end of the buffer, it returns +\(point-min) rather than `nil'." + `(or (previous-single-property-change ,pos ,prop) + (point-min))) + +(preview-defmacro with-temp-message (message &rest body) + "Display MESSAGE temporarily if non-nil while BODY is evaluated. +The original message is restored to the echo area after BODY has finished. +The value returned is the value of the last form in BODY. +MESSAGE is written to the message log buffer if `message-log-max' is non-nil. +If MESSAGE is nil, the echo area and message log buffer are unchanged. +Use a MESSAGE of \"\" to temporarily clear the echo area. + +The message is displayed with label `progress'; see `display-message'." + (let ((current-message (make-symbol "current-message")) + (temp-message (make-symbol "with-temp-message"))) + `(let ((,temp-message ,message) + (,current-message)) + (unwind-protect + (progn + (when ,temp-message + (setq ,current-message (current-message)) + (display-message 'progress ,temp-message)) + ,@body) + (and ,temp-message + (if ,current-message + (display-message 'progress ,current-message) + (message nil))))))) + +(defun preview-mark-active () + "Return t if the mark is active." + (and (mark) + t)) + +(defvar preview-transparent-border) + +;; Images. + +(defsubst preview-supports-image-type (imagetype) + "Return whether IMAGETYPE is supported by XEmacs." + (memq imagetype (image-instantiator-format-list))) + +;; TODO: Generalize this so we can create the fixed icons using it. + +;; Argh, dired breaks :file :( +;; This is a temporary kludge to get around that until a fixed dired +;; or a fixed XEmacs is released. + +(defun preview-create-icon-1 (file type ascent) + "Create an icon from FILE, image TYPE and ASCENT." + (let ((glyph + (make-glyph + (vector type + :file file + :data (with-temp-buffer + (insert-file-contents-literally file) + (buffer-string)))))) + (set-glyph-baseline glyph ascent) + glyph)) + +(defun preview-create-icon (file type ascent border) + "Create an icon from FILE, image TYPE, ASCENT and BORDER." + (list + (preview-create-icon-1 file type ascent) + file type ascent border)) + +(defvar preview-ascent-spec) + +(put 'preview-filter-specs :type + #'(lambda (keyword value &rest args) + (if (preview-supports-image-type value) + (let* (preview-ascent-spec + (glyph (make-glyph `[,value + ,@(preview-filter-specs-1 args)]))) + (when preview-ascent-spec + (set-glyph-baseline glyph preview-ascent-spec)) + glyph) + (throw 'preview-filter-specs nil)))) + +(put 'preview-filter-specs :ascent + #'(lambda (keyword value &rest args) + (setq preview-ascent-spec value) + (preview-filter-specs-1 args))) + +;; No defcustom here: does not seem to make sense. + +(defvar preview-tb-icon-specs + '((:type xpm :file "prvtex-cap-up.xpm" :ascent 75) + (:type xbm :file "prvtex24.xbm" :ascent 75))) + +(defvar preview-tb-icon nil) + +;; Image frobbing. + +(defun preview-add-urgentization (fun ov &rest rest) + "Cause FUN (function call form) to be called when redisplayed. +FUN must be a form with OV as first argument, +REST as the remainder, returning T. An alternative is to give +what `preview-remove-urgentization' returns, this will reinstate +the previous state." + (set-extent-initial-redisplay-function + ov + (if (null rest) + fun + `(lambda (ov) (,fun ,ov ,@rest))))) + +(defun preview-remove-urgentization (ov) + "Undo urgentization of OV by `preview-add-urgentization'. +Returns the old arguments to `preview-add-urgentization' +if there was any urgentization." + (prog1 (list (extent-property ov 'initial-redisplay-function) ov) + (set-extent-initial-redisplay-function ov nil))) + +(defsubst preview-icon-copy (icon) + "Prepare for a later call of `preview-replace-active-icon'." + icon) + +(defsubst preview-replace-active-icon (ov replacement) + "Replace the active Icon in OV by REPLACEMENT, another icon." + (set-extent-property ov 'preview-image replacement) + (add-text-properties 0 1 (list 'end-glyph (car replacement)) + (car (extent-property ov 'strings))) + (if (eq (extent-property ov 'preview-state) 'active) + (set-extent-end-glyph ov (car replacement)))) + +(defvar preview-button-1 'button2) +(defvar preview-button-2 'button3) + +;; The `x' and invisible junk is because XEmacs doesn't bother to insert +;; the extents of a zero-length string. Bah. +;; When this is fixed, we'll autodetect this case and use zero-length +;; strings where possible. +(defmacro preview-make-clickable (&optional map glyph helpstring click1 click2) + "Generate a clickable string or keymap. +If MAP is non-nil, it specifies a keymap to add to, otherwise +a new one is created. If GLYPH is given, the result is made +to display it wrapped in a string. In that case, +HELPSTRING is a format string with one or two %s specifiers +for preview's clicks, displayed as a help-echo. CLICK1 and CLICK2 +are functions to call on preview's clicks." + `(let (,@(and glyph '((res (copy-sequence "x")))) + (resmap ,(or map '(make-sparse-keymap)))) + ,@(if click1 + `((define-key resmap preview-button-1 ,click1))) + ,@(if click2 + `((define-key resmap preview-button-2 ,click2))) + ,@(if glyph + `((add-text-properties + 0 1 + (list 'end-glyph ,glyph + 'mouse-face 'highlight + 'preview-balloon-help + ,(if (stringp helpstring) + (format helpstring preview-button-1 preview-button-2) + `(format ,helpstring preview-button-1 preview-button-2)) + 'preview-keymap resmap) + res) + res) + '(resmap)))) + +(defun preview-click-reroute (ov event) + "If OV received a click EVENT on a glyph, reroute to special map." + (let ((oldmap (extent-keymap ov))) + (unwind-protect + (progn + (set-extent-keymap ov + (and (event-over-glyph-p event) + (extent-property ov 'preview-keymap))) + (dispatch-event event)) + (set-extent-keymap ov oldmap)))) + +(defun preview-reroute-map (ov) + "Get rerouting keymap for OV for catching glyph clicks only." + (let ((map (make-sparse-keymap)) + (fun `(lambda (event) + (interactive "e") + (preview-click-reroute ,ov event)))) + (define-key map preview-button-1 fun) + (define-key map preview-button-2 fun) + map)) + +(defun preview-balloon-reroute (ov) + "Give balloon help only if over glyph of OV." + (and (eq ov (event-glyph-extent (mouse-position-as-motion-event))) + (extent-property ov 'preview-balloon-help))) + +;; Most of the changes to this are junking the use of overlays; +;; a bit of it is different, and there's a little extra paranoia. + +;; We also have to move the image from the begin to the end-glyph +;; whenever the extent is invisible because of a bug in XEmacs-21.4's +;; redisplay engine. +(defun preview-toggle (ov &optional arg event) + "Toggle visibility of preview overlay OV. +ARG can be one of the following: t displays the overlay, +nil displays the underlying text, and 'toggle toggles. +If EVENT is given, it indicates the window where the event +occured, either by being a mouse event or by directly being +the window in question. This may be used for cursor restoration +purposes." + (if (not (bufferp (extent-object ov))) + (error 'wrong-type-argument ov)) + (let ((old-urgent (preview-remove-urgentization ov)) + (preview-state + (if (if (eq arg 'toggle) + (not (eq (extent-property ov 'preview-state) 'active)) + arg) + 'active + 'inactive)) + (strings (extent-property ov 'strings))) + (unless (eq (extent-property ov 'preview-state) 'disabled) + (set-extent-property ov 'preview-state preview-state) + (if (eq preview-state 'active) + (progn + (unless (extent-keymap ov) + (set-extent-keymap ov (preview-reroute-map ov)) + (set-extent-property ov 'balloon-help #'preview-balloon-reroute)) + (set-extent-begin-glyph ov nil) + (set-extent-end-glyph-layout ov 'text) + (set-extent-end-glyph ov (get-text-property + 0 'end-glyph (car strings))) + (set-extent-properties ov '(invisible t + isearch-open-invisible ignore + isearch-invisible t + face nil)) + (dolist (prop '(preview-keymap + mouse-face preview-balloon-help)) + (set-extent-property ov prop + (get-text-property 0 prop (car strings))))) + (unless (cdr strings) + (setcdr strings (preview-inactive-string ov))) + (set-extent-end-glyph ov nil) + (set-extent-begin-glyph-layout ov 'text) + (set-extent-begin-glyph ov (get-text-property + 0 'end-glyph (cdr strings))) + (set-extent-properties ov `(face preview-face + mouse-face nil + invisible nil + isearch-invisible nil + preview-keymap + ,(get-text-property + 0 'preview-keymap (cdr strings)) + preview-balloon-help + ,(get-text-property + 0 'preview-balloon-help (cdr strings))))) + (if old-urgent + (apply 'preview-add-urgentization old-urgent)))) + (if event + (preview-restore-position + ov + (if (windowp event) + event + (event-window event))))) + +; Does FALLBACKS need to be implemented? Likely not. +(defmacro preview-inherited-face-attribute (face attribute &optional + fallbacks) + "Fetch face attribute while adhering to inheritance. +This searches FACE and all its ancestors for an ATTRIBUTE. +FALLBACKS is unused." + `(face-attribute ,face ,attribute)) + +(defun preview-get-colors () + "Return colors from the current display. +Fetches the current screen colors and makes a vector +of colors as numbers in the range 0..65535. +Pure borderless black-on-white will return quadruple NIL." + (let + ((bg (color-instance-rgb-components (preview-inherited-face-attribute + 'preview-reference-face :background 'default))) + (fg (color-instance-rgb-components (preview-inherited-face-attribute + 'preview-reference-face :foreground 'default)))) + (if (equal '(65535 65535 65535) bg) + (setq bg nil)) + (if (equal '(0 0 0) fg) + (setq fg nil)) + (vector bg fg nil nil))) + +(defcustom preview-use-balloon-help nil + "*Is balloon help enabled in preview-latex?" + :group 'preview-appearance + :type 'boolean) + +(defcustom preview-buffer-recoding-alist + (if (and (= emacs-major-version 21) + (< emacs-minor-version 5)) + '((utf-8-unix . raw-text-unix) + (utf-8-dos . raw-text-dos) + (utf-8-mac . raw-text-mac) + (utf-8 . raw-text))) + "Translate buffer encodings into process encodings. +TeX is sometimes bad dealing with 8bit encodings and rather bad +dealing with multibyte encodings. So the process encoding output +might need to get temporarily reprocessed into the original byte +stream before the buffer characters can be identified. XEmacs +21.4 is rather bad at preserving incomplete multibyte characters +in that process. This variable makes it possible to use a +reconstructable coding system in the run buffer instead. Specify +an alist of base coding system names here, which you can get +using + + \(coding-system-name (coding-system-base buffer-file-coding-system)) + +in properly detected buffers." + :group 'preview-latex + :type '(repeat (cons symbol symbol))) + +(defun preview-buffer-recode-system (base) + "This is supposed to translate unrepresentable base encodings + into something that can be used safely for byte streams in the + run buffer. XEmacs mule-ucs is so broken that this may be + needed." + (or (cdr (assq (coding-system-name base) + preview-buffer-recoding-alist)) + base)) + +(defun preview-mode-setup () + "Setup proper buffer hooks and behavior for previews." + (set (make-local-variable 'desktop-save-buffer) + #'desktop-buffer-preview-misc-data) + (mapc #'make-local-hook + '(pre-command-hook post-command-hook + before-change-functions after-change-functions)) + (add-hook 'pre-command-hook #'preview-mark-point nil t) + (add-hook 'post-command-hook #'preview-move-point nil t) + (and preview-use-balloon-help + (not (and (boundp 'balloon-help-mode) + balloon-help-mode)) + (balloon-help-minor-mode 1)) + (add-hook 'before-change-functions #'preview-handle-before-change nil t) + (add-hook 'after-change-functions #'preview-handle-after-change nil t) + (easy-menu-add preview-menu) + (unless preview-tb-icon + (setq preview-tb-icon (preview-filter-specs + preview-tb-icon-specs)) + (when preview-tb-icon + (setq preview-tb-icon + (vector + (list preview-tb-icon) + #'preview-at-point + t + "Preview on/off at point")))) +;;; [Courtesy Stephen J. Turnbull, with some modifications +;;; Message-ID: <87el9fglsj.fsf@tleepslib.sk.tsukuba.ac.jp> +;;; I could not have figured this out for the world] +;;; Hm, there really ought to be a way to get the spec that would be +;;; instantiated in a given domain + (when preview-tb-icon + (let ((tb (cdadar (or (specifier-spec-list default-toolbar (current-buffer)) + (specifier-spec-list default-toolbar 'global))))) + (unless (member preview-tb-icon tb) + (set-specifier default-toolbar + (append tb (list preview-tb-icon)) + (current-buffer))))) + (when buffer-file-name + (let* ((filename (expand-file-name buffer-file-name)) + format-cons) + (when (string-match (concat "\\." TeX-default-extension "\\'") + filename) + (setq filename (substring filename 0 (match-beginning 0)))) + (setq format-cons (assoc filename preview-dumped-alist)) + (when (consp (cdr format-cons)) + (preview-unwatch-preamble format-cons) + (preview-watch-preamble (current-buffer) + (cadr format-cons) + format-cons))))) + +(defvar preview-marker (make-marker) + "Marker for fake intangibility.") + +(defvar preview-temporary-opened nil) + +(defvar preview-last-location nil + "Restored cursor position marker for reopened previews.") +(make-variable-buffer-local 'preview-last-location) + +(defun preview-mark-point () + "Mark position for fake intangibility." + (when (eq (get-char-property (point) 'preview-state) 'active) + (unless preview-last-location + (setq preview-last-location (make-marker))) + (set-marker preview-last-location (point)) + (set-marker preview-marker (point)) + (preview-move-point)) + (set-marker preview-marker (point))) + +(defun preview-restore-position (ov window) + "Tweak position after opening/closing preview. +The treated overlay OV has been triggered in WINDOW. This function +records the original buffer position for reopening, or restores it +after reopening. Note that by using the mouse, you can open/close +overlays not in the active window." + (when (eq (extent-object ov) (window-buffer window)) + (with-current-buffer (extent-object ov) + (if (eq (extent-property ov 'preview-state) 'active) + (setq preview-last-location + (set-marker (or preview-last-location (make-marker)) + (window-point window))) + (when (and + (markerp preview-last-location) + (eq (extent-object ov) (marker-buffer preview-last-location)) + (< (extent-start-position ov) preview-last-location) + (> (extent-end-position ov) preview-last-location)) + (set-window-point window preview-last-location)))))) + +(defun preview-move-point () + "Move point out of fake-intangible areas." + (preview-check-changes) + (let (newlist (pt (point)) distance) + (setq preview-temporary-opened + (dolist (ov preview-temporary-opened newlist) + (and (extent-object ov) + (not (extent-detached-p ov)) + (eq (extent-property ov 'preview-state) 'inactive) + (if (and (eq (extent-object ov) (current-buffer)) + (or (<= pt (extent-start-position ov)) + (>= pt (extent-end-position ov)))) + (preview-toggle ov t) + (push ov newlist))))) + (if (preview-auto-reveal-p + preview-auto-reveal + (setq distance + (and (eq (marker-buffer preview-marker) + (current-buffer)) + (- pt (marker-position preview-marker))))) + (map-extents #'preview-open-overlay nil + pt pt nil nil 'preview-state 'active) + (let (newpt) + (while (setq newpt + (map-extents #'preview-skip-overlay nil + pt pt (and distance (< distance 0)) nil + 'preview-state 'active)) + (setq pt newpt)) + (goto-char pt))))) + +(defun preview-skip-overlay (ovr backward) + "Skip point over OVR, BACKWARD is set if backwards. +Returns new position or NIL." + (if backward + (and (> (extent-start-position ovr) (point-min)) + (1- (extent-start-position ovr))) + (and (<= (extent-end-position ovr) (point-max)) + (> (extent-end-position ovr) (extent-start-position ovr)) + (extent-end-position ovr)))) + +(defun preview-open-overlay (ovr ignored) + "Open the active preview OVR, IGNORED gets ignored. +NIL is returned: this is for `map-extents'." + (preview-toggle ovr) + (push ovr preview-temporary-opened) + nil) + +(defadvice isearch-highlight (before preview protect disable) + "Make isearch open preview text that's a search hit. +Also make `query-replace' open preview text about to be replaced." + (map-extents #'preview-open-overlay nil + (ad-get-arg 0) (ad-get-arg 1) + nil nil 'preview-state 'active)) + +(defcustom preview-query-replace-reveal t + "*Make `isearch' and `query-replace' autoreveal previews." + :group 'preview-appearance + :type 'boolean + :require 'preview + :set (lambda (symbol value) + (set-default symbol value) + (if value + (ad-enable-advice 'isearch-highlight 'before 'preview) + (ad-disable-advice 'isearch-highlight 'before 'preview)) + (ad-activate 'isearch-highlight)) + :initialize #'custom-initialize-reset) + +;; Here is the beef: for best intuitiveness, we want to have +;; insertions be carried out as expected before iconized text +;; passages, but we want to insert *into* the overlay when not +;; iconized. A preview that has become empty can not get content +;; again: we remove it. A disabled preview needs no insert-in-front +;; handler. + +(defvar preview-change-list nil + "List of tentatively changed overlays.") + +(defcustom preview-dump-threshold + "^ *\\\\begin *{document}[ %]*$" + "*Regexp denoting end of preamble. +This is the location up to which preamble changes are considered +to require redumping of a format." + :group 'preview-latex + :type 'string) + +(defvar preview-preamble-format-cons nil + "Where our preamble is supposed to end.") +(make-variable-buffer-local 'preview-preamble-format-cons) + +(defun preview-preamble-check-change (beg end) + "Hook function for change hooks on preamble. +Reacts to changes between BEG and END." + (when (and (consp (cdr preview-preamble-format-cons)) + (cddr preview-preamble-format-cons) + (< beg (cddr preview-preamble-format-cons))) + (preview-unwatch-preamble preview-preamble-format-cons) + (preview-format-kill preview-preamble-format-cons) + (setcdr preview-preamble-format-cons t))) + +(defun preview-watch-preamble (file command format-cons) + "Set up a watch on master file FILE. +FILE can be an associated buffer instead of a filename. +COMMAND is the command that generated the format. +FORMAT-CONS contains the format info for the main +format dump handler." + (let ((buffer (if (bufferp file) + file + (find-buffer-visiting file))) ov) + (setq preview-preamble-format-cons nil) + (setcdr + format-cons + (cons command + (when buffer + (with-current-buffer buffer + (save-excursion + (save-restriction + (widen) + (goto-char (point-min)) + (unless (re-search-forward preview-dump-threshold nil t) + (error "Can't find preamble of `%s'" file)) + (setq preview-preamble-format-cons format-cons) + (point))))))))) + +(defun preview-unwatch-preamble (format-cons) + "Stop watching a format on FORMAT-CONS. +The watch has been set up by `preview-watch-preamble'." + (when (consp (cdr format-cons)) + (setcdr (cdr format-cons) nil))) + +(defun preview-register-change (ov map-arg) + "Register not yet changed OV for verification. +This stores the old contents of the overlay in the +`preview-prechange' property and puts the overlay into +`preview-change-list' where `preview-check-changes' will +find it at some later point of time. MAP-ARG is ignored; +it is usually generated by `map-extents'." + (unless (extent-property ov 'preview-prechange) + (if (eq (extent-property ov 'preview-state) 'disabled) + (set-extent-property ov 'preview-prechange t) + (set-extent-property ov + 'preview-prechange + (save-restriction + (widen) + (buffer-substring-no-properties + (extent-start-position ov) + (extent-end-position ov))))) + (push ov preview-change-list)) + nil) + +(defun preview-check-changes () + "Check whether the contents under the overlay have changed. +Disable it if that is the case. Ignores text properties." + (dolist (ov preview-change-list) + (condition-case nil + (with-current-buffer (extent-object ov) + (let ((text (save-restriction + (widen) + (buffer-substring-no-properties + (extent-start-position ov) + (extent-end-position ov))))) + (if (or (zerop (length text)) + (extent-detached-p ov)) + (preview-delete ov) + (unless + (or (eq (extent-property ov 'preview-state) 'disabled) + (preview-relaxed-string= + text (extent-property ov 'preview-prechange))) + (preview-disable ov))))) + (error nil)) + (set-extent-property ov 'preview-prechange nil)) + (setq preview-change-list nil)) + +(defun preview-handle-before-change (beg end) + "Hook function for `before-change-functions'. +Receives BEG and END, the affected region." + (map-extents #'preview-register-change nil beg end + nil nil 'preview-state) + (preview-preamble-check-change beg end)) + +(defun preview-handle-after-change (beg end length) + "Hook function for `after-change-functions'. +Receives BEG and END, the affected region, and LENGTH +of an insertion." + (when (and preview-change-list + (zerop length) + (not (eq this-command 'undo))) + (map-extents (lambda (ov maparg) + (set-extent-endpoints + ov maparg (extent-end-position ov))) nil + beg beg end 'start-in-region 'preview-state 'active) + (map-extents (lambda (ov maparg) + (set-extent-endpoints + ov (extent-start-position ov) maparg)) nil + end end beg 'end-in-region 'preview-state 'active))) + +(defun preview-import-image (image) + "Convert the printable IMAGE rendition back to an image." + (cond ((stringp image) + (setq image (copy-sequence image)) + (add-text-properties 0 (length image) + '(face preview-face) + image) + image) + ((eq (car image) 'image) + (let ((plist (cdr image))) + (preview-create-icon-1 + (plist-get plist :file) + (plist-get plist :type) + (plist-get plist :ascent)))) + (t + (preview-create-icon-1 (nth 0 image) + (nth 1 image) + (nth 2 image))))) + +(provide 'prv-xemacs) + +;;; Local variables: +;;; eval: (put 'preview-defmacro 'lisp-indent-function 'defun) +;;; end: + +;;; prv-xemacs.el ends here diff -Nru auctex-11.88/RELEASE auctex-11.90/RELEASE --- auctex-11.88/RELEASE 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/RELEASE 2017-01-10 21:35:28.000000000 +0000 @@ -1,4 +1,4 @@ -Release notes for AUCTeX 11.88 with preview-latex +Release notes for AUCTeX 11.90 with preview-latex ================================================= AUCTeX provides by far the most wide-spread and sophisticated @@ -21,95 +21,107 @@ documentation writing, tutorials, translations, reference material, sleuth work, testing. - New features and fixed bugs in this release ------------------------------------------- -'TeX-PDF-mode' is now enabled by default. +In addition to the completion performed by 'TeX-complete-symbol', +AUCTeX now also supports the new Emacs standard completion-at-point +facility (see the Emacs command 'completion-at-point'). This also +means that modern completion UIs like company-mode work out of the +box in TeX and LaTeX buffers. + +Completion is now aware of being inside a math environment and then +completes math macros. + +AUCTeX is able to display several levels of super- and subscripts, +each one raised above and a bit smaller than its basis. For this +feature, have a look at the customize options +'font-latex-fontify-script' (especially the new values 'multi-level' +and 'invisible') and 'font-latex-fontify-script-max-level'. Also, the +script characters '^' and '_' are also fontified with a special face +named 'font-latex-script-char-face'. + +Parsing of format specification in various tabular environments has +been improved. The function 'LaTeX-insert-item' ('C-c ') inserts +suitable number of ampersands for '*{num}{cols}' constructs. Style +files for LaTeX packages 'tabularx', 'tabulary', 'longtable', +'dcolumn' and 'siunitx' are adapted to take advantage of this +improvement. + +AUCTeX has a new Ispell dictionary 'tex-ispell.el' for macros and +environments which will be skipped during spell checking. The +activiation of this feature is controlled by a new customize option +'TeX-ispell-extend-skip-list', which is set to 't' and activated by +default. + +AUCTeX has a new customize option 'TeX-raise-frame-function' that is +currently only used by Evince and Atril inverse search to raise the +Emacs frame. + +When inserting a new float, AUCTeX will now prompt for a short-caption +if the length of the caption provided is greater than a certain size. +This size is controlled via a new user option +'LaTeX-short-caption-prompt-length'. + +Parsing of the compilation log has been reworked. You should +encounter fewer mistaken files while navigating through errors and +warnings. + +Two new user options, 'TeX-ignore-warnings' and +'TeX-suppress-ignored-warnings', allow ignoring certain warnings +after compilation of the document. + +A new option, 'TeX-PDF-from-DVI', controls if and how to produce a PDF +file by converting a DVI file. This supersedes +'TeX-PDF-via-dvips-ps2pdf' which is still recognized but marked as +obsolete and may be removed in future releases. + +Support for a number of external viewers has been added: + * Atril viewer. Forward and inverse search requires version + 1.9.1 or later to work. + + * dviout viewer on Windows. Note that this setup works when + 'TeX-source-correlate-method' is set to use 'source-specials' + for DVI, e.g.: + (setq TeX-source-correlate-method + '((dvi . source-specials) + (pdf . synctex))) + which is the default. + + * SumatraPDF viewer on Windows. + + * Zathura viewer. Forward and inverse search requires a recent + version of the program to work (3.4 or later). + +A new function, 'TeX-documentation-texdoc', for reading +documentation with 'texdoc' has been added. 'TeX-doc' is still +available but now 'C-c ?' runs 'TeX-documentation-texdoc'. + +AUCTeX has a new custom option +'LaTeX-reftex-cite-format-auto-activate' which controls the automatic +activation of citation formats provided by RefTeX when a style file is +loaded and RefTeX is enabled. Currently, 'biblatex.el', 'harvard.el', +'jurabib.el' and 'natbib.el' use this feature. If you have customized +'reftex-cite-format' and want to use your settings, you should set +this variable to 'nil'. + +AUCTeX now has limited support for the TikZ package. For the moment, +this includes some basic support for prompting the user of arguments +to the '\draw' macro. + +The style 'graphicx.el' went through a bigger overhaul. The optional +argument of command '\includegraphics' now supports key-val query; +keys can independently be chosen anytime by pressing the <,> key. As +a side effect, the variable 'LaTeX-includegraphics-options-alist' is +now no-op and is removed from 'tex-style.el'. You can safely remove +any customization of it from your init file. The mandatory argument +of '\includegraphics' knows about image file extensions supported by +the used engine and offers them for inclusion. -Now 'TeX-previous-error' works with TeX commands if the new option -'TeX-parse-all-errors' is non-nil, which is the default. When this -option is non-nil, an overview of errors and warnings reported by the -TeX compiler can be opened with 'M-x TeX-error-overview '. - -Style file authors are encouraged to distinguish common from expert -macros and environments, and mark the latter using -'TeX-declare-expert-macros' and 'LaTeX-declare-expert-environments'. -Users can then restrict completion using -'TeX-complete-expert-commands'. - -Management of LaTeX package options in the parser was improved. You -might need to reparse your documents, especially if you loaded the -'babel' package with language options. - -Now you can insert '$...$' or '\(...\)' by typing a single '$'. To do -this, customize the new option 'TeX-electric-math'. -'TeX-math-close-double-dollar' was removed. - -'C-c documentclass ' completes with all available LaTeX -classes, if the 'TeX-arg-input-file-search' variable is non-nil. -Completion for class options of the standard LaTeX classes is provided -as well. - -New user options 'LaTeX-default-author', -'LaTeX-fontspec-arg-font-search', 'LaTeX-fontspec-font-list-default', -'TeX-date-format', and 'TeX-insert-braces-alist'. A new possible value -('show-all-optional-args') for 'TeX-insert-macro-default-style' was -added. The default value of 'TeX-source-correlate-method' has been -changed. - -'biblatex' support was greatly expanded. If parsing is enabled, AUCTeX -looks at 'backend' option to decide whether to use Biber or BibTeX. The -'LaTeX-biblatex-use-Biber' variable was changed to be file local only -and is no more customizable. - -With some LaTeX classes, the default environment suggested by -'LaTeX-environment' ('C-c C-e') when the current environment is -'document' was changed. With 'beamer' class the default environment is -'frame', with 'letter' it is 'letter', with 'slides' it is 'slide'. - -Brace pairing feature was enhanced in LaTeX documents. Support for -'\bigl', '\Bigl', '\biggl' and '\Biggl', the same as the one for -'\left', was added to 'TeX-insert-macro'. For example, 'C-c bigl - ( ' inserts '\bigl(\bigr)'. - -You can insert brace pair '()', '{}' and '[]' by typing a single left -brace if the new user option 'LaTeX-electric-left-right-brace' is -enabled. - -Macros '\langle', '\lfloor' and '\lceil', which produce the left part -of the paired braces, are treated similarly as '(', '{' and '[' during -the course of 'TeX-insert-macro'. - -Support for dozens of LaTeX packages was added. - -Tabular-like environments (tabular, tabular*, tabularx, tabulary, -array, align, ...) are indented in a nicer and more informative way -when the column values of a table line are written across multiple -lines in the tex file. - -The suitable number of ampersands are inserted when you insert array, -tabular and tabular* environments with 'C-c C-e'. Similar experience -is obtained if you terminate rows in these environments with 'C-c -'. It supplies line break macro '\\' and inserts the suitable -number of ampersands on the next line. Similar supports are provided -for various amsmath environments. - -Commands for narrowing to a group ('TeX-narrow-to-group') and to LaTeX -environments ('LaTeX-narrow-to-environment') were added. - -Now arbitrary options can be passed to the TeX processor on a per file -basis using the 'TeX-command-extra-options' option. - -Now 'C-c C-e document ', in an empty document, prompts for -'\usepackage' macros in addition to '\documentclass'. - -'TeX-add-style-hook' has now a third argument to tell AUCTeX for which -dialect (LaTeX, Texinfo or BibTeX) the style hook is registers. -Labelling style hook by dialect will avoid applying them not in the -right context. +Support for other LaTeX packages was improved, and style files for +several new packages were added. -There have been lots of bug fixes and feature additions. +Many bugs were crushed along the way. Requirements ------------ @@ -134,15 +146,17 @@ Availability ------------ -AUCTeX can be downloaded in various formats from +The easiest way for getting AUCTeX, for users running Emacs 24.1 or +higher, is installing it with GNU ELPA, see + for more information. +Other download options are available at . At release time, we provide the -source tarball, a precompiled version for Emacs on Windows, and a -platform-independent XEmacs package file (which you have to install -yourself using XEmacs' own package system, after using it for removing -the previous version of AUCTeX). The easiest way for using AUCTeX, of -course, is using versions of Emacs that already include AUCTeX or a -software package management system for your operating system which -provides you with the latest release. +source tarball, and a platform-independent XEmacs package file (which +you have to install yourself using XEmacs' own package system, after +using it for removing the previous version of AUCTeX). You can also +use versions of Emacs that already include AUCTeX or a software +package management system for your operating system which provides you +with the latest release. The XEmacs package file can be discerned by `pkg' in its name. It is usually more recent than what gets distributed from XEmacs servers and @@ -157,7 +171,6 @@ , including its mailing list addresses. - Future development and additional information --------------------------------------------- @@ -169,26 +182,25 @@ so, but it would require a diligent and diplomatic volunteer to find and ask the rest. -Current project manager is David Kastrup. Paypal contributions to - would be appreciated in order to -compensate for time, money and hardware required for presenting AUCTeX -at conferences. Extensions may be commissioned: enquire on the -developer list (see above). Other than that, volunteering for tasks -remains the most effective way of helping AUCTeX development. +Current AUCTeX managers are Arash Esbati, Mosè Giordano, and Tassilo +Horn. Everybody is welcome to contribute to the project by reporting +bugs and suggesting improvements, but the most effective way of +helping AUCTeX development remains volunteering for tasks. The following people contributed to this release series (in alphabetical order): Ivan Andrus, Ralf Angeli, Masayuki Ataka, Fabrice -Ben Hamouda, Thomas Baumann, Vincent Belaïche, Berend de Boer, Ken -Brown, Joshua Buhl, Patrice Dumas, Werner Fink, Miguel Frasson, Peter -S. Galbraith, Mosè Giordano, Patrick Gundlach, Jobst Hoffmann, Tassilo -Horn, Yvon Hevel, Mads Jensen, Arne Jørgensen, David Kastrup, Ikumi -Keita, Philip Kime, Oleh Krehel, Joost Kremers, Frank Küster, Jan-Åke -Larsson, Matthew Leach, Antoine Levitt, Leo Liu, Vladimir Lomov, Stefan -Monnier, Dan Nicolaescu, Piet van Oostrum, Nicolas Richard, Augusto -Ritter Stoffel, Florent Rougon, Davide G. M. Salvetti, Rüdiger +Ben Hamouda, Thomas Baumann, Vincent Belaïche, Berend de Boer, Uwe +Brauer, Ken Brown, Joshua Buhl, Patrice Dumas, Arash Esbati, Werner +Fink, Miguel Frasson, Peter S. Galbraith, Mosè Giordano, Patrick +Gundlach, Jobst Hoffmann, Tassilo Horn, Yvon Hevel, Orlando Iovino, +Mads Jensen, Arne Jørgensen, David Kastrup, Ikumi Keita, Philip Kime, +Oleh Krehel, Joost Kremers, Frank Küster, Jan-Åke Larsson, Matthew +Leach, Antoine Levitt, Leo Liu, Vladimir Lomov, Stefan Monnier, Dan +Nicolaescu, Piet van Oostrum, Nicolas Richard, Augusto Ritter Stoffel, +Florent Rougon, Santiago Saavedra, Davide G. M. Salvetti, Rüdiger Sonderfeld, Holger Sparr, Mike Sperber, Reiner Steib, Christian -Schlauer, Shiro Takeda, Mark Trettin (Please accept our apologies if we -forgot somebody.) +Schlauer, Shiro Takeda, Mark Trettin (Please accept our apologies if +we forgot somebody.) Footnotes: diff -Nru auctex-11.88/style/acro.el auctex-11.90/style/acro.el --- auctex-11.88/style/acro.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/acro.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,6 +1,6 @@ ;;; acro.el --- AUCTeX style for `acro.sty' version 1.2a. -;; Copyright (C) 2013 Free Software Foundation, Inc. +;; Copyright (C) 2013-2015 Free Software Foundation, Inc. ;; Maintainer: auctex-devel@gnu.org ;; Author: Mosè Giordano @@ -29,6 +29,8 @@ ;;; Code: +(require 'tex) ;Indispensable when compiling the call to `TeX-auto-add-type'. + (defvar LaTeX-acro-package-options-list '(;; General Options ("version" ("0" "1")) @@ -100,9 +102,9 @@ (LaTeX-provided-package-options-member "acro" "macros=true")) (add-to-list 'TeX-auto-symbol LaTeX-auto-acro-acronym))) -;; FIXME: This does not seem to work unless one does a manual reparse. -(add-hook 'TeX-auto-prepare-hook 'LaTeX-acro-prepare) -(add-hook 'TeX-auto-cleanup-hook 'LaTeX-acro-cleanup) +(add-hook 'TeX-auto-prepare-hook #'LaTeX-acro-prepare t) +(add-hook 'TeX-auto-cleanup-hook #'LaTeX-acro-cleanup t) +(add-hook 'TeX-update-style-hook #'TeX-auto-parse t) (defvar LaTeX-acro-acronym-history nil "History of acronyms in acro.") diff -Nru auctex-11.88/style/acronym.el auctex-11.90/style/acronym.el --- auctex-11.88/style/acronym.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/acronym.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,6 +1,6 @@ ;;; acronym.el --- AUCTeX style for `acronym.sty' version 1.38. -;; Copyright (C) 2013 Free Software Foundation, Inc. +;; Copyright (C) 2013-2015 Free Software Foundation, Inc. ;; Maintainer: auctex-devel@gnu.org ;; Author: Mosè Giordano @@ -29,6 +29,8 @@ ;;; Code: +(require 'tex) ;Indispensable when compiling the call to `TeX-auto-add-type'. + (TeX-auto-add-type "acronym" "LaTeX") ;; Self Parsing -- see (info "(auctex)Hacking the Parser"). @@ -49,9 +51,9 @@ (add-to-list 'LaTeX-acronym-list (list acronym))) LaTeX-auto-acronym)) -;; FIXME: This does not seem to work unless one does a manual reparse. -(add-hook 'TeX-auto-prepare-hook 'LaTeX-acronym-prepare) -(add-hook 'TeX-auto-cleanup-hook 'LaTeX-acronym-cleanup) +(add-hook 'TeX-auto-prepare-hook #'LaTeX-acronym-prepare t) +(add-hook 'TeX-auto-cleanup-hook #'LaTeX-acronym-cleanup t) +(add-hook 'TeX-update-style-hook #'TeX-auto-parse t) (defvar LaTeX-acronym-acronym-history nil "History of acronyms in acronym.") diff -Nru auctex-11.88/style/Alegreya.el auctex-11.90/style/Alegreya.el --- auctex-11.88/style/Alegreya.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/Alegreya.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,98 @@ +;;; Alegreya.el --- AUCTeX style for `Alegreya.sty' (v2015/10/22) + +;; Copyright (C) 2015 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: auctex-devel@gnu.org +;; Created: 2015-09-12 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for `Alegreya.sty' (v2015/10/22). +;; `Alegreya.sty' is part of TeXLive. + +;;; Code: + +(TeX-add-style-hook + "Alegreya" + (lambda () + + ;; Run style hook for packages loaded by Alegreya + (TeX-run-style-hooks "textcomp") + + ;; Load `fontaxes' or `fontspec' dep. on `type1' option: + (if (or (LaTeX-provided-package-options-member "Alegreya" "type1") + (LaTeX-provided-package-options-member "Alegreya" "type1=true")) + (TeX-run-style-hooks "fontaxes") + (TeX-run-style-hooks "fontspec")) + + (TeX-add-symbols + ;; Should be used in preamble only + '("useosf") + ;; Text commands + '("Alegreya" -1) + '("AlegreyaBlack" -1) + '("AlegreyaLF" -1) + '("AlegreyaOsF" -1) + '("AlegreyaTLF" -1) + '("AlegreyaTOsF" -1) + '("textsu" t) ; superior figures + '("sufigures" -1) ; + '("textin" t) ; inferior figures + '("infigures" -1)) + + ;; Fontification + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("textsu" "{") + ("textin" "{")) + 'type-command) + (font-latex-add-keywords '(("Alegreya" "") + ("AlegreyaBlack" "") + ("AlegreyaLF" "") + ("AlegreyaOsF" "") + ("AlegreyaTLF" "") + ("AlegreyaTOsF" "") + ("sufigures" "") + ("infigures" "")) + 'type-declaration))) + LaTeX-dialect) + +(defvar LaTeX-Alegreya-package-options-list + '(("lining" ("true" "false")) + ("lf" ("true" "false")) + ("oldstyle" ("true" "false")) + ("osf" ("true" "false")) + ("tabular" ("true" "false")) + ("tf" ("true" "false")) + ("proportional" ("true" "false")) + ("pf" ("true" "false")) + ("black" ("true" "false")) + ("type1" ("true" "false")) + ("scaled") + ("scale")) + "Package options for the Alegreya package.") + +(defun LaTeX-Alegreya-package-options () + "Prompt for package options for the Alegreya package." + (TeX-read-key-val t LaTeX-Alegreya-package-options-list)) + +;;; Alegreya.el ends here diff -Nru auctex-11.88/style/AlegreyaSans.el auctex-11.90/style/AlegreyaSans.el --- auctex-11.88/style/AlegreyaSans.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/AlegreyaSans.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,110 @@ +;;; AlegreyaSans.el --- AUCTeX style for `AlegreyaSans.sty' (v2015/10/22) + +;; Copyright (C) 2015 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: auctex-devel@gnu.org +;; Created: 2015-09-12 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for `AlegreyaSans.sty' (v2015/10/22). +;; `AlegreyaSans.sty' is part of TeXLive. + +;;; Code: + +(TeX-add-style-hook + "AlegreyaSans" + (lambda () + + ;; Run style hook for packages loaded by AlegreyaSans + (TeX-run-style-hooks "textcomp") + + ;; Load `fontaxes' or `fontspec' dep. on `type1' option: + (if (or (LaTeX-provided-package-options-member "AlegreyaSans" "type1") + (LaTeX-provided-package-options-member "AlegreyaSans" "type1=true")) + (TeX-run-style-hooks "fontaxes") + (TeX-run-style-hooks "fontspec")) + + (TeX-add-symbols + ;; Should be used in preamble only + '("useosf") + ;; Text commands + '("AlegreyaSans" -1) + '("AlegreyaSansLF" -1) + '("AlegreyaSansOsF" -1) + '("AlegreyaSansTLF" -1) + '("AlegreyaSansTOsF" -1) + '("AlegreyaSansThin" -1) + '("AlegreyaSansLight" -1) + '("AlegreyaSansMedium" -1) + '("AlegreyaSansExtraBold" -1) + '("AlegreyaSansBlack" -1) + '("textsu" t) ; superior figures + '("sufigures" -1) ; + '("textin" t) ; inferior figures + '("infigures" -1)) + + ;; Fontification + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("textsu" "{") + ("textin" "{")) + 'type-command) + (font-latex-add-keywords '(("AlegreyaSans" "") + ("AlegreyaSansLF" "") + ("AlegreyaSansOsF" "") + ("AlegreyaSansTLF" "") + ("AlegreyaSansTOsF" "") + ("AlegreyaSansLight" "") + ("AlegreyaSansMedium" "") + ("AlegreyaSansExtraBold" "") + ("AlegreyaSansBlack" "") + ("sufigures" "") + ("infigures" "")) + 'type-declaration))) + LaTeX-dialect) + +(defvar LaTeX-AlegreyaSans-package-options-list + '(("lining" ("true" "false")) + ("lf" ("true" "false")) + ("oldstyle" ("true" "false")) + ("osf" ("true" "false")) + ("tabular" ("true" "false")) + ("tf" ("true" "false")) + ("proportional" ("true" "false")) + ("pf" ("true" "false")) + ("black" ("true" "false")) + ("extrabold" ("true" "false")) + ("thin" ("true" "false")) + ("light" ("true" "false")) + ("medium" ("true" "false")) + ("type1" ("true" "false")) + ("sfdefault" ("true" "false")) + ("scaled") + ("scale")) + "Package options for the AlegreyaSans package.") + +(defun LaTeX-AlegreyaSans-package-options () + "Prompt for package options for the AlegreyaSans package." + (TeX-read-key-val t LaTeX-AlegreyaSans-package-options-list)) + +;;; AlegreyaSans.el ends here diff -Nru auctex-11.88/style/alltt.el auctex-11.90/style/alltt.el --- auctex-11.88/style/alltt.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/alltt.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,6 +1,6 @@ ;;; alltt.el --- AUCTeX style for `alltt.sty' -;; Copyright (C) 2004, 2005 Free Software Foundation, Inc. +;; Copyright (C) 2004, 2005, 2014, 2016 Free Software Foundation, Inc. ;; Author: Ralf Angeli ;; Maintainer: auctex-devel@gnu.org @@ -34,20 +34,14 @@ "alltt" (lambda () (LaTeX-add-environments "alltt") - (make-local-variable 'LaTeX-indent-environment-list) - (add-to-list 'LaTeX-indent-environment-list - '("alltt" current-indentation)) - (make-local-variable 'LaTeX-verbatim-regexp) - (setq LaTeX-verbatim-regexp (concat LaTeX-verbatim-regexp "\\|alltt")) + (add-to-list (make-local-variable 'LaTeX-indent-environment-list) + '("alltt" current-indentation) t) (add-to-list 'LaTeX-verbatim-environments-local "alltt") ;; Fontification - (when (and (featurep 'font-latex) + (when (and (fboundp 'font-latex-update-font-lock) (eq TeX-install-font-lock 'font-latex-setup)) - ;; For syntactic fontification, e.g. verbatim constructs. - (font-latex-set-syntactic-keywords) ;; Tell font-lock about the update. - (setq font-lock-set-defaults nil) - (font-lock-set-defaults))) + (font-latex-update-font-lock t))) LaTeX-dialect) (defvar LaTeX-alltt-package-options nil diff -Nru auctex-11.88/style/amsart.el auctex-11.90/style/amsart.el --- auctex-11.88/style/amsart.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/amsart.el 2017-01-10 21:35:28.000000000 +0000 @@ -5,7 +5,8 @@ (TeX-add-style-hook "amsart" (function (lambda () - (TeX-run-style-hooks "amsmath" "amsthm"))) + (TeX-run-style-hooks "amsmath" "amsthm") + (LaTeX-add-environments "abstract"))) LaTeX-dialect) ;;; amsart.el ends here. diff -Nru auctex-11.88/style/amsbook.el auctex-11.90/style/amsbook.el --- auctex-11.88/style/amsbook.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/amsbook.el 2017-01-10 21:35:28.000000000 +0000 @@ -5,7 +5,8 @@ (TeX-add-style-hook "amsbook" (function (lambda () - (TeX-run-style-hooks "amsmath" "amsthm"))) + (TeX-run-style-hooks "amsmath" "amsthm") + (LaTeX-add-environments "abstract"))) LaTeX-dialect) ;;; amsbook.el ends here. diff -Nru auctex-11.88/style/amsfonts.el auctex-11.90/style/amsfonts.el --- auctex-11.88/style/amsfonts.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/amsfonts.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,53 @@ +;;; amsfonts.el --- AUCTeX style for `amsfonts.sty' version 3.01 + +;; Copyright (C) 2016 Free Software Foundation, Inc. + +;; Maintainer: auctex-devel@gnu.org +;; Author: Mosè Giordano +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for `amsfonts.sty' version 3.01. + +;;; Code: + +(TeX-add-style-hook + "amsfonts" + (lambda () + (TeX-add-symbols + '("bold" 1)) + ;; New math font by `amsfonts'. + (setq TeX-font-list + (append + TeX-font-list + '((?\C-k "" "" "\\mathfrak{" "}")))) + ;; Fontification + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("bold" "{")) + 'bold-command))) + LaTeX-dialect) + +;; The `psamsfonts' option is obsolete in AMSFonts v3 +(defvar LaTeX-amsfonts-package-options nil + "Package options for the amsfonts package.") + +;;; amsfonts.el ends here. diff -Nru auctex-11.88/style/amsmath.el auctex-11.90/style/amsmath.el --- auctex-11.88/style/amsmath.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/amsmath.el 2017-01-10 21:35:28.000000000 +0000 @@ -163,15 +163,15 @@ (defun LaTeX-amsmath-env-alignat (env) "Insert ENV with column number specifications. Insert suitable number of ampersands also if possible." - (let ((ncols (read-string "Number of columns: "))) + (let ((ncols (TeX-read-string "Number of columns: "))) (LaTeX-insert-environment env (concat TeX-grop ncols TeX-grcl)) (LaTeX-item-equation-alignat t))) (defun LaTeX-amsmath-env-alignedat (env) "Insert ENV with position and column number specifications. Insert suitable number of ampersands also if possible." - (let ((where (read-string "(Optional) Vertical position (t or b): ")) - (ncols (read-string "Number of columns: "))) + (let ((where (TeX-read-string "(Optional) Vertical position (t or b): ")) + (ncols (TeX-read-string "Number of columns: "))) (unless (string= where "") (setq where (concat LaTeX-optop where LaTeX-optcl))) (LaTeX-insert-environment env (concat where TeX-grop ncols TeX-grcl)) diff -Nru auctex-11.88/style/amssymb.el auctex-11.90/style/amssymb.el --- auctex-11.88/style/amssymb.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/amssymb.el 2017-01-10 21:35:28.000000000 +0000 @@ -36,6 +36,7 @@ (TeX-add-style-hook "amssymb" (lambda () + (TeX-run-style-hooks "amsfonts") (TeX-add-symbols "boxdot" "boxplus" diff -Nru auctex-11.88/style/amsthm.el auctex-11.90/style/amsthm.el --- auctex-11.88/style/amsthm.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/amsthm.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,6 +1,6 @@ ;;; amsthm.el --- Style hook for the AMS-LaTeX amsthm package. -;; Copyright (C) 1997, 2013 Free Software Foundation, Inc. +;; Copyright (C) 1997, 2013--2015 Free Software Foundation, Inc. ;; Author: Carsten Dominik ;; Maintainer: auctex-devel@gnu.org @@ -22,51 +22,179 @@ ;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA ;; 02110-1301, USA. +;;; Commentary: + +;; The style provides the function `LaTeX-amsthm-env-label' which +;; enables new defined environments with "\newtheoreom" to interact +;; with AUCTeX and RefTeX mechanisms for inserting labels. Check +;; docstring of `LaTeX-amsthm-env-label' for instructions. + ;;; Code: (defvar LaTeX-amsthm-package-options nil "Package options for the amsthm package.") +(defvar LaTeX-amsthm-theoremstyle-list + '(("plain") ("definition") ("remark")) + "List of theorem styles provided by `amsthm.el' and new ones +defined with \"\\newtheoremstyle\".") + +(defvar LaTeX-amsthm-fontdecl + '(;; family + "rmfamily" "sffamily" "ttfamily" + ;; series + "mdseries" "bfseries" + ;; shape + "upshape" "itshape" "slshape" "scshape" + ;; size + "tiny" "scriptsize" "footnotesize" + "small" "normalsize" "large" + "Large" "LARGE" "huge" "Huge" + ;; reset macro + "normalfont") + "List of font declaration commands for \"\\newtheoremstyle\".") + +(defun LaTeX-arg-amsthm-fontdecl (optional &optional prompt) + "Prompt for font declaration commands in \"\\newtheoremstyle\". +If OPTIONAL is non-nil, insert the resulting value as an optional +argument. Use PROMPT as the prompt string." + ;; `INITIAL-INPUT' (5th argument to `TeX-completing-read-multiple') + ;; is hard-coded to `TeX-esc'. + (let* ((crm-separator (regexp-quote TeX-esc)) + (fontdecl (mapconcat 'identity + (TeX-completing-read-multiple + (TeX-argument-prompt optional prompt "Font") + LaTeX-amsthm-fontdecl nil nil TeX-esc) + TeX-esc))) + (TeX-argument-insert fontdecl optional))) + +(defun LaTeX-amsthm-env-label (environment) + "Insert ENVIRONMENT, query for an optional argument and prompt +for label. AUCTeX users should add ENVIRONMENT to +`LaTeX-label-alist' via customize or in init-file with: + + (add-to-list \\='LaTeX-label-alist \\='(\"lemma\" . \"lem:\")) + +RefTeX users should customize or add ENVIRONMENT to +`LaTeX-label-alist' and `reftex-label-alist', e.g. + + (add-to-list \\='LaTeX-label-alist \\='(\"lemma\" . \"lem:\")) + (add-to-list \\='reftex-label-alist + \\='(\"lemma\" ?m \"lem:\" \"~\\ref{%s}\" + nil (\"Lemma\" \"lemma\") nil))" + (let ((opthead (TeX-read-string + (TeX-argument-prompt t nil "Heading")))) + (LaTeX-insert-environment environment + (when (and opthead + (not (string= opthead ""))) + (format "[%s]" opthead)))) + (when (LaTeX-label environment 'environment) + (LaTeX-newline) + (indent-according-to-mode))) + +;; Needed for auto-parsing +(require 'tex) + +;; Setup parsing for \newtheorem +(TeX-auto-add-type "amsthm-newtheorem" "LaTeX") + +;; Setup parsing for \newtheoremstyle +(TeX-auto-add-type "amsthm-newtheoremstyle" "LaTeX") + +(defun LaTeX-amsthm-auto-prepare () + "Clear `LaTeX-auto-amsthm-newtheorem' and +`LaTeX-auto-amsthm-newtheoremstyle' before parsing." + (setq LaTeX-auto-amsthm-newtheorem nil) + (setq LaTeX-auto-amsthm-newtheoremstyle nil)) + +(defun LaTeX-amsthm-auto-cleanup () + "Move parsed results from `LaTeX-auto-amsthm-newtheorem' and +make them available as new environments. Update +`LaTeX-amsthm-theoremstyle-list' with styles defined with +\"\\newtheoremstyle\"." + (dolist (newthm (mapcar 'car (LaTeX-amsthm-newtheorem-list))) + (LaTeX-add-environments (list newthm 'LaTeX-amsthm-env-label))) + (dolist (newthmstyle (LaTeX-amsthm-newtheoremstyle-list)) + (add-to-list (make-local-variable 'LaTeX-amsthm-theoremstyle-list) + newthmstyle))) + +(add-hook 'TeX-auto-prepare-hook #'LaTeX-amsthm-auto-prepare t) +(add-hook 'TeX-auto-cleanup-hook #'LaTeX-amsthm-auto-cleanup t) +(add-hook 'TeX-update-style-hook #'TeX-auto-parse t) + (TeX-add-style-hook "amsthm" (lambda () (LaTeX-add-environments - '("proof" (lambda (env &rest ignore) - (LaTeX-insert-environment - env - (let ((heading (read-string "(optional) Heading: "))) - (if (string= heading "") - "" - (format "[%s]" heading)))))) - ) + '("proof" LaTeX-amsthm-env-label)) (TeX-add-symbols - '("newtheorem*" TeX-arg-define-environment "Heading") - '("theoremstyle" LaTeX-amsthm-complete-theoremstyle) + ;; Overrule the defintion in `latex.el': + '("newtheorem" + (TeX-arg-eval + (lambda () + (let ((nthm (TeX-read-string + (TeX-argument-prompt nil nil "Environment")))) + (LaTeX-add-amsthm-newtheorems nthm) + (LaTeX-add-environments (list nthm 'LaTeX-theorem-env-label)) + (format "%s" nthm)))) + [ TeX-arg-environment "Numbered like" ] + t [ (TeX-arg-eval progn (if (eq (save-excursion + (backward-char 2) + (preceding-char)) ?\]) + () + (TeX-arg-counter t "Within counter")) + "") ]) + + '("newtheorem*" + (TeX-arg-eval + (lambda () + (let ((nthm (TeX-read-string + (TeX-argument-prompt nil nil "Environment"))) + (heading (TeX-read-string + (TeX-argument-prompt nil nil "Heading")))) + (LaTeX-add-amsthm-newtheorems nthm) + (LaTeX-add-environments (list nthm 'LaTeX-amsthm-env-label)) + (insert (concat TeX-grop nthm TeX-grcl)) + (format "%s" heading))))) + + '("theoremstyle" + (TeX-arg-eval completing-read "Style: " + LaTeX-amsthm-theoremstyle-list)) "qedhere" "swapnumbers" - '("newtheoremstyle" "Style name" (TeX-arg-length nil "Space above") - (TeX-arg-length nil "Space below") "Body font" "Indent amount" - "Theorem head font" "Punctuation after head" - (TeX-arg-length nil "Space after head") "Theorem head spec")) + '("newtheoremstyle" + (TeX-arg-eval + (lambda () + (let ((nthmstyle (TeX-read-string + (TeX-argument-prompt nil nil "Style name")))) + (LaTeX-add-amsthm-newtheoremstyles nthmstyle) + (add-to-list (make-local-variable 'LaTeX-amsthm-theoremstyle-list) + (list nthmstyle)) + (format "%s" nthmstyle)))) + (TeX-arg-length "Space above") + (TeX-arg-length "Space below") + (LaTeX-arg-amsthm-fontdecl "Body font") + "Indent amount" + (LaTeX-arg-amsthm-fontdecl "Theorem head font") + "Punctuation after head" + (TeX-arg-length "Space after head") + "Theorem head spec")) + + (TeX-auto-add-regexp + `(,(concat "\\\\newtheorem\\*?{\\(" TeX-token-char "+\\)}") + 1 LaTeX-auto-amsthm-newtheorem)) (TeX-auto-add-regexp - `(,(concat "\\\\newtheorem\\*{\\(" TeX-token-char "+\\)}") - 1 LaTeX-auto-environment)) + `(,(concat "\\\\newtheoremstyle{\\(" TeX-token-char "+\\)}") + 1 LaTeX-auto-amsthm-newtheoremstyle)) ;; Fontification (when (and (featurep 'font-latex) (eq TeX-install-font-lock 'font-latex-setup)) - (font-latex-add-keywords '(("newtheorem" "*{[{[") - ("theoremstyle" "{") + (font-latex-add-keywords '(("newtheorem" "*{[{[") + ("theoremstyle" "{") ("newtheoremstyle" "{{{{{{{{{")) 'function))) LaTeX-dialect) -(defun LaTeX-amsthm-complete-theoremstyle (&rest ignore) - (insert TeX-grop - (completing-read "Style: " '(("plain" . nil) - ("definition" . nil) - ("remark" . nil))) - TeX-grcl)) - ;;; amsthm.el ends here diff -Nru auctex-11.88/style/AnonymousPro.el auctex-11.90/style/AnonymousPro.el --- auctex-11.88/style/AnonymousPro.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/AnonymousPro.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,90 @@ +;;; AnonymousPro.el --- AUCTeX style for `AnonymousPro.sty' (v2.1) + +;; Copyright (C) 2014 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: auctex-devel@gnu.org +;; Created: 2014-10-30 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for `AnonymousPro.sty' (v2.1) from +;; 2014/03/22. `AnonymousPro.sty' is part of TeXLive. + +;;; Code: + +(TeX-add-style-hook + "AnonymousPro" + (lambda () + + ;; Run style hook for textcomp + (TeX-run-style-hooks "textcomp") + + ;; New symbols + (TeX-add-symbols + "ANPapplelogo" + "ANPappleopen" + "ANPapproxequal" + "ANPback" + "ANPblackdiamond" + "ANPcheckmark" + "ANPcopy" + "ANPellipsis" + "ANPendtab" + "ANPerasetotheright" + "ANPgreaterequal" + "ANPHbar" + "ANPhbar" + "ANPinfinity" + "ANPinsert" + "ANPintegral" + "ANPlessequal" + "ANPlozenge" + "ANPnotequal" + "ANPoptionkey" + "ANPpartialdiff" + "ANPPi" + "ANPpi" + "ANPproduct" + "ANPshift" + "ANPshiftlock" + "ANPSigma" + "ANPsigma" + "ANPsigmaone" + "ANPsummation" + "ANPtab" + "ANPReturnSign" + "ANPShoulderedOpenBox" + "ANPUpArrowHead" + "ANPInsertSign" + "ANPUpArrowHeadBars" + "ANPHelm" + "ANPOpenBox" + "ANPDelta" + "ANPverticaltab" + "ANPNumeroSign")) + LaTeX-dialect) + +(defvar LaTeX-AnonymousPro-package-options + '("ttdefault" "scale") + "Package options for the AnonymousPro package.") + +;;; AnonymousPro.el ends here diff -Nru auctex-11.88/style/array.el auctex-11.90/style/array.el --- auctex-11.88/style/array.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/array.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,6 +1,6 @@ ;;; array.el --- AUCTeX style for `array.sty' -;; Copyright (C) 2013 Free Software Foundation, Inc. +;; Copyright (C) 2013, 2015 Free Software Foundation, Inc. ;; Author: Mads Jensen ;; Maintainer: auctex-devel@gnu.org @@ -29,11 +29,57 @@ ;;; Code: +(require 'tex) + +(TeX-auto-add-type "array-newcolumntype" "LaTeX") + +(defvar LaTeX-array-newcolumntype-regexp + '("\\\\newcolumntype{\\([^}]+\\)}" + 1 LaTeX-auto-array-newcolumntype) + "Matches the argument of `\\newcolumntype' from `array' +package.") + +(defun LaTeX-array-auto-prepare () + "Clear `LaTeX-auto-array-newcolumntype' before parsing." + (setq LaTeX-auto-array-newcolumntype nil)) + +(defun LaTeX-array-auto-cleanup () + "Move parsed column specification from +`LaTeX-auto-array-newcolumntype' to `LaTeX-array-column-letters'." + (when (LaTeX-array-newcolumntype-list) + (LaTeX-array-update-column-letters))) + +(defun LaTeX-array-update-column-letters () + "Update and uniquify the value of `LaTeX-array-column-letters' +and make it buffer local. " + (set (make-local-variable 'LaTeX-array-column-letters) + (mapconcat 'identity + (TeX-delete-duplicate-strings + (split-string + (concat LaTeX-array-column-letters + (mapconcat 'car (LaTeX-array-newcolumntype-list) "")) + "" t)) + ""))) + +(add-hook 'TeX-auto-prepare-hook #'LaTeX-array-auto-prepare t) +(add-hook 'TeX-auto-cleanup-hook #'LaTeX-array-auto-cleanup t) +(add-hook 'TeX-update-style-hook #'TeX-auto-parse t) + (TeX-add-style-hook "array" (lambda () + + (TeX-auto-add-regexp LaTeX-array-newcolumntype-regexp) + (TeX-add-symbols - '("newcolumntype" "Column type" [ "Number of arguments" ] t) + '("newcolumntype" + (TeX-arg-eval + (lambda () + (let ((col (TeX-read-string "Column type: "))) + (LaTeX-add-array-newcolumntypes col) + (LaTeX-array-update-column-letters) + (format "%s" col)))) + [ "Number of arguments" ] t) '("showcols" 0) '("firsthline" 0) '("lasthline" 0)) @@ -43,7 +89,14 @@ (LaTeX-add-lengths "extratabsurround" "extrarowheight") ;; `array.sty' adds some new column specification letters. - (set (make-local-variable 'LaTeX-array-column-letters) "clrpmb")) + (set (make-local-variable 'LaTeX-array-column-letters) + (concat LaTeX-array-column-letters "m" "b")) + + ;; Fontification + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("newcolumntype" "{[{")) + 'function))) LaTeX-dialect) (defvar LaTeX-array-package-options nil diff -Nru auctex-11.88/style/article.el auctex-11.90/style/article.el --- auctex-11.88/style/article.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/article.el 2017-01-10 21:35:28.000000000 +0000 @@ -14,7 +14,8 @@ (LaTeX-largest-level-set "section") (LaTeX-add-counters "part" "section" "subsection" "subsubsection" "paragraph" "subparagraph" "figure" "table") - (LaTeX-add-pagestyles "headings" "myheadings")) + (LaTeX-add-pagestyles "headings" "myheadings") + (LaTeX-add-environments "abstract")) LaTeX-dialect) ;;; article.el ends here diff -Nru auctex-11.88/style/attachfile.el auctex-11.90/style/attachfile.el --- auctex-11.88/style/attachfile.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/attachfile.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,119 @@ +;;; attachfile.el --- AUCTeX style for `attachfile.sty' (v1.6) + +;; Copyright (C) 2015 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: auctex-devel@gnu.org +;; Created: 2015-04-11 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for `attachfile.sty' (v1.6) from 2015/04/04. +;; `attachfile.sty' is part of TeXLive. + +;;; Code: +(defvar LaTeX-attachfile-key-val-options + '(("appearance" ("true" "false")) + ("author") + ("color") + ("created") + ("date") + ("description") + ("icon" ("Graph" "Paperclip" "PushPin" "Tag")) + ;; This can only be a small excerpt: + ("mimetype" + ("application/javascript" + "application/pdf" + "application/postscript" + "application/vnd.ms-excel" + "application/vnd.ms-powerpoint" + "application/zip" + "audio/mpeg" + "audio/ogg" + "image/jpeg" + "image/png" + "image/tiff" + "text/csv" + "text/plain" + "video/H264" + "video/mp4")) + ("modified") + ("print" ("true" "false")) + ("size") + ("subject") + ("timezone") + ("zoom" ("true" "false"))) + "Key=value options for attachfile macros.") + +(TeX-add-style-hook + "attachfile" + (lambda () + ;; Run style hook for packages loaded by attachfile; both packages + ;; are required for running LaTeX, but not necessary within AUCTeX + (TeX-run-style-hooks "hyperref" "color") + + (TeX-add-symbols + ;; \attachfile[]{} + '("attachfile" + [TeX-arg-key-val LaTeX-attachfile-key-val-options] + (TeX-arg-eval + (lambda () + (let ((atfi (file-relative-name + (read-file-name "File to attach: ")))) + (format "%s" atfi))))) + + ;; \noattachfile[] + '("noattachfile" + [TeX-arg-key-val LaTeX-attachfile-key-val-options] ) + + ;; \textattachfile[]{}{} + '("textattachfile" + [TeX-arg-key-val LaTeX-attachfile-key-val-options] + (TeX-arg-eval + (lambda () + (let ((atfi (file-relative-name + (read-file-name "File to attach: ")))) + (format "%s" atfi)))) + t) + + ;; \notextattachfile[]{} + '("notextattachfile" + [TeX-arg-key-val LaTeX-attachfile-key-val-options] t) + + ;; \attachfilesetup{} + '("attachfilesetup" + (TeX-arg-key-val LaTeX-attachfile-key-val-options))) + + ;; Fontification + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("attachfilesetup" "{") + ("attachfile" "[{") + ("noattachfile" "[") + ("textattachfile" "[{{") + ("notextattachfile" "[{")) + 'function))) + LaTeX-dialect) + +(defvar LaTeX-attachfile-package-options nil + "Prompt for package options for the attachfile package.") + +;;; attachfile.el ends here diff -Nru auctex-11.88/style/babel.el auctex-11.90/style/babel.el --- auctex-11.88/style/babel.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/babel.el 2017-01-10 21:35:28.000000000 +0000 @@ -30,6 +30,8 @@ ;;; Code: +(eval-when-compile (require 'cl)) + (defvar LaTeX-babel-language-list '("afrikaans" "bahasa" "indonesian" "indon" "bahasai" "bahasam" "malay" "meyalu" @@ -107,12 +109,12 @@ ;; Append element to `active-languages' to respect loading order. ;; `babel' package uses as default language the last loaded one, ;; except if it is set with the `main' option. - (add-to-list 'active-languages elt t)))) + (pushnew elt active-languages :test #'equal)))) (if main-language - (add-to-list 'active-languages main-language t)) - active-languages)) + (pushnew main-language active-languages :test #'equal)) + (nreverse active-languages))) -(defun TeX-arg-babel-lang (optional &optional prompt) +(defun TeX-arg-babel-lang (_optional &optional _prompt) "Prompt for a language with completion and insert it as an argument." (TeX-argument-insert (completing-read "Language: " (LaTeX-babel-active-languages)) nil)) diff -Nru auctex-11.88/style/baskervaldx.el auctex-11.90/style/baskervaldx.el --- auctex-11.88/style/baskervaldx.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/baskervaldx.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,84 @@ +;;; baskervaldx.el --- AUCTeX style for `baskervaldx.sty' (v1.07) + +;; Copyright (C) 2014, 2015 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: auctex-devel@gnu.org +;; Created: 2014-11-18 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for `baskervaldx.sty' (v1.07) from 2015/04/06. +;; `baskervaldx.sty' is part of TeXLive. + +;;; Code: + +(TeX-add-style-hook + "baskervaldx" + (lambda () + + ;; Run style hook for various packages loaded by baskervaldx + (TeX-run-style-hooks "textcomp" "fontaxes") + + ;; New symbols + (TeX-add-symbols + + ;; Only preamble commands + '("useosf" 0) + + ;; Text commands + '("lfstyle" -1) ; lf declaration + '("tlfstyle" -1) ; tlf declaration + '("osfstyle" -1) ; osf declaration + '("tosfstyle" -1) ; tosf declaration + '("sufigures" -1) ; superior figures declaration + '("textlf" t) ; proportional lining figures + '("texttlf" t) ; tabular lining figures + '("textosf" t) ; proportional oldstyle figures + '("texttosf" t) ; tabular oldstyle figures + '("textsu" t) ; superior figures + '("swshape" -1)) ; italic shape with ligatures activated + + ;; Fontification + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("textlf" "{") + ("texttlf" "{") + ("textosf" "{") + ("texttosf" "{") + ("textsu" "{")) + 'type-command) + (font-latex-add-keywords '(("lfstyle" "") + ("tlfstyle" "") + ("osfstyle" "") + ("tosfstyle" "") + ("sufigures" "")) + 'type-declaration) + (font-latex-add-keywords '(("swshape" "")) + 'bold-declaration))) + LaTeX-dialect) + +(defvar LaTeX-baskervaldx-package-options + '("lining" "lf" "oldstyle" "osf" "tabular" "proportional" "p" + "scale" "scaled" "sups" "swash") + "Package options for the baskervaldx package.") + +;;; baskervaldx.el ends here diff -Nru auctex-11.88/style/beamer.el auctex-11.90/style/beamer.el --- auctex-11.88/style/beamer.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/beamer.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,6 +1,6 @@ ;;; beamer.el --- AUCTeX style for the latex-beamer class -;; Copyright (C) 2003, 2004, 2005, 2008, 2013 Free Software Foundation +;; Copyright (C) 2003, 2004, 2005, 2008, 2013-2016 Free Software Foundation ;; Author: Thomas Baumann ;; Created: 2003-12-20 @@ -29,7 +29,7 @@ ;;; Code: -(defun LaTeX-beamer-after-insert-env (env start end) +(defun LaTeX-beamer-after-insert-env (env start _end) "Do beamer-specific stuff after the insertion of an environment." ;; Add `fragile' as an optional argument to the frame environment if ;; a verbatim environment is inserted. @@ -87,7 +87,7 @@ '("beamerskipbutton" 1) '("frame" TeX-arg-beamer-frametitle) '("frametitle" - (TeX-arg-eval read-string "Title: " nil 'LaTeX-beamer-frametitle-history)) + (TeX-arg-eval TeX-read-string "Title: " nil 'LaTeX-beamer-frametitle-history)) '("hyperlink" TeX-arg-beamer-overlay-spec 2) '("hyperlinkslideprev" TeX-arg-beamer-overlay-spec 1) '("hyperlinkslidenext" TeX-arg-beamer-overlay-spec 1) @@ -130,14 +130,14 @@ '("beamerboxesrounded" 1) '("block" (lambda (env &rest ignore) (LaTeX-insert-environment - env (format "{%s}" (read-string "Title: "))))) + env (format "{%s}" (TeX-read-string "Title: "))))) '("column" "Width") "columns" "columnsonlytextwidth" '("exampleblock" 1) '("frame" (lambda (env &rest ignore) - (let ((title (read-string "(Optional) Title: " nil - 'LaTeX-beamer-frametitle-history))) + (let ((title (TeX-read-string "(Optional) Title: " nil + 'LaTeX-beamer-frametitle-history))) (LaTeX-insert-environment env) (unless (zerop (length title)) (save-excursion @@ -152,14 +152,14 @@ '("onlyenv" (lambda (env &rest ignore) (LaTeX-insert-environment env - (let ((overlay (read-string "(Optional) Overlay: "))) + (let ((overlay (TeX-read-string "(Optional) Overlay: "))) (unless (zerop (length overlay)) (format "<%s>" overlay)))))) '("overlayarea" "Area width" "Area height") '("overprint" (lambda (env &rest ignore) (LaTeX-insert-environment env - (let ((width (read-string "(Optional) Area width: "))) + (let ((width (TeX-read-string "(Optional) Area width: "))) (unless (zerop (length width)) (format "[%s]" width)))))) "semiverbatim") @@ -169,37 +169,31 @@ "subsectionslide" "framenumber" "figure" "table" "beamerpauses") (LaTeX-add-pagestyles "navigation") - (make-local-variable 'LaTeX-indent-environment-list) - (add-to-list 'LaTeX-indent-environment-list - '("semiverbatim" current-indentation)) - (make-local-variable 'LaTeX-verbatim-regexp) - (setq LaTeX-verbatim-regexp (concat LaTeX-verbatim-regexp "\\|semiverbatim")) + (add-to-list (make-local-variable 'LaTeX-indent-environment-list) + '("semiverbatim" current-indentation) t) (add-to-list 'LaTeX-verbatim-environments-local "semiverbatim") ;; Fontification (when (and (featurep 'font-latex) (eq TeX-install-font-lock 'font-latex-setup)) (font-latex-add-keywords '(("title" "[{") + ("subtitle" "[{") ("author" "[{") ("date" "[{") ("frametitle" "<[{")) 'slide-title) - ;; For syntactic fontification, e.g. verbatim constructs. - (font-latex-set-syntactic-keywords) - ;; Tell font-lock about the update. - (setq font-lock-set-defaults nil) - (font-lock-set-defaults))) + (font-latex-update-font-lock t))) LaTeX-dialect) -(defun TeX-arg-beamer-overlay-spec (optional &optional prompt) +(defun TeX-arg-beamer-overlay-spec (_optional &optional _prompt) "Prompt for overlay specification." - (let ((overlay (read-string "(Optional) Overlay: "))) + (let ((overlay (TeX-read-string "(Optional) Overlay: "))) (unless (zerop (length overlay)) (insert "<" overlay ">")) (indent-according-to-mode))) -(defun TeX-arg-beamer-frametitle (optional &optional prompt) +(defun TeX-arg-beamer-frametitle (_optional &optional _prompt) "Prompt for the frametitle." - (let ((title (read-string "Title: " nil 'LaTeX-beamer-frametitle-history))) + (let ((title (TeX-read-string "Title: " nil 'LaTeX-beamer-frametitle-history))) (if (not (zerop (length title))) (insert TeX-grop TeX-esc "frametitle" TeX-grop title TeX-grcl TeX-grcl) @@ -221,10 +215,10 @@ (insert " ") (indent-according-to-mode)) -(defun TeX-arg-beamer-note (optional &optional prompt) +(defun TeX-arg-beamer-note (_optional &optional _prompt) "Prompt for overlay specification and optional argument." - (let ((overlay (read-string "(Optional) Overlay: ")) - (options (read-string "(Optional) Options: "))) + (let ((overlay (TeX-read-string "(Optional) Overlay: ")) + (options (TeX-read-string "(Optional) Options: "))) (unless (zerop (length overlay)) (insert "<" overlay ">")) (unless (zerop (length options)) @@ -257,7 +251,7 @@ (substring file chars)))) (TeX-search-files nil exts t t)))))) -(defun LaTeX-arg-beamer-theme (&rest ignore) +(defun LaTeX-arg-beamer-theme (&rest _ignore) "Prompt for beamer theme with completion." (TeX-argument-insert (completing-read @@ -276,7 +270,7 @@ nil nil nil) t)) -(defun LaTeX-arg-beamer-inner-theme (&rest ignore) +(defun LaTeX-arg-beamer-inner-theme (&rest _ignore) "Prompt for beamer inner theme with completion." (TeX-argument-insert (completing-read @@ -295,7 +289,7 @@ nil nil nil) t)) -(defun LaTeX-arg-beamer-outer-theme (&rest ignore) +(defun LaTeX-arg-beamer-outer-theme (&rest _ignore) "Prompt for beamer outer theme with completion." (TeX-argument-insert (completing-read @@ -314,7 +308,7 @@ nil nil nil) t)) -(defun LaTeX-arg-beamer-color-theme (&rest ignore) +(defun LaTeX-arg-beamer-color-theme (&rest _ignore) "Prompt for beamer color theme with completion." (TeX-argument-insert (completing-read @@ -333,7 +327,7 @@ nil nil nil) t)) -(defun LaTeX-arg-beamer-font-theme (&rest ignore) +(defun LaTeX-arg-beamer-font-theme (&rest _ignore) "Prompt for beamer font theme with completion." (TeX-argument-insert (completing-read diff -Nru auctex-11.88/style/biblatex.el auctex-11.90/style/biblatex.el --- auctex-11.88/style/biblatex.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/biblatex.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,6 +1,6 @@ ;;; biblatex.el --- AUCTeX style for `biblatex.sty' version 2.8a. -;; Copyright (C) 2012-2014 Free Software Foundation, Inc. +;; Copyright (C) 2012-2014, 2016 Free Software Foundation, Inc. ;; Author: Ralf Angeli ;; Maintainer: auctex-devel@gnu.org @@ -206,9 +206,15 @@ (TeX-argument-insert (TeX-read-string (TeX-argument-prompt t nil "Postnote")) (equal prenote "")))) - (setq items (TeX-completing-read-multiple - (TeX-argument-prompt optional prompt "Key") - (LaTeX-bibitem-list))) + (setq items (if (and (fboundp 'reftex-citation) + (fboundp 'reftex-plug-flag) + (reftex-plug-flag 3)) + ;; Use RefTeX when enabled. + (reftex-citation t) + ;; Multiple citation keys in each argument are allowed. + (TeX-completing-read-multiple + (TeX-argument-prompt optional prompt "Key(s)") + (LaTeX-bibitem-list)))) (apply 'LaTeX-add-bibitems items) ;; If input is empty, insert an empty group only the first time, when ;; `noinsert' flag is nil. @@ -216,6 +222,21 @@ (TeX-argument-insert (mapconcat 'identity items ",") optional)) (setq noinsert t)))) +(defun LaTeX-arg-biblatex-natbib-notes (optional) + "Prompt for two note arguments of a natbib compat citation command." + (when TeX-arg-cite-note-p + (let ((pre (TeX-read-string + (TeX-argument-prompt optional nil "Prenote"))) + (post (TeX-read-string + (TeX-argument-prompt optional nil "Postnote")))) + (TeX-argument-insert pre optional) + (TeX-argument-insert post optional) + ;; pre is given, post is empty: Make sure that we insert an + ;; extra pair of `[]', otherwise pre becomes post + (when (and pre (not (string= pre "")) + (string= post "")) + (insert LaTeX-optop LaTeX-optcl))))) + (TeX-add-style-hook "biblatex" (lambda () @@ -355,6 +376,10 @@ (["Prenote"] ["Postnote"]) ()) TeX-arg-cite) '("Citeauthor" (TeX-arg-conditional TeX-arg-cite-note-p (["Prenote"] ["Postnote"]) ()) TeX-arg-cite) + '("citeauthor*" (TeX-arg-conditional TeX-arg-cite-note-p + (["Prenote"] ["Postnote"]) ()) TeX-arg-cite) + '("Citeauthor*" (TeX-arg-conditional TeX-arg-cite-note-p + (["Prenote"] ["Postnote"]) ()) TeX-arg-cite) '("citetitle" (TeX-arg-conditional TeX-arg-cite-note-p (["Prenote"] ["Postnote"]) ()) TeX-arg-cite) '("citetitle*" (TeX-arg-conditional TeX-arg-cite-note-p @@ -456,6 +481,53 @@ '("DefineHyphenationExceptions" (TeX-arg-eval completing-read "Language: " LaTeX-biblatex-language-list) t) "NewBibliographyString") + + ;; § 3.8.9 natbib Compatibility Commands + (when (or (LaTeX-provided-package-options-member "biblatex" "natbib") + (LaTeX-provided-package-options-member "biblatex" "natbib=true")) + (let ((cmds '(("citet" . 1) ("citet*" . 1) + ("Citet" . 1) ("Citet*" . 1) + ("citep" . 2) ("citep*" . 2) + ("Citep" . 2) ("Citep*" . 2) + ("citealt" . 1) ("citealt*" . 1) + ("Citealt" . 1) ("Citealt*" . 1) + ("citealp" . 2) ("citealp*" . 2) + ("Citealp" . 2) ("Citealp*" . 2)))) + ;; Taken from natbib.el: + (apply + #'TeX-add-symbols + (mapcar + (lambda (cmd) + (cond + ((= (cdr cmd) 1) + ;; Just one optional argument, the post note + (list + (car cmd) + '(TeX-arg-conditional TeX-arg-cite-note-p (["Postnote"]) nil) + 'TeX-arg-cite)) + ((= (cdr cmd) 2) + ;; Pre and post notes + (list + (car cmd) + '(TeX-arg-conditional TeX-arg-cite-note-p + ([LaTeX-arg-biblatex-natbib-notes]) + nil) + 'TeX-arg-cite)))) + cmds)) + + ;; Fontification for compat macros does not go into `font-latex.el': + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("citet" "*[[{") + ("Citet" "*[[{") + ("citep" "*[[{") + ("Citep" "*[[{") + ("citealt" "*[[{") + ("Citealt" "*[[{") + ("citealp" "*[[{") + ("Citealp" "*[[{")) + 'biblatex)))) + (LaTeX-add-environments ;;; Bibliography commands ;; Bibliography Sections @@ -478,7 +550,37 @@ "NewBibliographyString") (LaTeX-declare-expert-environments "biblatex" - "refsection" "refsegment")) + "refsection" "refsegment") + + ;; Tell RefTeX: If package option `natbib' is given, activate that + ;; format, otherwise stick with `biblatex': + (when (and LaTeX-reftex-cite-format-auto-activate + (fboundp 'reftex-set-cite-format)) + (if (or (LaTeX-provided-package-options-member "biblatex" "natbib") + (LaTeX-provided-package-options-member "biblatex" "natbib=true")) + (reftex-set-cite-format 'natbib) + ;; The entry `biblatex' is defined in + ;; `reftex-cite-format-builtin' in reftex-vars.el which will be + ;; part of Emacs >= 25.3. So check here if we find an entry, + ;; otherwise do it manually for older Emacsen. + (if (assoc 'biblatex reftex-cite-format-builtin) + (reftex-set-cite-format 'biblatex) + (reftex-set-cite-format + '((?\C-m . "\\cite[][]{%l}") + (?C . "\\cite*[][]{%l}") + (?t . "\\textcite[][]{%l}") + (?T . "\\textcite*[][]{%l}") + (?p . "\\parencite[][]{%l}") + (?P . "\\parencite*[][]{%l}") + (?f . "\\footcite[][]{%l}") + (?s . "\\smartcite[][]{%l}") + (?u . "\\autocite[][]{%l}") + (?U . "\\autocite*[][]{%l}") + (?a . "\\citeauthor{%l}") + (?A . "\\citeauthor*{%l}") + (?y . "\\citeyear{%l}") + (?Y . "\\citeyear*{%l}") + (?n . "\\nocite{%l}"))))))) LaTeX-dialect) (defvar LaTeX-biblatex-package-options-list @@ -514,7 +616,7 @@ (progn (message "Searching for BibLaTeX styles...") (setq BibLaTeX-global-style-files - (mapcar 'identity (TeX-search-files-by-type 'bbxinputs 'global t t)))) + (TeX-search-files-by-type 'bbxinputs 'global t t))) ;; ...else, use for completion only standard BibLaTeX styles (see §3.3 of ;; Biblatex reference manual). (setq BibLaTeX-global-style-files diff -Nru auctex-11.88/style/bicaption.el auctex-11.90/style/bicaption.el --- auctex-11.88/style/bicaption.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/bicaption.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,182 @@ +;;; bicaption.el --- AUCTeX style for `bicaption.sty' (v1.1-158) + +;; Copyright (C) 2016 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: auctex-devel@gnu.org +;; Created: 2016-11-11 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for `bicaption.sty' (v1.1-158) from +;; 2016/03/27. `bicaption.sty' is part of TeXLive. + +;; If things do not work or when in doubt, press `C-c C-n'. Comments +;; for improvement are welcome. + +;;; Code: + +(defvar LaTeX-bicaption-key-val-options + '(("bi-lang" ("first" "second" "both")) + ("bi-singlelinecheck" ("false" "no" "off" "0" "true" "yes" "on" "1")) + ("bi-slc" ("false" "no" "off" "0" "true" "yes" "on" "1")) + ("bi-swap" ("false" "no" "off" "0" "true" "yes" "on" "1")) + ("listtype+")) + "Key=value options for bicaption macros.") + +(defun LaTeX-arg-bicaption-bicaption (optional &optional prompt star cap-box label-inside) + "Query for the arguments of \"\\bicaption\" incl. a label and insert them. +PROMPT replaces the standard one. If STAR is non-nil, then do +not query for a \\label and short captions, insert only captions. +If CAP-BOX is non-nil, also query and include optional arguments +for the box command. If LABEL-INSIDE is non-nil, insert \\label +inside the first mandatory argument, otherwise after all +arguments." + (let* (;; \bisubcaption needs an environment, "minipage" will be + ;; popular. If so, check next higher environment to find out + ;; where we are + (currenv (if (string= (LaTeX-current-environment) "minipage") + (LaTeX-current-environment 2) + (LaTeX-current-environment))) + (captionI (TeX-read-string + (TeX-argument-prompt + optional (when prompt + (concat "1. " prompt "bicaption")) + "1. bicaption"))) + (short-captionI + (when (and (not star) + (>= (length captionI) LaTeX-short-caption-prompt-length)) + (TeX-read-string + (TeX-argument-prompt t (when prompt + (concat "Short 1. " prompt "bicaption")) + "Short 1. bicaption")))) + (captionII (TeX-read-string + (TeX-argument-prompt + optional (when prompt + (concat "2. " prompt "bicaption")) + "2. bicaption"))) + (short-captionII + (when (and (not star) + (>= (length captionII) LaTeX-short-caption-prompt-length)) + (TeX-read-string + (TeX-argument-prompt t (when prompt + (concat "Short 2. " prompt "bicaption")) + "Short 2. bicaption"))))) + (indent-according-to-mode) + ;; Insert short & regular 1. caption + (when (and short-captionI (not (string= short-captionI ""))) + (insert LaTeX-optop short-captionI LaTeX-optcl)) + (insert TeX-grop captionI) + ;; For \bi(sub)?captionbox, the label must be inserted here + (when (and label-inside (not star)) + (LaTeX-label currenv 'environment)) + (insert TeX-grcl) + (LaTeX-fill-paragraph) + (LaTeX-newline) + (indent-according-to-mode) + ;; Insert short & regular 2. caption + (when (and short-captionII (not (string= short-captionII ""))) + (insert LaTeX-optop short-captionII LaTeX-optcl)) + (insert TeX-grop captionII TeX-grcl) + ;; Insert width & pos in case of captionbox macros: + (when cap-box + (let* ((TeX-arg-opening-brace "[") + (TeX-arg-closing-brace "]") + (width (completing-read (TeX-argument-prompt t nil "Width") + (mapcar (lambda (elt) (concat TeX-esc (car elt))) + (LaTeX-length-list)))) + (inpos (if (and width (not (string-equal width ""))) + (completing-read (TeX-argument-prompt t nil "Inner position") + '("c" "l" "r" "s")) + ""))) + (TeX-argument-insert width t) + (TeX-argument-insert inpos t))) + (LaTeX-fill-paragraph) + ;; Insert label -- a new line is inserted only if label is there: + (when (and (not label-inside) (not star) + (save-excursion (LaTeX-label currenv 'environment))) + (LaTeX-newline) + (indent-according-to-mode) + (end-of-line)))) + +(defun LaTeX-arg-bicaption-captionsetup (optional) + "Query for 2 arguments for \"\\captionsetup\" with bicaption.sty loaded. +When OPTIONAL is non-nil, include both as optional arguments in +square brackets." + (let* ((flttype (completing-read (TeX-argument-prompt optional nil "Float type") + LaTeX-caption-supported-float-types)) + (biflt (if (and (not (or (string= flttype "bi") + (string= flttype "bi-first") + (string= flttype "bi-second"))) + flttype (not (string= flttype ""))) + (completing-read (TeX-argument-prompt optional nil "Bicaption type") + '("bi" "bi-first" "bi-second")) + ""))) + (TeX-argument-insert flttype optional) + (TeX-argument-insert biflt optional))) + +(TeX-add-style-hook + "bicaption" + (lambda () + + ;; Load caption.el: + (TeX-run-style-hooks "caption") + + ;; Macros + (TeX-add-symbols + '("bicaption" (LaTeX-arg-bicaption-bicaption)) + '("bicaption*" (LaTeX-arg-bicaption-bicaption nil t)) + '("bicaptionbox" (LaTeX-arg-bicaption-bicaption nil nil t t) t) + '("bicaptionbox*" (LaTeX-arg-bicaption-bicaption nil t t) t) + '("bisubcaption" (LaTeX-arg-bicaption-bicaption "sub-")) + '("bisubcaption*" (LaTeX-arg-bicaption-bicaption "sub-" t)) + '("bisubcaptionbox" (LaTeX-arg-bicaption-bicaption "sub-" nil t t) t) + '("bisubcaptionbox*" (LaTeX-arg-bicaption-bicaption "sub-" t t t) t)) + + ;; Everything starting with \bi(sub)?caption should get its own line + (LaTeX-paragraph-commands-add-locally '("bicaption" "bisubcaption")) + + ;; Fontification + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("bicaption" "*[{[{") + ("bicaptionbox" "*[{[{[[") + ("bisubcaption" "*[{[{") + ("bisubcaptionbox" "*[{[{[[")) + 'textual))) + LaTeX-dialect) + +(defun LaTeX-bicaption-package-options () + "Prompt for package options for the bicaption package." + (TeX-read-key-val t + (append + `(,(list "language" + (cond ((and (member "babel" (TeX-style-list)) + (LaTeX-babel-active-languages)) + (butlast (LaTeX-babel-active-languages))) + ((and (member "polyglossia" (TeX-style-list)) + (LaTeX-polyglossia-active-languages)) + (butlast (LaTeX-babel-active-languages))) + (t nil)))) + LaTeX-bicaption-key-val-options + LaTeX-caption-key-val-options))) + +;;; bicaption.el ends here diff -Nru auctex-11.88/style/bidibeamer.el auctex-11.90/style/bidibeamer.el --- auctex-11.88/style/bidibeamer.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/bidibeamer.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,40 @@ +;;; bidibeamer.el --- AUCTeX style for the bidibeamer class + +;; Copyright (C) 2015 Free Software Foundation + +;; Author: Tassilo Horn +;; Created: 2015-03-08 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for the bidibeamer class which offers the same +;; functionality and interface as latex-beamer, so we simply call the style +;; hook of the latter. + +;;; Code: + +(TeX-add-style-hook + "bidibeamer" + (lambda () + (TeX-run-style-hooks "beamer")) + LaTeX-dialect) + +;;; bidibeamer.el ends here diff -Nru auctex-11.88/style/bidi.el auctex-11.90/style/bidi.el --- auctex-11.88/style/bidi.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/bidi.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,59 @@ +;;; bidi.el --- AUCTeX style for the (XeLaTeX) bidi package + +;; Copyright (C) 2016 Free Software Foundation, Inc. + +;; Author: Uwe Brauer +;; Created: 2016-03-06 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for the bidi package. + +;;; Code: + +(defvar LaTeX-bidi-package-options '("RTLdocument" "rldocument") + "Package options for the bidi package.") + +(TeX-add-style-hook + "bidi" + (lambda () + (TeX-check-engine-add-engines 'xetex) + (LaTeX-add-environments + "LTR" + "RTL") + ;; Fontification + (TeX-add-symbols + '("setRL" 0) + '("unsetRL" 0) + '("setRTL" 0) + '("unsetRTL" 0) + '("setLR" 0) + '("unsetLR" 0) + '("setLTR" 0) + '("unsetLTR" 0) + '("LR" 1) + '("LRE" 1) + '("RLE" 1) + '("RL" 1))) + LaTeX-dialect) + + +;;; bidi.el ends here diff -Nru auctex-11.88/style/bigstrut.el auctex-11.90/style/bigstrut.el --- auctex-11.88/style/bigstrut.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/bigstrut.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,6 +1,6 @@ ;;; bigstrut.el --- AUCTeX style for `bigstrut.sty' -;; Copyright (C) 2012 Free Software Foundation, Inc. +;; Copyright (C) 2012, 2014 Free Software Foundation, Inc. ;; Author: Mads Jensen ;; Maintainer: auctex-devel@gnu.org @@ -37,12 +37,13 @@ '("bigstrut" [ TeX-arg-bigstrut ]))) LaTeX-dialect) -(defun TeX-arg-bigstrut (optional &optional prompt) - "Prompt for the optional argument in \\bigstrut" +(defun TeX-arg-bigstrut (optional &optional _prompt) + "Prompt for the optional argument in \\bigstrut." (TeX-argument-insert (completing-read (TeX-argument-prompt optional "Strut to top (t) or bottom (b)" nil t) - (mapcar 'list '("t" "b")) nil t) optional)) + (mapcar 'list '("t" "b")) nil t) + optional)) (defvar LaTeX-bigstrut-package-options nil "Package options for the bigstrut package.") diff -Nru auctex-11.88/style/book.el auctex-11.90/style/book.el --- auctex-11.88/style/book.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/book.el 2017-01-10 21:35:28.000000000 +0000 @@ -11,8 +11,8 @@ (TeX-add-style-hook "book" - (lambda () - (LaTeX-largest-level-set "chapter") + (lambda () + (LaTeX-largest-level-set "part") (LaTeX-add-counters "part" "chapter" "section" "subsection" "subsubsection" "paragraph" "subparagraph" "figure" "table") (LaTeX-add-pagestyles "headings" "myheadings")) diff -Nru auctex-11.88/style/caption.el auctex-11.90/style/caption.el --- auctex-11.88/style/caption.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/caption.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,460 @@ +;;; caption.el --- AUCTeX style for `caption.sty' (v3.3-111) + +;; Copyright (C) 2015, 2016 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: auctex-devel@gnu.org +;; Created: 2015-02-21 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for `caption.sty' (v3.3-111) from 2015/09/17. +;; `caption.sty' is part of TeXLive. + +;; If things do not work or when in doubt, press `C-c C-n'. Comments +;; for improvement are welcome. + +;;; Code: + +;; Needed for compiling `pushnew': +(eval-when-compile (require 'cl)) + +;; Needed for auto-parsing. +(require 'tex) + +(defvar LaTeX-caption-key-val-options + '(("aboveskip") + ("belowskip") + ("font" ("scriptsize" "footnotesize" "small" "normalsize" "large" + "Large" "normalfont" "up" "it" "sl" "sc" "md" "bf" "rm" + "sf" "tt" "singlespacing" "onehalfspacing" "doublespacing" + "stretch" "normalcolor" "color" "normal")) + ("font+" ("scriptsize" "footnotesize" "small" "normalsize" "large" + "Large" "normalfont" "up" "it" "sl" "sc" "md" "bf" "rm" + "sf" "tt" "singlespacing" "onehalfspacing" "doublespacing" + "stretch" "normalcolor" "color" "normal")) + ("format" ("plain" "hang")) + ("hangindent") + ("hypcap" ("false" "no" "off" "0" "true" "yes" "on" "1")) + ("hypcapspace") + ("indention") + ("justification" ("justified" "centering" "centerlast" "centerfirst" + "raggedright" "RaggedRight" "raggedleft")) + ("labelfont" ("scriptsize" "footnotesize" "small" "normalsize" "large" + "Large" "normalfont" "up" "it" "sl" "sc" "md" "bf" "rm" + "sf" "tt" "singlespacing" "onehalfspacing" "doublespacing" + "stretch" "normalcolor" "color" "normal")) + ("labelfont+" ("scriptsize" "footnotesize" "small" "normalsize" "large" + "Large" "normalfont" "up" "it" "sl" "sc" "md" "bf" "rm" + "sf" "tt" "singlespacing" "onehalfspacing" "doublespacing" + "stretch" "normalcolor" "color" "normal")) + ("labelformat" ("default" "empty" "simple" "brace" "parens")) + ("labelsep" ("none" "colon" "period" "space" "quad" "newline" "endash")) + ("list" ("false" "no" "off" "0" "true" "yes" "on" "1")) + ("listformat" ("empty" "simple" "paren" "subsimple" "subparens")) + ("margin") + ("margin*") + ("maxmargin") + ("minmargin") + ("name") + ("oneside") + ("parindent") + ("parskip") + ("position" ("top" "above" "bottom" "below" "auto")) + ("singlelinecheck" ("false" "no" "off" "0" "true" "yes" "on" "1")) + ("slc" ("false" "no" "off" "0" "true" "yes" "on" "1")) + ("skip") + ("strut" ("false" "no" "off" "0" "true" "yes" "on" "1")) + ("style" ("base" "default")) + ("textfont" ("scriptsize" "footnotesize" "small" "normalsize" "large" + "Large" "normalfont" "up" "it" "sl" "sc" "md" "bf" "rm" + "sf" "tt" "singlespacing" "onehalfspacing" "doublespacing" + "stretch" "normalcolor" "color" "normal")) + ("textfont+" ("scriptsize" "footnotesize" "small" "normalsize" "large" + "Large" "normalfont" "up" "it" "sl" "sc" "md" "bf" "rm" + "sf" "tt" "singlespacing" "onehalfspacing" "doublespacing" + "stretch" "normalcolor" "color" "normal")) + ("textformat" ("empty" "simple" "period")) + ("twoside") + ("type" ("figure" "table" "ContinuedFloat")) + ("type*" ("figure" "table" "ContinuedFloat")) + ("width")) + "Key=value options for caption macros.") + +(defvar LaTeX-caption-key-val-options-local nil + "Buffer-local key=value options for caption macros.") +(make-variable-buffer-local 'LaTeX-caption-key-val-options-local) + +(defvar LaTeX-caption-supported-float-types + '("figure" "table" "ContinuedFloat" ; Standard caption.sty + "sub" "subtable" "subfigure" ; subcaption.sty + "bi" "bi-first" "bi-second" ; bicaption.sty + "ruled" "boxed" ; float.sty + "floatingfigure" "floatingtable" ; floatflt.sty + "lstlisting" ; listings.sty + "longtable" ; longtable.sty + "figwindow" "tabwindow" ; picinpar.sty + "parpic" ; picins.sty + "SCfigure" "SCtable" ; sidecap.sty + "supertabular" "xtabular" ; supertabular.sty & xtab.sty + "threeparttable" "measuredfigure" ; threeparttable.sty + "wrapfigure" "wraptable") ; wrapfigure + "List of float types provided by other LaTeX packages and +supported by `caption.sty'.") + +;; Setup for various \DeclareCaption's: +(TeX-auto-add-type "caption-DeclareCaption" "LaTeX") + +;; The 2. argument to `DeclareCaption[A-Za-z]' contains (La)TeX code. +;; We deliberately ignore that argument in our regex since it is not +;; needed for this style and would pollute the auto generated +;; `docname.el' file. +(defvar LaTeX-caption-DeclareCaption-regexp + `(,(concat "\\\\DeclareCaption\\(Font\\|Format\\|Justification" + "\\|LabelFormat\\|LabelSeparator\\|ListFormat" + "\\|Option\\|Style\\|TextFormat\\)" + "\\*?" + "[ \t\n\r%]*" + "{\\([^}]+\\)}") + (0 1 2) LaTeX-auto-caption-DeclareCaption) + "Matches the arguments of different `\\DeclareCaption*' from +`caption.sty'.") + +(defun LaTeX-caption-auto-prepare () + "Clear `LaTeX-auto-caption-DeclareCaption' before parsing." + (setq LaTeX-auto-caption-DeclareCaption nil)) + +(add-hook 'TeX-auto-prepare-hook #'LaTeX-caption-auto-prepare t) +(add-hook 'TeX-update-style-hook #'TeX-auto-parse t) + +(defun LaTeX-caption-update-key-val-options () + "Update the buffer-local key-val options before offering them +in `caption'-completions." + (dolist (keyvals (LaTeX-caption-DeclareCaption-list)) + (let* ((key (cond ((string-equal (nth 1 keyvals) "LabelSeparator") + (downcase (substring (nth 1 keyvals) 0 8))) + (t (downcase (nth 1 keyvals))))) + (val (nth 2 keyvals)) + (val-match (cdr (assoc key LaTeX-caption-key-val-options-local))) + (temp (copy-alist LaTeX-caption-key-val-options-local)) + ;; If `subcaption.el' is loaded, delete and update also the + ;; entry for `subrefformat' when processing the `labelformat'. + (opts (progn + (when (and (string-equal key "labelformat") + (boundp 'LaTeX-subcaption-key-val-options)) + (setq temp + (assq-delete-all + (car (assoc (caar LaTeX-subcaption-key-val-options) temp)) + temp))) + (assq-delete-all (car (assoc key temp)) temp)))) + ;; For `\DeclareCaptionOption', only add the value + ;; (remember: key=^^^^^^, val="defined key") + (if (string-equal key "option") + (pushnew (list val) opts :test #'equal) + ;; For anything but `\DeclareCaptionOption', do the standard + ;; procedure. Again, take care of `subrefformat' for `subcaption.el'. + (if val-match + (progn + (when (and (string-equal key "labelformat") + (boundp 'LaTeX-subcaption-key-val-options)) + (pushnew (list "subrefformat" + (delete-dups (apply #'append (list val) val-match))) + opts :test #'equal)) + (pushnew (list key (delete-dups (apply #'append (list val) val-match))) + opts :test #'equal)) + (pushnew (list key (list val)) opts :test #'equal))) + (setq LaTeX-caption-key-val-options-local (copy-alist opts)))) + ;; Support for environments defined with newfloat.sty: These + ;; environments are added to "type" and "type*" key: + (when (and (member "newfloat" (TeX-style-list)) + (fboundp 'LaTeX-newfloat-DeclareFloatingEnvironment-list) + (LaTeX-newfloat-DeclareFloatingEnvironment-list)) + (dolist (key '("type" "type*")) + (let* ((val (mapcar #'car (LaTeX-newfloat-DeclareFloatingEnvironment-list))) + (val-match (cdr (assoc key LaTeX-caption-key-val-options-local))) + (temp (copy-alist LaTeX-caption-key-val-options-local)) + (opts (assq-delete-all (car (assoc key temp)) temp))) + (pushnew (list key (delete-dups (apply #'append val val-match))) + opts :test #'equal) + (setq LaTeX-caption-key-val-options-local (copy-alist opts)))))) + +(defun LaTeX-arg-caption-command (optional &optional prompt) + "Insert caption-commands from `caption.sty'. If OPTIONAL, +indicate `(Optional)' while reading key=val and insert it in +square brackets. PROMPT replaces the standard one." + (LaTeX-caption-update-key-val-options) + (let ((opts (TeX-read-key-val optional + LaTeX-caption-key-val-options-local + prompt))) + (TeX-argument-insert opts optional))) + +;; In `LaTeX-caption-DeclareCaption-regexp', we match (0 1 2). When +;; adding a new `Name', we need something unique for `0'-match until +;; the next `C-c C-n'. We mimic that regex-match bei concat'ing the +;; elements. It will vanish upon next `C-c C-n'. +(defun LaTeX-arg-caption-DeclareCaption (optional format) + "Insert various `\\DeclareCaptionFORMAT' commands. If +OPTIONAL, insert argument in square brackets. FORMAT is the +suffix of the command." + (let ((name (TeX-read-string "Name: "))) + (LaTeX-add-caption-DeclareCaptions + (list (concat "\\DeclareCaption" format "{" name "}") + format name)) + (TeX-argument-insert name optional))) + +;; Support for an undocumented feature of caption.sty: +;; `\captionbox' sets the width of the caption equal to the width of +;; the contents (a feature provided e.g. by `threeparttable.sty'). +;; The starred version typesets the caption without label and without +;; entry to the list of figures or tables. + +;; The first mandatory argument {} contains the caption text +;; and the label. We used to use `TeX-insert-macro' to do the job +;; (Thanks to M. Giordano for his valuable comments on this!), but now +;; moved to `LaTeX-label'. + +;; Syntax: +;; \captionbox[]{}[][]{} +;; \captionbox*{}[][]{} + +(defun LaTeX-arg-caption-captionbox (optional &optional star) + "Query for the arguments of \"\\captionbox\" incl. a label and insert them. +If STAR is non-nil, then do not query for a \\label and a short +caption, insert only a caption." + (let* ((currenv (LaTeX-current-environment)) + (caption (TeX-read-string + (TeX-argument-prompt optional nil "Caption"))) + (short-caption + (when (and (not star) + (>= (length caption) LaTeX-short-caption-prompt-length)) + (TeX-read-string + (TeX-argument-prompt t nil "Short caption"))))) + (indent-according-to-mode) + (when (and short-caption (not (string= short-caption ""))) + (insert LaTeX-optop short-caption LaTeX-optcl)) + (insert TeX-grop caption) + (unless star (LaTeX-label currenv 'environment)) + (insert TeX-grcl)) + (let* ((TeX-arg-opening-brace "[") + (TeX-arg-closing-brace "]") + (width (completing-read (TeX-argument-prompt t nil "Width") + (mapcar (lambda (elt) (concat TeX-esc (car elt))) + (LaTeX-length-list)))) + (inpos (if (and width (not (string-equal width ""))) + (completing-read (TeX-argument-prompt t nil "Inner position") + '("c" "l" "r" "s")) + ""))) + (TeX-argument-insert width t) + (TeX-argument-insert inpos t)) + ;; Fill the paragraph before inserting {}. We can use + ;; `LaTeX-fill-paragraph' without messing up the code since + ;; \caption starts a new paragraph with AUCTeX + ;; (cf. `paragraph-start'). + (LaTeX-fill-paragraph)) + +(defun LaTeX-arg-caption-captionof (optional &optional star) + "Query for the arguments of \"\\captionof\" macro and insert them. +If OPTIONAL is non-nil, insert the arguments in brackets. If +STAR is non-nil, do not query for a short-caption and a label." + (let* ((envtype (completing-read (TeX-argument-prompt optional nil "Float type") + LaTeX-caption-supported-float-types)) + (figtypes '("figure" "subfigure" "floatingfigure" + "figwindow" "SCfigure" "measuredfigure" "wrapfigure")) + (tabtypes '("table" "subtable" "floatingtable" "tabwindow" "SCtable" + "supertabular" "xtabular" "threeparttable" "wraptable")) + (caption (TeX-read-string + (TeX-argument-prompt optional nil "Caption"))) + (short-caption + (when (and (not star) + (>= (length caption) LaTeX-short-caption-prompt-length)) + (TeX-read-string + (TeX-argument-prompt t nil "Short caption"))))) + (indent-according-to-mode) + (TeX-argument-insert envtype optional) + (when (and short-caption (not (string= short-caption ""))) + (insert LaTeX-optop short-caption LaTeX-optcl)) + (TeX-argument-insert caption optional) + (LaTeX-fill-paragraph) + (unless star + ;; Check if `envtype' is a figure or a table, also consult + ;; `LaTeX-label-alist' for additions from user or newfloat.el, + ;; then run `LaTeX-label' w/ 'environment arg, otherwise w/o. + (save-excursion + (if (or (member envtype figtypes) + (member envtype tabtypes) + (assoc envtype LaTeX-label-alist)) + (LaTeX-label (cond ((member envtype figtypes) + "figure") + ((member envtype tabtypes) + "table") + (t envtype)) + 'environment) + (LaTeX-label envtype))) + (when (looking-at-p "\\\\label{") + (LaTeX-newline) + (indent-according-to-mode) + (end-of-line))))) + +(TeX-add-style-hook + "caption" + (lambda () + + ;; Add caption to the parser. + (TeX-auto-add-regexp LaTeX-caption-DeclareCaption-regexp) + + ;; Activate the buffer-local version of key-vals. + (setq LaTeX-caption-key-val-options-local + (copy-alist LaTeX-caption-key-val-options)) + + ;; Append key=vals from bicaption.sty if loaded: "language" key + ;; depends on the active languages, it is appended extra where main + ;; language is removed from the list: + (when (and (member "bicaption" (TeX-style-list)) + ;; Make sure that one of these packages is loaded: + (or (fboundp 'LaTeX-babel-active-languages) + (fboundp 'LaTeX-polyglossia-active-languages))) + (setq LaTeX-caption-key-val-options-local + (append + `(,(list "language" + (or (butlast (LaTeX-babel-active-languages)) + (butlast (LaTeX-polyglossia-active-languages))))) + LaTeX-bicaption-key-val-options + LaTeX-caption-key-val-options-local))) + + ;; Caption commands: + (TeX-add-symbols + '("caption*" t) + + '("captionlistentry" + [TeX-arg-eval completing-read (TeX-argument-prompt t nil "Float type") + LaTeX-caption-supported-float-types] + t) + + '("captionof" LaTeX-arg-caption-captionof) + + '("captionof*" (LaTeX-arg-caption-captionof t)) + + '("captionsetup" + (TeX-arg-conditional (member "bicaption" (TeX-style-list)) + ([LaTeX-arg-bicaption-captionsetup]) + ([TeX-arg-eval completing-read + (TeX-argument-prompt t nil "Float type") + LaTeX-caption-supported-float-types])) + (LaTeX-arg-caption-command)) + + '("captionsetup*" + (TeX-arg-conditional (member "bicaption" (TeX-style-list)) + ([LaTeX-arg-bicaption-captionsetup]) + ([TeX-arg-eval completing-read + (TeX-argument-prompt t nil "Float type") + LaTeX-caption-supported-float-types])) + (LaTeX-arg-caption-command)) + + '("clearcaptionsetup" + [LaTeX-arg-caption-command "Single key"] + (TeX-arg-eval completing-read (TeX-argument-prompt nil nil "Float type") + LaTeX-caption-supported-float-types)) + + '("clearcaptionsetup*" + [LaTeX-arg-caption-command "Single key"] + (TeX-arg-eval completing-read (TeX-argument-prompt nil nil "Float type") + LaTeX-caption-supported-float-types)) + + '("captionbox" (LaTeX-arg-caption-captionbox) t) + + '("captionbox*" (LaTeX-arg-caption-captionbox t) t) + + '("ContinuedFloat" 0) + '("ContinuedFloat*" 0) + + '("continuedfloat" 0) + '("continuedfloat*" 0) + + '("DeclareCaptionFont" + (LaTeX-arg-caption-DeclareCaption "Font") t) + + '("DeclareCaptionFormat" + (LaTeX-arg-caption-DeclareCaption "Format") t) + + '("DeclareCaptionFormat*" + (LaTeX-arg-caption-DeclareCaption "Format") t) + + '("DeclareCaptionJustification" + (LaTeX-arg-caption-DeclareCaption "Justification") t) + + '("DeclareCaptionLabelFormat" + (LaTeX-arg-caption-DeclareCaption "LabelFormat") t) + + '("DeclareCaptionLabelSeparator" + (LaTeX-arg-caption-DeclareCaption "LabelSeparator") t) + + '("DeclareCaptionLabelSeparator*" + (LaTeX-arg-caption-DeclareCaption "LabelSeparator") t) + + '("DeclareCaptionListFormat" + (LaTeX-arg-caption-DeclareCaption "ListFormat") t) + + '("DeclareCaptionOption" + (LaTeX-arg-caption-DeclareCaption "Option") t) + + '("DeclareCaptionStyle" + (LaTeX-arg-caption-DeclareCaption "Style") + [LaTeX-arg-caption-command "Additional options"] + (LaTeX-arg-caption-command "Options")) + + '("DeclareCaptionTextFormat" + (LaTeX-arg-caption-DeclareCaption "TextFormat") t) + + '("bothIfFirst" 2) + + '("bothIfSecond" 2)) + + ;; Fontification + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("caption" "*[{") + ("captionlistentry" "[{") + ("captionof" "*{[{") + ("captionbox" "*[{[[")) + 'textual) + (font-latex-add-keywords '(("captionsetup" "*[[{") + ("clearcaptionsetup" "*[{") + ("DeclareCaptionFont" "{{") + ("DeclareCaptionFormat" "*{{") + ("DeclareCaptionJustification" "{{") + ("DeclareCaptionLabelFormat" "{{") + ("DeclareCaptionLabelSeparator" "*{{") + ("DeclareCaptionListFormat" "{{") + ("DeclareCaptionOption" "{{") + ("DeclareCaptionStyle" "{[{") + ("DeclareCaptionTextFormat" "{{")) + 'function)) ) + LaTeX-dialect) + +(defun LaTeX-caption-package-options () + "Prompt for package options for the caption package." + (TeX-read-key-val t + (append '(("compatibility" ("true" "false"))) + '(("figureposition" ("top" "above" "bottom" "below"))) + '(("tableposition" ("top" "above" "bottom" "below"))) + LaTeX-caption-key-val-options))) + +;;; caption.el ends here diff -Nru auctex-11.88/style/CJK.el auctex-11.90/style/CJK.el --- auctex-11.88/style/CJK.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/CJK.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,6 +1,6 @@ ;;; CJK.el --- AUCTeX style for the CJK package. -;; Copyright (C) 2009 Free Software Foundation, Inc. +;; Copyright (C) 2009, 2014 Free Software Foundation, Inc. ;; Author: Ralf Angeli ;; Maintainer: auctex-devel@gnu.org @@ -46,11 +46,11 @@ (LaTeX-insert-environment env (concat - (let ((font-enc (read-string "(Optional) Font encoding: "))) + (let ((font-enc (TeX-read-string "(Optional) Font encoding: "))) (unless (zerop (length font-enc)) (format "[%s]" font-enc))) (format "{%s}" (completing-read "Encoding: " (mapcar 'list LaTeX-CJK-enc-list))) - (format "{%s}" (read-string "Font family: "))))) + (format "{%s}" (TeX-read-string "Font family: "))))) (TeX-add-style-hook "CJK" diff -Nru auctex-11.88/style/cleveref.el auctex-11.90/style/cleveref.el --- auctex-11.88/style/cleveref.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/cleveref.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,6 +1,6 @@ ;;; cleveref.el --- Style hook for the `cleveref.sty' package. -;; Copyright (C) 2014 Free Software Foundation, Inc. +;; Copyright (C) 2014--2016 Free Software Foundation, Inc. ;; Author: Matthew Leach ;; Maintainer: auctex-devel@gnu.org @@ -25,19 +25,22 @@ ;;; Code -(defun TeX-arg-cleveref-multiple-labels (optional &optional prompt definition) +(defun TeX-arg-cleveref-multiple-labels (optional &optional prompt) "Prompt for a series of labels completing with known labels. If OPTIONAL is non-nil, insert the resulting value as an optional argument, otherwise as a mandatory one. Use PROMPT as the prompt -string. If DEFINITION is non-nil, add each chosen label to the -list of defined labels." - (let* ((labels (TeX-completing-read-multiple - (TeX-argument-prompt optional prompt "Keys") - (LaTeX-label-list))) - (labels-string (mapconcat 'identity labels ","))) - (when definition - (apply 'LaTeX-add-labels labels)) - (TeX-argument-insert labels-string optional optional))) +string." + (if (and (fboundp 'reftex-arg-label) + (fboundp 'reftex-plug-flag) + (reftex-plug-flag 2)) + ;; Use RefTeX when enabled + (TeX-arg-ref optional) + ;; Use AUCTeX interface + (let* ((labels (TeX-completing-read-multiple + (TeX-argument-prompt optional prompt "Keys") + (LaTeX-label-list))) + (labels-string (mapconcat #'identity labels ","))) + (TeX-argument-insert labels-string optional)))) (TeX-add-style-hook "cleveref" @@ -45,22 +48,22 @@ (TeX-add-symbols '("cref" TeX-arg-cleveref-multiple-labels) '("Cref" TeX-arg-cleveref-multiple-labels) - '("crefrange" (TeX-arg-label "Key (first)") (TeX-arg-label "Key (last)")) - '("Crefrange" (TeX-arg-label "key (first)") (TeX-arg-label "Key (last)")) + '("crefrange" (TeX-arg-ref "Key (first)") (TeX-arg-ref "Key (last)")) + '("Crefrange" (TeX-arg-ref "key (first)") (TeX-arg-ref "Key (last)")) '("cpageref" TeX-arg-cleveref-multiple-labels) '("Cpageref" TeX-arg-cleveref-multiple-labels) - '("cpagerefrange" (TeX-arg-label "Key (first)") (TeX-arg-label "Key (last)")) - '("Cpagerefrange" (TeX-arg-label "Key (first)") (TeX-arg-label "Key (last)")) + '("cpagerefrange" (TeX-arg-ref "Key (first)") (TeX-arg-ref "Key (last)")) + '("Cpagerefrange" (TeX-arg-ref "Key (first)") (TeX-arg-ref "Key (last)")) '("cref*" TeX-arg-cleveref-multiple-labels) '("Cref*" TeX-arg-cleveref-multiple-labels) - '("crefrange*" (TeX-arg-label "Key (first)") (TeX-arg-label "Key (last)")) - '("Crefrange*" (TeX-arg-label "Key (first)") (TeX-arg-label "Key (last)")) - '("namecref" TeX-arg-label) - '("nameCref" TeX-arg-label) - '("lnamecref" TeX-arg-label) - '("namecrefs" TeX-arg-label) - '("nameCrefs" TeX-arg-label) - '("lnamecrefs" TeX-arg-label) + '("crefrange*" (TeX-arg-ref "Key (first)") (TeX-arg-ref "Key (last)")) + '("Crefrange*" (TeX-arg-ref "Key (first)") (TeX-arg-ref "Key (last)")) + '("namecref" TeX-arg-ref) + '("nameCref" TeX-arg-ref) + '("lcnamecref" TeX-arg-ref) + '("namecrefs" TeX-arg-ref) + '("nameCrefs" TeX-arg-ref) + '("lcnamecrefs" TeX-arg-ref) '("labelcref" TeX-arg-cleveref-multiple-labels) '("labelcpageref" TeX-arg-cleveref-multiple-labels)) @@ -68,12 +71,11 @@ ;; normal referencing. (TeX-declare-expert-macros "cleveref" - "namecref" "nameCref" "lnamecref" "namecrefs" "nameCrefs" - "lnamecrefs" "labelcref" "labelcpageref") + "namecref" "nameCref" "lcnamecref" "namecrefs" "nameCrefs" + "lcnamecrefs" "labelcref" "labelcpageref") ;; Fontification (when (and (fboundp 'font-latex-add-keywords) - (fboundp 'font-latex-set-syntactic-keywords) (eq TeX-install-font-lock 'font-latex-setup)) (font-latex-add-keywords '(("cref" "*{") ("Cref" "*{") @@ -85,15 +87,18 @@ ("Cpagerefrange" "{{") ("namecref" "{") ("nameCref" "{") - ("lnamecref" "{") + ("lcnamecref" "{") ("namecrefs" "{") ("nameCrefs" "{") - ("lnamecrefs" "{") + ("lcnamecrefs" "{") ("labelcref" "{") ("labelcpageref" "{")) - 'reference) - ;; For syntactic fontification, e.g. verbatim constructs. - (font-latex-set-syntactic-keywords))) + 'reference)) + + ;; Activate RefTeX reference style. + (and LaTeX-reftex-ref-style-auto-activate + (fboundp 'reftex-ref-style-activate) + (reftex-ref-style-activate "Cleveref"))) LaTeX-dialect) (defvar LaTeX-cleveref-package-options diff -Nru auctex-11.88/style/color.el auctex-11.90/style/color.el --- auctex-11.88/style/color.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/color.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,310 @@ +;;; color.el --- AUCTeX style for `color.sty' (v1.1a) + +;; Copyright (C) 2015, 2016 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: auctex-devel@gnu.org +;; Created: 2015-01-16 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for `color.sty' (v1.1a) from 2014/10/28. +;; `color.sty' is part of TeXLive. + +;; Many thanks to Tassilo Horn for his percetive comments on +;; implementation of this style and testing. + +;;; Code: + +(defvar LaTeX-color-colour-models + '("cmyk" "gray" "named" "rgb") + "List of color models provided by `color.sty'.") + +(defvar LaTeX-color-dvipsnames-colors + '("Apricot" "Aquamarine" "Bittersweet" "Black" + "Blue" "BlueGreen" "BlueViolet" "BrickRed" + "Brown" "BurntOrange" "CadetBlue" "CarnationPink" + "Cerulean" "CornflowerBlue" "Cyan" "Dandelion" + "DarkOrchid" "Emerald" "ForestGreen" "Fuchsia" + "Goldenrod" "Gray" "Green" "GreenYellow" + "JungleGreen" "Lavender" "LimeGreen" "Magenta" + "Mahogany" "Maroon" "Melon" "MidnightBlue" + "Mulberry" "NavyBlue" "OliveGreen" "Orange" + "OrangeRed" "Orchid" "Peach" "Periwinkle" + "PineGreen" "Plum" "ProcessBlue" "Purple" + "RawSienna" "Red" "RedOrange" "RedViolet" + "Rhodamine" "RoyalBlue" "RoyalPurple" "RubineRed" + "Salmon" "SeaGreen" "Sepia" "SkyBlue" + "SpringGreen" "Tan" "TealBlue" "Thistle" + "Turquoise" "Violet" "VioletRed" "White" + "WildStrawberry" "Yellow" "YellowGreen" "YellowOrange") + "List of colors defined by package option `dvipsnames' from `color.sty'.") + +;; Needed for auto-parsing. +(require 'tex) + +;; Plug color into the parser -- after that we have the following: +;; 1. LaTeX-auto-color-definecolor: Name of temporary variable used +;; when parsing. +;; 2. LaTeX-add-color-definecolors: Name of function to add +;; information to add to #3. +;; 3. LaTeX-color-definecolor-list: Name of variable holding buffer +;; local information. +;; 4. LaTeX-color-definecolors-changed: Name of variable indicating +;; that #3 has changed. +(TeX-auto-add-type "color-definecolor" "LaTeX") + +(defvar LaTeX-color-definecolor-regexp + '("\\\\definecolor{\\([^}]+\\)}{\\([^}]+\\)}{\\([^}]+\\)}" + 1 LaTeX-auto-color-definecolor) + "Matches the arguments of `\\definecolor' from `color' +package.") + +(defun LaTeX-color-auto-prepare () + "Clear `LaTeX-auto-color-definecolor' before parsing." + (setq LaTeX-auto-color-definecolor nil)) + +(defun LaTeX-color-auto-cleanup () + "Move parsed colors from `LaTeX-auto-color-definecolor' to +`LaTeX-color-definecolor-list'." + ;; \definecolor{}{}{} + ;; color=, ignored=, ignored= + (dolist (color LaTeX-auto-color-definecolor) + (add-to-list 'LaTeX-color-definecolor-list (list color)))) + +(add-hook 'TeX-auto-prepare-hook #'LaTeX-color-auto-prepare t) +(add-hook 'TeX-auto-cleanup-hook #'LaTeX-color-auto-cleanup t) +(add-hook 'TeX-update-style-hook #'TeX-auto-parse t) + +(defun TeX-arg-color-definecolor (optional &optional prompt) + "Insert arguments of `\\definecolor' from `color.sty'." + ;; \definecolor{}{}{} + ;; Ask for , add to our list and insert it + (let ((colorname (TeX-read-string "Color name: "))) + (LaTeX-add-color-definecolors colorname) + (TeX-argument-insert colorname optional)) + ;; Ask and insert + (let ((model (completing-read + (TeX-argument-prompt optional prompt "Color model") + (if (not (or (LaTeX-provided-package-options-member "color" "dvips") + (LaTeX-provided-package-options-member "color" "dvipsnames"))) + (remove "named" LaTeX-color-colour-models) + LaTeX-color-colour-models)))) + (TeX-argument-insert model optional) + ;; Depending on , ask for and insert it + (cond (;; model + (string-equal model "cmyk") + (let ((cyan (TeX-read-string "Value Cyan (between 0,1): ")) + (magenta (TeX-read-string "Value Magenta (between 0,1): ")) + (yellow (TeX-read-string "Value Yellow (between 0,1): ")) + (black (TeX-read-string "Value Black (between 0,1): "))) + (TeX-argument-insert + (concat cyan "," magenta "," yellow "," black) optional))) + ;; model + ((string-equal model "rgb") + (let ((red (TeX-read-string "Value Red (between 0,1): ")) + (green (TeX-read-string "Value Green (between 0,1): ")) + (blue (TeX-read-string "Value Blue (between 0,1): "))) + (TeX-argument-insert + (concat red "," green "," blue) optional))) + ;; model + ((string-equal model "gray") + (let ((grayness (TeX-read-string "Value Gray (between 0,1): "))) + (TeX-argument-insert grayness optional))) + ;; model takes the dvipsnames + ((string-equal model "named") + (let ((color (completing-read "Named Color: " + LaTeX-color-dvipsnames-colors))) + (TeX-argument-insert color optional)))))) + +(defun TeX-arg-color (optional &optional prompt) + "Insert arguments of various color commands from `color.sty'." + ;; \color{} or \color[]{} + ;; First, ask for . `named' is removed here from completion + ;; if package option is not given + (let ((model (completing-read + (TeX-argument-prompt t prompt "Color model") + (if (not (or (LaTeX-provided-package-options-member "color" "dvips") + (LaTeX-provided-package-options-member "color" "dvipsnames"))) + (remove "named" LaTeX-color-colour-models) + LaTeX-color-colour-models)))) + (if (string-equal model "") + ;; if empty, ask for with completion + (let ((color (completing-read + (TeX-argument-prompt optional prompt "Color name") + (LaTeX-color-definecolor-list)))) + (TeX-argument-insert color optional)) + ;; if not empty, insert [] and proceed + (insert (concat LaTeX-optop model LaTeX-optcl)) + (cond (;; model + (string-equal model "cmyk") + (let ((cyan (TeX-read-string "Value Cyan (between 0,1): ")) + (magenta (TeX-read-string "Value Magenta (between 0,1): ")) + (yellow (TeX-read-string "Value Yellow (between 0,1): ")) + (black (TeX-read-string "Value Black (between 0,1): "))) + (TeX-argument-insert + (concat cyan "," magenta "," yellow "," black) optional))) + ;; model + ((string-equal model "rgb") + (let ((red (TeX-read-string "Value Red (between 0,1): ")) + (green (TeX-read-string "Value Green (between 0,1): ")) + (blue (TeX-read-string "Value Blue (between 0,1): "))) + (TeX-argument-insert + (concat red "," green "," blue) optional))) + ;; model + ((string-equal model "gray") + (let ((grayness (TeX-read-string "Value Gray (between 0,1): "))) + (TeX-argument-insert grayness optional))) + ;; model; allowed are dvipsnames. + ((string-equal model "named") + (let ((color (completing-read "Named Color: " + LaTeX-color-dvipsnames-colors))) + (TeX-argument-insert color optional))))))) + +(defun TeX-arg-color-fcolorbox (optional &optional prompt) + "Insert arguments of `\\fcolorbox' from `color.sty'. " + ;; \fcolorbox{}{}{} or + ;; \fcolorbox[]{}{}{} + ;; First, ask for ; remove `named' again + (let ((model (completing-read + (TeX-argument-prompt t prompt "Color model") + (if (not (or (LaTeX-provided-package-options-member "color" "dvips") + (LaTeX-provided-package-options-member "color" "dvipsnames"))) + (remove "named" LaTeX-color-colour-models) + LaTeX-color-colour-models)))) + (if (string-equal model "") + ;; if empty, ask for with completion + (let ((frame-color (completing-read + (TeX-argument-prompt optional prompt "Frame color name") + (LaTeX-color-definecolor-list))) + (box-color (completing-read + (TeX-argument-prompt optional prompt "Box color name") + (LaTeX-color-definecolor-list)))) + (TeX-argument-insert frame-color optional) + (TeX-argument-insert box-color optional)) + ;; if not empty, insert [] and cater for 2 mandatory args. + (insert (concat LaTeX-optop model LaTeX-optcl)) + (cond (;; model + (string-equal model "cmyk") + (let ((cyan (TeX-read-string "Frame value Cyan (between 0,1): ")) + (magenta (TeX-read-string "Frame value Magenta (between 0,1): ")) + (yellow (TeX-read-string "Frame value Yellow (between 0,1): ")) + (black (TeX-read-string "Frame value Black (between 0,1): "))) + (TeX-argument-insert + (concat cyan "," magenta "," yellow "," black) optional)) + (let ((cyan (TeX-read-string "Box value Cyan (between 0,1): ")) + (magenta (TeX-read-string "Box value Magenta (between 0,1): ")) + (yellow (TeX-read-string "Box value Yellow (between 0,1): ")) + (black (TeX-read-string "Box value Black (between 0,1): "))) + (TeX-argument-insert + (concat cyan "," magenta "," yellow "," black) optional))) + ;; model + ((string-equal model "rgb") + (let ((red (TeX-read-string "Frame value Red (between 0,1): ")) + (green (TeX-read-string "Frame value Green (between 0,1): ")) + (blue (TeX-read-string "Frame value Blue (between 0,1): "))) + (TeX-argument-insert + (concat red "," green "," blue) optional)) + (let ((red (TeX-read-string "Box value Red (between 0,1): ")) + (green (TeX-read-string "Box value Green (between 0,1): ")) + (blue (TeX-read-string "box value Blue (between 0,1): "))) + (TeX-argument-insert + (concat red "," green "," blue) optional))) + ;; model + ((string-equal model "gray") + (let ((grayness (TeX-read-string "Frame value Gray (between 0,1): "))) + (TeX-argument-insert grayness optional)) + (let ((grayness (TeX-read-string "Box value Gray (between 0,1): "))) + (TeX-argument-insert grayness optional))) + ;; model; allowed are dvipsnames. + ((string-equal model "named") + (let ((color (completing-read "Frame named Color: " + LaTeX-color-dvipsnames-colors))) + (TeX-argument-insert color optional)) + (let ((color (completing-read "Box named Color: " + LaTeX-color-dvipsnames-colors))) + (TeX-argument-insert color optional))))))) + +(TeX-add-style-hook + "color" + (lambda () + ;; Add color to the parser. + (TeX-auto-add-regexp LaTeX-color-definecolor-regexp) + + ;; Add list of colors which are always available. + (LaTeX-add-color-definecolors + "black" "blue" "cyan" "green" "magenta" "red" "white" "yellow") + + ;; Add dvips colors in conjunction with `usenames'. + (when (and (LaTeX-provided-package-options-member "color" "usenames") + (or (LaTeX-provided-package-options-member "color" "dvips") + (LaTeX-provided-package-options-member "color" "dvipsnames"))) + (apply #'LaTeX-add-color-definecolors LaTeX-color-dvipsnames-colors)) + + (unless (member "xcolor" (TeX-style-list)) + (TeX-add-symbols + ;; \definecolor{}{}{} + '("definecolor" TeX-arg-color-definecolor) + + ;; \color{} or \color[]{} + '("color" TeX-arg-color) + + ;; \textcolor{}{} or + ;; \textcolor[]{}{} + '("textcolor" TeX-arg-color "Text") + + ;; \pagecolor{} or + ;; \pagecolor[]{} + '("pagecolor" TeX-arg-color) + + ;; \nopagecolor + '("nopagecolor" 0) + + ;; \colorbox{}{} or + ;; \colorbox[]{}{} + '("colorbox" TeX-arg-color "Text") + + ;; \fcolorbox{}{}{} or + ;; \fcolorbox[]{}{}{} + '("fcolorbox" TeX-arg-color-fcolorbox "Text")) + + ;; Fontification + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("color" "[{") + ("pagecolor" "[{")) + 'type-declaration) + (font-latex-add-keywords '(("textcolor" "[{{") + ("colorbox" "[{{" ) + ("fcolorbox" "[{{{")) + 'type-command) + (font-latex-add-keywords '(("definecolor" "{{{")) + 'function)))) + LaTeX-dialect) + +(defvar LaTeX-color-package-options + '("debugshow" "dvipdf" "dvipdfm" "dvipdfmx" "dvips" "dvipsnames" + "dvipsone" "dviwin" "dviwindo" "emtex" "monochrome" "nodvipsnames" + "oztex" "pctex32" "pctexhp" "pctexps" "pctexwin" "pdftex" "tcidvi" + "textures" "truetex" "usenames" "vtex" "xdvi" "xetex") + "Package options for the color package.") + +;;; color.el ends here diff -Nru auctex-11.88/style/colortbl.el auctex-11.90/style/colortbl.el --- auctex-11.88/style/colortbl.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/colortbl.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,92 @@ +;;; colortbl.el --- AUCTeX style for `colortbl.sty' (v1.0a) + +;; Copyright (C) 2015, 2016 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: auctex-devel@gnu.org +;; Created: 2015-03-22 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for `colortbl.sty' (v1.0a) from 2012/02/13. +;; `colortbl.sty' is part of TeXLive. + +;;; Code: + +(TeX-add-style-hook + "colortbl" + (lambda () + + ;; array.el is always loaded: + (TeX-run-style-hooks "array") + + ;; Load color.el only if xcolor.el is not already loaded. This is + ;; mainly for the option `table' from xcolor.sty which loads + ;; colortbl.sty, but we don't want to load color.el. + (unless (member "xcolor" (TeX-style-list)) + (TeX-run-style-hooks "color")) + + (TeX-add-symbols + ;; `TeX-arg-color' is provided by color.el, + ;; `TeX-arg-xcolor' is provided by xcolor.el. + '("columncolor" (TeX-arg-conditional (member "xcolor" (TeX-style-list)) + (TeX-arg-xcolor) + (TeX-arg-color)) + [ TeX-arg-length "Left overhang" ] [ TeX-arg-length "Right overhang" ] ) + + '("rowcolor" (TeX-arg-conditional (member "xcolor" (TeX-style-list)) + (TeX-arg-xcolor) + (TeX-arg-color)) + [ TeX-arg-length "Left overhang" ] [ TeX-arg-length "Right overhang" ] ) + + '("cellcolor" (TeX-arg-conditional (member "xcolor" (TeX-style-list)) + (TeX-arg-xcolor) + (TeX-arg-color)) + [ TeX-arg-length "Left overhang" ] [ TeX-arg-length "Right overhang" ] ) + + '("arrayrulecolor" (TeX-arg-conditional (member "xcolor" (TeX-style-list)) + (TeX-arg-xcolor) + (TeX-arg-color))) + + '("doublerulesepcolor" (TeX-arg-conditional (member "xcolor" (TeX-style-list)) + (TeX-arg-xcolor) + (TeX-arg-color)))) + + (LaTeX-add-lengths "minrowclearance") + + ;; Fontification + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("columncolor" "[{[[") + ("rowcolor" "[{[[") + ("cellcolor" "[{[[") + ("arrayrulecolor" "[{") + ("doublerulesepcolor" "[{")) + 'function))) + LaTeX-dialect) + +;; colortbl.sty has one option `debugshow'. I ignore that since it +;; would only take more time during insertation in a buffer and I +;; presume that not many users use it anyway. +(defvar LaTeX-colortbl-package-options nil + "Package option for the colortbl package.") + +;;; colortbl.el ends here diff -Nru auctex-11.88/style/commath.el auctex-11.90/style/commath.el --- auctex-11.88/style/commath.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/commath.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,102 @@ +;;; commath.el --- AUCTeX style for `commath.sty' (v0.3) + +;; Copyright (C) 2016 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: auctex-devel@gnu.org +;; Created: 2016-07-31 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for `commath.sty' (v0.3) from 2006/07/18. +;; `commath.sty' is part of TeXLive. + +;;; Code: + +(TeX-add-style-hook + "commath" + (lambda () + + ;; Only load amsmath.el, ifthen.el is not necessary + (TeX-run-style-hooks "amsmath") + + (TeX-add-symbols + '("dif" 0) + '("Dif" 0) + '("od" [ "Order of differentiation" ] "Function" "Variable") + '("tod" [ "Order of differentiation" ] "Function" "Variable") + '("dod" [ "Order of differentiation" ] "Function" "Variable") + '("pd" [ "Order of differentiation" ] "Function" "Variable") + '("tpd" [ "Order of differentiation" ] "Function" "Variable") + '("dpd" [ "Order of differentiation" ] "Function" "Variable") + '("md" 6) + '("tmd" 6) + '("dmd" 6) + '("del" [ "Size argument (0..4)" ] "Argument") + '("cbr" [ "Size argument (0..4)" ] "Argument") + '("set" [ "Size argument (0..4)" ] "Argument") + '("sbr" [ "Size argument (0..4)" ] "Argument") + '("intoo" [ "Size argument (0..4)" ] "Argument") + '("intcc" [ "Size argument (0..4)" ] "Argument") + '("intoc" [ "Size argument (0..4)" ] "Argument") + '("intco" [ "Size argument (0..4)" ] "Argument") + '("eval" [ "Size argument (0..4)" ] t) + '("sVert" [ "Size argument (0..4)" ]) + '("envert" [ "Size argument (0..4)" ] "Argument") + '("abs" [ "Size argument (0..4)" ] "Argument") + '("enVert" [ "Size argument (0..4)" ] "Argument") + '("norm" [ "Size argument (0..4)" ] "Argument") + '("fullfunction" 5) + + ;; Referencing macros + '("thmref" TeX-arg-ref) + '("exref" TeX-arg-ref) + '("defnref" TeX-arg-ref) + '("secref" TeX-arg-ref) + '("lemref" TeX-arg-ref) + '("propref" TeX-arg-ref) + '("remref" TeX-arg-ref) + '("figref" TeX-arg-ref) + '("colref" TeX-arg-ref) + '("appref" TeX-arg-ref) + '("assref" TeX-arg-ref)) + + ;; Fontification + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("thmref" "{") + ("exref" "{") + ("defnref" "{") + ("secref" "{") + ("lemref" "{") + ("propref" "{") + ("remref" "{") + ("figref" "{") + ("colref" "{") + ("appref" "{") + ("assref" "{")) + 'reference))) + LaTeX-dialect) + +(defvar LaTeX-commath-package-options nil + "Package options for the commath package.") + +;;; commath.el ends here diff -Nru auctex-11.88/style/comment.el auctex-11.90/style/comment.el --- auctex-11.88/style/comment.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/comment.el 2017-01-10 21:35:28.000000000 +0000 @@ -43,7 +43,8 @@ ;; New environments (mapc 'LaTeX-add-environments LaTeX-comment-env-list) ;; Fontification - (when (and (featurep 'font-latex) + (when (and (fboundp 'font-latex-add-keywords) + (fboundp 'font-latex-update-font-lock) (eq TeX-install-font-lock 'font-latex-setup)) ;; For syntactic fontification. (add-to-list 'font-latex-syntactic-keywords-extra @@ -56,15 +57,13 @@ `(,(format "^\\(\\\\\\)end *{\\(?:%s\\)}" (regexp-opt LaTeX-comment-env-list)) (1 ">" t))) - (font-latex-set-syntactic-keywords) (font-latex-add-keywords '(("includecomment" "{") ("excludecomment" "{") ("specialcomment" "{{{") ("processcomment" "{{{{")) 'variable) ;; Tell font-lock about the update. - (setq font-lock-set-defaults nil) - (font-lock-set-defaults))) + (font-latex-update-font-lock t))) LaTeX-dialect) ;;; comment.el ends here diff -Nru auctex-11.88/style/csquotes.el auctex-11.90/style/csquotes.el --- auctex-11.88/style/csquotes.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/csquotes.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,6 +1,6 @@ ;;; csquotes.el --- AUCTeX style for `csquotes.sty' -;; Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc. +;; Copyright (C) 2004, 2005, 2006, 2014 Free Software Foundation, Inc. ;; Author: Ralf Angeli ;; Maintainer: auctex-devel@gnu.org @@ -57,7 +57,7 @@ optional t) (setq prompt elt optional nil)) - (setq user-input (read-string (TeX-argument-prompt optional prompt nil))) + (setq user-input (TeX-read-string (TeX-argument-prompt optional prompt nil))) (unless (and optional (zerop (length user-input))) (setq env-extra (concat env-extra (if optional LaTeX-optop TeX-grop) diff -Nru auctex-11.88/style/currvita.el auctex-11.90/style/currvita.el --- auctex-11.88/style/currvita.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/currvita.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,94 @@ +;;; currvita.el --- AUCTeX style for `currvita.sty' (v0.9i) + +;; Copyright (C) 2015, 2016 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: auctex-devel@gnu.org +;; Created: 2015-01-05 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for `currvita.sty' (v0.9i) from 1999/09/13. +;; `currvita.sty' is part of TeXLive. + +;;; Code: + +;; This is a modified version of `LaTeX-env-item'. +(defun LaTeX-currvita-env-with-label (env) + "Insert ENV, a mandatory label and the first item." + (LaTeX-insert-environment + env + (let ((heading (TeX-read-string "Heading of list: "))) + (format "{%s}" heading))) + (if (TeX-active-mark) + (progn + (LaTeX-find-matching-begin) + (end-of-line 1)) + (end-of-line 0)) + (delete-char 1) + (when (looking-at (concat "^[ \t]+$\\|" + "^[ \t]*" TeX-comment-start-regexp "+[ \t]*$")) + (delete-region (point) (line-end-position))) + (delete-horizontal-space) + ;; Deactivate the mark here in order to prevent `TeX-parse-macro' + ;; from swapping point and mark and the \item ending up right after + ;; \begin{...}. + (TeX-deactivate-mark) + (LaTeX-insert-item) + ;; The inserted \item may have outdented the first line to the + ;; right. Fill it, if appropriate. + (when (and (not (looking-at "$")) + (not (assoc env LaTeX-indent-environment-list)) + (> (- (line-end-position) (line-beginning-position)) + (current-fill-column))) + (LaTeX-fill-paragraph nil))) + + +(TeX-add-style-hook + "currvita" + (lambda () + + ;; env's defined by currvita.sty + (LaTeX-add-environments + '("cv" "Heading of CV") + '("cvlist" LaTeX-currvita-env-with-label)) + + ;; Add "cvlist" to the list of environments which have an optional + ;; argument for each item + (add-to-list 'LaTeX-item-list '("cvlist" . LaTeX-item-argument)) + + ;; General commands: "\date" is already provided by AUCTeX + (TeX-add-symbols + '("cvplace" t) + '("cvheadingfont" 0) + '("cvlistheadingfont" 0) + '("cvlabelfont" 0) + '("cvbibname" 0)) + + ;; Add new lengths defined by currvita.sty + (LaTeX-add-lengths "cvlabelwidth" "cvlabelskip" "cvlabelsep")) + LaTeX-dialect) + +(defvar LaTeX-currvita-package-options + '("LabelsAligned" "TextAligned" "openbib" "ManyBibs" "NoDate") + "Package options for the currvita package.") + +;;; currvita.el ends here diff -Nru auctex-11.88/style/dcolumn.el auctex-11.90/style/dcolumn.el --- auctex-11.88/style/dcolumn.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/dcolumn.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,49 @@ +;;; dcolumn.el --- AUCTeX style for `dcolumn.sty' (v1.06) + +;; Copyright (C) 2016 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: auctex-devel@gnu.org +;; Created: 2016-12-18 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for `dcolumn.sty' (v1.06) from 2014/10/28. +;; `dcolumn.sty' is part of TeXLive. + +;;; Code: + +(TeX-add-style-hook + "dcolumn" + (lambda () + + ;; `dcolumn.sty' adds one new column specification letter: + (set (make-local-variable 'LaTeX-array-column-letters) + (concat LaTeX-array-column-letters "D")) + + ;; Also run style hook for `array': + (TeX-run-style-hooks "array")) + LaTeX-dialect) + +(defvar LaTeX-dcolumn-package-options nil + "Package options for the dcolumn package.") + +;;; dcolumn.el ends here diff -Nru auctex-11.88/style/dinbrief.el auctex-11.90/style/dinbrief.el --- auctex-11.88/style/dinbrief.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/dinbrief.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,4 +1,6 @@ -;; Copyright (C) 1994, 2013 Free Software Foundation, Inc. +;;; dinbrief.el --- Special code for LaTeX-Style dinbrief. + +;; Copyright (C) 1994, 2013, 2014 Free Software Foundation, Inc. ;; Author: Werner Fink ;; Maintainer: auctex-devel@gnu.org @@ -94,18 +96,18 @@ "Insert ENVIRONMENT and prompt for recipient and address." (let ( (sender (LaTeX-dinbrief-sender)) - (recipient (read-string "Empfänger: ")) + (recipient (TeX-read-string "Empfänger: ")) (address (LaTeX-dinbrief-recipient)) - (date (read-string "Datum: " (LaTeX-dinbrief-today))) - (postremark (read-string "Postvermerk: ")) - (fenster (read-string "Fenster \(ja/nein\): ")) - (vermerk (read-string "Behandlungsvermerk: ")) - (verteil (read-string "Verteiler: ")) - (betreff (read-string "Betreff: ")) - (opening (read-string "Anrede: ")) - (closing (read-string "Schluss: ")) - (signature (read-string "Unterschrift: ")) - (anlage (read-string "Anlagen: "))) + (date (TeX-read-string "Datum: " (LaTeX-dinbrief-today))) + (postremark (TeX-read-string "Postvermerk: ")) + (fenster (TeX-read-string "Fenster \(ja/nein\): ")) + (vermerk (TeX-read-string "Behandlungsvermerk: ")) + (verteil (TeX-read-string "Verteiler: ")) + (betreff (TeX-read-string "Betreff: ")) + (opening (TeX-read-string "Anrede: ")) + (closing (TeX-read-string "Schluss: ")) + (signature (TeX-read-string "Unterschrift: ")) + (anlage (TeX-read-string "Anlagen: "))) (if (string= fenster "ja") (progn @@ -117,7 +119,7 @@ (newline-and-indent) (LaTeX-dinbrief-insert TeX-esc "windowtics") (newline-and-indent) - (let ((retouradr (read-string "Retouradresse: " sender))) + (let ((retouradr (TeX-read-string "Retouradresse: " sender))) (newline-and-indent) (if (not (zerop (length retouradr))) (progn @@ -206,15 +208,15 @@ (defun LaTeX-dinbrief-sender () "Read and write the senders address." (interactive) - (let ((name (read-string "Absender: " (user-full-name))) - (str (read-string "Meine Strasse: ")) - (ort (read-string "Mein Wohnort: "))) + (let ((name (TeX-read-string "Absender: " (user-full-name))) + (str (TeX-read-string "Meine Strasse: ")) + (ort (TeX-read-string "Mein Wohnort: "))) (if (not (zerop (length name))) (progn (goto-char (point-min)) ; insert before \end{document} (if (re-search-forward ".end.document." (point-max) t) - (beginning-of-line 1)) - (previous-line 1) + (beginning-of-line 1)) + (previous-line 1) ;FIXME: Use forward-line! (LaTeX-dinbrief-insert TeX-esc "address" TeX-grop name) (if (not (zerop (length str))) (progn @@ -233,8 +235,8 @@ (defun LaTeX-dinbrief-recipient () "Read and return the recipient address." (interactive) - (let ((str (read-string "Wohnhaft in Strasse: ")) - (ort (read-string "Aus der Ortschaft: "))) + (let ((str (TeX-read-string "Wohnhaft in Strasse: ")) + (ort (TeX-read-string "Aus der Ortschaft: "))) (if (not (zerop (length str))) (if (not (zerop (length ort))) (concat str " " TeX-esc TeX-esc " " ort) @@ -264,7 +266,7 @@ (let ((year (substring ctime-string (match-beginning 3) (match-end 3))) (month (substring ctime-string (match-beginning 1) (match-end 1))) (day (substring ctime-string (match-beginning 2) (match-end 2))) - (place (read-string "Heutiger Ort: "))) + (place (TeX-read-string "Heutiger Ort: "))) (if (assoc month month-alist) (progn (setq month (cdr (assoc month month-alist))) diff -Nru auctex-11.88/style/dk-bib.el auctex-11.90/style/dk-bib.el --- auctex-11.88/style/dk-bib.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/dk-bib.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,6 +1,6 @@ ;;; dk-bib.el --- AUCTeX style for `dk-bib.sty' -;; Copyright (C) 2005 Free Software Foundation, Inc. +;; Copyright (C) 2005, 2014 Free Software Foundation, Inc. ;; Author: Arne Jørgensen ;; Keywords: tex @@ -44,7 +44,7 @@ (> depth 20)) (setq depth (if (fboundp 'read-number) (read-number "Ordinal depth: ") - (string-to-number (read-string "Ordinal depth: ")))) + (string-to-number (TeX-read-string "Ordinal depth: ")))) (when (or (< depth 0) (> depth 20)) (message "Ordinal depth must be between 0 and 20") diff -Nru auctex-11.88/style/doc.el auctex-11.90/style/doc.el --- auctex-11.88/style/doc.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/doc.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,6 +1,6 @@ ;;; doc.el --- AUCTeX style for `doc.sty' -;; Copyright (C) 2004, 2008 Free Software Foundation, Inc. +;; Copyright (C) 2004, 2008, 2016 Free Software Foundation, Inc. ;; Author: Frank Küster ;; Maintainer: auctex-devel@gnu.org @@ -31,7 +31,12 @@ (defun LaTeX-env-no-comment (environment) "Insert ENVIRONMENT and make sure there is no commented empty line inside." - (LaTeX-insert-environment environment) + (LaTeX-insert-environment environment + (when (string-equal environment "macro") + (let ((macroname (TeX-read-string + (TeX-argument-prompt nil nil "Macro") + TeX-esc))) + (format "{%s}" macroname)))) (unless (TeX-active-mark) (when (save-excursion (beginning-of-line) @@ -42,7 +47,7 @@ (defun LaTeX-doc-after-insert-macrocode (env start end) "Make sure the macrocode environment is properly formatted after insertion." - (when (TeX-member env '("macrocode" "macrocode*") 'string-equal) + (when (TeX-member env '("macro" "macrocode" "macrocode*") 'string-equal) (save-excursion (goto-char end) (skip-chars-backward " \t") @@ -59,37 +64,48 @@ "doc" (lambda () (add-to-list (make-local-variable 'LaTeX-indent-environment-list) - '("macrocode" current-indentation)) + '("macrocode" current-indentation) t) (add-to-list 'LaTeX-indent-environment-list - '("macrocode*" current-indentation)) + '("macrocode*" current-indentation) t) + (add-to-list 'LaTeX-indent-environment-list + '("macro" current-indentation) t) (add-hook 'LaTeX-after-insert-env-hooks 'LaTeX-doc-after-insert-macrocode nil t) (LaTeX-add-environments "theglossary" '("macrocode" LaTeX-env-no-comment) '("macrocode*" LaTeX-env-no-comment) - '("macro" "Macro")) + '("macro" LaTeX-env-no-comment)) (TeX-add-symbols "EnableCrossrefs" "DisableCrossrefs" - "DoNotIndex" + '("DoNotIndex" t) "DontCheckModules" "CheckModules" "Module" - '("DescribeMacro" "Macro") + '("DescribeMacro" (TeX-arg-eval + (lambda () + (let ((name (TeX-read-string + (TeX-argument-prompt optional nil "Macro") + TeX-esc))) + (format "%s" name))))) '("DescribeEnv" "Environment") "verbatim" "verb" - "parg" - "oarg" - "marg" - "meta" - "cmd" + '("parg" "Argument") + '("oarg" "Argument") + '("marg" "Argument") + '("meta" "Text") + '("cs" "Name") + '("cmd" (TeX-arg-eval + (lambda () + (let ((name (TeX-read-string + (TeX-argument-prompt optional nil "Name") + TeX-esc))) + (format "%s" name))))) "makelabel" - "MacroFont" - "MacroFont" - "AltMacroFont" - "AltMacroFont" + '("MacroFont" t) + '("AltMacroFont" t) "PrintMacroName" "PrintDescribeMacro" "PrintDescribeEnv" @@ -126,7 +142,7 @@ "GlossaryParms" "PrintChanges" "AlsoImplementation" - "StopEventually" + '("StopEventually" t) "OnlyDescription" "Finale" "IndexInput" @@ -142,16 +158,34 @@ "CodelineIndex" "PageIndex" "theCodelineNo" - "theCodelineNo" "DocstyleParms" "MakePercentIgnore" "MakePercentComment" - "DocInput" - "DocInclude" + '("DocInput" + (TeX-arg-eval + (lambda () + (let ((file (file-relative-name + (read-file-name + "File to input: " nil nil nil nil + (lambda (x) + (string-match "\\.fdd$\\|\\.dtx$" x))) + (TeX-master-directory)))) + (format "%s" file))))) + '("DocInclude" + (TeX-arg-eval + (lambda () + (let ((file (file-relative-name + (read-file-name + "File to include: " nil nil nil nil + (lambda (x) + (string-match "\\.fdd$\\|\\.dtx$" x))) + (TeX-master-directory)))) + (format "%s" file))))) "GetFileInfo" "filename" "fileinfo") - (TeX-run-style-hooks "shortvrb")) + (TeX-run-style-hooks "shortvrb") + (LaTeX-add-lengths "MacrocodeTopsep" "MacroTopsep" "MacroIndent")) LaTeX-dialect) ;; Local Variables: diff -Nru auctex-11.88/style/emp.el auctex-11.90/style/emp.el --- auctex-11.88/style/emp.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/emp.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,6 +1,6 @@ ;;; emp.el --- AUCTeX support for emp.sty -;; Copyright (C) 2004, 2005 Free Software Foundation, Inc. +;; Copyright (C) 2004, 2005, 2014 Free Software Foundation, Inc. ;; Author: Yvon Henel aka TeXnicien de surface ;; Maintainer: auctex-devel@gnu.org @@ -44,16 +44,16 @@ (defun LaTeX-env-emp-gen (environment-name) "Ask for file, width and length. Insert environment-name environment Used for emp, empdef, and empgraph environments." - (let ((emp-fig-name (read-string "figure name: " "")) - (emp-fig-width (read-string "figure width: " "1" )) - (emp-fig-height (read-string "figure height: " "1" )) + (let ((emp-fig-name (TeX-read-string "figure name: " "")) + (emp-fig-width (TeX-read-string "figure width: " "1" )) + (emp-fig-height (TeX-read-string "figure height: " "1" )) ;;; emp.sty demands a width and a height for each of the ;;; emp, empdef, and empgraph environments ;;; we give them 1 by default ;;; not necessarily the best thing to do? ) (if (not (zerop (length emp-fig-name))) - (progn + (progn (setq LaTeX-emp-fig-name (concat LaTeX-optop emp-fig-name LaTeX-optcl)) (LaTeX-insert-environment environment-name LaTeX-emp-fig-name)) (LaTeX-insert-environment environment-name)) @@ -64,11 +64,11 @@ (indent-according-to-mode) )) -(defun LaTeX-env-empfile (optional) +(defun LaTeX-env-empfile (_optional) "Ask for file. Insert empfile environment" - (let ((empfile (read-string "empfile: " ""))) + (let ((empfile (TeX-read-string "empfile: " ""))) (if (not (zerop (length empfile))) - (progn + (progn (setq LaTeX-emp-file-name (concat LaTeX-optop empfile LaTeX-optcl)) (setq mpost-emp-file-name (concat empfile ".mp")) (LaTeX-insert-environment "empfile" LaTeX-emp-file-name)) diff -Nru auctex-11.88/style/empheq.el auctex-11.90/style/empheq.el --- auctex-11.88/style/empheq.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/empheq.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,504 @@ +;;; empheq.el --- AUCTeX style for `empheq.sty' (v2.14) + +;; Copyright (C) 2016 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: auctex-devel@gnu.org +;; Created: 2016-08-07 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for `empheq.sty' (v2.14) from 2014/08/04. +;; `empheq.sty' is part of TeXLive. + +;;; Code: + +;; Needed for compiling `pushnew': +(eval-when-compile (require 'cl)) + +;; Needed for auto-parsing. +(require 'tex) + +(defvar LaTeX-empheq-key-val-options + `(("box") + ("innerbox") + ("left" ,(mapcar + (lambda (x) + (concat TeX-esc x)) + '("empheqlbrace" + "empheqlbrack" + "empheqlangle" + "empheqlparen" + "empheqlvert" + "empheqlVert" + "empheqlfloor" + "empheqlceil" + "empheqbiglbrace" + "empheqbiglbrack" + "empheqbiglangle" + "empheqbiglparen" + "empheqbiglvert" + "empheqbiglVert" + "empheqbiglfloor" + "empheqbiglceil"))) + ("right" ,(mapcar + (lambda (x) + (concat TeX-esc x)) + '("empheqrbrace" + "empheqrbrack" + "empheqrangle" + "empheqrparen" + "empheqrvert" + "empheqrVert" + "empheqrfloor" + "empheqrceil" + "empheqbigrbrace" + "empheqbigrbrack" + "empheqbigrangle" + "empheqbigrparen" + "empheqbigrvert" + "empheqbigrVert" + "empheqbigrfloor" + "empheqbigrceil"))) + ("outerbox") + ("marginbox")) + "Key=value options for environments from empheq.sty.") + +(defvar LaTeX-empheq-key-val-options-local nil + "Buffer-local key=value options for environments from empheq.sty.") +(make-local-variable 'LaTeX-empheq-key-val-options-local) + +(defvar LaTeX-empheq-supported-amsmath-envs + '("equation" "equation*" + "align" "align*" + "gather" "gather*" + "flalign" "flalign*" + "alignat" "alignat*" + "multline" "multline*") + "List of amsmath environments supported by empheq package.") + +(defvar LaTeX-empheq-package-options + '("overload" "overload2" "ntheorem" "newmultline" "oldmultline") + "Package options for the empheq package.") + +;; Setup for \Declare(Left|Right)Delimiter: + +(TeX-auto-add-type "empheq-declaredelimiter" "LaTeX") + +(defvar LaTeX-empheq-declaredelimiter-regexp + `(,(concat "\\\\Declare\\(Left\\|Right\\)Delimiter" + "[ \t\n\r%]*" + "\\(?:\\[[^]]*\\]\\)?" + "[ \t\n\r%]*" + "{" + (regexp-quote TeX-esc) + "\\([^}]+\\)}") + (2 1) LaTeX-auto-empheq-declaredelimiter) + "Matches the argument of \\Declare(Left|Right)Delimiter from empheq package.") + +(defun LaTeX-empheq-auto-prepare () + "Clear `LaTeX-auto-empheq-declaredelimiter' before parsing." + (setq LaTeX-auto-empheq-declaredelimiter nil)) + +(defun LaTeX-empheq-auto-cleanup () + "Process parsed delimiters." + (dolist (delim (mapcar #'car (LaTeX-empheq-declaredelimiter-list))) + (TeX-add-symbols (concat "empheq" delim) + (concat "empheqbig" delim))) + (LaTeX-empheq-update-key-val-options)) + +(add-hook 'TeX-auto-prepare-hook #'LaTeX-empheq-auto-prepare t) +(add-hook 'TeX-auto-cleanup-hook #'LaTeX-empheq-auto-cleanup t) +(add-hook 'TeX-update-style-hook #'TeX-auto-parse t) + +(defun LaTeX-empheq-update-key-val-options () + "Update `LaTeX-empheq-key-val-options-local' if the function +`LaTeX-empheq-declaredelimiter-list' returns non-nil." + (when (LaTeX-empheq-declaredelimiter-list) + (let ((lvals (cadr (assoc "left" LaTeX-empheq-key-val-options))) + (rvals (cadr (assoc "right" LaTeX-empheq-key-val-options))) + (tmp (copy-alist LaTeX-empheq-key-val-options)) + lval rval) + (dolist (delims (LaTeX-empheq-declaredelimiter-list)) + (let ((delim (car delims)) + (where (cadr delims))) + (if (string= where "Left") + (progn + (pushnew (concat TeX-esc "empheq" delim) lval :test #'equal) + (pushnew (concat TeX-esc "empheqbig" delim) lval :test #'equal)) + (progn + (pushnew (concat TeX-esc "empheq" delim) rval :test #'equal) + (pushnew (concat TeX-esc "empheqbig" delim) rval :test #'equal))))) + (when lval + (setq tmp (assq-delete-all (car (assoc "left" tmp)) tmp)) + (setq lvals (append lval lvals)) + (push (list "left" lvals) tmp)) + (when rval + (setq tmp (assq-delete-all (car (assoc "right" tmp)) tmp)) + (setq rvals (append rval rvals)) + (push (list "right" rvals) tmp)) + (setq LaTeX-empheq-key-val-options-local + (copy-alist tmp))))) + +(defun LaTeX-empheq-env (env) + "Query for a supported amsmath environment and insert it accordingly." + (let* ((keyvals (TeX-read-key-val t LaTeX-empheq-key-val-options-local)) + (amsenv (completing-read + (TeX-argument-prompt nil nil "amsmath environment") + LaTeX-empheq-supported-amsmath-envs)) + (ncols (when (or (string= amsenv "alignat") + (string= amsenv "alignat*")) + (TeX-read-string + (TeX-argument-prompt nil nil "Number of columns")))) + num) + (LaTeX-insert-environment + env + (concat + (when (and keyvals (not (string= keyvals ""))) + (concat LaTeX-optop keyvals LaTeX-optcl)) + TeX-grop + (if (and ncols (not (string= ncols ""))) + (concat amsenv "=" ncols) + (symbol-value 'amsenv)) + TeX-grcl)) + (when (and (assoc amsenv LaTeX-label-alist) + (LaTeX-label amsenv 'environment)) + (LaTeX-newline) + (indent-according-to-mode)) + (when (and ncols (not (string= ncols ""))) + (setq num (string-to-number ncols)) + (save-excursion + (insert (make-string (+ num num -1) ?&)))))) + +(defun LaTeX-empheq-env-overload (env &optional _ignore) + "Insert amsmath ENV's when option overload is given to empheq package. +This function combines the capabilities of `LaTeX-env-label' and +`LaTeX-amsmath-env-alignat'. It overwrites the definitions of +`amsmath.el'." + (if (or (string= env "alignat") + (string= env "alignat*")) + (let ((ncols (TeX-read-string + (TeX-argument-prompt nil nil "Number of columns"))) + (keyvals (TeX-read-key-val t + LaTeX-empheq-key-val-options-local + "empheq options (k=v)"))) + (LaTeX-insert-environment env (concat TeX-grop ncols TeX-grcl + (when (and keyvals (not (string= keyvals ""))) + (concat LaTeX-optop keyvals LaTeX-optcl)))) + (LaTeX-item-equation-alignat t)) + (let ((keyvals + (TeX-read-key-val t LaTeX-empheq-key-val-options-local "empheq options (k=v)"))) + (LaTeX-insert-environment env (when (and keyvals (not (string= keyvals ""))) + (concat LaTeX-optop keyvals LaTeX-optcl))) + (when (and (assoc env LaTeX-label-alist) + (LaTeX-label env 'environment)) + (LaTeX-newline) + (indent-according-to-mode))))) + +(defun LaTeX-empheq-item-equation () + "Insert contents to terminate a line in multi-line equations environment. +Put line break macro on the last line. Next, if the current +environment wants \\label, insert it also. And insert suitable +number of ampersands if possible." + (let ((env (LaTeX-current-environment)) + amsenv ncols match) + (save-excursion + (LaTeX-find-matching-begin) + (re-search-forward (concat (regexp-quote TeX-esc) + "begin" TeX-grop env TeX-grcl)) + (when (looking-at "[ \t\n\r%]*\\[") + (forward-sexp)) + (re-search-forward "[ \t\n\r%]*{\\([^}]+\\)}") + (setq match (replace-regexp-in-string "[ \t\n\r%]*" "" + (match-string-no-properties 1))) + (if (string-match "=" match) + (progn + (setq amsenv (car (split-string match "="))) + (setq ncols (string-to-number (cadr (split-string match "="))))) + (setq amsenv match))) + ;; Do not ask for "\\" if in "equation" or "equation*" since these + ;; are single line equations only + (if (or (string= amsenv "equation") + (string= amsenv "equation*")) + ;; Nullify the effect of `M-RET' + (progn + (message "This environment does not support multi-line equations") + (end-of-line 0) + (kill-line 1)) + (progn + (end-of-line 0) + (just-one-space) + (TeX-insert-macro "\\") + (forward-line 1) + (indent-according-to-mode))) + ;; Add a new label only if not in "equation" + (when (and (not (string= amsenv "equation")) + (assoc amsenv LaTeX-label-alist) + (LaTeX-label amsenv 'environment)) + (LaTeX-newline) + (indent-according-to-mode)) + (when ncols + (save-excursion + (insert (make-string (+ ncols ncols -1) ?&)))))) + +(TeX-add-style-hook + "empheq" + (lambda () + + ;; Add empheq to parser + (TeX-auto-add-regexp LaTeX-empheq-declaredelimiter-regexp) + + ;; Load amsmath.el and mathtools.el + (TeX-run-style-hooks "amsmath" "mathtools") + + ;; Add elements from `LaTeX-mathtools-package-options' only once + ;; and not every time the style hook runs + (dolist (elt LaTeX-mathtools-package-options) + (add-to-list 'LaTeX-empheq-package-options elt)) + + ;; Local version of key-val options + (setq LaTeX-empheq-key-val-options-local + (copy-alist LaTeX-empheq-key-val-options)) + + ;; Initial update of key-vals + (LaTeX-empheq-update-key-val-options) + + (LaTeX-add-environments + '("empheq" LaTeX-empheq-env)) + + ;; Add "empheq" to `LaTeX-item-list' and run + ;; `LaTeX-empheq-item-equation' when `M-RET' is invoked + (add-to-list 'LaTeX-item-list '("empheq" . LaTeX-empheq-item-equation) t) + + ;; Reftex support: Use `reftex-add-label-environments' + (when (fboundp 'reftex-add-label-environments) + (reftex-add-label-environments '(("empheq" ?e nil nil t)))) + + (TeX-add-symbols + '("empheqset" (TeX-arg-key-val LaTeX-empheq-key-val-options-local)) + + ;; 1.4 Special delimiters + ;; Normal + '("empheqlbrace" TeX-arg-insert-right-brace-maybe) + '("empheqrbrace") + '("empheqlbrack" TeX-arg-insert-right-brace-maybe) + '("empheqrbrack") + '("empheqlangle" TeX-arg-insert-right-brace-maybe) + '("empheqrangle") + '("empheqlparen" TeX-arg-insert-right-brace-maybe) + '("empheqrparen") + '("empheqlvert" TeX-arg-insert-right-brace-maybe) + '("empheqrvert") + '("empheqlVert" TeX-arg-insert-right-brace-maybe) + '("empheqrVert") + '("empheqlfloor" TeX-arg-insert-right-brace-maybe) + '("empheqrfloor") + '("empheqlceil" TeX-arg-insert-right-brace-maybe) + '("empheqrceil") + ;; Bigger + '("empheqbiglbrace" TeX-arg-insert-right-brace-maybe) + '("empheqbigrbrace") + '("empheqbiglbrack" TeX-arg-insert-right-brace-maybe) + '("empheqbigrbrack") + '("empheqbiglangle" TeX-arg-insert-right-brace-maybe) + '("empheqbigrangle") + '("empheqbiglparen" TeX-arg-insert-right-brace-maybe) + '("empheqbigrparen") + '("empheqbiglvert" TeX-arg-insert-right-brace-maybe) + '("empheqbigrvert") + '("empheqbiglVert" TeX-arg-insert-right-brace-maybe) + '("empheqbigrVert") + '("empheqbiglfloor" TeX-arg-insert-right-brace-maybe) + '("empheqbigrfloor") + '("empheqbiglceil" TeX-arg-insert-right-brace-maybe) + '("empheqbigrceil")) + + ;; Append delimiters to `TeX-braces-association' + (make-local-variable 'TeX-braces-association) + (let ((delimiters '(("\\empheqlbrace" . "\\empheqrbrace") + ("\\empheqlbrack" . "\\empheqrbrack") + ("\\empheqlangle" . "\\empheqrangle") + ("\\empheqlparen" . "\\empheqrparen") + ("\\empheqlvert" . "\\empheqrvert") + ("\\empheqlVert" . "\\empheqrVert") + ("\\empheqlfloor" . "\\empheqrfloor") + ("\\empheqlceil" . "\\empheqrceil") + ("\\empheqbiglbrace" . "\\empheqbigrbrace") + ("\\empheqbiglbrack" . "\\empheqbigrbrack") + ("\\empheqbiglangle" . "\\empheqbigrangle") + ("\\empheqbiglparen" . "\\empheqbigrparen") + ("\\empheqbiglvert" . "\\empheqbigrvert") + ("\\empheqbiglVert" . "\\empheqbigrVert") + ("\\empheqbiglfloor" . "\\empheqbigrfloor") + ("\\empheqbiglceil" . "\\empheqbigrceil")))) + (dolist (elt delimiters) + (add-to-list 'TeX-braces-association elt t))) + + ;; 2.2.1 Using multline + (when (LaTeX-provided-package-options-member "empheq" "oldmultline") + (LaTeX-add-environments + '("MTmultlined" LaTeX-mathtools-env-multlined))) + + ;; 2.2.2 The overload option + ;; I simplify it and ignore the additional feature overload2: + (when (or (LaTeX-provided-package-options-member "empheq" "overload") + (LaTeX-provided-package-options-member "empheq" "overload2")) + (LaTeX-add-environments + '("align" LaTeX-empheq-env-overload) + '("alignat" LaTeX-empheq-env-overload) + '("equation" LaTeX-empheq-env-overload) + '("flalign" LaTeX-empheq-env-overload) + '("gather" LaTeX-empheq-env-overload) + '("multline" LaTeX-empheq-env-overload) + '("align*" LaTeX-env-args [TeX-arg-key-val LaTeX-empheq-key-val-options-local]) + '("alignat*" LaTeX-empheq-env-overload) + '("equation*" LaTeX-env-args [TeX-arg-key-val LaTeX-empheq-key-val-options-local]) + '("flalign*" LaTeX-env-args [TeX-arg-key-val LaTeX-empheq-key-val-options-local]) + '("gather*" LaTeX-env-args [TeX-arg-key-val LaTeX-empheq-key-val-options-local]) + '("multline*" LaTeX-env-args [TeX-arg-key-val LaTeX-empheq-key-val-options-local]) + + ;; Original definitions are stored prefixed with "AmS" + '("AmSalign" LaTeX-env-label) + '("AmSalignat" LaTeX-amsmath-env-alignat) + '("AmSequation" LaTeX-env-label) + '("AmSflalign" LaTeX-env-label) + '("AmSgather" LaTeX-env-label) + '("AmSmultline" LaTeX-env-label) + '("AmSalign*") + '("AmSalignat*" LaTeX-amsmath-env-alignat) + '("AmSequation*") + '("AmSflalign*") + '("AmSgather*") + '("AmSmultline*")) + + ;; Append original definitions to `LaTeX-label-alist' + (let ((envs '("AmSalign" + "AmSalignat" + "AmSequation" + "AmSflalign" + "AmSgather" + "AmSmultline"))) + (dolist (env envs) + (add-to-list 'LaTeX-label-alist `(,env . LaTeX-amsmath-label) t))) + + ;; RefTeX support: Add original definitions with `reftex-add-label-environments' + (when (fboundp 'reftex-add-label-environments) + (let ((envs '(("AmSalign" ?e nil nil eqnarray-like) + ("AmSequation" ?e nil nil t) + ("AmSgather" ?e nil nil eqnarray-like) + ("AmSmultline" ?e nil nil t) + ("AmSflalign" ?e nil nil eqnarray-like) + ("AmSalignat" ?e nil nil alignat-like)))) + (dolist (env envs) + (reftex-add-label-environments `(,env))))) + + ;; Append original definitions to `LaTeX-item-list'; functions + ;; are provided by amsmath.el + (let ((envs '(("AmSalign" . LaTeX-item-equation) + ("AmSalign*" . LaTeX-item-equation) + ("AmSflalign" . LaTeX-item-equation) + ("AmSalignat" . LaTeX-item-equation-alignat) + ("AmSalignat*" . LaTeX-item-equation-alignat) + ("AmSflalign*" . LaTeX-item-equation) + ("AmSgather" . LaTeX-item-equation) + ("AmSgather*" . LaTeX-item-equation) + ("AmSmultline" . LaTeX-item-equation) + ("AmSmultline*" . LaTeX-item-equation)))) + (dolist (env envs) + (add-to-list 'LaTeX-item-list env t))) + + ;; Ispell skip lists: + (TeX-ispell-skip-setcdr + `(,(cons (concat "\\(AmS\\(?:align\\(?:\\*\\|at\\*?\\)?\\|" + "equation\\*?\\|flalign\\*?\\|gather\\*?\\|multline\\*?\\)\\)") + (concat "\\\\end{" + "\\(AmS\\(?:align\\(?:\\*\\|at\\*?\\)?\\|" + "equation\\*?\\|flalign\\*?\\|gather\\*?\\|multline\\*?\\)\\)}"))))) + + ;; 3.2 Support for ntheorem + (LaTeX-add-lengths "mintagvsep") + + ;; 4.1 Creating your own delimiters + (TeX-add-symbols + '("DeclareLeftDelimiter" + [ "Space adjustment" ] + (TeX-arg-eval + (lambda () + (let ((delim (TeX-read-string (concat "Delimiter: " TeX-esc)))) + (TeX-add-symbols (concat "empheq" delim) + (concat "empheqbig" delim)) + (LaTeX-add-empheq-declaredelimiters `(,delim "Left")) + (LaTeX-empheq-update-key-val-options) + (concat TeX-esc delim))))) + + '("DeclareRightDelimiter" + [ "Space adjustment" ] + (TeX-arg-eval + (lambda () + (let ((delim (TeX-read-string (concat "Delimiter: " TeX-esc)))) + (TeX-add-symbols (concat "empheq" delim) + (concat "empheqbig" delim)) + (LaTeX-add-empheq-declaredelimiters `(,delim "Right")) + (LaTeX-empheq-update-key-val-options) + (concat TeX-esc delim)))))) + + ;; 4.2 Fine-tuning of delimiters + (LaTeX-add-lengths "EmphEqdelimitershortfall") + (LaTeX-add-counters "EmphEqdelimiterfactor") + + (TeX-add-symbols + ;; 4.3 Scaling material yourself + '("EmphEqdisplayheight" 0) + '("EmphEqdisplaydepth" 0) + ;; 6.1 New empheq-like environments + '("EmphEqMainEnv" 0) + '("endEmphEqMainEnv" 0)) + + ;; Ispell skip lists + (TeX-ispell-skip-setcar '(("\\\\empheqset" ispell-tex-arg-end))) + (TeX-ispell-skip-setcdr '(("empheq" . "\\\\end{empheq}"))) + + ;; Fontification + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("empheqset" "{") + ("DeclareLeftDelimiter" "[{") + ("DeclareRightDelimiter" "[{")) + 'function) + ;; Append our addition so that we don't interfere with user customizations + (make-local-variable 'font-latex-math-environments) + (add-to-list 'font-latex-math-environments "empheq" t) + (when (or (LaTeX-provided-package-options-member "empheq" "overload") + (LaTeX-provided-package-options-member "empheq" "overload2")) + (let ((envs '(;; Do not insert the starred versions here; + ;; function `font-latex-match-math-envII' takes + ;; care of it + "AmSalign" + "AmSalignat" + "AmSequation" + "AmSflalign" + "AmSgather" + "AmSmultline"))) + (dolist (env envs) + (add-to-list 'font-latex-math-environments env t)))))) + LaTeX-dialect) + +;;; empheq.el ends here diff -Nru auctex-11.88/style/enumitem.el auctex-11.90/style/enumitem.el --- auctex-11.88/style/enumitem.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/enumitem.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,455 @@ +;;; enumitem.el --- AUCTeX style for `enumitem.sty' (v3.5.2) + +;; Copyright (C) 2015, 2016 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: auctex-devel@gnu.org +;; Created: 2014-10-20 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for `enumitem.sty' (v3.5.2) from 2011/09/28. +;; `enumitem.sty' is part of TeXLive. + +;; Tassilo Horn's `minted.el' was a major source of inspiration for +;; this style, many thanks to him (also for patiently answering my +;; many other questions, incl. the stupid ones.) + +;; If things do not work or when in doubt, press `C-c C-n'. Comments +;; for improvement are welcome. + +;;; Code: + +;; Needed for compiling `pushnew': +(eval-when-compile (require 'cl)) + +;; Needed for auto-parsing. +(require 'tex) + +(defvar LaTeX-enumitem-key-val-options + '(;; Vertical Spacing + ("topsep") + ("partopsep") + ("parsep") + ("itemsep") + ;; Horizontal Spacing + ("leftmargin" ("*" "!")) + ("itemindent" ("*" "!")) + ("labelsep" ("*" "!")) + ("labelwidth" ("*" "!")) + ("labelindent" ("*" "!")) + ("labelsep*") + ("labelindent*") + ("widest") + ("widest*") + ("rightmargin") + ;; Labels and cross reference format + ("label") + ("label*") + ("ref") + ("font") + ("format") + ("align" ("left" "right" "parleft")) + ;; Numbering, stopping, resuming + ("start") + ("resume") + ("resume*") + ;; Series + ("series") + ;; Penalties + ("beginpenalty") + ("midpenalty") + ("endpenalty") + ("before") + ("before*") + ("after") + ("after*") + ;; Description styles + ("style" ("standard" "multiline" "nextline" "sameline" "unboxed")) + ;; Compact lists + ("noitemsep") + ("nosep") + ;; Wide lists + ("wide") + ;; Inline lists + ("itemjoin") + ("itemjoin*") + ("afterlabel") + ("mode" ("boxed" "unboxed"))) + "Key=value options for enumitem macros and environments.") + +(defvar LaTeX-enumitem-key-val-options-local nil + "Buffer-local key=value options for enumitem macros and environments.") +(make-variable-buffer-local 'LaTeX-enumitem-key-val-options-local) + +(defvar LaTeX-enumitem-newlist-list-local nil + "Local list of all environments definded with `\\newlist' plus +the ones initially available through `enumitem' package.") +(make-variable-buffer-local 'LaTeX-enumitem-newlist-list-local) + +;; Setup for \newlist: + +(TeX-auto-add-type "enumitem-newlist" "LaTeX") + +(defvar LaTeX-enumitem-newlist-regexp + '("\\\\newlist{\\([^}]+\\)}{\\([^}]+\\)}" + (1 2) LaTeX-auto-enumitem-newlist) + "Matches the arguments of `\\newlist' from `enumitem' +package.") + +;; Setup for \SetLabelAlign: + +(TeX-auto-add-type "enumitem-SetLabelAlign" "LaTeX") + +(defvar LaTeX-enumitem-SetLabelAlign-regexp + '("\\\\SetLabelAlign{\\([^}]+\\)}" + 1 LaTeX-auto-enumitem-SetLabelAlign) + "Matches the argument of `\\SetLabelAlign' from `enumitem' +package.") + +;; Setup for \SetEnumitemKey: + +(TeX-auto-add-type "enumitem-SetEnumitemKey" "LaTeX") + +(defvar LaTeX-enumitem-SetEnumitemKey-regexp + '("\\\\SetEnumitemKey{\\([^}]+\\)}" + 1 LaTeX-auto-enumitem-SetEnumitemKey) + "Matches the arguments of `\\SetEnumitemKey' from `enumitem' +package.") + +;; Setup for \SetEnumitemValue: + +(TeX-auto-add-type "enumitem-SetEnumitemValue" "LaTeX") + +;; Upon Tassilo's recommendation, we include also `0' so that we can +;; use the function `LaTeX-enumitem-SetEnumitemValue-list' while we +;; make sure that `TeX-auto-list-information' doesn't remove multiple +;; defined values to a specific key. For this reason, we also ignore +;; the 3. argument to the `\SetEnumitemValue' macro (i.e., a third +;; {\\([^}]+\\)} in regex) so that we don't pollute the generated +;; `docname.el' with unnecessary (La)TeX code. +(defvar LaTeX-enumitem-SetEnumitemValue-regexp + '("\\\\SetEnumitemValue{\\([^}]+\\)}{\\([^}]+\\)}" + (0 1 2) LaTeX-auto-enumitem-SetEnumitemValue) + "Matches the arguments of `\\SetEnumitemValue' from `enumitem' +package.") + +;; Plug them into the machinery. +(defun LaTeX-enumitem-auto-prepare () + "Clear various `LaTeX-enumitem-*' before parsing." + (setq LaTeX-auto-enumitem-newlist nil + LaTeX-auto-enumitem-SetLabelAlign nil + LaTeX-auto-enumitem-SetEnumitemKey nil + LaTeX-auto-enumitem-SetEnumitemValue nil)) + +(defun LaTeX-enumitem-auto-cleanup () + "Move parsing results into right places for further usage." + ;; \newlist{}{}{} + ;; env=, type=, ignored= + (dolist (env-type (LaTeX-enumitem-newlist-list)) + (let* ((env (car env-type)) + (type (cadr env-type))) + (LaTeX-add-environments (list env 'LaTeX-enumitem-env-with-opts)) + ;; Tell AUCTeX about parsed description like environments. + (when (or (string-equal type "description") + (string-equal type "description*")) + (add-to-list 'LaTeX-item-list `(,env . LaTeX-item-argument))) + ;; Add new env's to `ispell-tex-skip-alist': skip the optional argument + (TeX-ispell-skip-setcdr `((,env ispell-tex-arg-end 0))))) + ;; Now add the parsed env's to the local list. + (when (LaTeX-enumitem-newlist-list) + (setq LaTeX-enumitem-newlist-list-local + (append (mapcar 'list (mapcar 'car (LaTeX-enumitem-newlist-list))) + LaTeX-enumitem-newlist-list-local)))) + +(add-hook 'TeX-auto-prepare-hook #'LaTeX-enumitem-auto-prepare t) +(add-hook 'TeX-auto-cleanup-hook #'LaTeX-enumitem-auto-cleanup t) +(add-hook 'TeX-update-style-hook #'TeX-auto-parse t) + +(defun LaTeX-enumitem-env-with-opts (env) + "Update available key-val options, then insert ENV and optional +key-val and the first item." + (LaTeX-enumitem-update-key-val-options) + (LaTeX-insert-environment + env + (let ((opts (TeX-read-key-val t LaTeX-enumitem-key-val-options-local))) + (when (and opts (not (string-equal opts ""))) + (format "[%s]" opts)))) + (if (TeX-active-mark) + (progn + (LaTeX-find-matching-begin) + (end-of-line 1)) + (end-of-line 0)) + (delete-char 1) + (when (looking-at (concat "^[ \t]+$\\|" + "^[ \t]*" TeX-comment-start-regexp "+[ \t]*$")) + (delete-region (point) (line-end-position))) + (delete-horizontal-space) + ;; Deactivate the mark here in order to prevent `TeX-parse-macro' + ;; from swapping point and mark and the \item ending up right after + ;; \begin{...}. + (TeX-deactivate-mark) + (LaTeX-insert-item) + ;; The inserted \item may have outdented the first line to the + ;; right. Fill it, if appropriate. + (when (and (not (looking-at "$")) + (not (assoc env LaTeX-indent-environment-list)) + (> (- (line-end-position) (line-beginning-position)) + (current-fill-column))) + (LaTeX-fill-paragraph nil))) + +(defun LaTeX-arg-SetLabelAlign (optional) + "Ask for new type (value) for the \"align\" key and add it to +`LaTeX-enumitem-key-val-options-local'." + (LaTeX-enumitem-update-key-val-options) + (let ((val (TeX-read-string "Alignment: "))) + (TeX-argument-insert val optional) + (LaTeX-add-enumitem-SetLabelAligns val))) + +(defun LaTeX-arg-SetEnumitemKey (optional) + "Ask for a new key to be defined and add it to +`LaTeX-enumitem-key-val-options-local'." + (LaTeX-enumitem-update-key-val-options) + (let ((key (TeX-read-string "New Key: ")) + (replace (TeX-read-key-val optional + LaTeX-enumitem-key-val-options-local "Replacement"))) + (TeX-argument-insert key optional) + (TeX-argument-insert replace optional) + (LaTeX-add-enumitem-SetEnumitemKeys key))) + +;; In `LaTeX-enumitem-SetEnumitemValue-regexp', we match (0 1 2). +;; When adding a new `key=val', we need something unique for `0'-match +;; until the next `C-c C-n'. We mimic that regex-match bei concat'ing +;; the elements and pass the result to +;; `LaTeX-add-enumitem-SetEnumitemValues'. It will vanish upon next +;; invocation of `C-c C-n'. +(defun LaTeX-arg-SetEnumitemValue (optional) + "Ask for a new value added to an existing key incl. the final +replacement of the value." + (LaTeX-enumitem-update-key-val-options) + (let ((key (completing-read "Key: " LaTeX-enumitem-key-val-options-local)) + (val (TeX-read-string "String value: "))) + (TeX-argument-insert key optional) + (TeX-argument-insert val optional) + (LaTeX-add-enumitem-SetEnumitemValues + (list (concat "\\SetEnumitemValue{" key "}{" val "}") + key val)))) + +(defun LaTeX-enumitem-update-key-val-options () + "Update the buffer-local key-val options before offering them +in `enumitem'-completions." + (dolist (key (LaTeX-enumitem-SetEnumitemKey-list)) + (add-to-list 'LaTeX-enumitem-key-val-options-local key)) + (dolist (keyvals (LaTeX-enumitem-SetEnumitemValue-list)) + (let* ((key (nth 1 keyvals)) + (val (nth 2 keyvals)) + ;; (key-match (car (assoc key LaTeX-enumitem-key-val-options-local))) + (val-match (cdr (assoc key LaTeX-enumitem-key-val-options-local))) + (temp (copy-alist LaTeX-enumitem-key-val-options-local)) + (opts (assq-delete-all (car (assoc key temp)) temp))) + (if val-match + (pushnew (list key (delete-dups (apply 'append (list val) val-match))) + opts :test #'equal) + (pushnew (list key (list val)) opts :test #'equal)) + (setq LaTeX-enumitem-key-val-options-local (copy-alist opts)))) + (dolist (newalign (LaTeX-enumitem-SetLabelAlign-list)) + (let* ((key "align") + (val (car newalign)) + (val-match (cdr (assoc key LaTeX-enumitem-key-val-options-local))) + (temp (copy-alist LaTeX-enumitem-key-val-options-local)) + (opts (assq-delete-all (car (assoc key temp)) temp))) + (pushnew (list key (delete-dups (apply 'append (list val) val-match))) + opts :test #'equal) + (setq LaTeX-enumitem-key-val-options-local (copy-alist opts))))) + +(TeX-add-style-hook + "enumitem" + (lambda () + + ;; Add enumitem to the parser. + (TeX-auto-add-regexp LaTeX-enumitem-newlist-regexp) + (TeX-auto-add-regexp LaTeX-enumitem-SetEnumitemKey-regexp) + (TeX-auto-add-regexp LaTeX-enumitem-SetEnumitemValue-regexp) + (TeX-auto-add-regexp LaTeX-enumitem-SetLabelAlign-regexp) + + ;; Activate the buffer-local version of key-vals. + (setq LaTeX-enumitem-key-val-options-local + (copy-alist LaTeX-enumitem-key-val-options)) + + ;; Set the standard env's to the local list. + (setq LaTeX-enumitem-newlist-list-local + '(("itemize") ("enumerate") ("description"))) + + ;; Add the starred versions to the local list. + (when (LaTeX-provided-package-options-member "enumitem" "inline") + (setq LaTeX-enumitem-newlist-list-local + (append '(("itemize*") ("enumerate*") ("description*")) + LaTeX-enumitem-newlist-list-local))) + + ;; Standard env's take key-val as optional argument. + (LaTeX-add-environments + '("itemize" LaTeX-enumitem-env-with-opts) + '("enumerate" LaTeX-enumitem-env-with-opts) + '("description" LaTeX-enumitem-env-with-opts)) + + ;; Make inline env's available with package option "inline" + (when (LaTeX-provided-package-options-member "enumitem" "inline") + (LaTeX-add-environments + '("itemize*" LaTeX-enumitem-env-with-opts) + '("enumerate*" LaTeX-enumitem-env-with-opts) + '("description*" LaTeX-enumitem-env-with-opts)) + (add-to-list 'LaTeX-item-list '("description*" . LaTeX-item-argument))) + + ;; Cloning lists + (TeX-add-symbols + ;; The easy way would be: + ;; '("newlist" + ;; "Name" (TeX-arg-eval + ;; completing-read "Type: " + ;; '(("itemize") ("enumerate") ("description") + ;; ("itemize*") ("enumerate*") ("description*"))) + ;; "Max-depth") + ;; But we go the extra mile to improve the user experience and add + ;; the arguments directly to appropriate lists. + ;; \newlist{}{}{} + '("newlist" + (TeX-arg-eval + (lambda () + (let ((name (TeX-read-string "Name: ")) + (type (completing-read + "Type: " + '(("itemize") ("enumerate") ("description") + ("itemize*") ("enumerate*") ("description*")))) + (depth (TeX-read-string "Max-depth: "))) + (setq LaTeX-enumitem-newlist-list-local + (append `(,(list name)) LaTeX-enumitem-newlist-list-local)) + (when (or (string-equal type "description") + (string-equal type "description*")) + (add-to-list 'LaTeX-item-list `(,name . LaTeX-item-argument))) + (LaTeX-add-environments `(,name LaTeX-enumitem-env-with-opts)) + (LaTeX-add-enumitem-newlists (list name type)) + (TeX-ispell-skip-setcdr `((,name ispell-tex-arg-end 0))) + (TeX-argument-insert name optional) + (TeX-argument-insert type optional) + (format "%s" depth))))) + + ;; \renewlist{}{}{} + '("renewlist" + (TeX-arg-eval completing-read "Name: " + LaTeX-enumitem-newlist-list-local) + (TeX-arg-eval completing-read "Type: " + '(("itemize") ("enumerate") ("description") + ("itemize*") ("enumerate*") ("description*"))) + "Max-depth") + + ;; \setlist[]{} + '("setlist" + [TeX-arg-eval mapconcat 'identity + (TeX-completing-read-multiple + "Environment(s), level(s): " + `(,@LaTeX-enumitem-newlist-list-local + ("1") ("2") ("3") ("4"))) ","] + (TeX-arg-eval + (lambda () + (LaTeX-enumitem-update-key-val-options) + (let ((opts (TeX-read-key-val nil LaTeX-enumitem-key-val-options-local))) + (format "%s" opts))))) + + ;; \setlist*[]{} + '("setlist*" + [TeX-arg-eval mapconcat 'identity + (TeX-completing-read-multiple + "Environment, level: " + `(,@LaTeX-enumitem-newlist-list-local + ("1") ("2") ("3") ("4"))) ","] + (TeX-arg-eval + (lambda () + (LaTeX-enumitem-update-key-val-options) + (let ((opts (TeX-read-key-val nil LaTeX-enumitem-key-val-options-local))) + (format "%s" opts))))) ) + + ;; General commands: + (TeX-add-symbols + + ;; Ask for an Integer and insert it. + '("setlistdepth" "Integer") + + ;; Just add the braces and let the user do the rest. + '("AddEnumerateCounter" 3) + '("AddEnumerateCounter*" 3) + + ;; "\restartlist" only works for lists defined with "resume" key. + ;; We will not extract that information and leave that to users. + ;; For completion, extract enumerated environments from + ;; `LaTeX-enumitem-newlist-list' and add "enumerate" to them. + '("restartlist" + (TeX-arg-eval + (lambda () + (let ((enums '("enumerate"))) + (when (LaTeX-provided-package-options-member "enumitem" "inline") + (pushnew "enumerate*" enums :test #'equal)) + (dolist (env-type (LaTeX-enumitem-newlist-list)) + (let ((env (car env-type)) + (type (cadr env-type))) + (when (or (string-equal type "enumerate") + (string-equal type "enumerate*")) + (pushnew env enums :test #'equal)))) + (completing-read "List name: " enums))))) + + ;; "Align" is added as new value to "align" key in key-val list. + '("SetLabelAlign" LaTeX-arg-SetLabelAlign t) + + ;; "Key" will be parsed and added to key-val list. + '("SetEnumitemKey" LaTeX-arg-SetEnumitemKey) + + ;; "Key" and "Value" are added to our key-val list + '("SetEnumitemValue" LaTeX-arg-SetEnumitemValue "Replacement")) + + ;; Setting enumerate short label + (when (LaTeX-provided-package-options-member "enumitem" "shortlabels") + (TeX-add-symbols + '("SetEnumerateShortLabel" + (TeX-arg-eval completing-read "Key: " + '(("A") ("a") ("I") ("i") ("1"))) + "Replacement"))) + + ;; Fontification + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("newlist" "{{{") + ("renewlist" "{{{") + ("setlist" "*[{") + ("AddEnumerateCounter" "*{{{") + ("SetLabelAlign" "{{") + ("SetEnumitemKey" "{{" ) + ("SetEnumitemValue" "{{{")) + 'function) + (font-latex-add-keywords '(("restartlist" "{" ) + ("setlistdepth" "{" ) + ("SetEnumerateShortLabel" "{{")) + 'variable))) + LaTeX-dialect) + +(defvar LaTeX-enumitem-package-options + '("inline" "ignoredisplayed" "shortlabels" "loadonly") + "Package options for the enumitem package.") + +;;; enumitem.el ends here diff -Nru auctex-11.88/style/environ.el auctex-11.90/style/environ.el --- auctex-11.88/style/environ.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/environ.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,135 @@ +;;; environ.el --- AUCTeX style for `environ.sty' version v0.3 + +;; Copyright (C) 2015, 2016 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: auctex-devel@gnu.org +;; Created: 2015-07-04 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for `environ.sty' version v0.3 from +;; 2014/05/04. `environ.sty' is part of TeXLive. + +;; Name of new env's defined with `\NewEnviron' are automatically +;; added to list of known env's, e.g.: +;; +;; \NewEnviron{test}{} +;; +;; `test' will be in completion list upon `C-c C-e'. + +;; More sophisticated definions must go through AUCTeX's parser, e.g.: +;; +;; \NewEnviron{test}[2][]{} +;; +;; After a definition like this, you have to invoke `C-c C-n' to get +;; the correct completion. + +;;; Code: + +(defvar LaTeX-auto-environ-NewEnviron nil + "Temporary for parsing the arguments of `\\NewEnviron' +from `environ' package.") + +(defvar LaTeX-environ-NewEnviron-regexp + `(,(concat "\\\\\\(?:Ren\\|N\\)ewEnviron" + "[ \t\n\r]*{\\([A-Za-z0-9]+\\)}%?" + "[ \t\n\r]*\\[?\\([0-9]?\\)\\]?%?" + "[ \t\n\r]*\\(\\[\\)?") + (1 2 3) LaTeX-auto-environ-NewEnviron) + "Matches the argument of `\\NewEnviron' and `\\RenewEnviron' +from `environ.sty'.") + +(defun LaTeX-environ-auto-prepare () + "Clear temporary variable from `environ.sty' before parsing." + (setq LaTeX-auto-environ-NewEnviron nil)) + +(defun LaTeX-environ-auto-cleanup () + "Process the parsed results of `\\NewEnviron'." + (dolist (env-args LaTeX-auto-environ-NewEnviron) + (let ((env (car env-args)) + (args (cadr env-args)) + (opt (nth 2 env-args))) + (cond (;; opt. 1st argument and mandatory argument(s) + (and args (not (string-equal args "")) + opt (not (string-equal opt ""))) + (add-to-list 'LaTeX-auto-environment + (list env 'LaTeX-env-args (vector "argument") + (1- (string-to-number args))))) + (;; mandatory argument(s) only + (and args (not (string-equal args "")) + (string-equal opt "")) + (add-to-list 'LaTeX-auto-environment + (list env (string-to-number args)))) + (t ; No args + (add-to-list 'LaTeX-auto-environment (list env))))))) + +(add-hook 'TeX-auto-prepare-hook #'LaTeX-environ-auto-prepare t) +(add-hook 'TeX-auto-cleanup-hook #'LaTeX-environ-auto-cleanup t) +(add-hook 'TeX-update-style-hook #'TeX-auto-parse t) + +(defun TeX-arg-environ-final-code (_optional) + "Query for the presence of optional `final code' as argument to +`\\NewEnviron' and insert the appropriate brackets." + (let ((fincode (y-or-n-p "With optional final code? "))) + (when fincode + (insert "[]")))) + +(TeX-add-style-hook + "environ" + (lambda () + + ;; Add it to the parser + (TeX-auto-add-regexp LaTeX-environ-NewEnviron-regexp) + + (TeX-add-symbols + + ;; \NewEnviron{}[][]{}[] + '("NewEnviron" + (TeX-arg-define-environment "Environment") + [ "Number of arguments" ] [ "argument" ] t TeX-arg-environ-final-code) + + '("RenewEnviron" + (TeX-arg-environment "Environment") + [ "Number of arguments" ] [ "argument" ] t TeX-arg-environ-final-code) + + ;; Insert a pair of braces and we're done + '("environfinalcode" t) + + ;; Pre-defined + '("BODY") + + ;; Define another macro instead of \BODY + '("environbodyname" TeX-arg-define-macro)) + + ;; Fontification + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("NewEnviron" "{[[{[") + ("RenewEnviron" "{[[{[") + ("environbodyname" "|{\\")) + 'function))) + LaTeX-dialect) + +(defvar LaTeX-environ-package-options nil + "Package options for the environ package.") + +;;; environ.el ends here diff -Nru auctex-11.88/style/epsf.el auctex-11.90/style/epsf.el --- auctex-11.88/style/epsf.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/epsf.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,8 +1,10 @@ ;;; epsf.el - Support for the epsf style option. +;; Copyright (C) 2013-2014 Free Software Foundation, Inc. + ;; Contributed by Marc Gemis -;;; Code: +;;; Code: (TeX-add-style-hook "epsf" @@ -17,10 +19,10 @@ "epsfllx" "epsflly" "epsfury" "epsfverbosetrue")) LaTeX-dialect) -(defun TeX-arg-epsfsize (optional &optional prompt definition) +(defun TeX-arg-epsfsize (_optional &optional _prompt _definition) "Create a line that print epsf figures at a certain percentage" (interactive) - (let ((scale (read-string "Scale in percent (default 75): "))) + (let ((scale (TeX-read-string "Scale in percent (default 75): "))) (setq scale (if (zerop (length scale)) "75" scale)) (save-excursion ; append #1#{scale#1} diff -Nru auctex-11.88/style/erewhon.el auctex-11.90/style/erewhon.el --- auctex-11.88/style/erewhon.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/erewhon.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,91 @@ +;;; erewhon.el --- AUCTeX style for `erewhon.sty' (v1.04) + +;; Copyright (C) 2014, 2015 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: auctex-devel@gnu.org +;; Created: 2014-11-18 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for `erewhon.sty' (v1.04) from 2015/04/07. +;; `erewhon.sty' is part of TeXLive. + +;;; Code: + +(TeX-add-style-hook + "erewhon" + (lambda () + + ;; Run style hook for various packages loaded by erewhon + (TeX-run-style-hooks "textcomp" "fontaxes") + + ;; New symbols + (TeX-add-symbols + + ;; Only preamble commands + '("useosf" 0) + '("useproportional" 0) + + ;; Text commands + '("lfstyle" -1) ; lf declaration + '("tlfstyle" -1) ; tlf declaration + '("osfstyle" -1) ; osf declaration + '("tosfstyle" -1) ; tosf declaration + '("sufigures" -1) ; superior figures declaration + '("textlf" t) ; proportional lining figures + '("texttlf" t) ; tabular lining figures + '("textosf" t) ; proportional oldstyle figures + '("texttosf" t) ; tabular oldstyle figures + '("textsu" t) ; superior figures + '("textin" t) ; inferior figures + '("textnu" t) ; numerator figures + '("textde" t) ; denominator figures + '("textfrac" "Numerator" "Denominator")) + + ;; Fontification + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("textlf" "{") + ("texttlf" "{") + ("textosf" "{") + ("texttosf" "{") + ("textsu" "{") + ("textin" "{") + ("textnu" "{") + ("textde" "{")) + 'type-command) + (font-latex-add-keywords '(("lfstyle" "") + ("tlfstyle" "") + ("osfstyle" "") + ("tosfstyle" "") + ("sufigures" "")) + 'type-declaration) + (font-latex-add-keywords '(("textfrac" "{{")) + 'textual))) + LaTeX-dialect) + +(defvar LaTeX-erewhon-package-options + '("lining" "lf" "oldstyle" "osf" "tabular" "p" "proportional" + "scale" "scaled" "scosf" "space" "sups") + "Package options for the erewhon package.") + +;;; erewhon.el ends here diff -Nru auctex-11.88/style/eso-pic.el auctex-11.90/style/eso-pic.el --- auctex-11.88/style/eso-pic.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/eso-pic.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,90 @@ +;;; eso-pic.el --- AUCTeX style for `eso-pic.sty' (v2.0d) + +;; Copyright (C) 2014 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: auctex-devel@gnu.org +;; Created: 2014-10-29 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for `eso-pic.sty' (v2.0d) from 2013/10/06. +;; `eso-pic.sty' is part of TeXLive. + +;;; Code: + +(TeX-add-style-hook + "eso-pic" + (lambda () + + ;; Run style hook for eso-pic + (TeX-run-style-hooks "atbegshi") + + ;; New symbols + (TeX-add-symbols + + ;; Basic commands + '("AddToShipoutPictureBG" t) + '("AddToShipoutPictureBG*" t) + '("AddToShipoutPictureFG" t) + '("AddToShipoutPictureFG*" t) + '("ClearShipoutPictureBG" 0) + '("ClearShipoutPictureFG" 0) + + ;; Helper macros + '("AtPageUpperLeft" t) + '("AtPageLowerLeft" t) + '("AtPageCenter" t) + '("AtTextUpperLeft" t) + '("AtTextLowerLeft" t) + '("AtTextCenter" t) + '("AtStockUpperLeft" t) + '("AtStockLowerLeft" t) + '("AtStockCenter" t) + + ;; Aux. commands + '("LenToUnit" t) + '("gridSetup" + [ "Grid unit name" ] "Grid unit" "Label factor" + "Grid delta" "Grid Delta" "Gap")) + + ;; Declare expert macro + (TeX-declare-expert-macros + "eso-pic" + "gridSetup" "LenToUnit")) + LaTeX-dialect) + +(defvar LaTeX-eso-pic-package-options-list + '(("pscoord" ("true" "false")) + ("texcoord" ("true" "false")) + ("grid" ("true" "false")) + ("gridunit" ("mm" "in" "bp" "pt")) + ("gridcolor") + ("subgridcolor") + ("subgridstyle" ("solid" "dotted")) + ("dvips" ("true" "false"))) + "Package options for the eso-pic package.") + +(defun LaTeX-eso-pic-package-options nil + "Prompt for package options for the eso-pic package." + (TeX-read-key-val t LaTeX-eso-pic-package-options-list)) + +;;; eso-pic.el ends here diff -Nru auctex-11.88/style/everysel.el auctex-11.90/style/everysel.el --- auctex-11.88/style/everysel.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/everysel.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,6 +1,6 @@ ;;; everysel.el --- AUCTeX style for `everysel.sty' -;; Copyright (C) 2012 Free Software Foundation, Inc. +;; Copyright (C) 2012, 2015 Free Software Foundation, Inc. ;; Author: Mads Jensen ;; Created: 2012-12-25 @@ -36,7 +36,7 @@ ;; adds a hook (the argument code) to be called after \\selectfont '("EverySelectfont" 1) ;; adds a hook to be called after the next \\selectfont - '("AtNextSelectont" 1))) + '("AtNextSelectfont" 1))) LaTeX-dialect) (defvar LaTeX-everysel-package-options nil diff -Nru auctex-11.88/style/exam.el auctex-11.90/style/exam.el --- auctex-11.88/style/exam.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/exam.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,378 @@ +;;; exam.el --- AUCTeX style for the (LaTeX) exam class + +;; Copyright (C) 2016 Free Software Foundation, Inc. + +;; Author: Uwe Brauer +;; Created: 2016-03-06 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for the exam class. + +;; Acknowledgements +;; Arash Esbati for a almost complete rewrite. + +;;; Code: + + +(defvar LaTeX-exam-class-options + '("answers" "noanswers" "cancelspace" "nocancelspace" "addpoints") + "Class options for the exam class.") + +(defun LaTeX-exam-insert-item () + "Insert a new item in an environment from exam class. +Item inserted depends on the environment." + (TeX-insert-macro + (cond ((string= environment "questions") + "question") + ((string= environment "parts") + "part") + ((string= environment "subparts") + "subpart") + ((string= environment "subsubparts") + "subsubpart") + ;; Fallback + (t "item")))) + +(defun LaTeX-exam-insert-label (_optional &optional name type) + "Indent the line and query/insert a label incl. the \"\\label\" macro. +Arguments NAME and TYPE are the same as for the function +`LaTeX-label'. OPTIONAL is ignored." + (indent-according-to-mode) + (let ((currenv (LaTeX-current-environment))) + (LaTeX-label (or name currenv) (or type 'environment)))) + +(TeX-add-style-hook + "exam" + (lambda () + (TeX-run-style-hooks "article") + ;; Add options from `LaTeX-article-class-options' only once: + (dolist (opt LaTeX-article-class-options) + (add-to-list 'LaTeX-exam-class-options opt)) + ;; Make our label prefix available ... + (let ((envs '("questions"))) + (dolist (env envs) + ;; to AUCTeX + (add-to-list 'LaTeX-label-alist + (cons env 'LaTeX-exam-label)) + ;; to RefTeX with `reftex-add-label-environments' + (when (fboundp 'reftex-add-label-environments) + (reftex-add-label-environments + `((,env ,LaTeX-exam-reftex-quick-id-key ,LaTeX-exam-label + "~\\ref{%s}" nil + (regexp "[Qq]uestions?" "[Nn]umbers?"))))))) + (when (or (member "xcolor" (TeX-style-list)) + (member "color" (TeX-style-list))) + (TeX-add-symbols '("shadedsolutions" 0))) + + (LaTeX-add-environments + '("solution" [ "Height" ]) + '("solutionorbox" [ "Height" ]) + '("solutionorlines" [ "Height" ]) + '("solutionordottedlines" [ "Height" ]) + '("solutionorgrid" [ "Height" ]) + '("questions" LaTeX-env-item) + '("parts" LaTeX-env-item) + '("subparts" LaTeX-env-item) + '("subsubparts" LaTeX-env-item)) + + ;; Tell AUCTeX about special environments: + (let ((envs '("questions" "parts" "subparts" "subsubparts"))) + (dolist (env envs) + (add-to-list 'LaTeX-item-list + (cons env 'LaTeX-exam-insert-item)))) + + ;; Append us only once: + (unless (and (string-match "question" LaTeX-item-regexp) + (string-match "subsub" LaTeX-item-regexp)) + (set (make-local-variable 'LaTeX-item-regexp) + (concat + LaTeX-item-regexp + "\\|" + "\\(titled\\)?question\\b" + "\\|" + "\\(sub\\|subsub\\)?part\\b")) + (LaTeX-set-paragraph-start)) + + (TeX-add-symbols + '("part" [ "Points" ] (TeX-arg-literal " ")) + '("subpart" [ "Points" ] (TeX-arg-literal " ")) + '("gradetable" + [ TeX-arg-eval completing-read + (TeX-argument-prompt optional nil "Orientation") + '("v" "h") ] + [ TeX-arg-eval completing-read + (TeX-argument-prompt optional nil "Table index") + '("questions" "pages") ] ) + '("bonusgradetable" + [ TeX-arg-eval completing-read + (TeX-argument-prompt optional nil "Orientation") + '("v" "h") ] + [ TeX-arg-eval completing-read + (TeX-argument-prompt optional nil "Table index") + '("questions" "pages") ] ) + '("bonuspointtable" + [ TeX-arg-eval completing-read + (TeX-argument-prompt optional nil "Orientation") + '("v" "h") ] + [ TeX-arg-eval completing-read + (TeX-argument-prompt optional nil "Table index") + '("questions" "pages") ] ) + '("partialgradetable" + [ TeX-arg-eval completing-read + (TeX-argument-prompt optional nil "Orientation") + '("v" "h") ] + [ TeX-arg-eval completing-read + (TeX-argument-prompt optional nil "Table index") + '("questions" "pages") ] ) + '("partialbonusgradetable" + [ TeX-arg-eval completing-read + (TeX-argument-prompt optional nil "Orientation") + '("v" "h") ] + [ TeX-arg-eval completing-read + (TeX-argument-prompt optional nil "Table index") + '("questions" "pages") ] ) + '("partialbonuspointtable" + [ TeX-arg-eval completing-read + (TeX-argument-prompt optional nil "Orientation") + '("v" "h") ] + [ TeX-arg-eval completing-read + (TeX-argument-prompt optional nil "Table index") + '("questions" "pages") ] ) + '("pointtable" + [ TeX-arg-eval completing-read + (TeX-argument-prompt optional nil "Orientation") + '("v" "h") ] + [ TeX-arg-eval completing-read + (TeX-argument-prompt optional nil "Table index") + '("questions" "pages") ] ) + '("partialpointtable" + [ TeX-arg-eval completing-read + (TeX-argument-prompt optional nil "Orientation") + '("v" "h") ] + [ TeX-arg-eval completing-read + (TeX-argument-prompt optional nil "Table index") + '("questions" "pages") ] ) + + '("subsubpart" [ "Points" ] (TeX-arg-literal " ")) + '("question" ["Points"] (TeX-arg-literal " ")) + '("bonusquestion" ["Points"] (TeX-arg-literal " ")) + '("extrafootheight" [ TeX-arg-length "Extra height 1. page footer" ] + (TeX-arg-length "Extra height footers")) + '("titledquestion" "Title" ["Points"] LaTeX-exam-insert-label (TeX-arg-literal " ")) + '("ContinuedQuestion" 0) + '("CorrectChoice" 0) + '("CorrectChoiceEmphasis" 1) + '("IncompleteQuestion" 0) + '("SolutionEmphasis" 1) + '("addpoints" 0) + '("addquestionobject" 0) + '("answerclearance" 1) + '("answerline" ["Points"] (TeX-arg-literal " ")) + '("begingradingrange" 1) + '("bhpgword" 1) + '("bhpword" 1) + '("bhqword" 1) + '("bhsword" 1) + '("bhtword" 1) + '("bonuspart" 0) + '("bonuspointformat" 0) + '("bonuspointname" 1) + '("bonuspointpoints" 2) + '("bonuspointsinrange" 0) + '("bonuspointsofquestion" 1) + '("bonuspointsonpage" 0) + '("bonusqformat" 1) + '("bonussubpart" 0) + '("bonussubsubpart" 0) + '("bonustitledquestion" "Title" ["Points"] LaTeX-exam-insert-label (TeX-arg-literal " ")) + '("bonustotalformat" 0) + '("boxedpoints" 0) + '("bracketedpoints" 0) + '("bvpgword" 1) + '("bvpword" 1) + '("bvqword" 1) + '("bvsword" 1) + '("bvtword" 1) + '("cancelspace" 0) + '("cellwidth" 1) + '("cfoot" 1) + '("chbpword" 1) + '("chead" 1) + '("checkboxchar" 1) + '("checkboxeshook" 0) + '("checkedchar" 1) + '("choice" 0) + '("choicelabel" 0) + '("choiceshook" 0) + '("chpgword" 1) + '("chpword" 1) + '("chqword" 1) + '("chsword" 1) + '("chsword" 1) + '("correctchoice" 0) + '("correctchoiceemphasis" 1) + '("covercfoot" 3) + '("coverchead" 3) + '("coverextrafootheight" 3) + '("coverextraheadheight" 3) + '("coverfirstpagefooter" 3) + '("coverfirstpageheader" 3) + '("coverfooter" 3) + '("coverheader" 3) + '("coverlfoot" 3) + '("coverlhead" 3) + '("coverrfoot" 3) + '("coverrhead" 3) + '("coverrunningfooter" 3) + '("coverrunningheader" 3) + '("cvbpword" 1) + '("cvpgword" 1) + '("cvpword" 1) + '("cvqword" 1) + '("cvsword" 1) + '("cvtword" 1) + '("dottedlinefillheight" 1) + '("droppoints" 0) + '("droptotalbonuspoints" 0) + '("droptotalpoints" 0) + '("endgradingrange" 1) + '("extraheadheight" 1) + '("extrawidth" 1) + '("fillwithdottedlines" 1) + '("fillwithdottedlines" 1) + '("fillwithlines" 1) + '("fillwithlines" 1) + '("firstpagefooter" 1) + '("firstpagefootrule" 0) + '("firstpageheader" 3) + '("firstpageheadrule" 0) + '("footer" 3) + '("footrule" 0) + '("framedsolutions" 0) + '("fullwidth" 1) + '("gradetablestretch" 0) + '("greeknum" 0) + '("half" 0) + '("hpgword" 1) + '("hpword" 1) + '("hqword" 1) + '("hsword" 1) + '("htword" 1) + '("ifcontinuation" 0) + '("ifincomplete" 0) + '("iflastpage" 0) + '("ifprintanswers" 0) + '("lfoot" 1) + '("lhead" 1) + '("linefillheight" 1) + '("linefillthickness" 1) + '("makeemptybox" 1) + '("marginbonuspointname" 1) + '("marginpointname" 1) + '("marginpointsep" 1) + '("marksnotpoints" 0) + '("noaddpoints" 0) + '("nobonusqformat" 1) + '("noboxedpoints" 0) + '("nobracketedpoints" 0) + '("nocancelspace" 0) + '("nomorequestions" 0) + '("nopointsinmargin" 0) + '("nopointsinrightmargin" 0) + '("noprintanswers" 0) + '("noqformat" 1) + '("numbonuspoints" 0) + '("numcoverpages" 0) + '("numpages" 0) + '("numparts" 0) + '("numpoints" 0) + '("numquestions" 0) + '("numsubparts" 0) + '("numsubsubparts" 0) + '("oddeven" 2) + '("partlabel" 0) + '("partopsep" 0) + '("partshook" 0) + '("pointname" 1) + '("pointpoints" 2) + '("pointsdroppedatright" 0) + '("pointsinmargin" 0) + '("pointsinrightmargin" 0) + '("pointsofquestion" 1) + '("pointsonpage" 1) + '("printanswers" 0) + '("qformat" 1) + '("questionlabel" 0) + '("questionshook" 0) + '("rfoot" 1) + '("rhead" 1) + '("rightpointsmargin" 0) + '("roman" 0) + '("romannumeral" 0) + '("runningfooter" 3) + '("runningfootrule" 0) + '("runningheader" 3) + '("runningheadrule" 0) + '("settabletotalbonuspoints" 1) + '("settabletotalpoints" 1) + '("shadedsolutions" 0) + '("solutiontitle" 0) + '("subpartlabel" 0) + '("subpartshook" 0) + '("subsubpartlabel" 0) + '("subsubpartshook" 0) + '("thechoice" 0) + '("themarginpoints" 0) + '("thepartno" 0) + '("thequestion" 0) + '("thequestiontitle" 0) + '("thesubpart" 0) + '("thesubsubpart" 0) + '("totalbonuspoints" 0) + '("totalformat" 0) + '("totalnumpages" 0) + '("totalpoints" 0) + '("unframedsolutions" 0) + '("uplevel" 1) + '("usehorizontalhalf" 0) + '("useslantedhalf" 0) + '("vpgword" 1) + '("vpword" 1) + '("vqword" 1) + '("vsword" 1) + '("vtword" 1) + '("thepoints" 0) + ;; ... more stuff here + ) + (LaTeX-add-lengths "answerlinelength" "answerskip") + + ;; Fontification + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("question" "[") + ("titledquestion" "{[") + ("subpart" "[") + ("subsubpart" "[")) + 'textual))) + LaTeX-dialect) + +;;; exam.el ends here diff -Nru auctex-11.88/style/expl3.el auctex-11.90/style/expl3.el --- auctex-11.88/style/expl3.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/expl3.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,48 @@ +;;; expl3.el --- AUCTeX style for `expl3.sty' + +;; Copyright (C) 2015 Free Software Foundation, Inc. + +;; Author: Tassilo Horn +;; Maintainer: auctex-devel@gnu.org +;; Created: 2015-02-22 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for `expl3.sty'. + +;;; Code: + +(defvar LaTeX-expl3-syntax-table + (let ((st (copy-syntax-table LaTeX-mode-syntax-table))) + ;; Make _ and : symbol chars + (modify-syntax-entry ?\_ "_" st) + (modify-syntax-entry ?\: "_" st) + st)) + +(TeX-add-style-hook + "expl3" + (lambda () + (set-syntax-table LaTeX-expl3-syntax-table) + (when (and (fboundp 'font-latex-update-font-lock) + (eq TeX-install-font-lock 'font-latex-setup)) + ;; Tell font-lock about the update. + (font-latex-update-font-lock t))) + LaTeX-dialect) diff -Nru auctex-11.88/style/fancyhdr.el auctex-11.90/style/fancyhdr.el --- auctex-11.88/style/fancyhdr.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/fancyhdr.el 2017-01-10 21:35:28.000000000 +0000 @@ -63,7 +63,8 @@ (LaTeX-add-pagestyles "fancy" "fancyplain") ;; Fontification - (when (and (featurep 'font-latex) + (when (and (fboundp 'font-latex-add-keywords) + (fboundp 'font-latex-update-font-lock) (eq TeX-install-font-lock 'font-latex-setup)) (font-latex-add-keywords '(("fancyhead" "[{") ("fancyfoot" "[{") @@ -81,8 +82,7 @@ ("plainheadrulewidth" "") ("plainfootrulewidth" "")) 'variable) ;; Tell font-lock about the update. - (setq font-lock-set-defaults nil) - (font-lock-set-defaults))) + (font-latex-update-font-lock))) LaTeX-dialect) ;; Because there can be many positions, `TeX-completing-read-multiple' is used diff -Nru auctex-11.88/style/fancyref.el auctex-11.90/style/fancyref.el --- auctex-11.88/style/fancyref.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/fancyref.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,6 +1,6 @@ ;;; fancyref.el --- AUCTeX style file with support for fancyref.sty -;; Copyright (C) 1999 Free Software Foundation, Inc. +;; Copyright (C) 1999, 2014, 2015 Free Software Foundation, Inc. ;; Author: Carsten Dominik ;; Maintainer: auctex-devel@gnu.org @@ -92,7 +92,12 @@ ;; Fontification (when (and (featurep 'font-latex) (eq TeX-install-font-lock 'font-latex-setup)) - (font-latex-add-keywords '(("fref" "[{") ("Fref" "[{")) 'reference))) + (font-latex-add-keywords '(("fref" "[{") ("Fref" "[{")) 'reference)) + + ;; Activate RefTeX reference style. + (and LaTeX-reftex-ref-style-auto-activate + (fboundp 'reftex-ref-style-activate) + (reftex-ref-style-activate "Fancyref"))) LaTeX-dialect) ;; The following list keeps a list of available format names @@ -106,7 +111,7 @@ (defun LaTeX-fancyref-formats () LaTeX-fancyref-formats) -(defun TeX-arg-fancyref-format (optional &optional prompt definition) +(defun TeX-arg-fancyref-format (optional &optional prompt _definition) "Prompt for a fancyref format name. If the user gives an unknown name, add it to the list." (let ((format (completing-read (TeX-argument-prompt optional prompt "Format") diff -Nru auctex-11.88/style/fancyvrb.el auctex-11.90/style/fancyvrb.el --- auctex-11.88/style/fancyvrb.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/fancyvrb.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,9 +1,9 @@ ;;; fancyvrb.el --- AUCTeX style for `fancyvrb.sty' version 2.8. -;; Copyright (C) 2013 Free Software Foundation, Inc. +;; Copyright (C) 2013, 2014, 2016 Free Software Foundation, Inc. ;; Maintainer: auctex-devel@gnu.org -;; Author: Mosè Giordano +;; Author: Mosè Giordano ;; Keywords: tex ;; This file is part of AUCTeX. @@ -159,27 +159,23 @@ "FancyVerbLine") ;; Filling - (set (make-local-variable 'LaTeX-verbatim-regexp) - (concat - LaTeX-verbatim-regexp - "\\|Verbatim\\|BVerbatim\\|LVerbatim\\|SaveVerbatim\\|VerbatimOut")) (add-to-list 'LaTeX-verbatim-environments-local "Verbatim") (add-to-list 'LaTeX-verbatim-environments-local "BVerbatim") (add-to-list 'LaTeX-verbatim-environments-local "LVerbatim") (add-to-list 'LaTeX-verbatim-environments-local "SaveVerbatim") (add-to-list 'LaTeX-verbatim-environments-local "VerbatimOut") (make-local-variable 'LaTeX-indent-environment-list) - (add-to-list 'LaTeX-indent-environment-list '("Verbatim" current-indentation)) - (add-to-list 'LaTeX-indent-environment-list '("BVerbatim" current-indentation)) - (add-to-list 'LaTeX-indent-environment-list '("LVerbatim" current-indentation)) - (add-to-list 'LaTeX-indent-environment-list '("SaveVerbatim" current-indentation)) - (add-to-list 'LaTeX-indent-environment-list '("VerbatimOut" current-indentation)) + (add-to-list 'LaTeX-indent-environment-list '("Verbatim" current-indentation) t) + (add-to-list 'LaTeX-indent-environment-list '("BVerbatim" current-indentation) t) + (add-to-list 'LaTeX-indent-environment-list '("LVerbatim" current-indentation) t) + (add-to-list 'LaTeX-indent-environment-list '("SaveVerbatim" current-indentation) t) + (add-to-list 'LaTeX-indent-environment-list '("VerbatimOut" current-indentation) t) (add-to-list 'LaTeX-verbatim-macros-with-delims-local "Verb") (add-to-list 'LaTeX-verbatim-macros-with-braces-local "Verb") ;; Fontification (when (and (fboundp 'font-latex-add-keywords) - (fboundp 'font-latex-set-syntactic-keywords) + (fboundp 'font-latex-update-font-lock) (eq TeX-install-font-lock 'font-latex-setup)) (font-latex-add-keywords '(("DefineVerbatimEnvironment" "{{{") ("CustomVerbatimEnvironment" "{{{") @@ -190,14 +186,11 @@ ("LVerbatimInput" "[{")) 'reference) (font-latex-add-keywords '(("Verb" "[")) ; The second argument should - ; actually be verbatim. + ; actually be verbatim. 'textual) (font-latex-add-keywords '(("fvset" "{")) 'variable) - ;; For syntactic fontification, e.g. verbatim constructs. - (font-latex-set-syntactic-keywords) ;; Tell font-lock about the update. - (setq font-lock-set-defaults nil) - (font-lock-set-defaults))) + (font-latex-update-font-lock t))) LaTeX-dialect) (defvar LaTeX-fancyvrb-package-options nil diff -Nru auctex-11.88/style/fbb.el auctex-11.90/style/fbb.el --- auctex-11.88/style/fbb.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/fbb.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,81 @@ +;;; fbb.el --- AUCTeX style for `fbb.sty' (v1.07) + +;; Copyright (C) 2014, 2015 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: auctex-devel@gnu.org +;; Created: 2014-11-19 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for `fbb.sty' (v1.07) from 2015/04/06. +;; `fbb.sty' is part of TeXLive. + +;;; Code: + +(TeX-add-style-hook + "fbb" + (lambda () + + ;; Run style hook for various packages loaded by fbb + (TeX-run-style-hooks "textcomp" "fontaxes") + + ;; New symbols + (TeX-add-symbols + + ;; Only preamble command + '("useosf" 0) + + ;; Text commands + '("lfstyle" -1) ; lf declaration + '("tlfstyle" -1) ; tlf declaration + '("osfstyle" -1) ; osf declaration + '("tosfstyle" -1) ; tosf declaration + '("sufigures" -1) ; superior figures declaration + '("textlf" t) ; proportional lining figures + '("texttlf" t) ; tabular lining figures + '("textosf" t) ; proportional oldstyle figures + '("texttosf" t) ; tabular oldstyle figures + '("textsu" t)) ; superior figures + + ;; Fontification + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("textlf" "{") + ("texttlf" "{") + ("textosf" "{") + ("texttosf" "{") + ("textsu" "{")) + 'type-command) + (font-latex-add-keywords '(("lfstyle" "") + ("tlfstyle" "") + ("osfstyle" "") + ("tosfstyle" "") + ("sufigures" "")) + 'type-declaration))) + LaTeX-dialect) + +(defvar LaTeX-fbb-package-options + '("lining" "osf" "oldstyle" "tabular" "p" "proportional" + "scale" "scaled" "scosf" "sups") + "Package options for the fbb package.") + +;;; fbb.el ends here diff -Nru auctex-11.88/style/filecontents.el auctex-11.90/style/filecontents.el --- auctex-11.88/style/filecontents.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/filecontents.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,6 +1,6 @@ ;;; filecontents.el --- AUCTeX style for `filecontents.sty' -;; Copyright (C) 2013 Free Software Foundation, Inc. +;; Copyright (C) 2013--2016 Free Software Foundation, Inc. ;; Author: Mads Jensen ;; Maintainer: auctex-devel@gnu.org @@ -38,14 +38,20 @@ (lambda () (LaTeX-add-environments '("filecontents" LaTeX-env-filecontents) - '("filecontents*" LaTeX-env-filecontents))) + '("filecontents*" LaTeX-env-filecontents)) + + (make-local-variable 'LaTeX-indent-environment-list) + (add-to-list 'LaTeX-indent-environment-list + '("filecontents" current-indentation) t) + (add-to-list 'LaTeX-indent-environment-list + '("filecontents*" current-indentation) t)) LaTeX-dialect) (defun LaTeX-env-filecontents (environment) "Insert ENVIRONMENT with filename for contents." (LaTeX-insert-environment environment (concat TeX-grop - (read-string "File: ") + (TeX-read-string "File: ") TeX-grcl)) (delete-horizontal-space)) diff -Nru auctex-11.88/style/FiraMono.el auctex-11.90/style/FiraMono.el --- auctex-11.88/style/FiraMono.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/FiraMono.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,70 @@ +;;; FiraMono.el --- AUCTeX style for `FiraMono.sty' (v2016/02/13) + +;; Copyright (C) 2016 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: auctex-devel@gnu.org +;; Created: 2016-11-11 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for `FiraMono.sty' (v2016/02/13). +;; `FiraMono.sty' is part of TeXLive. + +;;; Code: + +(TeX-add-style-hook + "FiraMono" + (lambda () + + ;; `textcomp' is always loaded: + (TeX-run-style-hooks "textcomp") + + ;; If package option `type1' is given, load `fontaxes': + (when (LaTeX-provided-package-options-member "FiraMono" "type1") + (TeX-run-style-hooks "fontaxes")) + + ;; Macros: + (TeX-add-symbols + '("sufigures" -1) + '("firamonooldstyle" -1) + '("firamonolining" -1) + '("firamonomedium" -1)) + + ;; Fontification + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("sufigures" "") + ("firamonooldstyle" "") + ("firamonolining" "") + ("firamonomedium" "")) + 'type-declaration))) + LaTeX-dialect) + +(defvar LaTeX-FiraMono-package-options '("scaled" "scale" + "type1" + "lining" "lf" + "oldstyle" "osf" + "nomap" + "medium" "mb") + "Package options for the FiraMono package.") + +;;; FiraMono.el ends here diff -Nru auctex-11.88/style/FiraSans.el auctex-11.90/style/FiraSans.el --- auctex-11.88/style/FiraSans.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/FiraSans.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,102 @@ +;;; FiraSans.el --- AUCTeX style for `FiraSans.sty' (v2016/11/20) + +;; Copyright (C) 2016 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: auctex-devel@gnu.org +;; Created: 2016-11-11 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for `FiraSans.sty' (v2016/11/20). +;; `FiraSans.sty' is part of TeXLive. + +;;; Code: + +(TeX-add-style-hook + "FiraSans" + (lambda () + + ;; `textcomp' is always loaded: + (TeX-run-style-hooks "textcomp") + + ;; If package option `type1' is given, load `fontaxes': + (when (LaTeX-provided-package-options-member "FiraSans" "type1") + (TeX-run-style-hooks "fontaxes")) + + ;; Macros: + (TeX-add-symbols + '("sufigures" -1) + '("firaoldstyle" -1) + '("firalining" -1) + '("firatabular" -1) + '("firaproportional" -1) + '("firathin" -1) + '("firalight" -1) + '("firaextralight" -1) + '("firaultralight" -1) + '("firamedium" -1) + '("firabook" -1) + '("firasemibold" -1) + '("firaextrabold" -1) + '("firaheavy" -1)) + + ;; Fontification + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("sufigures" "") + ("firaoldstyle" "") + ("firalining" "") + ("firatabular" "") + ("firaproportional" "") + ("firathin" "") + ("firalight" "") + ("firaextralight" "") + ("firaultralight" "") + ("firamedium" "") + ("firabook" "") + ("firasemibold" "") + ("firaextrabold" "") + ("firaheavy" "")) + 'type-declaration))) + LaTeX-dialect) + +(defvar LaTeX-FiraSans-package-options + '("scaled" "scale" + "type1" + "lining" "lf" + "oldstyle" "osf" + "tabular" "t" + "proportional" "p" + "book" + "medium" "mb" + "semibold" "sb" + "light" "l" + "extralight" + "ultralight" + "thin" + "extrabold" + "heavy" + "default" + "sfdefault") + "Package options for the FiraSans package.") + +;;; FiraSans.el ends here diff -Nru auctex-11.88/style/foils.el auctex-11.90/style/foils.el --- auctex-11.88/style/foils.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/foils.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,5 +1,26 @@ ;;; foils.el - Special code for FoilTeX. +;; Copyright (C) 1994-2014 Free Software Foundation, Inc. + +;; Author: Per Abrahamsen +;; Maintainer: auctex-devel@gnu.org +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by the +;; Free Software Foundation; either version 3, or (at your option) any +;; later version. + +;; AUCTeX is distributed in the hope that it will be useful, but WITHOUT +;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +;; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +;; for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX. If not, see . + ;;; Code: (require 'timezone) @@ -20,7 +41,7 @@ (year (string-to-number (aref date 0))) (month (string-to-number (aref date 1))) (day (string-to-number (aref date 2))) - (title (read-string "Title: "))) + (title (TeX-read-string "Title: "))) (save-excursion (goto-char (point-max)) (re-search-backward ".begin.document.") diff -Nru auctex-11.88/style/fontaxes.el auctex-11.90/style/fontaxes.el --- auctex-11.88/style/fontaxes.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/fontaxes.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,114 @@ +;;; fontaxes.el --- AUCTeX style for `fontaxes.sty' version v1.0d + +;; Copyright (C) 2014 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: auctex-devel@gnu.org +;; Created: 2014-10-12 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for `fontaxes.sty' version v1.0d from +;; 2014/03/23. `fontaxes.sty' is part of TeXLive. + +;; Thanks to Mosè Giordano for his perceptive comments on +;; implementation of "figureversion". + +;;; Code: + +(TeX-add-style-hook + "fontaxes" + (lambda () + (TeX-add-symbols + ;; Various font shapes + '("swshape" -1) ; swash shape + '("sscshape" -1) ; spaced small caps + '("fontprimaryshape" t) + '("fontsecondaryshape" t) + '("swdefault" t) + '("sscdefault" t) + '("ulcdefault" t) + + ;; Figure versions + '("figureversion" + (TeX-arg-eval mapconcat 'identity + (TeX-completing-read-multiple + "Style, alignment: " + '(("text") ("osf") + ("lining") ("lf") + ("tabular") ("tab") + ("proportional") ("prop"))) ",")) + '("txfigures" -1) ; style: text figures (osf) + '("lnfigures" -1) ; style: lining figures + '("tbfigures" -1) ; alignment: tabular figures + '("prfigures" -1) ; alignment: proportional figures + '("fontfigurestyle" + (TeX-arg-eval completing-read "Style: " + '(("text") ("lining")))) + '("fontfigurealignment" + (TeX-arg-eval completing-read "Alignment: " + '(("tabular") ("proportional")))) + '("fontbasefamily" t) + + ;; Math versions + '("boldmath" -1) ; math weight + '("unboldmath" -1) ; + '("tabularmath" -1) ; math figure alignment + '("proportionalmath" -1) ; + '("mathweight" + (TeX-arg-eval completing-read "Math weight: " + '(("bold") ("normal")))) + '("mathfigurealignment" + (TeX-arg-eval completing-read "Math figure alignment: " + '(("tabular") ("proportional")))) + + ;; Additional commands + '("textsw" t) + '("textssc" t) + '("textulc" t) + '("textfigures" t) + '("liningfigures" t) + '("tabularfigures" t) + '("proportionalfigures" t)) + + ;; Fontification + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("textfigures" "{") + ("liningfigures" "{") + ("tabularfigures" "{") + ("proportionalfigures" "{")) + 'type-command) + (font-latex-add-keywords '(("textsw" "{") + ("textssc" "{") + ("textulc" "{")) + 'bold-command) + (font-latex-add-keywords '(("swshape" "") + ("sscshape" "")) + 'bold-declaration) + (font-latex-add-keywords '(("figureversion" "{")) + 'variable))) + LaTeX-dialect) + +(defvar LaTeX-fontaxes-package-options nil + "Package options for the fontaxes package.") + +;;; fontaxes.el ends here diff -Nru auctex-11.88/style/fontenc.el auctex-11.90/style/fontenc.el --- auctex-11.88/style/fontenc.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/fontenc.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,52 @@ +;;; fontenc.el --- AUCTeX style for `fontenc.sty' (v1.99g) + +;; Copyright (C) 2015 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: auctex-devel@gnu.org +;; Created: 2015-09-12 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for `fontenc.sty' (v1.99g) from 2005/09/27. +;; `fontenc.sty' is a standard LaTeX package and part of TeXLive. + +;;; Code: + +(defvar LaTeX-fontenc-package-options-list + '(;; 128+ glyph encodings (text) + "OT1" "OT2" "OT3" "OT4" "OT6" + ;; 256 glyph encodings (text) + "T1" "T2A" "T2B" "T2C" "T3" "T4" "T5" + ;; 256 glyph encodings (text extended) + "X2" + ;; Other encodings + "LY1" "LV1" "LGR") + "Package options for the fontenc package.") + +(defun LaTeX-fontenc-package-options () + "Prompt for package options for the fontenc package." + (mapconcat 'identity + (TeX-completing-read-multiple + "Encoding(s): " + LaTeX-fontenc-package-options-list) ",")) + +;;; fontenc.el ends here diff -Nru auctex-11.88/style/fontspec.el auctex-11.90/style/fontspec.el --- auctex-11.88/style/fontspec.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/fontspec.el 2017-01-10 21:35:28.000000000 +0000 @@ -166,6 +166,7 @@ (TeX-add-style-hook "fontspec" (lambda () + (TeX-check-engine-add-engines 'luatex 'xetex) (TeX-run-style-hooks "expl3" "xparse") (TeX-add-symbols ;; Font selection @@ -213,8 +214,8 @@ ("setmainfont" "[{") ("setsansfont" "[{") ("setmonofont" "[{") - ("newfontfamily" "{[{") - ("newfontface" "{[{") + ("newfontfamily" "\\[{") + ("newfontface" "\\[{") ("setmathrm" "[{") ("setmathsf" "[{") ("setmathtt" "[{") diff -Nru auctex-11.88/style/framed.el auctex-11.90/style/framed.el --- auctex-11.88/style/framed.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/framed.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,52 @@ +;;; framed.el --- AUCTeX style for `framed.sty' (v0.96) + +;; Copyright (C) 2016 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: auctex-devel@gnu.org +;; Created: 2016-06-26 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for `framed.sty' (v0.96) from 2011/10/22. +;; `framed.sty' is part of TeXLive. + +;;; Code: + +(TeX-add-style-hook + "framed" + (lambda () + ;; env's defined by framed.sty + (LaTeX-add-environments + '("framed") + '("oframed") + '("shaded") + '("shaded*") + '("snugshade") + '("snugshade*") + '("leftbar") + '("titled-frame" "Title"))) + LaTeX-dialect) + +(defvar LaTeX-framed-package-options nil + "Package options for the framed package.") + +;;; framed.el ends here diff -Nru auctex-11.88/style/geometry.el auctex-11.90/style/geometry.el --- auctex-11.88/style/geometry.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/geometry.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,151 @@ +;;; geometry.el --- AUCTeX style for `geometry.sty' (v5.6) + +;; Copyright (C) 2015 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: auctex-devel@gnu.org +;; Created: 2015-02-21 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for `geometry.sty' (v5.6) from 2010/09/12. +;; `geometry.sty' is part of TeXLive. + +;;; Code: + +(defvar LaTeX-geometry-always-key-val-options + '(("layout") ("layoutwidth") ("layoutheight") ("layoutsize") + ("layouthoffset") ("layoutvoffset") ("layoutoffset") ("hscale") + ("vscale") ("scale") ("width") ("totalwidth") ("height") ("totalheight") + ("total") ("textwidth") ("textheight") ("text") ("body") ("lines") + ("includehead") ("includefoot") ("includeheadfoot") ("includemp") + ("includeall") ("ignorehead") ("ignorefoot") ("ignoreheadfoot") + ("ignoremp") ("ignoreall") ("heightrounded") ("hdivide") ("vdivide") + ("divide") ("left") ("lmargin") ("inner") ("right") ("rmargin") + ("outer") ("top") ("tmargin") ("bottom") ("bmargin") ("hmargin") + ("vmargin") ("margin") ("hmarginratio") ("vmarginratio") ("marginratio") + ("ratio") ("hcentering") ("vcentering") ("centering") ("twoside") + ("asymmetric") ("bindingoffset") ("hdivide") ("vdivide") ("divide") + ("headheight") ("head") ("headsep") ("footskip") ("foot") ("nohead") + ("nofoot") ("noheadfoot") ("footnotesep") ("marginparwidth") ("marginpar") + ("marginparsep") ("nomarginpar") ("columnsep") ("hoffset") ("voffset") + ("offset") ("twocolumn") ("onecolumn") ("twoside") ("textwidth") + ("textheight") ("reversemp") ("reversemarginpar")) + "Key=value options always available for geometry macros.") + +(defvar LaTeX-geometry-preamble-key-val-options + '(("paper" ("a0paper" "a1paper" "a2paper" "a3paper" "a4paper" + "a5paper" "a6paper" "b0paper" "b1paper" "b2paper" + "b3paper" "b4paper" "b5paper" "b6paper" "c0paper" + "c1paper" "c2paper" "c3paper" "c4paper" "c5paper" + "c6paper" "b0j" "b1j" "b2j" "b3j" "b4j" "b5j" "b6j" + "ansiapaper" "ansibpaper" "ansicpaper" "ansidpaper" + "ansiepaper" "ansiapaper" "ansibpaper" "ansicpaper" + "ansidpaper" "ansiepaper")) + ("papername" ("a0paper" "a1paper" "a2paper" "a3paper" "a4paper" + "a5paper" "a6paper" "b0paper" "b1paper" "b2paper" + "b3paper" "b4paper" "b5paper" "b6paper" "c0paper" + "c1paper" "c2paper" "c3paper" "c4paper" "c5paper" + "c6paper" "b0j" "b1j" "b2j" "b3j" "b4j" "b5j" "b6j" + "ansiapaper" "ansibpaper" "ansicpaper" "ansidpaper" + "ansiepaper" "ansiapaper" "ansibpaper" "ansicpaper" + "ansidpaper" "ansiepaper")) + ("a0paper") ("a1paper") ("a2paper") ("a3paper") ("a4paper") ("a5paper") + ("a6paper") ("b0paper") ("b1paper") ("b2paper") ("b3paper") ("b4paper") + ("b5paper") ("b6paper") ("c0paper") ("c1paper") ("c2paper") ("c3paper") + ("c4paper") ("c5paper") ("c6paper") ("b0j") ("b1j") ("b2j") ("b3j") + ("b4j") ("b5j") ("b6j") ("ansiapaper") ("ansibpaper") ("ansicpaper") + ("ansidpaper") ("ansiepaper") ("ansiapaper") ("ansibpaper") ("ansicpaper") + ("ansidpaper") ("ansiepaper") ("screen") ("paperwidth") ("paperheight") + ("papersize") ("landscape") ("portrait") + ("driver" ("dvips" "dvipdfm" "pdftex" "vtex" "xetex" "auto" "none")) + ("dvips") ("dvipdfm") ("pdftex") ("xetex") ("vtex") ("verbose") + ("reset") ("mag") ("truedimen") ("pass") ("showframe") ("showcrop")) + "Key=value options allowed only in the preamble for geometry macros.") + + +;; Needed for auto-parsing. +(require 'tex) + +;; Setup for \savegeometry: +(TeX-auto-add-type "geometry-savegeometry" "LaTeX" "geometry-savegeometries") + +(defvar LaTeX-geometry-savegeometry-regexp + '("\\\\savegeometry{\\([^}]+\\)}" + 1 LaTeX-auto-geometry-savegeometry) + "Matches the argument of `\\savegeometry' from `geometry' +package.") + +(defun LaTeX-geometry-auto-prepare () + "Clear `LaTeX-auto-geometry-savegeometry' before parsing." + (setq LaTeX-auto-geometry-savegeometry nil)) + +(add-hook 'TeX-auto-prepare-hook #'LaTeX-geometry-auto-prepare t) +(add-hook 'TeX-update-style-hook #'TeX-auto-parse t) + +(TeX-add-style-hook + "geometry" + (lambda () + + ;; Add geometry to the parser. + (TeX-auto-add-regexp LaTeX-geometry-savegeometry-regexp) + + ;; geometry commands: + (TeX-add-symbols + '("geometry" + (TeX-arg-eval TeX-read-key-val nil + (append LaTeX-geometry-preamble-key-val-options + LaTeX-geometry-always-key-val-options))) + '("newgeometry" + (TeX-arg-key-val LaTeX-geometry-always-key-val-options)) + + '("restoregeometry" 0) + + '("savegeometry" + (TeX-arg-eval + (lambda () + (let ((name (TeX-read-string "Name: "))) + (LaTeX-add-geometry-savegeometries name) + (format "%s" name))))) + + '("loadgeometry" + (TeX-arg-eval + (lambda () + (completing-read "Name: " + (LaTeX-geometry-savegeometry-list)))))) + + ;; Fontification + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("geometry" "{") + ("newgeometry" "{") + ("savegeometry" "{") + ("loadgeometry" "{")) + 'function))) + LaTeX-dialect) + +(defun LaTeX-geometry-package-options () + "Prompt for package options for the geometry package." + (TeX-read-key-val t + (append LaTeX-geometry-preamble-key-val-options + LaTeX-geometry-always-key-val-options))) + +;;; geometry.el ends here diff -Nru auctex-11.88/style/gloss-italian.el auctex-11.90/style/gloss-italian.el --- auctex-11.88/style/gloss-italian.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/gloss-italian.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,68 @@ +;;; gloss-italian.el --- Italian support for polyglossia package. + +;; Copyright (C) 2015 Free Software Foundation, Inc. + +;; Maintainer: auctex-devel@gnu.org +;; Author: Mosè Giordano +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This is based on italian.el style file, adapted to polyglossia package. + +;;; Code: + +(defvar TeX-language-it-hook nil + "Hook run for Italian texts.") + +(TeX-add-style-hook + "gloss-italian" + (lambda () + (TeX-add-symbols + '("textitalian" [TeX-arg-key-val LaTeX-polyglossia-italian-options-list] t)) + (LaTeX-add-environments + '("italian" + LaTeX-env-args [TeX-arg-key-val LaTeX-polyglossia-italian-options-list])) + + (when (or (LaTeX-polyglossia-lang-option-member "italian" "babelshorthands=true") + (LaTeX-polyglossia-lang-option-member "italian" "babelshorthands")) + (unless (eq (car TeX-quote-language) 'override) + (let ((open-quote (if (and (boundp 'LaTeX-italian-open-quote) + LaTeX-italian-open-quote) + LaTeX-italian-open-quote + "\"<")) + (close-quote (if (and (boundp 'LaTeX-italian-close-quote) + LaTeX-italian-close-quote) + LaTeX-italian-close-quote + "\">"))) + (setq TeX-quote-language + `("italian" ,open-quote ,close-quote ,TeX-quote-after-quote)))) + + ;; Fontification of quotation marks. + (when (fboundp 'font-latex-add-quotes) + (font-latex-add-quotes '("\"<" "\">" french)))) + (run-hooks 'TeX-language-it-hook)) + LaTeX-dialect) + +(defvar LaTeX-polyglossia-italian-options-list + '(("babelshorthands" ("true" "false"))) + "Italian language options for the polyglossia package.") + +;;; gloss-italian.el ends here diff -Nru auctex-11.88/style/graphics.el auctex-11.90/style/graphics.el --- auctex-11.88/style/graphics.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/graphics.el 2017-01-10 21:35:28.000000000 +0000 @@ -5,7 +5,8 @@ (TeX-add-style-hook "graphics" (function (lambda () - (TeX-run-style-hooks "graphicx"))) + (TeX-run-style-hooks "graphicx") + (setq LaTeX-graphics-package-options LaTeX-graphicx-package-options))) LaTeX-dialect) ;;; graphics.el ends here. diff -Nru auctex-11.88/style/graphicx.el auctex-11.90/style/graphicx.el --- auctex-11.88/style/graphicx.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/graphicx.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,6 +1,6 @@ ;;; graphicx.el --- AUCTeX style file for graphicx.sty -;; Copyright (C) 2000, 2004, 2005 by Free Software Foundation, Inc. +;; Copyright (C) 2000, 2004, 2005, 2014, 2016 by Free Software Foundation, Inc. ;; Author: Ryuichi Arafune ;; Created: 1999/3/20 @@ -32,41 +32,123 @@ ;;; Code: -(TeX-add-style-hook - "graphicx" - (lambda () - (TeX-add-symbols - '("reflectbox" "Argument") - '("resizebox" "Width" "Height" "Argument") - '("resizebox*" "Width" "Total height" "Argument") - '("rotatebox" [ "Options" ] "Angle" "Argument") - '("scalebox" "Horizontal scale" [ "Vertical scale" ] "Argument") - '("includegraphics" LaTeX-arg-includegraphics)) - ;; Fontification - (when (and (featurep 'font-latex) - (eq TeX-install-font-lock 'font-latex-setup)) - (font-latex-add-keywords '(("reflectbox" "{") - ("resizebox" "*{{{") - ("rotatebox" "[{{") - ("scalebox" "{[{")) - 'textual) - (font-latex-add-keywords '(("includegraphics" "*[[{")) 'reference))) - LaTeX-dialect) +(defvar LaTeX-graphicx-key-val-options + '(("bb") + ("bbllx") + ("bblly") + ("bburx") + ("bbury") + ("natheight") + ("natwidth") + ("viewport") + ("trim") + ("hiresbb" ("true" "false")) + ("angle") + ("origin") + ("width" ("\\textwidth" "\\columnwidth" "\\linewidth")) + ("height" ("\\textheight")) + ("totalheight" ("\\textheight")) + ("keepaspectratio" ("true" "false")) + ("scale") + ("clip" ("true" "false")) + ("draft" ("true" "false"))) + "Key=value options for graphicx macros.") + +(defvar LaTeX-includegraphics-dvips-extensions + '("eps" "mps" "EPS") + "List of extensions for image files supported by \"dvips\".") + +(defvar LaTeX-includegraphics-pdftex-extensions + '("png" "pdf" "jpe?g" "jbig2" "jb2" "mps" + "PNG" "PDF" "JPE?G" "JBIG2" "JB2") + "List of extensions for image files supported by \"pdftex\" and \"luatex\".") + +(defvar LaTeX-includegraphics-xetex-extensions + '("pdf" "eps" "mps" "ps" "png" "jpe?g" "jp2" "jpf" + "PDF" "EPS" "MPS" "PS" "PNG" "JPE?G" "JP2" "JPF" + "bmp" "pict" "psd" "mac" "tga" "gif" "tif" "tiff" + "BMP" "PICT" "PSD" "MAC" "TGA" "GIF" "TIF" "TIFF") + "List of extensions for image files supported by \"xetex\".") + +(defun LaTeX-arg-graphicx-includegraphics-key-val (optional) + "Insert key-val for optional argument of \\includegraphics macro. +If OPTIONAL is non-nil, insert argument in square brackets. +Temporarily remove \"space\" from `crm-local-completion-map' and +`minibuffer-local-completion-map' in order to be able to insert +spaces conveniently. + +If `TeX-engine' is set to symbol 'default (while +`TeX-PDF-from-DVI' is set to nil) or 'luatex and `TeX-PDF-mode' +is non-nil, add the key \"page\" to list of key-val's." + (let ((crm-local-completion-map + (remove (assoc 32 crm-local-completion-map) + crm-local-completion-map)) + (minibuffer-local-completion-map + (remove (assoc 32 minibuffer-local-completion-map) + minibuffer-local-completion-map))) + (TeX-argument-insert + (TeX-read-key-val optional + (if (and (or (and (eq TeX-engine 'default) + (not (TeX-PDF-from-DVI))) + (eq TeX-engine 'luatex)) + TeX-PDF-mode) + (append '(("page")) LaTeX-graphicx-key-val-options) + LaTeX-graphicx-key-val-options)) + optional))) (defun LaTeX-includegraphics-extensions (&optional list) "Return appropriate extensions for input files to \\includegraphics." - ;; FIXME: This function may check for latex/pdflatex later. - (concat "\\." - (mapconcat 'identity - (or list LaTeX-includegraphics-extensions) - "$\\|\\.") - "$")) + (let* ((temp (copy-sequence LaTeX-includegraphics-extensions)) + (LaTeX-includegraphics-extensions + (cond (;; 'default TeX-engine: + (if (and (eq TeX-engine 'default) + ;; we want to produce a pdf + (if TeX-PDF-mode + ;; Return t if default compiler produces PDF, + ;; nil for "Dvips" or "Dvipdfmx" + (not (TeX-PDF-from-DVI)) + ;; t if pdftex is used in dvi-mode + TeX-DVI-via-PDFTeX)) + ;; We're using pdflatex in pdf-mode + (delete-dups + (append LaTeX-includegraphics-pdftex-extensions + LaTeX-includegraphics-extensions)) + ;; We're generating a .dvi to process with dvips or dvipdfmx + (progn + (dolist (x '("jpe?g" "pdf" "png")) + (setq temp (remove x temp))) + (delete-dups + (append LaTeX-includegraphics-dvips-extensions + temp))))) + ;; Running luatex in pdf or dvi-mode: + ((eq TeX-engine 'luatex) + (if TeX-PDF-mode + (delete-dups + (append LaTeX-includegraphics-pdftex-extensions + LaTeX-includegraphics-extensions)) + (progn + (dolist (x '("jpe?g" "pdf" "png")) + (setq temp (remove x temp))) + (delete-dups + (append LaTeX-includegraphics-dvips-extensions + temp))))) + ;; Running xetex in any mode: + ((eq TeX-engine 'xetex) + (delete-dups (append LaTeX-includegraphics-xetex-extensions + LaTeX-includegraphics-extensions))) + ;; For anything else + (t + LaTeX-includegraphics-extensions)))) + (concat "\\." + (mapconcat 'identity + (or list LaTeX-includegraphics-extensions) + "$\\|\\.") + "$"))) (defun LaTeX-includegraphics-read-file-TeX () "Read image file for \\includegraphics. Offers all graphic files found in the TeX search path. See `LaTeX-includegraphics-read-file' for more." - ;; Drop latex/pdflatex differences for now. Might be (re-)included later. (completing-read "Image file: " (TeX-delete-dups-by-car @@ -88,198 +170,12 @@ ;; argument (Emacs 21.3: five args; XEmacs 21.4.15: sixth is HISTORY). (lambda (fname) (or (file-directory-p fname) - (string-match (LaTeX-includegraphics-extensions) fname)))) + (string-match (LaTeX-includegraphics-extensions) fname)))) (TeX-master-directory))) -(defun LaTeX-arg-includegraphics (prefix) - "Ask for mandantory and optional arguments for the \\includegraphics command. - -The extent of the optional arguments is determined by the prefix argument and -`LaTeX-includegraphics-options-alist'." - (let* ((maybe-left-brace "[") - (maybe-comma "") - show-hint - (image-file (funcall LaTeX-includegraphics-read-file)) - (incl-opts - (cond - ((numberp - (if (listp current-prefix-arg) - (setq current-prefix-arg (car current-prefix-arg)) - current-prefix-arg)) - (cdr - (assq current-prefix-arg LaTeX-includegraphics-options-alist))) - ;; If no prefix is given, use `0' and tell the user about the - ;; prefix. - ((eq current-prefix-arg nil) - (setq show-hint t) - (cdr (assq 0 LaTeX-includegraphics-options-alist))) - (t - (cdr (assq 0 LaTeX-includegraphics-options-alist))))) - ;; Order the optional aruments like in the tables in epslatex.ps, - ;; page 14. But collect y-or-n options at the end, so that the use - ;; can skip some options by typing `RET RET ... RET n n n ... n' - ;; - ;; Options from Table 1 (epslatex.ps, page 14): - (totalheight - (TeX-arg-maybe - 'totalheight incl-opts - '(read-string - (concat "Total Height (" TeX-default-unit-for-image "): ")))) - (height - (TeX-arg-maybe - 'height incl-opts - ;; Either totalheight or height make sense: - '(when (zerop (length totalheight)) - (read-string - (concat "Figure height (" TeX-default-unit-for-image "): "))))) - (width - (TeX-arg-maybe - 'width incl-opts - '(read-string - (concat "Figure width (" TeX-default-unit-for-image "): ")))) - (scale - (TeX-arg-maybe - 'angle incl-opts - ;; If size is already specified, don't ask for scale: - '(when (zerop (+ (length totalheight) - (length height) - (length width))) - (read-string "Scale: ")))) - (angle - (TeX-arg-maybe - 'angle incl-opts - '(read-string "Rotation angle: "))) - (origin - (TeX-arg-maybe - 'origin incl-opts - '(read-string - (concat - "Origin (any combination of `lcr' (horizontal) " - "and `tcbB' (vertical)): ")))) - (page ;; Not in any table; Only for PDF. - (TeX-arg-maybe - 'page incl-opts - '(read-string "Page: "))) - (bb - (TeX-arg-maybe - 'bb incl-opts - '(y-or-n-p "Set Bounding Box? "))) - ;; Table 2: - (viewport - (TeX-arg-maybe - 'viewport incl-opts - '(y-or-n-p "Set viewport? "))) - (trim - (TeX-arg-maybe - 'trim incl-opts - '(and (not viewport) - (y-or-n-p "Set trim? ")))) - ;; Table 3: - (clip - (TeX-arg-maybe - 'clip incl-opts - ;; If viewport, we also use clip. - '(or viewport - (y-or-n-p "Clipping figure? ")))) - (keepaspectratio - (TeX-arg-maybe - 'keepaspectratio incl-opts - ;; If we have width and [total]height... - '(or (and (not (zerop (length width))) - (or (not (zerop (length totalheight))) - (not (zerop (length height))))) - (y-or-n-p "Keep Aspectratio? ")))) - ;; Used for bb, trim, viewport, ...: - llx lly urx ury) - ;; Now insert stuff... - (when (not (zerop (length totalheight))) - (insert - maybe-left-brace maybe-comma "totalheight=" - (car (TeX-string-divide-number-unit totalheight)) - (if (zerop - (length - (car (cdr (TeX-string-divide-number-unit totalheight))))) - TeX-default-unit-for-image - (car (cdr (TeX-string-divide-number-unit totalheight))))) - (setq maybe-comma ",") - (setq maybe-left-brace "")) - (when (not (zerop (length height))) - (insert maybe-left-brace maybe-comma - "height=" (car (TeX-string-divide-number-unit height)) - (if (zerop - (length - (car (cdr (TeX-string-divide-number-unit height))))) - TeX-default-unit-for-image - (car (cdr (TeX-string-divide-number-unit height))))) - (setq maybe-comma ",") - (setq maybe-left-brace "")) - (when (not (zerop (length width))) - (insert maybe-left-brace maybe-comma - "width=" (car (TeX-string-divide-number-unit width)) - (if (zerop - (length - (car (cdr (TeX-string-divide-number-unit width))))) - TeX-default-unit-for-image - (car (cdr (TeX-string-divide-number-unit width))))) - (setq maybe-comma ",") - (setq maybe-left-brace "")) - (when (not (zerop (length scale))) - (insert maybe-left-brace maybe-comma "scale=" scale) - (setq maybe-comma ",") - (setq maybe-left-brace "")) - (when (not (zerop (length angle))) - (insert maybe-left-brace maybe-comma "angle=" angle) - (setq maybe-comma ",") - (setq maybe-left-brace "")) - (when (not (zerop (length origin))) - (insert maybe-left-brace maybe-comma "origin=" origin) - (setq maybe-comma ",") - (setq maybe-left-brace "")) - (when bb - (setq llx (read-string "Bounding Box lower left x: ")) - (setq lly (read-string "Bounding Box lower left y: ")) - (setq urx (read-string "Bounding Box upper right x: ")) - (setq ury (read-string "Bounding Box upper right y: ")) - (insert maybe-left-brace maybe-comma - "bb=" llx " " lly " " urx " " ury) - (setq maybe-comma ",") - (setq maybe-left-brace "")) - ;; - (when viewport - (setq llx (read-string "Viewport lower left x: ")) - (setq lly (read-string "Viewport lower left y: ")) - (setq urx (read-string "Viewport upper right x: ")) - (setq ury (read-string "Viewport upper right y: ")) - (insert maybe-left-brace maybe-comma - "viewport=" llx " " lly " " urx " " ury) - (setq maybe-comma ",") - (setq maybe-left-brace "")) - (when trim - (setq llx (read-string "Trim lower left x: ")) - (setq lly (read-string "Trim lower left y: ")) - (setq urx (read-string "Trim Upper right x: ")) - (setq ury (read-string "Trim Upper right y: ")) - (insert maybe-left-brace maybe-comma - "trim=" llx " " lly " " urx " " ury) - (setq maybe-comma ",") - (setq maybe-left-brace "")) - ;; - (when clip - (insert maybe-left-brace maybe-comma "clip") - (setq maybe-comma ",") - (setq maybe-left-brace "")) - (when keepaspectratio - (insert maybe-left-brace maybe-comma "keepaspectratio") - (setq maybe-comma ",") - (setq maybe-left-brace "")) - ;; - (when (not (zerop (length page))) - (insert maybe-left-brace maybe-comma "page=" page) - (setq maybe-comma ",") - (setq maybe-left-brace "")) - ;; - (if (zerop (length maybe-left-brace)) - (insert "]")) +(defun LaTeX-arg-includegraphics (_prefix) + "Ask for mandantory argument for the \\includegraphics command." + (let* ((image-file (funcall LaTeX-includegraphics-read-file))) (TeX-insert-braces 0) (insert (if LaTeX-includegraphics-strip-extension-flag @@ -291,13 +187,95 @@ nil t 1) (replace-match "")) (buffer-string)) - image-file)) - (when show-hint - (message - (concat - "Adding `C-u C-u' before the command asks for more optional arguments." - "\nSee `LaTeX-includegraphics-options-alist' for details.")) - (sit-for 3)) - t)) + image-file)))) + +(TeX-add-style-hook + "graphicx" + (lambda () + (TeX-add-symbols + '("reflectbox" "Argument") + + '("resizebox" + (TeX-arg-eval completing-read + (TeX-argument-prompt optional nil "Width") + (append '("\\width" "!") + (mapcar + (lambda (x) (concat TeX-esc (car x))) + (LaTeX-length-list)))) + (TeX-arg-eval completing-read + (TeX-argument-prompt optional nil "Height") + (append '("\\height" "\\totalheight" "\\depth" "!") + (mapcar + (lambda (x) (concat TeX-esc (car x))) + (LaTeX-length-list)))) + "Argument") + + '("resizebox*" + (TeX-arg-eval completing-read + (TeX-argument-prompt optional nil "Width") + (append '("\\width" "!") + (mapcar + (lambda (x) (concat TeX-esc (car x))) + (LaTeX-length-list)))) + (TeX-arg-eval completing-read + (TeX-argument-prompt optional nil "Height") + (append '("\\height" "\\totalheight" "\\depth" "!") + (mapcar + (lambda (x) (concat TeX-esc (car x))) + (LaTeX-length-list)))) + "Argument") + + '("rotatebox" (TeX-arg-conditional (member "graphics" (TeX-style-list)) + () + ([ TeX-arg-key-val (("x") ("y") ("origin") ("units")) ])) + "Angle" "Argument") + + '("scalebox" "Horizontal scale" [ "Vertical scale" ] "Argument") + + '("includegraphics" (TeX-arg-conditional (member "graphics" (TeX-style-list)) + (["llx,lly"] ["urx,ury"]) + ([ LaTeX-arg-graphicx-includegraphics-key-val ])) + LaTeX-arg-includegraphics) + + '("includegraphics*" (TeX-arg-conditional (member "graphics" (TeX-style-list)) + (["llx,lly"] ["urx,ury"]) + ([ LaTeX-arg-graphicx-includegraphics-key-val ])) + LaTeX-arg-includegraphics) + + '("graphicspath" t) + + '("DeclareGraphicsExtensions" t) + + '("DeclareGraphicsRule" 4)) + + ;; Fontification + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("reflectbox" "{") + ("resizebox" "*{{{") + ("rotatebox" "[{{") + ("scalebox" "{[{")) + 'textual) + (font-latex-add-keywords '(("includegraphics" "*[[{")) + 'reference) + (font-latex-add-keywords '(("graphicspath" "{") + ("DeclareGraphicsExtensions" "{") + ("DeclareGraphicsRule" "{{{{")) + 'function))) + LaTeX-dialect) + +(defvar LaTeX-graphicx-package-options + '("draft" "final" "debugshow" + "hiderotate" "hidescale" "hiresbb" + "setpagesize" "nosetpagesize" "demo" + "dvips" "xdvi" + "dvipdf" "dvipdfm" "dvipdfmx" + "xetex" "pdftex" "luatex" + "dvisvgm" "dvipsone" "dviwindo" + "emtex" "dviwin" "oztex" + "textures" "pctexps" "pctexwin" + "pctexhp" "pctex32" "truetex" + "tcidvi" "vtex") + "Package options for the graphicx package.") ;;; graphicx.el ends here diff -Nru auctex-11.88/style/harvard.el auctex-11.90/style/harvard.el --- auctex-11.88/style/harvard.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/harvard.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,6 +1,6 @@ ;;; harvard.el --- Support for Harvard Citation style package for AUCTeX. -;; Copyright (C) 1994, 1997, 2005 Free Software Foundation, Inc. +;; Copyright (C) 1994, 1997, 2005, 2012, 2014 Free Software Foundation, Inc. ;; Author: Berwin Turlach ;; Maintainer: auctex-devel@gnu.org @@ -25,89 +25,90 @@ ;;; Code: -(TeX-add-style-hook "harvard" - (function - (lambda () - - (LaTeX-add-environments - '("thebibliography" LaTeX-env-harvardbib ignore)) - - (TeX-add-symbols - "harvardand" - '("citeasnoun" - (TeX-arg-conditional TeX-arg-cite-note-p ([ "Note" ]) nil) - TeX-arg-cite) - '("possessivecite" - (TeX-arg-conditional TeX-arg-cite-note-p ([ "Note" ]) nil) - TeX-arg-cite) - '("citeaffixed" - (TeX-arg-conditional TeX-arg-cite-note-p ([ "Note" ]) nil) - TeX-arg-cite "Affix") - '("citeyear" - (TeX-arg-conditional TeX-arg-cite-note-p ([ "Note" ]) nil) - TeX-arg-cite) - '("citename" - (TeX-arg-conditional TeX-arg-cite-note-p ([ "Note" ]) nil) - TeX-arg-cite) - '("citationstyle" - (TeX-arg-eval completing-read "Citation style: " '(("agsm") ("dcu")))) - '("citationmode" - (TeX-arg-eval completing-read "Citation mode: " - '(("full") ("abbr") ("default")))) - '("harvardparenthesis" - (TeX-arg-eval completing-read "Harvardparenthesis: " - '(("round") ("curly") ("angle") ("square")))) - '("bibliographystyle" - (TeX-arg-eval - completing-read "Bibliography style: " - '(("agsm") ("apsr") ("dcu") ("jmr") ("jphysicsB") ("kluwer") ("nederlands") ("econometrica"))) - ignore) - '("harvarditem" [ "Short citation" ] - "Complete citation" "Year" TeX-arg-define-cite)) - - (setq TeX-complete-list - (append '(("\\\\citeasnoun\\[[^]\n\r\\%]*\\]{\\([^{}\n\r\\%,]*\\)" - 1 LaTeX-bibitem-list "}") - ("\\\\citeasnoun{\\([^{}\n\r\\%,]*\\)" 1 - LaTeX-bibitem-list "}") - ("\\\\possessivecite\\[[^]\n\r\\%]*\\]{\\([^{}\n\r\\%,]*\\)" - 1 LaTeX-bibitem-list "}") - ("\\\\possessivecite{\\([^{}\n\r\\%,]*\\)" 1 - LaTeX-bibitem-list "}") - ("\\\\citename\\[[^]\n\r\\%]*\\]{\\([^{}\n\r\\%,]*\\)" - 1 LaTeX-bibitem-list "}") - ("\\\\citename{\\([^{}\n\r\\%,]*\\)" 1 - LaTeX-bibitem-list "}") - ("\\\\citeaffixed\\[[^]\n\r\\%]*\\]{\\([^{}\n\r\\%,]*\\)" - 1 LaTeX-bibitem-list "}") - ("\\\\citeaffixed{\\([^{}\n\r\\%,]*\\)" 1 - LaTeX-bibitem-list "}") - ("\\\\citeaffixed{\\([^{}\n\r\\%]*,\\)\\([^{}\n\r\\%,]*\\)" - 2 LaTeX-bibitem-list) - ("\\\\citeyear\\[[^]\n\r\\%]*\\]{\\([^{}\n\r\\%,]*\\)" - 1 LaTeX-bibitem-list "}") - ("\\\\citeyear{\\([^{}\n\r\\%,]*\\)" 1 - LaTeX-bibitem-list "}") - ("\\\\citeyear{\\([^{}\n\r\\%]*,\\)\\([^{}\n\r\\%,]*\\)" - 2 LaTeX-bibitem-list)) - TeX-complete-list)) - - (setq LaTeX-auto-regexp-list - (append '(("\\\\harvarditem{\\([a-zA-Z][^%#'()={}]*\\)}{\\([0-9][^, %\"#'()={}]*\\)}{\\([a-zA-Z][^, %\"#'()={}]*\\)}" 3 LaTeX-auto-bibitem) - ("\\\\harvarditem\\[[^][\n\r]+\\]{\\([a-zA-Z][^%#'()={}]*\\)}{\\([0-9][^, %\"#'()={}]*\\)}{\\([a-zA-Z][^, %\"#'()={}]*\\)}" 3 LaTeX-auto-bibitem) - ) - LaTeX-auto-regexp-list)) - - (setq LaTeX-item-list - (cons '("thebibliography" . LaTeX-item-harvardbib) - LaTeX-item-list)) - - ;; Tell RefTeX - (when (fboundp 'reftex-set-cite-format) - (reftex-set-cite-format 'harvard)))) +(TeX-add-style-hook + "harvard" + #'(lambda () + + (LaTeX-add-environments + '("thebibliography" LaTeX-env-harvardbib ignore)) + + (TeX-add-symbols + "harvardand" + '("citeasnoun" + (TeX-arg-conditional TeX-arg-cite-note-p ([ "Note" ]) nil) + TeX-arg-cite) + '("possessivecite" + (TeX-arg-conditional TeX-arg-cite-note-p ([ "Note" ]) nil) + TeX-arg-cite) + '("citeaffixed" + (TeX-arg-conditional TeX-arg-cite-note-p ([ "Note" ]) nil) + TeX-arg-cite "Affix") + '("citeyear" + (TeX-arg-conditional TeX-arg-cite-note-p ([ "Note" ]) nil) + TeX-arg-cite) + '("citename" + (TeX-arg-conditional TeX-arg-cite-note-p ([ "Note" ]) nil) + TeX-arg-cite) + '("citationstyle" + (TeX-arg-eval completing-read "Citation style: " '(("agsm") ("dcu")))) + '("citationmode" + (TeX-arg-eval completing-read "Citation mode: " + '(("full") ("abbr") ("default")))) + '("harvardparenthesis" + (TeX-arg-eval completing-read "Harvardparenthesis: " + '(("round") ("curly") ("angle") ("square")))) + '("bibliographystyle" + (TeX-arg-eval + completing-read "Bibliography style: " + '(("agsm") ("apsr") ("dcu") ("jmr") ("jphysicsB") ("kluwer") ("nederlands") ("econometrica"))) + ignore) + '("harvarditem" [ "Short citation" ] + "Complete citation" "Year" TeX-arg-define-cite)) + + (setq TeX-complete-list + (append '(("\\\\citeasnoun\\[[^]\n\r\\%]*\\]{\\([^{}\n\r\\%,]*\\)" + 1 LaTeX-bibitem-list "}") + ("\\\\citeasnoun{\\([^{}\n\r\\%,]*\\)" 1 + LaTeX-bibitem-list "}") + ("\\\\possessivecite\\[[^]\n\r\\%]*\\]{\\([^{}\n\r\\%,]*\\)" + 1 LaTeX-bibitem-list "}") + ("\\\\possessivecite{\\([^{}\n\r\\%,]*\\)" 1 + LaTeX-bibitem-list "}") + ("\\\\citename\\[[^]\n\r\\%]*\\]{\\([^{}\n\r\\%,]*\\)" + 1 LaTeX-bibitem-list "}") + ("\\\\citename{\\([^{}\n\r\\%,]*\\)" 1 + LaTeX-bibitem-list "}") + ("\\\\citeaffixed\\[[^]\n\r\\%]*\\]{\\([^{}\n\r\\%,]*\\)" + 1 LaTeX-bibitem-list "}") + ("\\\\citeaffixed{\\([^{}\n\r\\%,]*\\)" 1 + LaTeX-bibitem-list "}") + ("\\\\citeaffixed{\\([^{}\n\r\\%]*,\\)\\([^{}\n\r\\%,]*\\)" + 2 LaTeX-bibitem-list) + ("\\\\citeyear\\[[^]\n\r\\%]*\\]{\\([^{}\n\r\\%,]*\\)" + 1 LaTeX-bibitem-list "}") + ("\\\\citeyear{\\([^{}\n\r\\%,]*\\)" 1 + LaTeX-bibitem-list "}") + ("\\\\citeyear{\\([^{}\n\r\\%]*,\\)\\([^{}\n\r\\%,]*\\)" + 2 LaTeX-bibitem-list)) + TeX-complete-list)) + + (setq LaTeX-auto-regexp-list + (append '(("\\\\harvarditem{\\([a-zA-Z][^%#'()={}]*\\)}{\\([0-9][^, %\"#'()={}]*\\)}{\\([a-zA-Z][^, %\"#'()={}]*\\)}" 3 LaTeX-auto-bibitem) + ("\\\\harvarditem\\[[^][\n\r]+\\]{\\([a-zA-Z][^%#'()={}]*\\)}{\\([0-9][^, %\"#'()={}]*\\)}{\\([a-zA-Z][^, %\"#'()={}]*\\)}" 3 LaTeX-auto-bibitem) + ) + LaTeX-auto-regexp-list)) + + (setq LaTeX-item-list + (cons '("thebibliography" . LaTeX-item-harvardbib) + LaTeX-item-list)) + + ;; Tell RefTeX + (when (and LaTeX-reftex-cite-format-auto-activate + (fboundp 'reftex-set-cite-format)) + (reftex-set-cite-format 'harvard))) LaTeX-dialect) -(defun LaTeX-env-harvardbib (environment &optional ignore) +(defun LaTeX-env-harvardbib (environment &optional _ignore) "Insert ENVIRONMENT with label for harvarditem." (LaTeX-insert-environment environment (concat TeX-grop "xx" TeX-grcl)) diff -Nru auctex-11.88/style/hologo.el auctex-11.90/style/hologo.el --- auctex-11.88/style/hologo.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/hologo.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,233 @@ +;;; hologo.el --- AUCTeX style for `hologo.sty' (v1.10) + +;; Copyright (C) 2015 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: auctex-devel@gnu.org +;; Created: 2015-10-31 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for `hologo.sty' (v1.10) from 2012/04/26. +;; `hologo.sty' is part of TeXLive. + +;;; Code: + +(defvar LaTeX-hologo-logo-names + '("(La)TeX" + "AmSLaTeX" + "AmSTeX" + "biber" + "BibTeX" + "BibTeX8" + "ConTeXt" + "emTeX" + "eTeX" + "ExTeX" + "HanTheThanh" + "iniTeX" + "KOMAScript" + "La" + "LaTeX" + "LaTeX2e" + "LaTeX3" + "LaTeXe" + "LaTeXML" + "LaTeXTeX" + "LuaLaTeX" + "LuaTeX" + "LyX" + "METAFONT" + "MetaFun" + "METAPOST" + "MetaPost" + "MiKTeX" + "NTS" + "OzMF" + "OzMP" + "OzTeX" + "OzTtH" + "PCTeX" + "pdfTeX" + "pdfLaTeX" + "PiC" + "PiCTeX" + "plainTeX" + "SageTeX" + "SLiTeX" + "SliTeX" + "teTeX" + "TeX" + "TeX4ht" + "TTH" + "virTeX" + "VTeX" + "Xe" + "XeLaTeX" + "XeTeX") + "List of logos provided by \"hologo.sty\".") + +(defvar LaTeX-hologo-key-val-options-global + '(("break" ("true" "false")) + ("hyphenbreak" ("true" "false")) + ("spacebreak" ("true" "false")) + ("discretionarybreak" ("true" "false"))) + "Global key=value options for hologo macros.") + +(defvar LaTeX-hologo-key-val-options-local + '(("variant" ("sf" "sc" ; BibTeX + "lift" ; SliTeX + "narrow" "simple" ; SliTeX, ConTeXt + "space" "hyphen" "runtogether"))) ; plainTeX + "Local key=value options for hologo macros.") + +(TeX-add-style-hook + "hologo" + (lambda () + (TeX-add-symbols + + ;; Insert logo macros + '("hologo" (TeX-arg-eval completing-read + "Logo name: " LaTeX-hologo-logo-names)) + + '("Hologo" (TeX-arg-eval completing-read + "Logo name: " LaTeX-hologo-logo-names)) + + ;; Setup macros + '("hologoSetup" (TeX-arg-key-val LaTeX-hologo-key-val-options-global)) + + '("hologoLogoSetup" + (TeX-arg-eval + (lambda () + (let* ((logo (completing-read "Logo name: " LaTeX-hologo-logo-names)) + (keyval (TeX-read-key-val + nil + (cond ((string= logo "BibTeX") + (append '(("variant" ("sf" "sc"))) + LaTeX-hologo-key-val-options-global)) + ((string= logo "ConTeXt") + (append '(("variant" ("narrow" "simple"))) + LaTeX-hologo-key-val-options-global)) + ((string= logo "plainTeX") + (append '(("variant" ("space" "hyphen" "runtogether"))) + LaTeX-hologo-key-val-options-global)) + ((or (string= logo "SLiTeX") + (string= logo "SliTeX")) + (append '(("variant" ("lift" "narrow" "lift"))) + LaTeX-hologo-key-val-options-global)) + (t + LaTeX-hologo-key-val-options-global))))) + (TeX-argument-insert logo optional) + (format "%s" keyval))))) + + '("hologoDriverSetup" (TeX-arg-eval completing-read + "Driver: " + '("pdftex" "luatex" + "dvipdfm" "dvipdfmx" + "dvips" "dvipsone" "xdvi" + "xetex" "vtex" "driverfallback"))) + + '("hologoFontSetup" + (TeX-arg-key-val (("general") ("bibsf") + ("rm") ("sc") ("sf") ("sy") ("logo")))) + + '("hologoLogoFontSetup" + (TeX-arg-eval + (lambda () + (let* ((logo (completing-read "Logo name: " + '("BibTeX" + "ExTeX" + "SliTeX" + "AmS" + "NTS" + "KOMAScript" + "METAFONT" + "METAPOST"))) + (keyval (TeX-read-key-val + nil + (cond ((string= logo "BibTeX") + '(("bibsf") ("sc"))) + ((string= logo "ExTeX") + '(("rm") ("sy"))) + ((string= logo "SliTeX") + '(("rm") ("sc"))) + ((or (string= logo "AmS") + (string= logo "NTS")) + '(("sy"))) + ((string= logo "KOMAScript") + '(("sf"))) + ((or (string= logo "METAFONT") + (string= logo "METAPOST")) + '(("logo"))) + (t + nil))))) + (TeX-argument-insert logo optional) + (format "%s" keyval))))) + + ;; Additional user macros + '("hologoVariant" + (TeX-arg-eval completing-read + "Logo name: " LaTeX-hologo-logo-names) + (TeX-arg-eval + (lambda () + (let ((setup (TeX-read-key-val + nil + (append LaTeX-hologo-key-val-options-local + LaTeX-hologo-key-val-options-global)))) + (format "%s" setup))))) + + '("HologoVariant" + (TeX-arg-eval completing-read + "Logo name: " LaTeX-hologo-logo-names) + (TeX-arg-eval + (lambda () + (let ((setup (TeX-read-key-val + nil + (append LaTeX-hologo-key-val-options-local + LaTeX-hologo-key-val-options-global)))) + (format "%s" setup))))) + + '("hologoList" 0) + + '("hologoEntry" "Logo name" "Variant" "Since")) + + ;; Fontification + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("hologo" "{") + ("Hologo" "{")) + 'textual) + (font-latex-add-keywords '(("hologoSetup" "{") + ("hologoLogoSetup" "{{") + ("hologoDriverSetup" "{") + ("hologoFontSetup" "{") + ("hologoLogoFontSetup" "{{") + ("hologoVariant" "{{") + ("HologoVariant" "{{") + ("hologoList" "") + ("hologoEntry" "{{{")) + 'function))) + LaTeX-dialect) + +(defvar LaTeX-hologo-package-options nil + "Package options for the hologo package.") + +;;; hologo.el ends here diff -Nru auctex-11.88/style/hyperref.el auctex-11.90/style/hyperref.el --- auctex-11.88/style/hyperref.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/hyperref.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,6 +1,6 @@ ;;; hyperref.el --- AUCTeX style for `hyperref.sty' v6.83m -;; Copyright (C) 2008, 2013 Free Software Foundation, Inc. +;; Copyright (C) 2008, 2013--2016 Free Software Foundation, Inc. ;; Author: Ralf Angeli ;; Maintainer: auctex-devel@gnu.org @@ -153,6 +153,64 @@ ("nextactionraw")) "Key=value options for href macro of the hyperref package.") +;; See http://www.tug.org/applications/hyperref/ftp/doc/manual.html#x1-220006.2 + +(defvar LaTeX-hyperref-forms-options + '(("accesskey") + ("align" ("0" "1" "2")) + ("altname") + ("backgroundcolor") + ("bordercolor") + ("bordersep") + ("borderwidth") + ;; "borderstyle" is not mentioned in the original hyperref-doc, it + ;; can be seen in action in + ;; http://mirrors.ctan.org/macros/latex/contrib/hyperref/test/testform.tex + ;; S=Solid (default), D=Dashed, B=Beveled, I=Inset, U=Underline + ("borderstyle" ("S" "D" "B" "I" "U")) + ("calculate") + ("charsize") + ("checkboxsymbol" ("true" "false")) + ("checked") + ("color") + ("combo" ("true" "false")) + ("default") + ("disabled" ("true" "false")) + ("format") + ("height") + ("hidden" ("true" "false")) + ("keystroke") + ("mappingname") + ("maxlen") + ("menulength") + ("multiline" ("true" "false")) + ("name") + ("onblur") + ("onchange") + ("onclick") + ("ondblclick") + ("onfocus") + ("onkeydown") + ("onkeypress") + ("onkeyup") + ("onmousedown") + ("onmousemove") + ("onmouseout") + ("onmouseover") + ("onmouseup") + ("onselect") + ("password" ("true" "false")) + ("popdown" ("true" "false")) + ("radio" ("true" "false")) + ("radiosymbol") + ("readonly" ("true" "false")) + ("rotation") + ("tabkey") + ("validate") + ("value") + ("width")) + "Key=value options for Forms related macros of the hyperref package.") + (TeX-add-style-hook "hyperref" (lambda () @@ -172,6 +230,7 @@ '("hypertarget" "Name" "Text") '("phantomsection" 0) '("autoref" TeX-arg-ref) + '("autoref*" TeX-arg-ref) '("ref*" TeX-arg-ref) '("pageref*" TeX-arg-ref) '("autopageref" TeX-arg-ref) @@ -184,12 +243,15 @@ '("texorpdfstring" "TeX string" "PDF string") '("hypercalcbp" t) '("Acrobatmenu" "Menu option" "Text") - '("TextField" ["Parameters"] "Label") - '("CheckBox" ["Parameters"] "Label") - '("ChoiceMenu" ["Parameters"] "Label" "Choices") - '("PushButton" ["Parameters"] "Label") - '("Submit" ["Parameters"] "Label") - '("Reset" ["Parameters"] "Label") + ;; The next 6 macros take Key-vals defined in + ;; "LaTeX-hyperref-forms-options". For an example, see + ;; http://mirrors.ctan.org/macros/latex/contrib/hyperref/test/testform.tex + '("TextField" [ (TeX-arg-key-val LaTeX-hyperref-forms-options) ] "Label") + '("CheckBox" [ (TeX-arg-key-val LaTeX-hyperref-forms-options) ] "Label") + '("ChoiceMenu" [ (TeX-arg-key-val LaTeX-hyperref-forms-options) ] "Label" "Choices") + '("PushButton" [ (TeX-arg-key-val LaTeX-hyperref-forms-options) ] "Label") + '("Submit" [ (TeX-arg-key-val LaTeX-hyperref-forms-options) ] "Label") + '("Reset" [ (TeX-arg-key-val LaTeX-hyperref-forms-options) ] "Label") '("LayoutTextField" "Label" "Field") '("LayoutChoiceField" "Label" "Field") '("LayoutCheckField" "Label" "Field") @@ -199,11 +261,28 @@ '("MakeChoiceField" "Width" "Height") '("MakeButtonField" "Text")) + ;; Form fields must be inside a "Form"-env, one per file is allowed, cf. + ;; http://www.tug.org/applications/hyperref/ftp/doc/manual.html#x1-200006 + ;; It is up to user to insert [] after \begin{Form} + (LaTeX-add-environments + '("Form")) + + ;; Do not indent the content of the "Form"-env; it is odd if the whole + ;; document is indented. Append to `LaTeX-indent-environment-list' in order + ;; not to override custom settings. + (make-local-variable 'LaTeX-indent-environment-list) + (add-to-list 'LaTeX-indent-environment-list '("Form" current-indentation) t) + (add-to-list 'LaTeX-verbatim-macros-with-braces-local "nolinkurl") (add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperbaseurl") (add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperimage") (add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperref") + ;; In hyperref package, \url macro is redefined and \url|...| can't be used, + ;; while it's possible when only url package (required by hyperref) is loaded + (setq LaTeX-verbatim-macros-with-delims-local + (remove "url" LaTeX-verbatim-macros-with-delims-local)) + ;; Fontification (when (and (fboundp 'font-latex-add-keywords) (fboundp 'font-latex-set-syntactic-keywords) @@ -216,17 +295,20 @@ ("hyperref" "{{{{") ("hyperlink" "{{") ("hypertarget" "{{") - ("autoref" "{") + ("autoref" "*{") ("ref" "*{") ("pageref" "*{") ("autopageref" "*{")) 'reference) + (font-latex-add-keywords '(("hypersetup" "{")) + 'function) ;; For syntactic fontification, e.g. verbatim constructs. (font-latex-set-syntactic-keywords)) - ;; RefTeX - (when (fboundp 'reftex-ref-style-activate) - (reftex-ref-style-activate "Hyperref"))) + ;; Activate RefTeX reference style. + (and LaTeX-reftex-ref-style-auto-activate + (fboundp 'reftex-ref-style-activate) + (reftex-ref-style-activate "Hyperref"))) LaTeX-dialect) (defun LaTeX-hyperref-package-options () diff -Nru auctex-11.88/style/icelandic.el auctex-11.90/style/icelandic.el --- auctex-11.88/style/icelandic.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/icelandic.el 2017-01-10 21:35:28.000000000 +0000 @@ -42,7 +42,7 @@ (lambda () (set-syntax-table LaTeX-icelandic-mode-syntax-table) (unless (eq (car TeX-quote-language) 'override) - (setq TeX-quote-language '("icelandic" "\"`" "\"'" t))) + (setq TeX-quote-language `("icelandic" "\"`" "\"'" ,TeX-quote-after-quote))) (setq LaTeX-babel-hyphen-language "icelandic") ;; Fontification of quotation marks. (when (fboundp 'font-latex-add-quotes) diff -Nru auctex-11.88/style/ifluatex.el auctex-11.90/style/ifluatex.el --- auctex-11.88/style/ifluatex.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/ifluatex.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,65 @@ +;;; ifluatex.el --- AUCTeX style for `ifluatex.sty' version 1.3. + +;; Copyright (C) 2014, 2016 Free Software Foundation, Inc. + +;; Author: Davide G. M. Salvetti +;; Maintainer: auctex-devel@gnu.org +;; Created: 2014-11-15 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by the +;; Free Software Foundation; either version 3, or (at your option) any +;; later version. + +;; AUCTeX is distributed in the hope that it will be useful, but WITHOUT +;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +;; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +;; for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, see +;; . + +;;; Commentary: + +;; This file adds support for `ifluatex.sty' 1.3. + +;;; Code: + +(defun LaTeX-ifluatex-set-exit-mark (optional) + "Discard OPTIONAL and set exit-mark to current point." + (set-marker exit-mark (point))) + +(TeX-add-style-hook + "ifluatex" + (lambda () + (TeX-add-symbols + '("ifluatex" + (TeX-arg-literal "%\n") + LaTeX-ifluatex-set-exit-mark + (TeX-arg-literal "\n\\else%\n\\fi%")) + '("luatexversion" 0) + '("luatexrevision" 0)) + (TeX-declare-expert-macros + "ifluatex" + "ifluatex" "luatexversion" "luatexrevision") + + ;; This package is used to make it possible to compile a document with both + ;; LuaTeX and base TeX engines. By setting `TeX-check-engine-list' to nil + ;; we ignore engine restrictions posed by other packages. + (setq TeX-check-engine-list nil) + + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("luatexversion") + ("luatexrevision")) + 'function))) + LaTeX-dialect) + +(defvar LaTeX-ifluatex-package-options nil + "Package options for the ifluatex package.") + +;;; ifluatex.el ends here diff -Nru auctex-11.88/style/inputenc.el auctex-11.90/style/inputenc.el --- auctex-11.88/style/inputenc.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/inputenc.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,6 +1,6 @@ ;;; inputenc.el --- AUCTeX style for `inputenc.sty' -;; Copyright (C) 2005 Free Software Foundation, Inc. +;; Copyright (C) 2005, 2014 Free Software Foundation, Inc. ;; Author: Arne Jørgensen ;; Keywords: tex @@ -66,9 +66,9 @@ ;; return selected input encoding selected))) - (read-string "Input encoding: "))) + (TeX-read-string "Input encoding: "))) -(defun LaTeX-arg-inputenc-inputenc (optional) +(defun LaTeX-arg-inputenc-inputenc (_optional) "Prompt for input encoding." (TeX-argument-insert (LaTeX-inputenc-package-options) nil)) diff -Nru auctex-11.88/style/italian.el auctex-11.90/style/italian.el --- auctex-11.88/style/italian.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/italian.el 2017-01-10 21:35:28.000000000 +0000 @@ -50,7 +50,7 @@ LaTeX-italian-close-quote "\">"))) (setq TeX-quote-language - `("italian" ,open-quote ,close-quote TeX-quote-after-quote)))) + `("italian" ,open-quote ,close-quote ,TeX-quote-after-quote)))) ;; Fontification of quotation marks. (when (fboundp 'font-latex-add-quotes) (font-latex-add-quotes '("\"<" "\">" french))) diff -Nru auctex-11.88/style/jurabib.el auctex-11.90/style/jurabib.el --- auctex-11.88/style/jurabib.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/jurabib.el 2017-01-10 21:35:28.000000000 +0000 @@ -144,9 +144,8 @@ 'variable)) ;; Tell RefTeX (Thanks, Carsten) - (when (and (fboundp 'reftex-set-cite-format) - ;; Is it `reftex-cite-format' customized? - (not (get 'reftex-cite-format 'saved-value))) + (when (and LaTeX-reftex-cite-format-auto-activate + (fboundp 'reftex-set-cite-format)) ;; Check if RefTeX supports jurabib. (if (assoc 'jurabib reftex-cite-format-builtin) ;; Yes, use the provided default. diff -Nru auctex-11.88/style/kpfonts.el auctex-11.90/style/kpfonts.el --- auctex-11.88/style/kpfonts.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/kpfonts.el 2017-01-10 21:35:28.000000000 +0000 @@ -515,19 +515,6 @@ (LaTeX-kpfonts-mode)) ;;; Kpfonts Minor Mode ends here -;; New fonts by `kpfonts'. -(setq TeX-font-list - (append - TeX-font-list - '(;; Math fonts - (?\C-h "" "" "\\mathup{" "}") - (?\C-k "" "" "\\mathfrak{" "}") - (?\C-p "" "" "\\mathscr{" "}") - ;; Text fonts - (?\C-l "\\textscsl{" "}") - (?\C-o "\\textothersc{" "}") - (?\C-q "\\textotherscsl{" "}")))) - (TeX-add-style-hook "kpfonts" (lambda () @@ -554,6 +541,19 @@ '("wideparen" 1) '("widering" 1)) + ;; New fonts by `kpfonts'. + (setq TeX-font-list + (append + TeX-font-list + '(;; Math fonts + (?\C-h "" "" "\\mathup{" "}") + (?\C-k "" "" "\\mathfrak{" "}") + (?\C-p "" "" "\\mathscr{" "}") + ;; Text fonts + (?\C-l "\\textscsl{" "}") + (?\C-o "\\textothersc{" "}") + (?\C-q "\\textotherscsl{" "}")))) + ;; Fontification (when (and (featurep 'font-latex) (eq TeX-install-font-lock 'font-latex-setup)) diff -Nru auctex-11.88/style/latexinfo.el auctex-11.90/style/latexinfo.el --- auctex-11.88/style/latexinfo.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/latexinfo.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,6 +1,6 @@ ;;; latexinfo.el - Support for LaTeXinfo files. -;; Copyright (C) 1993 Marc Gemis +;; Copyright (C) 1993 Free Software Foundation, Inc. ;; Author: Marc Gemis diff -Nru auctex-11.88/style/letter.el auctex-11.90/style/letter.el --- auctex-11.88/style/letter.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/letter.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,6 +1,6 @@ ;;; letter.el - Special code for letter style. -;; Copyright (C) 1993, 2012, 2013 Free Software Foundation, Inc. +;; Copyright (C) 1993, 2012, 2013, 2014 Free Software Foundation, Inc. ;; Author: Per Abrahamsen ;; Maintainer: auctex-devel@gnu.org @@ -85,15 +85,15 @@ (defun LaTeX-env-recipient (environment) "Insert ENVIRONMENT and prompt for recipient and address." - (let ((sender (read-string "Sender: " (user-full-name))) - (sender-address (read-string "Sender address: " + (let ((sender (TeX-read-string "Sender: " (user-full-name))) + (sender-address (TeX-read-string "Sender address: " LaTeX-letter-sender-address)) - (recipient (read-string "Recipient: ")) - (address (read-string "Recipient address: ")) - (signature (read-string "Signature: ")) - (opening (read-string "Opening: ")) - (closing (read-string "Closing: ")) - (date (read-string "Date: " (LaTeX-today)))) + (recipient (TeX-read-string "Recipient: ")) + (address (TeX-read-string "Recipient address: ")) + (signature (TeX-read-string "Signature: ")) + (opening (TeX-read-string "Opening: ")) + (closing (TeX-read-string "Closing: ")) + (date (TeX-read-string "Date: " (LaTeX-today)))) (insert TeX-esc "name" TeX-grop sender TeX-grcl) (newline-and-indent) diff -Nru auctex-11.88/style/listings.el auctex-11.90/style/listings.el --- auctex-11.88/style/listings.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/listings.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,6 +1,6 @@ ;;; listings.el --- AUCTeX style for `listings.sty' -;; Copyright (C) 2004, 2005, 2009, 2013 Free Software Foundation, Inc. +;; Copyright (C) 2004, 2005, 2009, 2013-2016 Free Software Foundation, Inc. ;; Author: Ralf Angeli ;; Maintainer: auctex-devel@gnu.org @@ -28,10 +28,19 @@ ;; This file adds support for `listings.sty'. ;; +;; May 2015: The style detects new environments defined with +;; `\lstnewenvironment'. Users need to invoke `C-c C-n' for this. +;; +;; October 2015: The style detects new "styles" defined with +;; `\lstdefinestyle' and offers them during key-value query. +;; ;; FIXME: Please make me more sophisticated! ;;; Code: +;; Needed for compiling `pushnew': +(eval-when-compile (require 'cl)) + ;; The following are options taken from chapter 4 of the listings ;; manual (2007/02/22 Version 1.4). (defvar LaTeX-listings-key-val-options @@ -142,8 +151,8 @@ ("indexstyle") ;; Column alignment ("columns" ("fixed" "flexible" "fullflexible" "spaceflexible")) ; - ; Also supports an optional - ; argument with {c,l,r}. + ; Also supports an optional + ; argument with {c,l,r}. ("flexiblecolumns" ("true" "false")) ("keepspaces" ("true" "false")) ("basewidth") @@ -217,68 +226,152 @@ ("multicolumn")) "Key=value options for listings macros and environments.") +(defvar LaTeX-listings-key-val-options-local nil + "Buffer-local Key=value options for listings macros and environments.") +(make-variable-buffer-local 'LaTeX-listings-key-val-options-local) + +;; Setup for \lstnewenvironment: +(defvar LaTeX-auto-listings-lstnewenvironment nil + "Temporary for parsing the arguments of `\\lstnewenvironment' +from `listings' package.") + +(defvar LaTeX-listings-lstnewenvironment-regexp + `(,(concat "\\\\lstnewenvironment" + "[ \t\n\r]*{\\([A-Za-z0-9]+\\)}%?" + "[ \t\n\r]*\\[?\\([0-9]?\\)\\]?%?" + "[ \t\n\r]*\\(\\[\\)?") + (1 2 3) LaTeX-auto-listings-lstnewenvironment) + "Matches the argument of `\\lstnewenvironment' from `listings.sty'.") + +;; Setup for \lstdefinestyle: +(TeX-auto-add-type "listings-lstdefinestyle" "LaTeX") + +(defvar LaTeX-listings-lstdefinestyle-regexp + '("\\\\lstdefinestyle{\\([^}]+\\)}" + 1 LaTeX-auto-listings-lstdefinestyle) + "Matches the argument of \"\\lstdefinestyle\" from +\"listings\" package.") + +(defun LaTeX-listings-update-style-key () + "Update the \"style\" key from `LaTeX-listings-key-val-options-local' +with user-defined values via the \"lstdefinestyle\" macro." + (let* ((elt (assoc "style" LaTeX-listings-key-val-options-local)) + (key (car elt)) + (temp (copy-alist LaTeX-listings-key-val-options-local)) + (opts (assq-delete-all (car (assoc key temp)) temp))) + (pushnew (list key (delete-dups + (mapcar 'car (LaTeX-listings-lstdefinestyle-list)))) + opts :test #'equal) + (setq LaTeX-listings-key-val-options-local + (copy-alist opts)))) + +(defun LaTeX-listings-auto-prepare () + "Clear temporary variable from `listings.sty' before parsing." + (setq LaTeX-auto-listings-lstnewenvironment nil) + (setq LaTeX-auto-listings-lstdefinestyle nil)) + +(defun LaTeX-listings-auto-cleanup () + "Process the parsed results of \"\\lstnewenvironment\" and +\"\\lstdefinestyle\"." + (dolist (env-args LaTeX-auto-listings-lstnewenvironment) + (let ((env (car env-args)) + (args (cadr env-args)) + (opt (nth 2 env-args))) + (cond (;; opt. 1st argument and mandatory argument(s) + (and args (not (string-equal args "")) + opt (not (string-equal opt ""))) + (add-to-list 'LaTeX-auto-environment + (list env 'LaTeX-env-args (vector "argument") + (1- (string-to-number args))))) + (;; mandatory argument(s) only + (and args (not (string-equal args "")) + (string-equal opt "")) + (add-to-list 'LaTeX-auto-environment + (list env (string-to-number args)))) + (t ; No args + (add-to-list 'LaTeX-auto-environment (list env)))) + (add-to-list 'LaTeX-indent-environment-list `(,env current-indentation) t) + (add-to-list 'LaTeX-verbatim-environments-local env) + ;; Add new env's to `ispell-tex-skip-alist': skip the entire env + (TeX-ispell-skip-setcdr `(,(cons env (concat "\\\\end{" env "}")))))) + (when (LaTeX-listings-lstdefinestyle-list) + (LaTeX-listings-update-style-key))) + +(add-hook 'TeX-auto-prepare-hook #'LaTeX-listings-auto-prepare t) +(add-hook 'TeX-auto-cleanup-hook #'LaTeX-listings-auto-cleanup t) +(add-hook 'TeX-update-style-hook #'TeX-auto-parse t) + (TeX-add-style-hook "listings" (lambda () + + ;; Add to parser: + (TeX-auto-add-regexp LaTeX-listings-lstnewenvironment-regexp) + (TeX-auto-add-regexp LaTeX-listings-lstdefinestyle-regexp) + + ;; Local version of key-val options: + (setq LaTeX-listings-key-val-options-local + (copy-alist LaTeX-listings-key-val-options)) + ;; New symbols (TeX-add-symbols '("lstalias" ["Alias dialect"] "Alias" ["Dialect"] "Language") - '("lstdefinestyle" "Style name" - (TeX-arg-key-val LaTeX-listings-key-val-options)) + '("lstdefinestyle" + (TeX-arg-eval + (lambda () + (let ((name (TeX-read-string "Style name: "))) + (LaTeX-add-listings-lstdefinestyles name) + (LaTeX-listings-update-style-key) + (format "%s" name)))) + (TeX-arg-key-val LaTeX-listings-key-val-options-local)) '("lstinline" TeX-arg-verb) - '("lstinputlisting" [TeX-arg-key-val LaTeX-listings-key-val-options] + '("lstinputlisting" [TeX-arg-key-val LaTeX-listings-key-val-options-local] TeX-arg-file) "lstlistoflistings" '("lstnewenvironment" "Name" ["Number or arguments"] ["Default argument"] "Starting code" "Ending code") - '("lstset" (TeX-arg-key-val LaTeX-listings-key-val-options)) + '("lstset" (TeX-arg-key-val LaTeX-listings-key-val-options-local)) '("lstloadlanguages" t) ;; 4.17 Short Inline Listing Commands '("lstMakeShortInline" [ "Options" ] "Character") '("lstDeleteShortInline" "Character") - + "lstgrinddeffile" "lstaspectfiles" "lstlanguagefiles" "lstlistingname" "lstlistlistingname") - + ;; New environments (LaTeX-add-environments '("lstlisting" LaTeX-env-args - [TeX-arg-key-val LaTeX-listings-key-val-options])) + [TeX-arg-key-val LaTeX-listings-key-val-options-local])) ;; Filling - (make-local-variable 'LaTeX-indent-environment-list) - (add-to-list 'LaTeX-indent-environment-list - '("lstlisting" current-indentation)) - (make-local-variable 'LaTeX-verbatim-regexp) - (setq LaTeX-verbatim-regexp (concat LaTeX-verbatim-regexp "\\|lstlisting")) + (add-to-list (make-local-variable 'LaTeX-indent-environment-list) + '("lstlisting" current-indentation) t) (add-to-list 'LaTeX-verbatim-environments-local "lstlisting") (add-to-list 'LaTeX-verbatim-macros-with-delims-local "lstinline") (add-to-list 'LaTeX-verbatim-macros-with-braces-local "lstinline") ;; Fontification (when (and (fboundp 'font-latex-add-keywords) - (fboundp 'font-latex-set-syntactic-keywords) + (fboundp 'font-latex-update-font-lock) (eq TeX-install-font-lock 'font-latex-setup)) (font-latex-add-keywords '(("lstnewenvironment" "{[[{{")) 'function) (font-latex-add-keywords '(("lstinputlisting" "[{")) 'reference) (font-latex-add-keywords '(("lstinline" "[{") ; The second argument should - ; actually be verbatim. + ; actually be verbatim. ("lstlistoflistings" "")) 'textual) (font-latex-add-keywords '(("lstalias" "{{") ("lstdefinestyle" "{{") ("lstset" "{")) 'variable) - ;; For syntactic fontification, e.g. verbatim constructs. - (font-latex-set-syntactic-keywords) ;; Tell font-lock about the update. - (setq font-lock-set-defaults nil) - (font-lock-set-defaults))) + (font-latex-update-font-lock t))) LaTeX-dialect) -(defvar LaTeX-listings-package-options '("draft" "final" "savemem" +(defvar LaTeX-listings-package-options '("draft" "final" "savemem" "noaspects" - ;; procnames is mentioned in - ;; Section 5.2 - "procnames") + ;; procnames is mentioned in + ;; Section 5.2 + "procnames") "Package options for the listings package.") ;;; listings.el ends here diff -Nru auctex-11.88/style/longtable.el auctex-11.90/style/longtable.el --- auctex-11.88/style/longtable.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/longtable.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,9 +1,9 @@ ;;; longtable.el --- AUCTeX style for `longtable.sty'. -;; Copyright (C) 2013, 2014 Free Software Foundation, Inc. +;; Copyright (C) 2013--2016 Free Software Foundation, Inc. ;; Maintainer: auctex-devel@gnu.org -;; Author: Mosè Giordano +;; Author: Mosè Giordano ;; Keywords: tex ;; This file is part of AUCTeX. @@ -29,15 +29,34 @@ ;;; Code: +(defvar LaTeX-longtable-skipping-regexp + (regexp-opt '("[l]" "[r]" "[c]" "")) + "Regexp matching between \\begin{longtable} and column specification. +For longtable environments only.") + +(defun LaTeX-item-longtable (&optional suppress) + "Insert line break macro on the last line and suitable number of &'s. +For longtable environments. If SUPPRESS is non-nil, do not +insert line break macro." + (unless suppress + (save-excursion + (end-of-line 0) + (just-one-space) + (TeX-insert-macro "\\"))) + (LaTeX-insert-ampersands + LaTeX-longtable-skipping-regexp #'LaTeX-array-count-columns)) + (TeX-add-style-hook "longtable" (lambda () (LaTeX-add-environments '("longtable" (lambda (environment) - (let ((pos (completing-read (TeX-argument-prompt t nil "Position") - '(("l") ("r") ("c")))) - (fmt (read-string "Format: " LaTeX-default-format)) - (caption (read-string "Caption: "))) + (let* ((pos (completing-read (TeX-argument-prompt t nil "Position") + '(("l") ("r") ("c")))) + (fmt (TeX-read-string "Format: " LaTeX-default-format)) + (caption (TeX-read-string "Caption: ")) + (short-caption (when (>= (length caption) LaTeX-short-caption-prompt-length) + (TeX-read-string "(Optional) Short caption: ")))) (setq LaTeX-default-format fmt) (LaTeX-insert-environment environment (concat @@ -46,25 +65,27 @@ (concat TeX-grop fmt TeX-grcl))) ;; top caption -- do nothing if user skips caption (unless (zerop (length caption)) + ;; insert `\caption[short-caption]{caption': + (insert TeX-esc "caption") + (when (and short-caption (not (string= short-caption ""))) + (insert LaTeX-optop short-caption LaTeX-optcl)) + (insert TeX-grop caption) + ;; ask for a label and insert it + (LaTeX-label environment 'environment) ;; the longtable `\caption' is equivalent to a ;; `\multicolumn', so it needs a `\\' at the - ;; end of the line - (insert TeX-esc "caption" TeX-grop caption TeX-grcl " \\\\") + ;; end of the line. Prior to that, add } to + ;; close `\caption{' + (insert TeX-grcl "\\\\") + ;; fill the caption + (LaTeX-fill-paragraph) + ;; Insert a new line and indent (LaTeX-newline) - (indent-according-to-mode) - ;; ask for a label and insert a new line only - ;; if a label is actually inserted - (when (LaTeX-label environment 'environment) - (LaTeX-newline) - (indent-according-to-mode))))))) + (indent-according-to-mode)) + ;; Insert suitable number of &'s, suppress line break + (LaTeX-item-longtable t))))) + (TeX-add-symbols - ;; Parameters - '("LTleft" 0) - '("LTright" 0) - '("LTpre" 0) - '("LTpost" 0) - '("LTcapwidth" 0) - '("LTchunksize" 0) ;; Commands to end table rows '("endhead" 0) '("endfirsthead" 0) @@ -73,14 +94,25 @@ ;; Caption commands '("caption*" 1)) - ;; Use the enhanced table formatting - (add-to-list 'LaTeX-indent-environment-list - '("longtable" LaTeX-indent-tabular)) + ;; These parameters are set with \setlength + (LaTeX-add-lengths + "LTleft" "LTright" "LTpre" "LTpost" "LTcapwidth") + + ;; This parameter is set with \setcounter + (LaTeX-add-counters "LTchunksize") + + ;; Use the enhanced table formatting. Append to + ;; `LaTeX-indent-environment-list' in order not to override custom settings. + (add-to-list (make-variable-buffer-local 'LaTeX-indent-environment-list) + '("longtable" LaTeX-indent-tabular) t) ;; Append longtable to `LaTeX-label-alist', in order not to override possible ;; custome values. (add-to-list 'LaTeX-label-alist '("longtable" . LaTeX-table-label) t) + ;; Append longtable to `LaTeX-item-list' with `LaTeX-item-longtable' + (add-to-list 'LaTeX-item-list '("longtable" . LaTeX-item-longtable) t) + ;; Fontification (when (and (featurep 'font-latex) (eq TeX-install-font-lock 'font-latex-setup)) @@ -91,4 +123,10 @@ 'textual))) LaTeX-dialect) +;; `longtable.sty' has two options "errorshow" and "pausing", both for +;; debugging purposes. We ignore them both in order to make package +;; loading faster in a buffer. +(defvar LaTeX-longtable-package-options nil + "Package options for the longtable package.") + ;; longtable.el ends here diff -Nru auctex-11.88/style/ltablex.el auctex-11.90/style/ltablex.el --- auctex-11.88/style/ltablex.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/ltablex.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,49 @@ +;;; ltablex.el --- AUCTeX style for `ltablex.sty' (v1.1) + +;; Copyright (C) 2015 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: auctex-devel@gnu.org +;; Created: 2015-03-14 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for `ltablex.sty' (v1.1) from 2014/08/13. +;; `ltablex.sty' is part of TeXLive. `ltablex.sty' modifies the +;; tabularx environment to combine the features of the tabularx +;; package with those of the longtable package. All we need is to +;; call those styles and add two macros. + +;;; Code: + +(TeX-add-style-hook + "ltablex" + (lambda () + (TeX-run-style-hooks "tabularx" "longtable") + (TeX-add-symbols + '("keepXColumns" 0) + '("convertXColumns" 0))) + LaTeX-dialect) + +(defvar LaTeX-ltablex-package-options nil + "Package options for the ltablex package.") + +;;; ltablex.el ends here diff -Nru auctex-11.88/style/ltx-base.el auctex-11.90/style/ltx-base.el --- auctex-11.88/style/ltx-base.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/ltx-base.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,6 +1,6 @@ ;;; ltx-base.el --- AUCTeX style for basic LaTeX commands. -;; Copyright (C) 2004 Free Software Foundation, Inc. +;; Copyright (C) 2004, 2016 Free Software Foundation, Inc. ;; Author: Frank Küster ;; Maintainer: auctex-devel@gnu.org @@ -48,20 +48,20 @@ '("DeclareOption" "option" t) ;; would be great if DeclareOption RET * RET would give ;; \DeclareOption*! - "DeclareOption*" + '("DeclareOption*" t) '("CurrentOption" 0) '("PassOptionsToPackage" "option list" "package") '("ExecuteOptions" "option list") - "ProcessOptions" + '("ProcessOptions" (TeX-arg-literal "\\relax")) "ProcessOptions*" '("OptionNotUsed" 0) ;; candidate for opt/mand toggling '("RequirePackage" [ "option list" ] "package" [ "release" ]) '("LoadClass" [ "option list" ] "class" [ "release" ]) - "AtEndOfPackage" - "AtEndOfClass" - "AtBeginDocument" - "AtEndDocument" + '("AtEndOfPackage" t) + '("AtEndOfClass" t) + '("AtBeginDocument" t) + '("AtEndDocument" t) '("IfFileExists" "filename" 2) '("InputIfFileExists" "filename" 2) '("PackageWarning" "name" t) diff -Nru auctex-11.88/style/ltxtable.el auctex-11.90/style/ltxtable.el --- auctex-11.88/style/ltxtable.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/ltxtable.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,83 @@ +;;; ltxtable.el --- AUCTeX style for `ltxtable.sty' (v0.2) + +;; Copyright (C) 2015 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: auctex-devel@gnu.org +;; Created: 2015-03-14 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for `ltxtable.sty' (v0.2) from 1995/12/11. +;; `ltxtable.sty' is part of TeXLive. + +;;; Code: + +(defvar LaTeX-ltxtable-file-regexp + `(,(concat "\\\\LTXtable" + "{\\(?:[^}]+\\)}" + "{\\(\\.*[^#}%\\\\\\.\n\r]+\\)\\(\\.[^#}%\\\\\\.\n\r]+\\)?}") + 1 TeX-auto-file) + "Matches the file argument of \\LTXtable marco from ltxtable package. +The regexp for the 2. argument is the same as for \"input\" and +\"include\" entries in `LaTeX-auto-regexp-list'.") + +(TeX-add-style-hook + "ltxtable" + (lambda () + (TeX-run-style-hooks "tabularx" "longtable") + + (TeX-add-symbols + '("LTXtable" + (TeX-arg-length "Width" "1.0\\linewidth") + (TeX-arg-eval + (lambda () + (let ((longtable (file-relative-name + (read-file-name "File with longtable: ")))) + (format "%s" longtable)))))) + + ;; Make sure that \LTXtable stays in its own line: + (LaTeX-paragraph-commands-add-locally "LTXtable") + + ;; Tell AUCTeX about a new file-include command: + (TeX-auto-add-regexp LaTeX-ltxtable-file-regexp) + + ;; Tell RefTeX about a new file-include command: Add + ;; LTXtable{} as a regexp (without \) to + ;; `reftex-include-file-commands' and run + ;; `reftex-compile-variables'. Do this all only once. + (when (and (boundp 'reftex-include-file-commands) + (not (string-match "LTXtable" + (mapconcat #'identity reftex-include-file-commands "|")))) + (add-to-list 'reftex-include-file-commands "LTXtable{\\(?:[^}]+\\)}" t) + (reftex-compile-variables)) + + ;; Fontification + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("LTXtable" "{{")) + 'textual))) + LaTeX-dialect) + +(defvar LaTeX-ltxtable-package-options nil + "Package options for the ltxtable package.") + +;;; ltxtable.el ends here diff -Nru auctex-11.88/style/luatextra.el auctex-11.90/style/luatextra.el --- auctex-11.88/style/luatextra.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/luatextra.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,44 @@ +;;; luatextra.el --- AUCTeX style for `luatextra.sty' version 1.0. + +;; Copyright (C) 2014 Free Software Foundation, Inc. + +;; Author: Davide G. M. Salvetti +;; Maintainer: auctex-devel@gnu.org +;; Created: 2014-11-15 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by the +;; Free Software Foundation; either version 3, or (at your option) any +;; later version. + +;; AUCTeX is distributed in the hope that it will be useful, but WITHOUT +;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +;; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +;; for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, see +;; . + +;;; Commentary: + +;; This file adds support for `luatextra.sty' 1.0. + +;;; Code: + +(TeX-add-style-hook + "luatextra" + (lambda () + (TeX-run-style-hooks "ifluatex" "fontspec" + ;; FIXME: yet to be written: + ;; "luatexbase" + "metalogo" "luacode")) + LaTeX-dialect) + +(defvar LaTeX-luatextra-package-options nil + "Package options for the ifluatex package.") + +;;; luatextra.el ends here diff -Nru auctex-11.88/style/mathtools.el auctex-11.90/style/mathtools.el --- auctex-11.88/style/mathtools.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/mathtools.el 2017-01-10 21:35:28.000000000 +0000 @@ -1,6 +1,6 @@ ;;; mathtools.el --- Style hook for the LaTeX package `mathtools'. -;; Copyright (C) 2011-2012 Free Software Foundation, Inc. +;; Copyright (C) 2011-2012, 2014, 2016 Free Software Foundation, Inc. ;; Author: Mads Jensen ;; Created: 2011-02-13 @@ -36,30 +36,207 @@ ;;; Code: +;; Needed for auto-parsing. +(require 'tex) + ;; amsmath options which can be passed directly to mathtools are ;; appended in the style hook below (defvar LaTeX-mathtools-package-options - '("fixamsmath" "donotfixamsmathbugs" "allowspaces" "disallowspaces") + '("fixamsmath" "donotfixamsmathbugs" "allowspaces" "disallowspaces" + ;; Update 2013: We now make \(\) and \[\] robust (can be disabled + ;; via nonrobust package option) + "nonrobust") "Package options for the mathtools package.") (defvar LaTeX-mathtools-key-val-options '(("showonlyrefs") ("mathic" ("true" "false")) ("showmanualtags" ("true" "false")) + ;; 3.4.1 Matrices + ("smallmatrix-align" ("c" "l" "r")) + ("smallmatrix-inner-space") + ;; 3.4.2 The multlined environment ("firstline-afterskip") ("lastline-preskip") ("multlined-pos" ("c" "b" "t")) ("multlined-width") + ;; 3.4.7 Centered \vdots + ("shortvdotsadjustabove") + ("shortvdotsadjustbelow") + ;; 3.5 Intertext and short intertext + ("original-intertext" ("true" "false")) + ("original-shortintertext" ("true" "false")) + ("above-intertext-sep") + ("below-intertext-sep") + ("above-shortintertext-sep") + ("below-shortintertext-sep") + ;; 3.7.2 Vertically centered colon ("centercolon" ("true" "false")) + ;; 4.2 Left sub/superscripts ("prescript-sub-format") ("prescript-sup-format") ("prescript-arg-format")) - "Options for the \\mathtoolsset command") + "Options for the \\mathtoolsset command.") + +;; Setup for \newtagform +(TeX-auto-add-type "mathtools-newtagform" "LaTeX") + +(defvar LaTeX-mathtools-newtagform-regexp + '("\\\\newtagform{\\([^}]+\\)}" + 1 LaTeX-auto-mathtools-newtagform) + "Matches the first argument of \\newtagform from mathtools package.") + +;; Setup for \DeclarePairedDelimiter(X)?: +(TeX-auto-add-type "mathtools-DeclarePairedDelimiter" "LaTeX") + +(defvar LaTeX-mathtools-DeclarePairedDelimiter-regexp + `(,(concat "\\\\DeclarePairedDelimiter\\(?:X\\|XPP\\)?" + "{?" + "\\\\\\([a-zA-Z]+\\)" + "}?" + "\\(?:\\[\\([0-9]+\\)\\]\\)?") + (1 2) LaTeX-auto-mathtools-DeclarePairedDelimiter) + "Match the arguments of \\DeclarePairedDelimiterX? from mathtools package.") + +;; Setup for \newgathered +(TeX-auto-add-type "mathtools-newgathered" "LaTeX") + +(defvar LaTeX-mathtools-newgathered-regexp + '("\\\\newgathered{\\([^}]+\\)}" + 1 LaTeX-auto-mathtools-newgathered) + "Matches the first argument of \\newgathered from mathtools package.") + +(defun LaTeX-mathtools-auto-prepare () + "Clear various variables for mathtools package before parsing." + (setq LaTeX-auto-mathtools-newtagform nil + LaTeX-auto-mathtools-DeclarePairedDelimiter nil + LaTeX-auto-mathtools-newgathered nil)) + +(defun LaTeX-mathtools-auto-cleanup () + "Process the parsed elements for mathtools package." + (when (LaTeX-mathtools-DeclarePairedDelimiter-list) + (dolist (delim (LaTeX-mathtools-DeclarePairedDelimiter-list)) + (let ((cmd (car delim)) + (arg (cadr delim))) + (TeX-add-symbols `(,cmd [ LaTeX-mathtools-arg-mathsize-completion ] + ,(if (string= arg "") + 1 + (string-to-number arg))) + `(,(concat cmd "*") + ,(if (string= arg "") + 1 + (string-to-number arg))))))) + (when (LaTeX-mathtools-newgathered-list) + (dolist (env (mapcar #'car (LaTeX-mathtools-newgathered-list))) + (LaTeX-add-environments env) + (add-to-list 'LaTeX-item-list + `(,env . LaTeX-item-equation) t) + (add-to-list 'LaTeX-label-alist + `(,env . LaTeX-amsmath-label) t) + (when (fboundp 'reftex-add-label-environments) + (reftex-add-label-environments `((,env ?e nil nil t))))))) + +(add-hook 'TeX-auto-prepare-hook #'LaTeX-mathtools-auto-prepare t) +(add-hook 'TeX-auto-cleanup-hook #'LaTeX-mathtools-auto-cleanup t) +(add-hook 'TeX-update-style-hook #'TeX-auto-parse t) + +(defun LaTeX-mathtools-arg-mathstyle-completion (optional) + "Query and insert mathstyle argument to various commands. +If OPTIONAL, insert it as optional argument in brackets." + (TeX-argument-insert + (completing-read + (TeX-argument-prompt optional nil + (concat "Math style: " TeX-esc) t) + '("displaystyle" "textstyle" + "scriptstyle" "scriptscriptstyle")) + optional TeX-esc)) + +(defun LaTeX-mathtools-arg-mathsize-completion (optional) + "Query and insert math size argument to various commands. +If OPTIONAL, insert it as optional argument in brackets." + (TeX-argument-insert + (completing-read + (TeX-argument-prompt optional nil + (concat "Size command: " TeX-esc) t) + '("big" "Big" "bigg" "Bigg")) + optional TeX-esc)) + +(defun LaTeX-mathtools-arg-declarepaireddelimiter (optional &optional X) + "Query and insert various \\DeclarePairedDelimiter macros from mathtools package." + (let ((cmd (TeX-read-string (concat "Command: " TeX-esc))) + (arg (when X (TeX-read-string + (TeX-argument-prompt t nil "Number of arguments"))))) + (TeX-add-symbols `(,cmd [ LaTeX-mathtools-arg-mathsize-completion ] + ,(if X + ;; This is no precaution, arg has to be > 0 + (string-to-number arg) + 1)) + `(,(concat cmd "*") + ,(if X + (string-to-number arg) + 1))) + (LaTeX-add-mathtools-DeclarePairedDelimiters + `(,cmd ,(if X arg ""))) + (TeX-argument-insert cmd optional TeX-esc) + (when arg + (insert (concat LaTeX-optop arg LaTeX-optcl))))) + +(defun LaTeX-mathtools-env-multlined (env) + "Query and insert two optional arguments for ENV multlined. +If both arguments are given, insert them in brackets. If only a +width is given, insert it prefixed with a pair of empty +brackets." + (let ((pos (TeX-read-string + (TeX-argument-prompt t nil "Position (t, b or c (default))"))) + (width (completing-read + (TeX-argument-prompt t nil "Width") + (mapcar + (lambda (x) (concat TeX-esc (car x))) + (LaTeX-length-list))))) + (LaTeX-insert-environment + env + (cond (;; both arguments + (and pos (not (string= pos "")) + width (not (string= width ""))) + (format "[%s][%s]" pos width)) + (;; pos not empty, width empty + (and pos (not (string= pos "")) + (string= width "")) + (format "[%s]" pos)) + (;; pos empty, width not + (and (string= pos "") + width (not (string= width ""))) + (format "[][%s]" width)) + (t nil))))) + +(defun LaTeX-mathtools-env-cases (env) + "Insert various cases ENVs incl. an ampersand from mathtools package." + (LaTeX-insert-environment env) + (save-excursion + (insert ?&))) + +(defun LaTeX-mathtools-item-cases () + "Insert contents to terminate a line in multi-line cases environment. +Put line break macro on the last line. Next, insert an ampersand." + (end-of-line 0) + (just-one-space) + (TeX-insert-macro "\\") + (forward-line 1) + (save-excursion + (insert ?&))) (TeX-add-style-hook "mathtools" (lambda () + ;; Add mathtools to parser + (TeX-auto-add-regexp LaTeX-mathtools-newtagform-regexp) + (TeX-auto-add-regexp LaTeX-mathtools-DeclarePairedDelimiter-regexp) + (TeX-auto-add-regexp LaTeX-mathtools-newgathered-regexp) + + ;; "default" is pre-defined + (LaTeX-add-mathtools-newtagforms "default") + ;; mathtools requires amsmath, as some bugs in amsmath are fixed (TeX-run-style-hooks "amsmath") @@ -67,39 +244,82 @@ (add-to-list 'LaTeX-mathtools-package-options elt)) (LaTeX-add-environments - '("lgathered" ["Vertical position (t or b)"]) - '("rgathered" ["Vertical position (t or b)"]) + ;; 3.4.1 Matrices + '("matrix*" [ "Vertical alignment (l, r or c (default))" ]) + '("pmatrix*" [ "Vertical alignment (l, r or c (default))" ]) + '("bmatrix*" [ "Vertical alignment (l, r or c (default))" ]) + '("Bmatrix*" [ "Vertical alignment (l, r or c (default))" ]) + '("vmatrix*" [ "Vertical alignment (l, r or c (default))" ]) + '("Vmatrix*" [ "Vertical alignment (l, r or c (default))" ]) + '("smallmatrix*" [ "Vertical alignment (l, r or c (default))" ]) + '("psmallmatrix") + '("psmallmatrix*" [ "Vertical alignment (l, r or c (default))" ]) + '("bsmallmatrix") + '("bsmallmatrix*" [ "Vertical alignment (l, r or c (default))" ]) + '("Bsmallmatrix") + '("Bsmallmatrix*" [ "Vertical alignment (l, r or c (default))" ]) + '("vsmallmatrix") + '("vsmallmatrix*" [ "Vertical alignment (l, r or c (default))" ]) + '("Vsmallmatrix") + '("Vsmallmatrix*" [ "Vertical alignment (l, r or c (default))" ]) + ;; 3.4.2 The multlined environment '("multlined" LaTeX-mathtools-env-multlined) - '("matrix*" LaTeX-mathtools-env-matrix-starred) - '("pmatrix*" LaTeX-mathtools-env-matrix-starred) - '("bmatrix*" LaTeX-mathtools-env-matrix-starred) - '("Bmatrix*" LaTeX-mathtools-env-matrix-starred) - '("vmatrix*" LaTeX-mathtools-env-matrix-starred) - '("Vmatrix*" LaTeX-mathtools-env-matrix-starred) - '("spreadlines" LaTeX-mathtools-env-spreadlines) - "dcases" "dcases*") + ;; 3.4.3 More cases -like environments + '("dcases" LaTeX-mathtools-env-cases) + '("dcases*" LaTeX-mathtools-env-cases) + '("rcases" LaTeX-mathtools-env-cases) + '("rcases*" LaTeX-mathtools-env-cases) + '("drcases" LaTeX-mathtools-env-cases) + '("drcases*" LaTeX-mathtools-env-cases) + '("cases*" LaTeX-mathtools-env-cases) + ;; 4.4 Spreading equations + '("spreadlines" "Spacing between lines") + ;; 4.5 Gathered environments + '("lgathered" ["Vertical position (t or b)"]) + '("rgathered" ["Vertical position (t or b)"])) (TeX-add-symbols - '("mathtoolsset" (TeX-arg-key-val LaTeX-mathtools-key-val)) - '("mathclap" 1) - '("mathllap" ["Mathstyle"] t) - '("mathrlap" ["Mathstyle"] t) - '("mathclap" ["Mathstyle"] t) - '("mathmakebox" [TeX-arg-size] [ TeX-arg-size ] 1) + '("mathtoolsset" (TeX-arg-key-val LaTeX-mathtools-key-val-options)) + ;; 3.1.1 A complement to \smash, \llap, and \rlap + '("mathllap" [ LaTeX-mathtools-arg-mathstyle-completion ] t) + '("mathrlap" [ LaTeX-mathtools-arg-mathstyle-completion ] t) + '("mathclap" [ LaTeX-mathtools-arg-mathstyle-completion ] t) + '("mathmakebox" [ (TeX-arg-length "Width") ] [ "Position" ] 1) '("clap" 1) '("mathmbox" 1) - '("cramped" 1) - '("crampedllap" [ "Mathstye" ] t) - '("crampedrlap" [ "Mathstyle" ] t) - '("crampedclap" [ "Mathstyle" ] t) - '("smashoperator" [ "Position (l, r or lr (default)" ] 2) + ;; 3.1.2 Forcing a cramped style + '("cramped" [ LaTeX-mathtools-arg-mathstyle-completion ] 1) + '("crampedllap" [ LaTeX-mathtools-arg-mathstyle-completion ] t) + '("crampedrlap" [ LaTeX-mathtools-arg-mathstyle-completion ] t) + '("crampedclap" [ LaTeX-mathtools-arg-mathstyle-completion ] t) + ;; 3.1.3 Smashing an operator + '("smashoperator" [ "Position (l, r or lr (default)" ] 1) ;; 3.1.4 Adjusting the limits of operators - ;; explicit argument encapsulation does not seem to be required - '("adjustlimits" 4) - ;; 3.2 Controlling tags - '("newtagform" "Name" ["Inner format"] "Left" "Right") - '("renewtagform" "Name" ["Inner format"] "Left" "Right") - '("usetagform" "Name") + '("adjustlimits" t (TeX-arg-literal "_") nil nil (TeX-arg-literal "_") nil) + ;; 3.1.5 Swapping space above AMS display math environments + '("SwapAboveDisplaySkip" 0) + ;; 3.2.1 The appearance of tags + '("newtagform" + (TeX-arg-eval + (lambda () + (let ((newtag (TeX-read-string + (TeX-argument-prompt nil nil "Name")))) + (LaTeX-add-mathtools-newtagforms newtag) + (format "%s" newtag)))) + [ "Inner format" ] "Left" "Right") + '("renewtagform" + (TeX-arg-eval completing-read + (TeX-argument-prompt nil nil "Name") + (LaTeX-mathtools-newtagform-list)) + [ "Inner format" ] "Left" "Right") + '("usetagform" + (TeX-arg-eval completing-read + (TeX-argument-prompt nil nil "Name") + (LaTeX-mathtools-newtagform-list))) + ;; 3.2.2 Showing only referenced tags + '("refeq" TeX-arg-ref) + '("noeqref" TeX-arg-ref) + ;; 3.3.1 Arrow-like symbols '("xleftrightarrow" ["Below"] "Above") '("xLeftarrow" ["Below"] "Above") '("xRightarrow" ["Below"] "Above") @@ -113,88 +333,152 @@ '("xleftharpoonup" ["Below"] "Above") '("xrightleftharpoons" ["Below"] "Above") '("xleftrightharpoons" ["Below"] "Above") - '("underbracket" [ "Rule thickness" ] [ "Bracket height" ] t) - '("overbracket" [ "Rule thickness" ] [ "Bracket height" ] t) + ;; 3.3.2 Braces and brackets + '("underbracket" [ (TeX-arg-length "Rule thickness") ] + [ (TeX-arg-length "Bracket height") ] t) + '("overbracket" [ (TeX-arg-length "Rule thickness") ] + [ (TeX-arg-length "Bracket height") ] t) '("underbrace" 1) '("overbrace" 1) '("LaTeXunderbrace" 1) '("LaTeXoverbrace" 1) ;; 3.4.2 - '("shoveleft" [ TeX-arg-size ] 1) - '("shoveright" [ TeX-arg-size ] 1) - ;; don't understand t, but intertext in amsmath.el uses it - '("shortintertext" t) - '("DeclarePairedDelimeter" TeX-arg-macro "Left delimeter" "Right delimeter") + '("shoveleft" [ (TeX-arg-length "Dimension") ] 1) + '("shoveright" [ (TeX-arg-length "Dimension") ] 1) ;; 3.4.4 '("MoveEqLeft" [ "Number" ]) + ;; 3.4.5 Boxing a single line in an alignment + '("Aboxed" 1) + ;; 3.4.6 Adding arrows between lines in an alignment '("ArrowBetweenLines" [ TeX-arg-macro ] ) '("ArrowBetweenLines*" [ TeX-arg-macro ] ) - ;; colon operators + ;; 3.4.7 Centered \vdots + '("vdotswithin" "Symbol") + '("shortvdotswithin" "Symbol") + '("shortvdotswithin*" "Symbol") + '("MTFlushSpaceAbove") + '("MTFlushSpaceBelow") + ;; 3.5 Intertext and short intertext + ;; don't understand t, but intertext in amsmath.el uses it + '("shortintertext" t) + ;; 3.6 Paired delimiters + '("DeclarePairedDelimiter" + LaTeX-mathtools-arg-declarepaireddelimiter + "Left delimiter" "Right delimiter") + '("DeclarePairedDelimiterX" + (LaTeX-mathtools-arg-declarepaireddelimiter t) + "Left delimiter" "Right delimiter" t) + '("DeclarePairedDelimiterXPP" + (LaTeX-mathtools-arg-declarepaireddelimiter t) + "Pre-code" "Left delimiter" "Right delimiter" 2) + '("delimsize" 0) + ;; 3.6.1 Expert use + '("reDeclarePairedDelimiterInnerWrapper" + (TeX-arg-eval + (lambda () + (let ((cmd (completing-read + (concat "Command: " TeX-esc) + (mapcar #'car (LaTeX-mathtools-DeclarePairedDelimiter-list))))) + (concat TeX-esc cmd)))) + (TeX-arg-eval completing-read + "star or nostar: " + '("star" "nostar")) + t) + ;; 3.7.1 Left and right parentheses + '("lparen" TeX-arg-insert-right-brace-maybe) + '("rparen") + ;; 3.7.2 Vertically centered colon "vcentcolon" "ordinarycolon" "coloneqq" "Coloneqq" "coloneq" "Coloneq" "eqqcolon" "Eqqcolon" "eqcolon" "Eqcolon" "colonapprox" "Colonapprox" "colonsim" "Colonsim" - ;; 3.7.1 - "lparen" "rparen" - ;; left sub/superscripts + "dblcolon" + ;; 3.7.3 A few missing symbols + "nuparrow" "ndownarrow" "bigtimes" + ;; 4.2 Left sub/superscripts '("prescript" "Below" "Above" t) - ;; Declaring math sizes; this command doesn't seem so relevant, but - ;; for completion, it's included + ;; 4.3 Declaring math sizes '("DeclareMathSizes" 4) - ;; Gathered envionments - '("newgather" "Name" "Pre-line" "Post-line" "After") - '("renewgather" "Name" "Pre-line" "Post-line" "After") - ;; Split fractions + ;; 4.5 Gathered environments + '("newgathered" + (TeX-arg-eval + (lambda () + (let ((env (TeX-read-string + (TeX-argument-prompt nil nil "Name")))) + (LaTeX-add-environments env) + (LaTeX-add-mathtools-newgathereds env) + (add-to-list 'LaTeX-item-list + `(,env . LaTeX-item-equation) t) + (add-to-list 'LaTeX-label-alist + `(,env . LaTeX-amsmath-label) t) + (format "%s" env)))) + 3) + '("renewgathered" + (TeX-arg-eval completing-read + (TeX-argument-prompt nil nil "Name") + (LaTeX-mathtools-newgathered-list)) + 3) + ;; 4.6 Split fractions '("splitfrac" 2) '("splitdfrac" 2)) + ;; Append delimiters to `TeX-braces-association' + ;; 3.7.1 Left and right parentheses + (make-local-variable 'TeX-braces-association) + (add-to-list 'TeX-braces-association '("\\lparen" . "\\rparen") t) + (setq LaTeX-item-list - (append '(("multlined" . LaTeX-item-equation) - ("lgathered" . LaTeX-item-equation) - ("rgathered" . LaTeX-item-equation) + (append '(("multlined" . LaTeX-item-equation) + ("lgathered" . LaTeX-item-equation) + ("rgathered" . LaTeX-item-equation) ("spreadlines" . LaTeX-item-equation) - ("matrix*" . LaTeX-item-equation) - ("pmatrix*" . LaTeX-item-equation) - ("bmatrix*" . LaTeX-item-equation) - ("Bmatrix*" . LaTeX-item-equation) - ("vmatrix*" . LaTeX-item-equation) - ("Vmatrix*" . LaTeX-item-equation) - ("dcases" . LaTeX-item-equation) - ("dcases*" . LaTeX-item-equation)) + ("matrix*" . LaTeX-item-equation) + ("pmatrix*" . LaTeX-item-equation) + ("bmatrix*" . LaTeX-item-equation) + ("Bmatrix*" . LaTeX-item-equation) + ("vmatrix*" . LaTeX-item-equation) + ("Vmatrix*" . LaTeX-item-equation) + ("dcases" . LaTeX-mathtools-item-cases) + ("dcases*" . LaTeX-mathtools-item-cases) + ("rcases" . LaTeX-mathtools-item-cases) + ("rcases*" . LaTeX-mathtools-item-cases) + ("drcases" . LaTeX-mathtools-item-cases) + ("drcases*" . LaTeX-mathtools-item-cases) + ("cases*" . LaTeX-mathtools-item-cases)) LaTeX-item-list)) (setq LaTeX-label-alist - (append '(("lgathered" . LaTeX-amsmath-label) - ("rgathered" . LaTeX-amsmath-label) - ("multlined" . LaTeX-amsmath-label) - LaTeX-label-alist)))) + (append '(("lgathered" . LaTeX-amsmath-label) + ("rgathered" . LaTeX-amsmath-label) + ("multlined" . LaTeX-amsmath-label)) + LaTeX-label-alist)) + + ;; RefTeX support: Add env's with `reftex-add-label-environments' + (when (fboundp 'reftex-add-label-environments) + (let ((envs '(("lgathered" ?e nil nil t) + ("rgathered" ?e nil nil t) + ("multlined" ?e nil nil t)))) + (dolist (env envs) + (reftex-add-label-environments `(,env))))) + + ;; Fontification + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("mathtoolsset" "{") + ("newtagform" "{[{{") + ("renewtagform" "{[{{") + ("DeclarePairedDelimiter" "|{\\{{") + ("DeclarePairedDelimiterX" "|{\\[{{{") + ("DeclarePairedDelimiterXPP" "|{\\[{{{{{") + ("reDeclarePairedDelimiterInnerWrapper" "|{\\{{") + ("DeclareMathSizes" "{{{{") + ("newgathered" "{{{{") + ("renewgathered" "{{{{")) + 'function) + (font-latex-add-keywords '(("usetagform" "{")) + 'variable) + (font-latex-add-keywords '(("refeq" "{") + ("noeqref" "{")) + 'reference))) LaTeX-dialect) -(defun LaTeX-mathtools-env-matrix-starred (env) - (let ((where (read-string "(optional) Vertical placement of columns: "))) - (if (string= where "") - (setq where "") - (setq where (concat "[" where "]"))) - (LaTeX-insert-environment env where))) - -(defun LaTeX-mathtools-env-spreadlines (env) - (let ((spread (read-string "Spacing between lines: "))) - (LaTeX-insert-environment env (concat TeX-grop spread TeX-grcl)) - (newline-and-indent))) - -;; FIXME: there are probably more subtle ways to support more than one -;; optional argument; please change if this is the case -(defun LaTeX-mathtools-env-multlined (env) - (let ((pos (read-string "(optional) Position: ")) - (width (read-string "(optional) Width: ")) - (extra "")) - (if (not (string= pos "")) - (setq pos (concat LaTeX-optop pos LaTeX-optcl)) - (setq pos "")) - (if (not (string= width "")) - (setq width (concat LaTeX-optop width LaTeX-optcl)) - (setq width "")) - (setq extra (concat pos width)) - (LaTeX-insert-environment env extra) - (newline-and-indent))) - -;;; mathtools.el ends here. +;;; mathtools.el ends here diff -Nru auctex-11.88/style/mdframed.el auctex-11.90/style/mdframed.el --- auctex-11.88/style/mdframed.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/mdframed.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,421 @@ +;;; mdframed.el --- AUCTeX style for `mdframed.sty' (v1.9b) + +;; Copyright (C) 2016 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: auctex-devel@gnu.org +;; Created: 2016-06-26 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for `mdframed.sty' (v1.9b) from 2013/07/01. +;; `mdframed.sty' is part of TeXLive. + +;; This style offers only a set of mandatory options for completion +;; while loading the package +;; (cf. `LaTeX-mdframed-package-options-list'). All other options are +;; offered for completion as part of `\mdfsetup'. Please use this +;; command to set options of the package. + +;;; Code: + +;; Needed for compiling `pushnew': +(eval-when-compile (require 'cl)) + +;; Needed for auto-parsing. +(require 'tex) + +(defvar LaTeX-mdframed-key-val-options + '(;; 6.2. Restoring the settings + ("style" ("defaultoptions")) + ("default") + ;; 6.3. Options with lengths + ("defaultunit" ("pt" "pc" "in" "bp" "cm" "mm" "dd" "cc" "sp" "ex" "em")) + ("skipabove") + ("skipbelow") + ("leftmargin") + ("rightmargin") + ("innerleftmargin") + ("innerrightmargin") + ("innertopmargin") + ("innerbottommargin") + ("linewidth") + ("innerlinewidth") + ("middlelinewidth") + ("outerlinewidth") + ("roundcorner") + ;; 6.4. Colored Options + ("linecolor") + ("innerlinecolor") + ("middlelinecolor") + ("outerlinecolor") + ("backgroundcolor") + ("fontcolor") + ("font") + ;; 6.5. Shadows + ("shadowsize") + ("shadowcolor") + ;; 6.6. Hidden Lines + ("topline" ("true" "false")) + ("rightline" ("true" "false")) + ("leftline" ("true" "false")) + ("bottomline" ("true" "false")) + ("hidealllines" ("true" "false")) + ;; 6.7. Working in twoside-mode + ("outermargin") + ("innermargin") + ("usetwoside" ("true" "false")) + ;; 6.8. Footnotes + ("footnotedistance") + ("footnoteinside" ("true" "false")) + ;; 6.9. Page breaks + ("nobreak" ("true" "false")) + ("everyline" ("true" "false")) + ("splittopskip") + ("splitbottomskip") + ;; 6.10. Frametitle + ("frametitle") + ("frametitlefont") + ("frametitlealignment" ("\\raggedleft" "\\raggedright" "\\centering")) + ("frametitlerule" ("true" "false")) + ("frametitlerulewidth") + ("frametitleaboveskip") + ("frametitlebelowskip") + ("frametitlebackgroundcolor") + ("repeatframetitle" ("true" "false")) + ;; 6.11. Title commands inside the environment + ("subtitleaboveline" ("true" "false")) + ("subtitlebelowline" ("true" "false")) + ("subtitlefont") + ("subtitlebackgroundcolor") + ("subtitleabovelinecolor") + ("subtitlebelowlinecolor") + ("subtitleabovelinewidth") + ("subtitlebelowlinewidth") + ("subtitleaboveskip") + ("subtitlebelowskip") + ("subtitleinneraboveskip") + ("subtitleinnerbelowskip") + ;; 6.12. General options + ("ntheorem" ("true" "false")) + ("needspace") + ("ignorelastdescenders" ("true" "false")) + ("userdefinedwidth" ("\\linewidth" "\\columnwidth")) + ("align" ("left" "right" "center")) + ;; 6.13. TikZ options + ("tikzsetting") + ("apptotikzsetting") + ;; 6.14. PSTricks options + ("pstrickssetting") + ("pstricksappsetting") + ;; 7. Hooks and Bools + ("settings") + ("extra") + ("singleextra") + ("firstextra") + ("middleextra") + ("secondextra") + ("mdfsingleframe" ("true" "false")) + ("mdffirstframe" ("true" "false")) + ("mdfmiddleframe" ("true" "false")) + ("mdflastframe" ("true" "false")) + ("beforesingleframe") + ("aftersingleframe") + ("beforebreak") + ("afterbreak") + ("beforelastframe") + ("afterlastframe") + ("startcode") + ("startinnercode") + ("endinnercode") + ("endcode") + ;; 8. Theorems + ("theoremseparator") + ("theoremtitlefont") + ("theoremspace")) + "Key=value options for mdframed macros and environments.") + +(defvar LaTeX-mdframed-key-val-options-local nil + "Buffer-local key=value options for mdframed macros and environments.") +(make-variable-buffer-local 'LaTeX-mdframed-key-val-options-local) + +;; Setup for \newmdenv + +(TeX-auto-add-type "mdframed-newmdenv" "LaTeX") + +(defvar LaTeX-mdframed-newmdenv-regexp + `(,(concat + "\\\\newmdenv" + "[ \t\n\r%]*" + "\\(?:\\[[^][]*" + "\\(?:{[^}{]*" + "\\(?:{[^}{]*" + "\\(?:{[^}{]*}[^}{]*\\)*" + "}[^}{]*\\)*" + "}[^][]*\\)*" + "\\]\\)?" + "[ \t\n\r%]*" + "{\\([^}]+\\)}") + 1 LaTeX-auto-mdframed-newmdenv) + "Matches the argument of \\newmdenv from mdframed package.") + +;; Setup for \mdfdefinestyle + +(TeX-auto-add-type "mdframed-mdfdefinestyle" "LaTeX") + +(defvar LaTeX-mdframed-mdfdefinestyle-regexp + '("\\\\mdfdefinestyle[ \t\n\r%]*{\\([^}]+\\)}" + 1 LaTeX-auto-mdframed-mdfdefinestyle) + "Matches the argument of \\mdfdefinestyle from mdframed package.") + +;; Setup for \newmdtheoremenv & \mdtheorem + +(TeX-auto-add-type "mdframed-mdtheorem" "LaTeX") + +(defvar LaTeX-mdframed-mdtheorem-regexp + `(,(concat + "\\\\\\(new\\)?mdtheorem\\(?:env\\)?" + "[ \t\n\r%]*" + "\\(?:\\[[^][]*" + "\\(?:{[^}{]*" + "\\(?:{[^}{]*" + "\\(?:{[^}{]*}[^}{]*\\)*" + "}[^}{]*\\)*" + "}[^][]*\\)*" + "\\]\\)?" + "[ \t\n\r%]*" + "{\\([^}]+\\)}") + (2 1) LaTeX-auto-mdframed-mdtheorem) + "Matches the argument of \\newmdtheoremenv and \\mdtheorem from mdframed package.") + +(defun LaTeX-mdframed-update-style-key () + "Update some key=values in `LaTeX-mdframed-key-val-options-local'." + ;; Add new "style"s to key=vals: + (when (LaTeX-mdframed-mdfdefinestyle-list) + (let* ((key (car (assoc "style" LaTeX-mdframed-key-val-options-local))) + (val (cadr (assoc "style" LaTeX-mdframed-key-val-options))) + (temp (copy-alist LaTeX-mdframed-key-val-options-local)) + (opts (assq-delete-all (car (assoc key temp)) temp))) + (pushnew (list key (delete-dups + (append val (mapcar #'car (LaTeX-mdframed-mdfdefinestyle-list))))) + opts :test #'equal) + (setq LaTeX-mdframed-key-val-options-local + (copy-alist opts)))) + ;; + ;; Check if any color defininig package is loaded and update the + ;; key=values for coloring. Prefer xcolor.sty if both packages are + ;; loaded. + (when (or (member "xcolor" (TeX-style-list)) + (member "color" (TeX-style-list))) + (let* ((colorcmd (if (member "xcolor" (TeX-style-list)) + #'LaTeX-xcolor-definecolor-list + #'LaTeX-color-definecolor-list)) + (keys '("linecolor" + "innerlinecolor" + "middlelinecolor" + "outerlinecolor" + "backgroundcolor" + "fontcolor" + "shadowcolor" + "frametitlebackgroundcolor" + "subtitlebackgroundcolor" + "subtitleabovelinecolor" + "subtitlebelowlinecolor")) + (tmp (copy-alist LaTeX-mdframed-key-val-options-local))) + (dolist (x keys) + (assq-delete-all (car (assoc x tmp)) tmp) + (pushnew (list x (mapcar #'car (funcall colorcmd))) tmp :test #'equal)) + (setq LaTeX-mdframed-key-val-options-local + (copy-alist tmp))))) + +(defun LaTeX-mdframed-auto-prepare () + "Clear variables before parsing for mdframed package." + (setq LaTeX-auto-mdframed-newmdenv nil + LaTeX-auto-mdframed-mdfdefinestyle nil + LaTeX-auto-mdframed-mdtheorem nil)) + +(defun LaTeX-mdframed-auto-cleanup () + "Process parsed elements for mdframed package." + (dolist (env (mapcar #'car (LaTeX-mdframed-newmdenv-list))) + (LaTeX-add-environments + `(,env LaTeX-env-args [ TeX-arg-key-val LaTeX-mdframed-key-val-options-local ] )) + (TeX-ispell-skip-setcdr `((,env ispell-tex-skip-alist 0)))) + (dolist (newenv (LaTeX-mdframed-mdtheorem-list)) + (let ((env (car newenv)) + (new (cadr newenv))) + (LaTeX-add-environments (list env (vector "Heading"))) + (unless (and new (not (string= new ""))) + (LaTeX-add-environments (list (concat env "*") (vector "Heading")))))) + (LaTeX-mdframed-update-style-key)) + +(add-hook 'TeX-auto-prepare-hook #'LaTeX-mdframed-auto-prepare t) +(add-hook 'TeX-auto-cleanup-hook #'LaTeX-mdframed-auto-cleanup t) +(add-hook 'TeX-update-style-hook #'TeX-auto-parse t) + +(TeX-add-style-hook + "mdframed" + (lambda () + + ;; Add mdframed to the parser + (TeX-auto-add-regexp LaTeX-mdframed-newmdenv-regexp) + (TeX-auto-add-regexp LaTeX-mdframed-mdfdefinestyle-regexp) + (TeX-auto-add-regexp LaTeX-mdframed-mdtheorem-regexp) + + ;; Local version of key-val options + (setq LaTeX-mdframed-key-val-options-local + (copy-alist LaTeX-mdframed-key-val-options)) + + ;; 4. Commands + (TeX-add-symbols + '("mdfsetup" + (TeX-arg-key-val LaTeX-mdframed-key-val-options-local)) + + '("newmdenv" + [ TeX-arg-key-val LaTeX-mdframed-key-val-options-local ] + (TeX-arg-eval + (lambda () + (let ((env (TeX-read-string + (TeX-argument-prompt optional nil "Environment")))) + (LaTeX-add-environments + `(,env LaTeX-env-args [ TeX-arg-key-val LaTeX-mdframed-key-val-options-local ])) + ;; Add new env's to `ispell-tex-skip-alist': skip the optional argument + (TeX-ispell-skip-setcdr `((,env ispell-tex-skip-alist 0))) + (format "%s" env))))) + + '("renewmdenv" + [ TeX-arg-key-val LaTeX-mdframed-key-val-options-local ] + (TeX-arg-eval completing-read + (TeX-argument-prompt optional nil "Environment") + (LaTeX-mdframed-newmdenv-list))) + + '("surroundwithmdframed" + [ TeX-arg-key-val LaTeX-mdframed-key-val-options-local ] + TeX-arg-environment) + + '("mdflength" + (TeX-arg-eval completing-read + (TeX-argument-prompt optional nil "Length") + '(("skipabove") + ("skipbelow") + ("leftmargin") + ("rightmargin") + ("innerleftmargin") + ("innerrightmargin") + ("innertopmargin") + ("innerbottommargin") + ("linewidth") + ("innerlinewidth") + ("middlelinewidth") + ("outerlinewidth")))) + + ;; 5. Defining your own style + '("mdfdefinestyle" + (TeX-arg-eval + (lambda () + (let ((style (TeX-read-string + (TeX-argument-prompt optional nil "Style name")))) + (LaTeX-add-mdframed-mdfdefinestyles style) + (LaTeX-mdframed-update-style-key) + (format "%s" style)))) + (TeX-arg-key-val LaTeX-mdframed-key-val-options-local)) + + '("mdfapptodefinestyle" + (TeX-arg-eval completing-read + (TeX-argument-prompt optional nil "Style name") + (LaTeX-mdframed-mdfdefinestyle-list)) + (TeX-arg-key-val LaTeX-mdframed-key-val-options-local)) + + ;; 6.11. Title commands inside the environment + '("mdfsubtitle" + [ TeX-arg-key-val LaTeX-mdframed-key-val-options-local ] + "Subtitle") + + ;; 8. Theorems + '("newmdtheoremenv" + [ TeX-arg-key-val LaTeX-mdframed-key-val-options-local ] + (TeX-arg-eval + (lambda () + (let ((nthm (TeX-read-string + (TeX-argument-prompt optional nil "Environment")))) + (LaTeX-add-environments (list nthm (vector "Heading"))) + (format "%s" nthm)))) + [ TeX-arg-environment "Numbered like" ] + t [ (TeX-arg-eval progn (if (eq (save-excursion + (backward-char 2) + (preceding-char)) ?\]) + () + (TeX-arg-counter t "Within counter")) + "") ]) + + '("mdtheorem" + [ TeX-arg-key-val LaTeX-mdframed-key-val-options-local ] + (TeX-arg-eval + (lambda () + (let ((nthm (TeX-read-string + (TeX-argument-prompt optional nil "Environment")))) + (LaTeX-add-environments (list nthm (vector "Heading")) + (list (concat nthm "*") (vector "Heading"))) + (format "%s" nthm)))) + [ TeX-arg-environment "Numbered like" ] + t [ (TeX-arg-eval progn (if (eq (save-excursion + (backward-char 2) + (preceding-char)) ?\]) + () + (TeX-arg-counter t "Within counter")) + "") ])) + + ;; Main environment defined by mdframed.sty + (LaTeX-add-environments + '("mdframed" LaTeX-env-args + [ TeX-arg-key-val LaTeX-mdframed-key-val-options-local ] )) + + ;; Fontification + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("newmdenv" "[{") + ("renewmdenv" "[{") + ("surroundwithmdframed" "[{") + ("mdfsetup" "[{") + ("mdfdefinestyle" "{{") + ("mdfapptodefinestyle" "{{") + ("newmdtheoremenv" "[{[{[") + ("mdtheorem" "[{[{[")) + 'function) + (font-latex-add-keywords '(("mdfsubtitle" "[{")) + 'sectioning-5) + (font-latex-add-keywords '(("mdflength" "{")) + 'variable))) + LaTeX-dialect) + +(defvar LaTeX-mdframed-package-options-list + '(("xcolor") + ("framemethod" ("default" "tex" "latex" "none" "0" + "tikz" "pgf" "1" + "pstricks" "ps" "postscript" "2")) + ("tikz") ("TikZ") + ("ps") ("pstricks") ("PSTricks")) + "Package options for the framed package.") + +(defun LaTeX-mdframed-package-options () + "Prompt for package options for the mdframed package." + (TeX-read-key-val t LaTeX-mdframed-package-options-list)) + +;;; mdframed.el ends here diff -Nru auctex-11.88/style/mdsymbol.el auctex-11.90/style/mdsymbol.el --- auctex-11.88/style/mdsymbol.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/mdsymbol.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,99 @@ +;;; mdsymbol.el --- AUCTeX style for `mdsymbol.sty' (v0.5) + +;; Copyright (C) 2014 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: auctex-devel@gnu.org +;; Created: 2014-10-25 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for `mdsymbol.sty' (v0.5) from 2012/11/18. +;; The latest version of is available from . +;; `mdsymbol.sty' is part of TeXLive. + +;;; Code: + +(TeX-add-style-hook + "mdsymbol" + (lambda () + + ;; Run style hook for various packages loaded by mdsymbol + (TeX-run-style-hooks "textcomp" "amsmath") + + ;; New symbols + (TeX-add-symbols + + ;; These macros take one argument; we follow latex.el and use the + ;; t specifier for the argument; over- and underbrace and sqrt are + ;; already available + '("overgroup" t) + '("undergroup" t) + '("overlinesegment" t) + '("overleftharpoon" t) + '("overrightharpoon" t) + '("underlinesegment" t) + ;; + '("widehat" t) + '("widetilde" t) + '("wideparen" t) + '("vec" t) + '("middlebar" t) + '("middleslash" t) + '("strokethrough" t) + ;; + '("overlining" t)) + + ;; The following macros are usually defined, since retainmissing + ;; defaults to false + (unless (or (LaTeX-provided-package-options-member "mdsymbol" "retainmissing=true") + (LaTeX-provided-package-options-member "mdsymbol" "retainmissing")) + (TeX-add-symbols + '("dagger") + '("ddagger") + '("mathparagraph") + '("mathsection") + '("mathdollar") + '("mathsterling") + '("yen") + '("hbar") + '("hslash") + '("circledR") + '("circledS") + '("lambdabar") + '("lambdaslash")))) + LaTeX-dialect) + +(defvar LaTeX-mdsymbol-package-options + '(;; + ("normalweight" ("Light" "Regular" "autolight" "autoregular")) + ("boldweight" ("Semibold" "Bold" "autosemibold")) + ("onlysansmath" ("true" "false")) + ("retainmissing" ("true" "false")) + ("scale") + ("largedelims" ("true" "false"))) + "Package options for the mdsymbol package.") + +(defun LaTeX-mdsymbol-package-options nil + "Prompt for package options for the mdsymbol package." + (TeX-read-key-val t LaTeX-mdsymbol-package-options)) + +;;; mdsymbol.el ends here diff -Nru auctex-11.88/style/memoir.el auctex-11.90/style/memoir.el --- auctex-11.88/style/memoir.el 2014-10-29 19:21:17.000000000 +0000 +++ auctex-11.90/style/memoir.el 2017-01-10 21:35:28.000000000 +0000 @@ -65,6 +65,8 @@ "leadpagetoclevel") + (LaTeX-add-environments "abstract") + ;; Emulated packages. The `memoir' class contains a list of files ;; emulated at the end of the class-file (TeX-run-style-hooks diff -Nru auctex-11.88/style/menukeys.el auctex-11.90/style/menukeys.el --- auctex-11.88/style/menukeys.el 1970-01-01 00:00:00.000000000 +0000 +++ auctex-11.90/style/menukeys.el 2017-01-10 21:35:28.000000000 +0000 @@ -0,0 +1,539 @@ +;;; menukeys.el --- AUCTeX style for `menukeys.sty' (v1.4) + +;; Copyright (C) 2016 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: auctex-devel@gnu.org +;; Created: 2016-02-07 +;; Keywords: tex + +;; This file is part of AUCTeX. + +;; AUCTeX is free software; you can redistribute it and/or modify it +;; under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. + +;; AUCTeX is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with AUCTeX; see the file COPYING. If not, write to the Free +;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +;; 02110-1301, USA. + +;;; Commentary: + +;; This file adds support for `menukeys.sty' (v1.4) from 2016/04/18. +;; `menukeys.sty' is part of TeXLive. + +;;; Code: + +;; Needed for auto-parsing. +(require 'tex) + +(defvar LaTeX-menukeys-input-separators-list + '("/" "=" "*" "+" "," ";" ":" "-" ">" "<" "bslash") + "List of input separators for macros of menukeys package.") + +(defvar LaTeX-menukeys-predefined-styles-list + '("menus" "roundedmenus" "angularmenus" "roundedkeys" + "shadowedroundedkeys" "angularkeys" "shadowedangularkeys" + "typewriterkeys" "paths" "pathswithfolder" + "pathswithblackfolder" "hyphenatepaths" + "hyphenatepathswithfolder" + "hyphenatepathswithblackfolder") + "List of predefined styles for macros from menukeys package.") + +;; Setup for \newmenustyle(simple): +(TeX-auto-add-type "menukeys-newmenustyle" "LaTeX") + +(defvar LaTeX-menukeys-newmenustyle-regexp + '("\\\\\\(?:new\\|copy\\)menustyle\\(?:simple\\)?*?{\\([^}]+\\)}" + 1 LaTeX-auto-menukeys-newmenustyle) + "Matches the argument of \\newmenustyle and +\\newmenustylesimple from menukeys package.") + +;; Setup for \newmenucolortheme: +(TeX-auto-add-type "menukeys-newmenucolortheme" "LaTeX") + +(defvar LaTeX-menukeys-newmenucolortheme-regexp + '("\\\\\\(?:new\\|copy\\)menucolortheme{\\([^}]+\\)}" + 1 LaTeX-auto-menukeys-newmenucolortheme) + "Matches the argument of \\newmenucolortheme from menukeys package.") + +;; Setup for \newmenumacro: +(TeX-auto-add-type "menukeys-newmenumacro" "LaTeX") + +(defvar LaTeX-menukeys-newmenumacro-regexp + `(,(concat + "\\\\\\(new\\|renew\\|provide\\)menumacro" + "{?" + (regexp-quote TeX-esc) + "\\([a-zA-Z]+\\)" + "}?" + "\\(?:\\[\\([^]]*\\)\\]\\)?") + (2 3 1) LaTeX-auto-menukeys-newmenumacro) + "Matches the arguments of \\newmenumacro from menukeys package.") + +(defun LaTeX-menukeys-auto-prepare () + "Clear various `LaTeX-auto-menukeys-*' variables before parsing." + (setq LaTeX-auto-menukeys-newmenustyle nil + LaTeX-auto-menukeys-newmenucolortheme nil + LaTeX-auto-menukeys-newmenumacro nil)) + +(defun LaTeX-menukeys-auto-cleanup () + "Process the parsed elements for menukeys package. +This function adds parsed elements from the variable +`LaTeX-menukeys-newmenumacro-list' to AUCTeX via the function +`TeX-add-symbols'. The variable +`LaTeX-menukeys-newmenumacro-list' and not the function with the +same name is used since this function looks for the order of +commands which are set by \\renewmenumacro in order to pick the +current separator. These renew-commands are also removed first +from the variable `TeX-symbol-list' before being re-added." + (dolist (x (apply #'append LaTeX-menukeys-newmenumacro-list)) + (let ((macro (nth 0 x)) + (sep (nth 1 x)) + (renew (when (string= (nth 2 x) "renew") + (nth 2 x)))) + ;; When we are renewmenumacro'ing, delete the entry first from the + ;; variable `TeX-symbol-list' and then add the new spec: + (when renew + (setq TeX-symbol-list + (assq-delete-all (car (assoc macro (TeX-symbol-list))) TeX-symbol-list))) + (TeX-add-symbols + `(,macro [ TeX-arg-eval completing-read + (TeX-argument-prompt optional nil + ,(concat "Input separator " + "(default " + (if (and sep (not (string= sep ""))) + sep + ",") + ")")) + LaTeX-menukeys-input-separators-list ] t )) + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords `((,macro "[{")) + 'textual))))) + +(add-hook 'TeX-auto-prepare-hook #'LaTeX-menukeys-auto-prepare t) +(add-hook 'TeX-auto-cleanup-hook #'LaTeX-menukeys-auto-cleanup t) +(add-hook 'TeX-update-style-hook #'TeX-auto-parse t) + +(defun TeX-arg-menukeys-newmenumacro (optional &optional renew) + "Query and insert the arguments of \\newmenumacro from menukeys package. +After inserting, add the name of macro and the optional separator +to the name of known macros via `TeX-add-symbols'. If +font-latex.el is loaded, also use `font-latex-add-keywords' on +macro. If RENEW is non-nil, query for an already defined macro." + (let ((macro (if renew + (completing-read + (concat "Macro: " TeX-esc) + (delete-dups (mapcar #'car (LaTeX-menukeys-newmenumacro-list)))) + (TeX-read-string (concat "Macro: " TeX-esc)))) + (sep (completing-read + (TeX-argument-prompt optional nil "Input separator (default ,)") + LaTeX-menukeys-input-separators-list)) + (style (completing-read + (TeX-argument-prompt optional nil "Style") + (LaTeX-menukeys-newmenustyle-list)))) + (TeX-argument-insert (concat TeX-esc macro) optional) + (when (and sep (not (string= sep ""))) + (insert (format "[%s]" sep))) + (TeX-argument-insert style optional) + ;; When we are renewmenumacro'ing, delete the entry first from the + ;; variable `TeX-symbol-list' and then add the new spec: + (when renew + (setq TeX-symbol-list + (assq-delete-all (car (assoc macro (TeX-symbol-list))) TeX-symbol-list))) + (TeX-add-symbols + `(,macro [ TeX-arg-eval completing-read + (TeX-argument-prompt optional nil + ,(concat "Input separator " + "(default " + (if (and sep (not (string= sep ""))) + sep + ",") + ")")) + LaTeX-menukeys-input-separators-list ] t )) + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords `((,macro "[{")) + 'textual)))) + +(TeX-add-style-hook + "menukeys" + (lambda () + + ;; Add menukeys to the parser + (TeX-auto-add-regexp LaTeX-menukeys-newmenustyle-regexp) + (TeX-auto-add-regexp LaTeX-menukeys-newmenucolortheme-regexp) + (TeX-auto-add-regexp LaTeX-menukeys-newmenumacro-regexp) + + ;; Activate predefined stuff + (apply #'LaTeX-add-menukeys-newmenustyles LaTeX-menukeys-predefined-styles-list) + (LaTeX-add-menukeys-newmenucolorthemes "gray" "blacknwhite") + + ;; Run style hooks for xcolor, tikz and relsize + (TeX-run-style-hooks "xcolor" "tikz" "relsize") + + ;; 4.1 Basic macros: These are not defined if the package option + ;; definemenumacros ist set to false (default is true). We check + ;; for the package option here and add them. + (unless (LaTeX-provided-package-options-member "menukeys" "definemenumacros=false") + (TeX-add-symbols + ;; \menu []{} + ;; \directory []{path} + ;; \keys []{keystrokes} + '("menu" + [ TeX-arg-eval completing-read + (TeX-argument-prompt optional nil "Input separator") + LaTeX-menukeys-input-separators-list ] + t) + + '("directory" + [ TeX-arg-eval completing-read + (TeX-argument-prompt optional nil "Input separator") + LaTeX-menukeys-input-separators-list ] + t) + + '("keys" + [ TeX-arg-eval completing-read + (TeX-argument-prompt optional nil "Input separator") + LaTeX-menukeys-input-separators-list ] + t))) + + (TeX-add-symbols + ;; 4.2.1 Predefined styles + ;; \drawtikzfolder[][] + '("drawtikzfolder" + [ TeX-arg-eval completing-read + (TeX-argument-prompt optional nil "Front color") + (LaTeX-xcolor-definecolor-list) ] + [ TeX-arg-eval completing-read + (TeX-argument-prompt optional nil "Line color") + (LaTeX-xcolor-definecolor-list) ] ) + + ;; 4.2.2 Declaring styles + ;; \newmenustylesimple*{}[

]{