From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pengji Zhang Newsgroups: gmane.emacs.help Subject: How to tweak EWW readable mode? Date: Mon, 6 May 2024 19:23:38 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5836"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 07 06:11:12 2024 Return-path: Envelope-to: geh-help-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 1s4CAa-0001Px-IS for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 07 May 2024 06:11:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s4C9x-0006ud-S5; Tue, 07 May 2024 00:10:33 -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 1s47gb-0005dT-7E for help-gnu-emacs@gnu.org; Mon, 06 May 2024 19:23:58 -0400 Original-Received: from mail-qk1-x729.google.com ([2607:f8b0:4864:20::729]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s47gY-0008QR-6x for help-gnu-emacs@gnu.org; Mon, 06 May 2024 19:23:56 -0400 Original-Received: by mail-qk1-x729.google.com with SMTP id af79cd13be357-7928b705f89so207446185a.1 for ; Mon, 06 May 2024 16:23:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715037830; x=1715642630; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=vsBF12QOAibrqyhNJq2q4kjjtfoRE3rN6zns3qfn/HM=; b=TGAafckxV0xg9oWy+vttd8RtGWqiMziYsuM5m3cVd98EAvj8m79gbruh4SUOvFKaZ3 Zsa5EbgMhUlLwHP5/IzbJthz9qsVXi7nAtTJNZpdkbc28g0AXGFvMleVo6nxHbBMmlaG sV7uq/bUc2jnrgERxuApFCjfntPZEE5NR/wHZ+OgJWH7Wc0VpNnoYhnVYq8R1TLejqOx euyx6igTkzbT2OW3yV4YXWLXXjb3ipoMOjGy3Pw71vDGa16MPeE34q+vzRHtDQKPsi8k k7WCtAuWDs2x6CIQsj82Z3zZmD0HlRsSeps5KUxDGeAgedIUJgA50qEo7j1flsye16CG cilA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715037830; x=1715642630; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=vsBF12QOAibrqyhNJq2q4kjjtfoRE3rN6zns3qfn/HM=; b=TGkyU5tQrukGRT95lTXj5OWKiX929ffFPSttce3L+G3VrQtAPbMnqdm39N9PJL4E4N dy5FqFZA22fCBFQdtbwH1IBaIG9gYmq6Oko3Ueb21TGJ3Ai41ojG9YKZbxox0CsnvbpT LoMLN8fPrScB3VlhBH+hcOCUFEFwhHUz02JVei+edwNi8aFHlaH+11deiAU1wTtDWsVJ fOQSZFTcyXBaGZQqhUFX6I61X6ME2Y0+LtZT7bujOw23I+Bm8ofbasPaa8/fsHzHOoIY 7Yv5i4HKnQUsGBnmdTQX9tnKLjlwveKcPN4KNJb3Iie+M34eyT5L629r1qBn6x44LR0u kX6A== X-Gm-Message-State: AOJu0YyABofS2ehIK36uQra1ZMXfMG2pC0wuT4kKFGk+qpnI7GnfF7EB cfZ9QtMPocUzvytAWQr7zKjyEzoqRe08bl+N/YsuWIBMzWlRE740jPm4+me875UT6mlMHCPwCC7 mbPA6PpW9YApGH9kV0meT1r8s5Pu7CkqG X-Google-Smtp-Source: AGHT+IEhHWTq6ITZFzZdDMppb/jIr2dICSzaQAIhjvTm5zl4Z5hR3wjhCRaUyfpttyjsNDS2SAd+0u0ADL6P+3FaGVo= X-Received: by 2002:a05:6214:766:b0:6a0:c9ef:3aae with SMTP id f6-20020a056214076600b006a0c9ef3aaemr13734419qvz.23.1715037829368; Mon, 06 May 2024 16:23:49 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::729; envelope-from=kunhtkun@gmail.com; helo=mail-qk1-x729.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 07 May 2024 00:10:32 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146604 Archived-At: Hi, I am using Emacs master, and I really like the changes to EWW readable in 72972118e6f5831f200108cd7b80bf86538c265e and 4b0f5cdb01fbd05c8184a89fa8543eb5600fb4f8. Many thanks to Jim! However, now I could not find an easy way to tweak readable mode. For example, I would like to use a narrower width for a web page only in readable mode. I used to add an `:around' advice to `eww-readable': (define-advice eww-readable (:around (fn &rest args)) (let ((shr-max-width 60)) (apply fn args))) Now `eww-readable' could toggle readable mode and pages may also be in readable mode by default. So that advice does not work any more. I wonder if there is a reliable way to tweak the rendering and apply some settings only in EWW readable mode? Thanks! Pengji