Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
3737a8ef
Commit
3737a8ef
authored
Jul 01, 2014
by
Stefan Monnier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* lisp/vc/log-edit.el (log-edit-goto-eoh): New function.
(log-edit--match-first-line): Use it. Fixes: debbugs:17861
parent
39a61a22
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/vc/log-edit.el
lisp/vc/log-edit.el
+7
-1
No files found.
lisp/ChangeLog
View file @
3737a8ef
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.
...
...
lisp/vc/log-edit.el
View file @
3737a8ef
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment