unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stephen Berman <Stephen.Berman@gmx.net>
To: emacs-devel@gnu.org
Subject: set-window-start in Elisp manual
Date: Wed, 16 Jan 2008 23:52:49 +0100	[thread overview]
Message-ID: <877ii9z8la.fsf@escher.local.home> (raw)

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

             reply	other threads:[~2008-01-16 22:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-16 22:52 Stephen Berman [this message]
2008-01-17 13:11 ` set-window-start in Elisp manual martin rudalics
2008-01-17 14:29   ` Johan Bockgård
2008-01-17 15:33     ` Stephen Berman
2008-01-17 15:40       ` Johan Bockgård
2008-01-17 16:21         ` Stephen Berman
2008-01-18 14:03           ` Johan Bockgård
2008-01-20  6:14 ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877ii9z8la.fsf@escher.local.home \
    --to=stephen.berman@gmx.net \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).