GNU bug report logs - #47819
8.0.50; When :height/:width image attribute is specified, :scale factor is not applied

Previous Next

Package: emacs;

Reported by: David Ponce <da_vid <at> orange.fr>

Date: Fri, 16 Apr 2021 06:17:01 UTC

Severity: normal

Found in version 8.0.50

Done: Alan Third <alan <at> idiocy.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Alan Third <alan <at> idiocy.org>
To: David Ponce <da_vid <at> orange.fr>
Cc: 47819 <at> debbugs.gnu.org
Subject: bug#47819: 8.0.50; When :height/:width image attribute is specified, :scale factor is not applied
Date: Fri, 16 Apr 2021 19:14:50 +0100
[Message part 1 (text/plain, inline)]
On Fri, Apr 16, 2021 at 08:16:20AM +0200, David Ponce wrote:
> Hello,
> 
> For the image :scale attribute the Elisp reference manual say that:
> 
>      If both ‘:scale’ and ‘:height’/‘:width’ are
>      specified, the height/width will be adjusted by the specified
>      scaling factor.
> 
> It seems, however, that this is not true, when the :height or :width
> or both attributes of an image are specified, the :scale factor is not
> applied.

Hmm, I'm not sure which is the more desirable behaviour, but fixing it
to match the documentation appears to be trivial. See attached.
-- 
Alan Third
[0001-Make-scale-affect-width-and-height-bug-47819.patch (text/plain, attachment)]

This bug report was last modified 4 years and 33 days ago.

Previous Next


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