From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ams@gnu.org (Alfred M. Szmidt) Newsgroups: gmane.emacs.devel Subject: Re: default file for diff-backup Date: Mon, 23 Jun 2014 17:20:37 -0400 Message-ID: References: , , Reply-To: ams@gnu.org NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1403558450 11700 80.91.229.3 (23 Jun 2014 21:20:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Jun 2014 21:20:50 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Herring, Davis" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 23 23:20:43 2014 Return-path: Envelope-to: ged-emacs-devel@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 1WzBfP-0005GT-HU for ged-emacs-devel@m.gmane.org; Mon, 23 Jun 2014 23:20:43 +0200 Original-Received: from localhost ([::1]:56012 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzBfP-0000iA-3R for ged-emacs-devel@m.gmane.org; Mon, 23 Jun 2014 17:20:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59818) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzBfM-0000i4-37 for emacs-devel@gnu.org; Mon, 23 Jun 2014 17:20:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzBfJ-0001nF-Jh for emacs-devel@gnu.org; Mon, 23 Jun 2014 17:20:40 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41906) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzBfJ-0001n9-Cw for emacs-devel@gnu.org; Mon, 23 Jun 2014 17:20:37 -0400 Original-Received: from ams by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1WzBfJ-0002z2-5P; Mon, 23 Jun 2014 17:20:37 -0400 In-reply-to: (herring@lanl.gov) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:172671 Archived-At: > There are quite a few cases where the default could be improved for > the "RET" case, copy-file, rename-file, delete-file, ... But they all already work! So they seem! Though not clear that they do, it would be nicer if there was some hint that one could just hint RET. It is not the behaviour that `diff' exhibits, where you are at least shown something. At least, if `insert-default-directory' is non-nil, as is the default. That's why I asked whether your patch was meant to address the other case. I think I see what you are saying now, it was unclear to me. What is annoying to me, is that there is no mention of a "default" when you invoke M-x diff-backup (or for the matter, M-x copy-file, rename-file, ...). M-x diff does have one though, which is really all I want. I.e.: C-x C-f ~/.emacs RET M-x copy-file RET Copy file: ~/ ~/ isn't a file, why would I copy it? So I type the file I want instead of just hitting RET, which would give me the default file as you note. Where as with the simple modification to diff-backup: C-x C-f ~/.emacs RET M-x diff-backup RET Diff file with backup (default .emacs): ~/ This is far clearer.