From: Chris Hanson Date: Fri, 2 Jun 2000 17:29:10 +0000 (+0000) Subject: Eliminate usage of MARK-PERMANENT!. X-Git-Tag: 20090517-FFI~3624 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=965993d5014085459cd61066c8ae37f935b1dc55;p=mit-scheme.git Eliminate usage of MARK-PERMANENT!. --- diff --git a/v7/src/edwin/things.scm b/v7/src/edwin/things.scm index 53f8035a4..c2a8acdbc 100644 --- a/v7/src/edwin/things.scm +++ b/v7/src/edwin/things.scm @@ -1,6 +1,6 @@ ;;; -*-Scheme-*- ;;; -;;; $Id: things.scm,v 1.87 2000/04/04 16:52:14 cph Exp $ +;;; $Id: things.scm,v 1.88 2000/06/02 17:29:10 cph Exp $ ;;; ;;; Copyright (c) 1985, 1989-2000 Massachusetts Institute of Technology ;;; @@ -282,10 +282,11 @@ (if (not (= column (mark-column point))) (change-column column point)))) -(define (change-column column point) - (let ((point (mark-permanent! point))) - (delete-horizontal-space point) - (insert-horizontal-space column point))) +(define (change-column column mark) + (let ((mark (mark-left-inserting-copy mark))) + (delete-horizontal-space mark) + (insert-horizontal-space column mark) + (mark-temporary! mark))) ;;;; Lines