From unknown Sun Jun 22 04:32:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49204: 28.0.50; How to create new file in project by project-find-file Resent-From: =?UTF-8?Q?Gi=C3=A1p_?= =?UTF-8?Q?Tr=E1=BA=A7n?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Jun 2021 10:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49204 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 49204@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162453081012626 (code B ref -1); Thu, 24 Jun 2021 10:34:02 +0000 Received: (at submit) by debbugs.gnu.org; 24 Jun 2021 10:33:30 +0000 Received: from localhost ([127.0.0.1]:42509 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwMfq-0003Ha-Ba for submit@debbugs.gnu.org; Thu, 24 Jun 2021 06:33:30 -0400 Received: from lists.gnu.org ([209.51.188.17]:52926) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwJcs-0006fY-Bq for submit@debbugs.gnu.org; Thu, 24 Jun 2021 03:18:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54620) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwJcs-0003l3-1j for bug-gnu-emacs@gnu.org; Thu, 24 Jun 2021 03:18:14 -0400 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]:37496) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lwJcn-0007nx-TD for bug-gnu-emacs@gnu.org; Thu, 24 Jun 2021 03:18:13 -0400 Received: by mail-pl1-x632.google.com with SMTP id y21so2481548plb.4 for ; Thu, 24 Jun 2021 00:18:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mht-vn.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=Wz3R/R53unrJ3h/taaiCHZik6cLmtYM1NKHbvANlNhg=; b=E21vOKHxNspI3sUZbDmfnl6WgOcu1ziTf3ASHGE3P90EaA80IHtM0T63JctIimtPv5 r5FGxcUCynYz/8RqCUyXLUlWSRtxTb4p9cCBih9pPrBC6Bf1VP1ACqoOHVtHNXlQvCA7 S/qkNcn68kAuGcdor0z93MrnNhIpXB1kynjKaMk7GpOz5T0MrDiDZcc/U0soE/y+qGhK GZ1Euwu8hFIF3rjiG3AtToNSYNXHq28HkNinkdTJdIDoxgHS1B8vmASW1KH9q3PT6cFI zYC6ipdO7jNGd2d7nX782IOKRC0ivx/k+xtvK2KlEiC1kCvmfIFaHrK3lH8S5xOUfcjR Koag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Wz3R/R53unrJ3h/taaiCHZik6cLmtYM1NKHbvANlNhg=; b=sMvYofMk2Yb6lw8YxLJaF7e8sQ91Uq6dw7t+XVGKJHqUgDzRVhBuIPXyxrKw1rVQ69 V9Y1w/nImX48Vpi2RahnSTXWJZ04XS8WC95ix5gns+gBafoCOSfoMgOMy1iZ/TOdM28G wnb4CL7KeYq4OmeA8mDlxgqPqLsB2KW8b5TTJoxCDPu4ZNYcwzEZMhTbu/lfaStS4kfG gmC9wGHNnRxwieKv5r6dbV4fBg+zveOQMMu94++uBwzna3Sufq5+CWWJWM75Uz/MnIYE yioXCv1+re8Sx8V8qPxUSd/sK26KViHRPXjd2lcHqeaNtZgNAlSWqz/7sAQ1izxhHnJO NfJw== X-Gm-Message-State: AOAM533v/270OOIxvCxoet13U2us2Jo9jPzcHNT4KZm6OHTmuGiul4OP jJanHseZV/zz038oVhqrRkFpeadkG7VYclLYFCDF0pl7FoSKfEvSvI8= X-Google-Smtp-Source: ABdhPJz6CyvYrQ2UyZ3HZ77E1fWKr2a7ouPdGDXLuS5nVjuzvchsxpARvMHOdkAAdikzZU2KLC2/iO3YihHaKPDnrIY= X-Received: by 2002:a17:90a:f293:: with SMTP id fs19mr13367093pjb.149.1624519086740; Thu, 24 Jun 2021 00:18:06 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?Q?Gi=C3=A1p_?= =?UTF-8?Q?Tr=E1=BA=A7n?= Date: Thu, 24 Jun 2021 14:17:55 +0700 Message-ID: Content-Type: text/plain; charset="UTF-8" Received-SPF: none client-ip=2607:f8b0:4864:20::632; envelope-from=giaptx@mht.vn; helo=mail-pl1-x632.google.com X-Spam_score_int: 8 X-Spam_score: 0.8 X-Spam_bar: / X-Spam_report: (0.8 / 5.0 requ) BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Mailman-Approved-At: Thu, 24 Jun 2021 06:33:28 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Developers, I'm trying to migrate from projectile package to project(0.6.0). That is amazing. Today I see I can not create a new file by using `project-find-file. I wish we can create a new file with `project-find-file when the file is not in candidates as `find-file function do. Thanks. From unknown Sun Jun 22 04:32:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49204: 28.0.50; How to create new file in project by project-find-file Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Jun 2021 00:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49204 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?Gi=C3=A1p_?= =?UTF-8?Q?Tr=E1=BA=A7n?= , 49204@debbugs.gnu.org Received: via spool by 49204-submit@debbugs.gnu.org id=B49204.16247524882235 (code B ref 49204); Sun, 27 Jun 2021 00:09:02 +0000 Received: (at 49204) by debbugs.gnu.org; 27 Jun 2021 00:08:08 +0000 Received: from localhost ([127.0.0.1]:48782 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lxILH-0000Zz-S3 for submit@debbugs.gnu.org; Sat, 26 Jun 2021 20:08:08 -0400 Received: from mail-ej1-f50.google.com ([209.85.218.50]:45709) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lxILE-0000ZU-OJ for 49204@debbugs.gnu.org; Sat, 26 Jun 2021 20:08:07 -0400 Received: by mail-ej1-f50.google.com with SMTP id hc16so21842362ejc.12 for <49204@debbugs.gnu.org>; Sat, 26 Jun 2021 17:08:04 -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=7+FZ/Mm/Ps/YoAfV7rOguG57gXaaaCkhBJHuQiTbSZY=; b=s8Demvwns+cIrUC0BXKE/nVyQWu+/9E2aZhBf6mLuWGFelFNFYurQ53JhbdRx7gI12 fwmpezXEp94QOsM/owdlqry/Dp2v/j9INYAOAaqfoEG4z5Bh8Gqviatl048Af4d5YDI0 XsH94AfbsSOLXseQzmP2y3c4EUcrxX0UVUFU8uE27UoNvWGSiaSBSJUQ2llmn0MT3+pF AqXSPFmYxWRLF2rbpd7/JtZGtrTMptZHHLIDZsgoACPW3d1KAO5Q/M868NCbGd61l/gN 8q0FUKtBimA1/jaAroNznvzbLulupzLlZYpf5dcBhq8sQ7+ShMqoF58+6gu+DbN+3zbC hquQ== 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=7+FZ/Mm/Ps/YoAfV7rOguG57gXaaaCkhBJHuQiTbSZY=; b=t56TbRzxi4c0y07SpNhYoF8817RaIP02hhxumexle7qg04mBENUeAALhm/MYnnrV7W 75z66/S4IY1bNHRYH9q5fE+F3rGeDJZQxpxebI9MxnyQfW315yJ1JqqowO9EMGDbTfbX sE4MuGocyhpryRqSG2bnl6qr7tAU5tT8c0SGuFUFUV8quqav+KmQ25NJQ3xFCslbWnlW +JDBq61PtSA+OklFwu6UMiYnvOhTFklcNCZBxgtMUWqDqqhate3GPqYf3j9WTtpi8bfz m0yi2EDClBXlrY2VfkxBrVYGmKMo/dXizs18eQtzO1rXoPUUuzrpCh3HFBuXF8RyUL+G ZM2Q== X-Gm-Message-State: AOAM53128BG2Cy7tLR2VRCdaLFMOW/VBAuw1T7QVyRQf2lJ8Ez1kn0eF agSwBvEC3UERIcIF1TW1z0wy25hXZn4= X-Google-Smtp-Source: ABdhPJy7ENqCGvImSep49X+vsWuzEN4jHarLhjO0rGkqxIhGdfbwZCzSFTfL0p2WCdCQzu9dG1ZWNA== X-Received: by 2002:a17:906:2608:: with SMTP id h8mr17573023ejc.380.1624752478770; Sat, 26 Jun 2021 17:07:58 -0700 (PDT) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id my48sm112829ejc.105.2021.06.26.17.07.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 26 Jun 2021 17:07:58 -0700 (PDT) References: From: Dmitry Gutov Message-ID: <6f475812-e088-f0e0-e01f-11cd643ff3e6@yandex.ru> Date: Sun, 27 Jun 2021 03:07:56 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Hi! On 24.06.2021 10:17, Giáp Trần wrote: > I'm trying to migrate from projectile package to project(0.6.0). That > is amazing. > > Today I see I can > not create a new file by using `project-find-file. > > I wish we can create a new file with `project-find-file when the file is > not in candidates as `find-file function do. Any particular reason you'd want to do that? Do you want to bind this command to `C-x C-f` instead of `find-file`? I've always figured we need the existing binding for a lot of cases anyway: it's often faster than project-find-file, and it's easier to use to create a file in the current directory (or nearby). There could be no current project (project-find-file will then ask you to choose one, and that's a nuisance). And having the REQUIRE-MATCH behavior is nice to avoid typos. That said, if you can describe the desired behavior, I could live with a user option. Bonus points for submitting a patch. From unknown Sun Jun 22 04:32:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49204: 28.0.50; How to create new file in project by project-find-file Resent-From: =?UTF-8?Q?Gi=C3=A1p_?= =?UTF-8?Q?Tr=E1=BA=A7n?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Jun 2021 03:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49204 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Gutov Cc: 49204@debbugs.gnu.org Received: via spool by 49204-submit@debbugs.gnu.org id=B49204.162484956814855 (code B ref 49204); Mon, 28 Jun 2021 03:07:01 +0000 Received: (at 49204) by debbugs.gnu.org; 28 Jun 2021 03:06:08 +0000 Received: from localhost ([127.0.0.1]:50573 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lxhb2-0003rU-H2 for submit@debbugs.gnu.org; Sun, 27 Jun 2021 23:06:08 -0400 Received: from mail-pl1-f175.google.com ([209.85.214.175]:38830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lxggm-0002QF-KV for 49204@debbugs.gnu.org; Sun, 27 Jun 2021 22:07:57 -0400 Received: by mail-pl1-f175.google.com with SMTP id b1so1530690pls.5 for <49204@debbugs.gnu.org>; Sun, 27 Jun 2021 19:07:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mht-vn.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=TFs85RaIMwcKft+fGaoNXW+s6uQZr70gpapdaiLhEsk=; b=vBVFPtxhvxmzb46g0zj9qi1u/aVJA4UQruxfLkRMrITDeFF4sJpzHyqmGjjRwBgfp2 BI2Xkqc4pSSS0qsPNbLySp1IFOvXzDu7j+ksFSM73B00ob5Qip8UVIvwAW3O4BTFXFMD Cw2l1WI+V4k4QAyLxU2d8/6DG8NG0DcUM6+u75WflI4VdxSX81g0unTO+5ydCUAfpDbg EyYIcbyKIVJCuf2D0grd5cauXnjOtgyXlo68CvbKH0FEdYLEp8j0t5vSRtWSRV5/iQJ2 SdmalItqJ7SUdA3nF3pC9byNBwjIgE5TV7CE7lzDNupnBnRlG7yE8t9WSNvxS3WSPvOV TEbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=TFs85RaIMwcKft+fGaoNXW+s6uQZr70gpapdaiLhEsk=; b=ctP7qB4R+lHkJQobPT0XL8/+tYJaNmeuEtBtkNEFs055wXJeHNw7u86f1Sztc/FEam /YvjnKWWilGmhZnKC1T7eChiYJFcQmSacFE5S5HBi131LuhzYQj93bTR0+7wOJfk2zLF sTK3TEyug5YxuIzNXlac5dO+iwwhCEHbBztKd0KQmkeeS6Lb33zJz5h0Z5AwlsEC1AJl K1UpaSItRN0hqPzRvlEubrR3mCgMV2MDrtXNGJRia7Hp0xqXxADl0Z3s8kqvNKTCa37A 30kSkHJTGeD2AJK7lHjV1DM1tRs5LizjP75SFir7StNa2FZSZggX/6T7mAZSjN0kyVFk QsQA== X-Gm-Message-State: AOAM531Kq2nJ3X/PEoBxNiPCsivZlbPXNHBUYIrHk1BcpwKDFvw3grUC pABB1dB/a8rebW+VR6BmWrm3nN62xPsMJrq2Amfk0A== X-Google-Smtp-Source: ABdhPJwTFiuB1VygGKZf2Ei68rvOvy9pXYNvPT39BAIxp7AgRj26Ro/w4k5OdEKd+Bg8NGGhcEhgu6JCGOn9ajWt8Io= X-Received: by 2002:a17:902:694b:b029:118:b8b1:1e23 with SMTP id k11-20020a170902694bb0290118b8b11e23mr20375160plt.31.1624846070764; Sun, 27 Jun 2021 19:07:50 -0700 (PDT) MIME-Version: 1.0 References: <6f475812-e088-f0e0-e01f-11cd643ff3e6@yandex.ru> In-Reply-To: <6f475812-e088-f0e0-e01f-11cd643ff3e6@yandex.ru> From: =?UTF-8?Q?Gi=C3=A1p_?= =?UTF-8?Q?Tr=E1=BA=A7n?= Date: Mon, 28 Jun 2021 09:07:39 +0700 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Mailman-Approved-At: Sun, 27 Jun 2021 23:06:03 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Dmitry Gutov, > That said, if you can describe the desired behavior, I could live with a > user option. Bonus points for submitting a patch. I have some cases as below: 1. I'm working on project A, and I believe I can find a file-b in project B/src/test. Then I switch project by project-switch-project and using project-find-file to lookup him, but I'm not lucky the file-b is not existed in project-B/src/test so I want to create this file now without exit project-find-file 2. I want to use project-find-file to create a new file because I have an overview of all subfolder levels in all folders. With find-file I don't have this overview These are normal case occur everyday on me. Thanks, On Sun, Jun 27, 2021 at 7:07 AM Dmitry Gutov wrote: > > Hi! > > On 24.06.2021 10:17, Gi=C3=A1p Tr=E1=BA=A7n wrote: > > > I'm trying to migrate from projectile package to project(0.6.0). That > > is amazing. > > > > Today I see I can > > not create a new file by using `project-find-file. > > > > I wish we can create a new file with `project-find-file when the file i= s > > not in candidates as `find-file function do. > > Any particular reason you'd want to do that? Do you want to bind this > command to `C-x C-f` instead of `find-file`? > > I've always figured we need the existing binding for a lot of cases > anyway: it's often faster than project-find-file, and it's easier to use > to create a file in the current directory (or nearby). There could be no > current project (project-find-file will then ask you to choose one, and > that's a nuisance). > > And having the REQUIRE-MATCH behavior is nice to avoid typos. > > That said, if you can describe the desired behavior, I could live with a > user option. Bonus points for submitting a patch. From unknown Sun Jun 22 04:32:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49204: 28.0.50; How to create new file in project by project-find-file Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Jun 2021 13:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49204 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?Gi=C3=A1p_?= =?UTF-8?Q?Tr=E1=BA=A7n?= Cc: Stephen Leake , Stefan Monnier , 49204@debbugs.gnu.org Received: via spool by 49204-submit@debbugs.gnu.org id=B49204.162497458422735 (code B ref 49204); Tue, 29 Jun 2021 13:50:01 +0000 Received: (at 49204) by debbugs.gnu.org; 29 Jun 2021 13:49:44 +0000 Received: from localhost ([127.0.0.1]:53967 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyE7T-0005ud-Qh for submit@debbugs.gnu.org; Tue, 29 Jun 2021 09:49:44 -0400 Received: from mail-wr1-f42.google.com ([209.85.221.42]:43755) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyE7S-0005uQ-DW for 49204@debbugs.gnu.org; Tue, 29 Jun 2021 09:49:42 -0400 Received: by mail-wr1-f42.google.com with SMTP id a13so25900807wrf.10 for <49204@debbugs.gnu.org>; Tue, 29 Jun 2021 06:49:42 -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=/XVmSsY2jGViNuOHEAdbKmzfUyZ0M3LSV0z9kS9Q5zA=; b=mEBDnDF8AIieHeQQ+psluL4fsuOVMOAan0OPu+MoMk9H7NHIsbD4eu3GofzT3CK6Pl t8f7BmpS7E1wcFthSVCJ4G7ZkrIxMbwvaGBpzGIzpHzW3L7MPt+0AYHEta6O0l94Uega v2Lh1mEZKKq/IbvaI7LBIXl8z4ltUzZlbV5xoylDtWQVC1abA4anXFjxv94HR+HEdrQt 9If7epfll8/i3nQt2r5b0t8h0krqgAytezr9SddYowkLNUo6wUaeUNrx5KBXWFfnEXtD WhClsLNiptGiqkucf+75/TNoCATMBMDv7o2RfJFbByrC0Frel0WThPfuqMj4StTy7a7q eZRg== 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=/XVmSsY2jGViNuOHEAdbKmzfUyZ0M3LSV0z9kS9Q5zA=; b=UNWv+WGQ/FZeY7a18naE9+bcZEYZbXni/Qct8BQeQMLuGKnTpp6Z7AYezmCzvwL4J1 vhT0OtKvRyhy3iuTx09Vb3vVmwavre/lxluyGQPuxnRR0zI6DVt3DsbNUhjZdLfP0zgz jdKvKGjzRmL26J9yRMY+krh97HCIj+mSjdVhhnW0iUWyom4fzWzCatsZpJt8Rq25CkSS JHZg3PzUwlQk1lOm1EEKRpUb9Sw/5LIBzykvBMIDcPDx5Hyxx8Ivdhzl5n8ViL64QoMo EbHT3Fg/VF5xI79m2SOYGbUHGsw1erm4le5wHibgUHTsuBez+XqkFE5LPW0hT5YGgeJm TmAQ== X-Gm-Message-State: AOAM5337+joHX+KCO35+42VEaHK4ZeDmu+UJx+Ig/0EqmJjm9SYYnDKt pZULefY5FDqYyslMl9fO990= X-Google-Smtp-Source: ABdhPJwDmxYBRGnz3mzvXTbV7MlWmC2qyHP/fqIvJkEsxlWwIn9OC6nms9fkhWXHF8+95M0iBIbFjg== X-Received: by 2002:a05:6000:12c7:: with SMTP id l7mr14687345wrx.177.1624974576456; Tue, 29 Jun 2021 06:49:36 -0700 (PDT) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id b20sm1020224wmj.7.2021.06.29.06.49.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 29 Jun 2021 06:49:35 -0700 (PDT) References: <6f475812-e088-f0e0-e01f-11cd643ff3e6@yandex.ru> From: Dmitry Gutov Message-ID: Date: Tue, 29 Jun 2021 16:49:33 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Hi! On 28.06.2021 05:07, Giáp Trần wrote: >> That said, if you can describe the desired behavior, I could live with a >> user option. Bonus points for submitting a patch. > I have some cases as below: > 1. I'm working on project A, and I believe I can find a file-b in > project B/src/test. Then I switch project by project-switch-project > and using project-find-file to lookup him, but I'm not lucky the > file-b is not existed in project-B/src/test so I want to create this > file now without exit project-find-file > 2. I want to use project-find-file to create a new file because I have > an overview of all subfolder levels in all folders. With find-file I > don't have this overview > These are normal case occur everyday on me. Thanks for the explanations. You previously wrote about Projectile. Does it enable this workflow? I wonder how we can reconcile this requirement with the "find name at point" behavior: we use whatever string at point that looks similar enough to a file name (or a part of it). To avoid mistakes, we currently even call completing-read again if the first finished input doesn't match any files. If the command allows non-matching input, having a default value that doesn't necessarily match any file names exactly will be a problem. Moving it from DEFAULT to INITIAL-INPUT shouldn't make a difference either. Ideas welcome, everybody. From unknown Sun Jun 22 04:32:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49204: 28.0.50; How to create new file in project by project-find-file Resent-From: Giap Tran Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Jun 2021 04:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49204 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Gutov Cc: Stephen Leake , Stefan Monnier , 49204@debbugs.gnu.org Received: via spool by 49204-submit@debbugs.gnu.org id=B49204.16250282862889 (code B ref 49204); Wed, 30 Jun 2021 04:45:02 +0000 Received: (at 49204) by debbugs.gnu.org; 30 Jun 2021 04:44:46 +0000 Received: from localhost ([127.0.0.1]:56230 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyS5d-0000kW-P5 for submit@debbugs.gnu.org; Wed, 30 Jun 2021 00:44:45 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:38709) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyS5b-0000kI-Bx for 49204@debbugs.gnu.org; Wed, 30 Jun 2021 00:44:44 -0400 Received: by mail-pg1-f193.google.com with SMTP id h4so1010549pgp.5 for <49204@debbugs.gnu.org>; Tue, 29 Jun 2021 21:44:43 -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=CYfvZuCMkUjUQCLJiMi/bCWlkwxjNdMX3yoevWGntpk=; b=jypI3Xs6sqng43AOyBAcG/a+ETOeYInnTAcOvn2SMAxpbY+BtJbxwVDBe7Xly3Nlvc c9kLrM88jRemEaJZ0rKbJraql8WtlyZLXDp4Z4FTvFcPa/hUC3QYeIZlPQg/oLN42TMw tRLM0bcr7eOsI5G9QruczRa/bQXt0WCAgtipS+OvVcw8uTCiqTOn1rUH8hF8XPmdw2l+ 0iT+7rs3MXBXF8DrC894nYDvF4Lqs1Y+2r1OcFhCjOMg8bfwdim0jDzjNE5Dwe2ZEp+0 lUdZkbwHFAPsYH1I1AsNs49srh1kMOqUH57udmrH9ToRdfp+WJdBPzAV15LY2JIytANz 123g== 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=CYfvZuCMkUjUQCLJiMi/bCWlkwxjNdMX3yoevWGntpk=; b=uAKU93lUgUOYc8DJbxyIvZDUz01etgr9LES10/lWkPNzBVWtk0hBOFRr1etiX6hiV2 ggnOoSjhzQeEnSMZ6LkruOj04iSG6OKBbJiwgjzr8z5bVCVC+nhfjVNo79haFLfhzIMi x6gFLQTVa65BCSOr3w1ABkb683Pwhn1VfnkNKQTADiYqa5qJorovNCBbhyhttwSaTnhF 2xgWQ9FadxFfcQ7NaT9obgjlOF5VvpdMIrQkzFFMaiy5KoRqGimRZjYf838YatPj2dOb inH7gcU28bKjJAqR2oDIW2s2WLodZ7lVJGS4rEGeuWlPglh6scyjC6mS2HauTlQg5Jgt 8kRg== X-Gm-Message-State: AOAM530z2lcgD0a3zCug5lFNmasqfqdemBBT9M4hy8pH8ywsDotBFuml Ve4aYB8HOe7FRKu2l5WCz+Fqrg== X-Google-Smtp-Source: ABdhPJwO6xjHfWV4vMgRMu+tTlGydFVtQi5JukRFh7Xu1Mez6uIL8L9aJI/fZ0vtES7JMxt3Z79/kg== X-Received: by 2002:a63:f616:: with SMTP id m22mr9660126pgh.412.1625028277601; Tue, 29 Jun 2021 21:44:37 -0700 (PDT) Received: from [192.168.1.17] ([27.72.97.105]) by smtp.gmail.com with ESMTPSA id q14sm1039060pfh.135.2021.06.29.21.44.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 29 Jun 2021 21:44:35 -0700 (PDT) References: <6f475812-e088-f0e0-e01f-11cd643ff3e6@yandex.ru> From: Giap Tran Message-ID: Date: Wed, 30 Jun 2021 11:44:31 +0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 6/29/21 8:49 PM, Dmitry Gutov wrote: >> > > Thanks for the explanations. You previously wrote about Projectile. Does > it enable this workflow? Yes, as I see projectile support this feature by default (1). I used it before > I wonder how we can reconcile this requirement with the "find name at > point" behavior: we use whatever string at point that looks similar > enough to a file name (or a part of it). To avoid mistakes, we currently > even call completing-read again if the first finished input doesn't > match any files. > > If the command allows non-matching input, having a default value that > doesn't necessarily match any file names exactly will be a problem. > Moving it from DEFAULT to INITIAL-INPUT shouldn't make a difference either. Thanks for clarifying, I will try to override project--completing-read-strict func when calling completing-read with REQUIRE-MATCH is nil (1) - https://github.com/bbatsov/projectile/blob/6b88b69ecd7e6f2b6bbcae0b68026a486be516a4/projectile.el#L1885 From unknown Sun Jun 22 04:32:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49204: 28.0.50; How to create new file in project by project-find-file Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Jul 2021 01:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49204 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Giap Tran Cc: Stephen Leake , Stefan Monnier , 49204@debbugs.gnu.org Received: via spool by 49204-submit@debbugs.gnu.org id=B49204.162536086024498 (code B ref 49204); Sun, 04 Jul 2021 01:08:01 +0000 Received: (at 49204) by debbugs.gnu.org; 4 Jul 2021 01:07:40 +0000 Received: from localhost ([127.0.0.1]:40200 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzqbk-0006N4-IF for submit@debbugs.gnu.org; Sat, 03 Jul 2021 21:07:40 -0400 Received: from mail-wm1-f54.google.com ([209.85.128.54]:41810) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzqbi-0006Mr-Em for 49204@debbugs.gnu.org; Sat, 03 Jul 2021 21:07:38 -0400 Received: by mail-wm1-f54.google.com with SMTP id a5-20020a7bc1c50000b02901e3bbe0939bso8892388wmj.0 for <49204@debbugs.gnu.org>; Sat, 03 Jul 2021 18:07:38 -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=MLt3ICuw1gqAMLI3gsAj6RhDcv6aofF4yQdjHDW3gZo=; b=oqTEJqY5CO9NH+PleZds0UK/Qffy0GeVilL0kkskWGuDsqVJOLICUX13NUvdEgmJRw e8FCP+9/Fgree0kN/oND1q5AdHrmcKyforRuvEL6djKFLb8RmYkYlab76VJ7n/+GTxv5 ItJkWtqNvTsyy/JscQbrc8rb4lM/LLCRAVv0/tGlObNKDWz6VEUW8QFWVVegwsFhULCm o7tNT4NQp7dYlkCNU9Ux4eB/qdfoVcToktAbSMHJb8I9b6nhe5lY48JfAuC/DgVnmHdv FCfZTZI9HDcTa3eR4J8SV2g5LPgyEFmWG/WMpZzh6omliRi1JlQYnwCBHBo8roo6BWPn 62dQ== 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=MLt3ICuw1gqAMLI3gsAj6RhDcv6aofF4yQdjHDW3gZo=; b=HvqDV4Eig1+ErZyT1vpziSU/kOM4HVqBbkCZwCGIO//LZq8qJRbgod16cnJoJ9dWCL SYK1uWdpeY3BHsIQnNI4v2Pci0CnAn1aQu7lUoRR4tfVZ8EeiMxPqVLivdqr2/6TWFEM qbfXAcvndnBlQucmZczxc36SxAj7ILRPFdikn/m3y4FDeMSm5DTGSYoAWMmym2Bl7P99 UadYQvypYWE5NKcX23VJHRnRChkYJj181niWbAXL8kO4uhYRyweghOfNmnZtTTjdoagX zNiRoEZQwKHbUvbYf97SletQGQEeeArF5cK7zF8/w7WApcjuALea9bL53qa/Us9KeCwM NSJA== X-Gm-Message-State: AOAM5320V+YOJtscWs1dL8Y1UiDE84NCBWA7Fe/RcFZw19GIpfeZrJEe rrg+c51yrkOsgfVgBqA/V1h8GwTUNbk= X-Google-Smtp-Source: ABdhPJwxiP4GKmWmMf5DDZcntiGimstwPtyOJpDrqOh1eHNvxv4uDJZ2EKhSBKiNbUV6camKy0l/Bw== X-Received: by 2002:a1c:f312:: with SMTP id q18mr7164241wmq.12.1625360852532; Sat, 03 Jul 2021 18:07:32 -0700 (PDT) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id f2sm8186310wrq.69.2021.07.03.18.07.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 03 Jul 2021 18:07:31 -0700 (PDT) References: <6f475812-e088-f0e0-e01f-11cd643ff3e6@yandex.ru> From: Dmitry Gutov Message-ID: Date: Sun, 4 Jul 2021 04:07:29 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) On 30.06.2021 07:44, Giap Tran wrote: > On 6/29/21 8:49 PM, Dmitry Gutov wrote: >>> >> >> Thanks for the explanations. You previously wrote about Projectile. >> Does it enable this workflow? > > Yes, as I see projectile support this feature by default (1). I used it > before Thanks for the link. projectile-find-file doesn't specify any INITIAL-INPUT when calling projectile-completing-read, so Projectile seems exempt from this dilemma that I described. >> I wonder how we can reconcile this requirement with the "find name at >> point" behavior: we use whatever string at point that looks similar >> enough to a file name (or a part of it). To avoid mistakes, we >> currently even call completing-read again if the first finished input >> doesn't match any files. >> >> If the command allows non-matching input, having a default value that >> doesn't necessarily match any file names exactly will be a problem. >> Moving it from DEFAULT to INITIAL-INPUT shouldn't make a difference >> either. > > Thanks for clarifying, I will try to override > project--completing-read-strict func when calling completing-read with > REQUIRE-MATCH is nil > > (1) - > https://github.com/bbatsov/projectile/blob/6b88b69ecd7e6f2b6bbcae0b68026a486be516a4/projectile.el#L1885 Better than that, you can set project-read-file-name-function to a function with the same signature that uses REQUIRE-MATCH=nil. 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. From unknown Sun Jun 22 04:32:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49204: 28.0.50; How to create new file in project by project-find-file 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 X-GNU-PR-Keywords: To: Dmitry Gutov Cc: Stephen Leake , Stefan Monnier , 49204@debbugs.gnu.org Received: via spool by 49204-submit@debbugs.gnu.org id=B49204.162545783328001 (code B ref 49204); Mon, 05 Jul 2021 04:04:02 +0000 Received: (at 49204) by debbugs.gnu.org; 5 Jul 2021 04:03:53 +0000 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 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 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) 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) References: <6f475812-e088-f0e0-e01f-11cd643ff3e6@yandex.ru> From: Giap Tran Message-ID: Date: Mon, 5 Jul 2021 11:03:40 +0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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. From unknown Sun Jun 22 04:32:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49204: 28.0.50; How to create new file in project by project-find-file Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Jul 2021 00:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49204 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Giap Tran Cc: Stephen Leake , Stefan Monnier , 49204@debbugs.gnu.org Received: via spool by 49204-submit@debbugs.gnu.org id=B49204.162656919523119 (code B ref 49204); Sun, 18 Jul 2021 00:47:02 +0000 Received: (at 49204) by debbugs.gnu.org; 18 Jul 2021 00:46:35 +0000 Received: from localhost ([127.0.0.1]:54883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4ux1-00060Y-8D for submit@debbugs.gnu.org; Sat, 17 Jul 2021 20:46:35 -0400 Received: from mail-ej1-f44.google.com ([209.85.218.44]:33763) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4uwz-0005v6-Vk for 49204@debbugs.gnu.org; Sat, 17 Jul 2021 20:46:34 -0400 Received: by mail-ej1-f44.google.com with SMTP id bu12so21564661ejb.0 for <49204@debbugs.gnu.org>; Sat, 17 Jul 2021 17:46:33 -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=+3O2Z5RoABO0kLVC9ajT5Qj9ReHPdbN9BKIiGtEL9KU=; b=XTkNpoprl1weYfc7fCYGLsTDm0Yv/Ni+6TVSrUx9Jkky1YbtvxJsWM88FW8yP7Uk/3 mMgi0g892dhTzK2cMeRlZFhpM08cbAtwV4nWbyIln5gzUbI+aH8BEyU8qiFxcEEy/CT9 ulaMzxTAM16ojbRFgK5eVLGHL9ie4z289V79oMw6jdinUfHjohuQxOEI5++LYpoyDErj gD86WoIlIvnRCIIVP2Zs8icF6FyrB7ygnRaQSCmmbr53MP0mNp5XC7d7/jux+/wCn0Np uEsR4c7r5x2XCkwo3ugNM5TrOJSx4Ws/g5ixPkvP6V2anVbG8pVg2iKDkxbsHlmKegCR RaZw== 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=+3O2Z5RoABO0kLVC9ajT5Qj9ReHPdbN9BKIiGtEL9KU=; b=U7KvfTJuChEhKN9Q1uqeNycFkx4Ds062oWnTTU0d29JizXlM9AxQ7O/wzNMfsvMFUG H29TES+ItYY9WCZw2vUjXazxTpEodAr/v3lYK6JVT4y0EDbnyk/Zvvu6XarwLkZtMBtT LRZYVWOFYmHBVnnP/jBADAF8axaJON5rG0R5nJsrPxekQCXDC136wYeTnQMDXnfIati3 6Ou6JRxk/L5phWz50IJKDKynJ2Tb7+bvcE81Rt+IQf7czu7s8MX3A5tA2/fh9le7K/uX uls9blKc+NXnL4x/glUwYrjZR49hEdpgTbm8cuF0KEPo+r72WTPBjww93TIQ/TkXrRwZ RSnQ== X-Gm-Message-State: AOAM530HZSX7/2YBdrVmOJVHVrNVNLLDEuGm86Q2SUDHt58QrA8vxADt hEd7O1fDKJUYgamTCVcyP+RkdNfjRY8= X-Google-Smtp-Source: ABdhPJz74pIYMNFdhgy1nH1mHQmkSxVSvoGrdbFdr6unBkGNMhpkPTNDCYhHYrqr62v4130IfxS0Sw== X-Received: by 2002:a17:906:fc6:: with SMTP id c6mr19609073ejk.65.1626569188007; Sat, 17 Jul 2021 17:46:28 -0700 (PDT) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id v11sm4351225ejx.104.2021.07.17.17.46.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 17 Jul 2021 17:46:27 -0700 (PDT) References: <6f475812-e088-f0e0-e01f-11cd643ff3e6@yandex.ru> From: Dmitry Gutov Message-ID: Date: Sun, 18 Jul 2021 03:46:25 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) On 05.07.2021 07:03, Giap Tran wrote: > 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. Excellent. > 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 Right, but then if you press RET, the file will be created. If, for example, the text around point is 'compile.el', and you call project-find-file and press RET right away, you're not going to visit (or create) a file named 'compile.el' in the project root, you're going to see the list filered with 'compile.el' as initial-input instead. Perhaps we should change the above workflow to be more "standard", but IIRC the existing one was requested to be this way, and has received surprisingly little complaints over the years. > Do you want this file to exist, right? IMO, If file is not exist > we can know it by look at minibuffer. How can we know? Do you mean that it tells you that by asking to confirm after you press RET? From unknown Sun Jun 22 04:32:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49204: 28.0.50; How to create new file in project by project-find-file Resent-From: Giap Tran Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Jul 2021 02:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49204 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Gutov Cc: Stephen Leake , Stefan Monnier , 49204@debbugs.gnu.org Received: via spool by 49204-submit@debbugs.gnu.org id=B49204.162666092130371 (code B ref 49204); Mon, 19 Jul 2021 02:16:01 +0000 Received: (at 49204) by debbugs.gnu.org; 19 Jul 2021 02:15:21 +0000 Received: from localhost ([127.0.0.1]:57744 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5IoT-0007tn-6U for submit@debbugs.gnu.org; Sun, 18 Jul 2021 22:15:21 -0400 Received: from mail-pf1-f172.google.com ([209.85.210.172]:43757) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5IoR-0007ta-So for 49204@debbugs.gnu.org; Sun, 18 Jul 2021 22:15:20 -0400 Received: by mail-pf1-f172.google.com with SMTP id a127so15080893pfa.10 for <49204@debbugs.gnu.org>; Sun, 18 Jul 2021 19:15:19 -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=OG9yaCs1P51Omra5VV/Ml2i677YYhxSkW9BVJy45oPw=; b=ylbOoJkOBmUZO9RzVf+TlnO3eWmP7RPv4zBCmNQ9A4UorWBfZxUu7w7Ad1pEpoE199 SsCCWOC7aU0dfcqmHxwFZmfCShC2Pkbf2xWaFrC5KKnsHT8T3dI0lQ9cwd+Kwl5vSI1B +jj4DDa4m2+9LN2q4/BLUy5XY1WbL+O/fWDQlKCELtVzj5U5PynvT5kDLADWgJhYU6Hn Mg76sFwkVWSKiHimha6HqJEfWT66XhmfUhMw3mJMZnldc4dD3JVkuc8pZz7VYoSOXugJ RqvGn1PPnhHOSZDkPXSzOfc+7kyxxUF0CW7FbOHFWbiS3McM38IXl4HVTdhdJ80XImeM 1vxw== 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=OG9yaCs1P51Omra5VV/Ml2i677YYhxSkW9BVJy45oPw=; b=j08/2l7gWrSMzcA6oO5J/NGz0xAaJb9xovuz0dNpNDDL+XJ34x8BVsIvjTSjObPiiP /5bYiF0827WLH3GsLEVp6hVDk5F/b8j3RP3dwFcv6bLBfkUCJJu7/X9xf++trE1qCVY6 ITjA1mZfHblJL86ZUzKPlU2fViknuUwGxo+4MQC7nA1/gKzSqLW+KfD8cthyKbxSV4dJ d02NCUqgdsXtNaPv0WBHFxXXVagiFaZEFTTH93+LU9TFG3TkwiqbIoc5Kiv46xSOk1IE 45r7h2oFHSqTt9EtzQhIG6F4COvmRVu0xArYhvX1GCgTRqqoZi6AEcmGc66Vbhr/qG57 Zvlw== X-Gm-Message-State: AOAM532pLpc7lQRY5/c9cqzYo6qzx5vzeK9fShwvuqwnMbwg5BdQ0nCk +VNoqTBGwXn12p2s6NnviRz/liXT/OWppZ7Z3yE= X-Google-Smtp-Source: ABdhPJx1ae13MH/sb1pyXUVG4IHv+/iVG8Nq3KhycLWrYxCWkMNt3NRv+jUR848ynax4y+C/7tZs3A== X-Received: by 2002:a63:1755:: with SMTP id 21mr11674556pgx.435.1626660913948; Sun, 18 Jul 2021 19:15:13 -0700 (PDT) Received: from [192.168.1.73] ([27.72.97.105]) by smtp.gmail.com with ESMTPSA id ev20sm14376414pjb.43.2021.07.18.19.15.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 18 Jul 2021 19:15:13 -0700 (PDT) References: <6f475812-e088-f0e0-e01f-11cd643ff3e6@yandex.ru> From: Giap Tran Message-ID: Date: Mon, 19 Jul 2021 09:15:10 +0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -0.1 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.1 (-) On 7/18/21 7:46 AM, Dmitry Gutov wrote: > > > Perhaps we should change the above workflow to be more "standard", but > IIRC the existing one was requested to be this way, and has received > surprisingly little complaints over the years. I checked how the find-file func works. I see we should learn find-file behavior. That means `project-find-file' will not set the default file instead using M-n (next-history-element) if the user wants to use find file at point. By using this behavior, we can go to in dired mode of project root by default. Currently, we can not jump to dired mode if the text around point 'compile.el' > How can we know? Do you mean that it tells you that by asking to confirm > after you press RET? I mean we have to looks by our eyes :P Oh, you mentioned "confirm". Do you use magit? I see this package has a good UI/UX by default. If the user wants to push to a new branch is not exist, magit will a "confirm" question. Regards, From unknown Sun Jun 22 04:32:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49204: 28.0.50; How to create new file in project by project-find-file Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Jul 2021 15:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49204 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Giap Tran Cc: Stephen Leake , Stefan Monnier , 49204@debbugs.gnu.org, Dmitry Gutov Received: via spool by 49204-submit@debbugs.gnu.org id=B49204.162670942921298 (code B ref 49204); Mon, 19 Jul 2021 15:44:02 +0000 Received: (at 49204) by debbugs.gnu.org; 19 Jul 2021 15:43:49 +0000 Received: from localhost ([127.0.0.1]:59943 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5VQr-0005XR-8L for submit@debbugs.gnu.org; Mon, 19 Jul 2021 11:43:49 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:34777) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5VQp-0005XC-3y for 49204@debbugs.gnu.org; Mon, 19 Jul 2021 11:43:47 -0400 Received: (Authenticated sender: juri@linkov.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 80B41E0014; Mon, 19 Jul 2021 15:43:36 +0000 (UTC) From: Juri Linkov Organization: LINKOV.NET References: <6f475812-e088-f0e0-e01f-11cd643ff3e6@yandex.ru> Date: Mon, 19 Jul 2021 18:20:04 +0300 In-Reply-To: (Giap Tran's message of "Mon, 19 Jul 2021 09:15:10 +0700") Message-ID: <87k0lmqu8r.fsf@mail.linkov.net> 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> How can we know? Do you mean that it tells you that by asking to confirm >> after you press RET? > > I mean we have to looks by our eyes :P > > Oh, you mentioned "confirm". Do you use magit? I see this package has > a good UI/UX by default. If the user wants to push to a new branch is not > exist, magit will a "confirm" question. The same way as switch-to-buffer confirms a non-existent buffer with: C-x b non-existent TAB RET [Confirm] From unknown Sun Jun 22 04:32:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49204: 28.0.50; How to create new file in project by project-find-file Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Jul 2021 02:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49204 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov , Giap Tran Cc: Stephen Leake , Stefan Monnier , 49204@debbugs.gnu.org Received: via spool by 49204-submit@debbugs.gnu.org id=B49204.16267473711254 (code B ref 49204); Tue, 20 Jul 2021 02:17:02 +0000 Received: (at 49204) by debbugs.gnu.org; 20 Jul 2021 02:16:11 +0000 Received: from localhost ([127.0.0.1]:60669 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5fIo-0000KA-Ne for submit@debbugs.gnu.org; Mon, 19 Jul 2021 22:16:10 -0400 Received: from mail-wr1-f54.google.com ([209.85.221.54]:41782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5fIl-0000Jd-AJ for 49204@debbugs.gnu.org; Mon, 19 Jul 2021 22:16:09 -0400 Received: by mail-wr1-f54.google.com with SMTP id k4so24253908wrc.8 for <49204@debbugs.gnu.org>; Mon, 19 Jul 2021 19:16:07 -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=S8cvcw95gcMJphkvwPPBbPycTpj/Ict08o2Ra2APIm8=; b=qxJXHovAGO12ukEAZA3umjTWggcG1tADnBEtKdn5wqO6Kh5HvNOOQKuMsCu8Uft3GI S3o2fQha4XZ1EGA9tZjXP8hn+rjlq6bQ+/1/oUW4ao0LFNllDxoKsn3SnGJ5mv5asR2u Ns6WPX2Cvc3eK+acIeVIYWF8NdURk9V/tjfyN90uUD39dj0yYeL5Ia6xZ7Zrlln/zTnF xtgi71qPszOsoInQnlpqgtQsEVeJOnNlhKruv7eiJALFcBSGagKcQE8AgT+snHy0r/pm mRaB43HHumwFwZkrzWqnqiKYWlG7BL0QUXKpzd9gjROqjuGyRMeEynsxybcvDtjt1QhG jEEg== 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=S8cvcw95gcMJphkvwPPBbPycTpj/Ict08o2Ra2APIm8=; b=abqjr4vF1HUV/jJpDJS79WnVVpNHXhPrFZjCPgLP2McOQLoiBrlRi0aaQCXlyWceuL Jq6VGkonF/estdwuRTXA9bFHHG0tEuvjiUzq5wtoWqDZ2CcYw6Uvci4cxbc7FF6LcHZA EkrVyH1ZYKotmq5JDFZzEGx9hT+DM6S3FoAaEcdvW4MGOa2T0ElTyh65Z5asxDFjISpE gumASxH606/UCdwZVwYlw6EG7XuZV16uEiI2jif9PGnySf2ApjOjw5UrJGXeU0NbJ2YE JwE7n5rd9UDSHXtyYe7gEHfQWKPCkLmHeEq21CsHFASkLw45Nv2GvFotrbj00Xf+3pui tWDg== X-Gm-Message-State: AOAM532xURvgA4f7Jkp6NPSIeZTgoK7TrDzDQnJDowhQ2B+EfsGxxAwv z/OXC2PVN+eUcD3t8ReJwkBgE+SgCnc= X-Google-Smtp-Source: ABdhPJzyOBKdT1a98TJzEyOmEs3ZozNg1PlfmnfBvxgJy4ExIPIwS9tKzkRC/FE8jUUlsROWaWW24g== X-Received: by 2002:adf:ec07:: with SMTP id x7mr33605978wrn.262.1626747361435; Mon, 19 Jul 2021 19:16:01 -0700 (PDT) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id o7sm25782018wrv.72.2021.07.19.19.16.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Jul 2021 19:16:00 -0700 (PDT) References: <6f475812-e088-f0e0-e01f-11cd643ff3e6@yandex.ru> <87k0lmqu8r.fsf@mail.linkov.net> From: Dmitry Gutov Message-ID: Date: Tue, 20 Jul 2021 05:15:59 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <87k0lmqu8r.fsf@mail.linkov.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) On 19.07.2021 18:20, Juri Linkov wrote: > The same way as switch-to-buffer confirms a non-existent buffer with: > > C-x b non-existent TAB RET [Confirm] switch-to-buffer uses read-buffer-to-switch, which delegates to read-buffer, a standard function. read-file-name uses, say, read-file-name-default. Neither delegate to a user-provided completion table, though. So we might have to reimplement the check-and-prompt interface. Would someone like to propose a patch? From unknown Sun Jun 22 04:32:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49204: 28.0.50; How to create new file in project by project-find-file Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Jul 2021 02:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49204 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Giap Tran Cc: Stephen Leake , Stefan Monnier , 49204@debbugs.gnu.org Received: via spool by 49204-submit@debbugs.gnu.org id=B49204.16267475251541 (code B ref 49204); Tue, 20 Jul 2021 02:19:01 +0000 Received: (at 49204) by debbugs.gnu.org; 20 Jul 2021 02:18:45 +0000 Received: from localhost ([127.0.0.1]:60681 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5fLI-0000On-J8 for submit@debbugs.gnu.org; Mon, 19 Jul 2021 22:18:44 -0400 Received: from mail-wm1-f52.google.com ([209.85.128.52]:53076) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5fLE-0000OU-Nq for 49204@debbugs.gnu.org; Mon, 19 Jul 2021 22:18:43 -0400 Received: by mail-wm1-f52.google.com with SMTP id g12so11402710wme.2 for <49204@debbugs.gnu.org>; Mon, 19 Jul 2021 19:18:40 -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=BI7SBEpr7rB/hTIKNXONIvJYh3WDMjSiqpur6CmmfuU=; b=pbBOa+P7NVymydeHQgcTPIjGnNoFgknk4jNoMSZJYXz4cDsQqFCKYD/DpkcTrDPi82 GXb6J71hs/K4fT7cS62ICRH98nGtarTNabzleOWh/46xWpfd3rLHniDzrD69yAvOksyo CA/pvIP7IeYiRxF/ut4pDi8oG9Io/5bBRaUQHwasEeIimZlxSfZnEBg4m65oUzyE/Exj e2lsEqoQERuQX+TRvbcOFl/P+5m2mblS80OZ1f36hU/otZT38J4bzqn5rKucphgJyTUR klr6Jf53+ZzOn5a/sNH4kguV2lDDEHQ74WQaEgDrRQx+XxMZ8IxMiBlCyMud+0I0St+H tgfA== 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=BI7SBEpr7rB/hTIKNXONIvJYh3WDMjSiqpur6CmmfuU=; b=saAKs3GTAVDPrTm8070aP2BG/jAFF7yyp0iX9pyp5eolhuOABVgdR/bhzCWTgimJTd oRX8XXUWvurrU74reKrOF9d2rdidmFSeNVx3c7nzqSn7ZCIYwoMNBo+Lbn8b9EyQUJ5l NQu+ne6ZFiAmGTrGFnFzcUf8Xk3EttHuW/IRhOaD5fSyjJ6sBHzhbmRzC2zxY99KtGO+ yaX1DhBa6ZVehFi8xWucH46HIngrodq6mSr7FuYDEEDEwAJyApn59wedGNlsoRN/Ydj4 cql1jYIkTUg7eBoFelcSIWslGYcq7kyl7DlrnfYWIbDq95R00BkO6j5iLf8c6tZ81JTZ Jtlg== X-Gm-Message-State: AOAM533fnlRHTgeIBGPnFCgNb4qE34w8lfpALQGYthfT2ENWu6V8aeIV HMm47bNUmrI3gY3DIuz3/ICvu+VSCH4= X-Google-Smtp-Source: ABdhPJwMgdUPz36Mt331kl570c9vP7lU8VD3OT8YxecTS2DOs5uSjYrQk/xnrQ1lzcEds5/oGLs/Bw== X-Received: by 2002:a05:600c:4a17:: with SMTP id c23mr29201881wmp.7.1626747515044; Mon, 19 Jul 2021 19:18:35 -0700 (PDT) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id b12sm22337335wro.1.2021.07.19.19.18.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Jul 2021 19:18:34 -0700 (PDT) References: <6f475812-e088-f0e0-e01f-11cd643ff3e6@yandex.ru> From: Dmitry Gutov Message-ID: Date: Tue, 20 Jul 2021 05:18:33 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) On 19.07.2021 05:15, Giap Tran wrote: > That means `project-find-file' will not set the default file instead > using M-n (next-history-element) if the user wants to use find file at > point. I could live with that. > By using this behavior, we can go to in dired mode of project root by > default. That seems beneficial (though we have a separate command for that). >> How can we know? Do you mean that it tells you that by asking to >> confirm after you press RET? > > I mean we have to looks by our eyes :P > > Oh, you mentioned "confirm". Do you use magit? I see this package has a > good UI/UX by default. If the user wants to push to a new branch is not > exist, magit will a "confirm" question. I've used Magit several years ago. It has a well-deserved reputation, but it also has a lot of custom code and interface elements, so it's often not so easy to follow its lead when working on a feature in Emacs core. From unknown Sun Jun 22 04:32:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49204: 28.0.50; How to create new file in project by project-find-file Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Jul 2021 02:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49204 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Gutov Cc: Giap Tran , Stephen Leake , 49204@debbugs.gnu.org, Juri Linkov Received: via spool by 49204-submit@debbugs.gnu.org id=B49204.16267499365480 (code B ref 49204); Tue, 20 Jul 2021 02:59:01 +0000 Received: (at 49204) by debbugs.gnu.org; 20 Jul 2021 02:58:56 +0000 Received: from localhost ([127.0.0.1]:60723 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5fyC-0001QJ-JO for submit@debbugs.gnu.org; Mon, 19 Jul 2021 22:58:56 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:51669) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5fy3-0001Pz-5A for 49204@debbugs.gnu.org; Mon, 19 Jul 2021 22:58:55 -0400 Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 8DE41441471; Mon, 19 Jul 2021 22:58:41 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 75A494413C2; Mon, 19 Jul 2021 22:58:40 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1626749920; bh=bhqxm+U3sgG7WJZGjOAD07hz95Jll9g4jt3YuRnc17c=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=H42rVkAj6Qp0sQ/pkaROu/E/B0oO7VFwxw2sYBIczYrgGMChgpevHrftTemwexp8H mPC9gRlgUdRPplwo389Hein0Qkv6kS4zCrHGYWHdlcLC5H1+xXN1zfzw6HJPnPucpw VaLldFt//iYPhmjqID5GaPlH6i/tmBehj0TilTjZRkrXHuULHt1iyjdKE+x+YyuVD7 8IktwCDI4EI9IAAuyL9w5uSgwoIZrjYsytvwfGAfmbqnWJWxf/kGXS1vC81EbN4uGJ 3v/NsMnn3LOek3S/7DbNzLw7fGJCgBkcz55ro4QpoYWLbUpE2YBeVX+gSlq25WLlBc Hu/cfr5tBiJQg== Received: from alfajor (unknown [216.154.29.138]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 2AAC0120314; Mon, 19 Jul 2021 22:58:40 -0400 (EDT) From: Stefan Monnier Message-ID: References: <6f475812-e088-f0e0-e01f-11cd643ff3e6@yandex.ru> <87k0lmqu8r.fsf@mail.linkov.net> Date: Mon, 19 Jul 2021 22:58:39 -0400 In-Reply-To: (Dmitry Gutov's message of "Tue, 20 Jul 2021 05:15:59 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.096 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Dmitry Gutov [2021-07-20 05:15:59] wrote: > On 19.07.2021 18:20, Juri Linkov wrote: >> The same way as switch-to-buffer confirms a non-existent buffer with: >> C-x b non-existent TAB RET [Confirm] > > switch-to-buffer uses read-buffer-to-switch, which delegates to read-buffer, > a standard function. > > read-file-name uses, say, read-file-name-default. Neither delegate to > a user-provided completion table, though. So we might have to reimplement > the check-and-prompt interface. I haven't followed the discussion, so I might be off, but I think what is described above is something you can get simply by passing the appropriate value for `mustmatch` to `completing-read` and friends (including `read-file-name`). Stefan From unknown Sun Jun 22 04:32:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49204: 28.0.50; How to create new file in project by project-find-file Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Jul 2021 00:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49204 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: Giap Tran , Stephen Leake , 49204@debbugs.gnu.org, Juri Linkov Received: via spool by 49204-submit@debbugs.gnu.org id=B49204.162682739429666 (code B ref 49204); Wed, 21 Jul 2021 00:30:02 +0000 Received: (at 49204) by debbugs.gnu.org; 21 Jul 2021 00:29:54 +0000 Received: from localhost ([127.0.0.1]:35705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m607W-0007iQ-B1 for submit@debbugs.gnu.org; Tue, 20 Jul 2021 20:29:54 -0400 Received: from mail-wr1-f44.google.com ([209.85.221.44]:41760) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m607U-0007iD-06 for 49204@debbugs.gnu.org; Tue, 20 Jul 2021 20:29:52 -0400 Received: by mail-wr1-f44.google.com with SMTP id k4so263847wrc.8 for <49204@debbugs.gnu.org>; Tue, 20 Jul 2021 17:29:51 -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=gmGNSq4AjekgChro1fQM4JmaUorzlJC+BBAMw4S0AJ4=; b=gAnS2GSlPyG8XwnGfop7XwyA9Beh/zCpFaNgG6EqGetloqJMfJu39bu2iTEmUetkX1 cKJD8uirCeQcqI2Z852ruKn6e7AEf52o+edqLpzDfMFr6s/ZiS0vOblgZVxFEZZpmaq3 eXdcWoeAC0Sze72hg0bsuL5IXYFrftPhVG0XP/mM81v8cqVuHChrEpu2OKYU8w2qeUoD VHbH2EBYjZpDB1HgT/nasRKPbYJzlaegzBiR8hAYTpbTPN+H/fixe70iRQ4ssOx1nVAT ee+MPahjnKcE3OjcO0x4OcxhYRwvgw/1oc15I+afGCUjucKwZdLHK6UvjuLAmo8EZ2ym J0PA== 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=gmGNSq4AjekgChro1fQM4JmaUorzlJC+BBAMw4S0AJ4=; b=cRSm8Ghq88NL8msqwn0ys1Xb5beQYtHK6/NzGd84td2ti1iHS2wX/B/3pY4cOEsOYZ VLmFi4plQZiHLTi2scCtLbdzWEtLjmdWOsI0LbknTQI/0ozIyMFS7/Dc8yF0R4ILxfQP vOu/DUD4eUI8km2jOWutYhE8823QblpfB/3+2VmR3zyiIEpLdjxcx6zGt/+jMCkgivW0 97Sbe6Yo5TZETdzoBgGVz3kR+E/HorP3nw1dErk/NJ/xjdnEXMxrojmT5j0722mEZa5p AVseSHi/zuCIoCt7l79tG9P2g0VlJqqN/u9bTD/2JMFnpMQWqPjAmiUxYJgLziJN/BvA nunQ== X-Gm-Message-State: AOAM531+SAcWzzbEzIEVGbq5ZNpg7kyqlJi2KD7WlvVvUoicx8iqpEzp Rln3JP1sElmN1eJjlXPKlsY= X-Google-Smtp-Source: ABdhPJzeFVolyqJue1ulP7hVZazYbOomGmQqcD6uPCNR7A/gCzXmWpg3IL6B/pnTjqn9XD0D9HUOQQ== X-Received: by 2002:adf:eed0:: with SMTP id a16mr37754435wrp.324.1626827386178; Tue, 20 Jul 2021 17:29:46 -0700 (PDT) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id g3sm25859744wrv.64.2021.07.20.17.29.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Jul 2021 17:29:45 -0700 (PDT) References: <6f475812-e088-f0e0-e01f-11cd643ff3e6@yandex.ru> <87k0lmqu8r.fsf@mail.linkov.net> From: Dmitry Gutov Message-ID: Date: Wed, 21 Jul 2021 03:29:43 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) On 20.07.2021 05:58, Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: > I haven't followed the discussion, so I might be off, but I think what > is described above is something you can get simply by passing the > appropriate value for `mustmatch` to `completing-read` and friends > (including `read-file-name`). Probably not: most third-party completion functions out there don't support any non-nil values of that argument other than t (or treat them like t). corfu and vertico support 'confirm', but they're probably not popular enough yet to justify that choice. And suppose we chose to use 'confirm', would a neutral prompt "Confirm" without clarification, as opposed to something like "File does not exist; Create?", be our best choice? From unknown Sun Jun 22 04:32:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49204: 28.0.50; How to create new file in project by project-find-file Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Jul 2021 01:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49204 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Gutov Cc: Giap Tran , Stephen Leake , 49204@debbugs.gnu.org, Juri Linkov Received: via spool by 49204-submit@debbugs.gnu.org id=B49204.16268312783531 (code B ref 49204); Wed, 21 Jul 2021 01:35:01 +0000 Received: (at 49204) by debbugs.gnu.org; 21 Jul 2021 01:34:38 +0000 Received: from localhost ([127.0.0.1]:35801 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6189-0000ut-MI for submit@debbugs.gnu.org; Tue, 20 Jul 2021 21:34:37 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:51033) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6188-0000ue-DB for 49204@debbugs.gnu.org; Tue, 20 Jul 2021 21:34:37 -0400 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 158CF10020E; Tue, 20 Jul 2021 21:34:30 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id BE6921001F3; Tue, 20 Jul 2021 21:34:28 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1626831268; bh=UCrCUie9MSYoraZ2BzkJB2zrViFN5EiBNOMx0iQsvt4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=JnAfSpHiDkv53kX/ntPxdmOVz6HdWvoS1AV0FlYz1pmoXDi/x3Jdpou/sS594x3kz hgzF9ySP0IiCKcUo0xJSaqYtH+o/4Hc6BZN7q1odUR+4EFfXgLV1AKQyqv/pwETMMT I9qHqfU+2FjG820/E8Kr2oBQkueGgDaJP0VNx+zjyO/Yda4RUqrsALDSr60cm/5/h+ JY80s51T0LoULZHlgEOg9cT4qNXWrqxQ5+f9OZ2mgMgln0048boiuXrTcP7KOly9jM xTtF4oUI/7qVKwu5tW43b/Bdt+JHdhUkZyqxx2yD7Yi+JTtzaH8MJuc5oYVC1QYQbh Z+PsyzixaCq9Q== Received: from alfajor (unknown [216.154.29.138]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 639C4120695; Tue, 20 Jul 2021 21:34:28 -0400 (EDT) From: Stefan Monnier Message-ID: References: <6f475812-e088-f0e0-e01f-11cd643ff3e6@yandex.ru> <87k0lmqu8r.fsf@mail.linkov.net> Date: Tue, 20 Jul 2021 21:34:27 -0400 In-Reply-To: (Dmitry Gutov's message of "Wed, 21 Jul 2021 03:29:43 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.095 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Dmitry Gutov [2021-07-21 03:29:43] wrote: > On 20.07.2021 05:58, Stefan Monnier via Bug reports for GNU Emacs, the Swiss > army knife of text editors wrote: >> I haven't followed the discussion, so I might be off, but I think what >> is described above is something you can get simply by passing the >> appropriate value for `mustmatch` to `completing-read` and friends >> (including `read-file-name`). > Probably not: most third-party completion functions out there don't support > any non-nil values of that argument other than t (or treat them like t). Their loss. > And suppose we chose to use 'confirm', would a neutral prompt "Confirm" > without clarification, as opposed to something like "File does not exist; > Create?", be our best choice? The same question comes up for `C-x C-f` (and `C-x C-b`). So far the answer we have chosen is "yes". We can revisit it, of course. Just like we may want to revisit the way `mustmatch` works, but at least there is an existing "standard protocol" to get that kind of behavior and I can't think of a good reason why `project-find-file` should behave very differently from `find-file` in this respect. Stefan From unknown Sun Jun 22 04:32:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49204: 28.0.50; How to create new file in project by project-find-file Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Aug 2021 11:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49204 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: Giap Tran , Stephen Leake , 49204@debbugs.gnu.org, Juri Linkov Received: via spool by 49204-submit@debbugs.gnu.org id=B49204.162790427226351 (code B ref 49204); Mon, 02 Aug 2021 11:38:02 +0000 Received: (at 49204) by debbugs.gnu.org; 2 Aug 2021 11:37:52 +0000 Received: from localhost ([127.0.0.1]:37812 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mAWGV-0006qx-Hx for submit@debbugs.gnu.org; Mon, 02 Aug 2021 07:37:51 -0400 Received: from mail-wr1-f50.google.com ([209.85.221.50]:34783) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mAWGU-0006qg-5J for 49204@debbugs.gnu.org; Mon, 02 Aug 2021 07:37:50 -0400 Received: by mail-wr1-f50.google.com with SMTP id h13so7621950wrp.1 for <49204@debbugs.gnu.org>; Mon, 02 Aug 2021 04:37:50 -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; bh=97c0ha4EW7w15DYa7DtHPavp3PdS52kFk/dyMFFjp0I=; b=WAwZJQDl3hRvovv40XQCteJG3f9XJTYl+GgyBCQexWCG+IibcJat/wl1QNIVynUA63 kFcq+r2PP85gj+P72IqP1n9ofPdzR6ycHRX2XMsb+1y+csRWyrKqUUltQRySiyHsDc7k h60JwAk9/6ubxA/a3U2cePo9t+Os0S1Gyrc+4Wg5zg/eoNjlqOSQeV2oZ5townIFhEIB 0c0aun+dkAfS7JPRbg3X9tmqIFJYO0ESk85St+idnB6uQHAG92mFoOemaI+/UoyDEc0A XFYtYfI5yxbebq03+K0/B3ra6BuOh6tpRXtIgUnGpQZoME1BzuUCD2e+jh4wKXRC1dNf vngw== 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; bh=97c0ha4EW7w15DYa7DtHPavp3PdS52kFk/dyMFFjp0I=; b=h4bQCEZAHLBg539DbXuyDXI8SejDYSIEBoQIW54LEmgPMnEE1ktI5QhkEsYzr6QiZe 48sakGQIoE1eqAJrf6791Ns2oSzPn8WgHWfeOC83O7HQ4C5Q0dSAIcPeDV6MNeErKkCw /a7Vo7Zj257w/0UyH9L7D/mgR27sSrenW4dEf4Ptnuuu5DqxMzye38WQPNVkOF1MoQx5 1STpJ6yR6xPt5yQiEehyBm4NiWZEuVmPgnorY8i81M9B4ervhSABv/M83eIrv1yaikXO SvOJC9AidptGxFnUjgnbJutppOaUq/RzVHPnxlhfP7DIGkFJVXdEcIfOQCX77tapYbae w4sA== X-Gm-Message-State: AOAM5321XzaAGLxYiviGJE9ewLFjZ8wMzjy//cfGyQpsueyJYlxpH3Kd D7KuONDf7WViix6RvZ/Vll8= X-Google-Smtp-Source: ABdhPJz9AZwJxqcD6ELIiBCsnG1o8VCCXwRcyni3MberPGisV0wIfP8meAQ+o5FjycG/FvECpTYB/A== X-Received: by 2002:a5d:6b8f:: with SMTP id n15mr16822704wrx.103.1627904264281; Mon, 02 Aug 2021 04:37:44 -0700 (PDT) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id 19sm3753806wmj.48.2021.08.02.04.37.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 Aug 2021 04:37:43 -0700 (PDT) References: <6f475812-e088-f0e0-e01f-11cd643ff3e6@yandex.ru> <87k0lmqu8r.fsf@mail.linkov.net> From: Dmitry Gutov Message-ID: <49ce60bf-9c8d-818f-a0a4-4010a7e56462@yandex.ru> Date: Mon, 2 Aug 2021 14:37:41 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------40F1AA77ED132FAEA75CF8F7" Content-Language: en-US X-Spam-Score: 0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) This is a multi-part message in MIME format. --------------40F1AA77ED132FAEA75CF8F7 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 21.07.2021 04:34, Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: >>> I haven't followed the discussion, so I might be off, but I think what >>> is described above is something you can get simply by passing the >>> appropriate value for `mustmatch` to `completing-read` and friends >>> (including `read-file-name`). >> Probably not: most third-party completion functions out there don't support >> any non-nil values of that argument other than t (or treat them like t). > > Their loss. Actually, ivy-completing-read treats 'confirm' the same as nil. Oh well. >> And suppose we chose to use 'confirm', would a neutral prompt "Confirm" >> without clarification, as opposed to something like "File does not exist; >> Create?", be our best choice? > > The same question comes up for `C-x C-f` (and `C-x C-b`). > > So far the answer we have chosen is "yes". We can revisit it, > of course. Just like we may want to revisit the way `mustmatch` works, > but at least there is an existing "standard protocol" to get that kind > of behavior and I can't think of a good reason why `project-find-file` > should behave very differently from `find-file` in this respect. Fair enough. Trying this approach, I seem to recall the main problem we tried to solve originally: the string passed as DEFAULT was returned as the value entered by the user if they simply pressed RET, with no additional check for whether it actually matches any of the file names (or the "Confirm" prompt). The attached patch seems to solve that. Does the behavior look good to everyone? --------------40F1AA77ED132FAEA75CF8F7 Content-Type: text/x-patch; charset=UTF-8; name="project-find-file-confirm-non-match.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="project-find-file-confirm-non-match.diff" diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index 0e73286426..6a330ecb2b 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -879,23 +879,16 @@ project-find-file-in (defun project--completing-read-strict (prompt collection &optional predicate hist default) - ;; Tried both expanding the default before showing the prompt, and - ;; removing it when it has no matches. Neither seems natural - ;; enough. Removal is confusing; early expansion makes the prompt - ;; too long. - (let* ((new-prompt (if (and default (not (string-equal default ""))) - (format "%s (default %s): " prompt default) - (format "%s: " prompt))) - (res (completing-read new-prompt - collection predicate t - nil ;; initial-input - hist default))) - (when (and (equal res default) - (not (test-completion res collection predicate))) - (setq res - (completing-read (format "%s: " prompt) - collection predicate t res hist nil))) - res)) + (minibuffer-with-setup-hook + (lambda () + (setq-local minibuffer-default-add-function + (lambda () + (let ((minibuffer-default default)) + (minibuffer-default-add-completions))))) + (completing-read prompt + collection predicate 'confirm + nil + hist))) ;;;###autoload (defun project-dired () --------------40F1AA77ED132FAEA75CF8F7-- From unknown Sun Jun 22 04:32:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49204: 28.0.50; How to create new file in project by project-find-file Resent-From: Giap Tran Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Aug 2021 13:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49204 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Gutov , Stefan Monnier Cc: Stephen Leake , 49204@debbugs.gnu.org, Juri Linkov Received: via spool by 49204-submit@debbugs.gnu.org id=B49204.16279117575568 (code B ref 49204); Mon, 02 Aug 2021 13:43:02 +0000 Received: (at 49204) by debbugs.gnu.org; 2 Aug 2021 13:42:37 +0000 Received: from localhost ([127.0.0.1]:37866 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mAYDF-0001Rk-0P for submit@debbugs.gnu.org; Mon, 02 Aug 2021 09:42:37 -0400 Received: from mail-pj1-f51.google.com ([209.85.216.51]:51199) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mAYDD-0001RV-8w for 49204@debbugs.gnu.org; Mon, 02 Aug 2021 09:42:36 -0400 Received: by mail-pj1-f51.google.com with SMTP id l19so25360920pjz.0 for <49204@debbugs.gnu.org>; Mon, 02 Aug 2021 06:42:35 -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=NmFe13r+n95W9lU7b8x1k4MX220S2J5eu6VtEKnA2S8=; b=c6C+d1A3CsRHCJa9QSH/smsT1vHBVrdHzCBeOGcedZP97E5vcwe/FUGKFMCrku8Uba 5yocvO9U8XEaH7q40ZZX+7IO1+HKW7zxXQh4XVDol/OXqbRoe0F5I4vphDnqBuwqR8Ih 24uNQ0Q7GJFDHuCkLP12s9yYvTektuvqzjItyS6NKHLdKzmBD389grMYUwWVNyZFvVSV S7zTRxlNjxJw1pXpLU+Z1n/YJO5mt06aljALn3hQ9WpgFDVDEjKm4SbYaKnvQrkXdClv atH0LmIFpCYxoZofISOr78zxHeNDzgIn9Ykz9DiP9lF0ub7RB5iilq3x4ay1bMZKHXAn o0rQ== 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=NmFe13r+n95W9lU7b8x1k4MX220S2J5eu6VtEKnA2S8=; b=UtgFpgl7+nlqF4pWKIiObhSggRHmwQeYRefR+eSATlHWT+7At0HMtg5HMgDKBDqAM1 ZBOaYQ9JmBID3wmzqbT4vZAz0Pu82dWtRBfx9HbQewqRt4y/xLF5l1ae20CKZIc5qomB hV/t+gVmTAkT0dBzPXTyXO9fET5tXc1pbsQaSjtCNMOo0kFaL5Fdqm25QKqAGyJsf7Ia cneeRaJiwza5X6f0ygWE2KUvZm7XCDe5lo5kaXg8U8EdmDG9xL6P8LJ30q4VHNuPf7yH dPJ1+7+DPK3hzibw/b0TV2AQPlnvbkj7JS6SB6sO98SgYarF6lGHDkWXmWNpNsrUIY9b d4Ag== X-Gm-Message-State: AOAM530rgXXHY06lc12pjX4izURZpuIyg91AcQG9ZnFoyVLCCZFfzzmC ZfD0NRP9EjiIOomkL3GkmSzzBQ== X-Google-Smtp-Source: ABdhPJyBTBa6zoUDqZTMTagLSiDb8bZ2QnzaM4qiTGJnnl1NRoYLi6Kc5and6219QOl1as+cHVncQA== X-Received: by 2002:a17:90a:d251:: with SMTP id o17mr17695467pjw.200.1627911749453; Mon, 02 Aug 2021 06:42:29 -0700 (PDT) Received: from [192.168.1.73] ([27.72.97.105]) by smtp.gmail.com with ESMTPSA id w2sm10737743pjq.5.2021.08.02.06.42.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 Aug 2021 06:42:29 -0700 (PDT) References: <6f475812-e088-f0e0-e01f-11cd643ff3e6@yandex.ru> <87k0lmqu8r.fsf@mail.linkov.net> <49ce60bf-9c8d-818f-a0a4-4010a7e56462@yandex.ru> From: Giap Tran Message-ID: <8010f615-fdac-13f3-c0fb-5ba42337a956@mht.vn> Date: Mon, 2 Aug 2021 20:42:24 +0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <49ce60bf-9c8d-818f-a0a4-4010a7e56462@yandex.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -0.1 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.1 (-) On 8/2/21 6:37 PM, Dmitry Gutov wrote: > > The attached patch seems to solve that. Does the behavior look good to > everyone? Looks good to me. I will apply this patch immediately to my configuration. Thank you very much! From unknown Sun Jun 22 04:32:05 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: =?UTF-8?Q?Gi=C3=A1p_?= =?UTF-8?Q?Tr=E1=BA=A7n?= Subject: bug#49204: closed (Re: bug#49204: 28.0.50; How to create new file in project by project-find-file) Message-ID: References: X-Gnu-PR-Message: they-closed 49204 X-Gnu-PR-Package: emacs Reply-To: 49204@debbugs.gnu.org Date: Fri, 06 Aug 2021 00:32:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1628209922-16132-1" This is a multi-part message in MIME format... ------------=_1628209922-16132-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #49204: 28.0.50; How to create new file in project by project-find-file which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 49204@debbugs.gnu.org. --=20 49204: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D49204 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1628209922-16132-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 49204-done) by debbugs.gnu.org; 6 Aug 2021 00:31:11 +0000 Received: from localhost ([127.0.0.1]:48690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBnlX-0004B5-IZ for submit@debbugs.gnu.org; Thu, 05 Aug 2021 20:31:11 -0400 Received: from mail-wr1-f49.google.com ([209.85.221.49]:35425) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBnlU-0004Ar-St for 49204-done@debbugs.gnu.org; Thu, 05 Aug 2021 20:31:10 -0400 Received: by mail-wr1-f49.google.com with SMTP id n12so8816612wrr.2 for <49204-done@debbugs.gnu.org>; Thu, 05 Aug 2021 17:31:08 -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=r1FJ8ma/hu7FT8XMG5GEQo3s5Av23a9Rw/skaT4ROyU=; b=QAuSXscS2xZ5JlMjdekZSoGgNWeGvIYBLKsB+V5zih1M63LcNK/99c0WpaqXIHchPE H32nNX2oL25Lwjxfkybia8p62SSRl/T8fwNmOKYhk24EBnk3wPA/NSQFwsUrIX536zHX fh9HKaAeUbjX1u7k/7if4Di1TegFEaQCKEEelFltITIS1DL6Kkn25+cd+16g8CYUnTgq 6pwqiMYCeiHmMRCt55RjTd3u/pdLXoLX+BZQtz3r66EGiMAUVhMutCZ7DtWQHn38ivf4 7GB1Y63BvfIvpmaPir4drcb5WOye2tFrDCQ5KfZrAdaOmKXP0R0fZdxvQKJJ/rV8hCSQ 0f+w== 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=r1FJ8ma/hu7FT8XMG5GEQo3s5Av23a9Rw/skaT4ROyU=; b=Kkbu0fRsUUqGfCsepAitLoSPn37GD/hVzf3U0HULEuViHv/b4EXpCXr/j3aBEhYjFx DWYkDrpQiNAb3GAYZfWqR9v29vln9Q9cLpfXmfavlBewhLobsHzTZlVGlPjiknuXK6M6 guqnpoos9uEpijWF3EUNWao0ivJCTD/brfYTm4GawDZPBlkVcNIAUHNqd8xD2gvCUmD0 a+mc9Z6kmhv3F9KuyA/6U33QGrFnLrlg7VXowMeVgBk0egfTa1iIfm9AKBBhKQLx1jfy LU4LCSZlmiLnnh4OuHHpVNOVn5ygjimQTISlTcmI8jVtFKKKPTwN4LkxmAJJNM3/6nqU wj1g== X-Gm-Message-State: AOAM532hw6hKH3li0nZMQMLnsPkaRDkW0ObXfD+PIdKxn5y876Zzvv0O QSaLCwBnaPF7kp7fNkgmO9c= X-Google-Smtp-Source: ABdhPJwLcVEaM+T8KgeW++1NVKJAzn9fNOWLZyp66snykaAJHriWTpP2K+YWv0P4ks1Nn0wcbrcTeQ== X-Received: by 2002:a5d:62cd:: with SMTP id o13mr881294wrv.93.1628209863068; Thu, 05 Aug 2021 17:31:03 -0700 (PDT) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id h9sm7847113wrw.38.2021.08.05.17.31.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 Aug 2021 17:31:02 -0700 (PDT) Subject: Re: bug#49204: 28.0.50; How to create new file in project by project-find-file To: Giap Tran , Stefan Monnier References: <6f475812-e088-f0e0-e01f-11cd643ff3e6@yandex.ru> <87k0lmqu8r.fsf@mail.linkov.net> <49ce60bf-9c8d-818f-a0a4-4010a7e56462@yandex.ru> <8010f615-fdac-13f3-c0fb-5ba42337a956@mht.vn> From: Dmitry Gutov Message-ID: Date: Fri, 6 Aug 2021 03:31:01 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <8010f615-fdac-13f3-c0fb-5ba42337a956@mht.vn> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: 49204-done Cc: Stephen Leake , 49204-done@debbugs.gnu.org, Juri Linkov X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) On 02.08.2021 16:42, Giap Tran wrote: > Looks good to me. I will apply this patch immediately to my configuration. > > Thank you very much! I've pushed the change now. Thanks for testing. ------------=_1628209922-16132-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 24 Jun 2021 10:33:30 +0000 Received: from localhost ([127.0.0.1]:42509 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwMfq-0003Ha-Ba for submit@debbugs.gnu.org; Thu, 24 Jun 2021 06:33:30 -0400 Received: from lists.gnu.org ([209.51.188.17]:52926) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwJcs-0006fY-Bq for submit@debbugs.gnu.org; Thu, 24 Jun 2021 03:18:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54620) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwJcs-0003l3-1j for bug-gnu-emacs@gnu.org; Thu, 24 Jun 2021 03:18:14 -0400 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]:37496) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lwJcn-0007nx-TD for bug-gnu-emacs@gnu.org; Thu, 24 Jun 2021 03:18:13 -0400 Received: by mail-pl1-x632.google.com with SMTP id y21so2481548plb.4 for ; Thu, 24 Jun 2021 00:18:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mht-vn.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=Wz3R/R53unrJ3h/taaiCHZik6cLmtYM1NKHbvANlNhg=; b=E21vOKHxNspI3sUZbDmfnl6WgOcu1ziTf3ASHGE3P90EaA80IHtM0T63JctIimtPv5 r5FGxcUCynYz/8RqCUyXLUlWSRtxTb4p9cCBih9pPrBC6Bf1VP1ACqoOHVtHNXlQvCA7 S/qkNcn68kAuGcdor0z93MrnNhIpXB1kynjKaMk7GpOz5T0MrDiDZcc/U0soE/y+qGhK GZ1Euwu8hFIF3rjiG3AtToNSYNXHq28HkNinkdTJdIDoxgHS1B8vmASW1KH9q3PT6cFI zYC6ipdO7jNGd2d7nX782IOKRC0ivx/k+xtvK2KlEiC1kCvmfIFaHrK3lH8S5xOUfcjR Koag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Wz3R/R53unrJ3h/taaiCHZik6cLmtYM1NKHbvANlNhg=; b=sMvYofMk2Yb6lw8YxLJaF7e8sQ91Uq6dw7t+XVGKJHqUgDzRVhBuIPXyxrKw1rVQ69 V9Y1w/nImX48Vpi2RahnSTXWJZ04XS8WC95ix5gns+gBafoCOSfoMgOMy1iZ/TOdM28G wnb4CL7KeYq4OmeA8mDlxgqPqLsB2KW8b5TTJoxCDPu4ZNYcwzEZMhTbu/lfaStS4kfG gmC9wGHNnRxwieKv5r6dbV4fBg+zveOQMMu94++uBwzna3Sufq5+CWWJWM75Uz/MnIYE yioXCv1+re8Sx8V8qPxUSd/sK26KViHRPXjd2lcHqeaNtZgNAlSWqz/7sAQ1izxhHnJO NfJw== X-Gm-Message-State: AOAM533v/270OOIxvCxoet13U2us2Jo9jPzcHNT4KZm6OHTmuGiul4OP jJanHseZV/zz038oVhqrRkFpeadkG7VYclLYFCDF0pl7FoSKfEvSvI8= X-Google-Smtp-Source: ABdhPJz6CyvYrQ2UyZ3HZ77E1fWKr2a7ouPdGDXLuS5nVjuzvchsxpARvMHOdkAAdikzZU2KLC2/iO3YihHaKPDnrIY= X-Received: by 2002:a17:90a:f293:: with SMTP id fs19mr13367093pjb.149.1624519086740; Thu, 24 Jun 2021 00:18:06 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?B?R2nDoXAgVHLhuqdu?= Date: Thu, 24 Jun 2021 14:17:55 +0700 Message-ID: Subject: 28.0.50; How to create new file in project by project-find-file To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: none client-ip=2607:f8b0:4864:20::632; envelope-from=giaptx@mht.vn; helo=mail-pl1-x632.google.com X-Spam_score_int: 8 X-Spam_score: 0.8 X-Spam_bar: / X-Spam_report: (0.8 / 5.0 requ) BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 24 Jun 2021 06:33:28 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Developers, I'm trying to migrate from projectile package to project(0.6.0). That is amazing. Today I see I can not create a new file by using `project-find-file. I wish we can create a new file with `project-find-file when the file is not in candidates as `find-file function do. Thanks. ------------=_1628209922-16132-1--