-
Notifications
You must be signed in to change notification settings - Fork 151
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
C-h f
for some functions link to the loading file instead of their source file
#1022
Comments
Is your emacs directory symlinked? |
ah yes, not directly but a parent directory is |
See: #701 This should really be fixed upstream. There is a an emacs-devel thread linked in that issue. It would be good to make some noise there as this bug could be fixed in Emacs 29 if it is acted on soon. Once it's fixed upstream, I'd be much more willing to accept something like #945 as a workaround. |
Thanks, I parsed quickly, if I understand correctly:
Also:
|
Yes, but it has not seen any activity in quite some time.
There's an open pr at #945, I have not tested it, so I'm not sure if it will fix the problem for you.
Do you mean Emacs 29's |
please try evaluating the following test case and sharing the results of the Test Case(straight-bug-report
:user-dir "straight.1022"
:post-bootstrap
(straight-use-package 'consult)
(message "%s"
(describe-function #'consult-multi-occur)))
OutputBootstrapping straight.el...
Bootstrapping straight.el...done
Looking for gnu-elpa-mirror recipe → Cloning melpa...
Looking for gnu-elpa-mirror recipe → Cloning melpa...done
Looking for nongnu-elpa recipe → Cloning gnu-elpa-mirror...
Looking for nongnu-elpa recipe → Cloning gnu-elpa-mirror...done
Looking for emacsmirror-mirror recipe → Cloning nongnu-elpa...
Looking for emacsmirror-mirror recipe → Cloning nongnu-elpa...done
Looking for emacsmirror-mirror recipe → Cloning el-get...
Looking for emacsmirror-mirror recipe → Cloning el-get...done
Looking for straight recipe → Cloning emacsmirror-mirror...
Looking for straight recipe → Cloning emacsmirror-mirror...done
Building straight...
Building straight...done
Test run with version: prerelease (HEAD -> develop, origin/develop) b89a0f7 2022-11-26
Cloning consult...
Cloning consult...done
Building consult...
Building consult → Cloning compat...
Building consult → Cloning compat...done
Building consult → Building compat...
Building consult → Building compat...done
Building consult...
Building consult...done
Type M-x help-quit in help window to delete it
consult-multi-occur is an autoloaded interactive Lisp function in
‘consult.el’.
(consult-multi-occur BUFS REGEXP &optional NLINES)
Improved version of ‘multi-occur’ based on ‘completing-read-multiple’.
See ‘multi-occur’ for the meaning of the arguments BUFS, REGEXP and NLINES.
Packages:
"straight" n/a develop b89a0f7 2022-11-26
"org-elpa" n/a n/a
"melpa" n/a master ed9e52d5 2022-12-05
"gnu-elpa-mirror" n/a master a6d1865 2022-12-01
"nongnu-elpa" n/a main ddfb68cf9f 2022-12-03
"el-get" melpa master caf80e20 2022-11-24
"emacsmirror-mirror" n/a master cae49f7 2022-11-22
"consult" melpa main df87710 2022-12-05
"compat" gnu-elpa-mirror master 7ca7d30 2022-11-23
|
sorry indeed As for the test, see below. Test Case(straight-bug-report
:user-dir "straight.1022"
:post-bootstrap
(straight-use-package 'consult)
(message "%s"
(describe-function #'consult-multi-occur)))
OutputLooking for emacsmirror-mirror recipe → Cloning el-get...
Looking for emacsmirror-mirror recipe → Cloning el-get...done
Looking for straight recipe → Cloning emacsmirror-mirror...
Looking for straight recipe → Cloning emacsmirror-mirror...done
Building straight...
Building straight...done
Test run with version: prerelease (HEAD -> develop, origin/develop) b89a0f7 2022-11-26
Cloning consult...
Cloning consult...done
Building consult...
Building consult → Cloning compat...
Building consult → Cloning compat...done
Building consult → Building compat...
Building consult → Building compat...done
Building consult...
Building consult...done
Type M-x help-quit in help window to delete it
consult-multi-occur is an autoloaded interactive Lisp function in
‘consult.el’.
(consult-multi-occur BUFS REGEXP &optional NLINES)
Improved version of ‘multi-occur’ based on ‘completing-read-multiple’.
See ‘multi-occur’ for the meaning of the arguments BUFS, REGEXP and NLINES.
Packages:
"straight" n/a develop b89a0f7 2022-11-26
"org-elpa" n/a n/a
"melpa" n/a master ed9e52d5 2022-12-05
"gnu-elpa-mirror" n/a master a6d1865 2022-12-01
"nongnu-elpa" n/a n/a
"el-get" melpa master caf80e20 2022-11-24
"emacsmirror-mirror" n/a master cae49f7 2022-11-22
"consult" melpa main df87710 2022-12-05
"compat" gnu-elpa-mirror master 7ca7d30 2022-11-23
As explained above, this way didn't trigger the bug, only if using the Test Case(straight-bug-report
:user-dir "straight.1022"
:post-bootstrap
(eval-when-compile
(straight-use-package 'use-package))
(setq straight-use-package-by-default t)
(use-package consult)
(message "%s"
(describe-function #'consult-multi-occur)))
OutputLooking for emacsmirror-mirror recipe → Cloning el-get...
Looking for emacsmirror-mirror recipe → Cloning el-get...done
Looking for straight recipe → Cloning emacsmirror-mirror...
Looking for straight recipe → Cloning emacsmirror-mirror...done
Building straight...
Building straight...done
Test run with version: prerelease (HEAD -> develop, origin/develop) b89a0f7 2022-11-26
Cloning use-package...
Cloning use-package...done
Building use-package...
Building use-package → Building bind-key...
Building use-package → Building bind-key...done
Building use-package...
Building use-package...done
Cloning consult...
Cloning consult...done
Building consult...
Building consult → Cloning compat...
Building consult → Cloning compat...done
Building consult → Building compat...
Building consult → Building compat...done
Building consult...
Building consult...done
Type M-x help-quit in help window to delete it
consult-multi-occur is an autoloaded interactive byte-compiled Lisp
function in ‘consult.el’.
(consult-multi-occur BUFS REGEXP &optional NLINES)
Improved version of ‘multi-occur’ based on ‘completing-read-multiple’.
See ‘multi-occur’ for the meaning of the arguments BUFS, REGEXP and NLINES.
Packages:
"straight" n/a develop b89a0f7 2022-11-26
"org-elpa" n/a n/a
"melpa" n/a master ed9e52d5 2022-12-05
"gnu-elpa-mirror" n/a master a6d1865 2022-12-01
"nongnu-elpa" n/a n/a
"el-get" melpa master caf80e20 2022-11-24
"emacsmirror-mirror" n/a master cae49f7 2022-11-22
"use-package" melpa master 9078709 2022-11-27
"bind-key" melpa master 9078709 2022-11-27
"consult" melpa main df87710 2022-12-05
"compat" gnu-elpa-mirror master 7ca7d30 2022-11-23
|
I added |
please try the reproduction recipe in the emacs devel thread here and let me know if you are able to reproduce the same issue: |
can't reproduce. To note that on OSX, the built-in ln command (that I use) doesn't have the |
Not sure if that's helpful, but digging a bit more, it appears Value:
(....
("/Users/aavanian/.emacs.d/init.el"
....
(defun . consult-multi-occur)
....)
("/Users/aavanian/.emacs.d/straight/build/consult/consult.elc"
....
(defun . consult-multi-occur)
....)
....) |
What's wrong
C-h f
for some functions link to myinit.e
instead of the actual source file whenstraight
is configured to work withuse-package
Directions to reproduce
early-init.el
:init.el
With the config above:
describe-function
onconsult-multi-occur
(for example) showscosult-multi-occur is an autoloaded interactive native-compiled Lisp function in ‘../../../init.el’.
consult-multi-occur is an interactive Lisp closure in ‘consult.el’.
)Notes
Test Case
2022-12-06 14:00:37
darwin
prerelease (HEAD -> master, origin/master, origin/HEAD) 3eca39d 2022-11-25
GNU Emacs 29.0.60 (build 1, aarch64-apple-darwin22.1.0, NS appkit-2299.00 Version 13.0.1 (Build 22A400)) of 2022-12-05
Output
The text was updated successfully, but these errors were encountered: