GNU bug report logs - #44297
[Feature request] project.el: Additional utility functions

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Brian Leung <leungbk@HIDDEN>; dated Thu, 29 Oct 2020 02:53:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 44297 <at> debbugs.gnu.org:


Received: (at 44297) by debbugs.gnu.org; 31 Oct 2020 19:45:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 31 15:45:30 2020
Received: from localhost ([127.0.0.1]:34572 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kYwoc-0004Zs-JN
	for submit <at> debbugs.gnu.org; Sat, 31 Oct 2020 15:45:30 -0400
Received: from relay11.mail.gandi.net ([217.70.178.231]:39549)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1kYwoY-0004ZO-S6
 for 44297 <at> debbugs.gnu.org; Sat, 31 Oct 2020 15:45:28 -0400
Received: from mail.gandi.net (m91-129-102-160.cust.tele2.ee [91.129.102.160])
 (Authenticated sender: juri@HIDDEN)
 by relay11.mail.gandi.net (Postfix) with ESMTPSA id 6E447100008;
 Sat, 31 Oct 2020 19:45:18 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Dmitry Gutov <dgutov@HIDDEN>
Subject: Re: bug#44297: [Feature request] project.el: Additional utility
 functions
Organization: LINKOV.NET
References: <1785587458.69035.1603939939547@HIDDEN>
 <871rhhv4q8.fsf@HIDDEN>
 <64182b62-dad4-08db-379b-acfddea26327@HIDDEN>
 <87o8kkdwa6.fsf@HIDDEN>
 <e9007689-87f8-b087-1474-693e85fddc00@HIDDEN>
Date: Sat, 31 Oct 2020 21:18:01 +0200
In-Reply-To: <e9007689-87f8-b087-1474-693e85fddc00@HIDDEN> (Dmitry Gutov's
 message of "Fri, 30 Oct 2020 19:42:52 +0200")
Message-ID: <87tuuap6m6.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 44297
Cc: 44297 <at> debbugs.gnu.org, leungbk@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

>> file.html, file.js and file.css.
>
> OK.
>
> How will we choose among multiple files when there are more than 2?
> Completing read on the file extension? Or just rotate among the files in
> a pre-defined order?

The convenience of rotating will degrade with increase of the number of found files.
But maybe rotating among 3 files would be fine.

>>> A fuzzy search across full names works best for me, personally. We could
>>> also try some differently weighted, fuzzy matching styles.
>> I don't know if the required completion can be part of a fuzzy search,
>> but it should show exactly the same completions as the current command
>> (with directory and file names), but should match only on file name parts,
>> not on directory name parts, e.g. with files:
>>    dirname/filename1 dirname/file2
>> typing "name" for completions should show only "dirname/filename1",
>> because most of the time, project directory names get in the way
>> when searching for a file by its name, and part of file name matches
>> directory names with many other unrelated files.
>
> So... suppose the user types out a file name in full and sees several
> matches (in different directories). What happens then?

The user then selects one of them to visit.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44297; Package emacs. Full text available.

Message received at 44297 <at> debbugs.gnu.org:


Received: (at 44297) by debbugs.gnu.org; 30 Oct 2020 17:47:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 30 13:47:39 2020
Received: from localhost ([127.0.0.1]:59607 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kYYV1-0002eh-7o
	for submit <at> debbugs.gnu.org; Fri, 30 Oct 2020 13:47:39 -0400
Received: from mail-ej1-f42.google.com ([209.85.218.42]:35031)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raaahh@HIDDEN>) id 1kYYUw-0002eR-5I
 for 44297 <at> debbugs.gnu.org; Fri, 30 Oct 2020 13:47:38 -0400
Received: by mail-ej1-f42.google.com with SMTP id p5so9770920ejj.2
 for <44297 <at> debbugs.gnu.org>; Fri, 30 Oct 2020 10:47:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=sender:subject:to:cc:references:from:message-id:date:user-agent
 :mime-version:in-reply-to:content-language:content-transfer-encoding;
 bh=ZPfzYxakSPxAG+Mu37B2bBSslSCFz2LL6vTstEwpQLc=;
 b=T5jx6XPiwW/q0wDfZdXlUwkNNEzEtoeEBNWpwiwP+bpL+E3u3w0eYU1uquNEQhDzs6
 mqoVBUfVged7D+zYKHysn7eyO2TQCPyHHdDraMcRu8mdyrXxEOx15T+xByIi+Qyv+bnh
 t5rhy+weQaBP1yHsraRS/ZIQIds5gd4HukwK/LNxfhp0oWq5eU+Uk8juwZkERsBq2bvD
 GjXmPWng3pUoYNhQO7C4HTYX4he+NtfDwYU0965YJdRr9HmkB2uh3H7iLxaWyWlJfQSr
 9vBbUwRPiNo63ZNRGB5faxxLpAS3MzEsFVMFRo6BCXwp32YzFCmM542FaeplFWnfZNFc
 UNkg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:sender:subject:to:cc:references:from:message-id
 :date:user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=ZPfzYxakSPxAG+Mu37B2bBSslSCFz2LL6vTstEwpQLc=;
 b=svM83fH7QQfljldMAgdppwtOTa/SmuEO8je0LacM7q6EaW5daG5qraePsvcXm2Dkfz
 Ro8pBZpkZsF9OgjmBCyTlNjzQN4VdgIJx2o5Z/9g4vki0iXbjgsox07G3cXzOeembrQC
 h5QrbYECsocbRO69m312uLIpZs5LuRZ9gZNdJLN0TG78bSTlqWxZlPLrYuCEIKinbK8x
 yx6dyHQ74p9hRRG+qoaKTbONLa4l5MeR1MmOWz1YEYswCqRtkJoaaJosVs0/7dsRGIc2
 FJ263OzkbzRg+oO9oR3Kg3tWH4+G+94AvG2RVKQqLWdJeWj7sIpSuoq1oOBfdluLoF3h
 mhwA==
X-Gm-Message-State: AOAM533Qu4hxa5/FiXGIU+C8aFJDv9eiJf/YjmsIVtolHGZs5f368w/N
 sks6ML6a1qo8+BSamnL8gocZeTXS1NVW6A==
X-Google-Smtp-Source: ABdhPJx1soHL/TQE+o208X5i0p3II1QsQ++zsuhYElr4xCYxK8gKNKsHugKAtpRo0wf/E9APFELhJg==
X-Received: by 2002:a17:906:280a:: with SMTP id
 r10mr3628633ejc.45.1604080048058; 
 Fri, 30 Oct 2020 10:47:28 -0700 (PDT)
Received: from [192.168.0.4] ([66.205.71.3])
 by smtp.googlemail.com with ESMTPSA id b24sm2614096edt.68.2020.10.30.10.47.26
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Fri, 30 Oct 2020 10:47:27 -0700 (PDT)
Subject: Re: bug#44297: [Feature request] project.el: Additional utility
 functions
To: Brian Leung <leungbk@HIDDEN>,
 "Basil L. Contovounesios" <contovob@HIDDEN>
References: <1785587458.69035.1603939939547@HIDDEN>
 <871rhhv4q8.fsf@HIDDEN>
 <64182b62-dad4-08db-379b-acfddea26327@HIDDEN> <87wnz8io18.fsf@HIDDEN>
 <2110324612.148355.1604018860967@HIDDEN>
From: Dmitry Gutov <dgutov@HIDDEN>
Message-ID: <5a991b42-c930-a5f2-3581-d6ea26f561f0@HIDDEN>
Date: Fri, 30 Oct 2020 19:47:25 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
 Thunderbird/68.10.0
MIME-Version: 1.0
In-Reply-To: <2110324612.148355.1604018860967@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 44297
Cc: 44297 <at> debbugs.gnu.org, Juri Linkov <juri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

On 30.10.2020 02:47, Brian Leung wrote:
>>> project-find-file-in-directory: completing-read for a directory
> within the project, and then within the selected directory,
> completing-read for a file within that directory
>>
>> Is that one really a frequent operation?
>>
>> I would imagine that project-find-file, with fuzzy search, would be a
> faster solution either way.
> 
> It's something that seems good on paper but that I always forget to
> use (with Projectile).

What do you mean by "forget"? You still use the command, but never type 
out words to match against the directory?

> My rationale for its usefulness is that having
> to visually filter similar file names based on directory can be a
> mental burden sometimes when there are similarly-named files in different
> directories. I don't feel too strongly about this, though, and could
> live without this feature.

Perhaps we could come up with a completion style that uses special 
indicators, e.g. some sigil to mean "input that comes after this should 
only be matched against the base file name".

Just spitballing. I'm not sure what the implementation would look like.

>>> https://www.emacswiki.org/emacs/FindOtherFile
>>>
>>> Projectile also has a command with a similar name.
>>>
>>> The feature will be pretty C/C++-centric
>>
>> Not if it's customised via ff-other-file-alist or similar.
> 
> It's also useful with OCaml.

Very good.

>>> What I don't understand, is why should it be in the project- namespace? Looking
>>> for a file with the same name in the current dir doesn't execute the notion of
>>> the current project, even a little bit.
>>>
>>> Projectile does a project-wide search for a file with the same basename (but a
>>> different extension). Is that actually useful?
>>
>> Maybe when e.g. headers and source files are in different directories?
>> I don't know whether that's already supported by find-file.el.
> 
> I cannot figure out how to quickly retrieve the header with
> ff-find-other-file when the source and header are in different
> directories; it seems necessary to manually find the containing
> directory with completing-read during the ff-find-other-file
> execution, which is cumbersome. So I think this feature would make
> sense in project.el.

Yes, OK.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44297; Package emacs. Full text available.

Message received at 44297 <at> debbugs.gnu.org:


Received: (at 44297) by debbugs.gnu.org; 30 Oct 2020 17:43:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 30 13:43:02 2020
Received: from localhost ([127.0.0.1]:59599 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kYYQY-0002X7-Bq
	for submit <at> debbugs.gnu.org; Fri, 30 Oct 2020 13:43:02 -0400
Received: from mail-ed1-f41.google.com ([209.85.208.41]:37588)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raaahh@HIDDEN>) id 1kYYQW-0002Wl-CX
 for 44297 <at> debbugs.gnu.org; Fri, 30 Oct 2020 13:43:00 -0400
Received: by mail-ed1-f41.google.com with SMTP id o18so7533319edq.4
 for <44297 <at> debbugs.gnu.org>; Fri, 30 Oct 2020 10:43:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=sender:subject:to:cc:references:from:message-id:date:user-agent
 :mime-version:in-reply-to:content-language:content-transfer-encoding;
 bh=go35k0LDzS4UIYv8DFUupsp/LDQvEE5Sj7jeCBJP4PE=;
 b=Kq01vmlkWbKa9pZn8uv3z0slubV2Vljncxd3sh6RYXECs6nfkAwIlJz8Ia4aO4TSsG
 vFZ3PW9xKbo+GiBRX4a1TOZmSF1B67rQG5Ln3hGAliaAo+xIDcB/LYYrkLjaT8wsZZzU
 oAsFzdIv8M6D7Bga5vNrjFXW27lnGkd78nnV5btHV2vO3hLQo6WrZpSDB1wpPyqRzHEY
 RYojVrx5J1D/1MUitkrQG2DDTI98WO1LbcUE7RcHI0q7t2bwlgOGxQQeHnSqX0en+Led
 fWjDaM7cHA2TH1CSQthZVilyKaURd1PygIa1SxTAk+d4erp2gQGtg6FIftwT947FRUH3
 Lfpw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:sender:subject:to:cc:references:from:message-id
 :date:user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=go35k0LDzS4UIYv8DFUupsp/LDQvEE5Sj7jeCBJP4PE=;
 b=F2nIDdNJQcWB4o+4EsP6CZEQLyGa2O9wnS1eD1d/7fP8IzgaL1CUag3bHCs+xl5QOe
 NotAQb3LmzEn5cV8g2FB/DlApr9R/n8j2JNUMuye2XZtY0kq+pUywsHCT0DS5kVug0Lf
 3PYHGSoawQMu0mnmNBKb3cFysgfVP+J7WYbRbwJTFrWqhB6M0DOIlMrShQPsYyx9ccPs
 SRIGf9UvXLO/ycRwYvemDTOshSEy37nhUoQYuntalHiYizRKoJI7YMKfltoKM6KgnTaD
 yH7+Hr9A+PZA2yAv6skDvQvXf0fm6XsuHlfV4XIgo2yjlDpw300whJgMRO3a/CmE1j3i
 uUFQ==
X-Gm-Message-State: AOAM530Ozdvh+DYEI6yCM/BByL2MbatQJJGKBTcnWNI65GYsTktwcFI4
 XLQFiXaj0hGU7hKROCUF2to=
X-Google-Smtp-Source: ABdhPJyPcEgVOlVzKdh8FBwqj9JyWDHxrmDwCrPdDMgqUmuoxRtaLztyakk1WtqLnUDDBvsHUTGAKA==
X-Received: by 2002:a50:8d48:: with SMTP id t8mr3760137edt.228.1604079774676; 
 Fri, 30 Oct 2020 10:42:54 -0700 (PDT)
Received: from [192.168.0.4] ([66.205.71.3])
 by smtp.googlemail.com with ESMTPSA id x2sm3424610edr.65.2020.10.30.10.42.53
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Fri, 30 Oct 2020 10:42:53 -0700 (PDT)
Subject: Re: bug#44297: [Feature request] project.el: Additional utility
 functions
To: Juri Linkov <juri@HIDDEN>
References: <1785587458.69035.1603939939547@HIDDEN>
 <871rhhv4q8.fsf@HIDDEN>
 <64182b62-dad4-08db-379b-acfddea26327@HIDDEN>
 <87o8kkdwa6.fsf@HIDDEN>
From: Dmitry Gutov <dgutov@HIDDEN>
Message-ID: <e9007689-87f8-b087-1474-693e85fddc00@HIDDEN>
Date: Fri, 30 Oct 2020 19:42:52 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
 Thunderbird/68.10.0
MIME-Version: 1.0
In-Reply-To: <87o8kkdwa6.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 44297
Cc: 44297 <at> debbugs.gnu.org, leungbk@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

On 30.10.2020 09:23, Juri Linkov wrote:
>> I think the term is pretty much established:
>> https://www.emacswiki.org/emacs/FindOtherFile
>>
>> Projectile also has a command with a similar name.
> 
> Then the name 'other-file' is fine.
> 
>> The feature will be pretty C/C++-centric, but I suppose it's useful enough.
> 
> It's also useful with Web development: while VueJS can keep parts of
> components in one file .vue, other frameworks require 3 different files:
> file.html, file.js and file.css.

OK.

How will we choose among multiple files when there are more than 2? 
Completing read on the file extension? Or just rotate among the files in 
a pre-defined order?

>> A fuzzy search across full names works best for me, personally. We could
>> also try some differently weighted, fuzzy matching styles.
> 
> I don't know if the required completion can be part of a fuzzy search,
> but it should show exactly the same completions as the current command
> (with directory and file names), but should match only on file name parts,
> not on directory name parts, e.g. with files:
> 
>    dirname/filename1 dirname/file2
> 
> typing "name" for completions should show only "dirname/filename1",
> because most of the time, project directory names get in the way
> when searching for a file by its name, and part of file name matches
> directory names with many other unrelated files.

So... suppose the user types out a file name in full and sees several 
matches (in different directories). What happens then?

>>>> project-recentf: completing-read recently-accessed files in the project
>>> All project file-reading commands could provide a list of recent files
>>> as the default values available via M-n key presses.
>>
>> Perhaps a flat, immediately visible list will have its own value, though?
> 
> Sorted by recency?

Yup.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44297; Package emacs. Full text available.

Message received at 44297 <at> debbugs.gnu.org:


Received: (at 44297) by debbugs.gnu.org; 30 Oct 2020 17:40:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 30 13:40:38 2020
Received: from localhost ([127.0.0.1]:59595 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kYYOD-0002TU-UQ
	for submit <at> debbugs.gnu.org; Fri, 30 Oct 2020 13:40:38 -0400
Received: from mail-ej1-f54.google.com ([209.85.218.54]:45193)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raaahh@HIDDEN>) id 1kYYO8-0002T9-L0
 for 44297 <at> debbugs.gnu.org; Fri, 30 Oct 2020 13:40:36 -0400
Received: by mail-ej1-f54.google.com with SMTP id dk16so9114778ejb.12
 for <44297 <at> debbugs.gnu.org>; Fri, 30 Oct 2020 10:40:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=sender:subject:to:cc:references:from:message-id:date:user-agent
 :mime-version:in-reply-to:content-language:content-transfer-encoding;
 bh=xZzRLyM9WXziEqjwfVcJcETCWDj/07BjGon+ewee66I=;
 b=uNYV1afqB0igrr/HUf7wCwoZelNHPqTD0RiXqHsW76yxVbxcwP7ILNtYnkXX3rx1Nl
 3t3fAUykB5FpuNKUi/BN0mhNcY2MR2pLDz2ynGlXD3HTN6nZR09YIOmv2D9Ihj/OU/bT
 JQIVIeAZ5zasxjBMOoLygKHWSB+47Pfo/JsMEsQ0EFcc2/QhsKDwWMxIOXYArWQRkZNf
 1gAp+po0hBYt5bMM1I+3vOIqCEJRU49dJuVWbDryu07L88DVwKBSPLKL7HQkdP4HzBEu
 V+7yu9qXAuE8pyb9PWjpcN1NKXrsu6Tpo/nN8Pi2mtuGKWVg28tCjxHgQHSzUMq1SceX
 W+tA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:sender:subject:to:cc:references:from:message-id
 :date:user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=xZzRLyM9WXziEqjwfVcJcETCWDj/07BjGon+ewee66I=;
 b=jPUAvoAv1YjR7UopYtYlok0fi0YS5IHQ+mdvVzFfFPP5kdYDEfp7sZUQVQCktiJeSn
 OO8hSa+noiR8ar3FoTz1nNGrTIg6J3dJSGbewBFFITcDAV/cs6bsGsfMIyuxWxI6YtdV
 cGL+wHFmaIFR+gdDNd2WmDETg8XDHE0vqyo3SAdintMWOyCJy0d6+hTnrVHhEihXn23B
 JdTo4CcqSjevE3ZBOY9Zjbaxd39wISTR6j9IVf+vdIm1DNghGWfp0/+QQ/LTW+GurHa3
 RMXs7kaySknQvFFl33JpHobBAGh53kFDGXrOZ/ouwuJ/CTJ3Cm1a3JJ8WAxSsq2kh7A8
 FQFw==
X-Gm-Message-State: AOAM531tFGlRZ/yYHj2W5WTIviDCg9sVqDjinx/d+YZP88nrFplcXC0n
 /gM1h9qxaX9uRKz/BhnqOCw=
X-Google-Smtp-Source: ABdhPJxsTai7cV6InLlJA7ltwqrVUTBf9ZQ6jOWUiKzBqsRpxUktn9hokozLXhM1qHquAZUxtOJVOw==
X-Received: by 2002:a17:906:d0cc:: with SMTP id
 bq12mr3546602ejb.127.1604079626677; 
 Fri, 30 Oct 2020 10:40:26 -0700 (PDT)
Received: from [192.168.0.4] ([66.205.71.3])
 by smtp.googlemail.com with ESMTPSA id y12sm3346012ede.82.2020.10.30.10.40.24
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Fri, 30 Oct 2020 10:40:25 -0700 (PDT)
Subject: Re: bug#44297: [Feature request] project.el: Additional utility
 functions
To: "Basil L. Contovounesios" <contovob@HIDDEN>
References: <1785587458.69035.1603939939547@HIDDEN>
 <871rhhv4q8.fsf@HIDDEN>
 <64182b62-dad4-08db-379b-acfddea26327@HIDDEN> <87wnz8io18.fsf@HIDDEN>
From: Dmitry Gutov <dgutov@HIDDEN>
Message-ID: <6bef1bb9-5f33-030e-2cf5-583c1a79dda5@HIDDEN>
Date: Fri, 30 Oct 2020 19:40:23 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
 Thunderbird/68.10.0
MIME-Version: 1.0
In-Reply-To: <87wnz8io18.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 44297
Cc: 44297 <at> debbugs.gnu.org, leungbk@HIDDEN, Juri Linkov <juri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

On 30.10.2020 01:57, Basil L. Contovounesios wrote:

>> What I don't understand, is why should it be in the project- namespace? Looking
>> for a file with the same name in the current dir doesn't execute the notion of
>> the current project, even a little bit.
>>
>> Projectile does a project-wide search for a file with the same basename (but a
>> different extension). Is that actually useful?
> 
> Maybe when e.g. headers and source files are in different directories?

All right then.

> I don't know whether that's already supported by find-file.el.

Apparently it's done using the ff-search-directories variable.

I'm not sure about usefulness of this, given the default value lists 
system directories. Was the user always supposed to customize it to list 
the source dirs in the current project?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44297; Package emacs. Full text available.

Message received at 44297 <at> debbugs.gnu.org:


Received: (at 44297) by debbugs.gnu.org; 30 Oct 2020 07:28:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 30 03:28:15 2020
Received: from localhost ([127.0.0.1]:55925 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kYOpa-0006sH-TS
	for submit <at> debbugs.gnu.org; Fri, 30 Oct 2020 03:28:15 -0400
Received: from relay12.mail.gandi.net ([217.70.178.232]:38415)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1kYOpZ-0006rq-2g
 for 44297 <at> debbugs.gnu.org; Fri, 30 Oct 2020 03:28:13 -0400
Received: from mail.gandi.net (m91-129-102-160.cust.tele2.ee [91.129.102.160])
 (Authenticated sender: juri@HIDDEN)
 by relay12.mail.gandi.net (Postfix) with ESMTPSA id 4300F200007;
 Fri, 30 Oct 2020 07:28:04 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Dmitry Gutov <dgutov@HIDDEN>
Subject: Re: bug#44297: [Feature request] project.el: Additional utility
 functions
Organization: LINKOV.NET
References: <1785587458.69035.1603939939547@HIDDEN>
 <871rhhv4q8.fsf@HIDDEN>
 <64182b62-dad4-08db-379b-acfddea26327@HIDDEN>
Date: Fri, 30 Oct 2020 09:23:09 +0200
In-Reply-To: <64182b62-dad4-08db-379b-acfddea26327@HIDDEN> (Dmitry Gutov's
 message of "Fri, 30 Oct 2020 01:20:21 +0200")
Message-ID: <87o8kkdwa6.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 44297
Cc: 44297 <at> debbugs.gnu.org, leungbk@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> I think the term is pretty much established:
> https://www.emacswiki.org/emacs/FindOtherFile
>
> Projectile also has a command with a similar name.

Then the name 'other-file' is fine.

> The feature will be pretty C/C++-centric, but I suppose it's useful enough.

It's also useful with Web development: while VueJS can keep parts of
components in one file .vue, other frameworks require 3 different files:
file.html, file.js and file.css.

>> Another useful command would be:
>> project-find-file-only using completing-read to match on file names only,
>> not on directory parts.
>
> And then... disambiguate files with the same base name with another prompt?
>
> IME, having multiple files with the same name in the project is very
> common. Your experience can vary, though.
>
> A fuzzy search across full names works best for me, personally. We could
> also try some differently weighted, fuzzy matching styles.

I don't know if the required completion can be part of a fuzzy search,
but it should show exactly the same completions as the current command
(with directory and file names), but should match only on file name parts,
not on directory name parts, e.g. with files:

  dirname/filename1 dirname/file2

typing "name" for completions should show only "dirname/filename1",
because most of the time, project directory names get in the way
when searching for a file by its name, and part of file name matches
directory names with many other unrelated files.

>>> project-recentf: completing-read recently-accessed files in the project
>> All project file-reading commands could provide a list of recent files
>> as the default values available via M-n key presses.
>
> Perhaps a flat, immediately visible list will have its own value, though?

Sorted by recency?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44297; Package emacs. Full text available.

Message received at 44297 <at> debbugs.gnu.org:


Received: (at 44297) by debbugs.gnu.org; 30 Oct 2020 00:47:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 29 20:47:57 2020
Received: from localhost ([127.0.0.1]:55536 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kYIa9-000527-CS
	for submit <at> debbugs.gnu.org; Thu, 29 Oct 2020 20:47:57 -0400
Received: from wilbur.contactoffice.com ([212.3.242.68]:56776)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <leungbk@HIDDEN>) id 1kYIa6-00051t-P4
 for 44297 <at> debbugs.gnu.org; Thu, 29 Oct 2020 20:47:51 -0400
Received: from ichabod.co-bxl (ichabod.co-bxl [10.2.0.36])
 by wilbur.contactoffice.com (Postfix) with ESMTP id 14A3CE45;
 Fri, 30 Oct 2020 01:47:44 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailfence.com;
 s=20160819-nLV10XS2; t=1604018864;
 bh=4MKkp4oXZf8oEEWIh8uq9589dZWyFq/+FpRKDThuQuA=;
 h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From;
 b=jDFQ0fo1txFwALebNyn5WuCbZNTCl/kPMkkgkVZm3l5GmMOQsyXiu87YJnPfKkblL
 RI72f704KNDXlucGQ4p48zGPQthNjxvL+YnQG6ka3M8vXxne6CZUP2v+Jpl75o0+B/
 PU65EhU/Q+Q9WrcM0doWMIy/UUC60ZJprADmTEZxcElKCEvGYdeze1gChLISn4LF/4
 uIJw8nM3Ws+IjgK8H+wLo0Z1fzMukjF6kvbCAqK6zRMic4Ti6jMQ7AUOGzYPOk/YYn
 K2FdsUfGJz8JZu4QDm/PWRA41G6aB9JMovcWmML9J+6HTe5cbdgMwIAaRF2mwj0rqL
 L0lO/eD5G2+6w==
Date: Fri, 30 Oct 2020 01:47:41 +0100 (CET)
From: Brian Leung <leungbk@HIDDEN>
To: "Basil L. Contovounesios" <contovob@HIDDEN>,
 Dmitry Gutov <dgutov@HIDDEN>
Message-ID: <2110324612.148355.1604018860967@HIDDEN>
In-Reply-To: <87wnz8io18.fsf@HIDDEN>
References: <1785587458.69035.1603939939547@HIDDEN>
 <871rhhv4q8.fsf@HIDDEN>
 <64182b62-dad4-08db-379b-acfddea26327@HIDDEN> <87wnz8io18.fsf@HIDDEN>
Subject: Re: bug#44297: [Feature request] project.el: Additional utility
 functions
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Priority: 3
X-Mailer: ContactOffice Mail
X-ContactOffice-Account: com:225491745
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 44297
Cc: 44297 <at> debbugs.gnu.org, Juri Linkov <juri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Brian Leung <leungbk@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> > project-find-file-in-directory: completing-read for a directory
within the project, and then within the selected directory,
completing-read for a file within that directory
>
> Is that one really a frequent operation?
>
> I would imagine that project-find-file, with fuzzy search, would be a
faster solution either way.

It's something that seems good on paper but that I always forget to
use (with Projectile). My rationale for its usefulness is that having
to visually filter similar file names based on directory can be a
mental burden sometimes when there are similarly-named files in different
directories. I don't feel too strongly about this, though, and could
live without this feature.

> > https://www.emacswiki.org/emacs/FindOtherFile
> >
> > Projectile also has a command with a similar name.
> >
> > The feature will be pretty C/C++-centric
>
> Not if it's customised via ff-other-file-alist or similar.

It's also useful with OCaml.

> > What I don't understand, is why should it be in the project- namespace?=
 Looking
> > for a file with the same name in the current dir doesn't execute the no=
tion of
> > the current project, even a little bit.
> >
> > Projectile does a project-wide search for a file with the same basename=
 (but a
> > different extension). Is that actually useful?
>
> Maybe when e.g. headers and source files are in different directories?
> I don't know whether that's already supported by find-file.el.

I cannot figure out how to quickly retrieve the header with
ff-find-other-file when the source and header are in different
directories; it seems necessary to manually find the containing
directory with completing-read during the ff-find-other-file
execution, which is cumbersome. So I think this feature would make
sense in project.el.

> ----------------------------------------
> From: Basil L. Contovounesios <contovob@HIDDEN>
> Sent: Fri Oct 30 00:57:07 CET 2020
> To: Dmitry Gutov <dgutov@HIDDEN>
> Cc: Juri Linkov <juri@HIDDEN>, <44297 <at> debbugs.gnu.org>, <leungbk@mail=
fence.com>
> Subject: Re: bug#44297: [Feature request] project.el: Additional utility =
functions
>=20
>=20
> Dmitry Gutov <dgutov@HIDDEN> writes:
>=20
> > On 29.10.2020 11:03, Juri Linkov wrote:
> >>> It would be nice if project.el had the following interactive function=
s:
> >>>
> >>> project-find-other-file: Find a file with the same basename as the cu=
rrent file but a different extension
> >> Maybe then it should be named project-find-other-extension?
> >> Otherwise, project-find-other-file might imply a similarity
> >> with find-alternate-file (C-x C-v).
> >
> > I think the term is pretty much established:
> > https://www.emacswiki.org/emacs/FindOtherFile
> >
> > Projectile also has a command with a similar name.
> >
> > The feature will be pretty C/C++-centric
>=20
> Not if it's customised via ff-other-file-alist or similar.
>=20
> > , but I suppose it's useful enough.
>=20
> > What I don't understand, is why should it be in the project- namespace?=
 Looking
> > for a file with the same name in the current dir doesn't execute the no=
tion of
> > the current project, even a little bit.
> >
> > Projectile does a project-wide search for a file with the same basename=
 (but a
> > different extension). Is that actually useful?
>=20
> Maybe when e.g. headers and source files are in different directories?
> I don't know whether that's already supported by find-file.el.
>=20
> --=20
> Basil


--=C2=A0
Sent with https://mailfence.com
Secure and private email




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44297; Package emacs. Full text available.

Message received at 44297 <at> debbugs.gnu.org:


Received: (at 44297) by debbugs.gnu.org; 29 Oct 2020 23:57:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 29 19:57:24 2020
Received: from localhost ([127.0.0.1]:55472 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kYHnH-0001gj-T0
	for submit <at> debbugs.gnu.org; Thu, 29 Oct 2020 19:57:24 -0400
Received: from mail-wr1-f53.google.com ([209.85.221.53]:46529)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <contovob@HIDDEN>) id 1kYHn8-0001gN-TD
 for 44297 <at> debbugs.gnu.org; Thu, 29 Oct 2020 19:57:22 -0400
Received: by mail-wr1-f53.google.com with SMTP id k10so3266729wrw.13
 for <44297 <at> debbugs.gnu.org>; Thu, 29 Oct 2020 16:57:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=tcd-ie.20150623.gappssmtp.com; s=20150623;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=7dli3ieFfDlPM+9X9L1IJuVFac/Zx5D967nRsODQu2s=;
 b=AewCbm4j6MpfCgkq6oZTS8zpdq2DqUuhZDEaJOhagfYwT8WoMtZxtcBozy+W6cvf+v
 /x16Qb21xYcPyPAuIdAPqACUs1T/rM7Uzejb7tHDGHYqXVq4M5cXDTbrhfPtLdp1Kx7x
 hqw1BXJysUsoTJa4rm1PHN3BtJ4L/XmR5cnc0ElXtF7FKd4JwVM86DkzDLNywQTonGtQ
 PPll2yzyz5anXKgOnanPoiBv/7BTwEdHinlxA94qujNpFwpgrRq3hCOlbCiLjnPMrs3I
 QbUkA/lYsZvuczHEN+zNhGpY2g/mimmh7ksjRl2s+L1IAF06dJSTVlogizHNBks1DW1S
 izSA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=7dli3ieFfDlPM+9X9L1IJuVFac/Zx5D967nRsODQu2s=;
 b=G6v9SB0/Xq0n5V4jkAGVk3zPcmlt3gYXRL8UEkEBin0kyhsAOb3DqBFByJ2RHYjphJ
 BaQRYTpub1e69ipl4rXC9sOp5ZNNkwoRt0y4ysQTHEH8UZK5ETgSGLdcPTrC/En8ox3h
 CcWMBmtDJwbieoKM2salmOhTntsoFqD0unpgY2E7AYb7zs4MHPYxCY28jXRPuL1SZR7N
 QO5SdChFQlk64ebsQT5CU2dPuuUErel606pyG6dmitGBHQAmcjH2GyYDE9t3clNgtdN0
 YdA2WS+jYf9jDRciQO06bhpx2Lb7iiAtS2lAlMwpWw9KZD3b92EBme/vlJr85qDUudO1
 ji2g==
X-Gm-Message-State: AOAM53326tUtWms+BCBGpRyG+jjSAn/cAafxMg5FVa+PGYTNt6LNcJIu
 sorwL3U7WAQJI2RKO310/Jv+yA==
X-Google-Smtp-Source: ABdhPJysVn7lE/yiNxS/Q/VqOKFJaVdWU+f1tGu7pU2ghD1FuDmy+FFpu7Lptq5XIHpmZ1zjQVy3Tw==
X-Received: by 2002:adf:a405:: with SMTP id d5mr8837952wra.421.1604015829006; 
 Thu, 29 Oct 2020 16:57:09 -0700 (PDT)
Received: from localhost ([2a02:8084:20e2:c380:92bd:1bfd:38fc:fae2])
 by smtp.gmail.com with ESMTPSA id v6sm2245289wmj.6.2020.10.29.16.57.08
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 29 Oct 2020 16:57:08 -0700 (PDT)
From: "Basil L. Contovounesios" <contovob@HIDDEN>
To: Dmitry Gutov <dgutov@HIDDEN>
Subject: Re: bug#44297: [Feature request] project.el: Additional utility
 functions
References: <1785587458.69035.1603939939547@HIDDEN>
 <871rhhv4q8.fsf@HIDDEN>
 <64182b62-dad4-08db-379b-acfddea26327@HIDDEN>
Date: Thu, 29 Oct 2020 23:57:07 +0000
In-Reply-To: <64182b62-dad4-08db-379b-acfddea26327@HIDDEN> (Dmitry Gutov's
 message of "Fri, 30 Oct 2020 01:20:21 +0200")
Message-ID: <87wnz8io18.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 44297
Cc: 44297 <at> debbugs.gnu.org, leungbk@HIDDEN, Juri Linkov <juri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Dmitry Gutov <dgutov@HIDDEN> writes:

> On 29.10.2020 11:03, Juri Linkov wrote:
>>> It would be nice if project.el had the following interactive functions:
>>>
>>> project-find-other-file: Find a file with the same basename as the current file but a different extension
>> Maybe then it should be named project-find-other-extension?
>> Otherwise, project-find-other-file might imply a similarity
>> with find-alternate-file (C-x C-v).
>
> I think the term is pretty much established:
> https://www.emacswiki.org/emacs/FindOtherFile
>
> Projectile also has a command with a similar name.
>
> The feature will be pretty C/C++-centric

Not if it's customised via ff-other-file-alist or similar.

> , but I suppose it's useful enough.

> What I don't understand, is why should it be in the project- namespace? Looking
> for a file with the same name in the current dir doesn't execute the notion of
> the current project, even a little bit.
>
> Projectile does a project-wide search for a file with the same basename (but a
> different extension). Is that actually useful?

Maybe when e.g. headers and source files are in different directories?
I don't know whether that's already supported by find-file.el.

-- 
Basil




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44297; Package emacs. Full text available.

Message received at 44297 <at> debbugs.gnu.org:


Received: (at 44297) by debbugs.gnu.org; 29 Oct 2020 23:31:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 29 19:31:57 2020
Received: from localhost ([127.0.0.1]:55432 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kYHOf-00014V-GV
	for submit <at> debbugs.gnu.org; Thu, 29 Oct 2020 19:31:57 -0400
Received: from mail-ed1-f54.google.com ([209.85.208.54]:37918)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raaahh@HIDDEN>) id 1kYHOe-00014G-4k
 for 44297 <at> debbugs.gnu.org; Thu, 29 Oct 2020 19:31:56 -0400
Received: by mail-ed1-f54.google.com with SMTP id k9so4809485edo.5
 for <44297 <at> debbugs.gnu.org>; Thu, 29 Oct 2020 16:31:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=sender:subject:to:references:from:message-id:date:user-agent
 :mime-version:in-reply-to:content-language:content-transfer-encoding;
 bh=vuykR5IbE72wl0Frn828l+RwXxglboKJhtYKPjaws78=;
 b=L+6qE2TtHHBKns03HDrUbEHN1MqJi1WQzxNved8DMmm8ZwxkmopCtK4O8bBht2esBd
 +Bm4t3IercVJ5CNVlOQI4R24CRvnB+B13EoSyUwrqDsPcK5fQmXecfMJiDIBuzfNRy49
 OmPZblIBwa96fU2YxVR+uPdUsEmzI29kRd+3V1gW2tUvuDqm+RfQMNSPOq41LasQfqFc
 Vr2CZcBtLcblbimHMNF9+TlyeKsEuCsAo9FdC5isbDeTntCB9HJMKIkE8EU4g3GWNVsU
 PDuh/mmwSG9V7HiCGqudK9d66dGaGdH+wU9Mr7uHXtKi95Q5A8cfSQRp4t6aswBgS3eq
 65ow==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:sender:subject:to:references:from:message-id
 :date:user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=vuykR5IbE72wl0Frn828l+RwXxglboKJhtYKPjaws78=;
 b=kFADQGv1qTH96YF5v9+72DSj0JKlAJHhtwI5xKGsPDk0M3f2zF7RbdZBE2aVfYpCNM
 cEb2Edra7spjQ/AkQdWNLGZUHrh9x9EEFuGh80LKwKHWaainjwRohXinjGWzz0uFyvf1
 qTR7/dQxc1kUo68K0AMYKMn+C146el7O1OJJMNxafl8KhytfLtYQNUDsTQibu97Utpr6
 ebLTDQd5Jsy3KS03S55PIVD0UJxzkNZ12qRXuE4qg4ux39mYiLXawFVIMB1o7hwJaSEF
 lV7wxuytera2bGUpyXy3n+PPhDYxHqDdM3DocvOljcNluhIQv8uwzQmqBy4aSGmqBX/B
 7CzA==
X-Gm-Message-State: AOAM530iY209gWI1VPUpT1o+GDX296et4AqgJVxjvyPW6kkH/JYfvsuD
 nTVHDRSzVhV+7iU3YvqSSGoPuihDpjkO+g==
X-Google-Smtp-Source: ABdhPJysaalGjTChHGjMXMDVsR/VMLGtf+9IaTmhUA2V6RvtKTMpK9DPN2NEjjFiHYWlxiQbh/o3kA==
X-Received: by 2002:a05:6402:1686:: with SMTP id
 a6mr6483012edv.106.1604014310112; 
 Thu, 29 Oct 2020 16:31:50 -0700 (PDT)
Received: from [192.168.0.4] ([66.205.71.3])
 by smtp.googlemail.com with ESMTPSA id k25sm2187608ejz.93.2020.10.29.16.31.49
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Thu, 29 Oct 2020 16:31:49 -0700 (PDT)
Subject: Re: bug#44297: [Feature request] project.el: Additional utility
 functions
To: Brian Leung <leungbk@HIDDEN>, 44297 <at> debbugs.gnu.org
References: <1785587458.69035.1603939939547@HIDDEN>
From: Dmitry Gutov <dgutov@HIDDEN>
Message-ID: <a5901906-90b1-1e92-cf26-cd14c97c3c49@HIDDEN>
Date: Fri, 30 Oct 2020 01:31:48 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
 Thunderbird/68.10.0
MIME-Version: 1.0
In-Reply-To: <1785587458.69035.1603939939547@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 44297
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

On 29.10.2020 04:52, Brian Leung via Bug reports for GNU Emacs, the 
Swiss army knife of text editors wrote:
> project-find-directory: completing-read for a directory within the project

This is bug#43153.

 > project-find-file-in-directory: completing-read for a directory 
within the project, and then within the selected directory, 
completing-read for a file within that directory

Is that one really a frequent operation?

I would imagine that project-find-file, with fuzzy search, would be a 
faster solution either way.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44297; Package emacs. Full text available.

Message received at 44297 <at> debbugs.gnu.org:


Received: (at 44297) by debbugs.gnu.org; 29 Oct 2020 23:20:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 29 19:20:31 2020
Received: from localhost ([127.0.0.1]:55323 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kYHDb-0000fe-9W
	for submit <at> debbugs.gnu.org; Thu, 29 Oct 2020 19:20:31 -0400
Received: from mail-ej1-f52.google.com ([209.85.218.52]:40975)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raaahh@HIDDEN>) id 1kYHDZ-0000fQ-2d
 for 44297 <at> debbugs.gnu.org; Thu, 29 Oct 2020 19:20:29 -0400
Received: by mail-ej1-f52.google.com with SMTP id s15so6093378ejf.8
 for <44297 <at> debbugs.gnu.org>; Thu, 29 Oct 2020 16:20:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=sender:subject:to:cc:references:from:message-id:date:user-agent
 :mime-version:in-reply-to:content-language:content-transfer-encoding;
 bh=unlIW4sl1JfLVeoVdrzyHXWCfA/jV4TsR1AdBCwA9QU=;
 b=F77FEDjlos0cysKP8DrqW9FEthAvWM7D1XwnUkQDElAjwEqlzlNznZX5eqbwI8xC/b
 FG4SKpV0MixtGOHATb69JQw0XgkWzFsNkVnUNPYXkiQ7LrTD0LpcMv4GzfWKOiFSpO7D
 YJ9SCMrxbrBuprFs6OTRxT/w3WPHQrgXhgKv5ehSZwLcFQe2OOsjcUiguzviiUm1aY3q
 odFXuhzioaZr0lFviGwSLMqbiwVMTFdUrAVsraEW5uXvGQWYcrGogzF9yX1P3GMfvX0J
 /n2PNy92+AdzpxcIbfZB+koK9QNT/Muxlyr9F7VR9jcIlvughy0ranb6LtR11k8+PhlN
 Bgfw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:sender:subject:to:cc:references:from:message-id
 :date:user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=unlIW4sl1JfLVeoVdrzyHXWCfA/jV4TsR1AdBCwA9QU=;
 b=Nw0DmqkJ8tpNyiPq3KYsPLwZguPoD0rN2DaYRduRZEdRisIFYXSU8iyi/0Gyyfnqwu
 CeyLk54V184APrU7R+UkqJwB7DGP4FzEl5ofe+b2uqnvR7n//kwQEy7ZKTs2vlQvg3dd
 ll7ktay7jG2C4ORFGBiI2rY9ufzu0Xo7bupjGAxjRUSAvstIJuYQ8uV34uKo7yOFBSPM
 evnPRHUXRuO2c6N/+BwVrwjyynWsAxgOgiiTJO+KJFnUxs8fD9iwoXUTHNw1n1dDkqKG
 8ChC3ebXur4YpHIVb9/jiWSJRhkNOpiuqlq/AMc4o/Ra7WrwGiZYZWzk06JP1uedoOUk
 TRBg==
X-Gm-Message-State: AOAM53331GmVzlz62CVnLZsfWhcFKvVsWbguGqY3RDQTdPrKjrnyO7GT
 JrC5PMf3LVtwf4WAyt39ZHE=
X-Google-Smtp-Source: ABdhPJwXbnOM4UelHoltFh7IWY1pBQ5CtaZwfjdYo1Ozc1IH9aXkOtUVlIDRScYuzUsr8cqV8F7Q2w==
X-Received: by 2002:a17:906:b043:: with SMTP id
 bj3mr6312387ejb.338.1604013623285; 
 Thu, 29 Oct 2020 16:20:23 -0700 (PDT)
Received: from [192.168.0.4] ([66.205.71.3])
 by smtp.googlemail.com with ESMTPSA id j24sm2281783edq.29.2020.10.29.16.20.22
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Thu, 29 Oct 2020 16:20:22 -0700 (PDT)
Subject: Re: bug#44297: [Feature request] project.el: Additional utility
 functions
To: Juri Linkov <juri@HIDDEN>, 44297 <at> debbugs.gnu.org
References: <1785587458.69035.1603939939547@HIDDEN>
 <871rhhv4q8.fsf@HIDDEN>
From: Dmitry Gutov <dgutov@HIDDEN>
Message-ID: <64182b62-dad4-08db-379b-acfddea26327@HIDDEN>
Date: Fri, 30 Oct 2020 01:20:21 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
 Thunderbird/68.10.0
MIME-Version: 1.0
In-Reply-To: <871rhhv4q8.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 44297
Cc: leungbk@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

On 29.10.2020 11:03, Juri Linkov wrote:
>> It would be nice if project.el had the following interactive functions:
>>
>> project-find-other-file: Find a file with the same basename as the current file but a different extension
> 
> Maybe then it should be named project-find-other-extension?
> Otherwise, project-find-other-file might imply a similarity
> with find-alternate-file (C-x C-v).

I think the term is pretty much established: 
https://www.emacswiki.org/emacs/FindOtherFile

Projectile also has a command with a similar name.

The feature will be pretty C/C++-centric, but I suppose it's useful enough.

What I don't understand, is why should it be in the project- namespace? 
Looking for a file with the same name in the current dir doesn't execute 
the notion of the current project, even a little bit.

Projectile does a project-wide search for a file with the same basename 
(but a different extension). Is that actually useful?

> Another question: how it should work?  Maybe running this command
> should completing-read on all files with the same basename
> ignoring the extension?

Projectile has projectile-other-file-alist. A similar defcustom should 
narrow the search somewhat.

>> project-find-file-in-directory: completing-read for a directory within
>> the project, and then within the selected directory, completing-read
>> for a file within that directory
>> project-find-directory: completing-read for a directory within the project
> 
> Another useful command would be:
> project-find-file-only using completing-read to match on file names only,
> not on directory parts.

And then... disambiguate files with the same base name with another prompt?

IME, having multiple files with the same name in the project is very 
common. Your experience can vary, though.

A fuzzy search across full names works best for me, personally. We could 
also try some differently weighted, fuzzy matching styles.

>> project-recentf: completing-read recently-accessed files in the project
> 
> All project file-reading commands could provide a list of recent files
> as the default values available via M-n key presses.

Perhaps a flat, immediately visible list will have its own value, though?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44297; Package emacs. Full text available.

Message received at 44297 <at> debbugs.gnu.org:


Received: (at 44297) by debbugs.gnu.org; 29 Oct 2020 09:13:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 29 05:13:18 2020
Received: from localhost ([127.0.0.1]:51805 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kY3zi-0005uV-Le
	for submit <at> debbugs.gnu.org; Thu, 29 Oct 2020 05:13:18 -0400
Received: from relay6-d.mail.gandi.net ([217.70.183.198]:51843)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1kY3zg-0005uA-Fc
 for 44297 <at> debbugs.gnu.org; Thu, 29 Oct 2020 05:13:16 -0400
X-Originating-IP: 91.129.102.160
Received: from mail.gandi.net (m91-129-102-160.cust.tele2.ee [91.129.102.160])
 (Authenticated sender: juri@HIDDEN)
 by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id DE93FC000E;
 Thu, 29 Oct 2020 09:13:08 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Brian Leung via "Bug reports for GNU Emacs, the Swiss army knife of text
 editors" <bug-gnu-emacs@HIDDEN>
Subject: Re: bug#44297: [Feature request] project.el: Additional utility
 functions
Organization: LINKOV.NET
References: <1785587458.69035.1603939939547@HIDDEN>
Date: Thu, 29 Oct 2020 11:03:27 +0200
In-Reply-To: <1785587458.69035.1603939939547@HIDDEN> (Brian Leung
 via's message of "Thu, 29 Oct 2020 03:52:19 +0100 (CET)")
Message-ID: <871rhhv4q8.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 44297
Cc: 44297 <at> debbugs.gnu.org, Brian Leung <leungbk@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> It would be nice if project.el had the following interactive functions:
>
> project-find-other-file: Find a file with the same basename as the current file but a different extension 

Maybe then it should be named project-find-other-extension?
Otherwise, project-find-other-file might imply a similarity
with find-alternate-file (C-x C-v).

Another question: how it should work?  Maybe running this command
should completing-read on all files with the same basename
ignoring the extension?

> project-find-file-in-directory: completing-read for a directory within
> the project, and then within the selected directory, completing-read
> for a file within that directory
> project-find-directory: completing-read for a directory within the project

Another useful command would be:
project-find-file-only using completing-read to match on file names only,
not on directory parts.

> project-recentf: completing-read recently-accessed files in the project

All project file-reading commands could provide a list of recent files
as the default values available via M-n key presses.

> project-gdb: GDB in project root directory




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44297; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 29 Oct 2020 09:13:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 29 05:13:23 2020
Received: from localhost ([127.0.0.1]:51808 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kY3zm-0005up-UL
	for submit <at> debbugs.gnu.org; Thu, 29 Oct 2020 05:13:23 -0400
Received: from lists.gnu.org ([209.51.188.17]:32956)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1kY3zh-0005uO-G0
 for submit <at> debbugs.gnu.org; Thu, 29 Oct 2020 05:13:17 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:55096)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <juri@HIDDEN>) id 1kY3zh-0001ju-Ba
 for bug-gnu-emacs@HIDDEN; Thu, 29 Oct 2020 05:13:17 -0400
Received: from relay6-d.mail.gandi.net ([217.70.183.198]:49411)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <juri@HIDDEN>) id 1kY3zf-0007AE-Ak
 for bug-gnu-emacs@HIDDEN; Thu, 29 Oct 2020 05:13:17 -0400
X-Originating-IP: 91.129.102.160
Received: from mail.gandi.net (m91-129-102-160.cust.tele2.ee [91.129.102.160])
 (Authenticated sender: juri@HIDDEN)
 by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id DE93FC000E;
 Thu, 29 Oct 2020 09:13:08 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Brian Leung via "Bug reports for GNU Emacs, the Swiss army knife of text
 editors" <bug-gnu-emacs@HIDDEN>
Subject: Re: bug#44297: [Feature request] project.el: Additional utility
 functions
Organization: LINKOV.NET
References: <1785587458.69035.1603939939547@HIDDEN>
Date: Thu, 29 Oct 2020 11:03:27 +0200
In-Reply-To: <1785587458.69035.1603939939547@HIDDEN> (Brian Leung
 via's message of "Thu, 29 Oct 2020 03:52:19 +0100 (CET)")
Message-ID: <871rhhv4q8.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=217.70.183.198; envelope-from=juri@HIDDEN;
 helo=relay6-d.mail.gandi.net
X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/29 05:13:10
X-ACL-Warn: Detected OS   = Linux 3.11 and newer [fuzzy]
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: submit
Cc: 44297 <at> debbugs.gnu.org, Brian Leung <leungbk@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

> It would be nice if project.el had the following interactive functions:
>
> project-find-other-file: Find a file with the same basename as the current file but a different extension 

Maybe then it should be named project-find-other-extension?
Otherwise, project-find-other-file might imply a similarity
with find-alternate-file (C-x C-v).

Another question: how it should work?  Maybe running this command
should completing-read on all files with the same basename
ignoring the extension?

> project-find-file-in-directory: completing-read for a directory within
> the project, and then within the selected directory, completing-read
> for a file within that directory
> project-find-directory: completing-read for a directory within the project

Another useful command would be:
project-find-file-only using completing-read to match on file names only,
not on directory parts.

> project-recentf: completing-read recently-accessed files in the project

All project file-reading commands could provide a list of recent files
as the default values available via M-n key presses.

> project-gdb: GDB in project root directory




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44297; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 29 Oct 2020 02:52:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 28 22:52:34 2020
Received: from localhost ([127.0.0.1]:51384 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kXy3G-00058u-DU
	for submit <at> debbugs.gnu.org; Wed, 28 Oct 2020 22:52:34 -0400
Received: from lists.gnu.org ([209.51.188.17]:52246)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <leungbk@HIDDEN>) id 1kXy3E-00058m-R3
 for submit <at> debbugs.gnu.org; Wed, 28 Oct 2020 22:52:33 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:43430)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <leungbk@HIDDEN>)
 id 1kXy3E-0002uV-JA
 for bug-gnu-emacs@HIDDEN; Wed, 28 Oct 2020 22:52:32 -0400
Received: from mailout-l3b-97.contactoffice.com ([212.3.242.97]:59880)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <leungbk@HIDDEN>)
 id 1kXy3C-0005H5-6B
 for bug-gnu-emacs@HIDDEN; Wed, 28 Oct 2020 22:52:32 -0400
