it to the edwin package.
;;; -*-Scheme-*-
;;;
-;;; $Id: debug.scm,v 1.29 1994/10/11 23:08:21 cph Exp $
+;;; $Id: debug.scm,v 1.30 1994/10/11 23:09:58 cph Exp $
;;;
;;; Copyright (c) 1992-94 Massachusetts Institute of Technology
;;;
(highlight-region-excluding-indentation start-mark end-mark))
(if start-mark (mark-temporary! start-mark))
(if end-mark (mark-temporary! end-mark))))
-
-(define (highlight-region-excluding-indentation region highlight)
- (let ((start (region-start region))
- (end (region-end region)))
- (let loop ((start start))
- (let ((start (horizontal-space-end start))
- (lend (line-end start 0)))
- (if (mark<= lend end)
- (begin
- (let ((end (horizontal-space-start lend)))
- (if (mark< start end)
- (highlight-region (make-region start end) highlight)))
- (if (not (group-end? lend))
- (loop (mark1+ lend))))
- (let ((end (horizontal-space-start end)))
- (if (mark< start end)
- (highlight-region (make-region start end) highlight))))))))
\f
;;;; Browsers
#| -*-Scheme-*-
-$Id: edwin.pkg,v 1.150 1994/09/08 21:36:46 adams Exp $
+$Id: edwin.pkg,v 1.151 1994/10/11 23:10:21 cph Exp $
Copyright (c) 1989-1994 Massachusetts Institute of Technology
get-text-properties
get-text-property
highlight-region
+ highlight-region-excluding-indentation
highlight-subgroup
local-comtabs
next-property-change
;;; -*-Scheme-*-
;;;
-;;; $Id: txtprp.scm,v 1.14 1993/10/12 00:18:15 cph Exp $
+;;; $Id: txtprp.scm,v 1.15 1994/10/11 23:10:12 cph Exp $
;;;
;;; Copyright (c) 1993 Massachusetts Institute of Technology
;;;
(region-end-index region)
highlight))
+(define (highlight-region-excluding-indentation region highlight)
+ (let ((start (region-start region))
+ (end (region-end region)))
+ (let loop ((start start))
+ (let ((start (horizontal-space-end start))
+ (lend (line-end start 0)))
+ (if (mark<= lend end)
+ (begin
+ (let ((end (horizontal-space-start lend)))
+ (if (mark< start end)
+ (highlight-region (make-region start end) highlight)))
+ (if (not (group-end? lend))
+ (loop (mark1+ lend))))
+ (let ((end (horizontal-space-start end)))
+ (if (mark< start end)
+ (highlight-region (make-region start end) highlight))))))))
+
(define (local-comtabs mark)
(get-text-property (mark-group mark) (mark-index mark) 'COMMAND-TABLE #f))