From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: master 432c1aa: Use `pop-to-buffer-same-window' in `project-eshell' Date: Sun, 21 Mar 2021 00:10:40 +0200 Organization: LINKOV.NET Message-ID: <87k0q1tr1b.fsf@mail.linkov.net> References: <833481ce-5f13-77d5-deef-8d9f0c51cdd4@yandex.ru> <1BE350C3-A516-4752-8997-91C252F7E9AD@thornhill.no> <80a81c94-ebc6-6b07-5aee-81adee0ff33b@yandex.ru> <484a46c1-2485-4d9d-e2e4-c45849307b52@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28256"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: Stefan Kangas , Theodor Thornhill , Simen =?iso-8859-1?Q?Heggest=F8yl?= , emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Mar 20 23:17:54 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lNjur-0007Fx-B1 for ged-emacs-devel@m.gmane-mx.org; Sat, 20 Mar 2021 23:17:53 +0100 Original-Received: from localhost ([::1]:55156 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lNjuq-0000wN-Ag for ged-emacs-devel@m.gmane-mx.org; Sat, 20 Mar 2021 18:17:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41244) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNjtv-0000W5-4a for emacs-devel@gnu.org; Sat, 20 Mar 2021 18:16:55 -0400 Original-Received: from relay11.mail.gandi.net ([217.70.178.231]:41273) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNjts-0006iP-1r for emacs-devel@gnu.org; Sat, 20 Mar 2021 18:16:54 -0400 Original-Received: from mail.gandi.net (m91-129-107-223.cust.tele2.ee [91.129.107.223]) (Authenticated sender: juri@linkov.net) by relay11.mail.gandi.net (Postfix) with ESMTPSA id C3E8F100006; Sat, 20 Mar 2021 22:16:45 +0000 (UTC) In-Reply-To: <484a46c1-2485-4d9d-e2e4-c45849307b52@yandex.ru> (Dmitry Gutov's message of "Sat, 20 Mar 2021 22:29:49 +0200") Received-SPF: pass client-ip=217.70.178.231; envelope-from=juri@linkov.net; helo=relay11.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:266676 Archived-At: >>> So... use pop-to-buffer-same-window in both cases, then? >>> >> Sure - all four cases, then? shell, eshell, project-shell and project-eshell? > > That would be my choice. > > Unless someone here wants to voice a strong disagreement. +1, I customized the same anyway: (push `(,(rx bos "*" ;; Handle both "*shell*" and e.g. "*myproject-shell*" ;; generated by ‘project-shell’: (and (? (* nonl) "-") "shell") "*" ;; Uniquifed buffer name with optional suffix in angle brackets (? (and "<" (+ (not (any ">"))) ">")) eos) display-buffer-same-window (inhibit-same-window . nil)) display-buffer-alist) But it's fine also to change the format of uniquify as was discussed recently to "myproject/*shell*<3>" or "*shell*<3>", I don't remember what was the conclusion.