Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
No locations on defun's defined by macro's (e.g. use-package :defer t) #18
Comments
|
OK, so I think this is due to When you run
However, it looks like If you put the following in an elisp file: (package-initialize)
(use-package counsel
:defer t
:config
(defun my-foo4 (x)
(with-ivy-window
(insert x))))
(require 'counsel)
That solves the example you've given, but I imagine you're not actually running |
unhammer
commented
Sep 6, 2017
|
Well, another way to make it happen is to |
unhammer commentedSep 1, 2017
(originally at https://www.reddit.com/r/emacs/comments/6x2pnx/helpful_adding_contextual_help_to_emacs/dmddom3/ )
I'm not sure if this is a bug or just something that's impossible to do, but there's no location info on
my-foowhen you doemacs -Qandeval-bufferon the below file:But if you do C-M-x on the defun, you will get location info.
Also, if you
eval-buffertwice, you'll also get location info. So presumably it's theeval-after-loadthat doesn't bother with carrying around location, which makes sense.Weird thing: If I remove the
:defer t, I don't get location info from helpful, but when I afterwards try plain C-h f, it shows the location, and then doing helpful-function after that shows the location.