GNU bug report logs - #2548
23.0.60; doc-view: unexpected reuse of previously scaled image

Previous Next

Package: emacs;

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

Date: Tue, 3 Mar 2009 01:40:04 UTC

Severity: normal

Done: Tassilo Horn <tassilo <at> member.fsf.org>

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 2548 in the body.
You can then email your comments to 2548 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#2548; Package emacs. (Tue, 03 Mar 2009 01:40:05 GMT) 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>. (Tue, 03 Mar 2009 01:40:05 GMT) 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; doc-view: unexpected reuse of previously scaled image
Date: Tue,  3 Mar 2009 02:31:41 +0100 (CET)
With p.ps from:

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

when I do:

   $ emacs -Q p.ps

and press:

   C-c C-c - - - - - - -

the image shrinks, as expected. Then, when I quit Emacs and again do:

   $ emacs -Q p.ps

followed by C-c C-c, doc-view unexpectedly shows the small version
from the previous run. When I then press "-", it "shrinks" the image
so that the result is in fact larger than the just displayed image.


In GNU Emacs 23.0.60.2 (i386-apple-darwin8.11.1, GTK+ Version 2.12.9)
 of 2009-01-06 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





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2548; Package emacs. (Tue, 03 Mar 2009 12:00:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tassilo Horn <tassilo <at> member.fsf.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Tue, 03 Mar 2009 12:00:03 GMT) Full text and rfc822 format available.

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

From: Tassilo Horn <tassilo <at> member.fsf.org>
To: Markus Triska <markus.triska <at> gmx.at>
Cc: 2548-done <at> debbugs.gnu.org, emacs-pretest-bug <at> gnu.org
Subject: Re: bug#2548: 23.0.60; doc-view: unexpected reuse of previously scaled image
Date: Tue, 03 Mar 2009 12:54:34 +0100
Markus Triska <markus.triska <at> gmx.at> writes:

Hi Markus,

> With p.ps from:
>
>    http://www.logic.at/prolog/p.ps
>
> when I do:
>
>    $ emacs -Q p.ps
>
> and press:
>
>    C-c C-c - - - - - - -
>
> the image shrinks, as expected. Then, when I quit Emacs and again do:
>
>    $ emacs -Q p.ps
>
> followed by C-c C-c, doc-view unexpectedly shows the small version
> from the previous run.

That's no bug.  When you fire up emacs again doc-view uses the cached
files, which are the small ones now.

> When I then press "-", it "shrinks" the image so that the result is in
> fact larger than the just displayed image.

Yeah, cause the resulution factor is at the default value again and
doc-view reconverts the doc using this default value x 0.95 or so.

I'm closing that "bug".

Bye,
Tassilo




Reply sent to Tassilo Horn <tassilo <at> member.fsf.org>:
You have taken responsibility. (Tue, 03 Mar 2009 12:00:05 GMT) Full text and rfc822 format available.

Notification sent to Markus Triska <markus.triska <at> gmx.at>:
bug acknowledged by developer. (Tue, 03 Mar 2009 12:00:06 GMT) Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2548; Package emacs. (Wed, 04 Mar 2009 20:15:03 GMT) 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>. (Wed, 04 Mar 2009 20:15:04 GMT) Full text and rfc822 format available.

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

From: Markus Triska <markus.triska <at> gmx.at>
To: Tassilo Horn <tassilo <at> member.fsf.org>
Cc: 2548-done <at> debbugs.gnu.org, emacs-pretest-bug <at> gnu.org
Subject: Re: bug#2548: 23.0.60; doc-view: unexpected reuse of previously scaled image
Date: Wed, 04 Mar 2009 21:08:53 +0100
Tassilo Horn <tassilo <at> member.fsf.org> writes:

> the resulution factor is at the default value again and doc-view
> reconverts the doc using this default value x 0.95 or so.

If caching of the scaled picture is desired, the resolution factor
should be cached along with the image in my opinion, so that shrinking
and enlarging work consistently across different runs of Emacs.




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2548; Package emacs. (Wed, 04 Mar 2009 20:50:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tassilo Horn <tassilo <at> member.fsf.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Wed, 04 Mar 2009 20:50:04 GMT) Full text and rfc822 format available.

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

From: Tassilo Horn <tassilo <at> member.fsf.org>
To: Markus Triska <markus.triska <at> gmx.at>
Cc: 2548-done <at> debbugs.gnu.org, emacs-pretest-bug <at> gnu.org
Subject: Re: bug#2548: 23.0.60; doc-view: unexpected reuse of previously scaled image
Date: Wed, 04 Mar 2009 21:41:17 +0100
Markus Triska <markus.triska <at> gmx.at> writes:

>> the resulution factor is at the default value again and doc-view
>> reconverts the doc using this default value x 0.95 or so.
>
> If caching of the scaled picture is desired, the resolution factor
> should be cached along with the image in my opinion, so that shrinking
> and enlarging work consistently across different runs of Emacs.

I agree.  I hope I can implement that at the weekend.

Bye,
Tassilo




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2548; Package emacs. (Thu, 05 Mar 2009 08:35:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tassilo Horn <tassilo <at> member.fsf.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Thu, 05 Mar 2009 08:35:03 GMT) Full text and rfc822 format available.

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

From: Tassilo Horn <tassilo <at> member.fsf.org>
To: 2548 <at> debbugs.gnu.org
Cc: Markus Triska <markus.triska <at> gmx.at>, emacs-pretest-bug <at> gnu.org,
        2548-done <at> debbugs.gnu.org
Subject: Re: bug#2548: 23.0.60; doc-view: unexpected reuse of previously scaled image
Date: Thu, 05 Mar 2009 09:26:08 +0100
Tassilo Horn <tassilo <at> member.fsf.org> writes:

Hi Markus,

>>> the resulution factor is at the default value again and doc-view
>>> reconverts the doc using this default value x 0.95 or so.
>>
>> If caching of the scaled picture is desired, the resolution factor
>> should be cached along with the image in my opinion, so that
>> shrinking and enlarging work consistently across different runs of
>> Emacs.
>
> I agree.  I hope I can implement that at the weekend.

It's in CVS now.  I tested it briefly and it works fine for me.  Please
give it a try.

Bye,
Tassilo




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2548; Package emacs. (Thu, 05 Mar 2009 08:35:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tassilo Horn <tassilo <at> member.fsf.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Thu, 05 Mar 2009 08:35:05 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> emacsbugs.donarmstrong.com. (Thu, 02 Apr 2009 14:24:07 GMT) Full text and rfc822 format available.

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

Previous Next


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