From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.bugs Subject: bug#32978: 26.1; newline-and-indent duplicates displayed image Date: Sun, 14 Oct 2018 22:40:50 +0200 Message-ID: <87lg70mfcd.fsf@metalevel.at> References: <87k1mtcvcf.fsf@metalevel.at> <83tvlotwz9.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1539549546 22443 195.159.176.226 (14 Oct 2018 20:39:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 14 Oct 2018 20:39:06 +0000 (UTC) User-Agent: Emacs/24.5 Cc: 32978@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 14 22:39:02 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gBnAE-0005k1-45 for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Oct 2018 22:39:02 +0200 Original-Received: from localhost ([::1]:49474 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gBnCK-0008Iv-KF for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Oct 2018 16:41:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gBnCD-0008Ip-Ag for bug-gnu-emacs@gnu.org; Sun, 14 Oct 2018 16:41:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gBnCA-0001uR-5V for bug-gnu-emacs@gnu.org; Sun, 14 Oct 2018 16:41:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45357) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gBnCA-0001uN-1E for bug-gnu-emacs@gnu.org; Sun, 14 Oct 2018 16:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gBnC9-0001oz-Uv for bug-gnu-emacs@gnu.org; Sun, 14 Oct 2018 16:41:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Markus Triska Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Oct 2018 20:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32978 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32978-submit@debbugs.gnu.org id=B32978.15395496546978 (code B ref 32978); Sun, 14 Oct 2018 20:41:01 +0000 Original-Received: (at 32978) by debbugs.gnu.org; 14 Oct 2018 20:40:54 +0000 Original-Received: from localhost ([127.0.0.1]:49615 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gBnC2-0001oU-9S for submit@debbugs.gnu.org; Sun, 14 Oct 2018 16:40:54 -0400 Original-Received: from metalevel.at ([78.46.218.83]:56488) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gBnC0-0001oL-4B for 32978@debbugs.gnu.org; Sun, 14 Oct 2018 16:40:52 -0400 Original-Received: by metalevel.at (Postfix, from userid 1000) id 3D241A0462; Sun, 14 Oct 2018 22:40:50 +0200 (CEST) In-Reply-To: <83tvlotwz9.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 14 Oct 2018 17:38:02 +0300") 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: 208.118.235.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:151252 Archived-At: Eli Zaretskii writes: >> In this case, I expect test.png to be displayed only in line 1. > > Not sure why you expected that. Perhaps you thought that forward-char > will move to after the image? Yes indeed! Since a single forward-char moves over the image when used interactively, I got the impression that the image is only a single character. From your code example, I see that this is not the case! I think a very good solution would be to document the return value of insert-image-file, i.e., to add to its description a statement such as: Returns list of absolute file name and number of characters inserted. What do you think? Thank you very much for looking into this! All the best, Markus