GNU bug report logs -
#13887
24.3; doc-view will render blurry images when image-magick is available
Previous Next
Reported by: E Sabof <esabof <at> gmail.com>
Date: Wed, 6 Mar 2013 03:42:02 UTC
Severity: normal
Tags: moreinfo
Found in version 24.3
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Tassilo Horn <tsdh <at> gnu.org>
> Date: Mon, 11 Mar 2013 10:11:28 +0100
> Cc: 13887 <at> debbugs.gnu.org
>
> Aha, now I know how to reproduce that (also with the emacs with my
> customizations and the centering patch). Somehow,
> `doc-view-new-window-function' is run way too often (I've commented in
> the (message ...) in its first line to see). When opening some
> document, it's run twice. When the document is shown, M-x <TAB> will
> also run it again. Ditto for M-: (i<TAB. Ditto for C-x C-f.
doc-view-new-window-function seems to be run from a
window-configuration-change-hook, right? If so, why do you expect it
to be run only once, or not run when you type "M-x TAB"? E.g., the
latter pops up the completion buffer and/or splits the window, which
constitutes a change in window configuration:
-- Variable: window-configuration-change-hook
A normal hook that is run every time you change the window
configuration of an existing frame. This includes splitting or
deleting windows, changing the sizes of windows, or displaying a
different buffer in a window. ^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I think a function written to run off that hook should be defensive
and not assume anything about when it will or won't be called, or how
many times. Just grep the C sources for
run_window_configuration_change_hook, and you will see why.
This bug report was last modified 5 years and 223 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.