From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: vc-revert-hook? Date: Mon, 12 May 2008 13:03:28 -0400 Message-ID: References: <6EE216E1AA959543A555C60FF34FB767040B1D39@maileube01.misys.global.ad> <200805071829.m47ITlkV020399@sallyv1.ics.uci.edu> <6EE216E1AA959543A555C60FF34FB767040F7D64@maileube01.misys.global.ad> <200805081551.m48FpDlm012001@sallyv1.ics.uci.edu> <6EE216E1AA959543A555C60FF34FB76704140371@maileube01.misys.global.ad> <6EE216E1AA959543A555C60FF34FB7670418B0B7@maileube01.misys.global.ad> <6EE216E1AA959543A555C60FF34FB767041E78E4@maileube01.misys.global.ad> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1210611860 11320 80.91.229.12 (12 May 2008 17:04:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 May 2008 17:04:20 +0000 (UTC) Cc: dann@ics.uci.edu, Andre Spiegel , emacs-devel@gnu.org To: "Marshall\, Simon" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 12 19:04:55 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JvbSH-0003F6-T4 for ged-emacs-devel@m.gmane.org; Mon, 12 May 2008 19:04:54 +0200 Original-Received: from localhost ([127.0.0.1]:45453 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JvbRY-0006cV-Un for ged-emacs-devel@m.gmane.org; Mon, 12 May 2008 13:04:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JvbR2-00068v-3w for emacs-devel@gnu.org; Mon, 12 May 2008 13:03:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JvbR1-00067y-7J for emacs-devel@gnu.org; Mon, 12 May 2008 13:03:35 -0400 Original-Received: from [199.232.76.173] (port=52143 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JvbR1-00067o-3M for emacs-devel@gnu.org; Mon, 12 May 2008 13:03:35 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:65257) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JvbQv-00068s-T8; Mon, 12 May 2008 13:03:30 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AocDAGAVKEjO+JgrdGdsb2JhbACBU5A6ASeZIg X-IronPort-AV: E=Sophos;i="4.27,474,1204520400"; d="scan'208";a="20428797" Original-Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 12 May 2008 13:03:29 -0400 Original-Received: from pastel.home ([206.248.152.43]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id SWP40629; Mon, 12 May 2008 13:03:29 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id EDC89801D; Mon, 12 May 2008 13:03:28 -0400 (EDT) In-Reply-To: <6EE216E1AA959543A555C60FF34FB767041E78E4@maileube01.misys.global.ad> (Simon Marshall's message of "Mon, 12 May 2008 17:18:15 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:97041 Archived-At: >> > OK, thanks. Would vc-revert-hook be the right way to solve the >> > consequence of this, within Emacs at least, or is there some other way? >> I don't know of any other way, tho I don't know vc-revert-hook either. > I'm not sure what you mean here - vc-revert-hook does not exist. That's exactly what I meant. > Originally, I was suggesting that vc-revert-buffer run the new hook > vc-revert-hook, in the same way as vc-next-action runs vc-checkin-hook > or vc-checkout-hook. Sounds OK. Be careful to make it usable for filesets. I.e. it'll probably have to be a special hook taking the fileset as argument (i.e. you can't call it vc-revert-hook but vc-revert-functions, or maybe rather vc-after-revert-functions). Stefan