unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Xiyue Deng <manphiz@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 67521-done@debbugs.gnu.org
Subject: bug#67521: 29.1; Describe with-current-buffer in more details
Date: Wed, 29 Nov 2023 22:18:24 -0800	[thread overview]
Message-ID: <87plzrbw7j.fsf@debian-hx90.lan> (raw)
In-Reply-To: <83wmtz6b65.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 30 Nov 2023 07:51:46 +0200")

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Xiyue Deng <manphiz@gmail.com>
>> Cc: 67521-done@debbugs.gnu.org
>> Date: Wed, 29 Nov 2023 08:45:34 -0800
>> 
>> Eli Zaretskii <eliz@gnu.org> writes:
>> 
>> >> From: Xiyue Deng <manphiz@gmail.com>
>> >> 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.

Ah didn't know that.  Thanks for clarifying!

-- 
Xiyue Deng





      reply	other threads:[~2023-11-30  6:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-29  7:01 bug#67521: 29.1; Describe with-current-buffer in more details Xiyue Deng
2023-11-29 13:05 ` Eli Zaretskii
2023-11-29 16:45   ` Xiyue Deng
2023-11-30  5:51     ` Eli Zaretskii
2023-11-30  6:18       ` Xiyue Deng [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87plzrbw7j.fsf@debian-hx90.lan \
    --to=manphiz@gmail.com \
    --cc=67521-done@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).