[climacs-devel] Re: Point - buffer or pane?
Robert Strandh
strandh at labri.fr
Mon May 9 14:49:17 UTC 2005
John Q Splittist writes:
> Herewith a patch adding a point slot to climacs-buffer (initialized from
> low-mark). When a pane is created, or gets a new buffer, the pane's
> point slot is cloned from the buffer's point. When a buffer is buried,
> the buffer's point is cloned from the pane's point. When a pane is
> split, the buffer's point is cloned from the existing pane's point so
> that the new pane is initialized with the existing point.
>
> This has the effect that a buffer keeps its point when buried and
> unburied (ie. you can C-x b in peace), but different panes on the same
> buffer have their own independent point (ie. you can C-x [23] in peace).
Thanks.
You could also setf the offset of one from the other instead of
cloning. This will preserve identity, in case that is important to
someone.
Take care,
--
Robert Strandh
---------------------------------------------------------------------
Greenspun's Tenth Rule of Programming: any sufficiently complicated C
or Fortran program contains an ad hoc informally-specified bug-ridden
slow implementation of half of Common Lisp.
---------------------------------------------------------------------
More information about the climacs-devel
mailing list