magit/magit — pull request #988 by praet (2013-10-10 22:39:22+00:00)
Title: `magit-display-process`: fix timed process buffer popup

Commit e26c9c7 moved the timed process buffer popup logic from `magit-run*`
into `magit-display-process`, but didn't take into account that it should
use `pop-to-buffer` instead of `display-buffer`.

When `magit-process-popup-time` was > 0 (as opposed to == 0), we *did*
use `display-buffer` instead of `pop-to-buffer`, but since its docstring
explicitly states "Popup the process buffer...", *always* use `pop-to-buffer`
when we have a running process and `magit-process-popup-time` is >= 0.

Fixes #987.

Reported-by: David Glasser
Signed-off-by: Pieter Praet

@tarsius: I haven't caught up with `master` yet, so this branch is rooted
at fe063de9, but it merges just fine and shouldn't cause any problems.