From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#10624: 24.0.92; default value of `dired-do-ch*' Date: Sun, 16 Sep 2012 01:50:06 +0300 Organization: JURTA Message-ID: <87vcfex5bx.fsf@mail.jurta.org> References: <0F10A2A4C6E541469381BA91CB8AEEB3@us.oracle.com> <60BBA8177B8C4157BBB5426B2F6A8204@us.oracle.com> <87392k2ml9.fsf@mail.jurta.org> <4200B2318C4140E68FA74B61375885B9@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1347750486 9200 80.91.229.3 (15 Sep 2012 23:08:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 15 Sep 2012 23:08:06 +0000 (UTC) Cc: 10624@debbugs.gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 16 01:08:09 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 1TD1T3-00009C-Ij for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Sep 2012 01:08:05 +0200 Original-Received: from localhost ([::1]:34590 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TD1Sz-0004VC-AV for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Sep 2012 19:08:01 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40055) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TD1Sw-0004Uw-OE for bug-gnu-emacs@gnu.org; Sat, 15 Sep 2012 19:07:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TD1Sv-0003tQ-QF for bug-gnu-emacs@gnu.org; Sat, 15 Sep 2012 19:07:58 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54605) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TD1Sv-0003tL-Mm for bug-gnu-emacs@gnu.org; Sat, 15 Sep 2012 19:07:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TD1Ty-0005Gq-Hq for bug-gnu-emacs@gnu.org; Sat, 15 Sep 2012 19:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Sep 2012 23:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10624 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10624-submit@debbugs.gnu.org id=B10624.134775050420212 (code B ref 10624); Sat, 15 Sep 2012 23:09:02 +0000 Original-Received: (at 10624) by debbugs.gnu.org; 15 Sep 2012 23:08:24 +0000 Original-Received: from localhost ([127.0.0.1]:35916 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TD1TM-0005Fw-1e for submit@debbugs.gnu.org; Sat, 15 Sep 2012 19:08:24 -0400 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:35650 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TD1TJ-0005Fj-97 for 10624@debbugs.gnu.org; Sat, 15 Sep 2012 19:08:22 -0400 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id C967C451CC45; Sat, 15 Sep 2012 16:07:13 -0700 (PDT) In-Reply-To: <4200B2318C4140E68FA74B61375885B9@us.oracle.com> (Drew Adams's message of "Fri, 14 Sep 2012 17:37:10 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (x86_64-pc-linux-gnu) 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 (newer, 2) 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:64378 Archived-At: > The Emacs mark is not something that is very useful in this context, > IMO. It's not obvious and visible. It is visible when transient-mark-mode is enabled. > And why use the mark only when transient-mark-mode is enabled? Because when transient-mark-mode is enabled, it is possible to deactivate the mark with C-g. > That obviates use of the region for something more useful in Dired It doesn't preclude from using the region in other Dired commands. > What's more, if I read your code correctly, when there is no active > mark you are still picking up the first of the marked files and using > its data as the default. No, you read code incorrectly. You could pay more attention to the line with (= (length files) 1) > 2. Minimal, easy to do now: Use the attributes of the file on the current line, > providing them as the default for the marked files according to the particular > command (mod time, various permission fields, etc.). This makes sense, but it might be too confusing. For instance, in the following scenario: type `m' to select a file, after that point moves to the next line with an arbitrary unselected file whose attributes will be used as the default value. This would be unexpected. > 3. More complex, but more useful: Let the user hit a key to "copy" the > attributes of a given file (on the current line - the "source" file), as if to a > clipboard. Then use those attributes for subsequent "paste" operations, I suppose a key to copy the attributes to use as the default value would be like `w' (`dired-copy-filename-as-kill'). It is worth thinking about. But it has one drawback that is not too obvious. > The point is to (a) have a reasonable source-file choice from which attributes > are taken for the default and (b) push those attributes to the marked files as > defaults for an operation, in a operation-pertinent way. Using the mark in transient-mark-mode is a reasonable source-file choice from which attributes are taken for the default, and could be added among other possible methods.