From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#9361: 24.0.50; default value of `dired-do-chmod' Date: Mon, 12 Sep 2011 07:45:12 -0700 Message-ID: <5ADF13D8156C4D8ABED2665831AC17F2@us.oracle.com> References: <03BC028E352D4173B985B3B34DF3193A@us.oracle.com><87zkiyabea.fsf@mail.jurta.org> <1BDADB23B4434E0C9330F1B010F1E1CE@us.oracle.com> <87k49e7zwc.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1315838756 12788 80.91.229.12 (12 Sep 2011 14:45:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 12 Sep 2011 14:45:56 +0000 (UTC) Cc: 9361@debbugs.gnu.org To: "'Juri Linkov'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 12 16:45:52 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R37lf-0004CD-FV for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Sep 2011 16:45:51 +0200 Original-Received: from localhost ([::1]:37072 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R37lf-00023R-3t for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Sep 2011 10:45:51 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52525) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R37lc-00022t-2b for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2011 10:45:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R37lW-0004AX-AE for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2011 10:45:48 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55013) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R37lW-0004AS-7N for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2011 10:45:42 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R37pj-000650-7j; Mon, 12 Sep 2011 10:50:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Sep 2011 14:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9361 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 9361-submit@debbugs.gnu.org id=B9361.131583899823356 (code B ref 9361); Mon, 12 Sep 2011 14:50:02 +0000 Original-Received: (at 9361) by debbugs.gnu.org; 12 Sep 2011 14:49:58 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R37pe-00064f-2g for submit@debbugs.gnu.org; Mon, 12 Sep 2011 10:49:58 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R37pa-00064V-24 for 9361@debbugs.gnu.org; Mon, 12 Sep 2011 10:49:55 -0400 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p8CEjTCc019050 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 12 Sep 2011 14:45:31 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p8CEjSVv022673 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 12 Sep 2011 14:45:29 GMT Original-Received: from abhmt115.oracle.com (abhmt115.oracle.com [141.146.116.67]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p8CEjNn4014578; Mon, 12 Sep 2011 09:45:23 -0500 Original-Received: from dradamslap1 (/10.159.35.90) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 12 Sep 2011 07:45:23 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87k49e7zwc.fsf@mail.jurta.org> Thread-Index: AcxxRD15MZ7/v0EURYK5alrvICn4BQAFOXQA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090207.4E6E1B0B.0142:SCFMA922111,ss=1,re=-4.000,fgs=0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 12 Sep 2011 10:50:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) 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:51067 Archived-At: > And RMS encouraged to do this for just one marked file: > > "When there is just one marked file, the feature could > indeed be useful. So I suggest you limit it to that case, > and document clearly where the default comes from, so that > people will know how they can make use of the feature." Great minds think alike. ;-) That was also one of my points: it doesn't make sense to do this when more than one file is marked. There is no reason to privilege the "first" of the set of marked files. > > In reality, it is an argument for having a separate command > > to copy the settings (all of them) from the current line and > > then having, as default value for each of the `*ch*' commands, > > the value taken from that copied setting. And this > > would apply across Dired buffers, giving you an easy way to > > apply a particular set of values (settings). It could perhaps > > also apply to other Dired commands, such as `touch' (dunno). > > Isn't what `M-.' you proposed earlier should do, i.e. pull the value > from the buffer where the command was called? No, I don't think so. I don't recall just what I proposed, but `M-.' in Icicles (on which I no doubt based my proposal) pulls into the minibuffer various things at/near point. In this case, that is not what I propose. The user should not have to move point to the permissions section to be able to get permissions etc. More importantly, what I'm proposing here is a _copy_ command, which copies file information for the file/dir of the current line. All available and pertinent file info would be copied. Then, the individual commands (`chmod' etc.) would have available, either (a) as default value (mentioned above) or (b) on-demand via a different minibuffer key from `M-n', the pertinent part of the copied info. E.g., for command `chmod', it is the file permissions part of the copied info that is pertinent, so (only) that would be used. For command `touch', it is the mod time of the copied file info that is pertinent, so that would be used. (This is akin to what is available in some editors for copying special properties (e.g. XML attributes, face/font info, conditional text values) and making them available via a `Paste Special' command. Whatever the last type of special copy, the `Paste Special' pastes that to its target.)