]> code.delx.au - gnu-emacs/blobdiff - lisp/textmodes/tex-mode.el
Auto-commit of loaddefs files.
[gnu-emacs] / lisp / textmodes / tex-mode.el
index 480ab8a581a13b61e602e34406c7de0d75425759..dce996070740597cb13e0213cd02e3cd107c9b1a 100644 (file)
@@ -1,9 +1,9 @@
 ;;; tex-mode.el --- TeX, LaTeX, and SliTeX mode commands -*- coding: utf-8 -*-
 
-;; Copyright (C) 1985-1986, 1989, 1992, 1994-1999, 2001-2013 Free
+;; Copyright (C) 1985-1986, 1989, 1992, 1994-1999, 2001-2014 Free
 ;; Software Foundation, Inc.
 
-;; Maintainer: FSF
+;; Maintainer: emacs-devel@gnu.org
 ;; Keywords: tex
 
 ;; Contributions over the years by William F. Schelter, Dick King,
@@ -271,9 +271,7 @@ otherwise the value of `tex-start-options', the \(shell-quoted\)
 value of `tex-start-commands', and the file name are added at the end
 with blanks as separators.
 
-In TeX, LaTeX, and SliTeX Mode this variable becomes buffer local.
-In these modes, use \\[set-variable] if you want to change it for the
-current buffer.")
+In TeX, LaTeX, and SliTeX Mode this variable becomes buffer local.")
 
 (defvar tex-trailer nil
   "String appended after the end of a region sent to TeX by \\[tex-region].")
@@ -2682,6 +2680,8 @@ Runs the shell command defined by `tex-show-queue-command'."
 (defvar tex-indent-item tex-indent-basic)
 (defvar tex-indent-item-re "\\\\\\(bib\\)?item\\>")
 (defvar latex-noindent-environments '("document"))
+(put 'latex-noindent-environments 'safe-local-variable
+     (lambda (x) (null (delq t (mapcar 'stringp x)))))
 
 (defvar tex-latex-indent-syntax-table
   (let ((st (make-syntax-table tex-mode-syntax-table)))
@@ -2803,7 +2803,7 @@ There might be text before point."
          (t
           (let ((col (current-column)))
             (if (or (not (eq (char-syntax (or (char-after pos) ?\s)) ?\())
-                    ;; Can't be an arg if there's an empty line inbetween.
+                    ;; Can't be an arg if there's an empty line in between.
                     (save-excursion (re-search-forward "^[ \t]*$" pos t)))
                 ;; If the first char was not an open-paren, there's
                 ;; a risk that this is really not an argument to the