From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: ynyaaa@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#46464: 27.1; wide images are hidden partially at the right edge of window Date: Mon, 15 Feb 2021 22:40:56 +0900 Message-ID: <86pn11fnyv.fsf@gmail.com> References: <86zh09s4m9.fsf@gmail.com> <83wnvcceao.fsf@gnu.org> <86y2fqg1rw.fsf@gmail.com> <83h7mebpgc.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18135"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46464@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 15 14:45:00 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lBeBQ-0004aa-7J for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Feb 2021 14:45:00 +0100 Original-Received: from localhost ([::1]:58582 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBeBP-0008MU-7e for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Feb 2021 08:44:59 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37122) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBe8Y-0005Q4-2i for bug-gnu-emacs@gnu.org; Mon, 15 Feb 2021 08:42:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54343) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lBe8X-0007pT-R0 for bug-gnu-emacs@gnu.org; Mon, 15 Feb 2021 08:42:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lBe8X-0000Zc-KU for bug-gnu-emacs@gnu.org; Mon, 15 Feb 2021 08:42:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: ynyaaa@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Feb 2021 13:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46464 X-GNU-PR-Package: emacs Original-Received: via spool by 46464-submit@debbugs.gnu.org id=B46464.16133964732138 (code B ref 46464); Mon, 15 Feb 2021 13:42:01 +0000 Original-Received: (at 46464) by debbugs.gnu.org; 15 Feb 2021 13:41:13 +0000 Original-Received: from localhost ([127.0.0.1]:37656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lBe7k-0000YP-8s for submit@debbugs.gnu.org; Mon, 15 Feb 2021 08:41:13 -0500 Original-Received: from mail-pl1-f175.google.com ([209.85.214.175]:46594) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lBe7g-0000Y8-Dy for 46464@debbugs.gnu.org; Mon, 15 Feb 2021 08:41:11 -0500 Original-Received: by mail-pl1-f175.google.com with SMTP id u11so3740391plg.13 for <46464@debbugs.gnu.org>; Mon, 15 Feb 2021 05:41:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=BkzMbk1ivoey3jIjj6WWXAQ+0kocDuAFkdO0CgqY6Uo=; b=pfOcK9k6NraBLeZ9BXm+brMnzyzNgp78xoSramp2GVs/9i3Caorvx/xX7/3bYqBhkh aiG47viBANJUiy4SBQJ33jwkV+NFWEbbaKCpD/+qqgjRYs3rn9/NE/Y3nXpJdyzgYP/K fPECE/xxVLm+RhJD9Fpd1uP/uWiMkJXPCrNH/hH+qgsG1oxXhTzQvFYHIy5Z2PfG2/j0 aR6IiaZYqONF45k7tlfVCLK7WSv5QM2e0/yYyXPoZdJZx50D/o++E25s1V5/Z3886Gkn DW2ePbA+sbQIazrGAk8MAJgtGJCdvQ9go9fbk32FrE6C/MRGXjMSerAhoUqIkDuGgJPv NLvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=BkzMbk1ivoey3jIjj6WWXAQ+0kocDuAFkdO0CgqY6Uo=; b=XH/E1Dl7A8p28rY/jjdIon6ZJVR01Bpa6C4PtWVTRuMsGB8lxxUg694zKMIunlgT/d yu6dtSSNcwwbnXX6yd/HgRBmm7DfifG8inmKMezOpFL0R7TilZimmvrQnfikqnpgviaB eR7BzrONxIpmDlRQdyySXMIFQ9BycBlrRZ/eTUgpu19HrHBlxa2q7qRfukPizbPPZyJ9 AWuFWIGnLkjQgT1+97q4+PdVomf3Ix/vRStVb6v6rVcmKtkbZMilMQ1HfbzKj8fprBf7 3JQ+bJFqkoBFWCMJT8BnLKnqHx7ML59LCC8eLYrp1XEMSTyGeVLhEwQUj1EHqeIgPzz6 jxZg== X-Gm-Message-State: AOAM531iWhCqyrjCTo0jBhBQ4KgwZ8xuGrVUCnyz0AAOQSEEF0hxoUZP 6+1ybYOXE6YmpynrEhW2KzAdMAqSwA4= X-Google-Smtp-Source: ABdhPJwUQL+Jz9v2uK2siKRAaZtCpD+DVza32/id2KjbpC1YhCgP/az1+Kd/A1BQx1CmDpyHCdUH8A== X-Received: by 2002:a17:90a:1503:: with SMTP id l3mr16106531pja.41.1613396462175; Mon, 15 Feb 2021 05:41:02 -0800 (PST) Original-Received: from HP (east42-p109.eaccess.hi-ho.ne.jp. [219.121.173.110]) by smtp.gmail.com with ESMTPSA id c18sm19596686pfo.171.2021.02.15.05.41.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Feb 2021 05:41:01 -0800 (PST) In-Reply-To: <83h7mebpgc.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 14 Feb 2021 18:10:11 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:200059 Archived-At: Eli Zaretskii writes: >> From: ynyaaa@gmail.com >> Cc: 46464@debbugs.gnu.org >> Date: Sun, 14 Feb 2021 23:30:27 +0900 >> >> > This is the intended behavior: Emacs silently crops images that don't >> > fit on their screen line. >> >> What means by "images that don't fit on their screen line"? > > It means the image is wider than the space left on the screen line > from the image's position to the edge of the window. > >> If a edge of a image is near the right edge of the window, >> the image is mostly hidden. It is not preferable. > > That's how Emacs behaved since v21. If the width of the iamge is 200 pixels, typing some characters at the beginning of the same line, the image moves to the right and gets hidden gradually and is wrapped to the next visual line. If the width of the image is 150 pixels, the entire image does not get hidden and it is wrapped when the image right edge is going to across the right edge of the window. What is the difference? >> And if :margin is specified, the image may be hidden completely. >> >> By the way, if :margin is specified, a partial image on the right edge >> of the window is displayed with right margin. > > I don't think I understand what you mean by that. Can you show a test > case? Evaluating the form below, four images are supposed to be displayed in the first visual line. But the fourth image is invisible. Similar for the second visual line. If ':margin 5' is replaced with ':margin 20', three images are displayed in the first to third visual lines. Third image in each visual line is truncated at the x-coordinate 20 pixels apart from the right edge of the window. It looks as if the image is not truncated and is small. (dotimes (i 10) (let* ((w 200) (h 30) (sw 6) (color (nth (% i 5) '("red" "green" "blue" "yellow" "orange"))) (svg (format " " w h (/ sw 2) (/ sw 2) (- w sw) (- h sw) color sw))) (insert-image (create-image svg 'svg t :margin 5 :scale 1))))