• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/emacs-93/emacs/lisp/textmodes/

Lines Matching +defs:mode +defs:alist

1 ;;; bibtex.el --- BibTeX mode for GNU Emacs
34 ;; Major mode for editing and validating BibTeX files.
37 ;; See documentation for function bibtex-mode or type "\M-x describe-mode"
38 ;; when you are in BibTeX mode.
52 "BibTeX mode."
61 (defcustom bibtex-mode-hook nil
62 "List of functions to call on entry to BibTeX mode."
98 CROSSREF-OPTIONAL lists in `bibtex-entry-field-alist' (which see)."
152 "If non-nil, BibTeX mode maintains all entries in sorted order.
225 (defcustom bibtex-entry-field-alist
483 (put 'bibtex-entry-field-alist 'risky-local-variable t)
732 An alist of (OLD-REGEXP . NEW-STRING) pairs. Case is ignored
915 (defvar bibtex-mode-syntax-table
929 "Syntax table used in BibTeX mode buffers.")
931 (defvar bibtex-mode-map
986 "Keymap used in BibTeX mode.")
989 bibtex-edit-menu bibtex-mode-map "BibTeX-Edit Menu in BibTeX mode"
1053 bibtex-entry-menu bibtex-mode-map "Entry-Types Menu in BibTeX mode"
1161 (regexp-opt (mapcar 'car bibtex-entry-field-alist)) "\\)")
1184 (mapcar 'car bibtex-entry-field-alist))) "\\)")
1222 "*Default expressions to highlight in BibTeX mode.")
1234 (defvar bibtex-sort-entry-class-alist nil
1241 ;; Support for hideshow minor mode
1243 "Replacement for `forward-sexp' to be used by `hs-minor-mode'.
1250 'hs-special-modes-alist
1251 '(bibtex-mode "@\\S(*\\s(" "\\s)" nil bibtex-hs-forward-sexp nil))
1619 `bibtex-entry-field-alist'. Ignore @String and @Preamble entries.
1650 with type contained in `bibtex-entry-field-alist' or, if
1779 For `bibtex-mode''s internal algorithms, a field begins at the comma
1851 bibtex-entry-field-alist
1869 (let* ((fields-alist (bibtex-parse-entry t))
1870 (field (assoc-string "crossref" fields-alist t)))
1881 field (assoc-string (car rfield) fields-alist t))
2079 applied to the content of FIELD. It is an alist with pairs
2195 (alist bibtex-autokey-titleword-abbrevs))
2196 (while (and alist
2197 (not (string-match (concat "\\`\\(?:" (caar alist) "\\)\\'")
2199 (setq alist (cdr alist)))
2200 (if alist
2201 (cdar alist)
2290 (defun bibtex-global-key-alist ()
2291 "Return global key alist based on `bibtex-files'."
2304 (completing-read prompt (if global (bibtex-global-key-alist)
2318 Return alist of keys if parsing was completed, `aborted' otherwise.
2346 bibtex-entry-field-alist t)
2380 simply resetting it. If ADD is an alist of strings, also add ADD to
2382 Return alist of strings if parsing was completed, `aborted' otherwise."
2461 (if (and (eq major-mode 'bibtex-mode)
2526 COMPLETIONS is an alist of strings. If point is not after the part
2747 (defun bibtex-mode ()
2748 "Major mode for editing BibTeX files.
2750 General information on working with BibTeX mode:
2757 Some features of BibTeX mode are available only by setting the variable
2758 `bibtex-maintain-sorted-entries' to non-nil. However, then BibTeX mode
2761 with BibTeX mode and finished every new entry with \\[bibtex-clean-entry].
2764 to fully take advantage of all features of BibTeX mode.
2788 Note: some functions in BibTeX mode depend on entries being in a special
2792 BibTeX mode supports Imenu and hideshow minor mode (`hs-minor-mode').
2795 Entry to BibTeX mode calls the value of `bibtex-mode-hook'
2798 \\{bibtex-mode-map}"
2801 (use-local-map bibtex-mode-map)
2802 (setq major-mode 'bibtex-mode)
2803 (setq mode-name "BibTeX")
2804 (set-syntax-table bibtex-mode-syntax-table)
2845 (run-mode-hooks 'bibtex-mode-hook))
2851 names for ENTRY-TYPE according to `bibtex-entry-field-alist',
2854 (let ((e (assoc-string entry-type bibtex-entry-field-alist t))
2883 (list (completing-read "Entry Type: " bibtex-entry-field-alist
2916 (completing-read "New entry type: " bibtex-entry-field-alist
2947 "Parse entry at point, return an alist.
2948 The alist elements have the form (FIELD . TEXT), where FIELD can also be
2953 (let (alist bounds)
2955 (push (cons "=type=" (bibtex-type-in-head)) alist)
2956 (push (cons "=key=" (bibtex-key-in-head)) alist)
2961 alist)
2963 alist))
3061 `bibtex-entry-field-alist'.
3237 (defun bibtex-init-sort-entry-class-alist ()
3238 (unless (local-variable-p 'bibtex-sort-entry-class-alist)
3239 (set (make-local-variable 'bibtex-sort-entry-class-alist)
3240 (let ((i -1) alist)
3241 (dolist (class bibtex-sort-entry-class alist)
3246 alist)))))))
3266 (let ((n1 (cdr (or (assoc (nth 2 index1) bibtex-sort-entry-class-alist)
3267 (assoc 'catch-all bibtex-sort-entry-class-alist)
3269 (n2 (cdr (or (assoc (nth 2 index2) bibtex-sort-entry-class-alist)
3270 (assoc 'catch-all bibtex-sort-entry-class-alist)
3286 (bibtex-init-sort-entry-class-alist) ; Needed by `bibtex-lessp'.
3393 (bibtex-init-sort-entry-class-alist) ; Needed by `bibtex-lessp'.
3525 bibtex-entry-field-alist t))
3582 (unless (eq major-mode 'compilation-mode) (compilation-mode))
3585 (insert "BibTeX mode command `bibtex-validate'\n"
3617 (assoc-string entry-type bibtex-entry-field-alist t))
3643 (unless (eq major-mode 'compilation-mode) (compilation-mode))
3646 (insert "BibTeX mode command `bibtex-validate-globally'\n\n")
4064 In BibTeX mode this function is bound to `fill-paragraph-function'."
4179 "Make an alien BibTeX buffer fully usable by BibTeX mode.
4180 If a file does not conform with all standards used by BibTeX mode,
4181 some of the high-level features of BibTeX mode are not available.
4253 (bibtex-complete-internal (bibtex-global-key-alist))))
4271 (bibtex-complete-internal (bibtex-global-key-alist)))))
4409 (let ((fields-alist (bibtex-parse-entry t))
4416 fields-alist t)))
4424 (setq field (cdr (assoc-string (car step) fields-alist t)))