rougier / nano-emacs

GNU Emacs / N Λ N O - Emacs made simple
GNU General Public License v3.0
2.5k stars 191 forks source link

Broken nano-help #110

Closed brongulus closed 2 years ago

brongulus commented 2 years ago

Currently I'm using nano emacs with straight and invoking nano-help results in erroneous behaviour, invoking nano-help from M-x results in:

Wrong type argument: stringp, nil

I think it might be due to how the function nano-help is defined and dependent on load-path and how nano-emacs hardcodes the load-path variable to call nano-help from ./ the nano-help directory.

Another thing that I observed while checking for load-path's value is that it has "/Users/rougier/Documents/GitHub/nano-emacs" explicitly mentioned so I think that nano-help is dependent on that hardcoded path? Would that be a correct assumption?

The only possible way to open nano-help right now is to manually go to the $EMACSDIR/straight/repos/nano-emacs and then call the function.

rougier commented 2 years ago

Thanks for the report and the fix. I've answered in the PR.