emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/hyperdrive ee53b3be2d: Fix: (he//api-then) Get encoding fr


From: ELPA Syncer
Subject: [nongnu] elpa/hyperdrive ee53b3be2d: Fix: (he//api-then) Get encoding from path in case entry has no name
Date: Fri, 1 Nov 2024 04:00:19 -0400 (EDT)

branch: elpa/hyperdrive
commit ee53b3be2d067e11e64e4ba8d6d6690418f91ee9
Author: Joseph Turner <joseph@ushin.org>
Commit: Joseph Turner <joseph@ushin.org>

    Fix: (he//api-then) Get encoding from path in case entry has no name
---
 hyperdrive-lib.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hyperdrive-lib.el b/hyperdrive-lib.el
index 0464cd20ba..bb20af9469 100644
--- a/hyperdrive-lib.el
+++ b/hyperdrive-lib.el
@@ -258,7 +258,7 @@ it exists.  Persists ENTRY's hyperdrive.  Invalidates ENTRY 
display."
         ;; TODO: After the resolution of <https://todo.sr.ht/~ushin/ushin/211>,
         ;; use the encoding specified in the 'Content-Type' header.  For now, 
we
         ;; rely on the guesswork of `detect-coding-region'.
-        (if-let ((filename-encoding (auto-coding-alist-lookup (he/name 
entry))))
+        (if-let ((filename-encoding (auto-coding-alist-lookup (he/path 
entry))))
             filename-encoding
           (pcase (detect-coding-string (plz-response-body response) t)
             ((or 'undecided 'undecided-dos 'undecided-mac 'undecided-unix)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]