Function: idlwave-comment-hook
idlwave-comment-hook is a byte-compiled function defined in
idlwave.el.gz.
Signature
(idlwave-comment-hook)
Documentation
Compute indent for the beginning of the IDL comment delimiter.
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/idlwave.el.gz
;;
;; Use global variable 'comment-column' to set parallel comment
;;
;; Modeled on lisp.el
;; Emacs Lisp and IDL (Wave CL) have identical comment syntax
(defun idlwave-comment-hook ()
"Compute indent for the beginning of the IDL comment delimiter."
(if (or (looking-at idlwave-no-change-comment)
(looking-at (or idlwave-begin-line-comment "^;")))
(current-column)
(if (looking-at idlwave-code-comment)
(if (save-excursion (skip-chars-backward " \t") (bolp))
;; On line by itself, indent as code
(let ((tem (idlwave-calculate-indent)))
(if (listp tem) (car tem) tem))
;; after code - do not change
(current-column))
(skip-chars-backward " \t")
(max (if (bolp) 0 (1+ (current-column)))
comment-column))))