1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-09 01:05:39 -08:00
emacs/etc
Joseph Turner 79c758187c Recompute :map when image :scale, :rotation, or :flip changes
Now, when transforming an image, its :map is recomputed to fit.
Image map coordinates are integers, so when computing :map,
coordinates are rounded.  To prevent an image from drifting from
its map after repeated transformations, 'create-image' now adds
a new image property :original-map, which is combined with the
image's transformation parameters to recompute :map.

* lisp/image.el (image-recompute-map-p): Add user option to
control whether :map is recomputed when an image is transformed.
(create-image): Create :map from :original-map and vice versa.
(image--delayed-change-size): Fix comment.
(image--change-size, image-rotate, image-flip-horizontally,
image-flip-vertically): Recompute image map after transformation
and mention 'image-recompute-map-p' in docstring.
(image--compute-map): Add function to compute a map from original
map.
(image--compute-original-map): Add function to compute an
original map from map.
(image--scale-map): Add function to scale a map based on :scale.
(image--rotate-map): Add function to rotate a map based on
:rotation.
(image--rotate-coord): Add function to rotate a map coordinate
pair.
(image--flip-map): Add function to flip a map based on :flip.
(image-increase-size, image-decrease-size, image-mouse-increase-size)
(image-mouse-decrease-size): Mention 'image-recompute-map-p' in
docstrings.
* etc/NEWS: Add NEWS entry.
* doc/lispref/display.texi (Image Descriptors): Document :original-map
and new user option 'image-recompute-map-p'.
* test/lisp/image-tests.el (image--compute-map-and-original-map):
Test 'image--compute-map' and 'image--compute-original-map'.
(image-tests--map-equal): Add equality predicate to compare image maps.
(image-create-image-with-map): Test that 'create-image' adds :map
and/or :original-map as appropriate.
(image-transform-map): Test functions related to transforming maps.
(Bug#69602)
2024-03-23 19:54:53 +02:00
..
charsets ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
e
forms ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
gnus
images 'read-passwd' can toggle the visibility of passwords 2024-02-25 10:06:09 +01:00
nxml
org ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
refcards Revert "Update to Org 9.6.19" 2024-02-17 18:53:05 +02:00
schema ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
srecode ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
themes Update modus-themes to their 4.4.0 version 2024-03-17 18:46:15 +02:00
tutorials Update Polish translation of tutorial 2024-01-20 09:18:27 +02:00
AUTHORS ; Regenerate lisp/ldefs-boot.el and etc/AUTHORS for 29.2. 2024-01-18 05:17:44 -05:00
CALC-NEWS Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
ChangeLog.1 Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
compilation.txt Make Compilation mode recognize Lua errors 2024-01-10 14:48:00 +01:00
COPYING
DEBUG ; * etc/DEBUG: Add a blurb about disabling ASLR on macOS. 2024-01-26 21:02:10 +02:00
DEVEL.HUMOR
DISTRIB ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
edt-user.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
EGLOT-NEWS Eglot: bump to 1.17 2024-01-25 12:20:27 +00:00
emacs-buffer.gdb ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
emacs-mail.desktop
emacs.desktop
emacs.icon
emacs.metainfo.xml ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
emacs.service
emacs_lldb.py Add a proper type for obarrays 2024-02-23 13:02:27 +01:00
emacsclient-mail.desktop Add 'server-eval-args-left' to server.el 2023-10-29 14:10:23 +02:00
emacsclient.desktop Make emacsclient handle org-protocol:// links 2023-09-18 12:54:22 +02:00
enriched.txt ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
ERC-NEWS Make erc-cmd-AMSG session local; add /GMSG, /AME and /GME 2024-02-23 18:45:44 -08:00
ETAGS.EBNF ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
ETAGS.README ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
future-bug
gnus-tut.txt ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
grep.txt ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
HELLO ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
HISTORY * Update etc/HISTORY and ChangeLog.4 for 29.2 release. 2024-01-18 04:40:34 -05:00
JOKES
MACHINES Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
MH-E-NEWS ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
NEWS Recompute :map when image :scale, :rotation, or :flip changes 2024-03-23 19:54:53 +02:00
NEWS.1-17 ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
NEWS.18 ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
NEWS.19 ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
NEWS.20 Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
NEWS.21 Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
NEWS.22 Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
NEWS.23 Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
NEWS.24 Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
NEWS.25 * etc/NEWS.25: Add 'obarrayp' as well 2024-02-24 13:12:20 -05:00
NEWS.26 Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
NEWS.27 ; Delete pre-release remainder in NEWS.27 2024-01-19 00:40:12 +01:00
NEWS.28 ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
NEWS.29 ; Merge NEWS.29. 2024-01-20 06:40:54 -05:00
NEXTSTEP ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
NXML-NEWS ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
ORG-NEWS ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
org.gnu.emacs.defaults.gschema.xml ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
package-keyring.gpg * etc/package-keyring.gpg: Update with new key 2022-12-28 12:19:02 -05:00
PROBLEMS Merge from origin/emacs-29 2024-02-24 06:35:16 -05:00
ps-prin0.ps ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
ps-prin1.ps ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
publicsuffix.txt Update publicsuffix.txt from upstream 2023-12-10 14:44:41 +01:00
README ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
rgb.txt Revert "Update etc/rgb.txt from X.Org upstream" 2023-10-16 08:56:53 +08:00
ses-example.ses ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
spook.lines
TERMS ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
TODO * etc/TODO (Native compiler improvements): Remove an entry as completed. 2024-02-29 14:21:49 +01:00
w32-feature.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
yow.lines

This directory contains the architecture-independent files used by or
with Emacs.  This includes some text files of documentation for GNU
Emacs or of interest to Emacs users, and the file of dumped docstrings
for Emacs functions and variables.

COPYRIGHT AND LICENSE INFORMATION FOR IMAGE FILES

File: emacs.icon
  Author: Sun Microsystems, Inc
  Copyright (C) 1999, 2001-2024 Free Software Foundation, Inc.
  License: GNU General Public License version 3 or later (see COPYING)