[Top][All Lists]

[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

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!"))


Marcin Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University

reply via email to

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