GNU bug report logs - #4016
23.1.50; docview: scrolling up breaks after setting a slice

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: Paer Kurlberg <kurlberg@HIDDEN>; dated Sun, 2 Aug 2009 14:15:04 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 4016@HIDDEN:


Received: (at 4016) by emacsbugs.donarmstrong.com; 3 Aug 2009 06:46:26 +0000
From tassilo@HIDDEN Sun Aug  2 23:46:26 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=-4.7 required=4.0 tests=AWL,HAS_BUG_NUMBER,
	IMPRONONCABLE_2 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02
Received: from deliver.uni-koblenz.de (deliver.uni-koblenz.de [141.26.64.15])
	by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n736kL2r023070
	for <4016@HIDDEN>; Sun, 2 Aug 2009 23:46:22 -0700
Received: from localhost (localhost [127.0.0.1])
	by deliver.uni-koblenz.de (Postfix) with ESMTP id EEFB378A131F;
	Mon,  3 Aug 2009 08:46:19 +0200 (CEST)
Received: from deliver.uni-koblenz.de ([127.0.0.1])
 by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 23352-06; Mon,  3 Aug 2009 08:46:18 +0200 (CEST)
X-CHKRCPT: Envelopesender vrfy tassilo@HIDDEN
Received: from thinkpad.tsdh.de (unknown [141.26.94.22])
	by deliver.uni-koblenz.de (Postfix) with ESMTP id A44A878A1318;
	Mon,  3 Aug 2009 08:46:18 +0200 (CEST)
From: Tassilo Horn <tassilo@HIDDEN>
To: Paer Kurlberg <kurlberg@HIDDEN>
Cc: 4016 <at> debbugs.gnu.org
Subject: Re: bug#4016: Acknowledgement (23.1.50; docview: scrolling up breaks after setting a slice)
References: <yqz5a7hxm8g2g.fsf@HIDDEN>
	<handler.4016.B.124922207616015.ack@HIDDEN>
	<mailman.3700.1249230416.2239.bug-gnu-emacs@HIDDEN>
Date: Mon, 03 Aug 2009 08:46:27 +0200
In-Reply-To: <mailman.3700.1249230416.2239.bug-gnu-emacs@HIDDEN> (Paer
	Kurlberg's message of "Sun, 02 Aug 2009 18:08:21 +0200")
Message-ID: <87d47dpf7g.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Virus-Scanned: amavisd-new at uni-koblenz.de

Paer Kurlberg <kurlberg@HIDDEN> writes:

> In case it might be helpful: below is a backtrace.  It seems that the
> problem is that image-get-display-property (called in the function
> image-next-line) returns the list
>
> ((slice 0 0 1100 1600) (image :type png :file
>   "/tmp/docview1000/arnold.dvi-b04e9949bb98146d331479915a45fc5b/page-1.png"
>   :pointer arrow))
>
> and therefore image-size complains since a "proper image" should be a
> list whose car equals 'image.

I can reproduce the error.  But I'm not too sure where the bug is
located.  According to the docs, the display property may be a single
display spec, or a list or vector of such.

,----[ (info "(elisp)Display Property") ]
| The value of the `display' property should be a display specification,
| or a list or vector containing several display specifications.
`----

So in that respect the slice + image spec are ok.

I think that maybe the C function

  int valid_image_p (object) Lisp_Object object;

in image.c should be adapted to accept lists/vectors including one image
spec.

Bye,
Tassilo



Acknowledgement sent to Tassilo Horn <tassilo@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#4016; Package emacs. Full text available.

Message received at 4016@HIDDEN:


Received: (at 4016) by emacsbugs.donarmstrong.com; 2 Aug 2009 16:08:29 +0000
From kurlberg@HIDDEN Sun Aug  2 09:08:29 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.9 required=4.0 tests=AWL,HAS_BUG_NUMBER,
	IMPRONONCABLE_2 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02
Received: from seven.math.kth.se (seven.math.kth.se [130.237.48.74])
	by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n72G8N7n028675
	for <4016@HIDDEN>; Sun, 2 Aug 2009 09:08:25 -0700
Received: from seven.math.kth.se (localhost.localdomain [127.0.0.1])
	by seven.math.kth.se (8.13.8/8.13.8) with ESMTP id n72G8M66003839;
	Sun, 2 Aug 2009 18:08:22 +0200
Received: (from kurlberg@localhost)
	by seven.math.kth.se (8.13.8/8.13.8/Submit) id n72G8Lhb003838;
	Sun, 2 Aug 2009 18:08:21 +0200
X-Authentication-Warning: seven.math.kth.se: kurlberg set sender to kurlberg@HIDDEN using -f
From: Paer Kurlberg <kurlberg@HIDDEN>
To: 4016 <at> debbugs.gnu.org
Subject: Re: bug#4016: Acknowledgement (23.1.50; docview: scrolling up breaks after setting a slice)
References: <yqz5a7hxm8g2g.fsf@HIDDEN>
	<handler.4016.B.124922207616015.ack@HIDDEN>
Date: Sun, 02 Aug 2009 18:08:21 +0200
In-Reply-To: <handler.4016.B.124922207616015.ack@HIDDEN>
	(Emacs bug Tracking System's message of "Sun, 02 Aug 2009 14:15:05
	+0000")
Message-ID: <yqz5aab2iqjuy.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii


In case it might be helpful: below is a backtrace.  It seems that the
problem is that image-get-display-property (called in the function
image-next-line) returns the list

((slice 0 0 1100 1600) (image :type png :file
  "/tmp/docview1000/arnold.dvi-b04e9949bb98146d331479915a45fc5b/page-1.png"
  :pointer arrow))

and therefore image-size complains since a "proper image" should be a
list whose car equals 'image.


BACKTRACE: 

Debugger entered--Lisp error: (error "Invalid image specification")
  image-size(((slice 0 0 1100 1600) (image :type png :file
  "/tmp/docview1000/arnold.dvi-b04e9949bb98146d331479915a45fc5b/page-1.png"
  :pointer arrow)))
  image-next-line(36)
  image-scroll-up(nil)
  doc-view-scroll-up-or-next-page()
  call-interactively(doc-view-scroll-up-or-next-page nil nil)



Acknowledgement sent to Paer Kurlberg <kurlberg@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#4016; Package emacs. Full text available.

Message received at submit@HIDDEN:


Received: (at submit) by emacsbugs.donarmstrong.com; 2 Aug 2009 14:07:56 +0000
From kurlberg@HIDDEN Sun Aug  2 07:07:55 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.14.3/8.14.3/Debian-5) with ESMTP id n72E7mwv016009
	for <submit@HIDDEN>; Sun, 2 Aug 2009 07:07:50 -0700
Received: from mx10.gnu.org ([199.232.76.166]:51731)
	by fencepost.gnu.org with esmtp (Exim 4.67)
	(envelope-from <kurlberg@HIDDEN>)
	id 1MXbj2-00047T-0h
	for emacs-pretest-bug@HIDDEN; Sun, 02 Aug 2009 10:07:48 -0400
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60)
	(envelope-from <kurlberg@HIDDEN>)
	id 1MXbiy-0007Tr-Lw
	for emacs-pretest-bug@HIDDEN; Sun, 02 Aug 2009 10:07:46 -0400
