From e2bc098db530ca887e1f1aab6097552afed89414 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Wed, 15 May 1991 17:42:51 +0000 Subject: [PATCH] Eliminate duplicated "Saving file..." message. --- v7/src/edwin/filcom.scm | 5 +++-- v7/src/edwin/fileio.scm | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/v7/src/edwin/filcom.scm b/v7/src/edwin/filcom.scm index d12b6faf9..c8e2beb9c 100644 --- a/v7/src/edwin/filcom.scm +++ b/v7/src/edwin/filcom.scm @@ -1,6 +1,6 @@ ;;; -*-Scheme-*- ;;; -;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/filcom.scm,v 1.154 1991/05/15 01:11:28 cph Exp $ +;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/filcom.scm,v 1.155 1991/05/15 17:42:25 cph Exp $ ;;; ;;; Copyright (c) 1986, 1989-91 Massachusetts Institute of Technology ;;; @@ -330,7 +330,8 @@ If `trim-versions-without-asking' is false, system will query user (prompt-for-pathname (string-append "Write buffer " (buffer-name buffer) " to file") false false))) - (if (> (buffer-length buffer) 50000) + (if (and (ref-variable enable-emacs-write-file-message) + (> (buffer-length buffer) 50000)) (message "Saving file " (pathname->string (buffer-pathname buffer)) "...")) diff --git a/v7/src/edwin/fileio.scm b/v7/src/edwin/fileio.scm index 81864e16a..768292a70 100644 --- a/v7/src/edwin/fileio.scm +++ b/v7/src/edwin/fileio.scm @@ -1,6 +1,6 @@ ;;; -*-Scheme-*- ;;; -;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/fileio.scm,v 1.99 1991/05/14 02:27:42 cph Exp $ +;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/fileio.scm,v 1.100 1991/05/15 17:42:51 cph Exp $ ;;; ;;; Copyright (c) 1986, 1989-91 Massachusetts Institute of Technology ;;; @@ -455,7 +455,7 @@ Otherwise, a message is written both before and after long file writes." (cond ((not message?) (do-it)) ((or (ref-variable enable-emacs-write-file-message) - (< (- end start) 50000)) + (<= (- end start) 50000)) (do-it) (message "Wrote " filename)) (else -- 2.25.1