~ubuntu-branches/ubuntu/intrepid/mit-scheme/intrepid-updates

« back to all changes in this revision

Viewing changes to src/edwin/intmod.scm

  • Committer: Bazaar Package Importer
  • Author(s): Chris Hanson
  • Date: 2005-01-18 00:33:57 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050118003357-pv3i8iqlm5m80tl5
Tags: 7.7.90-5
* Add "libx11-dev" to build-depends.  (closes: Bug#290845)
* Fix debian/control and debian/menu to eliminate some lintian errors
  and warnings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
;;; -*-Scheme-*-
2
 
;;;
3
 
;;; $Id: intmod.scm,v 1.116 2002/02/13 01:05:37 cph Exp $
4
 
;;;
5
 
;;; Copyright (c) 1986, 1989-2002 Massachusetts Institute of Technology
6
 
;;;
7
 
;;; This program is free software; you can redistribute it and/or
8
 
;;; modify it under the terms of the GNU General Public License as
9
 
;;; published by the Free Software Foundation; either version 2 of the
10
 
;;; License, or (at your option) any later version.
11
 
;;;
12
 
;;; This program is distributed in the hope that it will be useful,
13
 
;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
 
;;; General Public License for more details.
16
 
;;;
17
 
;;; You should have received a copy of the GNU General Public License
18
 
;;; along with this program; if not, write to the Free Software
19
 
;;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
20
 
;;; 02111-1307, USA.
 
1
#| -*-Scheme-*-
 
2
 
 
3
$Id: intmod.scm,v 1.119 2003/02/14 18:28:12 cph Exp $
 
4
 
 
5
Copyright 1986,1989,1991,1992,1993,1999 Massachusetts Institute of Technology
 
6
Copyright 2000,2001,2002,2003 Massachusetts Institute of Technology
 
7
 
 
8
This file is part of MIT/GNU Scheme.
 
9
 
 
10
MIT/GNU Scheme is free software; you can redistribute it and/or modify
 
11
it under the terms of the GNU General Public License as published by
 
12
the Free Software Foundation; either version 2 of the License, or (at
 
13
your option) any later version.
 
14
 
 
15
MIT/GNU Scheme is distributed in the hope that it will be useful, but
 
16
WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
18
General Public License for more details.
 
19
 
 
20
You should have received a copy of the GNU General Public License
 
21
along with MIT/GNU Scheme; if not, write to the Free Software
 
22
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
 
23
USA.
 
24
 
 
25
|#
21
26
 
22
27
;;;; Inferior REPL Mode
23
28
;;; Package: (edwin inferior-repl)
381
386
                           (loop))))))
382
387
              cmdl-interrupt/abort-top-level))
383
388
            ((PROMPT)
384
 
             (if (and (ref-variable debug-on-evaluation-error)
385
 
                      (let ((start? (ref-variable debugger-start-on-error?)))
386
 
                        (if (eq? 'ASK start?)
387
 
                            (let loop ()
388
 
                              (fresh-line port)
389
 
                              (write-string ";Start debugger? (y or n): " port)
390
 
                              (let ((char
391
 
                                     (read-command-char port
392
 
                                                        (cmdl/level repl))))
393
 
                                (write-char char port)
394
 
                                (cond ((or (char-ci=? char #\y)
395
 
                                           (char-ci=? char #\space))
396
 
                                       (fresh-line port)
397
 
                                       (write-string ";Starting debugger..."
398
 
                                                     port)
399
 
                                       #t)
400
 
                                      ((or (char-ci=? char #\n)
401
 
                                           (char-ci=? char #\rubout))
402
 
                                       #f)
403
 
                                      (else
404
 
                                       (beep port)
405
 
                                       (loop)))))
406
 
                            start?)))
 
389
             (if (let ((start? (ref-variable debug-on-evaluation-error #f)))
 
390
                   (if (eq? 'ASK start?)
 
391
                       (let loop ()
 
392
                         (fresh-line port)
 
393
                         (write-string ";Start debugger? (y or n): " port)
 
394
                         (let ((char
 
395
                                (read-command-char port
 
396
                                                   (cmdl/level repl))))
 
397
                           (write-char char port)
 
398
                           (cond ((or (char-ci=? char #\y)
 
399
                                      (char-ci=? char #\space))
 
400
                                  (fresh-line port)
 
401
                                  (write-string ";Starting debugger..."
 
402
                                                port)
 
403
                                  #t)
 
404
                                 ((or (char-ci=? char #\n)
 
405
                                      (char-ci=? char #\rubout))
 
406
                                  #f)
 
407
                                 (else
 
408
                                  (beep port)
 
409
                                  (loop)))))
 
410
                       start?))
407
411
                 (start-debugger))))))))
408
412
 
409
413
;;;; Modes