help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: List of buffers under version control?


From: Marcin Borkowski
Subject: Re: List of buffers under version control?
Date: Thu, 28 Jul 2016 21:56:28 +0200
User-agent: mu4e 0.9.16; emacs 25.1.50.4

On 2016-07-28, at 21:31, Rolf Ade <address@hidden> wrote:

> Since emacs show me in the mode line of that buffers, that the file is
> under version control, there must be a way with elisp to determine, if
> the file shown in a buffer is under version control. How could that be
> done?

How about this?

(if vc-mode
    (message "%s" "Hi, I'm under version control!")
  (message "%s" "Oops, please version control me!"))

Hth,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



reply via email to

[Prev in Thread] Current Thread [Next in Thread]