From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Newsgroups: gmane.emacs.bugs Subject: bug#47004: 28.0.50; [PATCH] Use `pop-to-buffer-same-window' in `project-eshell' Date: Mon, 08 Mar 2021 12:50:06 +0100 Message-ID: <875z213lw1.fsf@runbox.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37045"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.90 (gnu/linux) Cc: Dmitry Gutov To: 47004@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 08 12:51:10 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 1lJEPm-0009UL-Hw for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Mar 2021 12:51:10 +0100 Original-Received: from localhost ([::1]:54774 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJEPl-0000q5-Ja for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Mar 2021 06:51:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJEPe-0000op-Ci for bug-gnu-emacs@gnu.org; Mon, 08 Mar 2021 06:51:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58982) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJEPe-0000sh-5Z for bug-gnu-emacs@gnu.org; Mon, 08 Mar 2021 06:51:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lJEPe-0005Qs-4j for bug-gnu-emacs@gnu.org; Mon, 08 Mar 2021 06:51:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Mar 2021 11:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47004 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.161520422320836 (code B ref -1); Mon, 08 Mar 2021 11:51:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Mar 2021 11:50:23 +0000 Original-Received: from localhost ([127.0.0.1]:42295 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJEP1-0005Q0-71 for submit@debbugs.gnu.org; Mon, 08 Mar 2021 06:50:23 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:55286) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJEOy-0005Pr-Rh for submit@debbugs.gnu.org; Mon, 08 Mar 2021 06:50:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57736) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJEOy-0000Et-3g for bug-gnu-emacs@gnu.org; Mon, 08 Mar 2021 06:50:20 -0500 Original-Received: from aibo.runbox.com ([91.220.196.211]:54902) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJEOv-0000PC-LR for bug-gnu-emacs@gnu.org; Mon, 08 Mar 2021 06:50:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=selector2; h=Content-Type:MIME-Version:Message-ID:Date:Subject:Cc:To:From; bh=7PQVi+2E4FAr/z81YQCLdTxLo5sctuN6Im/RYqL5VMM=; b=mE+JpqagoVEZuthNhH1NhfaIi hpFLy67zBIeqDNLjFp6P528lKvHKnSKJijxC+A+1BK4YHqs87ehtivPTXkbdyQOE5YmsG65Rt5pJq VOop1ZGeNybYUtzkktSGczey7GU6jGuWYOQUEipPPEspt9r1xfpcz6HcT+oIuWsJCBwKlAsqBq3RZ omdYNzJmDn8bRmgpDX79P2V86NNmI/gznuzApQkfx/acqSpAHS4Qz7XQJlGbQeclCISQKKLPH958I XUXdztZEAQriL0cEXYudYStdftCntkjVLxEDjqzG7sFfDAZA5rzppqLLrq5LVjZNto6D+7NSK0Qm+ eXgPNrhpw==; Original-Received: from [10.9.9.72] (helo=submission01.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1lJEOq-0007Jl-Sb; Mon, 08 Mar 2021 12:50:13 +0100 Original-Received: by submission01.runbox with esmtpsa [Authenticated alias (963757)] (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) id 1lJEOl-0004YO-3i; Mon, 08 Mar 2021 12:50:07 +0100 Received-SPF: pass client-ip=91.220.196.211; envelope-from=simenheg@runbox.com; helo=aibo.runbox.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:201823 Archived-At: --=-=-= Content-Type: text/plain Hi. Could `project-eshell' be changed to use `pop-to-buffer-same-window' instead of `pop-to-buffer' to match the behavior of `M-x eshell'? --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Use-pop-to-buffer-same-window-in-project-eshell.patch >From a7109bbf417a322a7066fcdc93e43ca457b236ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simen=20Heggest=C3=B8yl?= Date: Mon, 8 Mar 2021 12:38:41 +0100 Subject: [PATCH] Use `pop-to-buffer-same-window' in `project-eshell' * lisp/progmodes/project.el (project-eshell): Use `pop-to-buffer-same-window' instead of `pop-to-buffer' to match the behavior of `M-x eshell'. --- lisp/progmodes/project.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index abe563bec0..d59da2496a 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -924,7 +924,7 @@ project-eshell "-eshell*")) (eshell-buffer (get-buffer eshell-buffer-name))) (if (and eshell-buffer (not current-prefix-arg)) - (pop-to-buffer eshell-buffer) + (pop-to-buffer-same-window eshell-buffer) (eshell t)))) ;;;###autoload -- 2.30.1 --=-=-= Content-Type: text/plain -- Simen --=-=-=--