all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#35899: 26.1; move-beginning-of-line sometimes does not move to beginning of line
@ 2019-05-25 13:31 Markus Triska
  2019-05-25 14:38 ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Markus Triska @ 2019-05-25 13:31 UTC (permalink / raw)
  To: 35899


Please download hello.png with:

    $ wget https://www.metalevel.at/ei/hello.png

and then, starting Emacs with "emacs -Q", evaluate the following form:

    (progn
      (goto-char (point-min))
      (save-excursion (insert "\n"))
      (goto-char (+ (point) (cadr (insert-image-file "hello.png"))))
      (move-beginning-of-line nil))

This yields: 592, and does not move point to the beginning of the line.

However, the documentation of move-beginning-of-line includes:

   (If there’s an image in the line, this disregards newlines
   which are part of the text that the image rests on.)

Hence, I expect this to move to position 1. For comparison, when I press
C-a, it does move to position 1, as expected.

Would you please consider adjusting the function so that it behaves as
documented? Alternatively, could you please provide this feature in a
different way?

Thank you and all the best,
Markus

In GNU Emacs 26.1 (build 3, x86_64-pc-linux-gnu, X toolkit, Xaw scroll bars)
 of 2019-04-09 built on mt-laptop
Windowing system distributor 'The X.Org Foundation', version 11.0.11906000





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-08-21 13:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-25 13:31 bug#35899: 26.1; move-beginning-of-line sometimes does not move to beginning of line Markus Triska
2019-05-25 14:38 ` Eli Zaretskii
2019-06-21 10:05   ` Noam Postavsky
2019-06-21 12:30     ` Eli Zaretskii
2019-06-22 22:54       ` Noam Postavsky
2019-06-23 15:54         ` Eli Zaretskii
2019-06-23 16:31           ` Noam Postavsky
2020-08-21 13:09             ` Lars Ingebrigtsen

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.