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

Lines Matching +defs:comment +defs:region

137      (narrow-to-region arglist-start (c-point 'eol arglist-start))
539 "Line up C block comment continuation lines.
540 Various heuristics are used to handle many of the common comment
554 is kept unchanged for lines that start with an empty comment line
556 `comment-start-skip' regexp.
559 The variable `c-comment-prefix-regexp' is used to recognize the
560 comment line prefix, e.g. the `*' that usually starts every line
561 inside a comment.
567 (if (looking-at c-current-comment-prefix)
571 ;; Get the length of the comment starter, not including
572 ;; the first '/'. We check if the comment prefix matched
574 ;; matches comment-start-skip, and choose whichever is
584 (looking-at comment-start-skip)
593 ;; The comment has a long starter and the line doesn't have
594 ;; a nonempty comment prefix. Treat it as free form text
607 ;; No nonempty comment prefix. Align after comment
610 (looking-at comment-start-skip)
613 ;; comment-start-skip should match everything (i.e.
617 ;; ;; comment starter.
620 ;; How long is the comment starter? if greater than the
621 ;; length of the comment prefix, align left. if less
631 ;; previous line has a nonempty comment prefix, align with it.
633 ;; comment ender with the starter.
634 (when (or (not (looking-at c-current-comment-prefix))
638 (if (looking-at (concat "\\(" c-current-comment-prefix "\\)\\*/"))
644 ;; Align with the comment starter rather than
649 (defun c-lineup-comment (langelem)
650 "Line up a comment start according to `c-comment-only-line-offset'.
651 If the comment is lined up with a comment starter on the previous
654 Works with: comment-intro."
661 (and (c-backward-single-comment)
664 ;; indent as specified by c-comment-only-line-offset
666 (or (car-safe c-comment-only-line-offset)
667 c-comment-only-line-offset))
669 (or (cdr-safe c-comment-only-line-offset)
670 (car-safe c-comment-only-line-offset)
674 (defun c-lineup-knr-region-comment (langelem)
675 "Line up a comment in the \"K&R region\" with the declaration.
676 That is the region between the function or class header and the
680 /* This is the main function. */ <- c-lineup-knr-region-comment
688 Works with: comment-intro."
738 (narrow-to-region (c-langelem-pos langelem) endpos)
1231 ;; Don't adjust macro or comment-only lines.
1233 (assq 'comment-intro c-syntactic-context)))