Questions tagged [binary]
11 questions
26
votes
4 answers
Prebuilt Ubuntu Emacs "25.1"
Where can I find pre-built Emacs for what Ubuntu calls emacs 25.1?

turbopape
- 363
- 1
- 3
- 9
8
votes
2 answers
Make emacs automatically open binary files in hexl-mode
How can I make emacs automatically open binary files in hexl-mode? It's probably sufficient to define "binary" as "contains a null byte" (I suppose https://github.com/audreyr/binaryornot could be used if that ends up being an insufficient…

asmeurer
- 1,552
- 12
- 30
6
votes
1 answer
Batch loading binary files
I just discovered vlf-mode (View Large Files) and I am using it to view a large binary file in hexl-mode and read certain metadata from headers within the file. It works great, with one exception. When I move to another "batch" within the file,…

nispio
- 8,175
- 2
- 35
- 73
5
votes
3 answers
How can I convert hexidecimal values to base 10 in hexl-mode?
A nice feature of viewing binary files with hexl-mode is it displays the equivalent ASCII values to the right of your hexidecimal lines.
Is there a way to make hexl-mode treat hex values as floats, doubles, or some other format instead of ASCII? If…

holocronweaver
- 1,319
- 10
- 22
4
votes
1 answer
Why are there 2 exact same Emacs Binaries in the bin folder?
In the Windows Binary release, if you look at the bin folder, you can see a binary file Emacs.exe and another one Emacs25.1.exe, these 2 files are exactly the same. And it seems that deleting Emacs25.1.exe doesn't affect it in anyway if you use…

SparedWhisle
- 569
- 3
- 13
2
votes
1 answer
Why is the emacs-25.1-2 binary for Windows so big?
why is it so big? almost twice the size of 25.1
what's new with it?

SparedWhisle
- 569
- 3
- 13
0
votes
2 answers
What makes the emacs binary file to be so large?
I have compiled emacs from source on Linux Mint 21 Cinnamon getting in the [src] folder after compilation four identical executables (see the question Why are there four identical executables generated while compiling from source? asking why…

Claudio
- 410
- 2
- 11
0
votes
0 answers
Detect whether a file is "binary" from elisp
I am wondering whether current versions of Emacs have any built in mechanism for guessing whether a file (that my elisp code is about to load, or perhaps has just loaded, into a buffer) is 'binary' rather than 'text'.
This is necessarily a fuzzy…

zwol
- 272
- 1
- 8
0
votes
1 answer
How to bind-pack list of null terminated strings?
According to the bindat spec docs, there are two specs to pack
strings. They are str and strz. Both are for a fixed length
string.
Now, suppose I want to pack ("some" "list" "of" "string), I should
do this:
(bindat-pack
'((elem0 strz 5)
(elem1…

Mas Bagol
- 103
- 4
0
votes
1 answer
Convert hex to int, little endian
I want to use Emacs to quickly convert hex to decimal.
If I type M-: #x1234 (i.e. 0x12 0x34), I get 4460 which (I think) means Emacs is interpreting it as big endian.
How might I convert hex to decimal as little endian, so that #1234 is interpreted…

Lorem Ipsum
- 4,327
- 2
- 14
- 35
0
votes
1 answer
nhexl-mode shows bytes 80-ff with 6-digit hex 3fff80–3fffff
When I open a file and activate nhexl-mode, non-ASCII characters are shown as 3fffxx in the hex column instead of xx. This disrupts the alignment.
I observed this on Emacs 23.2 and 24.4 started with emacs -Q. On Emacs 22.2, it works fine.
What's…

Gilles 'SO- stop being evil'
- 21,702
- 4
- 53
- 89