GNU bug report logs -
#24393
25.1.50; image-mode ignore the image :scale
Previous Next
Reported by: Tino Calancha <tino.calancha <at> gmail.com>
Date: Thu, 8 Sep 2016 12:15:01 UTC
Severity: normal
Tags: moreinfo
Found in version 25.1.50
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: Tino Calancha <tino.calancha <at> gmail.com>
> Date: Fri, 9 Sep 2016 03:13:36 +0900 (JST)
> cc: Tino Calancha <tino.calancha <at> gmail.com>, 24393 <at> debbugs.gnu.org
>
> >> emacs -Q IMAGE ; IMAGE is the file name of an image file
> >> M-x: image-transform-fit-to-width
> >> ;; assertion fails. The image width is bigger than the window width.
> >>
> >> This happens after commit: ad1951db
> >
> > Please show a backtrace from the assertion violation.
> Debugger entered: ((cl-assertion-failed (= (car size) (- (nth 2 (window-inside-pixel-edges)) (nth 0 (window-inside-pixel-edges)))) nil 4299 2514))
> cl--assertion-failed((= (car size) (- (nth 2 (window-inside-pixel-edges)) (nth 0 (window-inside-pixel-edges)))) nil (4299 2514) nil)
> image-transform-check-size()
> image-toggle-display-image()
> image-transform-fit-to-width()
> eval((image-transform-fit-to-width) nil)
> eval-expression((image-transform-fit-to-width) nil)
> funcall-interactively(eval-expression (image-transform-fit-to-width)
> nil)
> call-interactively(eval-expression nil nil)
> command-execute(eval-expression)
Isn't there something wrong with the logic from the following fragment
of image-toggle-display-image? The comment certainly seems to have it
backwards, or at least in contradiction to what
image-transform-fit-to-width expects.
;; If we have a `fit-width' or a `fit-height', don't limit
;; the size of the image to the window size.
(edges (and (null image-transform-resize)
(window-inside-pixel-edges
(get-buffer-window (current-buffer)))))
I think 'edges' should be non-nil if image-transform-resize is
non-nil, no?
This bug report was last modified 5 years and 237 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.