From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#41879: 28.0.50; [Patch]: Add project-switch-to-buffer in project.el Date: Mon, 22 Jun 2020 16:46:03 +0300 Message-ID: References: <87bllk2pfc.fsf@thornhill.no> <87wo44mzrb.fsf@thornhill.no> <85d1f04d-d926-bbfd-031e-1898b5c081b3@yandex.ru> <2d760293-3db0-d46e-07ec-16dc86ff4041@yandex.ru> <075ba6a5-4659-fd0c-91ed-53b242fa884a@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="ciao.gmane.io:159.69.161.202"; logging-data="45894"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 Cc: 41879@debbugs.gnu.org, Theodor Thornhill To: Andrii Kolomoiets Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 22 15:47:12 2020 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 1jnMn1-000Box-LQ for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Jun 2020 15:47:11 +0200 Original-Received: from localhost ([::1]:54910 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jnMn0-0000Qs-Kl for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Jun 2020 09:47:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jnMmr-0000QO-UR for bug-gnu-emacs@gnu.org; Mon, 22 Jun 2020 09:47:01 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50187) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jnMmr-0006DI-Lw for bug-gnu-emacs@gnu.org; Mon, 22 Jun 2020 09:47:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jnMmr-0007tZ-Jp for bug-gnu-emacs@gnu.org; Mon, 22 Jun 2020 09:47:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Jun 2020 13:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41879 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 41879-submit@debbugs.gnu.org id=B41879.159283357430292 (code B ref 41879); Mon, 22 Jun 2020 13:47:01 +0000 Original-Received: (at 41879) by debbugs.gnu.org; 22 Jun 2020 13:46:14 +0000 Original-Received: from localhost ([127.0.0.1]:33500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jnMm5-0007sW-VY for submit@debbugs.gnu.org; Mon, 22 Jun 2020 09:46:14 -0400 Original-Received: from mail-wm1-f52.google.com ([209.85.128.52]:35206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jnMm3-0007sJ-LH for 41879@debbugs.gnu.org; Mon, 22 Jun 2020 09:46:12 -0400 Original-Received: by mail-wm1-f52.google.com with SMTP id g21so11333277wmg.0 for <41879@debbugs.gnu.org>; Mon, 22 Jun 2020 06:46:11 -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=HU9JQgpZ4lTvq5siAkNTY9CkzKS9X6yHE2K8OERIzZw=; b=uNSJXFrFRxjevPnvq/VbnGHSh0qV9IDOAX7HaPvviAocX2Y896THZG2bOawIkzAV+Q xH8h35W1uNabbMI4n+NkreNx9+/CVYa5S+dAJRg16ciGFAbkYr7vRHC2G2YEKJaxWWcB RofrvDh3qGdzfDbFJBwUCav9GBV44+BdvzvIzrGDsWK+7v9eaNu3/fKb0cy7xwupXHBQ sr6zYsrKhl69jE1yu7THlomf95DEBQewPbZlVN0nm4Uq9NKRPWhtEcY6RQ2GOnvqDP5m 0u/r9bjp3Nj50VSaFl5nEqWbm+nna3K4mTTmEe8zuyb0SBB7Num6hJeD7iiiFMqWHQIC Xz4w== 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=HU9JQgpZ4lTvq5siAkNTY9CkzKS9X6yHE2K8OERIzZw=; b=g1Vf0GrVRnqBPoVfaYVzgLJlZcNDmVh0a1Kh0rPHaApIGP1qM9Ha3FK27DzT0ODyzI 1YCoRIuKGXIWy/jgPQ4GCE4gPmLb0Ib2mgsQdkyFPjm72JEGUiVLKjTRgdBq0phCTNEl TLj9a0txfHI1ree5Vgc402si5MxilxEvBQ7WtcCgAIaTdZVy0+vsvzjBL2rfcdfwZbzB TpTlfYsN6RXWF1Mqxchz3B40M2dyNfjY9OFviXrTJPiy6BJ/+Nz5/b4F5389iN1s5yhf d3TvZi4gEZb6RkTKjPW/zM/3rq8wTAFaSfZ2qU+UyCunqM9NaYju3iGFjzp56I2CBo5Q ROiw== X-Gm-Message-State: AOAM533GPBZFrP7voHf7j3V49ufzYcnleuI/Xe/NHTn9k7tXvHEcGu1j 3VpktfHnwq04+S+gSdNEQ/s= X-Google-Smtp-Source: ABdhPJx5tSQcJUQ0Rsa+B3Oohko/zMY3eTehGbAThtQCBiFgKZXY8asy+gBdSfz2LVuKtHzUmUul5w== X-Received: by 2002:a1c:a3c5:: with SMTP id m188mr18136767wme.152.1592833565815; Mon, 22 Jun 2020 06:46:05 -0700 (PDT) Original-Received: from [192.168.0.111] ([109.110.245.170]) by smtp.googlemail.com with ESMTPSA id t2sm5490900wma.43.2020.06.22.06.46.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 Jun 2020 06:46:04 -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:182275 Archived-At: On 22.06.2020 12:30, Andrii Kolomoiets wrote: >>> But to keep consistency with switch-to-buffer, >>> project-switch-to-buffer >>> should behave the same. >> >> There are other differences, too. The arglist, for example. > > Well, NORECORD and FORCE-SAME-WINDOW can be passed to switch-to-buffer > easily if there is the need to. Everything can be added later. Adding new function arguments could be a bit more problematic than a slight change in semantics like REQUIRE-MATCH=nil, though. >>> buffers when existing buffer is required. Because switch-to-buffer is >>> able to create buffers, I can't see the reason why >>> project-switch-to-buffer should require the match. >> >> To better protect from typos? It's not a very strong argument, of >> course. But "just for consistency" isn't one either. > > How about "To be able to create buffers"? ;) This way there are no need > to use switch-to-buffer for those who will use project-switch-to-buffer > solely. > Imagine project-switch-to-buffer is in your muscle memory. You need to > perform additional steps to create the buffer (C-g C-x b > type-buffer-name-again) just because the project-switch-to-buffer can't > create buffers with no reason. All right. I'll change it to nil now. Not sure I understand the passion behind your argument, though, since you said you're not going to need this yourself. But perhaps I misunderstood.