Function: log-view-extract-comment
log-view-extract-comment is a byte-compiled function defined in
log-view.el.gz.
Signature
(log-view-extract-comment)
Documentation
Parse comment from around the current point in the log.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/log-view.el.gz
(defun log-view-extract-comment ()
"Parse comment from around the current point in the log."
(save-excursion
(let (st en (backend (vc-backend (log-view-current-file))))
(log-view-end-of-defun)
(cond ((eq backend 'SVN)
(forward-line -1)))
(setq en (point))
(or (log-view-current-entry nil t)
(throw 'beginning-of-buffer nil))
(cond ((memq backend '(SCCS RCS CVS SVN))
(forward-line 2))
((eq backend 'Hg)
(forward-line 4)
(re-search-forward "summary: *" nil t)))
(setq st (point))
(buffer-substring st en))))