GNU bug report logs - #501
23.0.60; Viewing SVG files: Error when pressing C-v, M-v

Previous Next

Package: emacs;

Reported by: Markus Triska <markus.triska <at> gmx.at>

Date: Sun, 29 Jun 2008 12:45:03 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 501 in the body.
You can then email your comments to 501 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#501; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Markus Triska <markus.triska <at> gmx.at>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Markus Triska <markus.triska <at> gmx.at>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.0.60; Viewing SVG files: Error when pressing C-v, M-v
Date: Sun, 29 Jun 2008 14:37:51 +0200 (CEST)
When I open the file

   http://www.logic.at/prolog/test.svg

with "emacs -Q test.svg", and then press C-c C-c to view the image, it
is displayed correctly. When I then press C-v or M-v to scroll, I get:

   Wrong type argument: listp, t

The debug output with M-x toggle-debug-on-error is:

   Debugger entered--Lisp error: (wrong-type-argument listp t)
     image-mode-winprops(nil)
     image-mode-window-put(vscroll 17 nil)
     image-set-window-vscroll(17)
     image-next-line(31)
     image-scroll-up(nil)
     call-interactively(image-scroll-up nil nil)


In GNU Emacs 23.0.60.1 (i386-apple-darwin8.11.1, GTK+ Version 2.12.9)
 of 2008-06-29 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: nil
  value of $XMODIFIERS: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#501; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Markus Triska <markus.triska <at> gmx.at>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #10 received at 501 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Markus Triska <markus.triska <at> gmx.at>
To: 501 <at> debbugs.gnu.org
Subject: Re: bug#501: Acknowledgement (23.0.60; Viewing SVG files: Error when  pressing C-v, M-v)
Date: Sat, 19 Jul 2008 00:37:39 +0200
The following patch fixes this problem for me.

2008-07-18  Markus Triska  <markus.triska <at> gmx.at>

	* image-mode.el (image-toggle-display): Record scroll settings
	when switching to image.

diff --git a/lisp/image-mode.el b/lisp/image-mode.el
index 00f2225..5ffbfe1 100644
--- a/lisp/image-mode.el
+++ b/lisp/image-mode.el
@@ -450,6 +450,7 @@ and showing the image as an image."
 	   (modified (buffer-modified-p)))
       (image-refresh image)
       (add-text-properties (point-min) (point-max) props)
+      (image-mode-setup-winprops)
       (set-buffer-modified-p modified)
       ;; Inhibit the cursor when the buffer contains only an image,
       ;; because cursors look very strange on top of images.




Reply sent to Chong Yidong <cyd <at> stupidchicken.com>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to Markus Triska <markus.triska <at> gmx.at>:
bug acknowledged by developer. Full text and rfc822 format available.

Message #15 received at 501-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Markus Triska <markus.triska <at> gmx.at>
Cc: 501-done <at> debbugs.gnu.org
Subject: Re: 23.0.60; Viewing SVG files: Error when pressing C-v, M-v
Date: Fri, 25 Jul 2008 01:45:00 -0400
> When I open the file
>
>    http://www.logic.at/prolog/test.svg
>
> with "emacs -Q test.svg", and then press C-c C-c to view the image, it
> is displayed correctly. When I then press C-v or M-v to scroll, I get:
>
>    Wrong type argument: listp, t

I've just checked in a fix.  Thanks.




bug archived. Request was from Debbugs Internal Request <don <at> donarmstrong.com> to internal_control <at> emacsbugs.donarmstrong.com. (Fri, 22 Aug 2008 14:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 16 years and 305 days ago.

Previous Next


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