From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.bugs Subject: bug#35898: 26.1; line-beginning-position sometimes does not yield line beginning position Date: Sat, 25 May 2019 15:23:48 +0200 Message-ID: <878suullaz.fsf@metalevel.at> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="195659"; mail-complaints-to="usenet@blaine.gmane.org" To: 35898@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 25 15:25:11 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hUWff-000okU-2r for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 May 2019 15:25:11 +0200 Original-Received: from localhost ([127.0.0.1]:42215 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUWfe-0000Gu-3p for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 May 2019 09:25:10 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49117) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUWfX-0000Go-Kx for bug-gnu-emacs@gnu.org; Sat, 25 May 2019 09:25:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hUWfW-0008Sa-Ep for bug-gnu-emacs@gnu.org; Sat, 25 May 2019 09:25:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34868) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hUWfW-0008SM-9L for bug-gnu-emacs@gnu.org; Sat, 25 May 2019 09:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hUWfW-0004DD-2f for bug-gnu-emacs@gnu.org; Sat, 25 May 2019 09:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Markus Triska Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 May 2019 13:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35898 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.155879065116100 (code B ref -1); Sat, 25 May 2019 13:25:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 May 2019 13:24:11 +0000 Original-Received: from localhost ([127.0.0.1]:48406 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hUWeh-0004Bb-0t for submit@debbugs.gnu.org; Sat, 25 May 2019 09:24:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34545) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hUWef-0004BL-BQ for submit@debbugs.gnu.org; Sat, 25 May 2019 09:24:09 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:36944) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hUWea-0007tz-8J for submit@debbugs.gnu.org; Sat, 25 May 2019 09:24:04 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUWeZ-0008WH-2m for bug-gnu-emacs@gnu.org; Sat, 25 May 2019 09:24:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hUWeX-0007sw-V8 for bug-gnu-emacs@gnu.org; Sat, 25 May 2019 09:24:03 -0400 Original-Received: from metalevel.at ([78.46.218.83]:36900) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUWeX-0007pr-Ov for bug-gnu-emacs@gnu.org; Sat, 25 May 2019 09:24:01 -0400 Original-Received: from mt-Lenovo-ideapad-120S-11IAP (localhost.localdomain [127.0.0.1]) by metalevel.at (Postfix) with ESMTP id B8B4EA03CB for ; Sat, 25 May 2019 15:23:48 +0200 (CEST) Original-Received: by mt-Lenovo-ideapad-120S-11IAP (Postfix, from userid 1000) id 7704E14128F; Sat, 25 May 2019 15:23:48 +0200 (CEST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:159753 Archived-At: 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")))) (line-beginning-position)) This yields 592, whereas I expect it to yield 1. For comparison, when I do C-a to move to the beginning of the line, it moves to position 1, as expected. Is there a way to make line-beginning-position yield the line beginning position in cases like this? Would you please consider adding this feature? 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