#| -*-Scheme-*-
-$Id: buffer.scm,v 1.192 2005/03/31 19:00:03 cph Exp $
+$Id: buffer.scm,v 1.193 2005/11/06 16:16:48 cph Exp $
Copyright 1986,1989,1990,1991,1992,1993 Massachusetts Institute of Technology
Copyright 1994,1995,1996,1998,1999,2000 Massachusetts Institute of Technology
(define-integrable (%set-buffer-point! buffer mark)
(set-group-point! (buffer-group buffer) mark))
+(define-integrable (%set-buffer-point-index! buffer index)
+ (set-group-point-index! (buffer-group buffer) index))
+
(define-integrable (minibuffer? buffer)
(char=? (string-ref (buffer-name buffer) 0) #\Space))
#| -*-Scheme-*-
-$Id: bufwin.scm,v 1.313 2003/02/14 18:28:11 cph Exp $
+$Id: bufwin.scm,v 1.314 2005/11/06 16:16:55 cph Exp $
-Copyright 1986, 1989-2000, 2002 Massachusetts Institute of Technology
+Copyright 1987,1989,1990,1991,1992,1993 Massachusetts Institute of Technology
+Copyright 1994,1995,1996,1999,2000,2002 Massachusetts Institute of Technology
+Copyright 2005 Massachusetts Institute of Technology
This file is part of MIT/GNU Scheme.
(with-instance-variables buffer-window window (point*)
(set! point point*)))
-(define-integrable (%set-window-point-index! window index)
- (%set-window-point! window
- (make-permanent-mark (%window-group window)
- index
- #t)))
+(define (%set-window-point-index! window index)
+ (let ((point (%window-point window)))
+ (if point
+ (set-mark-index! point index)
+ (%set-window-point! window
+ (make-permanent-mark (%window-group window)
+ index
+ #t)))))
(define-integrable (%window-cursor-inferior window)
(with-instance-variables buffer-window window () cursor-inferior))
#| -*-Scheme-*-
-$Id: struct.scm,v 1.99 2005/03/31 18:55:57 cph Exp $
+$Id: struct.scm,v 1.100 2005/11/06 16:17:00 cph Exp $
Copyright 1985,1989,1990,1991,1992,1993 Massachusetts Institute of Technology
Copyright 1994,1999,2000,2001,2003,2005 Massachusetts Institute of Technology
(group-gap-start group))))
(define-integrable (set-group-point! group point)
- (set-group-%point! group (mark-left-inserting-copy point)))
+ (set-group-point-index! group (mark-index point)))
+
+(define-integrable (set-group-point-index! group index)
+ (set-mark-index! (group-point group) index))
(define (group-absolute-start group)
(make-temporary-mark group 0 #f))