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

Lines Matching defs:section

85       ;; Scan whole document because no such file section exists
100 ;; Find active toc entry and initialize section-numbers
106 (reftex-init-section-numbers reftex-active-toc appendix)
242 ;; It is a section
246 (setq toc-entry (reftex-section-info file))
248 ;; It can happen that section info returns nil
254 (car (rassoc level reftex-section-levels-all))
275 (reftex-init-section-numbers nil t)
387 (defun reftex-section-info (file)
388 ;; Return a section entry for the current match.
395 (level-exp (cdr (assoc macro reftex-section-levels-all)))
402 (section-number (reftex-section-number level unnumbered))
412 ;; Add section number and indentation
416 (if (nth 1 reftex-label-menu-flags) ; section number flag
417 (concat section-number " "))
420 (list 'toc "toc" text file marker level section-number
506 (if (string= env "section")
507 ;; special treatment for section labels
509 (if (and (re-search-backward reftex-section-or-include-regexp
643 ;; Check if there was only a by-name match for the section.
651 ;; Add a new entry to the docstruct list. If it is a section, renumber
662 section-number context)
678 ;; Initialize section numbers
680 (reftex-init-section-numbers nil t)
681 (reftex-init-section-numbers reftex-active-toc appendix))
683 ;; Match the section command
692 entry (reftex-section-info (buffer-file-name))
694 ;; Insert the section info
697 ;; We are done unless we use section numbers
707 section-number
708 (reftex-section-number (nth 5 entry) star))
716 ;; Change the section number.
719 section-number
762 ;; searches to this point. If it is nil, limit to nearest \section -
770 (unless reftex-section-regexp (reftex-compile-variables))
774 reftex-section-regexp nil 1)
826 ;; this point. If it is nil, limit to nearest \section - like statement.
828 (unless reftex-section-regexp (reftex-compile-variables))
833 reftex-section-regexp nil 1)
864 (unless reftex-section-regexp (reftex-compile-variables))
870 reftex-section-regexp nil 1)
986 ;; Variable holding the vector with section numbers
987 (defvar reftex-section-numbers (make-vector reftex-max-section-depth 0))
989 (defun reftex-init-section-numbers (&optional toc-entry appendix)
990 ;; Initialize the section numbers with zeros or with what is found
994 (depth (1- (length reftex-section-numbers)))
998 (aset reftex-section-numbers i 0)
1001 (aset reftex-section-numbers i
1003 (aset reftex-section-numbers i (string-to-number number-string)))
1006 (put 'reftex-section-numbers 'appendix appendix))
1008 (defun reftex-section-number (&optional level star)
1009 ;; Return a string with the current section number.
1010 ;; When LEVEL is non-nil, increase section numbers on that level.
1011 (let* ((depth (1- (length reftex-section-numbers))) idx n (string "")
1012 (appendix (get 'reftex-section-numbers 'appendix))
1020 (aset reftex-section-numbers
1021 level (1+ (aref reftex-section-numbers level))))
1027 (aset reftex-section-numbers idx 0))
1031 (aref reftex-section-numbers 0))))
1034 (setq n (aref reftex-section-numbers idx))