Mercurial > emacs
comparison lisp/progmodes/idlw-shell.el @ 70573:b79a60a5fdeb
(idlwave-shell-move-or-history): Remove spurious move to point-max (new
comint behavior fixes).
author | J.D. Smith <jdsmith@as.arizona.edu> |
---|---|
date | Wed, 10 May 2006 18:24:52 +0000 |
parents | 84de63539ab8 |
children | 2bd94e447ecb b6689e223e2f 146cd8369025 |
comparison
equal
deleted
inserted
replaced
70572:d6353257b05e | 70573:b79a60a5fdeb |
---|---|
1469 (arg (or arg 1)) | 1469 (arg (or arg 1)) |
1470 (arg (if up arg (- arg)))) | 1470 (arg (if up arg (- arg)))) |
1471 (if (eq t idlwave-shell-arrows-do-history) (goto-char proc-pos)) | 1471 (if (eq t idlwave-shell-arrows-do-history) (goto-char proc-pos)) |
1472 (if (and idlwave-shell-arrows-do-history | 1472 (if (and idlwave-shell-arrows-do-history |
1473 (>= (1+ (save-excursion (end-of-line) (point))) proc-pos)) | 1473 (>= (1+ (save-excursion (end-of-line) (point))) proc-pos)) |
1474 (progn | 1474 (comint-previous-input arg) |
1475 ;;(goto-char proc-pos) | |
1476 (goto-char (point-max)) | |
1477 ;;(and (not (eolp)) (kill-line nil)) | |
1478 (comint-previous-input arg)) | |
1479 (previous-line arg)))) | 1475 (previous-line arg)))) |
1480 | 1476 |
1481 (defun idlwave-shell-up-or-history (&optional arg) | 1477 (defun idlwave-shell-up-or-history (&optional arg) |
1482 "When in last line of process buffer, move to previous input. | 1478 "When in last line of process buffer, move to previous input. |
1483 Otherwise just go up one line." | 1479 Otherwise just go up one line." |