GNU bug report logs - #18823
Built-in support for visiting compressed files

Previous Next

Package: emacs;

Reported by: Dani Moncayo <dmoncayo <at> gmail.com>

Date: Sat, 25 Oct 2014 09:18:02 UTC

Severity: wishlist

Found in version 24.4

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #33 received at 18823 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 18823 <at> debbugs.gnu.org, dmoncayo <at> gmail.com
Subject: Re: bug#18823: Built-in support for visiting compressed files
Date: Wed, 14 Jul 2021 15:50:09 +0200
Eli Zaretskii <eliz <at> gnu.org> 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




This bug report was last modified 3 years and 310 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.