Function: idlwave-doc-modification
idlwave-doc-modification is an interactive and byte-compiled function
defined in idlwave.el.gz.
Signature
(idlwave-doc-modification)
Documentation
Insert a brief modification log at the beginning of the current program.
Looks for an occurrence of the value of user variable
idlwave-doc-modifications-keyword if non-nil. Inserts time and user
name and places the point for the user to add a log. Before moving, saves
location on mark ring so that the user can return to previous point.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/idlwave.el.gz
(defun idlwave-doc-modification ()
"Insert a brief modification log at the beginning of the current program.
Looks for an occurrence of the value of user variable
`idlwave-doc-modifications-keyword' if non-nil. Inserts time and user
name and places the point for the user to add a log. Before moving, saves
location on mark ring so that the user can return to previous point."
(interactive)
(push-mark)
(let* (beg end)
(if (and (or (re-search-backward idlwave-doclib-start nil t)
(progn
(goto-char (point-min))
(re-search-forward idlwave-doclib-start nil t)))
(setq beg (match-beginning 0))
(re-search-forward idlwave-doclib-end nil t)
(setq end (match-end 0)))
(progn
(goto-char beg)
(if (re-search-forward
(concat idlwave-doc-modifications-keyword ":")
end t)
(end-of-line)
(goto-char end)
(end-of-line -1)
(insert "\n" comment-start "\n")
(insert comment-start " " idlwave-doc-modifications-keyword ":"))
(insert "\n;\n;\t")
(run-hooks 'idlwave-timestamp-hook))
(error "No valid DOCLIB header"))))