[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive 6874248ed5 16/26: Fix: (hyperdrive-write-buffer
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive 6874248ed5 16/26: Fix: (hyperdrive-write-buffer) Clean up encoded buffer |
Date: |
Fri, 30 Aug 2024 16:00:11 -0400 (EDT) |
branch: elpa/hyperdrive
commit 6874248ed5594713691e9fd59b0e9cbc0757eb9f
Author: Joseph Turner <joseph@ushin.org>
Commit: Joseph Turner <joseph@ushin.org>
Fix: (hyperdrive-write-buffer) Clean up encoded buffer
Suggested-by: Adam Porter <adam@alphapapa.net>
---
hyperdrive.el | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/hyperdrive.el b/hyperdrive.el
index 7ea7f0a3bf..a573b30bb3 100644
--- a/hyperdrive.el
+++ b/hyperdrive.el
@@ -566,9 +566,13 @@ For non-interactive use, see `hyperdrive-write'."
;; and lets us avoid making another request for
;; metadata.
(set-visited-file-modtime (current-time))))
- (h/message "Wrote: %S to \"%s\"" name url))
+ (h/message "Wrote: %S to \"%s\"" name url)
+ (when (buffer-live-p encoded-buffer)
+ (kill-buffer encoded-buffer)))
:else (lambda (plz-error)
- (h/message "Unable to write: %S: %S" name plz-error)))
+ (h/message "Unable to write: %S: %S" name plz-error)
+ (when (buffer-live-p encoded-buffer)
+ (kill-buffer encoded-buffer))))
(h/message "Saving to \"%s\"..." url)
;; TODO: Reload relevant hyperdrive-dir buffers after writing buffer (if
ewoc buffers display version, then possibly all ewoc buffers for a given
hyperdrive should be reloaded)
))
- [nongnu] elpa/hyperdrive e103791cbc 20/26: Merge: Fix text encoding issues, (continued)
- [nongnu] elpa/hyperdrive e103791cbc 20/26: Merge: Fix text encoding issues, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive 6a582d3cff 24/26: Docs: Note about non-UTF-8 encoded text, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive bccee74f7a 02/26: Meta: Update changelog, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive 740c21afdb 01/26: Change: (hyperdrive-write-buffer) Don't allocate unnecessary string, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive 8187adc021 07/26: Change: Distinguish URL-encoding from text-encoding in docstrings, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive 7a1d35cfb4 10/26: Fix: (h/upload-file) Calculate file size, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive 7db0f02d6e 08/26: Fix: (he//api-then) Decode response bodies, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive c4fe98415b 13/26: Meta: Acknowledge Eli Zaretskii, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive 0ee751c591 14/26: Fix: (h/write-buffer) Fix charset in entry type, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive 4ef6496965 11/26: Fix: (h/dir--yank-media-image-handler) Calculate file size, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive 6874248ed5 16/26: Fix: (hyperdrive-write-buffer) Clean up encoded buffer,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive 0043faa8c7 17/26: Fix: (hyperdrive-write-buffer) Get file size from encoded buffer, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive 0702f40645 19/26: Comment: Add TODO, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive ab77599b03 23/26: Tidy: (CHANGELOG), ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive 417c43a429 21/26: Change: (h//gateway-stop-default) Make longer timeout, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive 15a83a252e 06/26: Change: (h/write) Clarify BODY argument type in docstring, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive 60763306a0 12/26: Meta: Update changelog, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive e09ead79c4 15/26: Comment: Add FIXME, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive 40475d9d13 22/26: Change: (hyperdrive-menu) Change description to "..." from "starting", ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive 4d10e5584b 25/26: WIP: (hyperdrive--gateway-stop-default) Make asynchronous, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive cbe2a28041 03/26: Fix: (h/write) Encode metadata JSON as UTF-8, ELPA Syncer, 2024/08/30