Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use (forward-line -1) instead of `previous-line'.

From the `previous-line' docstring:

> If you are thinking of using this in a Lisp program, consider using
> `forward-line' with a negative argument instead.  It is usually easier
> to use and more reliable (no dependence on goal column, etc.).

Signed-off-by: Rüdiger Sonderfeld <>
  • Loading branch information...
commit 869dd815f7f13bf78417bf80052f0631d20650e5 1 parent 80c42d8
Rüdiger Sonderfeld ruediger authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  haskell-interactive-mode.el
2  haskell-interactive-mode.el
@@ -449,7 +449,7 @@ Key bindings:
(with-current-buffer (haskell-session-interactive-buffer (haskell-session))
(if (progn (goto-char (line-beginning-position))
(looking-at "^[^:]+:[0-9]+:[0-9]+: "))
- (progn (previous-line)
+ (progn (forward-line -1)
(progn (goto-char (point-max))
Please sign in to comment.
Something went wrong with that request. Please try again.