From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rahguzar via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#66676: 29.1; Should some aspects of shr rendering be configurable Date: Sat, 04 Nov 2023 10:06:54 +0100 Message-ID: <87cywpj2wj.fsf@zohomail.eu> References: <87v8azxek4.fsf@zohomail.eu> <83o7groufg.fsf@gnu.org> <87r0lnx7kx.fsf@zohomail.eu> <87zg06r7fk.fsf@zohomail.eu> <83lebe547t.fsf@gnu.org> Reply-To: Rahguzar Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1781"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.10.7; emacs 29.1 Cc: Lars Ingebrigtsen , 66676@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 04 10:15:50 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 1qzCkw-0000EL-3Q for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Nov 2023 10:15:50 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qzCka-00062k-Rv; Sat, 04 Nov 2023 05:15:28 -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 1qzCkZ-00061g-2D for bug-gnu-emacs@gnu.org; Sat, 04 Nov 2023 05:15:27 -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 1qzCkY-0006i8-Pz for bug-gnu-emacs@gnu.org; Sat, 04 Nov 2023 05:15:26 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qzCl8-0000a0-Co for bug-gnu-emacs@gnu.org; Sat, 04 Nov 2023 05:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Rahguzar Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Nov 2023 09:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66676 X-GNU-PR-Package: emacs Original-Received: via spool by 66676-submit@debbugs.gnu.org id=B66676.16990893412188 (code B ref 66676); Sat, 04 Nov 2023 09:16:02 +0000 Original-Received: (at 66676) by debbugs.gnu.org; 4 Nov 2023 09:15:41 +0000 Original-Received: from localhost ([127.0.0.1]:60882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qzCkn-0000ZE-5a for submit@debbugs.gnu.org; Sat, 04 Nov 2023 05:15:41 -0400 Original-Received: from sender11-pp-o91.zoho.eu ([31.186.226.249]:25151) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qzCkl-0000Z6-FB for 66676@debbugs.gnu.org; Sat, 04 Nov 2023 05:15:40 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1699089296; cv=none; d=zohomail.eu; s=zohoarc; b=Or13LbP6lWj2HqQydZRw3PkVHJ2srvNEIMleWVFU+mTbrdUveCn7O+pq/r9t0hLnLbl1WQoUS09paaRkVry+WZqGmXivuoyMXwnFHyDbQOaDGNRfpqVhnvcJdtEIFflA+fh4pCSFO62NiWWYPMo1OnGnv4HbtYJSz9ofM43G2pk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1699089296; h=Content-Type:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=Qnb6Kj4NOn2hs598/0dwlcW+MPrrJK7ZqaA2a2+8xtw=; b=DOOIrzkWdvkO1Lx2V4TU1tDwrRjFMCS0070r83fTFviz2HujtMryt6pVE8vq76tkp9hSIwHFRkkmawZ5JdfwwKT8JOXnSeQaVo+0wrJMqPopSqklhLSvGYYn54NTi0zeIj4FK4V6Zty/Myf4PtMnwKdbC68bZvuZyqewMBdZm2g= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=zohomail.eu; spf=pass smtp.mailfrom=rahguzar@zohomail.eu; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1699089296; s=zoho; d=zohomail.eu; i=rahguzar@zohomail.eu; h=References:From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:In-reply-to:Message-ID:MIME-Version:Content-Type:Message-Id:Reply-To; bh=Qnb6Kj4NOn2hs598/0dwlcW+MPrrJK7ZqaA2a2+8xtw=; b=vGZRa1qnc2APMUM8Jp44r2QD7/Co7xA8xE6zAzhIT285gYXtfMFAAcaKm1J/r4Wi wNH+rnO7RXRRnIhJEHZFHZs53t3ukI0tiaMTyn+6daOeCZ/1hsajjAqfYaTXko4/EjM 6Q0USktZ4Y2Of84o5GKBwXerNpW5ERrtZ0xIX9Q4= Original-Received: from localhost (78-73-246-128-no600.tbcn.telia.com [78.73.246.128]) by mx.zoho.eu with SMTPS id 1699089294421825.4333982651348; Sat, 4 Nov 2023 10:14:54 +0100 (CET) In-reply-to: <83lebe547t.fsf@gnu.org> X-ZohoMailClient: External 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:273761 Archived-At: Please note that there is bug in `shr--inline-image-p` defined in one of the patches. Fixing it amounts too: (unless (integerp max-width) (setq max-width (* max-width (window-width nil t)))) (unless (integerp max-height) - (setq max-width (* max-width (frame-char-height)))) + (setq max-height (* max-height (frame-char-height)))) (and (< (car size) max-width) - (< (cdr size) max-width))))) + (< (cdr size) max-height))))) I will add it to the next revision of the patch along with any other changes due to feedback. Thanks, Rahguzar