Received: from shell-1.math.kth.se ([130.237.48.63]:58048)
	by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.60)
	(envelope-from <kurlberg@HIDDEN>)
	id 1MXbiv-0007Ry-KR
	for emacs-pretest-bug@HIDDEN; Sun, 02 Aug 2009 10:07:42 -0400
Received: from shell-1.math.kth.se (localhost.localdomain [127.0.0.1])
	by shell-1.math.kth.se (8.13.8/8.13.8) with ESMTP id n72E7awx026238;
	Sun, 2 Aug 2009 16:07:36 +0200
Received: (from kurlberg@localhost)
	by shell-1.math.kth.se (8.13.8/8.13.8/Submit) id n72E7ZOV026237;
	Sun, 2 Aug 2009 16:07:35 +0200
X-Authentication-Warning: shell-1.math.kth.se: kurlberg set sender to kurlberg@HIDDEN using -f
From: Paer Kurlberg <kurlberg@HIDDEN>
To: emacs-pretest-bug@HIDDEN
Subject: 23.1.50; docview: scrolling up breaks after setting a slice
Date: Sun, 02 Aug 2009 16:07:35 +0200
Message-ID: <yqz5a7hxm8g2g.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized.


Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the emacs-pretest-bug@HIDDEN
mailing list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:


View a dvi file (or pdf file for that matter) with DocView.

Set a slice by typing "ss" (invoking doc-view-set-slice) with x and y
coordinates zero, and maximum width and height, as suggested by the
prompt.  (In fact, any slice settings seems to trigger the phenomena.)

When hitting space (invoking doc-view-scroll-up-or-next-page), the
document is not scrolled up, and the following error message appears:

image-next-line: Invalid image specification

Note: By hitting "sr" (removing the slice) it is again possible to use
space to scroll up.

Remark: On a laptop with a small screen it would be very useful to set
slices to get rid of the large margins, and yet being able to scroll
through the document (even with a slice set, I cannot see the whole
page at once.)



If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/usr/share/emacs/23.1.50/etc/DEBUG for instructions.


In GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.16.1)
 of 2009-07-31 on lansones, modified by Debian
 (emacs-snapshot package, version 1:20090730-1~jaunty1)
Windowing system distributor `The X.Org Foundation', version
 11.0.10600000
configured using `configure  '--build' 'i486-linux-gnu' '--host'
 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib'
 '--libexecdir=/usr/lib' '--localstatedir=/var'
 '--infodir=/usr/share/info' '--mandir=/usr/share/man'
 '--with-pop=yes'
 '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/23.1.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1.50/site-lisp:/usr/share/emacs/site-lisp'
 '--with-x=yes' '--with-x-toolkit=gtk' 'build_alias=i486-linux-gnu'
 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN
 -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed'
 'CPPFLAGS=''

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_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: DocView

Minor modes in effect:
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
C-x C-f a r n o l d . d v i <return> <return> s s 0 
<return> 0 <return> 9 2 6 <return> 1 3 1 0 <return> 
SPC <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <menu-bar> 
<help-menu> <send-emacs-bug-report>

Recent messages:
Loading
/usr/share/emacs-snapshot/site-lisp/planner-el/planner-autoloads.el
(source)...done
Loading /etc/emacs/site-start.d/51planner-el.el (source)...done
Loading /etc/emacs/site-start.d/52remember-el.el (source)...
Loading /usr/share/emacs/site-lisp/remember-el/remember-autoloads.el
(source)...done
Loading /etc/emacs/site-start.d/52remember-el.el (source)...done
Loading /etc/emacs/site-start.d/60hyperspec.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.
DocView: using cached files!
Type C-c C-c to toggle between editing or viewing the document.
No key given.  Assumed normal.
image-next-line: Invalid image specification

Load-path shadows:
/usr/share/emacs/23.1.50/site-lisp/auctex/tex-mik



Acknowledgement sent to Paer Kurlberg <kurlberg@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#4016; 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.