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#18823: Built-in support for visiting compressed files Date: Wed, 14 Jul 2021 15:50:09 +0200 Message-ID: <87bl75j97y.fsf@gnus.org> References: <83wq7o4hzn.fsf@gnu.org> <87h7gxoqcz.fsf_-_@gnus.org> <83bl7583hf.fsf@gnu.org> <87o8b5jbau.fsf@gnus.org> <834kcx828n.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23352"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: dmoncayo@gmail.com, 18823@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 14 15:51:10 2021 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 1m3fI5-0005pD-5s for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Jul 2021 15:51:09 +0200 Original-Received: from localhost ([::1]:43844 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3fI4-0003bf-81 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Jul 2021 09:51:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60956) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3fHy-0003bI-Un for bug-gnu-emacs@gnu.org; Wed, 14 Jul 2021 09:51:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60141) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m3fHy-00027k-ND for bug-gnu-emacs@gnu.org; Wed, 14 Jul 2021 09:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m3fHy-0003vH-EM for bug-gnu-emacs@gnu.org; Wed, 14 Jul 2021 09:51: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: Wed, 14 Jul 2021 13:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18823 X-GNU-PR-Package: emacs Original-Received: via spool by 18823-submit@debbugs.gnu.org id=B18823.162627062315023 (code B ref 18823); Wed, 14 Jul 2021 13:51:02 +0000 Original-Received: (at 18823) by debbugs.gnu.org; 14 Jul 2021 13:50:23 +0000 Original-Received: from localhost ([127.0.0.1]:43454 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3fHK-0003uF-Rj for submit@debbugs.gnu.org; Wed, 14 Jul 2021 09:50:23 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:43636) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3fHJ-0003u3-8B for 18823@debbugs.gnu.org; Wed, 14 Jul 2021 09:50:22 -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=gB68dK+kDUQ05FP/elv1a75d3ddnIlATKEtsKtY4O6Q=; b=uwjlmjTQDZeKXwcamWjP8IWxbr P/x+7Ok/4uzY5SKKTFGxC4vuxj2I0siMxCd7BxJwS6rrRX9UItNWmOImH2pUQWGCDNeNGYc+DRd8k ruUSAYXghqH43U/C8d+gIcxWViK5uqPDZdy3DL1tLFQ0lAnO1k8LSzmCPVFMqihqe34Q=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m3fH9-00049U-L8; Wed, 14 Jul 2021 15:50:14 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAG1BMVEXk49z4+PLS0sqt raZ/hm4rLR9OVytVWUn///+1xwLuAAAAAWJLR0QIht6VegAAAAd0SU1FB+UHDg0RAfSkC2cAAAGX SURBVDjLlZRLkoIwEIYRL6BzAitY5V5g2JtoDqCdXGA67iGB608HIiSMLqarCFR/6cffJmab/Vvb Zf8FXxk97I35iBGcF18Zg+Nj9k+fu5Cqxi74C4fnGDx1SPatA5hSXY1rQ0CPlwg41FOVk0ZsI4Co aGNZUijEoFAGjO4BBoVK3WOAoMEYCgQw9zRCGTKkN64BEgK/4Z50pWAE/t0mwLxA2u6VnAEYiAXW Y2H/KJOM5CO49qRh7JdAMqseSRn5aV2PBD0ASHUQoKGoHwLmBfYLAPsOeM2gRv0r4L1KLTUWECwB DHyjflG0xMCRMo9o7C8d+3BKfK4n+kxBeThXtN8SejgwyYE7KRxuGrSSzuj4iBaAehDOSuvG2jNg NWghbkJIHH+nBRw9cFYIfLAZ5D5XDUMPanBQzmCXjdflOrXLzyvACkntal6wNWCsGux84yaQz/es eH3sPci3VlZCtFXXNBfBpW1jIPlFWNlwK6ToAsi2ZVWJ8sx5U5WdECWfwNdhqcGWGhuKIGMs/wM+ /MkUh7cg/wWZ2eYgU4514AAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMS0wNy0xNFQxMzoxNzowMSsw MDowMKf9TAgAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMDctMTRUMTM6MTc6MDErMDA6MDDWoPS0 AAAAAElFTkSuQmCC X-Now-Playing: My Cat Is An Alien's _Mort Aux Vaches_: "Blue Abstractions" In-Reply-To: <834kcx828n.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 14 Jul 2021 16:16:24 +0300") 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:209933 Archived-At: Eli Zaretskii writes: >> This sort of thing comes up mostly when doing stuff with temporary >> buffers, so I wonder whether we should consider adding a special form >> for it. That is, something like `with-temp-buffer-and-insert' that >> would work identically as `with-temp-buffer', but insert the contents of >> the buffer into the current buffer before killing the temporary >> buffer... > > If it's something one must do a lot, maybe... I grepped the Emacs tree. There's only ten instances of (insert (with-temp-buffer ...)) But there's over 200 instances of (with-temp-buffer ... (buffer-string)) where some of them basically eventually translate to inserting that into the current buffer -- some of which do the `insert-into-buffer' contortion themselves. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no