Received: from ichabod.co-bxl (ichabod.co-bxl [10.2.0.36])
 by mailout-l3b-97.contactoffice.com (Postfix) with ESMTP id 1F429102D
 for <bug-gnu-emacs@HIDDEN>; Thu, 29 Oct 2020 03:52:22 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailfence.com;
 s=20160819-nLV10XS2; t=1603939942;
 bh=K1eOFQv95Bz0v3TlVC/DlHOYWpgetWuOB1x05efAbmA=;
 h=Date:To:Subject:Reply-To:From:From;
 b=dN3g9/1mCsjw4/+DqmYo2h7dCmaICB7FkPpUyE94jBHK9gpKitrW2kc5M+c3hsuJO
 KG6wfXljE8jCIyY7qjXDl35Fdj9UMQnz/0x9enS4vz62ZV7yE2DAjc59fb6dfc0d5t
 PwfHK29E2MAyq7N8QuijQekLgFZ9NB8fL5l07sNUCampywnwEHixmeE2mB5Td8SQNu
 kI+S8LLdtJYu09v1aR+XWyLeygU9UGHR0h5TAGabwYU1/QWeFSNJuTE9CVOMJJQEAw
 4RyqR2nPbijbICHdOGNN2qMZzBokwOd869jv1FXCY84zAULWTNe4eckNu2LZH/PhAF
 qavSmCn+DyBjA==
