alezost / guix.el

Emacs interface for GNU Guix package manager
https://emacs-guix.gitlab.io/website/
GNU General Public License v3.0
139 stars 16 forks source link

Invoking guix-packages by name in empty line fails #45

Closed nico202 closed 3 years ago

nico202 commented 3 years ago

when the point is on an empty line, this fails:

https://github.com/alezost/guix.el/blob/8ce6d219e87c5097abff9ce6f1f5a4293cdfcb31/elisp/guix-ui-package.el#L1516

with: split-string: Wrong type argument: stringp, nil

something like this should work:

(or (thing-at-point 'symbol t) "")
alezost commented 3 years ago

Thank you for the report! As you see I rarely check open issues :-)