emacs-diffs
[Top][All Lists]
Advanced

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

master 6352e0a: Add comment on reworking a section in emacs-lisp-intro.t


From: Stefan Kangas
Subject: master 6352e0a: Add comment on reworking a section in emacs-lisp-intro.texi
Date: Thu, 21 Oct 2021 15:25:10 -0400 (EDT)

branch: master
commit 6352e0a55587e15fa3bef878a329c1a148749cfe
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>

    Add comment on reworking a section in emacs-lisp-intro.texi
    
    * doc/lispintro/emacs-lisp-intro.texi (Body of mark-whole-buffer):
    Add comment about how one could rework this section.
---
 doc/lispintro/emacs-lisp-intro.texi | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/doc/lispintro/emacs-lisp-intro.texi 
b/doc/lispintro/emacs-lisp-intro.texi
index 2a990ca..5ce46ea 100644
--- a/doc/lispintro/emacs-lisp-intro.texi
+++ b/doc/lispintro/emacs-lisp-intro.texi
@@ -4893,6 +4893,23 @@ region.
 
 @c FIXME: the definition of append-to-buffer has been changed (in
 @c 2010-03-30).
+@c In Bug#8275, Stefan Monner <monnier@iro.umontreal.ca> writes:
+@c >> Do you want to fix this, or shall I try?  The problem is that
+@c >> append-to-buffer now uses let* and with-current-buffer, so this might
+@c >> break the flow of the text.  At this point in the book, let* and
+@c >> with-current-buffer are not yet introduced.
+@c >
+@c > Here are some thoughts:
+@c > - I don't think it's of any importance that the example code be
+@c >   identical to the currently used code.
+@c > - append-to-buffer might not be the best example since AFAICT copying
+@c >   text from one buffer to another is not a common operation and in most
+@c >   cases this is done via buffer-substring + insert (often with some
+@c >   processing on the string between the two) rather than with
+@c >   insert-buffer-substring which is a rarely used function.
+@c > - yes, I think the text would benefit from some rethink to try and present
+@c >   with-current-buffer in preference to set-buffer, but it's not
+@c >   a simple fix.
 @node append-to-buffer
 @section The Definition of @code{append-to-buffer}
 @findex append-to-buffer



reply via email to

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