Index: hyperref.el =================================================================== RCS file: /sources/auctex/auctex/style/hyperref.el,v retrieving revision 1.3 diff -u -u -r1.3 hyperref.el --- hyperref.el 27 Dec 2012 19:59:45 -0000 1.3 +++ hyperref.el 12 Feb 2013 11:08:51 -0000 @@ -1,6 +1,6 @@ ;;; hyperref.el --- AUCTeX style for `hyperref.sty' v6.83m -;; Copyright (C) 2008 Free Software Foundation, Inc. +;; Copyright (C) 2008, 2013 Free Software Foundation, Inc. ;; Author: Ralf Angeli ;; Maintainer: address@hidden @@ -195,13 +195,19 @@ '("MakeCheckField" "Width" "Height") '("MakeTextField" "Width" "Height") '("MakeChoiceField" "Width" "Height") - '("MakeButtonField" "Text")) + '("MakeButtonField" "Text") + '("nameref" TeX-arg-label)) (add-to-list 'LaTeX-verbatim-macros-with-braces-local "nolinkurl") (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") + ;; Completion for arguments + (setq TeX-complete-list + (append '(("\\\\nameref{\\([^{}\n\r\\%,]*\\)" 1 LaTeX-label-list "}")) + TeX-complete-list)) + ;; Fontification (when (and (fboundp 'font-latex-add-keywords) (fboundp 'font-latex-set-syntactic-keywords) @@ -217,7 +223,8 @@ ("autoref" "{") ("ref" "*{") ("pageref" "*{") - ("autopageref" "*{")) + ("autopageref" "*{") + ("nameref" "{")) 'reference) ;; For syntactic fontification, e.g. verbatim constructs. (font-latex-set-syntactic-keywords))