[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex af12165 16/36: Add new `ifluatex.el' style
From: |
Stefan Monnier |
Subject: |
[elpa] externals/auctex af12165 16/36: Add new `ifluatex.el' style |
Date: |
Fri, 28 Nov 2014 17:25:45 +0000 |
branch: externals/auctex
commit af12165c126b32532e7ea70654d7790da532e040
Author: Davide G. M. Salvetti <address@hidden>
Date: Sat Nov 15 15:36:57 2014 +0100
Add new `ifluatex.el' style
---
ChangeLog | 2 +
style/ifluatex.el | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 63 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 8fbb2e5..f017e87 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2014-11-15 Davide G. M. Salvetti <address@hidden>
+ * 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.
diff --git a/style/ifluatex.el b/style/ifluatex.el
new file mode 100644
index 0000000..48e1bd6
--- /dev/null
+++ b/style/ifluatex.el
@@ -0,0 +1,61 @@
+;;; ifluatex.el --- AUCTeX style for `ifluatex.sty' version 1.3.
+
+;; Copyright (C) 2014 Free Software Foundation, Inc.
+
+;; Author: Davide G. M. Salvetti <address@hidden>
+;; Maintainer: address@hidden
+;; 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
+;; <http://www.gnu.org/licenses/>.
+
+;;; 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")
+
+ (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
- [elpa] externals/auctex 022873b 05/36: Fix typo in Makefile.in., (continued)
- [elpa] externals/auctex 022873b 05/36: Fix typo in Makefile.in., Stefan Monnier, 2014/11/28
- [elpa] externals/auctex c2d3585 03/36: Update MinionPro style., Stefan Monnier, 2014/11/28
- [elpa] externals/auctex c72f8a8 08/36: Prepare for find-file-hooks being removed from Emacs., Stefan Monnier, 2014/11/28
- [elpa] externals/auctex bcea858 10/36: Added ChangeLog entries for commit [0c2cfc8], Stefan Monnier, 2014/11/28
- [elpa] externals/auctex 10de62b 07/36: Several changes suggested by byte-compiler warnings., Stefan Monnier, 2014/11/28
- [elpa] externals/auctex 67756b7 13/36: Fix typo, Stefan Monnier, 2014/11/28
- [elpa] externals/auctex 43ff21a 12/36: Fix documentation about changing font attributes of existing text, Stefan Monnier, 2014/11/28
- [elpa] externals/auctex d8dd53d 14/36: Update manual, Stefan Monnier, 2014/11/28
- [elpa] externals/auctex f9611ad 04/36: Add new styles., Stefan Monnier, 2014/11/28
- [elpa] externals/auctex 7f64d6c 15/36: Update the FAQ entry about failing `TeX-next-error' behavior, Stefan Monnier, 2014/11/28
- [elpa] externals/auctex af12165 16/36: Add new `ifluatex.el' style,
Stefan Monnier <=
- [elpa] externals/auctex c4feba1 17/36: Add new `luatextra.el' style, Stefan Monnier, 2014/11/28
- [elpa] externals/auctex 1997613 11/36: Add copyright notice to style/foils.el, Stefan Monnier, 2014/11/28
- [elpa] externals/auctex deb1a64 24/36: Use more consistent fontification in some styles, Stefan Monnier, 2014/11/28
- [elpa] externals/auctex 29724a5 19/36: Add `luatextra.el' to Makefile.in, Stefan Monnier, 2014/11/28
- [elpa] externals/auctex 20c7209 27/36: Fix fontification of a couple of fontspec macros., Stefan Monnier, 2014/11/28
- [elpa] externals/auctex 0cb3759 26/36: Implement inverse/backward search for TeX regions., Stefan Monnier, 2014/11/28
- [elpa] externals/auctex 0bae61a 18/36: Add `ifluatex.el' to Makefile.in, Stefan Monnier, 2014/11/28
- [elpa] externals/auctex daa8a25 20/36: Update windows-package Make rule to new Emacs 24.4 package., Stefan Monnier, 2014/11/28
- [elpa] externals/auctex 622c054 22/36: Document presence of bashisms in some Make rules., Stefan Monnier, 2014/11/28
- [elpa] externals/auctex 904dfef 21/36: Fix structure of the package for Windows., Stefan Monnier, 2014/11/28