From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eduardo Ochs Newsgroups: gmane.emacs.bugs Subject: bug#37745: (save-window-excursion (shell) (buffer-name (current-buffer))) Date: Mon, 14 Oct 2019 04:55:53 -0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000102a8b0594da33b4" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="241322"; mail-complaints-to="usenet@blaine.gmane.org" To: 37745@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 14 09:57:31 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 1iJvEQ-0010dc-BK for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Oct 2019 09:57:30 +0200 Original-Received: from localhost ([::1]:45454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJvEO-0001j4-NC for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Oct 2019 03:57:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49792) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJvE5-0001hX-AQ for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2019 03:57:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iJvE3-0004Is-7Y for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2019 03:57:09 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57431) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iJvDy-0004Fo-5S for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2019 03:57:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iJvDy-0001Lg-3v for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2019 03:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eduardo Ochs Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Oct 2019 07:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37745 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15710397725127 (code B ref -1); Mon, 14 Oct 2019 07:57:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Oct 2019 07:56:12 +0000 Original-Received: from localhost ([127.0.0.1]:38019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJvDA-0001Kd-9O for submit@debbugs.gnu.org; Mon, 14 Oct 2019 03:56:12 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:45643) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJvD6-0001KS-Rb for submit@debbugs.gnu.org; Mon, 14 Oct 2019 03:56:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49604) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJvD5-0001Tz-FC for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2019 03:56:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iJvD4-0003jg-0Z for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2019 03:56:07 -0400 Original-Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]:35039) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iJvD3-0003ir-RA for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2019 03:56:05 -0400 Original-Received: by mail-pf1-x42d.google.com with SMTP id 205so9941821pfw.2 for ; Mon, 14 Oct 2019 00:56:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Brku8lZfQ3IhGoYzOLPSgbKeJcauVC357SEKVeovlWI=; b=W94An974cQ2RwevZlAXDQzhSbJdkU/Hi6m46Sw+HqlkPnGF+/XLwgOwP9reZcJQfwf iDamqJqRNMkAqlJGJcx09UFYTrBB1Czr97Z2XVBEOhg0o8+nRXG+74wjjV5nQqf0A+SB UfdZa69TotDbq1FHzTdQQA+SACifqoZcA/VVDqtUrAVZUWzNj29MGzN+wx5ycrUtbtZm AvCIuKNPqQIP+Nd3z7QQA9fVjyhtuhQBNWTcfwMYrUJPxDC/wevLWmwYIvQ8UFWub++X YXn2TPUQmkbqrTGjkCiSbq68nYF4VUwTYFLV2EcnmmJ5Ujj6vxEqvrFWj6H3YkeEgZik VWVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Brku8lZfQ3IhGoYzOLPSgbKeJcauVC357SEKVeovlWI=; b=ACuJ/mrPfuDBwAXOEv5i/zBf2MwOR8XOLf/sreBzk0eMGkwnnGqV4bB/CF0ZAbRdPL JSEa8YDxaLnPRIqhWY0eyAjOj6/lZmQCr+ilr+hM9uw8IYeI8UtOjGLjC+HeXIlpsbwZ aVj+VERBhKbt5n+6PJmXOBq7h4adU21BnqthqXfBJQdA2fsd04hHePqv0aFDR+aO83T1 D2XxdLBSTonqBAasEjNhRFHyDSJHUM/mKMP3FH/HkOdi5WVSvfdJMG6OoRjnIjP10m/V PFNbruVCHsksz8vmdZ64W0/QjOhMVi1jt4AKYbzoz5jEgEh5vGT8maruT/EegWaK4idv djPA== X-Gm-Message-State: APjAAAUdwvbJIySNqtqANF5OExCIbP8ityW2yyiUkuQRNjKJ31Sm5ei4 skFbRCf9zqo8m/HI6dI4P6oUyoYc8XiuBjNjiTY7BIDj X-Google-Smtp-Source: APXvYqziMDmubaot1LIQaF/5b9LDs+yyeBpYVJAQ7uKYwjpvjC7/XbDc/Zt2dGU0Jv5SpVkQfdyteJ0LADy07bka5e0= X-Received: by 2002:a63:eb08:: with SMTP id t8mr10429783pgh.49.1571039764030; Mon, 14 Oct 2019 00:56:04 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:169239 Archived-At: --000000000000102a8b0594da33b4 Content-Type: text/plain; charset="UTF-8" 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. Let me be more precise. I ran the sexp below in the versions of Emacs that I have in my machine, (list emacs-version (save-window-excursion (shell) (buffer-name (current-buffer))) ) and collected the outputs, and got: ("24.5.1" "*shell*") ("25.1.1" "*shell*") ("26.3" "*shell*") ("27.0.50" "TODO") Here's the exact version of my "27.0.50". The output of PAGER=cat git log -1 --format=format:"%H%n%cd%n" was: 01ea96b5548a80e6aabc69428439113ce0a8c17e Mon Oct 14 08:47:02 2019 +0200 I don't know (yet) how to bisect versions to find exactly when the behavior changed, sorry... btw, this is a Debian box (on amd64). Cheers, Eduardo Ochs http://angg.twu.net/#eev --000000000000102a8b0594da33b4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
In many versions of Emacs the sexp below

=C2=A0 (sa= ve-window-excursion (shell) (buffer-name (current-buffer)))

returns = "*shell*", but in some recent versions it returns the name of
= the current buffer instead.

Let me be more precise. I ran the sexp b= elow in the versions of Emacs
that I have in my machine,

=C2=A0 (= list emacs-version
=C2=A0 =C2=A0 (save-window-excursion (shell) (buffer-= name (current-buffer)))
=C2=A0 =C2=A0 )

and collected the outputs= , and got:

=C2=A0 ("24.5.1" "*shell*")
=C2=A0= ("25.1.1" "*shell*")
=C2=A0 ("26.3" "= ;*shell*")
=C2=A0 ("27.0.50" "TODO")

Her= e's the exact version of my "27.0.50". The output of

= =C2=A0 PAGER=3Dcat git log -1 --format=3Dformat:"%H%n%cd%n"
was:

=C2=A0 01ea96b5548a80e6aabc69428439113ce0a8c17e
=C2=A0 Mon= Oct 14 08:47:02 2019 +0200

I don't know (yet) how to bisect ver= sions to find exactly when the
behavior changed, sorry... btw, this is a= Debian box (on amd64).

=C2=A0 Cheers,
=C2=A0 =C2=A0 Eduardo Ochs=
=C2=A0 =C2=A0 http://angg.twu.net/= #eev

--000000000000102a8b0594da33b4--