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

Lines Matching +defs:indent +defs:line +defs:function

77 (defcustom tex-first-line-header-regexp nil
78 "Regexp for matching a first line which `tex-region' should include.
80 if it matches the first line of the file,
81 `tex-region' always includes the first line in the TeX run."
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)
492 ;; match the local line, but defer-contextually will
501 3 'font-lock-function-name-face 'keep)
503 1 'font-lock-function-name-face 'keep)
510 1 font-lock-function-name-face))))
634 ;; preceding line, so things gets screwed every time the previous
635 ;; line is re-font-locked on its own.
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)
823 (beginning-of-line)
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
977 ;; A line containing just $$ is treated as a paragraph separator.
978 ;; A line starting with $$ starts a paragraph,
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)
1061 ;; A line containing just $$ is treated as a paragraph separator.
1064 ;; A line starting with $$ starts a paragraph,
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)
1155 on the line for the invalidity you want to see."
1180 (let* ((end (line-beginning-position 2))
1182 (beginning-of-line)
1184 ;; Keep track of line number as we scan,
1197 ;; Skip "Mismatches:" header line.
1198 (forward-line 1)
1272 ;; This function is used as the value of fill-nobreak-predicate
1273 ;; in LaTeX mode. Its job is to prevent line-breaking inside
1282 (beginning-of-line)
1320 Puts point on a blank line between them."
1391 (forward-sexp-function))
1409 (forward-sexp-function))
1447 (let ((forward-sexp-function nil))
1455 (let ((forward-sexp-function nil))
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.
2013 since TeX does not put file names and line numbers on the same line as
2054 (progn (goto-line linenum) (setq last-position nil))
2056 (forward-line (- linenum last-linenum)))
2123 (forward-line 100)
2129 ;; Maybe copy first line, such as `\input texinfo', to temp file.
2130 (and tex-first-line-header-regexp
2131 (looking-at tex-first-line-header-regexp)
2133 (progn (forward-line 1)
2142 (beginning-of-line)
2146 (forward-line 1)
2182 This function is more useful than \\[tex-buffer] when you need the
2242 The last line of the buffer is displayed on
2243 line LINE of the window, or centered if LINE is nil."
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)
2375 (if (and (eq (get-text-property (line-beginning-position) 'face)
2378 (with-syntax-table tex-latex-indent-syntax-table
2380 (let ((indent
2382 (beginning-of-line)
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)
2397 ;; Stick the first line at column 0.
2398 (and (= (point-min) (line-beginning-position)) 0)
2412 (latex-find-indent 'virtual))))
2416 (indent (if (looking-at tex-indent-item-re) (- tex-indent-item) 0))
2427 ((= (point-min) pos) 0) ; We're really just indenting the first line.
2429 ;; Have to indent relative to the open-paren.
2431 (if (and (not tex-indent-allhanging)
2434 ;; that the macro is at the beginning of a line.
2453 0 tex-indent-basic)
2454 indent (latex-find-indent 'virtual))))
2455 ;; We're now at the "beginning" of a line.
2458 (+ indent (current-column)))
2460 ((looking-at tex-indent-item-re)
2462 (+ indent (current-column) tex-indent-item))
2466 ;; Can't be an arg if there's an empty line inbetween.
2471 (+ indent col)
2473 (if (< (line-end-position)
2477 (min (current-column) (+ tex-indent-arg col))
2483 (if (eq (char-after (line-beginning-position)) ?\%)
2488 (if (= (1+ (line-beginning-position)) (match-beginning 1))
2495 (let ((end (line-end-position)))
2503 (defun doctex-font-lock-syntactic-face-function (state)
2510 (tex-font-lock-syntactic-face-function state)
2533 (font-lock-syntactic-face-function
2534 (cons (car x) 'doctex-font-lock-syntactic-face-function))