From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andrew Hyatt Newsgroups: gmane.emacs.bugs Subject: bug#5751: Strange behaviour of ff-find-other-file Date: Sun, 28 Aug 2016 05:18:11 +0000 Message-ID: References: <7B99D88E-806D-412D-8CCD-0EDB6CDF6588@gmx.net> <877fb4tj6l.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b8743f65fe461053b1ae0b5 X-Trace: blaine.gmane.org 1472361561 12759 195.159.176.226 (28 Aug 2016 05:19:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 28 Aug 2016 05:19:21 +0000 (UTC) Cc: 5751@debbugs.gnu.org, Arne Schmitz To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 28 07:19:17 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bdsV1-0002nu-BH for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Aug 2016 07:19:15 +0200 Original-Received: from localhost ([::1]:38200 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bdsUz-0004qG-12 for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Aug 2016 01:19:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59843) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bdsUs-0004px-Bn for bug-gnu-emacs@gnu.org; Sun, 28 Aug 2016 01:19:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bdsUo-00032J-M8 for bug-gnu-emacs@gnu.org; Sun, 28 Aug 2016 01:19:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44678) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bdsUo-00032F-IX for bug-gnu-emacs@gnu.org; Sun, 28 Aug 2016 01:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bdsUo-0005ZH-6u for bug-gnu-emacs@gnu.org; Sun, 28 Aug 2016 01:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrew Hyatt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Aug 2016 05:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5751-submit@debbugs.gnu.org id=B5751.147236151121358 (code B ref 5751); Sun, 28 Aug 2016 05:19:02 +0000 Original-Received: (at 5751) by debbugs.gnu.org; 28 Aug 2016 05:18:31 +0000 Original-Received: from localhost ([127.0.0.1]:42390 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bdsUJ-0005YQ-AQ for submit@debbugs.gnu.org; Sun, 28 Aug 2016 01:18:31 -0400 Original-Received: from mail-wm0-f48.google.com ([74.125.82.48]:37213) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bdsUH-0005YD-7H for 5751@debbugs.gnu.org; Sun, 28 Aug 2016 01:18:29 -0400 Original-Received: by mail-wm0-f48.google.com with SMTP id i5so44961997wmg.0 for <5751@debbugs.gnu.org>; Sat, 27 Aug 2016 22:18:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=haH74IzFy1qLK6KPn1u9bdsN0/c5+O8J2M2zjfD0Jl8=; b=dxG8WEFLwVYRh8XQWrBqvQP/DAFAvhraDZMRWcdqLlWriGGBpiKMath+EZEwY6NfiQ 1Zpi1Mbrk7K2GGdhi0RlJ2YX4NYutqvri4tB4pxp2ALn63/16wOa4814nhdRSAsmx4w+ hu2Kze+x/eNSoAHZ9jt6NiPoYJlFYW8FLBZZxCIWEh9VZSP04jxy/TkxD0zrPLLnQa+0 F5d2ea/wx2Fq22ZEKK8gd0mLcDZHhT12k7/dHvjm70DeBhS6T5/WSYU8cplbis1Kx1Gs EPY1aHcvlZV+8Pm1a2h2Fb395U/qN6OHOkD+wCV1CVklv+X5MwDKm8pyi/IaoLf4gogV Ce/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=haH74IzFy1qLK6KPn1u9bdsN0/c5+O8J2M2zjfD0Jl8=; b=W90YJrVicsAY7lsvt9RHsXsRa5x/nx3TqhVpMXTR08G5ClschU6/T9Gtl5PnHLUwCR CEVIeCpREB29At3h8/nSjOkrnWmUVlEH9eP9zozNNwebCSopu2QxPTQQXYENMuyqiD/v Z3OFtqiZPSE6ikj21mkvXV8sUWXwGkzL0ZWX1K+mBayheV7NA3a7StP0wVt6GJe6XCK+ AgwT6dz7Me77LnnuFKJ2M0O/KB5kmjXV15MSZeigOLjIyL5G5iA3LRY3bhtPTDzyiEXC ekXM9G81o9LFTjDMoBFdXHFFER1GtWmLqNvqBbS2UVRr/NRu4STKxg0uPYGHzG32CTth mtVg== X-Gm-Message-State: AE9vXwMeopKUVuBCFd1MitTD3j+o07NHlZeUAb9srn9LyvTyAEuMHU7Nxcm6cKya1RncOaJxJYUBtwSormndrw== X-Received: by 10.194.200.36 with SMTP id jp4mr11395011wjc.26.1472361503119; Sat, 27 Aug 2016 22:18:23 -0700 (PDT) In-Reply-To: <877fb4tj6l.fsf@users.sourceforge.net> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:122733 Archived-At: --047d7b8743f65fe461053b1ae0b5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On Thu, Aug 25, 2016 at 9:25 PM wrote: > reopen 5751 > tags 5751 - notabug > severity 5751 wishlist > retitle 5751 Let ff-find-other-file search other directories (in > "project"?) > quit > > Andrew Hyatt writes: > > > Sorry for the delay in response here. I think I understand what you are > > saying, but I think we probably would both agree this is more of a > > feature request than a bug. > > > > But I'm not sure it makes sense as a feature request - just because you > > have foo.c and foo.h, it is dangerous to think they are related just > > because they both exist as buffers. I frequently have multiple copies > > of the same file open in different directories to work on different > > issues - it would be a bug if ff-find-other-file started flipping > > between two very different working directories. > > > > So, I'm closing this one as not a bug. > > I'm reopening, because I think this does make sense as a feature > request. Generally foo.c and foo.h will be related if they are in the > same "project", so probably the user will want the file to be found in > this case. I think Emacs recently got some kind of "project API" thing, > perhaps that can be used for this? > This makes more sense the original proposal, but I'm still not so sure. For example, how many projects have multiple directories with files called util.c? Probably quite a few. I think any assumptions we make here will be bound to cause problems. --047d7b8743f65fe461053b1ae0b5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
On Thu, Aug 25, 2016 at 9:25 PM <npostavs@users.sourceforge.net> wrote:
reopen 5751
tags 5751 - notabug
severity 5751 wishlist
retitle 5751 Let ff-find-other-file search other directories (in "project"?)
quit

Andrew Hyatt <ahyatt@gmail.com> writes:

> Sorry for the delay in response here.  I think I understand what you are
> saying, but I think we probably would both agree this is more of a
> feature request than a bug.
>
> But I'm not sure it makes sense as a feature request - just because you
> have foo.c and foo.h, it is dangerous to think they are related just
> because they both exist as buffers.  I frequently have multiple copies
> of the same file open in different directories to work on different
> issues - it would be a bug if ff-find-other-file started flipping
> between two very different working directories.
>
> So, I'm closing this one as not a bug.

I'm reopening, because I think this does make sense as a feature
request.  Generally foo.c and foo.h will be related if they are in the
same "project", so probably the user will want the file to be found in
this case.  I think Emacs recently got some kind of "project API" thing,
perhaps that can be used for this?

This makes more sense the original proposal, but I'm still not so sure.  For example, how many projects have multiple directories with files called util.c?  Probably quite a few.  I think any assumptions we make here will be bound to cause problems. 

--047d7b8743f65fe461053b1ae0b5--