From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#37745: (save-window-excursion (shell) (buffer-name (current-buffer))) Date: Thu, 17 Oct 2019 18:50:00 +0200 Message-ID: <87pniv5nbb.fsf@gmx.de> References: <87pniwkr9e.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="110692"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Lars Ingebrigtsen , 37745@debbugs.gnu.org, Eduardo Ochs To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 17 19:09:42 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iL9HP-000Sbx-1L for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Oct 2019 19:09:39 +0200 Original-Received: from localhost ([::1]:53832 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iL9HN-000341-LA for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Oct 2019 13:09:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42302) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iL8zR-0006px-0O for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2019 12:51:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iL8zP-0006GL-3D for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2019 12:51:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40042) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iL8zO-0006GA-Ph for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2019 12:51:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iL8zO-0001wA-Kv for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2019 12:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Oct 2019 16:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37745 X-GNU-PR-Package: emacs Original-Received: via spool by 37745-submit@debbugs.gnu.org id=B37745.15713310117356 (code B ref 37745); Thu, 17 Oct 2019 16:51:02 +0000 Original-Received: (at 37745) by debbugs.gnu.org; 17 Oct 2019 16:50:11 +0000 Original-Received: from localhost ([127.0.0.1]:48860 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iL8yZ-0001uZ-2l for submit@debbugs.gnu.org; Thu, 17 Oct 2019 12:50:11 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:56519) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iL8yX-0001uK-SG for 37745@debbugs.gnu.org; Thu, 17 Oct 2019 12:50:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1571331002; bh=+52eQLmBSTa+POSYlL8Vfm/+Q6KF3FwAnJEzFb238iU=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=JU5Z2xbzTnqfkIJAQqsfYN3E+Oqyhgwm29Q2B/m5WBMLUSKgdeAKKK2tx4+6M4LTq SsB1erWXAXEMADeoF/yfHSQD9sN10ttjtcdTtWvC/MtgnZIrobKRHE48xGo+n2ydfX gUASicQ2xPnGWgO+1J8wE58W37iDtI0SiYmSb11Q= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from detlef.gmx.de ([212.86.42.71]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MowGa-1hgrvY0dsE-00qVWL; Thu, 17 Oct 2019 18:50:02 +0200 In-Reply-To: (martin rudalics's message of "Thu, 17 Oct 2019 10:26:42 +0200") X-Provags-ID: V03:K1:0yOP0O2Um1UKKuuvLSOBd5WQejO5+JlvzBoRK2DoNRCKsH7pYHJ qHMb5UJi5YKikdIbGP/OMAhJrHigGRTNuUYE0nmuF5XFUH2+/k3cVKmN3TbWHEl1pm81xtd 5Pz3a4pjxzZBYAH3wDocsdDS9VAsdlTQSSwT+boZtGpqbVswWUBDmrU53n4ljH5nehKQ35o xaoetag10bpDwgU5ddaug== X-UI-Out-Filterresults: notjunk:1;V03:K0:HdyW01I0SUY=:v34P6raImLLW1aS9DJZrbL hrIZ1NW7QfuEx/k4y/YilaOQ+KbMF3nbJPW5aiGJ3fvPmbCeyYHktL7eL8XMmjgREsCK6HY2b wm21fi7Hl41OPfxoNAiWy/I435Tl8njYmImKcay7U1dgKy15aul8hPY4F3XmBsgGgcolsLdiF SgMiJP2l7utFnvHg7ev4u3M3uJ5evpeqyKXAvWwQcXxa5s71z94jtDshXNbWqaLRtwUNzd1iV k5tczXwkjuAzfKbnEQniFmTbzgLEXh1dY7wdLE6CodAtcG22Il5/KZsJfOuSr/Q9gKUZdfDup 47QP/cuN/rLJ+oFKZOrnf8yKsGkyDCAH4v38/Y1Le5hHVvl2gDkw6tj8ubq8CKu1uv7FTKbY0 XTcYKuxFEv5ILNL6hMzKoc9/OhoYti5UlJuCI3ryUusGMquUK3l0aCDO6wPthHQz6fSVcCJuF fuA/hnQUcBg3P2mB4f8PXpYG7cg7v5yK7bnyXzR8LfWe06z87CQ5Ohw8oxYaQYwOs1mw9qXAi dJ1ok2pSIFH/1/w/Zq6H5D7oG3p1GuFZLiVlWkXa39HhhQXPXMQtwN7gx6o/FF80cELRa2d2q FVu/Sql2Qotjqyh0V3ptZ+QHdv422Ip3Iz7Snx+484mj7JYL+8bdJw76b+0jlelq9lBhhoHH1 E4bsTEA4YbOI40BAN3pePGRHcpEm2BVepgUlqgTfxOYVyWym0h5na1BIHS/NtFCuTvFshJS8q 8Xx8KYIPY3Qfhe/8TAUMSNXqAVXCOGwNy84OFcVMErTYXidY8yNEWQxWN1pfVTjjd4loMK95 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:169603 Archived-At: martin rudalics writes: >>> In many versions of Emacs the sexp below >>> >>> (save-window-excursion (shell) (buffer-name (current-buffer))) >>> >>> returns "*shell*", but in some recent versions it returns the name of >>> the current buffer instead. >> >> This seems to be introduced by >> >> commit 59191cd0cbe8463f9095a71cb4048bb138d6e446 >> Author: Michael Albinus >> Date: Sun Apr 2 11:02:54 2017 +0200 >> >> Apply connecion-local variables for shells >> >> if I read the log right. >> >> It wraps the `pop-to-buffer' in a `(with-current-buffer buffer', so >> current-buffer doesn't change like it used to. > > Why can't you simply use (buffer-name (shell)) instead? That's possible, of course. However, `shell' has always made the shell buffer current. It was an oversight by me to change this. I've added this behavior to the docstring of `shell', and fixed this. Committed to master. > martin Best regards, Michael.