all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: ynyaaa@gmail.com
Cc: 46552@debbugs.gnu.org
Subject: bug#46552: 27.1; image-mode should not move current point
Date: Tue, 16 Feb 2021 13:36:18 +0100	[thread overview]
Message-ID: <87blckxk8t.fsf@gnus.org> (raw)
In-Reply-To: <86v9astljs.fsf@gmail.com> (ynyaaa@gmail.com's message of "Tue, 16 Feb 2021 18:21:43 +0900")

ynyaaa@gmail.com writes:

> Example:
> C-x C-f /emacs-27.1-x86_64/x86_64/share/emacs/27.1/etc/images/splash.png RET
> M-: (point) RET
>   => 3 ;; check current point
> C-c C-c ;; change to text display
> M-: (point) RET
>   => 1 :: check current point
> C-c C-c ;; change to image display
> M-: (point) RET
>   => 25161 ;; check current point, value is EOB

This is most puzzling.  I can reproduce this problem in Emacs 28 without
a problem.  But:

C-c C-c runs the command image-toggle-display (found in
image-minor-mode-map), which is an interactive Lisp closure in
‘image-mode.el’.

If I instead say `M-: (image-toggle-display) RET' or even
`M-: (call-interactively 'image-toggle-display) RET', I can't.

And `C-c C-c' should be totally equivalent to the latter, right?

So what's moving point?  It must be some...  hook function or something
that reacts differently to the two things...  but looking through the
image-mode.el code, it's not obvious what that could be.

Anybody got any ideas here?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2021-02-16 12:36 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-16  9:21 bug#46552: 27.1; image-mode should not move current point ynyaaa
2021-02-16 12:36 ` Lars Ingebrigtsen [this message]
2021-02-16 16:32   ` Eli Zaretskii
2021-02-16 16:40     ` Lars Ingebrigtsen
2021-02-16 16:43       ` Lars Ingebrigtsen
2021-02-16 17:04       ` Eli Zaretskii
2021-02-16 17:09         ` Lars Ingebrigtsen
2021-02-16 17:39           ` Eli Zaretskii
2021-02-16 17:41             ` Lars Ingebrigtsen
2021-02-16 17:53               ` Eli Zaretskii
2021-02-16 21:46                 ` Lars Ingebrigtsen
2021-02-16 17:57           ` Eli Zaretskii
2021-02-16 18:10             ` Lars Ingebrigtsen
2021-02-16 17:17       ` Juri Linkov
2021-02-16 16:24 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87blckxk8t.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=46552@debbugs.gnu.org \
    --cc=ynyaaa@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.