From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#12488: 24.2.50; vc-delete-file and vc-rename-file should default to the current buffer's file Date: Sat, 01 Dec 2012 01:26:39 +0400 Message-ID: <50B9248F.2050608@yandex.ru> References: <505DFCD8.9010805@yandex.ru> <87hao7aez6.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1354310818 23070 80.91.229.3 (30 Nov 2012 21:26:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Nov 2012 21:26:58 +0000 (UTC) Cc: 12488@debbugs.gnu.org To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 30 22:27:10 2012 Return-path: Envelope-to: geb-bug-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 1TeY73-0006Ji-V2 for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Nov 2012 22:27:10 +0100 Original-Received: from localhost ([::1]:46955 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeY6s-0001OK-D2 for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Nov 2012 16:26:58 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:40640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeY6q-0001OD-AX for bug-gnu-emacs@gnu.org; Fri, 30 Nov 2012 16:26:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TeY6p-00041L-97 for bug-gnu-emacs@gnu.org; Fri, 30 Nov 2012 16:26:56 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeY6p-00041G-61 for bug-gnu-emacs@gnu.org; Fri, 30 Nov 2012 16:26:55 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TeY8r-0008AU-T2 for bug-gnu-emacs@gnu.org; Fri, 30 Nov 2012 16:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Nov 2012 21:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12488 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 12488-submit@debbugs.gnu.org id=B12488.135431093431378 (code B ref 12488); Fri, 30 Nov 2012 21:29:01 +0000 Original-Received: (at 12488) by debbugs.gnu.org; 30 Nov 2012 21:28:54 +0000 Original-Received: from localhost ([127.0.0.1]:47520 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TeY8j-00089y-5T for submit@debbugs.gnu.org; Fri, 30 Nov 2012 16:28:54 -0500 Original-Received: from mail-lb0-f172.google.com ([209.85.217.172]:49018) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TeY8f-00089l-7H for 12488@debbugs.gnu.org; Fri, 30 Nov 2012 16:28:51 -0500 Original-Received: by mail-lb0-f172.google.com with SMTP id y2so899088lbk.3 for <12488@debbugs.gnu.org>; Fri, 30 Nov 2012 13:26:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=ZyLoUCy1f5SSdc8Qg7nJNbN+Tj4P7GpeLrpHVyoBOK4=; b=aWgFlPMjeo4fvE9wuSx2k01eQINY8IorGP2xC6KaiiZ/evyuhZx5ziQoqqQdQ/gRcN sSR+YYy0kgCPuSCHAKA0HH8v7ZQfsU+TIyKkATpYRlPJfmva7SFatafc3hd4zkT63wpU T4X3J+SSCpIgVf60e5KIgRA0Uhi/zQK42FSw5pVj/9NkrHayBdVKJ2NTL4bH7/BepzVr RzXiYqnASbs/WJeE+gGWb9pKHh9JHH/ArFx7Gi/JUDeoYiJOqBda+WJtbvagR0aLtfPm 9EELGW5YQOE4nMF+rjDLdro0M2p0mUUGYutfLVWYnt2jP5FYNzWXe8bZUFCo5FR5puVC VCGg== Original-Received: by 10.152.128.9 with SMTP id nk9mr2603210lab.17.1354310800687; Fri, 30 Nov 2012 13:26:40 -0800 (PST) Original-Received: from [192.168.1.5] ([178.252.98.87]) by mx.google.com with ESMTPS id b4sm2511179lbi.0.2012.11.30.13.26.38 (version=SSLv3 cipher=OTHER); Fri, 30 Nov 2012 13:26:39 -0800 (PST) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 In-Reply-To: <87hao7aez6.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:67695 Archived-At: Hi Chong, On 30.11.2012 8:31, Chong Yidong wrote: > Dmitry Gutov writes: > >> +Default to the current buffer's file name if it's under version control." > >> +OLD defaults to the current buffer's file name if it's under version >> control." > > These seem to imply that the current buffer's name is always used if > it's under version control, rather than simply being the default for > reading the file name. It should instead say something like "If called > interactively, read FILE, defaulting to ..." > > Otherwise the patch looks OK for the trunk. Thanks. Do you think I can add commands like `vc-rename-this-file' and `vc-delete-this-file' instead? And then replace `vc-rename-file' in VC menu with the first one and add the second one below it? Because `vc-rename-file' is likely the only command in that menu that acts on a single file, but does't automatically use the one the current buffer visits.