comparison lisp/textmodes/reftex.el @ 21892:f718f5a51f59

C. Dominik <cd@gnu.org> Added :version tags to defcustoms
author Carsten Dominik <dominik@science.uva.nl>
date Fri, 01 May 1998 08:26:20 +0000
parents dbe101f49d57
children 2d0bece94ee7
comparison
equal deleted inserted replaced
21891:7d49e4c824b6 21892:f718f5a51f59
729 Normally should be nil, unless you want to do something fancy. 729 Normally should be nil, unless you want to do something fancy.
730 The function will be called with two arguments, the LABEL and the DEFAULT 730 The function will be called with two arguments, the LABEL and the DEFAULT
731 FORMAT, which usually is `\label{%s}'. The function should return the 731 FORMAT, which usually is `\label{%s}'. The function should return the
732 string to insert into the buffer." 732 string to insert into the buffer."
733 :group 'reftex-making-and-inserting-labels 733 :group 'reftex-making-and-inserting-labels
734 :version "20.3"
734 :type 'function) 735 :type 'function)
735 736
736 ;; Label referencing 737 ;; Label referencing
737 738
738 (defgroup reftex-referencing-labels nil 739 (defgroup reftex-referencing-labels nil
811 already be specified in `reftex-label-alist'. 812 already be specified in `reftex-label-alist'.
812 The function will be called with two arguments, the LABEL and the DEFAULT 813 The function will be called with two arguments, the LABEL and the DEFAULT
813 FORMAT, which normally is `~\ref{%s}'. The function should return the 814 FORMAT, which normally is `~\ref{%s}'. The function should return the
814 string to insert into the buffer." 815 string to insert into the buffer."
815 :group 'reftex-referencing-labels 816 :group 'reftex-referencing-labels
817 :version "20.3"
816 :type 'function) 818 :type 'function)
817 819
818 ;; BibteX citation configuration ---------------------------------------- 820 ;; BibteX citation configuration ----------------------------------------
819 821
820 (defgroup reftex-citation-support nil 822 (defgroup reftex-citation-support nil
832 The file names have to be in the exact same form as in the bibliography 834 The file names have to be in the exact same form as in the bibliography
833 macro - i.e. without the `.bib' extension. 835 macro - i.e. without the `.bib' extension.
834 Intended for files which contain only `@string' macro definitions and the 836 Intended for files which contain only `@string' macro definitions and the
835 like, which are ignored by RefTeX anyway." 837 like, which are ignored by RefTeX anyway."
836 :group 'reftex-citation-support 838 :group 'reftex-citation-support
839 :version "20.3"
837 :set 'reftex-set-dirty 840 :set 'reftex-set-dirty
838 :type '(repeat (string :tag "File name"))) 841 :type '(repeat (string :tag "File name")))
839 842
840 (defcustom reftex-default-bibliography nil 843 (defcustom reftex-default-bibliography nil
841 "*List of BibTeX database file which should be used if none are specified. 844 "*List of BibTeX database file which should be used if none are specified.
842 When `reftex-citation' is called from a document which has neither a 845 When `reftex-citation' is called from a document which has neither a
843 `\bibliography{..}' statement nor a `thebibliography' environment, 846 `\bibliography{..}' statement nor a `thebibliography' environment,
844 RefTeX will scan these files instead. Intended for using 847 RefTeX will scan these files instead. Intended for using
845 `reftex-citation' in non-LaTeX files." 848 `reftex-citation' in non-LaTeX files."
846 :group 'reftex-citation-support 849 :group 'reftex-citation-support
850 :version "20.3"
847 :type '(repeat (file))) 851 :type '(repeat (file)))
848 852
849 (defcustom reftex-sort-bibtex-matches 'reverse-year 853 (defcustom reftex-sort-bibtex-matches 'reverse-year
850 "*Sorting of the entries found in BibTeX databases by reftex-citation. 854 "*Sorting of the entries found in BibTeX databases by reftex-citation.
851 Possible values: 855 Possible values:
945 already be specified in `reftex-cite-format'. 949 already be specified in `reftex-cite-format'.
946 The function will be called with two arguments, the CITATION KEY and the 950 The function will be called with two arguments, the CITATION KEY and the
947 DEFAULT FORMAT, which is taken from `reftex-cite-format'. The function 951 DEFAULT FORMAT, which is taken from `reftex-cite-format'. The function
948 should return the string to insert into the buffer." 952 should return the string to insert into the buffer."
949 :group 'reftex-citation-support 953 :group 'reftex-citation-support
954 :version "20.3"
950 :type 'function) 955 :type 'function)
951 956
952 ;; Table of contents configuration -------------------------------------- 957 ;; Table of contents configuration --------------------------------------
953 958
954 (defgroup reftex-table-of-contents-browser nil 959 (defgroup reftex-table-of-contents-browser nil
986 If a buffer is to be kept, the file is visited normally (which is potentially 991 If a buffer is to be kept, the file is visited normally (which is potentially
987 slow but will happen only once). 992 slow but will happen only once).
988 If a buffer is to be thrown away, the initialization of the buffer depends 993 If a buffer is to be thrown away, the initialization of the buffer depends
989 upon the variable `reftex-initialize-temporary-buffers'." 994 upon the variable `reftex-initialize-temporary-buffers'."
990 :group 'reftex-miscellaneous-configurations 995 :group 'reftex-miscellaneous-configurations
996 :version "20.3"
991 :type '(choice 997 :type '(choice
992 (const :tag "Throw away everything" nil) 998 (const :tag "Throw away everything" nil)
993 (const :tag "Keep everything" t) 999 (const :tag "Keep everything" t)
994 (const :tag "Keep lookup buffers only" 1))) 1000 (const :tag "Keep lookup buffers only" 1)))
995 1001
999 visit a file. 1005 visit a file.
1000 When t, the full default initializations are done (find-file-hook etc.). 1006 When t, the full default initializations are done (find-file-hook etc.).
1001 Instead of t or nil, this variable may also be a list of hook functions to 1007 Instead of t or nil, this variable may also be a list of hook functions to
1002 do a minimal initialization." 1008 do a minimal initialization."
1003 :group 'reftex-miscellaneous-configurations 1009 :group 'reftex-miscellaneous-configurations
1010 :version "20.3"
1004 :type '(choice 1011 :type '(choice
1005 (const :tag "Read files literally" nil) 1012 (const :tag "Read files literally" nil)
1006 (const :tag "Fully initialize buffers" t) 1013 (const :tag "Fully initialize buffers" t)
1007 (repeat :tag "Hook functions" :value (nil) 1014 (repeat :tag "Hook functions" :value (nil)
1008 (function-item)))) 1015 (function-item))))
1010 (defcustom reftex-no-include-regexps '("\\.pstex_t\\'") ; default for x-symbol 1017 (defcustom reftex-no-include-regexps '("\\.pstex_t\\'") ; default for x-symbol
1011 "*List of regular expressions to exclude certain input files from parsing. 1018 "*List of regular expressions to exclude certain input files from parsing.
1012 If the name of a file included via \\include or \\input is matched by any 1019 If the name of a file included via \\include or \\input is matched by any
1013 of the regular expressions in this list, that file is not parsed by RefTeX." 1020 of the regular expressions in this list, that file is not parsed by RefTeX."
1014 :group 'reftex-optimizations-for-large-documents 1021 :group 'reftex-optimizations-for-large-documents
1022 :version "20.3"
1015 :type '(repeat (regexp))) 1023 :type '(repeat (regexp)))
1016 1024
1017 (defcustom reftex-enable-partial-scans nil 1025 (defcustom reftex-enable-partial-scans nil
1018 "*Non-nil means, re-parse only 1 file when asked to re-parse. 1026 "*Non-nil means, re-parse only 1 file when asked to re-parse.
1019 Re-parsing is normally requested with a `C-u' prefix to many RefTeX commands, 1027 Re-parsing is normally requested with a `C-u' prefix to many RefTeX commands,
1021 we will only parse the current buffer, or the file associated with the label 1029 we will only parse the current buffer, or the file associated with the label
1022 or section heading near point in a menu. Requesting re-parsing of an entire 1030 or section heading near point in a menu. Requesting re-parsing of an entire
1023 multifile document then requires a `C-u C-u' prefix or the capital `R' key 1031 multifile document then requires a `C-u C-u' prefix or the capital `R' key
1024 in menus." 1032 in menus."
1025 :group 'reftex-optimizations-for-large-documents 1033 :group 'reftex-optimizations-for-large-documents
1034 :version "20.3"
1026 :type 'boolean) 1035 :type 'boolean)
1027 1036
1028 (defcustom reftex-allow-automatic-rescan t 1037 (defcustom reftex-allow-automatic-rescan t
1029 "*Non-nil means, RefTeX may rescan the document when this seems necessary. 1038 "*Non-nil means, RefTeX may rescan the document when this seems necessary.
1030 Currently this applies only to rescanning after label insertion, when 1039 Currently this applies only to rescanning after label insertion, when
1031 the new label cannot be inserted correctly into the internal label 1040 the new label cannot be inserted correctly into the internal label
1032 list." 1041 list."
1033 :group 'reftex-optimizations-for-large-documents 1042 :group 'reftex-optimizations-for-large-documents
1043 :version "20.3"
1034 :type 'boolean) 1044 :type 'boolean)
1035 1045
1036 (defcustom reftex-save-parse-info nil 1046 (defcustom reftex-save-parse-info nil
1037 "*Non-nil means, save information gathered with parsing in a file. 1047 "*Non-nil means, save information gathered with parsing in a file.
1038 The file MASTER.rel in the same directory as MASTER.tex is used to save the 1048 The file MASTER.rel in the same directory as MASTER.tex is used to save the
1040 - accessing the parsing information for the first time in an editing session 1050 - accessing the parsing information for the first time in an editing session
1041 will read that file (if available) instead of parsing the document. 1051 will read that file (if available) instead of parsing the document.
1042 - each time (part of) the document is rescanned, a new version of the file 1052 - each time (part of) the document is rescanned, a new version of the file
1043 is written." 1053 is written."
1044 :group 'reftex-optimizations-for-large-documents 1054 :group 'reftex-optimizations-for-large-documents
1055 :version "20.3"
1045 :type 'boolean) 1056 :type 'boolean)
1046 1057
1047 (defcustom reftex-use-multiple-selection-buffers nil 1058 (defcustom reftex-use-multiple-selection-buffers nil
1048 "*Non-nil means use a separate selection buffer for each label type. 1059 "*Non-nil means use a separate selection buffer for each label type.
1049 These buffers are kept from one selection to the next and need not to be 1060 These buffers are kept from one selection to the next and need not to be
1050 created for each use - so the menu generally comes up faster. The 1061 created for each use - so the menu generally comes up faster. The
1051 selection buffers will be erased (and therefore updated) automatically 1062 selection buffers will be erased (and therefore updated) automatically
1052 when new labels in its category are added. See the variable 1063 when new labels in its category are added. See the variable
1053 `reftex-auto-update-selection-buffers'." 1064 `reftex-auto-update-selection-buffers'."
1054 :group 'reftex-optimizations-for-large-documents 1065 :group 'reftex-optimizations-for-large-documents
1066 :version "20.3"
1055 :type 'boolean) 1067 :type 'boolean)
1056 1068
1057 (defcustom reftex-auto-update-selection-buffers t 1069 (defcustom reftex-auto-update-selection-buffers t
1058 "*Non-nil means, selection buffers will be updated automatically. 1070 "*Non-nil means, selection buffers will be updated automatically.
1059 When a new label is defined with `reftex-label', all selection buffers 1071 When a new label is defined with `reftex-label', all selection buffers
1061 update upon next use. When nil, the buffers are left alone and have to be 1073 update upon next use. When nil, the buffers are left alone and have to be
1062 updated by hand, with the `g' key from the label selection process. 1074 updated by hand, with the `g' key from the label selection process.
1063 The value of this variable will only have any effect when 1075 The value of this variable will only have any effect when
1064 `reftex-use-multiple-selection-buffers' is non-nil." 1076 `reftex-use-multiple-selection-buffers' is non-nil."
1065 :group 'reftex-optimizations-for-large-documents 1077 :group 'reftex-optimizations-for-large-documents
1078 :version "20.3"
1066 :type 'boolean) 1079 :type 'boolean)
1067 1080
1068 ;; Fontification and Faces ---------------------------------------------- 1081 ;; Fontification and Faces ----------------------------------------------
1069 1082
1070 (defgroup reftex-fontification-configurations nil 1083 (defgroup reftex-fontification-configurations nil
1086 nil Never refontify. 1099 nil Never refontify.
1087 t Always refontify. 1100 t Always refontify.
1088 1 Refontify when absolutely necessary, e.g. when with the x-symbol package. 1101 1 Refontify when absolutely necessary, e.g. when with the x-symbol package.
1089 The option is ignored when `reftex-use-fonts' is nil." 1102 The option is ignored when `reftex-use-fonts' is nil."
1090 :group 'reftex-fontification-configurations 1103 :group 'reftex-fontification-configurations
1104 :version "20.3"
1091 :type '(choice 1105 :type '(choice
1092 (const :tag "Never" nil) 1106 (const :tag "Never" nil)
1093 (const :tag "Always" t) 1107 (const :tag "Always" t)
1094 (const :tag "When necessary" 1))) 1108 (const :tag "When necessary" 1)))
1095 1109
1104 nil No highlighting. 1118 nil No highlighting.
1105 cursor Highlighting is cursor driven. 1119 cursor Highlighting is cursor driven.
1106 mouse Highlighting is mouse driven. 1120 mouse Highlighting is mouse driven.
1107 both Both cursor and mouse trigger highlighting." 1121 both Both cursor and mouse trigger highlighting."
1108 :group 'reftex-fontification-configurations 1122 :group 'reftex-fontification-configurations
1123 :version "20.3"
1109 :type '(choice 1124 :type '(choice
1110 (const :tag "Never" nil) 1125 (const :tag "Never" nil)
1111 (const :tag "Cursor driven" cursor) 1126 (const :tag "Cursor driven" cursor)
1112 (const :tag "Mouse driven" mouse) 1127 (const :tag "Mouse driven" mouse)
1113 (const :tag "Mouse and Cursor driven." both))) 1128 (const :tag "Mouse and Cursor driven." both)))
1114 1129
1115 (defcustom reftex-cursor-selected-face 'highlight 1130 (defcustom reftex-cursor-selected-face 'highlight
1116 "Face name to highlight cursor selected item in toc and selection buffers. 1131 "Face name to highlight cursor selected item in toc and selection buffers.
1117 See also the variable `reftex-highlight-selection'." 1132 See also the variable `reftex-highlight-selection'."
1118 :group 'reftex-fontification-configurations 1133 :group 'reftex-fontification-configurations
1134 :version "20.3"
1119 :type 'symbol) 1135 :type 'symbol)
1120 (defcustom reftex-mouse-selected-face 'secondary-selection 1136 (defcustom reftex-mouse-selected-face 'secondary-selection
1121 "Face name to highlight mouse selected item in toc and selection buffers. 1137 "Face name to highlight mouse selected item in toc and selection buffers.
1122 See also the variable `reftex-highlight-selection'." 1138 See also the variable `reftex-highlight-selection'."
1123 :group 'reftex-fontification-configurations 1139 :group 'reftex-fontification-configurations
1140 :version "20.3"
1124 :type 'symbol) 1141 :type 'symbol)
1125 (defcustom reftex-file-boundary-face 'font-lock-comment-face 1142 (defcustom reftex-file-boundary-face 'font-lock-comment-face
1126 "Face name for file boundaries in selection buffer." 1143 "Face name for file boundaries in selection buffer."
1127 :group 'reftex-fontification-configurations 1144 :group 'reftex-fontification-configurations
1145 :version "20.3"
1128 :type 'symbol) 1146 :type 'symbol)
1129 (defcustom reftex-label-face 'font-lock-constant-face 1147 (defcustom reftex-label-face 'font-lock-constant-face
1130 "Face name for labels in selection buffer." 1148 "Face name for labels in selection buffer."
1131 :group 'reftex-fontification-configurations 1149 :group 'reftex-fontification-configurations
1150 :version "20.3"
1132 :type 'symbol) 1151 :type 'symbol)
1133 (defcustom reftex-section-heading-face 'font-lock-function-name-face 1152 (defcustom reftex-section-heading-face 'font-lock-function-name-face
1134 "Face name for section headings in toc and selection buffers." 1153 "Face name for section headings in toc and selection buffers."
1135 :group 'reftex-fontification-configurations 1154 :group 'reftex-fontification-configurations
1155 :version "20.3"
1136 :type 'symbol) 1156 :type 'symbol)
1137 (defcustom reftex-toc-header-face 'font-lock-comment-face 1157 (defcustom reftex-toc-header-face 'font-lock-comment-face
1138 "Face name for the header of a toc buffer." 1158 "Face name for the header of a toc buffer."
1139 :group 'reftex-fontification-configurations 1159 :group 'reftex-fontification-configurations
1160 :version "20.3"
1140 :type 'symbol) 1161 :type 'symbol)
1141 (defcustom reftex-bib-author-face 'font-lock-keyword-face 1162 (defcustom reftex-bib-author-face 'font-lock-keyword-face
1142 "Face name for author names in bib selection buffer." 1163 "Face name for author names in bib selection buffer."
1143 :group 'reftex-fontification-configurations 1164 :group 'reftex-fontification-configurations
1165 :version "20.3"
1144 :type 'symbol) 1166 :type 'symbol)
1145 (defcustom reftex-bib-year-face 'font-lock-comment-face 1167 (defcustom reftex-bib-year-face 'font-lock-comment-face
1146 "Face name for year in bib selection buffer." 1168 "Face name for year in bib selection buffer."
1147 :group 'reftex-fontification-configurations 1169 :group 'reftex-fontification-configurations
1170 :version "20.3"
1148 :type 'symbol) 1171 :type 'symbol)
1149 (defcustom reftex-bib-title-face 'font-lock-function-name-face 1172 (defcustom reftex-bib-title-face 'font-lock-function-name-face
1150 "Face name for article title in bib selection buffer." 1173 "Face name for article title in bib selection buffer."
1151 :group 'reftex-fontification-configurations 1174 :group 'reftex-fontification-configurations
1175 :version "20.3"
1152 :type 'symbol) 1176 :type 'symbol)
1153 (defcustom reftex-bib-extra-face 'font-lock-comment-face 1177 (defcustom reftex-bib-extra-face 'font-lock-comment-face
1154 "Face name for bibliographic information in bib selection buffer." 1178 "Face name for bibliographic information in bib selection buffer."
1155 :group 'reftex-fontification-configurations 1179 :group 'reftex-fontification-configurations
1180 :version "20.3"
1156 :type 'symbol) 1181 :type 'symbol)
1157 1182
1158 ;; Miscellaneous configurations ----------------------------------------- 1183 ;; Miscellaneous configurations -----------------------------------------
1159 1184
1160 (defgroup reftex-miscellaneous-configurations nil 1185 (defgroup reftex-miscellaneous-configurations nil
1213 1238
1214 (defcustom reftex-revisit-to-follow t 1239 (defcustom reftex-revisit-to-follow t
1215 "*Non-nil means, follow-mode will revisit files if necessary. 1240 "*Non-nil means, follow-mode will revisit files if necessary.
1216 When nil, follow-mode will be suspended for stuff in unvisited files." 1241 When nil, follow-mode will be suspended for stuff in unvisited files."
1217 :group 'reftex-miscellaneous-configurations 1242 :group 'reftex-miscellaneous-configurations
1243 :version "20.3"
1218 :type '(boolean)) 1244 :type '(boolean))
1219 1245
1220 (defcustom reftex-load-hook nil 1246 (defcustom reftex-load-hook nil
1221 "Hook which is being run when loading reftex.el." 1247 "Hook which is being run when loading reftex.el."
1222 :group 'reftex-miscellaneous-configurations 1248 :group 'reftex-miscellaneous-configurations