GNU bug report logs -
#18823
Built-in support for visiting compressed files
Previous Next
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
View this message in rfc822 format
Eli Zaretskii <eliz <at> gnu.org> writes:
> So I think the requested feature could be reworded as follows: enhance
> jka-compr to support internal decompression methods such as
> zlib-decompress-region.
I've now added this to Emacs 28. I added it as a fallback (when the
external programme doesn't exist), because that seemed least likely to
break something, but we could consider reversing the code (since it's
likely to be faster to use the internal function).
This also reminded me that I wanted to add a function that does the
"reverse" of `insert-buffer-substring', which I don't think we have. That
is, to allow saying
(let ((buf (current-buffer)))
(with-temp-buffer
(create-lots-of-data)
(insert-into-buffer buf (point-min) (point-max))))
in an efficient way. When dealing with temporary buffers, you have to
contort yourself to use `insert-buffer-substring' in the other
direction, and
(insert
(with-temp-buffer
...
(buffer-string)))
is pretty inefficient.
--
(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.