From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: with-current-buffer Date: Mon, 11 Nov 2019 10:04:59 +0100 Message-ID: <20191111090459.GB15847@tuxteam.de> References: <64fa1379-950d-2d3c-1104-c8097425ebe6@easy-emacs.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SkvwRMAIpAhPCcCJ" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="207781"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.5.21 (2010-09-15) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 11 10:05:41 2019 Return-path: Envelope-to: geh-help-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 1iU5dl-000rsT-8p for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Nov 2019 10:05:41 +0100 Original-Received: from localhost ([::1]:50090 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iU5di-0005Id-9N for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Nov 2019 04:05:39 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37739) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iU5dE-0005FW-PJ for help-gnu-emacs@gnu.org; Mon, 11 Nov 2019 04:05:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iU5dD-0005ly-EN for help-gnu-emacs@gnu.org; Mon, 11 Nov 2019 04:05:08 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]:52640) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iU5dC-0005iX-Uv for help-gnu-emacs@gnu.org; Mon, 11 Nov 2019 04:05:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:Date; bh=1SulROnRE23Wq0NSQoceQ+ROTGJfJXpWc4t+WUgpm+o=; b=bmuQz27M/wmX0qNDNXjoakofToxRcl1x7uqDz5PMiJZhOjYVScdoRrewbz/JfzO1UkcBu8C9h2HlIJvOvYuVgXVtopgUdRTFZwGCHCSBdgidNBE7SKuoPtRB1crI366e23vQ0M/lXGaPTRcX5xJ1rErdkFGl+Ez4T4WnUFzihUcRO/unXSMsuSuX+WeeXvGwt4FRscnM0zFi+xur6VQYunuYSr6VijndxVWw7+1vdZx57UNSOTq0/el0S79AaqSnW+izWwo2lX4pRBUQowQ0v+MWkWZWQgcm+w/viitpYy4bK4llwXpdMTeKSgh6fX4JSz9ZieqOhREBC7K/20J96A==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1iU5d5-0004Ka-Az for help-gnu-emacs@gnu.org; Mon, 11 Nov 2019 10:04:59 +0100 Content-Disposition: inline In-Reply-To: <64fa1379-950d-2d3c-1104-c8097425ebe6@easy-emacs.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 5.199.139.25 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121821 Archived-At: --SkvwRMAIpAhPCcCJ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 11, 2019 at 09:31:08AM +0100, Andreas R=C3=B6hler wrote: > Hi, >=20 > docstring of "with-current-buffer" says: >=20 > "Execute the forms in BODY with BUFFER-OR-NAME temporarily current." >=20 > However, seems the old buffer isn't stored, buffer-or-name specified > here remain current. >=20 > Also don't see inside the macro which way the old buffer should be restor= ed: This is the job of save-current-buffer, no? Cheers -- tom=C3=A1s --SkvwRMAIpAhPCcCJ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAl3JJDsACgkQBcgs9XrR2kbNIgCfSGE+fEFvuSm3rq029j7qx2zR nY0AnRa5PpoAxmmXPOm83TrKEGgCGnmd =D4t+ -----END PGP SIGNATURE----- --SkvwRMAIpAhPCcCJ--