[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] [elpa] externals/auctex 2e6846e 04/71: Check the options
From: |
Tassilo Horn |
Subject: |
[AUCTeX-diffs] [elpa] externals/auctex 2e6846e 04/71: Check the options and load the style backref.el |
Date: |
Fri, 17 Dec 2021 15:00:25 -0500 (EST) |
branch: externals/auctex
commit 2e6846e148589fe4841d342bf0f07e5753ab720c
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>
Check the options and load the style backref.el
* style/hyperref.el ("hyperref"): Run the style hook for
backref.el when the corresponding option is given.
Correct link to testform.tex.
---
style/hyperref.el | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/style/hyperref.el b/style/hyperref.el
index 21b9d1d..b5a0f24 100644
--- a/style/hyperref.el
+++ b/style/hyperref.el
@@ -1,6 +1,6 @@
;;; hyperref.el --- AUCTeX style for `hyperref.sty' v6.83m -*-
lexical-binding: t; -*-
-;; Copyright (C) 2008, 2013-2020 Free Software Foundation, Inc.
+;; Copyright (C) 2008, 2013-2021 Free Software Foundation, Inc.
;; Author: Ralf Angeli <angeli@caeruleus.net>
;; Maintainer: auctex-devel@gnu.org
@@ -259,7 +259,7 @@
'("Acrobatmenu" "Menu option" "Text")
;; The next 6 macros take Key-vals defined in
;; "LaTeX-hyperref-forms-options". For an example, see
- ;; http://mirrors.ctan.org/macros/latex/contrib/hyperref/test/testform.tex
+ ;; https://github.com/latex3/hyperref/blob/main/test/testform.tex
'("TextField" [ (TeX-arg-key-val LaTeX-hyperref-forms-options) ] "Label")
'("CheckBox" [ (TeX-arg-key-val LaTeX-hyperref-forms-options) ] "Label")
'("ChoiceMenu" [ (TeX-arg-key-val LaTeX-hyperref-forms-options) ] "Label"
"Choices")
@@ -325,6 +325,17 @@
(not (eq TeX-engine 'xetex)))
(setq TeX-PDF-from-DVI "Dvipdfmx"))
+ ;; Loop over the possible options and load backref.el:
+ (let ((opts '("backref"
+ "backref=section"
+ "backref=slide"
+ "backref=page"
+ "pagebackref"
+ "pagebackref=true")))
+ (dolist (opt opts)
+ (when (LaTeX-provided-package-options-member "hyperref" opt)
+ (TeX-run-style-hooks "backref"))))
+
;; Activate RefTeX reference style.
(and LaTeX-reftex-ref-style-auto-activate
(fboundp 'reftex-ref-style-activate)
- [AUCTeX-diffs] [elpa] externals/auctex updated (46c464b -> 2ee9a07), Tassilo Horn, 2021/12/17
- [AUCTeX-diffs] [elpa] externals/auctex 2e6846e 04/71: Check the options and load the style backref.el,
Tassilo Horn <=
- [AUCTeX-diffs] [elpa] externals/auctex 3174ded 01/71: Add new style/backref.el, Tassilo Horn, 2021/12/17
- [AUCTeX-diffs] [elpa] externals/auctex 45d3a11 08/71: ; Fix unbalanced parentheses, Tassilo Horn, 2021/12/17
- [AUCTeX-diffs] [elpa] externals/auctex 9a42bf4 29/71: ; Minor doc fixes, Tassilo Horn, 2021/12/17
- [AUCTeX-diffs] [elpa] externals/auctex 2d9944d 03/71: ; Improve initial commit., Tassilo Horn, 2021/12/17
- [AUCTeX-diffs] [elpa] externals/auctex 199bc6e 48/71: Use coherent logic to identify code comment (bug#51762), Tassilo Horn, 2021/12/17
- [AUCTeX-diffs] [elpa] externals/auctex 4e15656 19/71: Cleanup indentation of verbatim environments, Tassilo Horn, 2021/12/17
- [AUCTeX-diffs] [elpa] externals/auctex ba1cbd2 53/71: Improve handling of key=vals in style/caption.el, Tassilo Horn, 2021/12/17
- [AUCTeX-diffs] [elpa] externals/auctex f72f849 15/71: Delete obsolete files and targets, Tassilo Horn, 2021/12/17
- [AUCTeX-diffs] [elpa] externals/auctex 9284ac6 22/71: Explain how to do forward search by mouse, Tassilo Horn, 2021/12/17
- [AUCTeX-diffs] [elpa] externals/auctex 43f6398 46/71: Improve handling of key=vals in style/enumitem.el, Tassilo Horn, 2021/12/17