comparison lisp/vc-hg.el @ 107484:79c0352f271f

* vc-bzr.el, vc-hg.el (log-edit-mode): Declare.
author Glenn Morris <rgm@gnu.org>
date Tue, 23 Mar 2010 20:34:06 -0700
parents 1918e70c8b37
children 94a453a3e40a
comparison
equal deleted inserted replaced
107483:2b2a771fc89b 107484:79c0352f271f
277 ("^user:[ \t]+\\([A-Za-z0-9_.+-]+\\(?:@[A-Za-z0-9_.-]+\\)?\\)" 277 ("^user:[ \t]+\\([A-Za-z0-9_.+-]+\\(?:@[A-Za-z0-9_.-]+\\)?\\)"
278 (1 'change-log-email)) 278 (1 'change-log-email))
279 ("^date: \\(.+\\)" (1 'change-log-date)) 279 ("^date: \\(.+\\)" (1 'change-log-date))
280 ("^summary:[ \t]+\\(.+\\)" (1 'log-view-message))))))) 280 ("^summary:[ \t]+\\(.+\\)" (1 'log-view-message)))))))
281 281
282 (declare-function log-edit-mode "log-edit" ())
282 (defvar log-edit-extra-flags) 283 (defvar log-edit-extra-flags)
283 (defvar log-edit-before-checkin-process) 284 (defvar log-edit-before-checkin-process)
284 285
285 (define-derived-mode vc-hg-log-edit-mode log-edit-mode "Hg-log-edit" 286 (define-derived-mode vc-hg-log-edit-mode log-edit-mode "Hg-log-edit"
286 "Mode for editing Hg commit logs. 287 "Mode for editing Hg commit logs.
287 If a line like: 288 If a line like:
288 Author: NAME 289 Author: NAME
289 is present in the log, it is removed, and 290 is present in the log, it is removed, and
290 --author NAME 291 --author NAME
291 is passed to the hg commit command." 292 is passed to the hg commit command."
292 (set (make-local-variable 'log-edit-extra-flags) nil) 293 (set (make-local-variable 'log-edit-extra-flags) nil)
293 (set (make-local-variable 'log-edit-before-checkin-process) 294 (set (make-local-variable 'log-edit-before-checkin-process)
294 '(("^Author:[ \t]+\\(.*\\)[ \t]*$" . (list "--user" (match-string 1)))))) 295 '(("^Author:[ \t]+\\(.*\\)[ \t]*$" . (list "--user" (match-string 1))))))