Kungsgeten / yankpad

Paste snippets from an org-mode file
MIT License
216 stars 18 forks source link

bug-hunter-file output #17

Closed boudiccas closed 7 years ago

boudiccas commented 7 years ago

my emacs is failing to load properly and according to bug-hunter-file, the problem lies in '''' Doing some initial tests... Initial tests done. Hunting for the cause... "/home/boudiccas/.emacs.d/elpa/yankpad-20170220.55/yankpad-autoloads.el", line 4 pos 0: The following error was signaled here: (wrong-type-argument stringp nil) Caused by the following expression: (add-to-list 'load-path (directory-file-name (or (file-name-directory nil) (car load-path)))) ''''

This is how its loaded in my config - '''' (use-package yankpad :ensure t :defer 10 :init (setq yankpad-file "/home/boudiccas/.emacs.d/org/yankpad.org") :config (bind-key "C-f1" 'yankpad-map) (bind-key "C-f2" 'yankpad-expand) ;; If you want to complete snippets using company-mode (add-to-list 'company-backends #'company-yankpad)) ''''

Kungsgeten commented 7 years ago

Hmm, that's strange. I'm not sure what could cause that problem.

E3D3 commented 7 years ago

same here. The yankpad-map function seems to be unknown. Evaluatings its definition in yankpad.el removed the error. I'm not good in Elisp but hopes this helps a little

Kungsgeten commented 7 years ago

Hmm, ok. I've added an autoload cookie for yankpad-map, please let me know if that helps. It will take a couple of hours before the new version is on MELPA though.

E3D3 commented 7 years ago

ehh, after reading your last comment I discovered that adding a (require 'yankpad) solved it, something I overlooked because I don't use 'use-package'. After updating to the new yankpad, I see that even the (require 'yankpad) is not necessary anymore to get the ;yankpad-map', although it is to get the 3 last yankpad functions. Sorry for my confusion & Thanks for your quick respons, and of course for sharing Yankpad.

Kungsgeten commented 7 years ago

This seems to be fixed? Please reopen otherwise.