From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Giap Tran Newsgroups: gmane.emacs.bugs Subject: bug#49204: 28.0.50; How to create new file in project by project-find-file Date: Mon, 5 Jul 2021 11:03:40 +0700 Message-ID: References: <6f475812-e088-f0e0-e01f-11cd643ff3e6@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25206"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 Cc: Stephen Leake , Stefan Monnier , 49204@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 05 06:04:17 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m0FqC-0006LZ-8s for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Jul 2021 06:04:16 +0200 Original-Received: from localhost ([::1]:49064 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m0FqB-0007yk-8p for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Jul 2021 00:04:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0Fpy-0007yb-N8 for bug-gnu-emacs@gnu.org; Mon, 05 Jul 2021 00:04:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60238) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m0Fpy-0002q0-Dz for bug-gnu-emacs@gnu.org; Mon, 05 Jul 2021 00:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m0Fpy-0007Hw-85 for bug-gnu-emacs@gnu.org; Mon, 05 Jul 2021 00:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Giap Tran Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Jul 2021 04:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49204 X-GNU-PR-Package: emacs Original-Received: via spool by 49204-submit@debbugs.gnu.org id=B49204.162545783328001 (code B ref 49204); Mon, 05 Jul 2021 04:04:02 +0000 Original-Received: (at 49204) by debbugs.gnu.org; 5 Jul 2021 04:03:53 +0000 Original-Received: from localhost ([127.0.0.1]:43551 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0Fpp-0007HZ-74 for submit@debbugs.gnu.org; Mon, 05 Jul 2021 00:03:53 -0400 Original-Received: from mail-pf1-f179.google.com ([209.85.210.179]:41579) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0Fpl-0007HI-NF for 49204@debbugs.gnu.org; Mon, 05 Jul 2021 00:03:51 -0400 Original-Received: by mail-pf1-f179.google.com with SMTP id f17so4054954pfj.8 for <49204@debbugs.gnu.org>; Sun, 04 Jul 2021 21:03:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mht-vn.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=yMqqrGim/q32o2lqF63TBvF6+DK++69RK6i6bQGmI8E=; b=w9qQG2B+myqFZWP7ox+YTxNNht2VKMJmD5m6Op82fng1CMHyf/Li6+yxliQdxHbp1x Ro0WySV5F3ZJBo+rPiEIDBqbyJJxjyYNsq33uo+5EvJuE6XLegYV0bDFWgDYoAPKeObs RiGIbHwrv+svLpZAkk/1fPrUxp29i3rapdd6s3k198S1qNS3A4bZJCRKmoDJbOm3pKC9 EJLnTb9dKfI4QX+bMjCk9xLRVJz5spnKfeXC6plinqkXyEQV3j4lU91XKjIXbq93N1Qm 8pKKEQVqBHeqeR7bZfJH5d+7GG6gCw2QAFE1BmOBjX6TfUsu+JsHruywyw3TUq0lc9M4 9sMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=yMqqrGim/q32o2lqF63TBvF6+DK++69RK6i6bQGmI8E=; b=f7m0cx9BvoRBMIFTi3BWd4/3gbgEv74vOBqyGvk2nv0v2bSX9RdmSA1SStbc2bXKGA 2NUt/NWoVN97SwUl6xMkdsscMVoa292YnnHoAdTzQPMbsyadGF8MiwOZJ8BKApLjRDmk UnTeLswgzchUfwLPbcSBm2BL7mZMqGuTM24ZbDCvFch5GaKEb8y8GA3i3N63mM115Y1I Gp7IlNcNFA+KfXc5FNOzaGK599cyTbhKfe2HTEEVMqfcfQINi/JJmdEeFhzIQNcJsIjA sbzLZ+iBpq6x6ywfBdQSAxa/PWNKa6wmxOtrJcAJf6evzqGk/U5SIFB8ZNDsu9RG4Goz GF4A== X-Gm-Message-State: AOAM530Jy/smNx8hjHnZvd7ukMaHRrYGeWtxrINjuqwPkYc/X8ZorqK7 Uo/WycVrO2YIupS0qlUXodiN+LQavcJou0+NrLOLTQ== X-Google-Smtp-Source: ABdhPJyqgfuJQNMECimWZiS+4mRZM6EIOGS7YLUGj4aiZhzEyEdX8EdY3XQQPeIzrERl/Q97fas8aw== X-Received: by 2002:a63:5351:: with SMTP id t17mr13194567pgl.315.1625457823623; Sun, 04 Jul 2021 21:03:43 -0700 (PDT) Original-Received: from [192.168.1.73] ([27.72.97.105]) by smtp.gmail.com with ESMTPSA id o25sm12094496pgd.21.2021.07.04.21.03.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 04 Jul 2021 21:03:43 -0700 (PDT) In-Reply-To: Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:209437 Archived-At: On 7/4/21 8:07 AM, Dmitry Gutov wrote: > But I suppose an override for project--completing-read-strict might > require less code, if you still want to retain the "completion from > relative names" part of behavior from project--read-file-cpd-relative. > > The flip side is someday you might have to deal with breakage when we > have to make a change to project--completing-read-strict (which is a > "private" function) or stop using it. > > Let me know which approach you choose in the end, and how it works out. Ya, I'm overriding project--completing-read-strict. It looks good to me. As I see I still can use find a file at point by M-n. So don't understand why you said we can not use find file at point anymore if we set REQUIRE-MATCH is nil Do you want this file to exist, right? IMO, If file is not exist we can know it by look at minibuffer.