From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#55825: [PATCH] Reconvert EPUB buffers when user CSS is changed Date: Tue, 07 Jun 2022 11:57:16 +0200 Message-ID: <87pmjkn6df.fsf@gnus.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22741"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 55825@debbugs.gnu.org To: Kjartan Oli Agustsson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 07 12:18:21 2022 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 1nyWI1-0005eT-D5 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Jun 2022 12:18:21 +0200 Original-Received: from localhost ([::1]:53708 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nyWHz-0003rV-SX for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Jun 2022 06:18:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34116) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyVyP-00025Y-Li for bug-gnu-emacs@gnu.org; Tue, 07 Jun 2022 05:58:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43965) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nyVyM-0004Yz-GJ for bug-gnu-emacs@gnu.org; Tue, 07 Jun 2022 05:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nyVyM-0000mR-Eo for bug-gnu-emacs@gnu.org; Tue, 07 Jun 2022 05:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Jun 2022 09:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55825 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 55825-submit@debbugs.gnu.org id=B55825.16545958472930 (code B ref 55825); Tue, 07 Jun 2022 09:58:02 +0000 Original-Received: (at 55825) by debbugs.gnu.org; 7 Jun 2022 09:57:27 +0000 Original-Received: from localhost ([127.0.0.1]:37852 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyVxm-0000l7-RO for submit@debbugs.gnu.org; Tue, 07 Jun 2022 05:57:27 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:50970) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyVxl-0000km-Rz for 55825@debbugs.gnu.org; Tue, 07 Jun 2022 05:57:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=xTR12JI8ddKnakJMOhVOjI360ClnmYoXY6TcGCLyhj0=; b=sbU7i/oTvOL0f5VIoyStclvhsD tz9lyv72ehEUcEZIRwTTwHLeKHBw75174gZ7ntMnhn6oWp84PZeMnHiZEfnbOWtlt9y4fHdZ/Neua cYn00b91Zhw+HVKT3//nDgx1xpUN6Q50DL5LQEeHZGbjC5jvsXTBzElCWI6UndQef8RI=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nyVxd-0000z3-37; Tue, 07 Jun 2022 11:57:20 +0200 X-Now-Playing: The Names's _In Mutation_: "Veronique" In-Reply-To: (Kjartan Oli Agustsson's message of "Mon, 06 Jun 2022 19:20:04 +0000") 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:233850 Archived-At: Kjartan Oli Agustsson writes: > Following my patch from a few months ago which added the > `doc-view-mutool-user-stylesheet' defcustom to Doc-View making use of > mutools ability to apply a user specified CSS file when converting a > EPUB file. Here is a patch to reconvert existing EPUB buffers when the > value of that variable (renamed to `doc-view-epub-user-stylesheet' as > discussed after my last patch) is changed, or the specified file is > changed, therefore applying the new CSS immediately. Did you mean to remove the doc-view-mutool-user-stylesheet user option instead of renaming it? In any case, the patch has the following warnings: In doc-view--epub-reconvert: doc-view.el:238:44: Warning: Unused lexical argument `event' In doc-view-custom-set-epub-user-stylesheet: doc-view.el:256:16: Warning: reference to free variable `doc-view-epub-user-stylesheet' -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no