# HG changeset patch # User Stefan Monnier # Date 1253815844 0 # Node ID e7e9efa5ce163bc0d8c9bece5fa7b054fa4ef4e3 # Parent e77a0b9568352be8bd6b62ea3b5caf13b16cfa55 (term-set-scroll-region, term-handle-ansi-escape): Undo last change, which didn't fix the problem and introduced others. diff -r e77a0b956835 -r e7e9efa5ce16 lisp/ChangeLog --- a/lisp/ChangeLog Thu Sep 24 16:59:14 2009 +0000 +++ b/lisp/ChangeLog Thu Sep 24 18:10:44 2009 +0000 @@ -1,3 +1,8 @@ +2009-09-24 Stefan Monnier + + * term.el (term-set-scroll-region, term-handle-ansi-escape): + Undo last change, which didn't fix the problem and introduced others. + 2009-09-24 Nick Roberts * progmodes/gdb-mi.el: Don't require speedbar. diff -r e77a0b956835 -r e7e9efa5ce16 lisp/term.el --- a/lisp/term.el Thu Sep 24 16:59:14 2009 +0000 +++ b/lisp/term.el Thu Sep 24 18:10:44 2009 +0000 @@ -3369,8 +3369,7 @@ ((eq char ?r) (term-set-scroll-region (1- term-terminal-previous-parameter) - (1- term-terminal-parameter)) - (term-goto 0 0)) + (1- term-terminal-parameter))) (t))) (defun term-set-scroll-region (top bottom) @@ -3390,7 +3389,8 @@ (or (term-using-alternate-sub-buffer) (not (and (= term-scroll-start 0) (= term-scroll-end term-height))))) - (term-move-columns (- (term-current-column)))) + (term-move-columns (- (term-current-column))) + (term-goto 0 0)) ;; (defun term-switch-to-alternate-sub-buffer (set) ;; ;; If asked to switch to (from) the alternate sub-buffer, and already (not)