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: Wed, 29 Nov 2023 15:05:56 +0200 Message-ID: <83msuw7lqj.fsf@gnu.org> References: <87y1ehavq1.fsf@debian-hx90.lan> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15688"; 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 Wed Nov 29 14:07:24 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 1r8KHj-0003u3-CM for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Nov 2023 14:07:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r8KHJ-0001tv-UE; Wed, 29 Nov 2023 08:06:57 -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 1r8KHH-0001tB-9O for bug-gnu-emacs@gnu.org; Wed, 29 Nov 2023 08:06: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 1r8KHG-0001KI-TR for bug-gnu-emacs@gnu.org; Wed, 29 Nov 2023 08:06:54 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r8KHO-0003TX-4L for bug-gnu-emacs@gnu.org; Wed, 29 Nov 2023 08:07:02 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Nov 2023 13:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 67521 X-GNU-PR-Package: emacs Mail-Followup-To: 67521@debbugs.gnu.org, eliz@gnu.org, manphiz@gmail.com Original-Received: via spool by 67521-done@debbugs.gnu.org id=D67521.170126318213298 (code D ref 67521); Wed, 29 Nov 2023 13:07:01 +0000 Original-Received: (at 67521-done) by debbugs.gnu.org; 29 Nov 2023 13:06:22 +0000 Original-Received: from localhost ([127.0.0.1]:49088 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r8KGk-0003SQ-Fx for submit@debbugs.gnu.org; Wed, 29 Nov 2023 08:06:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r8KGi-0003SE-J5 for 67521-done@debbugs.gnu.org; Wed, 29 Nov 2023 08:06:21 -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 1r8KGU-0001CK-Fn; Wed, 29 Nov 2023 08:06:06 -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=ES8H2+6VglZnnKlNElPe9ACLh7FH1GEoFsu33gy1Thc=; b=BMPRo/MiktLG E9Fozoeg/erDgibNIc4+phxICPc92imktsOQfrQT8NiTmN0mNun2aioKaYaUJPe6G/8lzd7eTsEfR 8uMSuwIHr+UGziTu5BJZELAgRt0twXNeRX7tYzIiP/gkCC4fj1kmD9EuCWRIBQJ7tXwRTgOEOfzsL PtBqgPEmQKO7Et9qHEyyyEiNEMR3Tt/zBNdX9ljAEuAf/7M2KcosMNHXDsbYAxMoffnrPwdxrJ1zi VOGqaHW4yjqLcW8SgUZTvf8iAsNli+NUWRDBrJSL4btsKYpjvm+7wNkUO0bnFrz1ySyI9L77tZo/J CHzZ8nKEUvw+nokXJ2fcZQ==; In-Reply-To: <87y1ehavq1.fsf@debian-hx90.lan> (message from Xiyue Deng on Tue, 28 Nov 2023 23:01:58 -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:275219 Archived-At: > 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.