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:05:13 +0200 Message-ID: <87o8b5jbau.fsf@gnus.org> References: <83wq7o4hzn.fsf@gnu.org> <87h7gxoqcz.fsf_-_@gnus.org> <83bl7583hf.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="2080"; 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:06: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 1m3eaX-0000LG-TM for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Jul 2021 15:06:09 +0200 Original-Received: from localhost ([::1]:56318 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3eaW-0005ey-Qi for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Jul 2021 09:06:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50334) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3eaQ-0005eP-0p for bug-gnu-emacs@gnu.org; Wed, 14 Jul 2021 09:06:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60037) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m3eaP-0004O4-Pn for bug-gnu-emacs@gnu.org; Wed, 14 Jul 2021 09:06:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m3eaP-0006fD-Lc for bug-gnu-emacs@gnu.org; Wed, 14 Jul 2021 09:06:01 -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:06:01 +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.162626792425530 (code B ref 18823); Wed, 14 Jul 2021 13:06:01 +0000 Original-Received: (at 18823) by debbugs.gnu.org; 14 Jul 2021 13:05:24 +0000 Original-Received: from localhost ([127.0.0.1]:43346 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3eZo-0006di-3A for submit@debbugs.gnu.org; Wed, 14 Jul 2021 09:05:24 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:43182) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3eZm-0006dM-0w for 18823@debbugs.gnu.org; Wed, 14 Jul 2021 09:05: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=TzOanPzNkthH8JDRalAUCvWdspngD48TwL8TFwy8Pm4=; b=kq1Td7raWpSP066eGk6/hjSxH2 MLLTcwPobyb5igX86JyBybwBVBz2UqX7Cjzy2Cazb31LmJITGMEvytKCWKZ7z0DT2xIOQ58+LSim3 PlqirKqCQeiWf+b8PvcGMS2Ggwjh1aKqCtAS+B7tBfiFFYfH0ahMZv9cAJislilsRTG8=; 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 1m3eZd-0003oF-PX; Wed, 14 Jul 2021 15:05:16 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEXJTiNeNh3QnUJ2 iIb///8ZJKJIAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+UHDgw7AZoNrXgAAAGSSURBVDjLfZOBlYQg DEQhNkCwgRAbULb/3m4mwK635zueT4FPZgLBlErW9KeVlFQLP08gl5yC5njQ1XhhegFF7w7KDcyI Uj5SOqXying0n1LpCTwsZ7pCIK+vlpL8A/QRlABYcC5x861bmI+czpvxObIqAYyv7Wsfn9FvoPfR bJkeJEKpTXdOis8lpI5B2nWnr7thCitzVukd3370K0DDwQoz0sqI7LUdEzjPsHirjpncqu6Y8N6q KX3c6xERWAuwvdQtdg63F1ZsAJTSJgESgDs7/CIQhgE0QEMIvRCwAKVcq2ZGGHaFnO4g1yJQQmoE 49YEcNVL9awqAeLUCODSAbCFAdIHCCMu6AGYJVke2AJBmgBJBkDbnFIm7BtWfoPoi0cFfQ4I0uzH bZ8hBy7UOYFRSlVC9iIYFguUiG77AuIoKivLcwN4R8j4jwGQ+R3w4gh/WwjaNA+gARhQaRMgioWZ ceEAmNkEpgPoAKw8Dgrlrr8BQ2wUNUB9Axy4RUalDjA9uBmJTHVKtbyASRi3EJYfSpRQ5vKf36gA AAAldEVYdGRhdGU6Y3JlYXRlADIwMjEtMDctMTRUMTI6NTk6MDErMDA6MDDUe9a8AAAAJXRFWHRk YXRlOm1vZGlmeQAyMDIxLTA3LTE0VDEyOjU5OjAxKzAwOjAwpSZuAAAAAABJRU5ErkJggg== X-Now-Playing: Coldcut's _What's That Noise?_: "Not Paid Enough" In-Reply-To: <83bl7583hf.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 14 Jul 2021 15:49:32 +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:209925 Archived-At: Eli Zaretskii writes: > To insert text, you must make the buffer into which you insert be the > current buffer. That's how the low-level insertion primitives work. > So what will insert-into-buffer do that is different (and more > efficient) than the contortion you need to do now, which involves > temporary switch to the target buffer? It just does the contortion for you. 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... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no