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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Markus Triska <markus.triska@HIDDEN>; dated Mon, 2 Mar 2009 18:45:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 2541 <at> debbugs.gnu.org:


Received: (at 2541) by debbugs.gnu.org; 11 Jan 2011 21:11:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 11 16:11:57 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PclVV-0007IC-3M
	for submit <at> debbugs.gnu.org; Tue, 11 Jan 2011 16:11:57 -0500
Received: from out1.smtp.messagingengine.com ([66.111.4.25])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <thorn@HIDDEN>) id 1PclPX-000799-1H
	for 2541@HIDDEN; Tue, 11 Jan 2011 16:05:47 -0500
Received: from compute2.internal (compute2.nyi.mail.srv.osa [10.202.2.42])
	by gateway1.messagingengine.com (Postfix) with ESMTP id 8E43D20316;
	Tue, 11 Jan 2011 16:13:15 -0500 (EST)
Received: from frontend1.messagingengine.com ([10.202.2.160])
	by compute2.internal (MEProxy); Tue, 11 Jan 2011 16:13:15 -0500
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com;
	h=from:to:cc:subject:references:date:in-reply-to:message-id:mime-version:content-type;
	s=smtpout; bh=qW1Eetv3qXUNbPdv8EYPtzA3BH8=;
	b=RphSPkt3lsPPN4+D3UxKtQvUYliD9h9Ry3Qg4E4Gp7GgfgFY6DOcVCdxvjPbW2j5xqpKZQvWeAQy8ayVZ73blRqOrbvsH2h+BQ67tDg1B/5RiEYZQM8KCxyyT7BsRgVpZn+X2z2I2d1JHAX3rDx9wRTtCrC9q0nbZvDsUhKM2s4=
X-Sasl-enc: ZO8jamNJNEOZBkpx8uWTvFi2iKg54U+tMC73UD5MH8IH 1294780395
Received: from thinkpad (95-88-32-105-dynip.superkabel.de [95.88.32.105])
	by mail.messagingengine.com (Postfix) with ESMTPA id 7CB4640676B;
	Tue, 11 Jan 2011 16:13:14 -0500 (EST)
From: Tassilo Horn <thorn@HIDDEN>
To: Markus Triska <markus.triska@HIDDEN>
Subject: Re: bug#2541: 23.0.91;
	doc-view: unexpected scrolling after returning to text mode
References: <20090302183808.1D904C65B5D@HIDDEN>
Date: Tue, 11 Jan 2011 22:13:13 +0100
In-Reply-To: <20090302183808.1D904C65B5D@HIDDEN> (Markus Triska's
	message of "Mon, 2 Mar 2009 19:38:08 +0100 (CET)")
Message-ID: <87sjwz5el2.fsf@HIDDEN>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -1.1 (-)
X-Debbugs-Envelope-To: 2541
X-Mailman-Approved-At: Tue, 11 Jan 2011 16:11:55 -0500
Cc: 2541 <at> debbugs.gnu.org, emacs-pretest-bug@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.9 (-)

Markus Triska <markus.triska@HIDDEN> writes:

> 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.

I can reproduce that (even without step 2) using

  GNU Emacs 24.0.50.1 (x86_64-pc-linux-gnu) of 2011-01-11 on thinkpad

