[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 67/299: * tex.el (TeX-run-style-hooks): Guard running style hooks
From: |
Stefan Monnier |
Subject: |
[elpa] 67/299: * 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. |
Date: |
Sun, 02 Nov 2014 03:10:21 +0000 |
monnier pushed a commit to branch externals/auctex
in repository elpa.
commit 5e898c95b1401525c44363176aa8c8aab3de50b5
Author: Tassilo Horn <address@hidden>
Date: Tue Feb 26 08:01:28 2013 +0000
* 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.
---
ChangeLog | 7 +++++++
tex.el | 11 +++++++++--
2 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 05b0122..50558c3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2013-02-26 Tassilo Horn <address@hidden>
+
+ * 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 <address@hidden>
* style/dinbrief.el ("dinbrief"): Update dinbrief style.
diff --git a/tex.el b/tex.el
index e9036ba..4fe5e2e 100644
--- a/tex.el
+++ b/tex.el
@@ -2433,8 +2433,15 @@ active.")
(TeX-master-directory))
style (substring style
(match-beginning 2) (match-end 2))))
- (mapcar 'funcall
- (cdr-safe (assoc style TeX-style-hook-list))))))
+ (condition-case err
+ (mapcar 'funcall
+ (cdr-safe (assoc style TeX-style-hook-list)))
+ ;; This happens in case some style added a new parser, and
+ ;; now the style isn't used anymore (user deleted
+ ;; \usepackage{style}). Then we're left over with, e.g.,
+ ;; (LaTeX-add-siunitx-units "\\parsec"), but the function is
+ ;; defined in a style siunitx.el that's not loaded anymore.
+ (void-function nil)))))
styles))
(defcustom TeX-parse-self nil
- [elpa] 56/299: * style/subfigure.el: Expanded copyright range. ("subfigure"): Collapsed the two regular expressions for completion. Added lengths, and commands for fonts., (continued)
- [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
- [elpa] 65/299: * 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., Stefan Monnier, 2014/11/01
- [elpa] 67/299: * 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.,
Stefan Monnier <=
- [elpa] 59/299: * tex.el (require): Require crm., Stefan Monnier, 2014/11/01
- [elpa] 68/299: * latex.el (TeX-arg-date): New function. (LaTeX-common-initialization): Use `TeX-arg-date' for \date macro., Stefan Monnier, 2014/11/01
- [elpa] 57/299: * style/siunitx.el (LaTeX-siunitx-package-options): New function., Stefan Monnier, 2014/11/01
- [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