[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 77/299: * latex.el (TeX-arg-document): Search for LaTeX classes.
From: |
Stefan Monnier |
Subject: |
[elpa] 77/299: * latex.el (TeX-arg-document): Search for LaTeX classes. |
Date: |
Sun, 02 Nov 2014 03:10:27 +0000 |
monnier pushed a commit to branch externals/auctex
in repository elpa.
commit 448b75dd11a3a2fb48964c173d7310541256b1bb
Author: Tassilo Horn <address@hidden>
Date: Tue Apr 2 07:22:29 2013 +0000
* latex.el (TeX-arg-document): Search for LaTeX classes.
---
ChangeLog | 4 ++++
latex.el | 26 +++++++++++++++++---------
2 files changed, 21 insertions(+), 9 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index eaedaa1..ca24cf5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-03-29 Mos� Giordano <address@hidden>
+
+ * latex.el (TeX-arg-document): Search for LaTeX classes.
+
2013-03-28 Mos� Giordano <address@hidden>
* style/biblatex.el (LaTeX-biblatex-package-options): Correct name
diff --git a/latex.el b/latex.el
index c06e365..ada12d4 100644
--- a/latex.el
+++ b/latex.el
@@ -1737,15 +1737,23 @@ string."
(defun TeX-arg-document (optional &optional ignore)
"Insert arguments to documentclass.
OPTIONAL and IGNORE are ignored."
- (let ((style (completing-read
- (concat "Document class: (default " LaTeX-default-style ") ")
- LaTeX-style-list))
- (options (read-string "Options: "
- (if (stringp LaTeX-default-options)
- LaTeX-default-options
- (mapconcat 'identity
- LaTeX-default-options
- ",")))))
+ (let* ((TeX-file-extensions '("cls"))
+ (search (if (eq TeX-arg-input-file-search 'ask)
+ (not (y-or-n-p "Find class yourself? "))
+ TeX-arg-input-file-search))
+ (LaTeX-style-list
+ (if search
+ (mapcar 'identity (TeX-search-files-by-type 'texinputs 'global t
t))
+ LaTeX-style-list))
+ (style (completing-read
+ (concat "Document class: (default " LaTeX-default-style ") ")
+ LaTeX-style-list))
+ (options (read-string "Options: "
+ (if (stringp LaTeX-default-options)
+ LaTeX-default-options
+ (mapconcat 'identity
+ LaTeX-default-options
+ ",")))))
(if (zerop (length style))
(setq style LaTeX-default-style))
(if (not (zerop (length options)))
- [elpa] 70/299: * tex.el (TeX-command-list): Add support for xindy., (continued)
- [elpa] 70/299: * tex.el (TeX-command-list): Add support for xindy., Stefan Monnier, 2014/11/01
- [elpa] 69/299: * latex.el (LaTeX-common-initialization): Added regular expression for thispagestyle and pagestyle to `TeX-complete-list'., Stefan Monnier, 2014/11/01
- [elpa] 66/299: * 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'., Stefan Monnier, 2014/11/01
- [elpa] 62/299: * style/kpfonts.el: New style file., Stefan Monnier, 2014/11/01
- [elpa] 71/299: * style/amsopn.el: Add GPL copyright notice. ("amsopn"): Add regex for \DeclareMathOperator to `LaTeX-auto-regexp-list'. Use `TeX-arg-define-macro' for \DeclareMathOperator., Stefan Monnier, 2014/11/01
- [elpa] 73/299: * tex.el (TeX-add-local-master): Remove trailing spaces from inserted lines., Stefan Monnier, 2014/11/01
- [elpa] 72/299: * latex.el (TeX-read-key-val): New function. (TeX-arg-key-val): Use `TeX-read-key-val'., Stefan Monnier, 2014/11/01
- [elpa] 76/299: * style/biblatex.el (LaTeX-biblatex-package-options): Correct name of `TeX-read-key-val' argument., Stefan Monnier, 2014/11/01
- [elpa] 75/299: * latex.el (LaTeX-common-initialization): Remove `addbibresource' macro., Stefan Monnier, 2014/11/01
- [elpa] 74/299: * 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., Stefan Monnier, 2014/11/01
- [elpa] 77/299: * latex.el (TeX-arg-document): Search for LaTeX classes.,
Stefan Monnier <=
- [elpa] 80/299: Fix for conversion to git., Stefan Monnier, 2014/11/01
- [elpa] 79/299: Minor fix for the latest commit., Stefan Monnier, 2014/11/01
- [elpa] 81/299: Add .gitignore file., Stefan Monnier, 2014/11/01
- [elpa] 85/299: Minor docfix., Stefan Monnier, 2014/11/01
- [elpa] 83/299: provide completion for options in `TeX-arg-document', Stefan Monnier, 2014/11/01
- [elpa] 84/299: improve completion in LaTeX-arg-usepackage, Stefan Monnier, 2014/11/01
- [elpa] 82/299: Delete CVS Id keywords from lisp files., Stefan Monnier, 2014/11/01
- [elpa] 87/299: Support darwin., Stefan Monnier, 2014/11/01
- [elpa] 78/299: Better management of package options., Stefan Monnier, 2014/11/01
- [elpa] 90/299: Update README for Git., Stefan Monnier, 2014/11/01