However, C-p is bound to `previous-line' as usual in that context.

After edebugging a bit, I found that the reasion is that in

--8<---------------cut here---------------start------------->8---
(defun line-move (arg &optional noerror to-end try-vscroll)
  (unless (and auto-window-vscroll try-vscroll
	       ;; Only vscroll for single line moves
	       (= (abs arg) 1)
	       ;; But don't vscroll in a keyboard macro.
	       (not defining-kbd-macro)
	       (not executing-kbd-macro)
	       (line-move-partial arg noerror to-end))
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    (set-window-vscroll nil 0 t)
    (if line-move-visual
	(line-move-visual arg noerror)
      (line-move-1 arg noerror to-end))))
--8<---------------cut here---------------end--------------->8---

the underlined call scrolls one line and returns some integer in that
context.  That makes the and clause return non-nil, and so the unless
body is not executed.  I don't know this part of emacs, so I don't know
how to fix the issue...

But I don't think that has something to do with doc-view.

Bye,
Tassilo




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#2541; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 11 Jan 2011 21:11:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 11 16:11:57 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PclVV-0007IF-Hc
	for submit <at> debbugs.gnu.org; Tue, 11 Jan 2011 16:11:57 -0500
Received: from fencepost.gnu.org ([140.186.70.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <thorn@HIDDEN>) id 1PclQy-0007Bh-Vj
	for submit <at> debbugs.gnu.org; Tue, 11 Jan 2011 16:07:17 -0500
Received: from eggs.gnu.org ([140.186.70.92]:53696)
	by fencepost.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.69) (envelope-from <thorn@HIDDEN>) id 1PclY9-0004Og-OX
	for emacs-pretest-bug@HIDDEN; Tue, 11 Jan 2011 16:14:41 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <thorn@HIDDEN>) id 1PclWn-0005Jh-K3
	for emacs-pretest-bug@HIDDEN; Tue, 11 Jan 2011 16:14:45 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=ham version=3.3.1
Received: from out1.smtp.messagingengine.com ([66.111.4.25]:43190)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <thorn@HIDDEN>) id 1PclWn-0005JI-E0
	for emacs-pretest-bug@HIDDEN; Tue, 11 Jan 2011 16:13:17 -0500
Received: from compute2.internal (compute2.nyi.mail.srv.osa [10.202.2.42])
	by gateway1.messagingengine.com (Postfix) with ESMTP id 8E43D20316;
	Tue, 11 Jan 2011 16:13:15 -0500 (EST)
Received: from frontend1.messagingengine.com ([10.202.2.160])
	by compute2.internal (MEProxy); Tue, 11 Jan 2011 16:13:15 -0500
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com;
	h=from:to:cc:subject:references:date:in-reply-to:message-id:mime-version:content-type;
	s=smtpout; bh=qW1Eetv3qXUNbPdv8EYPtzA3BH8=;
	b=RphSPkt3lsPPN4+D3UxKtQvUYliD9h9Ry3Qg4E4Gp7GgfgFY6DOcVCdxvjPbW2j5xqpKZQvWeAQy8ayVZ73blRqOrbvsH2h+BQ67tDg1B/5RiEYZQM8KCxyyT7BsRgVpZn+X2z2I2d1JHAX3rDx9wRTtCrC9q0nbZvDsUhKM2s4=
X-Sasl-enc: ZO8jamNJNEOZBkpx8uWTvFi2iKg54U+tMC73UD5MH8IH 1294780395
Received: from thinkpad (95-88-32-105-dynip.superkabel.de [95.88.32.105])
	by mail.messagingengine.com (Postfix) with ESMTPA id 7CB4640676B;
	Tue, 11 Jan 2011 16:13:14 -0500 (EST)
From: Tassilo Horn <thorn@HIDDEN>
To: Markus Triska <markus.triska@HIDDEN>
Subject: Re: bug#2541: 23.0.91;
	doc-view: unexpected scrolling after returning to text mode
References: <20090302183808.1D904C65B5D@HIDDEN>
Date: Tue, 11 Jan 2011 22:13:13 +0100
In-Reply-To: <20090302183808.1D904C65B5D@HIDDEN> (Markus Triska's
	message of "Mon, 2 Mar 2009 19:38:08 +0100 (CET)")
Message-ID: <87sjwz5el2.fsf@HIDDEN>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Spam-Score: -2.8 (--)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Tue, 11 Jan 2011 16:11:55 -0500
Cc: 2541 <at> debbugs.gnu.org, emacs-pretest-bug@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.3 (---)

Markus Triska <markus.triska@HIDDEN> writes:

> 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.

I can reproduce that (even without step 2) using

  GNU Emacs 24.0.50.1 (x86_64-pc-linux-gnu) of 2011-01-11 on thinkpad

However, C-p is bound to `previous-line' as usual in that context.

