[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 52/299: * Makefile.in (STYLESRC): Activate new style filecontents
From: |
Stefan Monnier |
Subject: |
[elpa] 52/299: * Makefile.in (STYLESRC): Activate new style filecontents.el. |
Date: |
Sun, 02 Nov 2014 03:10:14 +0000 |
monnier pushed a commit to branch externals/auctex
in repository elpa.
commit baf0c9077326a6caf5eb914f7bc1a48ea204e01c
Author: Tassilo Horn <address@hidden>
Date: Wed Feb 13 19:59:18 2013 +0000
* Makefile.in (STYLESRC): Activate new style filecontents.el.
* style/filecontents.el: New style.
---
ChangeLog | 8 +++++++
Makefile.in | 2 +-
style/filecontents.el | 54 +++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 63 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index c0deaf1..948f3dc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2013-02-13 Tassilo Horn <address@hidden>
+ * Makefile.in (STYLESRC): Activate new style filecontents.el.
+
+2013-01-23 Mads Jensen <address@hidden>
+
+ * style/filecontents.el: New style.
+
+2013-02-13 Tassilo Horn <address@hidden>
+
* Makefile.in (STYLESRC): Activate new style fancynum.el.
2013-02-08 Mads Jensen <address@hidden>
diff --git a/Makefile.in b/Makefile.in
index be83051..f1d4154 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -129,7 +129,7 @@ STYLESRC = style/prosper.el \
style/multirow.el style/imakeidx.el style/afterpage.el \
style/longtable.el style/lipsum.el style/kantlipsum.el \
style/memoir.el style/placeins.el style/nameref.el \
- style/fancynum.el
+ style/fancynum.el style/filecontents.el
STYLEELC = $(STYLESRC:.el=.elc)
CLEANFILES = $(AUCELC) $(STYLEELC) $(MULEELC)
diff --git a/style/filecontents.el b/style/filecontents.el
new file mode 100644
index 0000000..776c768
--- /dev/null
+++ b/style/filecontents.el
@@ -0,0 +1,54 @@
+;;; filecontents.el --- AUCTeX style for `filecontents.sty'
+
+;; Copyright (C) 2013 Free Software Foundation, Inc.
+
+;; Author: Mads Jensen <address@hidden>
+;; Maintainer: address@hidden
+;; Created: 2013-01-01
+;; 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 `filecontents.sty'. The package removes the two
+;; constraints that `filecontents' from LaTeX2e has, namely that the
environment
+;; must be before the documentclass (or \begin{document} according to some
+;; sources), and that existing files are not overwritten.
+
+;;; Code:
+
+(TeX-add-style-hook
+ "filecontents"
+ (lambda ()
+ (LaTeX-add-environments
+ '("filecontents" LaTeX-env-filecontents)
+ '("filecontents*" LaTeX-env-filecontents))))
+
+(defun LaTeX-env-filecontents (environment)
+ "Insert ENVIRONMENT with filename for contents."
+ (LaTeX-insert-environment environment
+ (concat TeX-grop
+ (read-string "File: ")
+ TeX-grcl))
+ (delete-horizontal-space))
+
+(defvar LaTeX-filecontents-package-options nil
+ "Package options for filecontents.")
+
+;; filecontents.el ends here
- [elpa] 41/299: * 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., (continued)
- [elpa] 41/299: * 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., Stefan Monnier, 2014/11/01
- [elpa] 43/299: * tex-buf.el (TeX-output-mode): Make revert-buffer-function buffer local before setting it to TeX-output-revert-buffer., Stefan Monnier, 2014/11/01
- [elpa] 42/299: * auctex.texi: Updated documetation about ChkTeX and lacheck. Fixed typos., Stefan Monnier, 2014/11/01
- [elpa] 44/299: * style/siunitx.el ("siunitx"): Add `\gram' and `\SendSettingsToPgf'., Stefan Monnier, 2014/11/01
- [elpa] 46/299: * 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., Stefan Monnier, 2014/11/01
- [elpa] 45/299: * 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., Stefan Monnier, 2014/11/01
- [elpa] 47/299: * doc/todo.texi (Wishlist): Remove "Completion for sboxes"., Stefan Monnier, 2014/11/01
- [elpa] 48/299: * 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., Stefan Monnier, 2014/11/01
- [elpa] 51/299: * Makefile.in (STYLESRC): Activate new style fancynum.el., Stefan Monnier, 2014/11/01
- [elpa] 50/299: * Makefile.in (STYLESRC): Activate new style nameref.el., Stefan Monnier, 2014/11/01
- [elpa] 52/299: * Makefile.in (STYLESRC): Activate new style filecontents.el.,
Stefan Monnier <=
- [elpa] 55/299: * style/fancyhdr.el (TeX-arg-fancyhdr-position): Document the OPTIONAL argument., Stefan Monnier, 2014/11/01
- [elpa] 56/299: * style/subfigure.el: Expanded copyright range. ("subfigure"): Collapsed the two regular expressions for completion. Added lengths, and commands for fonts., Stefan Monnier, 2014/11/01
- [elpa] 49/299: * 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., Stefan Monnier, 2014/11/01
- [elpa] 53/299: * 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'., Stefan Monnier, 2014/11/01
- [elpa] 54/299: * Makefile.in (STYLESRC): Activate new style fancyhdr.el., Stefan Monnier, 2014/11/01
- [elpa] 60/299: * Makefile.in (STYLESRC): Activate new style array.el., Stefan Monnier, 2014/11/01
- [elpa] 61/299: * latex.el (LaTeX-math-default): Move `digamma' and `varkappa' to `AMS > Greek Lowercase' menu., Stefan Monnier, 2014/11/01
- [elpa] 58/299: * 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., Stefan Monnier, 2014/11/01
- [elpa] 63/299: * style/scrbase.el ("scrbase"): Add \minisec macro to `LaTeX-paragraph-commands' locally., Stefan Monnier, 2014/11/01
- [elpa] 64/299: * latex.el (LaTeX-paragraph-commands-internal): Add \clearpage and \newpage., Stefan Monnier, 2014/11/01