From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#37745: (save-window-excursion (shell) (buffer-name (current-buffer))) Date: Thu, 17 Oct 2019 10:26:42 +0200 Message-ID: References: <87pniwkr9e.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="184808"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 37745@debbugs.gnu.org, Michael Albinus To: Lars Ingebrigtsen , Eduardo Ochs Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 17 10:27:46 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 1iL18M-000lsB-55 for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Oct 2019 10:27:46 +0200 Original-Received: from localhost ([::1]:39728 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iL18K-0001HK-Oc for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Oct 2019 04:27:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45258) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iL17h-0001Fw-TY for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2019 04:27:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iL17f-00081K-Vq for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2019 04:27:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38284) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iL17f-00081G-SN for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2019 04:27:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iL17f-00031F-NR for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2019 04:27:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Oct 2019 08:27: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.157130081111580 (code B ref 37745); Thu, 17 Oct 2019 08:27:02 +0000 Original-Received: (at 37745) by debbugs.gnu.org; 17 Oct 2019 08:26:51 +0000 Original-Received: from localhost ([127.0.0.1]:47105 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iL17T-00030i-9b for submit@debbugs.gnu.org; Thu, 17 Oct 2019 04:26:51 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:58943) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iL17R-00030U-Bw for 37745@debbugs.gnu.org; Thu, 17 Oct 2019 04:26:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1571300803; bh=O0wx2IcgteZN6l+/Ush8bzHm56DGTT7WLCat9b9eSoQ=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=QkC04xXwJtwkeC5Tc7Y6iKkGnwdGjun0wg2rE+BD5rWTObsWL9L6OS4Y/jPWOT1gc iC9ETCL0gpa9mqy8nE7M8xogsMvorsA10ohS2zsH5IG8ekBZkxAD3+nMbhBO7/PNVZ gmDTKGDJBXXMgjycdxEGlP/IgVWNfxgwh/TIR/T0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.101] ([46.125.249.89]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MUGi9-1iUg1B2zAJ-00RGxa; Thu, 17 Oct 2019 10:26:42 +0200 In-Reply-To: <87pniwkr9e.fsf@gnus.org> Content-Language: de-AT X-Provags-ID: V03:K1:r9Ix4/rnL1lxm1QhNCK0qwEzF8h1F4dRLwi60H7LNZJouPenoCZ O+x8kEtrwo/xGxk7EndqUoC4zG9CInIgWqdJlJo6F/YdeeWDOvBoA6aRAHzdslTBM16YQE7 pX6AE1W/wjPcCQGmayQVtts/vOzSHmo+HiR5gC4L+NfrPnqpnDW8mPn1mjYNlkW+5iTvRNm g0OmJ4SqVnTcR80euroIg== X-UI-Out-Filterresults: notjunk:1;V03:K0:aqjBQZ7HPLM=:omTfeyVtnGe0YflcI5OZZE 1fOtFpLQYFWqw0odBNVUwWHjBp1Gy9YoRoJ5hFS4scXBxMm4w9Zj3yXh8pjdgtWItOb6SseQN dZhPRlvYGVbijsKkMd3B5mFqrXqAVWwavR1mX1pR3hDeXKdRfQyY5lnwOQUYGQefLyrPTEJhp /3CorwxpXt+1sZiY6R9mfUkTcftdJDLW72xavPfo3kwZceZ7TA/FbuVV393yBNGUwOCVwekoh pPIaMPX4n3Dwg4Sr7rjBJ5M7kJs2O6yDuu2+a+81Spx5/5nenzuOsj3O7U7+Y6fQgqnH6eHpM u/T0KibUjft7N9WKKib2n0ToGbqa3LpMyUduILz9scZeKfzQYNe1eA5E5Mbie4X/pqW9tFAN6 BaB9RobTXArs6vyW+NZTWaAFXli44SHj1w3a4asFziRvQD/FRb9jliHBd9DvPe1UzwF7/gEpJ TbhBZ8GrsF3Vd87QU4T91eQVt79EYdKbMX9MhbNjOOIplIc5cuSY+HV1tNvTGvq9ppVrSmXF8 4Tx29QYoL8T//aEG4yEV+q8FSodwsVSaZRD9mQ74Ds/t7IsESMAM599tCJGsfTE5jebTIQODI npsJlmQEWnAcwnRZ2JFE7Loz+qyv3tM27KSXYffFkl01tS5BgqLJZ5eHsw6CTQPqJj21tjIKL jqOUwiWd8fmyNZERVutazzdYMVK+vNxUS88VUg8Ov3l2lBsHjRvPuoxjERrSPVexXwAM0hlMF JxYeRaEePHNF735RpR114Uyo2Ivsdgfu/T1eIYwvJ61g+ANmCeQd8URUnj+iWZIkyhJmLtkr 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:169541 Archived-At: >> 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? martin