From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#2623: 23.0.91; File is under version-control; use C-x v v to check in/out Date: Wed, 11 Mar 2009 16:06:10 +0000 Organization: University of Cambridge Message-ID: References: Reply-To: Leo , 2623@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1236788885 32106 80.91.229.12 (11 Mar 2009 16:28:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Mar 2009 16:28:05 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 11 17:29:20 2009 Return-path: Envelope-to: geb-bug-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 1LhRIv-00079z-5w for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Mar 2009 17:29:13 +0100 Original-Received: from localhost ([127.0.0.1]:52395 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LhRHZ-0004Ib-3A for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Mar 2009 12:27:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LhRDd-0002xa-Td for bug-gnu-emacs@gnu.org; Wed, 11 Mar 2009 12:23:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LhRDc-0002w2-FN for bug-gnu-emacs@gnu.org; Wed, 11 Mar 2009 12:23:45 -0400 Original-Received: from [199.232.76.173] (port=53012 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LhRDc-0002vh-6v for bug-gnu-emacs@gnu.org; Wed, 11 Mar 2009 12:23:44 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:60823) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LhRDb-0004Ju-JM for bug-gnu-emacs@gnu.org; Wed, 11 Mar 2009 12:23:43 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2BGNfKC010955; Wed, 11 Mar 2009 09:23:41 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n2BGF7qt008921; Wed, 11 Mar 2009 09:15:07 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Leo Original-Sender: news Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 11 Mar 2009 16:15:07 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2623 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12367878288500 (code B ref -1); Wed, 11 Mar 2009 16:15:07 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 11 Mar 2009 16:10:28 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2BGAPJO008494 for ; Wed, 11 Mar 2009 09:10:26 -0700 Original-Received: from mx10.gnu.org ([199.232.76.166]:46984) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LhR0e-0004gU-JO for emacs-pretest-bug@gnu.org; Wed, 11 Mar 2009 12:10:24 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LhR0Y-0002wz-Dp for emacs-pretest-bug@gnu.org; Wed, 11 Mar 2009 12:10:18 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:58723 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 1LhR0X-0002wP-64 for emacs-pretest-bug@gnu.org; Wed, 11 Mar 2009 12:10:14 -0400 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1LhR0N-0007vS-8z for emacs-pretest-bug@gnu.org; Wed, 11 Mar 2009 16:10:03 +0000 Original-Received: from smaug.linux.pwf.cam.ac.uk ([193.60.95.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 Mar 2009 16:10:03 +0000 Original-Received: from sdl.web by smaug.linux.pwf.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 Mar 2009 16:10:03 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 43 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: smaug.linux.pwf.cam.ac.uk User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:73fANu/0RKqJT6kVvGAkaLH9Qvo= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 11 Mar 2009 12:23:45 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:26245 gmane.emacs.pretest.bugs:24105 Archived-At: On 2009-03-11 14:55 +0000, Stefan Monnier wrote: >>>> File is under version-control; use C-x v v to check in/out >>>> This message is misleading if not wrong as most of the version control >>>> tools do not use read-only to indicate their status. >>> Check in/out used to be bound to C-x C-q (because back then, most of the >>> version control tools did use read-only to indicate their status), so >>> the above message is there to remind people who have C-x C-q hardcoded >>> in their fingers that maybe they really meant to type C-x v v. >> Should this be changed in 21st? > > I do not understand what "21st" is referring to. I mean '21st century'. >>> BTW, why did you type C-x C-q? Is the file read-only? >> Sometimes I turn the file into read-only before showing to other people >> in case they accidentally type something into it. > > I see, so in this case we could probably avoid the message by being > a bit more clever (e.g. don't show the message if it's not the first > time C-x C-q is used in this buffer). There is difference between turning the buffer into read-only and the file on disk being read-only. VC backends depend on the latter for their status based on my experience with RCS. So showing such a message does not make sense when pressing C-x C-q. It might make sense when opening a read-only file that is also under version control. But even this point is mostly irrelevant since 75% of the vc-handled-backends, which hopefully represent 99.9% users, need not such message. I just recalled when I was beginning with vc. I did once foolishly follow that message and wasted myself a few unhappy hours fixing the consequences. Just some thoughts. > Stefan -- .: Leo :. [ sdl.web AT gmail.com ] .: I use Emacs :. www.git-scm.com git - the one true version control system