aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorPaul Eggert2015-02-25 22:53:56 -0800
committerPaul Eggert2015-02-25 22:53:56 -0800
commitd8e9122115b5ffcec342c841b81cb2d2b8217e4b (patch)
tree477830be0a1707699381146a4ed45c53d0b928b0 /lisp/textmodes
parentcbd447e1cdbbebcd2a04144194138bb7936dea9d (diff)
parente726f2058c98e68c951bdb290fe68dac2a84ff65 (diff)
downloademacs-d8e9122115b5ffcec342c841b81cb2d2b8217e4b.tar.gz
emacs-d8e9122115b5ffcec342c841b81cb2d2b8217e4b.zip
Merge from origin/emacs-24
e726f20 Handle "#" operator properly inside macro. Fix coding bug. 618931b Handle dead frame in menu-bar-non-minibuffer-window-p. (Bug#19728) 017a03a Document MS-Windows file-name idiosyncrasies (Bug#19463) f3faf4f Fix description of Customize buffer in Emacs manual. 1c1d0b7 Fix a typo in the Emacs manual's Hungry Delete description. be7fb82 src/dispextern.h (FACE_FOR_CHAR): Fix the commentary. 33c4409 Spelling fixes 6c8231e python.el: Handle tabs in python-indent-dedent-line. 41c3b92 * lisp/progmodes/python.el: Respect user indentation after comment. 868df45 Avoid compiler warnings in decode_env_path. b28c979 Fix XEmacs version typo in comment and ChangeLog 989fb32 Improve solution of bug #19701 6310530 Fix refilling of list of language environments in User Manual c4c447d Restore XEmacs compatibility Conflicts: doc/emacs/ChangeLog lisp/ChangeLog src/ChangeLog test/ChangeLog
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/reftex-vars.el32
1 files changed, 18 insertions, 14 deletions
diff --git a/lisp/textmodes/reftex-vars.el b/lisp/textmodes/reftex-vars.el
index 7fe6882d3ca..7f050e9fd90 100644
--- a/lisp/textmodes/reftex-vars.el
+++ b/lisp/textmodes/reftex-vars.el
@@ -867,13 +867,17 @@ DOWNCASE t: Downcase words before using them."
867 (string :tag "")) 867 (string :tag ""))
868 (option (boolean :tag "Downcase words ")))) 868 (option (boolean :tag "Downcase words "))))
869 869
870(defcustom reftex-label-regexps 870(if (featurep 'xemacs)
871 '(;; Normal \\label{foo} labels 871 ;; XEmacs 21.5 doesn't have explicitly numbered matching groups,
872 "\\\\label{\\(?1:[^}]*\\)}" 872 ;; so this list mustn't get any more items.
873 ;; keyvals [..., label = {foo}, ...] forms used by ctable, 873 (defconst reftex-label-regexps '("\\\\label{\\([^}]*\\)}"))
874 ;; listings, minted, ... 874 (defcustom reftex-label-regexps
875 "\\[[^]]*\\<label[[:space:]]*=[[:space:]]*{?\\(?1:[^],}]+\\)}?") 875 '(;; Normal \\label{foo} labels
876 "List of regexps matching \\label definitions. 876 "\\\\label{\\(?1:[^}]*\\)}"
877 ;; keyvals [..., label = {foo}, ...] forms used by ctable,
878 ;; listings, minted, ...
879 "\\[[^]]*\\<label[[:space:]]*=[[:space:]]*{?\\(?1:[^],}]+\\)}?")
880 "List of regexps matching \\label definitions.
877The default value matches usual \\label{...} definitions and 881The default value matches usual \\label{...} definitions and
878keyval style [..., label = {...}, ...] label definitions. It is 882keyval style [..., label = {...}, ...] label definitions. It is
879assumed that the regexp group 1 matches the label text, so you 883assumed that the regexp group 1 matches the label text, so you
@@ -882,13 +886,13 @@ have to define it using \\(?1:...\\) when adding new regexps.
882When changed from Lisp, make sure to call 886When changed from Lisp, make sure to call
883`reftex-compile-variables' afterwards to make the change 887`reftex-compile-variables' afterwards to make the change
884effective." 888effective."
885 :version "24.4" 889 :version "24.4"
886 :set (lambda (symbol value) 890 :set (lambda (symbol value)
887 (set symbol value) 891 (set symbol value)
888 (when (fboundp 'reftex-compile-variables) 892 (when (fboundp 'reftex-compile-variables)
889 (reftex-compile-variables))) 893 (reftex-compile-variables)))
890 :group 'reftex-defining-label-environments 894 :group 'reftex-defining-label-environments
891 :type '(repeat (regexp :tag "Regular Expression"))) 895 :type '(repeat (regexp :tag "Regular Expression"))))
892 896
893(defcustom reftex-label-ignored-macros-and-environments nil 897(defcustom reftex-label-ignored-macros-and-environments nil
894 "List of macros and environments to be ignored when searching for labels. 898 "List of macros and environments to be ignored when searching for labels.