Date: Thu, 29 Oct 2020 03:52:19 +0100 (CET)
Message-ID: <1785587458.69035.1603939939547@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
To: bug-gnu-emacs@HIDDEN
Subject: [Feature request] project.el: Additional utility functions
X-Priority: 3
From: Brian Leung <leungbk@HIDDEN>
X-Mailer: ContactOffice Mail
X-ContactOffice-Account: com:225491745
Received-SPF: pass client-ip=212.3.242.97; envelope-from=leungbk@HIDDEN;
 helo=mailout-l3b-97.contactoffice.com
X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/28 22:52:22
X-ACL-Warn: Detected OS   = Linux 3.11 and newer [fuzzy]
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Brian Leung <leungbk@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

It would be nice if project.el had the following interactive functions:

project-find-other-file: Find a file with the same basename as the current =
file but a different extension=20
project-find-file-in-directory: completing-read for a directory within the =
project, and then within the selected directory, completing-read for a file=
 within that directory
project-recentf: completing-read recently-accessed files in the project
project-find-directory: completing-read for a directory within the project
project-gdb: GDB in project root directory


--=C2=A0
Sent with https://mailfence.com
Secure and private email




Acknowledgement sent to Brian Leung <leungbk@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#44297; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 31 Oct 2020 20:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.