From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Uwe Brauer Newsgroups: gmane.emacs.help Subject: vc: how to insert version number in buffer (vc-status is gone) Date: Sat, 31 Jan 2009 10:16:48 +0100 Message-ID: <8763jv7s3j.fsf@mat.ucm.es> Reply-To: Uwe Brauer NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1233393936 9870 80.91.229.12 (31 Jan 2009 09:25:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 Jan 2009 09:25:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 31 10:26:50 2009 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 1LTC7k-0008Vm-Uk for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Jan 2009 10:26:49 +0100 Original-Received: from localhost ([127.0.0.1]:37405 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTC6S-0007a5-3V for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Jan 2009 04:25:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LTC66-0007a0-OU for help-gnu-emacs@gnu.org; Sat, 31 Jan 2009 04:25:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LTC64-0007Yo-OB for help-gnu-emacs@gnu.org; Sat, 31 Jan 2009 04:25:05 -0500 Original-Received: from [199.232.76.173] (port=48727 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTC63-0007Yl-T3 for help-gnu-emacs@gnu.org; Sat, 31 Jan 2009 04:25:03 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:38670 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LTC63-0003iR-GI for help-gnu-emacs@gnu.org; Sat, 31 Jan 2009 04:25:03 -0500 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1LTC62-0006ia-A2 for help-gnu-emacs@gnu.org; Sat, 31 Jan 2009 09:25:02 +0000 Original-Received: from 184.red-83-56-129.dynamicip.rima-tde.net ([83.56.129.184]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 31 Jan 2009 09:25:02 +0000 Original-Received: from oub by 184.red-83-56-129.dynamicip.rima-tde.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 31 Jan 2009 09:25:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 184.red-83-56-129.dynamicip.rima-tde.net X-Hashcash: 1:20:090131:gmane.emacs.help::GAxZPjIV64x8Loe7:0C3NK User-Agent: Gnus/5.110011 (No Gnus v0.11) XEmacs/21.4.21 (linux) Cancel-Lock: sha1:l6wt5Jd5SFUvKkC7BndHbNc6zUA= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:61792 Archived-At: Hello In ancient times, vc had a function called vc-status so it was possible to insert the vc version number into a buffer with (defun my-vc-status-insert () (interactive) (insert "Version") (insert (vc-status buffer-file-name))) This came in handy, if the modeline is gluttered and the file is large so it is cumbersome to go at the beginning to the buffer in order to check the version number. As I said vc-status is long gone so I would like to know how I could insert the version number. thanks Uwe Brauer