• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/emacs-92/emacs/lisp/textmodes/

Lines Matching +defs:comment +defs:indent +defs:function

39 (defvar font-lock-comment-face)
229 :type 'function
313 (defcustom latex-imenu-indent-string ". "
366 latex-imenu-indent-string))
394 (sort menu (function (lambda (a b) (< (cdr a) (cdr b))))))))
419 ; 2 font-lock-function-name-face)
427 ; ("^[ \t\n]*\\\\def[\\\\@]\\(\\w+\\)" 1 font-lock-function-name-face keep))
430 ; 2 font-lock-function-name-face)
433 ; ("^[ \t]*\\\\def\\\\\\(\\(\\w\\|@\\)+\\)" 1 font-lock-function-name-face)
494 ;; a lot more, which might suddenly include a comment
500 ;; have a comment in ARG.
501 3 'font-lock-function-name-face 'keep)
503 1 'font-lock-function-name-face 'keep)
510 1 font-lock-function-name-face))))
515 '(font-lock-comment-face tex-verbatim))
589 font-lock-comment-face tex-verbatim))
639 ;; ("^\\(\\\\\\)begin *{comment}" 1 "< b")
640 ;; ("^\\\\end *{comment}.*\\(\n\\)" 1 "> b")
687 ;; Do nothing if the \verb construct is itself inside a comment or
691 ;; We used to do it inside tex-font-lock-syntactic-face-function, but
694 ;; preceding text but font-lock-syntactic-face-function only to the
709 (defun tex-font-lock-syntactic-face-function (state)
712 ((not char) font-lock-comment-face)
817 (let ((mode tex-default-mode) slash comment)
821 (setq comment (let ((search-end (point)))
825 (when (and slash (not comment))
845 ;; but it's also the function that chooses between those submodes.
846 ;; To tell the difference between those two cases where the function
850 ;; We now move the function and define it again. This gives a warning
852 ;; `define-derived-mode' will necessarily define the function once
855 (defalias 'tex-mode-internal (symbol-function 'tex-mode))
872 ;; for all mode relevant variables and hooks, the invocation function
1002 (set (make-local-variable 'imenu-create-index-function)
1006 (set (make-local-variable 'indent-line-function) 'latex-indent)
1007 (set (make-local-variable 'fill-indent-according-to-mode) t)
1010 (set (make-local-variable 'forward-sexp-function) 'latex-forward-sexp)
1068 (set (make-local-variable 'comment-start) "%")
1069 (set (make-local-variable 'comment-add) 1)
1070 (set (make-local-variable 'comment-start-skip)
1075 (set (make-local-variable 'facemenu-add-face-function)
1080 (set (make-local-variable 'facemenu-remove-face-function) t)
1086 (font-lock-mark-block-function . mark-paragraph)
1087 (font-lock-syntactic-face-function
1088 . tex-font-lock-syntactic-face-function)
1089 (font-lock-unfontify-region-function
1095 (set (make-local-variable 'indent-tabs-mode) nil)
1272 ;; This function is used as the value of fill-nobreak-predicate
1350 "Execute BODY as long as it return non-nil and point is in a comment.
1391 (forward-sexp-function))
1409 (forward-sexp-function))
1447 (let ((forward-sexp-function nil))
1454 (forward-comment (point-max))
1455 (let ((forward-sexp-function nil))
1515 (forward-comment (point-max))
1518 (forward-comment (point-max)))
1535 (set (make-local-variable 'compilation-parse-errors-function)
2009 See the variable `compilation-parse-errors-function' for the interface it uses.
2011 This function parses only the last TeX compilation.
2161 ;; is not hidden in a comment.
2182 This function is more useful than \\[tex-buffer] when you need the
2359 (defvar tex-indent-allhanging t)
2360 (defvar tex-indent-arg 4)
2361 (defvar tex-indent-basic 2)
2362 (defvar tex-indent-item tex-indent-basic)
2363 (defvar tex-indent-item-re "\\\\\\(bib\\)?item\\>")
2366 (defvar tex-latex-indent-syntax-table
2374 (defun latex-indent (&optional arg)
2378 (with-syntax-table tex-latex-indent-syntax-table
2380 (let ((indent
2383 (latex-find-indent))))
2384 (if (< indent 0) (setq indent 0))
2386 (indent-line-to indent)
2387 (save-excursion (indent-line-to indent)))))))
2389 (defun latex-find-indent (&optional virtual)
2412 (latex-find-indent 'virtual))))
2416 (indent (if (looking-at tex-indent-item-re) (- tex-indent-item) 0))
2429 ;; Have to indent relative to the open-paren.
2431 (if (and (not tex-indent-allhanging)
2444 (forward-comment (point-max))
2453 0 tex-indent-basic)
2454 indent (latex-find-indent 'virtual))))
2458 (+ indent (current-column)))
2460 ((looking-at tex-indent-item-re)
2462 (+ indent (current-column) tex-indent-item))
2471 (+ indent col)
2474 (save-excursion (forward-comment (point-max))
2477 (min (current-column) (+ tex-indent-arg col))
2489 ;; The `%' is a single-char comment, which Emacs
2491 ;; into a non-comment, or use `\n%' or `%^' as the comment.
2492 ;; Instead, we include it in the ^^A comment.
2503 (defun doctex-font-lock-syntactic-face-function (state)
2504 ;; Mark DocTeX documentation, which is parsed as a style A comment
2510 (tex-font-lock-syntactic-face-function state)
2516 ;; For DocTeX comment-in-doc.
2533 (font-lock-syntactic-face-function
2534 (cons (car x) 'doctex-font-lock-syntactic-face-function))