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#67521: 29.1; Describe with-current-buffer in more details Date: Thu, 30 Nov 2023 07:51:46 +0200 Message-ID: <83wmtz6b65.fsf@gnu.org> References: <87y1ehavq1.fsf@debian-hx90.lan> <83msuw7lqj.fsf@gnu.org> <87ttp4bj9t.fsf@debian-hx90.lan> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10779"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67521-done@debbugs.gnu.org To: Xiyue Deng Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 30 06:53:07 2023 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 1r8Zz0-0002Zj-OZ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 Nov 2023 06:53:06 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r8Zys-0007Ie-1T; Thu, 30 Nov 2023 00:52:58 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r8Zyo-0007ID-Db for bug-gnu-emacs@gnu.org; Thu, 30 Nov 2023 00:52:55 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r8Zyo-0002qv-5k for bug-gnu-emacs@gnu.org; Thu, 30 Nov 2023 00:52:54 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r8Zyv-0003nI-PP for bug-gnu-emacs@gnu.org; Thu, 30 Nov 2023 00:53:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Nov 2023 05:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67521 X-GNU-PR-Package: emacs Original-Received: via spool by 67521-done@debbugs.gnu.org id=D67521.170132353014509 (code D ref 67521); Thu, 30 Nov 2023 05:53:01 +0000 Original-Received: (at 67521-done) by debbugs.gnu.org; 30 Nov 2023 05:52:10 +0000 Original-Received: from localhost ([127.0.0.1]:51992 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r8Zy6-0003lx-1f for submit@debbugs.gnu.org; Thu, 30 Nov 2023 00:52:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33450) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r8Zy3-0003lk-Sp for 67521-done@debbugs.gnu.org; Thu, 30 Nov 2023 00:52:08 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r8Zxq-0002jn-EW; Thu, 30 Nov 2023 00:51:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=HzUE8wegWJoAcAuq7YoAdsF3H0ZHwkfNcTa40zeYxqQ=; b=oa7DzxIrJgG1 QpxrBG34pIhSHcP3kv8/WUhw6LxisVbFySW76AYNIMiRrKMvq32nDn41VS/xjRBlgpI1Dn7KgFp7B Y+c5V86xiYcIhlgFy0w1/TI/VB5xaPpCjJXvNaQnTJ+R3p2mL261hN9C3wtkYmeOevzsnRjjBj+7d kTLWhDZS8BjGyEbe5wIjc4sc9KGmULrAG7E7+bHsJJhwMhgFVk+cbnhs84Ps7GCcnid1vblDcZ16G A6J7CXJaQbowZGgQoqhWMAri3f+Ek5DjEGmVJu0ohi4V48nG1Ausylui8zaqqhletRnqw8jVADa7n gHLbtEaHwN1XZyjJs2XWng==; In-Reply-To: <87ttp4bj9t.fsf@debian-hx90.lan> (message from Xiyue Deng on Wed, 29 Nov 2023 08:45:34 -0800) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:275265 Archived-At: > From: Xiyue Deng > Cc: 67521-done@debbugs.gnu.org > Date: Wed, 29 Nov 2023 08:45:34 -0800 > > Eli Zaretskii writes: > > >> From: Xiyue Deng > >> Date: Tue, 28 Nov 2023 23:01:58 -0800 > >> > >> In section 5.1, "The Definition of `copy-to-buffer'" of "Introduction to > >> Emacs Lisp", when describing the implementation, the description of > >> function `with-current-buffer' is a little too succinct with a sentence > >> "Then, the `with-current-buffer 'function evaluates its body with that > >> buffer temporarily current." and another one in the parentheses > >> "`with-current-buffer' is a newer, and arguably easier, mechanism." > >> > >> AIUI the intro book is intended for people without programming > >> experience. While arguably these two sentences do describe the > >> `with-current-buffer' function, it would be better to expand a little > >> more on what it does after "with that buffer temporarily current", such > >> as it will switch back to the current buffer upon finishing the inner > >> operations, etc. > >> > >> Below is a proposed patch to expand the description a little. Thanks in > >> advance for considering! > > > > Thanks, installed on the emacs-29 branch, and closing the issue. > > Thanks Eli! Just wondering will this be installed on master also (with > your fix of course)? The release branch is periodically merged onto master, so yes, it will, in a few days.