Subject: bug#62713: 29.0.60; DocView shows wrong conversion indicator when configured to use svg images

From: Visuwesh <[email-masked]>
Date: Fri, 29 Sep 2023 20:25:09 +0530

[வெள்ளி செப்டம்பர் 29, 2023] Stefan Kangas wrote:

> Tassilo Horn <[email-masked]> writes:
>
>> Stefan Kangas <[email-masked]> writes:
>>
>>>> This particular problem can be easily solved by the following simple
>>>> patch instead:
>>>
>>> Tassilo, could you perhaps take a look at this patch?
>>
>> Yes, the simple patch looks good and fixes the bug.  Feel free to commit
>> it.
>
> Great, thanks.
>
> Visuwesh, could you please send the patch as an attachment instead?  We
> prefer that patches are created with a command like `git format-patch
> -1'.

Please find attached patch.

>From a73ab9af07f5867da3b6ff97c73d35230ea21c1e Mon Sep 17 00:00:00 2001
From: Visuwesh <[email-masked]>
Date: Fri, 29 Sep 2023 20:23:56 +0530
Subject: [PATCH] Fix doc-view conversion indicator for svg images

* lisp/doc-view.el (doc-view-pdf->png-converter-mupdf): Show the
corrector pdf->svg indicator when producing svg images.  bug#62713
---
 lisp/doc-view.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/doc-view.el b/lisp/doc-view.el
index b856b09c8b7..c0d27bdc68a 100644
--- a/lisp/doc-view.el
+++ b/lisp/doc-view.el
@@ -1283,7 +1283,8 @@ doc-view-pdf->png-converter-mupdf
                                     (expand-file-name
                                      doc-view-epub-user-stylesheet)))))))
     (doc-view-start-process
-     "pdf->png" doc-view-pdfdraw-program
+     (concat "pdf->" (symbol-name doc-view--image-type))
+     doc-view-pdfdraw-program
      `(,@(doc-view-pdfdraw-program-subcommand)
        ,@options
        ,pdf
-- 
2.40.1