From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#5751: Strange behaviour of ff-find-other-file Date: Mon, 29 Aug 2016 17:55:38 -0400 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: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1472507784 20997 195.159.176.226 (29 Aug 2016 21:56:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 29 Aug 2016 21:56:24 +0000 (UTC) Cc: 5751@debbugs.gnu.org, Arne Schmitz To: Andrew Hyatt Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 29 23:56:19 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 1beUXR-0004qj-Cx for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Aug 2016 23:56:17 +0200 Original-Received: from localhost ([::1]:45947 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1beUXO-0006jf-Vb for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Aug 2016 17:56:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1beUXG-0006hL-4I for bug-gnu-emacs@gnu.org; Mon, 29 Aug 2016 17:56:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1beUXB-0004XV-V8 for bug-gnu-emacs@gnu.org; Mon, 29 Aug 2016 17:56:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46162) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1beUXB-0004XR-RJ for bug-gnu-emacs@gnu.org; Mon, 29 Aug 2016 17:56:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1beUXB-0002CM-Lg for bug-gnu-emacs@gnu.org; Mon, 29 Aug 2016 17:56:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Aug 2016 21:56:01 +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.14725077468427 (code B ref 5751); Mon, 29 Aug 2016 21:56:01 +0000 Original-Received: (at 5751) by debbugs.gnu.org; 29 Aug 2016 21:55:46 +0000 Original-Received: from localhost ([127.0.0.1]:43874 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1beUWv-0002Br-OD for submit@debbugs.gnu.org; Mon, 29 Aug 2016 17:55:45 -0400 Original-Received: from mail-oi0-f50.google.com ([209.85.218.50]:35500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1beUWu-0002Bf-Pn for 5751@debbugs.gnu.org; Mon, 29 Aug 2016 17:55:45 -0400 Original-Received: by mail-oi0-f50.google.com with SMTP id j203so1434487oih.2 for <5751@debbugs.gnu.org>; Mon, 29 Aug 2016 14:55:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=+YUWfm0FsKz2Yf00RxTlFD1oOAWQe5nQBpjeDiPupDE=; b=PhM67wcixEN2JUYA4PEvlq6fC2sqBEMMAYuty6t1pIrig2+P5bP1CAi6M58JLU7aeU TIEdFaVbcNYPmXc0cCSzhNQJSpphLYqZ/UfbK8O0QpiTS4ciPDx1sb7mxe1T3t+s+eiU VuQ1zfnMVvvFwHk/OP8SpzW38EjLJ6SCYi49uVRFqVe3NGXko5lwUWXOVGxYcoo21hJY n5fx4Dq2mcJClQoLIz+x/VpsgSXtmXw/wSWX9OO4wLZ6ItjACjuPmAp+Foag7QOwNt/5 NA8icIRe8nBQmCjIvJPlkFV+tua1vsJFlGZsN1vV/OM6EaJJUG+d0dczXb6c7zcTmtpV W1nQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=+YUWfm0FsKz2Yf00RxTlFD1oOAWQe5nQBpjeDiPupDE=; b=TdhJzg367YFPt/bkF0tDfBBORUckVRv5twIdRChrV+HDLHwoO1qg5kuBG5BKbAYhLO CJMdOo4CjNRxpXsbr1lpL/MQZE+aJrxwmpiI5x+PoEDYCbx61s72b46A8iSEbybKCYKK h1U2xCzTOu0omASy6YIWtYpxAAoh8yUoHbK1iulq44HIgKdt4BVcJO70MPCBWAPGDrbA h8XFp/bfM9fbVQBzuU+6UNX4i5n3V44noMz2TivQ2Po6A647jCL+L7XVubp+ETFqRqOm iYLdNjOxxj67JglqgOcyq3GvLHK5VoUz1Yg3IJf83XmH6i12eyieUBinsakXW+BXflUz 54VQ== X-Gm-Message-State: AE9vXwNvXQZa9I+Rl+lAU+4OJyB1mXS8Zk6vkjJ+wFpYdV0K/MGc8nTyI20tBWhTkVMRD4sxksCavk2um2yAyQ== X-Received: by 10.202.169.13 with SMTP id s13mr221936oie.35.1472507739186; Mon, 29 Aug 2016 14:55:39 -0700 (PDT) Original-Received: by 10.157.11.125 with HTTP; Mon, 29 Aug 2016 14:55:38 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: iO4cnM6QgNsEVm1HOa9QZrq-77Y 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:122758 Archived-At: On Sun, Aug 28, 2016 at 1:18 AM, Andrew Hyatt wrote: >> 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. > Probably it will need to be made configurable in the end, but as a default, I don't think choosing a non-related util.c from another nearby directory is worse than failing to choose a related one.