Function: idlwave-calc-hanging-indent
idlwave-calc-hanging-indent is a byte-compiled function defined in
idlwave.el.gz.
Signature
(idlwave-calc-hanging-indent)
Documentation
Calculate the position of the hanging indent for the comment paragraph.
The hanging indent position is given by the first match with the
idlwave-hang-indent-regexp. If idlwave-use-last-hang-indent is
non-nil then use last occurrence matching idlwave-hang-indent-regexp
on the line.
If not found returns nil.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/idlwave.el.gz
(defun idlwave-calc-hanging-indent ()
"Calculate the position of the hanging indent for the comment paragraph.
The hanging indent position is given by the first match with the
`idlwave-hang-indent-regexp'. If `idlwave-use-last-hang-indent' is
non-nil then use last occurrence matching `idlwave-hang-indent-regexp'
on the line.
If not found returns nil."
(if idlwave-use-last-hang-indent
(save-excursion
(end-of-line)
(if (re-search-backward idlwave-hang-indent-regexp (point-at-bol) t)
(+ (current-column) (length idlwave-hang-indent-regexp))))
(save-excursion
(beginning-of-line)
(if (re-search-forward idlwave-hang-indent-regexp (point-at-eol) t)
(current-column)))))