all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* set-window-start in Elisp manual
@ 2008-01-16 22:52 Stephen Berman
  2008-01-17 13:11 ` martin rudalics
  2008-01-20  6:14 ` Richard Stallman
  0 siblings, 2 replies; 8+ messages in thread
From: Stephen Berman @ 2008-01-16 22:52 UTC (permalink / raw)
  To: emacs-devel

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-01-20  6:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-16 22:52 set-window-start in Elisp manual Stephen Berman
2008-01-17 13:11 ` 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

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.