comparison lisp/vc-dispatcher.el @ 107483:2b2a771fc89b

* vc-dispatcher.el (vc-start-logentry): Doc fix. (log-view-process-buffer, log-edit-extra-flags): Declare.
author Glenn Morris <rgm@gnu.org>
date Tue, 23 Mar 2010 20:30:53 -0700
parents 11244653958e
children c609e6e60b3d
comparison
equal deleted inserted replaced
107482:1161bde4ebd6 107483:2b2a771fc89b
537 INITIAL-CONTENTS is non-nil, then COMMENT is used as the initial 537 INITIAL-CONTENTS is non-nil, then COMMENT is used as the initial
538 contents of the log entry buffer. If COMMENT is a string and 538 contents of the log entry buffer. If COMMENT is a string and
539 INITIAL-CONTENTS is nil, do action immediately as if the user had 539 INITIAL-CONTENTS is nil, do action immediately as if the user had
540 entered COMMENT. If COMMENT is t, also do action immediately with an 540 entered COMMENT. If COMMENT is t, also do action immediately with an
541 empty comment. Remember the file's buffer in `vc-parent-buffer' 541 empty comment. Remember the file's buffer in `vc-parent-buffer'
542 \(current one if no file). AFTER-HOOK specifies the local value 542 \(current one if no file). Puts the log-entry buffer in major-mode
543 for `vc-log-after-operation-hook'." 543 MODE, defaulting to `log-edit-mode' if MODE is nil.
544 AFTER-HOOK specifies the local value for `vc-log-after-operation-hook'."
544 (let ((parent 545 (let ((parent
545 (if (vc-dispatcher-browsing) 546 (if (vc-dispatcher-browsing)
546 ;; If we are called from a directory browser, the parent buffer is 547 ;; If we are called from a directory browser, the parent buffer is
547 ;; the current buffer. 548 ;; the current buffer.
548 (current-buffer) 549 (current-buffer)
567 (if (or (not comment) initial-contents) 568 (if (or (not comment) initial-contents)
568 (message "%s Type C-c C-c when done" msg) 569 (message "%s Type C-c C-c when done" msg)
569 (vc-finish-logentry (eq comment t))))) 570 (vc-finish-logentry (eq comment t)))))
570 571
571 (declare-function vc-dir-move-to-goal-column "vc-dir" ()) 572 (declare-function vc-dir-move-to-goal-column "vc-dir" ())
573 ;; vc-finish-logentry is called from a log-edit buffer (see above).
574 (declare-function log-view-process-buffer "log-edit" ())
575 (defvar log-edit-extra-flags)
572 576
573 (defun vc-finish-logentry (&optional nocomment) 577 (defun vc-finish-logentry (&optional nocomment)
574 "Complete the operation implied by the current log entry. 578 "Complete the operation implied by the current log entry.
575 Use the contents of the current buffer as a check-in or registration 579 Use the contents of the current buffer as a check-in or registration
576 comment. If the optional arg NOCOMMENT is non-nil, then don't check 580 comment. If the optional arg NOCOMMENT is non-nil, then don't check