bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#69992: Minor improvement to image map transformation logic


From: David Ponce
Subject: bug#69992: Minor improvement to image map transformation logic
Date: Wed, 27 Mar 2024 15:21:18 +0100
User-agent: Mozilla Thunderbird

On 27/03/2024 13:50, Eli Zaretskii wrote:
Date: Wed, 27 Mar 2024 12:16:11 +0100
From:  David Ponce via "Bug reports for GNU Emacs,
  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>

Many thanks for this feature, which is particularly useful to
automatically recalculate the map of computed images like SVG.

To make the code faster, by avoiding multiple scans of the map for
copy and parsing, I propose the following patch which factors most of
the code into the functions `image--compute-map' and `image--compute
-original-map'. I have done some tests on my side which are
conclusive.

Furthermore, I wonder if the term :base-map would not be more
descriptive than :original-map?

Thanks.

Joseph, any comments or suggestions?

Attached the same patch slightly cleaned up.

Attachment: image.el-compute-map-V1.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]