From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#8275: 24.0.50; Intro to Emacs Lisp Issue Date: Sat, 19 Mar 2011 23:34:47 -0400 Message-ID: References: <871v25d4zl.fsf@notengoamigos.org> <87zkoqwz4w.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1300592241 19252 80.91.229.12 (20 Mar 2011 03:37:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 20 Mar 2011 03:37:21 +0000 (UTC) Cc: 8275@debbugs.gnu.org, "Robert J. Chassell" , Jason Earl To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 20 04:37:12 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q19S4-0001uq-I5 for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Mar 2011 04:37:12 +0100 Original-Received: from localhost ([127.0.0.1]:36178 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q19S4-0007Gv-0h for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Mar 2011 23:37:12 -0400 Original-Received: from [140.186.70.92] (port=55734 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q19Rx-0007AR-EJ for bug-gnu-emacs@gnu.org; Sat, 19 Mar 2011 23:37:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q19Rw-0001mi-B8 for bug-gnu-emacs@gnu.org; Sat, 19 Mar 2011 23:37:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51401) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q19Rw-0001me-8L for bug-gnu-emacs@gnu.org; Sat, 19 Mar 2011 23:37:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Q19Py-0008LK-8r; Sat, 19 Mar 2011 23:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Mar 2011 03:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8275 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8275-submit@debbugs.gnu.org id=B8275.130059209732059 (code B ref 8275); Sun, 20 Mar 2011 03:35:02 +0000 Original-Received: (at 8275) by debbugs.gnu.org; 20 Mar 2011 03:34:57 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q19Ps-0008L2-Du for submit@debbugs.gnu.org; Sat, 19 Mar 2011 23:34:56 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q19Pq-0008Kq-2Z for 8275@debbugs.gnu.org; Sat, 19 Mar 2011 23:34:54 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEABgShU1Ld/X5/2dsb2JhbACldHiITbg2hWMElWk X-IronPort-AV: E=Sophos;i="4.63,213,1299474000"; d="scan'208";a="97266527" Original-Received: from 75-119-245-249.dsl.teksavvy.com (HELO pastel.home) ([75.119.245.249]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 19 Mar 2011 23:34:48 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id C0BB45914C; Sat, 19 Mar 2011 23:34:47 -0400 (EDT) In-Reply-To: <87zkoqwz4w.fsf@stupidchicken.com> (Chong Yidong's message of "Sat, 19 Mar 2011 17:58:55 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 19 Mar 2011 23:35:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:45182 Archived-At: > 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