From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: with-current-buffer Date: Mon, 11 Nov 2019 12:16:33 +0100 Message-ID: <87pnhy3bou.fsf@fastmail.fm> References: <64fa1379-950d-2d3c-1104-c8097425ebe6@easy-emacs.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="250245"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: mu4e 1.3.5; emacs 26.3 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 12:16:56 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 1iU7gl-0012xj-I9 for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Nov 2019 12:16:56 +0100 Original-Received: from localhost ([::1]:51110 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iU7gj-0000Je-SW for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Nov 2019 06:16:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55922) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iU7gV-0000IQ-8q for help-gnu-emacs@gnu.org; Mon, 11 Nov 2019 06:16:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iU7gU-0000lb-Aq for help-gnu-emacs@gnu.org; Mon, 11 Nov 2019 06:16:39 -0500 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:59515) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iU7gT-0000kK-WB for help-gnu-emacs@gnu.org; Mon, 11 Nov 2019 06:16:38 -0500 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 9AD8521B2C for ; Mon, 11 Nov 2019 06:16:35 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 11 Nov 2019 06:16:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= references:from:to:subject:in-reply-to:date:message-id :mime-version:content-type:content-transfer-encoding; s=fm1; bh= HZmGS5KS66iskRPJ1OgLR/XXUMxOcaaNl4kGSm38zuc=; b=qkDzE6xLfyv5pj0F a7v1e5PCCt4SJZsbgSRkiTiif3qHugQcUhzfFLM80D97kER6BKuPPrGPvgXfmasD fcYehQoRkM4kyutQ+9rZ84m9xuJY7+h4kyA2lXkK2uUlkVEHFjgjSfgMci+dRJeK gCJG8t0ZmZiPGqCj9q8CXSW0u8v9nfVnYBK+TGC1s5D15DtHAq1i4h9Z5bPyMUmv t+0nZrpFzysulSPvzv70xpb46vUbE7G/HeG8oJ004hN6uiQ6c2clMEbjqqG8Qceb QhJQQsnnmfL/9DCybNgMxi5ERzLF6riojpPoXJMLEvhKYGYGf74M7tYKRIeii72F b1v8SQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=HZmGS5KS66iskRPJ1OgLR/XXUMxOcaaNl4kGSm38z uc=; b=rDK1F8WVqEkbdOahD7tRGi20obId/9OU4aRafW6P8DnrOL7/gukKjEO9/ rfXfbqPaRmBHCGPCSAuYwKzHIPe1bR/iXb0TOfpkYHGj+bO3MV7Tv6esqccxs+1s B8ZYiUllS60RUx4AARCoO7b3N3oIYrWc6haYzV9iYxZiS+ho0rzyrDCd2OopT6zw pp22bYA6UfaiXr3Js2YtH/iQ88f5F4NfLuPn+OMEaAIPxkzWQyrurqIh3ma96kJe RJCWNJgV9WSQ7aiY+DmwC+x/2+XMRFo9iN5xVaXbRIcbUWfdP5e63/T0E8qCLQp8 BdstdREG49F7udh0gAfwEyke+CNGA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedruddvjedgvdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpehffgfhvffujgffkfggtgfgsehtqh ertddtreejnecuhfhrohhmpeflohhoshhtucfmrhgvmhgvrhhsuceojhhoohhsthhkrhgv mhgvrhhssehfrghsthhmrghilhdrfhhmqeenucfkphepleehrdeltddrvddtuddrvdelne curfgrrhgrmhepmhgrihhlfhhrohhmpehjohhoshhtkhhrvghmvghrshesfhgrshhtmhgr ihhlrdhfmhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Original-Received: from Swift.fastmail.com (ip5f5ac91d.dynamic.kabel-deutschland.de [95.90.201.29]) by mail.messagingengine.com (Postfix) with ESMTPA id 1620780063 for ; Mon, 11 Nov 2019 06:16:34 -0500 (EST) In-reply-to: <64fa1379-950d-2d3c-1104-c8097425ebe6@easy-emacs.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.111.4.26 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:121824 Archived-At: On Mon, Nov 11 2019, Andreas R=C3=B6hler wrote: > docstring of "with-current-buffer" says: > > "Execute the forms in BODY with BUFFER-OR-NAME temporarily=20 > current." > > However, seems the old buffer isn't stored, buffer-or-name=20 > specified here remain > current. Could you be more specific? `save-current-buffer` works fine for=20 me. > Also don't see inside the macro which way the old buffer should=20 > be restored: That's done by `save-current-buffer`. --=20 Joost Kremers Life has its moments