Questions tagged [compression]

9 questions
3
votes
0 answers

Native data compression in emacs?

Is it possible to compress data (an Elisp string for example) using Emacs (without calling 3rd-party commands)? I noticed Emacs uses zlib, but I only found zlib-decompress-region.
ideasman42
  • 8,375
  • 1
  • 28
  • 105
2
votes
1 answer

How can I determine if a file is compressed from Elisp?

I know that I can use the file command to determine this, but I'd like a cross-platform solution using elisp only (or as few subprocesses as possible). I have the compressed data in a variable called response; you can use the following shell…
Sean Allred
  • 6,861
  • 16
  • 85
1
vote
0 answers

How can I edit files within encrypted zip files?

Currently I can use emacs to edit text files within zip files no problem. I simply get a directory listing from which I can choose the document that I want to edit. Is there anyway to edit text files that are located within encrypted zip files? I…
Hitomi86
  • 13
  • 2
1
vote
0 answers

Can emacs emulate zgrep -a in zrgrep?

Currently I can grep (in command line) the gzip files I receive using the command zgrep -a something logs.tar.gz it outputs every line inside the logs.tar.gz but without the file where it was found, so is 80% useful. Then I turned to emacs but when…
user12383
1
vote
2 answers

`url-inhibit-uncompression` is ineffective; emulating curl with url.el

Consider the following: (let ((url-inhibit-uncompression t)) (switch-to-buffer (url-retrieve-synchronously "http://api.stackexchange.com/2.2/filter/create"))) I would expect to get something that looks mostly like garbage as the content…
Sean Allred
  • 6,861
  • 16
  • 85
1
vote
1 answer

Generate/use etags for compressed (.el.gz) libraries?

I wanted to generate a tags table for the lisp libraries that my Emacs came with, located in /path/to/emacs/25.1/lisp/ There's a mix of compressed and uncompressed files in that directory, so I ran etags *.el{.gz,} to build the TAGS file. Now…
ivan
  • 1,928
  • 10
  • 20
0
votes
1 answer

dired, zip as a directory

With archivemount, one can mount a zip file. Is there any way to treat a zip file just like a directory in dired? The we wouldn't have to unzip the archive, which takes time and you probably need to clean up as well. Another alternative is mounting,…
Jason Hunter
  • 519
  • 2
  • 9
0
votes
0 answers

Show progress bar for long operation?

Linux Mint 20.2 Emacs 27.2 When I do some long operation not show progress bar. Is it possible to show progress bar in this situation? Examples of long operations: Copy many files Copy big files Compress/Uncompress archive Connect by Tramp to…
a_subscriber
  • 3,854
  • 1
  • 17
  • 47
0
votes
0 answers

How can I make dired display .tbz2 files

When using dired and I see a .tar.xz file I can visit this file in other window () and the file is a browsable tar archive. How do I get .tbz2 files to behave in the same way? I am using emacs versions 25 and 27
mmmmmm
  • 491
  • 1
  • 4
  • 19