From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#65187: 29.1; right edge of wide image can not be displayed in image-mode Date: Thu, 10 Aug 2023 11:22:25 +0300 Message-ID: <838rajjohq.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12658"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65187@debbugs.gnu.org To: awrhygty@outlook.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 10 10:23:08 2023 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 1qU0wm-00036A-5N for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Aug 2023 10:23:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qU0wh-0005fe-Cq; Thu, 10 Aug 2023 04:23:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qU0wg-0005fO-3o for bug-gnu-emacs@gnu.org; Thu, 10 Aug 2023 04:23:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qU0wf-0004WH-SO for bug-gnu-emacs@gnu.org; Thu, 10 Aug 2023 04:23:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qU0wf-0004iN-O0 for bug-gnu-emacs@gnu.org; Thu, 10 Aug 2023 04:23:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Aug 2023 08:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65187 X-GNU-PR-Package: emacs Original-Received: via spool by 65187-submit@debbugs.gnu.org id=B65187.169165573418064 (code B ref 65187); Thu, 10 Aug 2023 08:23:01 +0000 Original-Received: (at 65187) by debbugs.gnu.org; 10 Aug 2023 08:22:14 +0000 Original-Received: from localhost ([127.0.0.1]:41301 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qU0vu-0004hH-0i for submit@debbugs.gnu.org; Thu, 10 Aug 2023 04:22:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44634) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qU0vs-0004h4-B7 for 65187@debbugs.gnu.org; Thu, 10 Aug 2023 04:22:12 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qU0vf-0004HW-Cz; Thu, 10 Aug 2023 04:22:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:Subject:In-Reply-To:To:From: Date; bh=mkgU9KH8Q17BdvmHZIsVMMLt8KzO33sw6eyuZwMc0xY=; b=boKs5mYNE0qMtCeZbpEP DhJX9F19vWEtwMaqj9jY/cy1lyYS9QriyBzywN28rM5NGD925Xumuhy4o74bJgHJHoR8lGUTMNBdW DHqgCBjQwzNyaohMa/jCxUhEzh5OvF8VqhmpU3rAVAVCf/D7+Ut6JxJ3VvQm8jLxbk/4mfZIwqYTC iFZnnxoL8R+modlr6OiMQiwi9mVRtA0w9xKaQi27JZNUHIRRgT+hcQlg2ptp9eS38RS+VbuE6zseY KFpnE5+z9ByMJqvHcFplK2IUwqcfIHYMc8kBBvXhCPK7FaoBBb7e66lNj20Us797irs2iu9vE2Ly9 z8vdyUQ9NC4hVg==; In-Reply-To: (awrhygty@outlook.com) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:267103 Archived-At: > From: awrhygty@outlook.com > Date: Thu, 10 Aug 2023 09:00:55 +0900 >=20 >=20 > Evaluate the following sexp and type C-e to display the right side of > the image. The snippet you posted signaled an error: Debugger entered--Lisp error: (error "Defining as dynamic an already lexi= cal var" image-auto-resize) internal--define-uninitialized-variable(image-auto-resize "Non-nil to r= esize the image upon first display.\nIt...") custom-declare-variable(image-auto-resize (funcall #'#f(compiled-functi= on () #)) "Non-nil to resize the image upon first= display.\nIt..." :type (choice (const :tag "No resizing" nil) (const :tag = "Fit to window" fit-window) (other :tag "Scale down to fit window" t) (numb= er :tag "Scale factor" 1)) :version "29.1" :group image) byte-code("\300\301\302\303\304DD\305\306\307\310\311\312\313&\11\210\3= 00\314\302\303\315DD\316\306\317\310\311\312\313&\11\210\300\320\302\303\32= 1DD\322\306\323\310\324\312\313&\11..." [custom-declare-variable image-auto= -resize funcall function #f(compiled-function () #) "Non-nil to resize the image upon first display.\nIt..." :type (choice (= const :tag "No resizing" nil) (const :tag "Fit to window" fit-window) (othe= r :tag "Scale down to fit window" t) (number :tag "Scale factor" 1)) :versi= on "29.1" :group image image-auto-resize-max-scale-percent #f(compiled-func= tion () #) "Max size (in percent) to scale up to = when `image-a..." (choice (const :tag "No max" nil) natnum) image-auto-resi= ze-on-window-resize #f(compiled-function () #) "N= on-nil to resize the image whenever the window's ..." (choice (const :tag "= No auto-resize on window size change" nil) (integer :tag "Wait for number o= f seconds before resize" 1)) "27.1"] 10) (image-mode) (let ((image-auto-resize nil)) (image-mode)) (let* ((w (+ (window-pixel-width) 100)) (h 100) (stroke-width 4) (rect-= w (- w stroke-width)) (rect-h (- h stroke-width)) (rect-x (/ stroke-width 2= )) (rect-y (/ stroke-width 2)) (svg (format "\n\n\n \ " w h rect-w rect-h rect-x rect-y stroke-width))) (switch-to-buffer (generate-new-buffer "tmpsvg")) (insert svg) (setopt image-auto-resize nil) ; <<<<<<<<<<<<<<<<<<<<<< (image-mode)) > The vertical red line on the right edge should be displayed. > But it is not displayed. When I execute the modified version of the recipe, C-e does display the red line on the right edge of the image. So I cannot reproduce the problem.