From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: up & down keys in Dired [was: M-= in Dired] Date: Fri, 7 Sep 2012 13:42:15 -0700 Message-ID: <6EC98B21E3AE4DF2A92C3F0B61464249@us.oracle.com> References: <877gs52845.fsf@gnu.org> <87392tho7g.fsf@gnus.org><87ehmdahlf.fsf@haselwarter.org> <87zk518wrk.fsf@haselwarter.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1347050555 32225 80.91.229.3 (7 Sep 2012 20:42:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Sep 2012 20:42:35 +0000 (UTC) Cc: emacs-devel@gnu.org To: "'Philipp Haselwarter'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 07 22:42:38 2012 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 1TA5No-0002Hr-MA for ged-emacs-devel@m.gmane.org; Fri, 07 Sep 2012 22:42:32 +0200 Original-Received: from localhost ([::1]:41493 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TA5Nl-0007Ky-IU for ged-emacs-devel@m.gmane.org; Fri, 07 Sep 2012 16:42:29 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34719) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TA5Ni-0007Kt-ST for emacs-devel@gnu.org; Fri, 07 Sep 2012 16:42:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TA5Nh-0001Ie-Kn for emacs-devel@gnu.org; Fri, 07 Sep 2012 16:42:26 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:51889) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TA5Nh-0001Ia-E9 for emacs-devel@gnu.org; Fri, 07 Sep 2012 16:42:25 -0400 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q87KgLx5018994 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 7 Sep 2012 20:42:22 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 q87KgLIH001282 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 7 Sep 2012 20:42:21 GMT Original-Received: from abhmt108.oracle.com (abhmt108.oracle.com [141.146.116.60]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q87KgKbP027046; Fri, 7 Sep 2012 15:42:20 -0500 Original-Received: from dradamslap1 (/10.159.216.219) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 07 Sep 2012 13:42:20 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87zk518wrk.fsf@haselwarter.org> Thread-Index: Ac2NLfeORSAl+1XURzC020f6FPiemAAB3DOw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 148.87.113.117 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:153169 Archived-At: > >> I don't like that behaviour either. > > > > Once more - you might be unhappy, but you do not say why. > > Sometimes I don't want point to jump back to the file name because I > might be reading some other column, say the file sizes. At > least C-n and C-p could run regular next/previous-line. The way > it is now it feels very intrusive. Thanks for giving a reason. And a reasonable one. I don't disagree with the usefulness sometimes of staying in the same column. I do think that if you start separating the bindings of pairs n/p, C-n/C-p, and down/up then some people will want one or the other pair to have one or the other behavior. Unless we add a user option for that (unlikely), IMO this essentially comes down to a suggestion that individuals bind whichever keys they like in `dired-mode-map', which is trivial to do. IOW, I don't see a good reason to change the default binding for any one of these pairs in particular. Coming back to your reason, and FWIW, there are also other ways to provide for help seeing which date, permissions, etc. belong to which files: 1. I already mentioned toggling `wdired', which is no big deal if you bind it to a key. Then anyone can use your `C-n' approach without needing to change C-n/C-p bindings. It depends how often you need to use `C-n' that way, I guess. 2. Another answer would be `hl-line' highlighting. That too can be quickly toggled on/off. 3. To me, it makes sense for highlighting of a line in Dired to be across the entire line - like using a ruler with tabular data. Printed tables often have rules or zebra striping for just that reason. But I personally prefer not to use `hl-line' mode all the time in Dired. I don't want to always see the current line highlighted. But I do want to see it highlighted in some contexts. So as an alternative to toggling `hl-line' highlighting on/off, I use full-line highlighting for Dired mouseover and for marked lines. The suggestion for vanilla Emacs to do likewise was rejected long ago, but I wouldn't be without it. I do the same thing for grep output, buffer menu, etc. You can see the effect for Dired here: http://www.emacswiki.org/cgi-bin/wiki/DiredPlus > NB: Once more? "Once more" referred to my reply: "I'm saying this once again." I had just finished replying the same thing to the OP: he gave no reason for his annoyance. Sorry for any confusion about that.