# HG changeset patch # User Karl Heuer # Date 832367760 0 # Node ID ba353653c03acbefce69fc379bf63921e8747131 # Parent 4bfe3c580496b3c41bff3a4e3f39e4902db37b7f (term-send-raw-string): send-string -> process-send-string. (term-arguments): Remove unused local `values'. (term-handle-deferred-scroll): Fix off-by-one bug. diff -r 4bfe3c580496 -r ba353653c03a lisp/term.el --- a/lisp/term.el Fri May 17 21:13:14 1996 +0000 +++ b/lisp/term.el Fri May 17 21:16:00 1996 +0000 @@ -642,7 +642,7 @@ (goto-char (process-mark proc)) (if (term-pager-enabled) (setq term-pager-count (term-current-row))) - (send-string proc chars)))) + (process-send-string proc chars)))) (defun term-send-raw () "Send the last character typed through the terminal-emulator @@ -1376,7 +1376,7 @@ (let ((argpart "[^ \n\t\"'`]+\\|\\(\"[^\"]*\"\\|'[^']*'\\|`[^`]*`\\)") (args ()) (pos 0) (count 0) - beg str value quotes) + beg str quotes) ;; Build a list of all the args until we have as many as we want. (while (and (or (null mth) (<= count mth)) (string-match argpart string pos)) @@ -2331,10 +2331,10 @@ (defun term-handle-deferred-scroll () (let ((count (- (term-current-row) term-height))) - (if (> count 0) + (if (>= count 0) (save-excursion (goto-char term-home-marker) - (term-vertical-motion count) + (term-vertical-motion (1+ count)) (set-marker term-home-marker (point)) (setq term-current-row (1- term-height))))))