Fix pagination.
authorChris Hanson <org/chris-hanson/cph>
Tue, 10 Aug 1993 06:50:48 +0000 (06:50 +0000)
committerChris Hanson <org/chris-hanson/cph>
Tue, 10 Aug 1993 06:50:48 +0000 (06:50 +0000)
v7/src/edwin/dosshell.scm
v7/src/edwin/edtstr.scm
v7/src/edwin/filcom.scm
v7/src/edwin/fileio.scm
v7/src/edwin/info.scm
v7/src/edwin/iserch.scm
v7/src/edwin/loadef.scm
v7/src/edwin/macros.scm
v7/src/edwin/modlin.scm
v7/src/edwin/motcom.scm
v7/src/edwin/notify.scm

index d7dced68795c82bb77a87bde178e9a0f09716ea8..b250c029018dbc37cb48725cc05243456f8666c7 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: dosshell.scm,v 1.2 1993/02/25 02:56:29 gjr Exp $
+$Id: dosshell.scm,v 1.3 1993/08/10 06:38:22 cph Exp $
 
 Copyright (c) 1992-1993 Massachusetts Institute of Technology
 
@@ -94,7 +94,7 @@ Customization: Entry to this mode runs the hook pseudo-shell-mode-hook."
 
 ;; (define-key 'pseudo-shell #\tab 'comint-dynamic-complete)
 ;; (define-key 'pseudo-shell #\M-? 'comint-dynamic-list-completions)
-
+\f
 (define-command shell
   "Run an inferior pseudo shell, with I/O through buffer *shell*.
 With prefix argument, unconditionally create a new buffer.
index 406bb7a9d635b60a391cf568c2dcb179f7f3b59f..d30bedd3983094ac598797abeba9c0a01734c754 100644 (file)
@@ -1,8 +1,8 @@
 ;;; -*-Scheme-*-
 ;;;
-;;;    $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/edtstr.scm,v 1.21 1992/02/13 23:35:07 cph Exp $
+;;;    $Id: edtstr.scm,v 1.22 1993/08/10 06:39:51 cph Exp $
 ;;;
-;;;    Copyright (c) 1989-92 Massachusetts Institute of Technology
+;;;    Copyright (c) 1989-93 Massachusetts Institute of Technology
 ;;;
 ;;;    This material was developed by the Scheme project at the
 ;;;    Massachusetts Institute of Technology, Department of
     (set-editor-select-time! current-editor (1+ time))
     time))
 \f
+;;;; Buttons
+
 (define-structure (button-event (conc-name button-event/))
   (window false read-only true)
   (x false read-only true)
 
 (define button-record-type
   (make-record-type 'BUTTON '(NUMBER DOWN?)))
-
+\f
 (define make-down-button)
 (define make-up-button)
 (let ((%make-button
index 86a54c042dd0e937ca8a3ac4c1beffb54c8fb405..726e2d109831d4ba809b77619c61072b0586d1c4 100644 (file)
@@ -1,8 +1,8 @@
 ;;; -*-Scheme-*-
 ;;;
-;;;    $Id: filcom.scm,v 1.174 1993/01/12 10:45:46 cph Exp $
+;;;    $Id: filcom.scm,v 1.175 1993/08/10 06:40:36 cph Exp $
 ;;;
-;;;    Copyright (c) 1986, 1989-92 Massachusetts Institute of Technology
+;;;    Copyright (c) 1986, 1989-93 Massachusetts Institute of Technology
 ;;;
 ;;;    This material was developed by the Scheme project at the
 ;;;    Massachusetts Institute of Technology, Department of
@@ -734,5 +734,4 @@ If a file with the new name already exists, confirmation is requested first."
   (sort filenames string<?))
 
 (define-integrable (completion-ignore-filename? filename)
-  (os/completion-ignore-filename? filename))
-
+  (os/completion-ignore-filename? filename))
\ No newline at end of file
index 1ad9e36946d49456d4c0850310acbbdb10870852..110f2248a9b4b64b8b8d3082bc5f7ae0740bdfbc 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;;    $Id: fileio.scm,v 1.117 1993/04/27 09:18:34 cph Exp $
+;;;    $Id: fileio.scm,v 1.118 1993/08/10 06:41:16 cph Exp $
 ;;;
 ;;;    Copyright (c) 1986, 1989-1993 Massachusetts Institute of Technology
 ;;;
@@ -774,7 +774,8 @@ Otherwise, a message is written both before and after long file writes."
                                                        old 1 olen))))
                  (let ((end (fix:+ end delta)))
                    (replace! next)
-                   (loop (group-find-next-char group (fix:+ next* delta) end match)
+                   (loop (group-find-next-char group (fix:+ next* delta) end
+                                               match)
                          end))
                  (loop (group-find-next-char group next* end match)
                        end))))))))
