GNU bug report logs -
#46552
27.1; image-mode should not move current point
Previous Next
Reported by: ynyaaa <at> gmail.com
Date: Tue, 16 Feb 2021 09:23:01 UTC
Severity: normal
Found in version 27.1
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #13 received at 46552-done <at> debbugs.gnu.org (full text, mbox):
> From: ynyaaa <at> gmail.com
> Date: Tue, 16 Feb 2021 18:21:43 +0900
>
>
> If an image which is a binary file is opened in image-mode,
> the current point is moved from the beginning of the buffer to
> elsewhere. And if the image display is toggled off and on again,
> the current point is moved to the end of the buffer.
> Then some operations, such as image-increase-size, cause an error.
The initial movement of point when visiting the image the first time
is a regression in Emacs 27 due to adding the Exif support: the code
which detects Exif moves point as side effect. I've now fixed that on
the emacs-27 branch.
Once point moves into the image data, the second "C-c C-c" moves point
to EOB, because we don't let point end up inside a display property.
So this part is not a separate problem, but a side effect of the first
part.
This bug report was last modified 4 years and 191 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.