[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#8275: 24.0.50; Intro to Emacs Lisp Issue
From: |
Stefan Kangas |
Subject: |
bug#8275: 24.0.50; Intro to Emacs Lisp Issue |
Date: |
Thu, 21 Oct 2021 12:42:54 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> Do you want to fix this, or shall I try? The problem is that
>> append-to-buffer now uses let* and with-current-buffer, so this might
>> break the flow of the text. At this point in the book, let* and
>> with-current-buffer are not yet introduced.
>
> Here are some thoughts:
> - I don't think it's of any importance that the example code be
> identical to the currently used code.
> - append-to-buffer might not be the best example since AFAICT copying
> text from one buffer to another is not a common operation and in most
> cases this is done via buffer-substring + insert (often with some
> processing on the string between the two) rather than with
> insert-buffer-substring which is a rarely used function.
> - yes, I think the text would benefit from some rethink to try and present
> with-current-buffer in preference to set-buffer, but it's not
> a simple fix.
I've now added the above comments to a comment in the file itself. If
anyone intends to review that section, they will find the comment and a
pointer to this bug report.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#8275: 24.0.50; Intro to Emacs Lisp Issue,
Stefan Kangas <=