branch: elpa
commit bafe761f8e9d62258f25eb146d1225bd6f6c2966
Author: Mosè Giordano <[email protected]>
Commit: Mosè Giordano <[email protected]>

    url macro accepts only braces in hyperref
    
    * style/hyperref.el: Update copyright years.
    ("hyperref"): Remove "url" from
    `LaTeX-verbatim-macros-with-delims-local', it was added by url.el, but
    in hyperref "\url" has a different syntax.
---
 style/hyperref.el |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/style/hyperref.el b/style/hyperref.el
index f2063b9..c57c188 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--2015 Free Software Foundation, Inc.
+;; Copyright (C) 2008, 2013--2016 Free Software Foundation, Inc.
 
 ;; Author: Ralf Angeli <[email protected]>
 ;; Maintainer: [email protected]
@@ -277,6 +277,11 @@
    (add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperimage")
    (add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperref")
 
+   ;; 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
+   (setq LaTeX-verbatim-macros-with-delims-local
+        (remove "url"  LaTeX-verbatim-macros-with-delims-local))
+
    ;; Fontification
    (when (and (fboundp 'font-latex-add-keywords)
              (fboundp 'font-latex-set-syntactic-keywords)

Reply via email to