From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs,gmane.emacs.devel Subject: RE: dired-sort-toggle-or-edit and point on first file Date: Sun, 29 Jan 2006 07:56:28 -0800 Message-ID: References: <87oe1x1gqe.fsf@jidanni.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1138556400 24825 80.91.229.2 (29 Jan 2006 17:40:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 29 Jan 2006 17:40:00 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 29 18:39:58 2006 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F3GWp-0003cZ-M2 for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Jan 2006 18:39:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F3GZk-0001oy-Ck for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Jan 2006 12:42:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F3Exw-0002Od-37 for bug-gnu-emacs@gnu.org; Sun, 29 Jan 2006 10:59:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F3Exi-0002Ir-Jb for bug-gnu-emacs@gnu.org; Sun, 29 Jan 2006 10:59:47 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F3Exh-0002I7-I5; Sun, 29 Jan 2006 10:59:33 -0500 Original-Received: from [148.87.113.118] (helo=rgminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1F3Evq-0003Bn-RL; Sun, 29 Jan 2006 10:57:39 -0500 Original-Received: from rgmsgw301.us.oracle.com (rgmsgw301.us.oracle.com [138.1.186.50]) by rgminet01.oracle.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id k0TFuTx5016314; Sun, 29 Jan 2006 08:56:29 -0700 Original-Received: from rgmsgw301.us.oracle.com (localhost [127.0.0.1]) by rgmsgw301.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id k0TFuTWR031576; Sun, 29 Jan 2006 08:56:29 -0700 Original-Received: from dradamslap (dhcp-amer-csvpn-gw2-141-144-72-111.vpn.oracle.com [141.144.72.111]) by rgmsgw301.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id k0TFuS5l031568 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Sun, 29 Jan 2006 08:56:29 -0700 Original-To: "Emacs-Devel" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <87oe1x1gqe.fsf@jidanni.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Importance: Normal X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:14758 gmane.emacs.devel:49678 Archived-At: s runs the command dired-sort-toggle-or-edit Toggle between sort by date/name and refresh the dired buffer. Nice, but when we hit it we don't stay at the top of the list, but are sent tumbling below, cursor glued to that former (often) first file. Yes, a feature I know, but no way offered to start afresh at top without adding stuff to ~/.emacs. As you say, this is not a bug - it is by design. But perhaps the design could be improved (made more flexible). I must admit that I too have been annoyed by this. I've grown used to it, so I work around it in various ways unconsciously. The design is to permit the current line to stay in view, and that makes sense in many contexts - in particular, if you have inserted subdirectories. However, sorting the directory listing is an operation on the whole listing, not on an individual entry, and there are other contexts (or work habits) in which it makes more sense to redisplay the listing starting at the top. I think it would be good if this behavior were configurable. Personally, I usually do not care about keeping the current line in view; I prefer to see the top of the listing. (Follow-ups should go to emacs-devel, not bug-gnu-emacs, since this is a design issue, not a bug.)