From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Xiyue Deng Newsgroups: gmane.emacs.bugs Subject: bug#67521: 29.1; Describe with-current-buffer in more details Date: Wed, 29 Nov 2023 08:45:34 -0800 Message-ID: <87ttp4bj9t.fsf@debian-hx90.lan> References: <87y1ehavq1.fsf@debian-hx90.lan> <83msuw7lqj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16824"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 67521-done@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 29 17:46:08 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 1r8NhO-00044y-Sr for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Nov 2023 17:46:06 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r8NhD-0007Wc-UF; Wed, 29 Nov 2023 11:45:56 -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 1r8NhC-0007Vn-DQ for bug-gnu-emacs@gnu.org; Wed, 29 Nov 2023 11:45:54 -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 1r8NhC-000688-5O for bug-gnu-emacs@gnu.org; Wed, 29 Nov 2023 11:45:54 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r8NhJ-0001Hv-O0 for bug-gnu-emacs@gnu.org; Wed, 29 Nov 2023 11:46:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Xiyue Deng Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Nov 2023 16:46: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.17012763554938 (code D ref 67521); Wed, 29 Nov 2023 16:46:01 +0000 Original-Received: (at 67521-done) by debbugs.gnu.org; 29 Nov 2023 16:45:55 +0000 Original-Received: from localhost ([127.0.0.1]:50920 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r8NhA-0001HX-OI for submit@debbugs.gnu.org; Wed, 29 Nov 2023 11:45:55 -0500 Original-Received: from mail-oi1-x234.google.com ([2607:f8b0:4864:20::234]:55539) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r8Nh7-0001HJ-Kx for 67521-done@debbugs.gnu.org; Wed, 29 Nov 2023 11:45:50 -0500 Original-Received: by mail-oi1-x234.google.com with SMTP id 5614622812f47-3b898c9b4cbso368342b6e.2 for <67521-done@debbugs.gnu.org>; Wed, 29 Nov 2023 08:45:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701276336; x=1701881136; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=C0TzyN3iV4hyhLzUwLrmUJUSxa+w2bFJAL+wHxxVS38=; b=OhWyCSbi+oMJ4br1kLJ2af1TZPozuvAPa1FF5QpoEoLTCAcsvAWLRmBKwCI6WPp2ib gey6GoVAlb+19YwyjMd4ljLaJW/QGPlf751/S1PHC9PBdIThhBbInCWenii18ygS+puI T+aJ5WJo12cbgDfx1ZcTIEOtMPI25Y9nJlssVmfD9NB7p9Z2goODDdwBveEwb9ThDQI/ W3OWv7ZDKvcRN4b7r2UVRV29DYUVC1sKSNqu72/RhN2X4LuWOupL7vSzfW/Etf2XolAk BNj1d0CNNJWETMOi8xHyGKFUKGNpLvY3Yw/SPj5GQozH7cHJ/QL+h4dapz+r2bK+buNy E+3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701276336; x=1701881136; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=C0TzyN3iV4hyhLzUwLrmUJUSxa+w2bFJAL+wHxxVS38=; b=upiAmtggmQsMYeUEVNdzT6qjtQZy3JU3gwwieqkUa86S8OATQfohDcREAUC4t2oGT5 UzOzMIr4u1lsy0nc7M0fNJeBdhj4+wQwz5QxhljtlQtYYO/oQncY7W72Zvota/01O92w zfVZsdq1SQFK0C7iQttjO8avguy2xqBtK3aAfvJZjp0py1IqDP3ThMoI7kU2gwfyv9ok GfG8b1Iq4g217++xEerzdLq/jmpNJGAtW/09ey1HN0Du6pVhbPDB7K07Geas9Ya4yQAm 92ifeIWI7r3vQu23vjYh5uQ8S/UDTZYuOroPNirwJb4ZMF7xzU8EKNk9gCB6iZe3PU47 J5Xw== X-Gm-Message-State: AOJu0YwZPd2+nzYxA8I/LIV8aQ1TJz4VWwMQkGIC+PRx+Y3tDzWlowEy 8k/JZwIIq+w+O5GdMz3jpbkkGBnZKGg= X-Google-Smtp-Source: AGHT+IEfxVCs7zyU+6/glsACBhKZMeToLJoEY8IymPoMG60YNbHSHHMCc4dDxKN5y7LTdDWfk/lR2Q== X-Received: by 2002:a05:6808:2088:b0:3b8:5e81:bc81 with SMTP id s8-20020a056808208800b003b85e81bc81mr14867581oiw.15.1701276335916; Wed, 29 Nov 2023 08:45:35 -0800 (PST) Original-Received: from debian-hx90 (2603-8000-a400-0cdc-840b-1d34-253d-fa69.res6.spectrum.com. [2603:8000:a400:cdc:840b:1d34:253d:fa69]) by smtp.gmail.com with ESMTPSA id f35-20020a631023000000b005ac384b71cbsm11169912pgl.60.2023.11.29.08.45.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 08:45:35 -0800 (PST) In-Reply-To: <83msuw7lqj.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 29 Nov 2023 15:05:56 +0200") 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:275249 Archived-At: 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)? -- Xiyue Deng