* vc: how to insert version number in buffer (vc-status is gone)
@ 2009-01-31 9:16 Uwe Brauer
2009-02-04 4:16 ` Kevin Rodgers
0 siblings, 1 reply; 2+ messages in thread
From: Uwe Brauer @ 2009-01-31 9:16 UTC (permalink / raw
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: vc: how to insert version number in buffer (vc-status is gone)
2009-01-31 9:16 vc: how to insert version number in buffer (vc-status is gone) Uwe Brauer
@ 2009-02-04 4:16 ` Kevin Rodgers
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2009-02-04 4:16 UTC (permalink / raw
To: help-gnu-emacs
Uwe Brauer wrote:
> 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.
(insert (vc-workfile-version buffer-file-name))
--
Kevin Rodgers
Denver, Colorado, USA
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-02-04 4:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-31 9:16 vc: how to insert version number in buffer (vc-status is gone) Uwe Brauer
2009-02-04 4:16 ` Kevin Rodgers
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.