From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Mathias Dahl" Newsgroups: gmane.emacs.devel Subject: Re: Dired patch for `i' - bounce between subdir line and its inserted listing Date: Mon, 31 Mar 2008 09:53:02 +0200 Message-ID: <7dbe73ed0803310053u14071bbdq66408c850c673313@mail.gmail.com> References: <002601c88172$2a0dc720$0600a8c0@us.oracle.com> <7dbe73ed0803291813t6d266884w7b0343e995f2c2fb@mail.gmail.com> <87ej9sukpy.fsf@jurta.org> <7dbe73ed0803301503o619ce687l6995e09bbc152fee@mail.gmail.com> <003701c892b8$a99aa060$0200a8c0@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1206950009 12777 80.91.229.12 (31 Mar 2008 07:53:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 31 Mar 2008 07:53:29 +0000 (UTC) Cc: Juri Linkov , emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 31 09:53:59 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JgEpv-0006zs-C4 for ged-emacs-devel@m.gmane.org; Mon, 31 Mar 2008 09:53:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JgEpJ-00044g-KV for ged-emacs-devel@m.gmane.org; Mon, 31 Mar 2008 03:53:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JgEpF-00044L-5a for emacs-devel@gnu.org; Mon, 31 Mar 2008 03:53:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JgEpD-000446-OP for emacs-devel@gnu.org; Mon, 31 Mar 2008 03:53:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JgEpD-000443-Lg for emacs-devel@gnu.org; Mon, 31 Mar 2008 03:53:03 -0400 Original-Received: from wa-out-1112.google.com ([209.85.146.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JgEpD-0004KO-8j for emacs-devel@gnu.org; Mon, 31 Mar 2008 03:53:03 -0400 Original-Received: by wa-out-1112.google.com with SMTP id k34so1888601wah.10 for ; Mon, 31 Mar 2008 00:53:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=Kio8R9NZzSTiRo9sJ48KyCu9vwaCm/Qudr6t+ym4A9I=; b=d9YVsy4qzMbNTfS/Tgbpx9udH9D7dLcvqNwFOPBzvHzwgSW7WSs4JR9mB23kKEhc/9q9O+raXR2BSLs6rCaP6/UH/oy82aC0/D7qfnVwrMI8FH8I0LqIoFi06ukl2stwuVrQSpyBthrKpcGXsKcWZYBC8/Uw7a2xn1cFlZpWRVs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gxBsTpbixdFbwyrrQU7iqOw6wpX/EO0vsdVlt+sxahNjeM9QRkmSaPFpj+lCb4YC6+VjkI8QtkkNwXbsqGrpRtra4/B7J68qEdtOQdAbvG0UfnW6ZdI85UCHrhXHwekw978eDo+07Kz4PfuyV0zP5YBwdMQ2HVuNdNb3NSc1ZKc= Original-Received: by 10.114.204.7 with SMTP id b7mr9381304wag.129.1206949982223; Mon, 31 Mar 2008 00:53:02 -0700 (PDT) Original-Received: by 10.114.146.9 with HTTP; Mon, 31 Mar 2008 00:53:02 -0700 (PDT) In-Reply-To: <003701c892b8$a99aa060$0200a8c0@us.oracle.com> Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:94022 Archived-At: > It's not about double-tapping. That was never described as the purpose of the > patch. Similarly, always taking you back where you came from was never described > as the purpose of the patch. Sorry for reading my thoughts into your proposal. > With or without the patch, `i' always inserts a directory when used on a > directory line. That's a feature (the original behavior of `i'), not a bug. Yes, it is not a bug. > The question is what `i' should do when it is _not_ on a directory line. In > vanilla Emacs without the proposed patch it just raises an error: "Attempt to > insert a non-directory: c:/foo/bar/toto.el". With the patch, it goes to the > parent directory line, if there is one, in the same Dired buffer. Which of these > behaviors is more useful? That's the only question, because that's the only > change the patch makes. I can only describe how I work and I would not use the patched `i' in that way. I would have liked it for the double tap thingy but now that I realized that have bad side effects I would not like it anymore :) I would never use `i' on a non-dir line outside the context of inserting the same dir. That's not saying other would not like it, of course. Now that I know about `^' doing what I want I will probably start to use that. It is unlikely that I do this on the top level by mistake so it will work for me I think.