From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: List of buffers under version control? Date: Thu, 28 Jul 2016 21:56:28 +0200 Message-ID: <87invpfser.fsf@mbork.pl> References: <877fc6wrv7.fsf@linux-qg7d.fritz.box> <006fed39-43f3-40aa-a72b-c736ba9bf86c@googlegroups.com> <87shutv9tr.fsf@linux-qg7d.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1469735838 9426 80.91.229.3 (28 Jul 2016 19:57:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Jul 2016 19:57:18 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Rolf Ade Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 28 21:57:11 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bSrQa-0000Ib-F1 for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Jul 2016 21:57:08 +0200 Original-Received: from localhost ([::1]:55424 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSrQU-0003Dk-1F for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Jul 2016 15:57:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58714) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSrQ5-0003Dd-Mv for help-gnu-emacs@gnu.org; Thu, 28 Jul 2016 15:56:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSrQ1-000556-CS for help-gnu-emacs@gnu.org; Thu, 28 Jul 2016 15:56:36 -0400 Original-Received: from mail.mojserwer.eu ([2a01:5e00:2:52::8]:47138) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSrQ1-00054x-4Y for help-gnu-emacs@gnu.org; Thu, 28 Jul 2016 15:56:33 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id C77951DAB90; Thu, 28 Jul 2016 21:56:26 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8XaAKRvGUzoi; Thu, 28 Jul 2016 21:56:24 +0200 (CEST) Original-Received: from localhost (static-dwadziewiec-jedenpiec7.echostar.pl [109.232.29.157]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 1EE101DAB8C; Thu, 28 Jul 2016 21:56:24 +0200 (CEST) User-agent: mu4e 0.9.16; emacs 25.1.50.4 In-reply-to: <87shutv9tr.fsf@linux-qg7d.fritz.box> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2a01:5e00:2:52::8 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110979 Archived-At: On 2016-07-28, at 21:31, Rolf Ade 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