[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#8275: 24.0.50; Intro to Emacs Lisp Issue
From: |
Stefan Monnier |
Subject: |
bug#8275: 24.0.50; Intro to Emacs Lisp Issue |
Date: |
Sat, 19 Mar 2011 23:34:47 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> 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.
Stefan