\ No newline at end of file
index 68ef077fc127628cbc3d75e4ed3ade80ed0d8d70..b20142c31b3831a233fa4f1471368b295520e893 100644 (file)
@@ -1,8 +1,8 @@
 ;;; -*-Scheme-*-
 ;;;
-;;;    $Id: info.scm,v 1.115 1992/11/17 17:38:34 cph Exp $
+;;;    $Id: info.scm,v 1.116 1993/08/10 06:43:44 cph Exp $
 ;;;
-;;;    Copyright (c) 1986, 1989-92 Massachusetts Institute of Technology
+;;;    Copyright (c) 1986, 1989-93 Massachusetts Institute of Technology
 ;;;
 ;;;    This material was developed by the Scheme project at the
 ;;;    Massachusetts Institute of Technology, Department of
@@ -683,7 +683,8 @@ The name may be an abbreviation of the reference name."
                       (ref-variable info-current-node)
                       (mark-index (current-point))))
       ;; Switch files if necessary.
-      (if (and pathname (not (equal? pathname (ref-variable info-current-file))))
+      (if (and pathname
+              (not (equal? pathname (ref-variable info-current-file))))
          (begin
            (read-buffer buffer pathname true)
            (if (not (eq? (buffer-major-mode buffer) (ref-mode-object info)))
@@ -705,8 +706,7 @@ The name may be an abbreviation of the reference name."
           (let ((end (buffer-end buffer)))
             (let loop ((start (node-search-start nodename)))
               (let ((node (next-node start end)))
-                (if (not node)
-                    (editor-error "No such node: " nodename))
+                (if (not node) (editor-error "No such node: " nodename))
                 (if (let ((name (extract-node-name node)))
                       (and name
                            (string-ci=? nodename name)))
index 9b7fdb7a28a8e520823cba5bc71da8dff051a905..55819a1655962e0efa42ce63f75d6a3e84c3258d 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;;    $Id: iserch.scm,v 1.18 1993/08/02 03:06:35 cph Exp $
+;;;    $Id: iserch.scm,v 1.19 1993/08/10 06:45:05 cph Exp $
 ;;;
 ;;;    Copyright (c) 1986, 1989-93 Massachusetts Institute of Technology
 ;;;
 
 (define (extract-rest-of-line mark)
   (extract-string mark (line-end mark (if (line-end? mark) 1 0) 'LIMIT)))
-
+\f
 (define (search-state-message state)
   (let ((invalid-regexp (search-state-invalid-regexp state)))
     (let ((m
            (if invalid-regexp (string-append " [" invalid-regexp "]") ""))))
       (string-set! m 0 (char-upcase (string-ref m 0)))
       m)))
-\f
+
 (define (search-state-append-string state string)
   (let ((text (string-append (search-state-text state) string)))
     (if (search-state-successful? state)
index d861ad76fb82296a052f05be5475ed185ed4130f..639f2622c850526bb2e8db89690fc8140b3713b8 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;;    $Id: loadef.scm,v 1.22 1993/08/02 21:05:52 cph Exp $
+;;;    $Id: loadef.scm,v 1.23 1993/08/10 06:45:55 cph Exp $
 ;;;
 ;;;    Copyright (c) 1986, 1989-1993 Massachusetts Institute of Technology
 ;;;
@@ -72,8 +72,8 @@
 (define-library 'RMAIL-SUMMARY-MODE
   '("rmailsum" (EDWIN RMAIL)))
 
-(define-autoload-major-mode 'rmail-summary 'fundamental "RMAIL-Summary" 'RMAIL-SUMMARY-MODE
-  "Summary mode for RMAIL.")
+(define-autoload-major-mode 'rmail-summary 'fundamental "RMAIL-Summary"
+  'RMAIL-SUMMARY-MODE "Summary mode for RMAIL.")
 
 (define-autoload-command 'rmail-summary 'RMAIL-SUMMARY-MODE
   "Enter RMAIL Summary mode.")
index ec0d6772ddf08b87f7d23754b47b7baf4b385dff..bf2b91da19765723aa8115526325a494d1179f20 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;;    $Id: macros.scm,v 1.59 1993/01/09 01:16:15 cph Exp $
+;;;    $Id: macros.scm,v 1.60 1993/08/10 06:47:41 cph Exp $
 ;;;
 ;;;    Copyright (c) 1986, 1989-1993 Massachusetts Institute of Technology
 ;;;
 
 (define (command-name->scheme-name name)
   (symbol-append 'EDWIN-COMMAND$ name))
-
+\f
 (let ((variable-definition
        (lambda (buffer-local?)
         (lambda (name description #!optional value test)
 (define (canonicalize-name name)
   (cond ((symbol? name) name)
        ((string? name) (intern (string-replace name #\Space #\-)))
-       (else (error "illegal name" name))))
-
-(syntax-table-define edwin-syntax-table 'VALUES-LET
-  (lambda (bindings . forms)
-
-    (define (transform/binding binding forms)
-      (if (or (not (pair? binding))
-             (not (pair? (cdr binding))))
-         (error "values-let: bad binding clause" binding))
-      `(WITH-VALUES (LAMBDA () ,(cadr binding))
-        (LAMBDA (,@(car binding)) ,@forms)))
-
-    (define (transform/values-let bindings forms)
-      (transform/binding
-       (car bindings)
-       (if (null? (cdr bindings))
-          forms
-          (list (transform/values-let (cdr bindings) forms)))))
-
-    (if (not (pair? bindings))
-       (error "values-let: missing bindings" (cons bindings forms))
-       (transform/values-let bindings forms))))
\ No newline at end of file
+       (else (error "illegal name" name))))
\ No newline at end of file
index b4cc3563f52af99b49e2bc6e3ec16d8b2924d9ba..53c38b3a3192878feac9df5836cabc9b88ec2bee 100644 (file)
@@ -1,8 +1,8 @@
 ;;; -*-Scheme-*-
 ;;;
-;;;    $Id: modlin.scm,v 1.15 1992/11/12 18:00:37 cph Exp $
+;;;    $Id: modlin.scm,v 1.16 1993/08/10 06:48:48 cph Exp $
 ;;;
-;;;    Copyright (c) 1989-92 Massachusetts Institute of Technology
+;;;    Copyright (c) 1989-93 Massachusetts Institute of Technology
 ;;;
 ;;;    This material was developed by the Scheme project at the
 ;;;    Massachusetts Institute of Technology, Department of
@@ -291,7 +291,8 @@ If #F, the normal method is used."
                      (min
                       (let ((start (group-display-start-index group)))
                         (integer-round
-                         (* 100 (- (mark-index (window-start-mark window)) start))
+                         (* 100
+                            (- (mark-index (window-start-mark window)) start))
                          (- (group-display-end-index group) start)))
                       99))
                     2)
index 3436d0cedafc43875ad998f5a4de352b4ba04485..f80861e9a6d020f2faafe46b8538bea68d32beed 100644 (file)
@@ -1,8 +1,8 @@
 ;;; -*-Scheme-*-
 ;;;
-;;;    $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/motcom.scm,v 1.45 1991/11/21 10:37:39 cph Exp $
+;;;    $Id: motcom.scm,v 1.46 1993/08/10 06:49:52 cph Exp $
 ;;;
-;;;    Copyright (c) 1985, 1989-91 Massachusetts Institute of Technology
+;;;    Copyright (c) 1985, 1989-93 Massachusetts Institute of Technology
 ;;;
 ;;;    This material was developed by the Scheme project at the
 ;;;    Massachusetts Institute of Technology, Department of
@@ -173,8 +173,8 @@ Continuation lines are skipped."
           (move-to-column (line-start (current-point) (- argument) 'FAILURE)
                           column)))
       (set-command-message! temporary-goal-column-tag column))))
-
-;;; Jokes
+\f
+;;;; Jokes
 
 (define-command hyper-space
   "Engage warp drive."
index 7530a911216cf5fab5c98f3ee4fd3d91e1c79b22..5dbaabb035b4d00cf34c25ab229615bfff8a51f0 100644 (file)
@@ -1,8 +1,8 @@
 ;;; -*-Scheme-*-
 ;;;
-;;;    $Id: notify.scm,v 1.10 1992/09/17 00:26:15 jinx Exp $
+;;;    $Id: notify.scm,v 1.11 1993/08/10 06:50:48 cph Exp $
 ;;;
-;;;    Copyright (c) 1992 Massachusetts Institute of Technology
+;;;    Copyright (c) 1992-93 Massachusetts Institute of Technology
 ;;;
 ;;;    This material was developed by the Scheme project at the
 ;;;    Massachusetts Institute of Technology, Department of
@@ -98,7 +98,7 @@
                 "")))
        (kill-buffer temporary-buffer)
        result))))
-
+\f
 (define-variable notify-show-mail
   "If true, the notifier displays your mail status."
   true