Subject: bug#2541: 23.0.91; doc-view: unexpected scrolling after returning to text mode

From: Markus Triska <[email-masked]>
Date: Mon, 2 Mar 2009 19:38:08 +0100 (CET)

Given p.ps from:

   http://www.logic.at/prolog/p.ps

when I do:

1)   $ emacs -Q p.ps

2)   M-: (setq doc-view-ghostscript-options (list "-dSAFER" "-dNOPAUSE" "-sDEVICE=png16m" "-dTextAlphaBits=4" "-dBATCH" "-dGraphicsAlphaBits=4" "-dQUIET" "-dEPSCrop")) RET

3)   C-u - 1 M-r C-c C-c C-v C-c C-c

then (as expected) doc-view returns to text mode, and point is on the
same position where it was before entering graphics mode. When I then
press C-p repeatedly, instead of moving point to the previous line,
the text is unexpectedly scrolled down without moving point.

In GNU Emacs 23.0.91.1 (i386-apple-darwin8.11.1, GTK+ Version 2.12.9)
 of 2009-03-01 on mt-computer.local
Windowing system distributor `The XFree86 Project, Inc', version 11.0.40400000
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_GB.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t