mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
* lisp/vc/log-edit.el (log-edit-goto-eoh): New function.
(log-edit--match-first-line): Use it. Fixes: debbugs:17861
This commit is contained in:
parent
39a61a22ed
commit
3737a8efcf
2 changed files with 12 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2014-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* vc/log-edit.el (log-edit-goto-eoh): New function.
|
||||
(log-edit--match-first-line): Use it (bug#17861).
|
||||
|
||||
2014-07-01 Glenn Morris <rgm@gnu.org>
|
||||
|
||||
* 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)))
|
||||
(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)))
|
||||
(rfc822-goto-eoh)
|
||||
(log-edit-goto-eoh)
|
||||
(skip-chars-forward "\n")
|
||||
(and (< start (line-end-position))
|
||||
(< (point) limit)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue