GNU bug report logs - #67521
29.1; Describe with-current-buffer in more details

Previous Next

Package: emacs;

Reported by: Xiyue Deng <manphiz <at> gmail.com>

Date: Wed, 29 Nov 2023 07:03:01 UTC

Severity: normal

Found in version 29.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Xiyue Deng <manphiz <at> gmail.com>
Cc: 67521-done <at> debbugs.gnu.org
Subject: bug#67521: 29.1; Describe with-current-buffer in more details
Date: Thu, 30 Nov 2023 07:51:46 +0200
> From: Xiyue Deng <manphiz <at> gmail.com>
> Cc: 67521-done <at> debbugs.gnu.org
> Date: Wed, 29 Nov 2023 08:45:34 -0800
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> >> From: Xiyue Deng <manphiz <at> 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.




This bug report was last modified 1 year and 174 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.