Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emacs hexl-mode #25756

Closed
evrim opened this issue May 13, 2017 · 3 comments
Closed

emacs hexl-mode #25756

evrim opened this issue May 13, 2017 · 3 comments

Comments

@evrim
Copy link
Contributor

evrim commented May 13, 2017

Issue description

emacs 25.1 hexl mode does not work, wrapper failure.

Steps to reproduce

M-x hexl-mode
Searching for program: No such file or directory, /nix/store/jkh5n5f7fw64rfkbb28nr82klpvjl9zp-emacs-25.1/libexec/emacs/25.1/x86_64-unknown-linux-gnu/hexl

$ find /nix/store/jkh5n5f7fw64rfkbb28nr82klpvjl9zp-emacs-25.1/libexec
/nix/store/jkh5n5f7fw64rfkbb28nr82klpvjl9zp-emacs-25.1/libexec
/nix/store/jkh5n5f7fw64rfkbb28nr82klpvjl9zp-emacs-25.1/libexec/.emacs-wrapped
/nix/store/jkh5n5f7fw64rfkbb28nr82klpvjl9zp-emacs-25.1/libexec/.emacs-wrapped/25.1
/nix/store/jkh5n5f7fw64rfkbb28nr82klpvjl9zp-emacs-25.1/libexec/.emacs-wrapped/25.1/x86_64-unknown-linux-gnu
/nix/store/jkh5n5f7fw64rfkbb28nr82klpvjl9zp-emacs-25.1/libexec/.emacs-wrapped/25.1/x86_64-unknown-linux-gnu/update-game-score
/nix/store/jkh5n5f7fw64rfkbb28nr82klpvjl9zp-emacs-25.1/libexec/.emacs-wrapped/25.1/x86_64-unknown-linux-gnu/profile
/nix/store/jkh5n5f7fw64rfkbb28nr82klpvjl9zp-emacs-25.1/libexec/.emacs-wrapped/25.1/x86_64-unknown-linux-gnu/movemail
/nix/store/jkh5n5f7fw64rfkbb28nr82klpvjl9zp-emacs-25.1/libexec/.emacs-wrapped/25.1/x86_64-unknown-linux-gnu/hexl
/nix/store/jkh5n5f7fw64rfkbb28nr82klpvjl9zp-emacs-25.1/libexec/.emacs-wrapped/25.1/x86_64-unknown-linux-gnu/rcs2log
/nix/store/jkh5n5f7fw64rfkbb28nr82klpvjl9zp-emacs-25.1/libexec/emacs

Technical details

17.03.1123.4a7a03913d (Gorilla)

@evrim
Copy link
Contributor Author

evrim commented May 13, 2017

seems like emacs is looking for a wrong path for hexl. any suggestions to fix it in .emacs.d/init.el?

@pbogdan
Copy link
Member

pbogdan commented May 13, 2017

I haven't tried it but perhaps you can use hexl-program variable to override the path, and point it at /nix/store/jkh5n5f7fw64rfkbb28nr82klpvjl9zp-emacs-25.1/libexec/.emacs-wrapped/25.1/x86_64-unknown-linux-gnu/hexl (with the downside of needing to be updated if the hash of the package changes for any reason).

hexl-program is a variable defined in ‘hexl.el’.
Its value is "hexl"

  This variable may be risky if used as a file-local variable.

Documentation:
The program that will hexlify and dehexlify its stdin.
‘hexl-program’ will always be concatenated with ‘hexl-options’
and "-de" when dehexlifying a buffer.

You can customize this variable.

@ttuegel
Copy link
Member

ttuegel commented May 13, 2017

This is actually a bug in wrapGAppsHook. It is generating a wrapper for the directory libexec/emacs, probably because it is "executable" and so the wrapper generator thinks it should be wrapped.

EDIT: This has been fixed in master, it looks like we only need to backport that fix to release-17.03.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants