From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#48294: Use 'with-current-buffer' byte-compiler warning seems wrong Date: Sun, 09 May 2021 21:24:41 +0300 Message-ID: <83im3r7ok6.fsf@gnu.org> References: <83zgx37uqm.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19690"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48294@debbugs.gnu.org To: Robert Weiner Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 09 20:25:51 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 1lfo7j-0004yM-4u for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 09 May 2021 20:25:51 +0200 Original-Received: from localhost ([::1]:33322 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfo7i-0002nu-5C for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 09 May 2021 14:25:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44176) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfo6x-0002nh-R1 for bug-gnu-emacs@gnu.org; Sun, 09 May 2021 14:25:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45048) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lfo6w-0003lS-0Z for bug-gnu-emacs@gnu.org; Sun, 09 May 2021 14:25:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lfo6v-0007dX-Re for bug-gnu-emacs@gnu.org; Sun, 09 May 2021 14:25:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 May 2021 18:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48294 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 48294-submit@debbugs.gnu.org id=B48294.162058468829333 (code B ref 48294); Sun, 09 May 2021 18:25:01 +0000 Original-Received: (at 48294) by debbugs.gnu.org; 9 May 2021 18:24:48 +0000 Original-Received: from localhost ([127.0.0.1]:56594 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfo6i-0007d2-0q for submit@debbugs.gnu.org; Sun, 09 May 2021 14:24:48 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfo6g-0007co-1D for 48294@debbugs.gnu.org; Sun, 09 May 2021 14:24:46 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39892) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfo6a-0003b9-Rj; Sun, 09 May 2021 14:24:40 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4662 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfo6a-0001Jn-Dp; Sun, 09 May 2021 14:24:40 -0400 In-Reply-To: (message from Robert Weiner on Sun, 9 May 2021 14:09:23 -0400) 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:206104 Archived-At: > From: Robert Weiner > Date: Sun, 9 May 2021 14:09:23 -0400 > Cc: 48294@debbugs.gnu.org > > Somtimes a nested function within the body of the with-current-buffer will change the buffer and move point in the original buffer and this may largely only be known at run-time. Then I'd use save-excursion outside of with-current-buffer.