Commit 3737a8ef authored by Stefan Monnier's avatar Stefan Monnier
Browse files

* lisp/vc/log-edit.el (log-edit-goto-eoh): New function.

(log-edit--match-first-line): Use it.

Fixes: debbugs:17861
parent 39a61a22
2014-07-01 Stefan Monnier <>
* vc/log-edit.el (log-edit-goto-eoh): New function.
(log-edit--match-first-line): Use it (bug#17861).
2014-07-01 Glenn Morris <>
* vc/log-edit.el (log-edit-hook): Add missing :version.
......@@ -357,9 +357,15 @@ The first subexpression is the actual text of the field.")
(set-match-data (list start (point)))
(defun log-edit-goto-eoh () ;FIXME: Almost rfc822-goto-eoh!
(goto-char (point-min))
(when (re-search-forward
"^\\([^[:alpha:]]\\|[[:alnum:]-]+[^[:alnum:]-:]\\)" nil 'move)
(goto-char (match-beginning 0))))
(defun log-edit--match-first-line (limit)
(let ((start (point)))
(skip-chars-forward "\n")
(and (< start (line-end-position))
(< (point) limit)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment