From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.devel Subject: set-window-start in Elisp manual Date: Wed, 16 Jan 2008 23:52:49 +0100 Message-ID: <877ii9z8la.fsf@escher.local.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1200524058 26736 80.91.229.12 (16 Jan 2008 22:54:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Jan 2008 22:54:18 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 16 23:54:27 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JFH9F-0004VM-Em for ged-emacs-devel@m.gmane.org; Wed, 16 Jan 2008 23:54:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JFH8q-0004HO-Qf for ged-emacs-devel@m.gmane.org; Wed, 16 Jan 2008 17:53:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JFH84-0003t7-L1 for emacs-devel@gnu.org; Wed, 16 Jan 2008 17:53:04 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JFH83-0003rL-5K for emacs-devel@gnu.org; Wed, 16 Jan 2008 17:53:04 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JFH82-0003r6-Mp for emacs-devel@gnu.org; Wed, 16 Jan 2008 17:53:02 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JFH82-0000aC-85 for emacs-devel@gnu.org; Wed, 16 Jan 2008 17:53:02 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JFH7w-0004Bn-BO for emacs-devel@gnu.org; Wed, 16 Jan 2008 22:52:56 +0000 Original-Received: from i5387d6bc.versanet.de ([83.135.214.188]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Jan 2008 22:52:56 +0000 Original-Received: from Stephen.Berman by i5387d6bc.versanet.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Jan 2008 22:52:56 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 40 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: i5387d6bc.versanet.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:86997 Archived-At: Node Window Start of the Emacs Lisp manual give the following example of using set-window-start: ;; Here is what `foo' looks like before executing ;; the `set-window-start' expression. ---------- Buffer: foo ---------- -!-This is the contents of buffer foo. 2 3 4 5 6 ---------- Buffer: foo ---------- (set-window-start (selected-window) (1+ (window-start))) => 2 ;; Here is what `foo' looks like after executing ;; the `set-window-start' expression. ---------- Buffer: foo ---------- his is the contents of buffer foo. 2 3 -!-4 5 6 ---------- Buffer: foo ---------- When I try this (in GNU Emacs 23.0.50.2 (i686-pc-linux-gnu, GTK+ Version 2.12.0) of 2008-01-16 on escher, also with -Q), the sexp does eval to 2, but window-start and point remain at 1, and the buffer display does not change. Is the example wrong, or is there a bug in set-window-start, or am I misunderstanding the example? (If the latter, then I also do not understand how set-window-start is supposed to work, so in that case I would appreciate clarification.) Steve Berman