So what i am trying to achieve is the auto-editing of hex files. For example - The user enters a hex address, and the hex value to replace at that address. This change is to be applied to 10 different binary files
Can anyone point me in the direction of auto-editing files(emacs auto opens the file, switches to hexl mode, jumps to address provided by user, inserts hex code at that address which is also provided by the user and saves file then finally exits) So far i have only been able to achieve auto opening to hexl mode by launching it like
emacs file -f hexl-mode -f hexl-goto-hex-address
From here on i have no idea how to input the hex address and then move onto changing the code
C-h i
and select "Emacs Lisp Intro" for an introduction and "elisp" for a reference manual. The function need to visit a the, perform the edit, and save the file. By the way, you don't have to use hexl, you can simply open the file and write an elisp function that replaces the characters you want replaced.