From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.bugs Subject: bug#48535: 28.0.50; ff-find-other-file no longer sets current-buffer? Date: Thu, 20 May 2021 06:08:29 -0700 Message-ID: <86fsyhzh6a.fsf@stephe-leake.org> 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="27187"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (windows-nt) To: 48535@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 20 15:09:15 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 1ljiQJ-0006mE-Hh for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 May 2021 15:09:11 +0200 Original-Received: from localhost ([::1]:34456 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljiQI-0007Jl-JJ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 May 2021 09:09:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41788) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljiQA-0007HL-U0 for bug-gnu-emacs@gnu.org; Thu, 20 May 2021 09:09:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50060) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ljiQA-0001X5-Lb for bug-gnu-emacs@gnu.org; Thu, 20 May 2021 09:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ljiQA-0007Oh-Fg for bug-gnu-emacs@gnu.org; Thu, 20 May 2021 09:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Leake Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 May 2021 13:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48535 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.162151612728412 (code B ref -1); Thu, 20 May 2021 13:09:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 May 2021 13:08:47 +0000 Original-Received: from localhost ([127.0.0.1]:33373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljiPu-0007OC-JB for submit@debbugs.gnu.org; Thu, 20 May 2021 09:08:46 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:35898) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljiPq-0007O2-Mr for submit@debbugs.gnu.org; Thu, 20 May 2021 09:08:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljiPq-0007AP-Hu for bug-gnu-emacs@gnu.org; Thu, 20 May 2021 09:08:42 -0400 Original-Received: from gateway33.websitewelcome.com ([192.185.145.9]:33626) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljiPn-0001K3-Af for bug-gnu-emacs@gnu.org; Thu, 20 May 2021 09:08:42 -0400 Original-Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway33.websitewelcome.com (Postfix) with ESMTP id 0432D60DB7 for ; Thu, 20 May 2021 08:08:34 -0500 (CDT) Original-Received: from host2007.hostmonster.com ([67.20.76.71]) by cmsmtp with SMTP id jiPhlB05YAEP6jiPhllCkC; Thu, 20 May 2021 08:08:34 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=stephe-leake.org; s=default; h=Content-Type:MIME-Version:Message-ID:Date: Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=nOajX+UlfCq+d91V3hcePC5lTtTZ3/KBY1nCHTf5bSg=; b=mvSDAnnkaKX/S+4ZNVCbM6cmVx kMa65QgHvA05zIn545hLvhM+BlR9xVOhrURl7fAimbB0QjsMqKD/sK0xBR1pwD9VC1ZmMeffyShBw R6+CpDs8+UedmxEV1shTt++pGAVLhMngqgPUDGLXHqImrYFrbDrwwUrZhNRWY8mdVBUvD+FGxur6F +vpA3mXeLvMA+DU+vq5TXvCh07oLoaXwEHfBmhkdo9loBlMYsdong+g7ltmwPHv3H8zwJxFautIuc fk/Kb/KZa8t4wtijNSpxTKUjkpGucHI2Bevnzo2uGE2i6LWZc3mt6ZmcJFuld3HtiSTLS5UW3O55p PUzAs8rw==; Original-Received: from [76.77.182.20] (port=49836 helo=Takver4) by host2007.hostmonster.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ljiPh-001vfE-75 for bug-gnu-emacs@gnu.org; Thu, 20 May 2021 07:08:33 -0600 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host2007.hostmonster.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stephe-leake.org X-BWhitelist: no X-Source-IP: 76.77.182.20 X-Source-L: No X-Exim-ID: 1ljiPh-001vfE-75 X-Source-Sender: (Takver4) [76.77.182.20]:49836 X-Source-Auth: stephen_leake@stephe-leake.org X-Email-Count: 1 X-Source-Cap: c3RlcGhlbGU7c3RlcGhlbGU7aG9zdDIwMDcuaG9zdG1vbnN0ZXIuY29t X-Local-Domain: yes Received-SPF: neutral client-ip=192.185.145.9; envelope-from=stephen_leake@stephe-leake.org; helo=gateway33.websitewelcome.com X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_NEUTRAL=0.779 autolearn=no 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:206944 Archived-At: --=-=-= Content-Type: text/plain There is apparently some change in master relative to 27 in the way ff-find-other-file works. First the data from report-emacs-bug: In GNU Emacs 28.0.50 (build 1, x86_64-w64-mingw32) of 2021-05-19 built on TAKVER4 Repository revision: 68f5718c0a4393391ce3c4179e8ab1430e5b0119 Repository branch: master Windowing system distributor 'Microsoft Corp.', version 6.3.9600 System Description: Microsoft Windows 8.1 Pro (v6.3.0.9600.20018) Configured using: 'configure PKG_CONFIG_PATH=/mingw64/lib/pkgconfig:/mingw64/share/pkgconfig' Configured features: ACL DBUS GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS XPM ZLIB Important settings: value of $LC_CTYPE: en_US.UTF-8 value of $LANG: ENU locale-coding-system: cp1252 Major mode: C/*l Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils find-file cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cl-loaddefs cl-lib iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads w32notify dbusbind w32 lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 74450 8788) (symbols 48 8432 1) (strings 32 25401 1600) (string-bytes 1 930349) (vectors 16 15287) (vector-slots 8 197771 11492) (floats 8 29 48) (intervals 56 237 0) (buffers 992 12)) To reproduce: Copy the two attached files into one directory. Visit a_file.h, position point after the last line (an elisp sexp in a C comment), type C-x C-e. A new window opens visiting a_file.c, that buffer is current, as expected. Now look at the message displayed; it is the result of (current-buffer). In emacs 27, it is #, as expected. But in emacs master, it is #. Apparently (ff-find-other-file) returns to the current buffer after opening the other window, even though the other buffer is current after the progn finishes? -- -- Stephe --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=a_file.h Content-Transfer-Encoding: base64 Ly8ganVzdCBhIGZpbGUgd2l0aCBhIC5oIGV4dGVuc2lvbgoKLy8gKHByb2duIChmZi1maW5kLW90 aGVyLWZpbGUgdCkoY3VycmVudC1idWZmZXIpKQo= --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=a_file.c Content-Transfer-Encoding: base64 Ly8ganVzdCBhIGZpbGUgd2l0aCBhIC5jIGV4dGVuc2lvbgovLyAocHJvZ24gKGZmLWZpbmQtb3Ro ZXItZmlsZSB0KShjdXJyZW50LWJ1ZmZlcikpCg== --=-=-=--