[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex fcaef6b 11/80: Improve fontification of \href ma
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex fcaef6b 11/80: Improve fontification of \href macro |
Date: |
Wed, 16 Oct 2019 11:07:07 -0400 (EDT) |
branch: externals/auctex
commit fcaef6bab89e6a629d60f1b43038a2433e34fbd5
Author: Arash Esbati <address@hidden>
Commit: Arash Esbati <address@hidden>
Improve fontification of \href macro
* style/hyperref.el ("hyperref"): Add "href" to
`LaTeX-verbatim-macros-with-braces-local'.
Check for feature font-latex and not for functions.
Declare and use `font-latex-update-font-lock' instead of
`font-latex-set-syntactic-keywords'.
---
style/hyperref.el | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/style/hyperref.el b/style/hyperref.el
index 02d886e..3b25491 100644
--- a/style/hyperref.el
+++ b/style/hyperref.el
@@ -1,6 +1,6 @@
;;; hyperref.el --- AUCTeX style for `hyperref.sty' v6.83m
-;; Copyright (C) 2008, 2013--2016, 2018 Free Software Foundation, Inc.
+;; Copyright (C) 2008, 2013--2019 Free Software Foundation, Inc.
;; Author: Ralf Angeli <address@hidden>
;; Maintainer: address@hidden
@@ -35,6 +35,10 @@
"font-latex"
(keywords class))
+(declare-function font-latex-update-font-lock
+ "font-latex"
+ (&optional syntactic-kws))
+
(defvar LaTeX-hyperref-package-options-list
'(;; See https://www.tug.org/applications/hyperref/manual.html#x1-40003
;; General options
@@ -286,6 +290,7 @@
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperbaseurl")
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperimage")
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperref")
+ (add-to-list 'LaTeX-verbatim-macros-with-braces-local "href")
;; In hyperref package, \url macro is redefined and \url|...| can't be used,
;; while it's possible when only url package (required by hyperref) is
loaded
@@ -293,8 +298,7 @@
(remove "url" LaTeX-verbatim-macros-with-delims-local))
;; Fontification
- (when (and (fboundp 'font-latex-add-keywords)
- (fboundp 'font-latex-set-syntactic-keywords)
+ (when (and (featurep 'font-latex)
(eq TeX-install-font-lock 'font-latex-setup))
(font-latex-add-keywords '(("href" "[{{")
("nolinkurl" "{")
@@ -312,7 +316,7 @@
(font-latex-add-keywords '(("hypersetup" "{"))
'function)
;; For syntactic fontification, e.g. verbatim constructs.
- (font-latex-set-syntactic-keywords))
+ (font-latex-update-font-lock t))
;; Option management
(if (and (LaTeX-provided-package-options-member "hyperref" "dvipdfmx")
- [elpa] externals/auctex 5b97c38 01/80: Add dependencies file auctex-pkg.el, (continued)
- [elpa] externals/auctex 5b97c38 01/80: Add dependencies file auctex-pkg.el, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex c8177fd 05/80: * style/listings.el: Require tex.el., Tassilo Horn, 2019/10/16
- [elpa] externals/auctex c531148 04/80: ; Improve previous change in auctex.el.in, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 3543e45 06/80: New styles for beamerarticle & beamerswitch triggering beamer, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 78c0f09 07/80: Fix fontification of simple macros, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 083964b 02/80: Delete auctex-pkg.el which is not needed for ELPA releases, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex b82ab0c 08/80: Support up to 12 command arguments., Tassilo Horn, 2019/10/16
- [elpa] externals/auctex cd39966 14/80: ; Fix typos, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 686a8ed 13/80: Elaborate LaTeX math insertion command, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 8a36595 12/80: Fix handling of function entries in `TeX-complete-list', Tassilo Horn, 2019/10/16
- [elpa] externals/auctex fcaef6b 11/80: Improve fontification of \href macro,
Tassilo Horn <=
- [elpa] externals/auctex 23b3405 23/80: ; Fix typos, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 3b3c224 26/80: Remove compatibility code for xemacs, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 2a642a4 19/80: Add support for ChangeLog entries for LaTeX files, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex a8bbd1f 31/80: ; Fix document, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex ab57cb0 21/80: Add new function `LaTeX-extract-key-value-label', Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 4776fd0 25/80: ; Remove compatibility code for older emacsen, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 92c090d 30/80: Fix treatment of class and package options, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex a30db7c 24/80: Allow the user to customize which TeX commands are available in each mode., Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 4d0cf0f 10/80: ; Silence the compiler, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 7872796 15/80: * tex-info.el (TeX-texinfo-mode): Set `add-log-current-defun-function' locally., Tassilo Horn, 2019/10/16