Permalink
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 <ruediger@c-plusplus.de>
  • Loading branch information...
1 parent 80c42d8 commit 869dd815f7f13bf78417bf80052f0631d20650e5 @ruediger ruediger committed Dec 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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)
(haskell-interactive-jump-to-error-line))
(progn (goto-char (point-max))
(haskell-interactive-mode-error-backward)

0 comments on commit 869dd81

Please sign in to comment.