From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:863f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms12 with LMTPS id SGydIT7NqmBKLwAAsNZ9tg (envelope-from ); Sun, 23 May 2021 21:46:38 +0000 Received: from out1.migadu.com ([2001:41d0:2:863f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id WFa3DTrNqmBTMwAAbx9fmQ (envelope-from ); Sun, 23 May 2021 21:46:34 +0000 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1621806394; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=VB/d724/9S1GkcI/jVNmQiA0bnBy8vg3CkDbwKFb2uA=; b=AFvS1EwjoUqPeFwqay99sXz09Pw/qEmZyibJ0u6ChZRx4S6lw2NDX/Ip0w8AyFzXTU7Wyp YIbrV/ptr+Cv0d9lV8KCpRxfQhyhCbGpUKD1oYFF39rjoGB0d5Xx1xqCA6TsAeB/e3XW89 xrtJPmq6XwXuJOqN3jTRbMjogIWlMHCS2NrNoRcZUeTes80Ic30Bl2QM32H/k4b20zB+f6 8y9TtHgiELeiAalB4m4lPC6tc32soBcOcBM2TeQWabDOpuo+OTO25O0PTxM4SGd5OTQQxr 29XmO7mlb+Vzc2qu0lLQxa9rRhk/QsuGbk3djcxoRmcG52H1rmmEgHVtPdeh4Q== From: Kyle Meyer To: piem@inbox.kyleam.com Subject: [PATCH 0/5] Rework url-retrieve-synchronously wrapper Date: Sun, 23 May 2021 17:46:18 -0400 Message-Id: <20210523214623.31331-1-kyle@kyleam.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: kyle@kyleam.com X-TUID: XQAdzcKOXZBi The main change is in the second patch, which brings piem's url-retrieve-synchronously wrapper closer to url-insert-file-contents. The other patches are small tweaks and cleanups in related code. Note that this involves the removal of two functions, piem-download-and-decompress and piem-check-gunzip. I'd be surprised if there are any outside callers at this point, but either way I don't plan to add backward-compatibility kludges at this stage in development. [1/5] b4: Check for message ID match when using current buffer's URL [2/5] Rework url-retrieve-synchronously wrapper [3/5] piem-gunzip-buffer: Check for gunzip executable [4/5] piem-gunzip-buffer: Absorb caching of gunzip check [5/5] piem-gunzip-buffer: Don't assume t.mbox.gz is being decompressed piem-b4.el | 18 +++++----- piem.el | 104 ++++++++++++++++++++++++++--------------------------- 2 files changed, 60 insertions(+), 62 deletions(-) base-commit: 2333819ee6b632909ba7333eb61be1653f5d8203 -- 2.31.1