bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#8275: 24.0.50; Intro to Emacs Lisp Issue


From: Andreas Röhler
Subject: bug#8275: 24.0.50; Intro to Emacs Lisp Issue
Date: Sun, 20 Mar 2011 22:20:39 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9

Am 20.03.2011 04:34, schrieb Stefan Monnier:
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






just add:

"as GNU Emacs version 19 used it"

Cheers

Andreas





reply via email to

[Prev in Thread] Current Thread [Next in Thread]