After edebugging a bit, I found that the reasion is that in

--8<---------------cut here---------------start------------->8---
(defun line-move (arg &optional noerror to-end try-vscroll)
  (unless (and auto-window-vscroll try-vscroll
	       ;; Only vscroll for single line moves
	       (= (abs arg) 1)
	       ;; But don't vscroll in a keyboard macro.
	       (not defining-kbd-macro)
	       (not executing-kbd-macro)
	       (line-move-partial arg noerror to-end))
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    (set-window-vscroll nil 0 t)
    (if line-move-visual
	(line-move-visual arg noerror)
      (line-move-1 arg noerror to-end))))
--8<---------------cut here---------------end--------------->8---

the underlined call scrolls one line and returns some integer in that
context.  That makes the and clause return non-nil, and so the unless
body is not executed.  I don't know this part of emacs, so I don't know
how to fix the issue...

But I don't think that has something to do with doc-view.

Bye,
Tassilo




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#2541; Package emacs. Full text available.

Message received at submit@HIDDEN:


Received: (at submit) by emacsbugs.donarmstrong.com; 2 Mar 2009 18:38:34 +0000
From triska@HIDDEN Mon Mar  2 10:38:34 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no
	version=3.2.5-bugs.debian.org_2005_01_02
Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n22IcUYf012260
	for <submit@HIDDEN>; Mon, 2 Mar 2009 10:38:32 -0800
Received: from mx10.gnu.org ([199.232.76.166]:55802)
	by fencepost.gnu.org with esmtp (Exim 4.67)
	(envelope-from <triska@HIDDEN>)
	id 1LeCzn-0005V9-FB
	for emacs-pretest-bug@HIDDEN; Mon, 02 Mar 2009 13:36:07 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60)
	(envelope-from <triska@HIDDEN>)
	id 1LeD23-0000Hh-UA
	for emacs-pretest-bug@HIDDEN; Mon, 02 Mar 2009 13:38:29 -0500
Received: from mail.gmx.net ([213.165.64.20]:59781)
	by monty-python.gnu.org with smtp (Exim 4.60)
	(envelope-from <triska@HIDDEN>)
	id 1LeD23-0000GG-EQ
	for emacs-pretest-bug@HIDDEN; Mon, 02 Mar 2009 13:38:27 -0500
Received: (qmail invoked by alias); 02 Mar 2009 18:38:17 -0000
Received: from chello062178240212.3.14.tuwien.teleweb.at (EHLO mt-computer.local) [62.178.240.212]
  by mail.gmx.net (mp049) with SMTP; 02 Mar 2009 19:38:17 +0100
X-Authenticated: #4064391
X-Provags-ID: V01U2FsdGVkX1+FcDA7DIOFAKfztFfRbv4LC7UWmWae/cFwv7i41d
	o2a8TD0KHwsDDB
Received: by mt-computer.local (Postfix, from userid 502)
	id 1D904C65B5D; Mon,  2 Mar 2009 19:38:08 +0100 (CET)
From: Markus Triska <markus.triska@HIDDEN>
To: emacs-pretest-bug@HIDDEN
Subject: 23.0.91; doc-view: unexpected scrolling after returning to text mode
Message-Id: <20090302183808.1D904C65B5D@HIDDEN>
Date: Mon,  2 Mar 2009 19:38:08 +0100 (CET)
X-Y-GMX-Trusted: 0
X-FuHaFi: 0.5
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3)


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





Acknowledgement sent to Markus Triska <markus.triska@HIDDEN>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Report forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#2541; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.