From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Eure Newsgroups: gmane.emacs.help Subject: Re: vc-mode Hook to Register a Function Inserting Commit Message Date: Mon, 27 Oct 2008 13:36:25 -0700 Message-ID: References: <47553ee5-a55d-44a7-927a-fa1c0320eee6@q35g2000hsg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1225139824 23023 80.91.229.12 (27 Oct 2008 20:37:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Oct 2008 20:37:04 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: stephan.zimmer Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 27 21:38:05 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KuYqg-0002FR-J6 for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Oct 2008 21:38:03 +0100 Original-Received: from localhost ([127.0.0.1]:32953 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KuYpZ-0003he-TM for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Oct 2008 16:36:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KuYpG-0003hS-5b for help-gnu-emacs@gnu.org; Mon, 27 Oct 2008 16:36:34 -0400 Original-Received: from [199.232.76.173] (port=38590 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KuYpF-0003hK-QF for help-gnu-emacs@gnu.org; Mon, 27 Oct 2008 16:36:33 -0400 Original-Received: from mail.digg.com ([64.191.203.36]:40925) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KuYpF-0007GU-4x for help-gnu-emacs@gnu.org; Mon, 27 Oct 2008 16:36:33 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.digg.com (Postfix) with ESMTP id 7089BA8574C; Mon, 27 Oct 2008 13:36:26 -0700 (PDT) X-Virus-Scanned: amavisd-new at X-Spam-Score: -4.472 Original-Received: from mail.digg.com ([127.0.0.1]) by localhost (mail.digg.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7xjk8StYad7r; Mon, 27 Oct 2008 13:36:26 -0700 (PDT) Original-Received: from [10.2.16.90] (diggstage01.digg.com [64.191.203.34]) by mail.digg.com (Postfix) with ESMTP id 20346A851EA; Mon, 27 Oct 2008 13:36:26 -0700 (PDT) In-Reply-To: <47553ee5-a55d-44a7-927a-fa1c0320eee6@q35g2000hsg.googlegroups.com> X-Mailer: Apple Mail (2.929.2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:59190 Archived-At: On Oct 27, 2008, at 4:58 AM, stephan.zimmer wrote: > I use the vc-mode in emacs in combination with subversion. When doing > a commit I would like to automatically compose part of my commit > message in the *VC-log* buffer by retrieving the file that I'm > committing. Is there any easy way to do this, i.e., a hook that is > called after popping up the *VC-log* buffer? > A quick romp through vc-mode / log-edit-mode turns up these candidates: vc-before-checkin-hook "Normal hook (list of functions) run before a file is checked in." log-edit-mode-hook "*Hook run when entering `log-edit-mode'." - Ian