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, 19 Jul 2021 09:15:10 +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="31942"; 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 19 04:16:11 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 1m5IpG-0008Bo-Ue for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Jul 2021 04:16:11 +0200 Original-Received: from localhost ([::1]:34604 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m5IpF-0006wO-Re for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Jul 2021 22:16:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35626) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5Ip8-0006wF-Cf for bug-gnu-emacs@gnu.org; Sun, 18 Jul 2021 22:16:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46198) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m5Ip8-0006TK-5I for bug-gnu-emacs@gnu.org; Sun, 18 Jul 2021 22:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m5Ip8-0007ue-0T for bug-gnu-emacs@gnu.org; Sun, 18 Jul 2021 22:16: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, 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 Original-Received: via spool by 49204-submit@debbugs.gnu.org id=B49204.162666092130371 (code B ref 49204); Mon, 19 Jul 2021 02:16:01 +0000 Original-Received: (at 49204) by debbugs.gnu.org; 19 Jul 2021 02:15:21 +0000 Original-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 Original-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 Original-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) Original-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) 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:210231 Archived-At: 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,