* autoloads load file is wrong in Emacs 28 when using symlink
@ 2021-11-06 13:40 Jiacai Liu
0 siblings, 0 replies; 5+ messages in thread
From: Jiacai Liu @ 2021-11-06 13:40 UTC (permalink / raw)
To: emacs-devel
Hi,
I build emacs-28 branch with commit 3f998a3fc8 on macOS, it seems
autoloads load-file is different from emacs 27 when
package-install. Take undo-tree as an example:
;; 27
(autoload 'undo-tree-mode "undo-tree" "some docstring" t nil)
;; 28
(autoload 'undo-tree-mode
"../../../../../../.config/emacs/elpa/undo-tree-0.7.5/undo-tree"
"some docstring" t nil)
After some debugging, I found this issue is related with symlink.
I usually put all my dotfiles in a git repo(emacs included), and
soft link to ~/.config/emacs, then load file is wrong as above.
If I put config directly at ~/.config/emacs, load file is the same
as Emacs 27.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: autoloads load file is wrong in Emacs 28 when using symlink
[not found] <m1zgqhbgnb.fsf@liujiacai.net>
@ 2021-12-08 13:36 ` Jiacai Liu
[not found] ` <m1ilvzdxqt.fsf@liujiacai.net>
1 sibling, 0 replies; 5+ messages in thread
From: Jiacai Liu @ 2021-12-08 13:36 UTC (permalink / raw)
To: emacs-devel; +Cc: larsi
[-- Attachment #1: Type: text/plain, Size: 601 bytes --]
Hi,
It has been some time since I file this issue, it seems somebody
else also have this issue[1].
After some debugging, I find find-file-visit-truename must be nil
inside autoload-find-generated-file in order to get the correct
path.
I haven't found which commit introduce this issue, the last commit
here is from larsmagne
-
https://github.com/emacs-mirror/emacs/commit/6f36b67e4146ef4610916b7903fd292e1308daf5#diff-92d5169948d378056770f5d1da4c8a70bd4fff0e9d92fe87fa21dd2a8303c13f
Maybe he can share some ideas about this issue.
[1] https://github.com/raxod502/straight.el/issues/701
[-- Attachment #2: autoloads-patch.el --]
[-- Type: application/emacs-lisp, Size: 541 bytes --]
[-- Attachment #3: Type: text/plain, Size: 753 bytes --]
On Sat, Nov 06, 2021 at 09:40:21 PM +0800, Jiacai Liu wrote:
> Hi,
>
> I build emacs-28 branch with commit 3f998a3fc8 on macOS, it
> seems autoloads load-file is different
> from emacs 27 when package-install. Take undo-tree as an
> example:
>
> ;; 27
> (autoload 'undo-tree-mode "undo-tree" "some docstring" t nil)
>
> ;; 28
> (autoload 'undo-tree-mode
> "../../../../../../.config/emacs/elpa/undo-tree-0.7.5/undo-tree"
> "some
> docstring" t nil)
>
>
> After some debugging, I found this issue is related with
> symlink.
>
> I usually put all my dotfiles in a git repo(emacs included), and
> soft link to ~/.config/emacs, then
> load file is wrong as above.
> If I put config directly at ~/.config/emacs, load file is the
> same as Emacs 27.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: autoloads load file is wrong in Emacs 28 when using symlink
[not found] ` <m1ilvzdxqt.fsf@liujiacai.net>
@ 2021-12-09 1:16 ` Lars Ingebrigtsen
2021-12-09 2:41 ` Jiacai Liu
[not found] ` <m1sfv2lcms.fsf@liujiacai.net>
0 siblings, 2 replies; 5+ messages in thread
From: Lars Ingebrigtsen @ 2021-12-09 1:16 UTC (permalink / raw)
To: Jiacai Liu; +Cc: emacs-devel
Jiacai Liu <hello@liujiacai.net> writes:
> It has been some time since I file this issue, it seems somebody else
> also have this issue[1].
>
> After some debugging, I find find-file-visit-truename must be nil
> inside autoload-find-generated-file in order to get the correct path.
I'm not quite sure I understand the issue. Can you report the problem
with `M-x report-emacs-bug', and give a recipe for how to reproduce the
problem, starting from "emacs -Q"?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: autoloads load file is wrong in Emacs 28 when using symlink
2021-12-09 1:16 ` Lars Ingebrigtsen
@ 2021-12-09 2:41 ` Jiacai Liu
[not found] ` <m1sfv2lcms.fsf@liujiacai.net>
1 sibling, 0 replies; 5+ messages in thread
From: Jiacai Liu @ 2021-12-09 2:41 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: emacs-devel
> Can you report the problem with `M-x report-emacs-bug'
After some search, I found someone else already did this.
- https://lists.gnu.org/r/bug-gnu-emacs/2021-12/msg00376.html
If it helps, below is the step I use to reproduce this issue:
1. mkdir an empty dir, and soft link to emacs config dir
`mkdir /tmp/emacs-conf && ln -s /tmp/emacs-conf $HOME/.emacs.d`
2. (setq find-file-visit-truename t)
3. package-install undo-tree
Then open generated autoloads file for undo-tree under
$HOME/.emacs.d/undo-tree-${version}/undo-tree-autoloads.el,
the content is something like
(autoload 'undo-tree-mode
"../../../../../Users/${username}/.emacs.d/elpa/undo-tree-0.7.5/undo-tree"
"long docsting" t nil)
In Emacs 27, the content is
(autoload 'undo-tree-mode "undo-tree" "long docsting" t nil)
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#52292: autoloads load file is wrong in Emacs 28 when using symlink
[not found] ` <m1sfv2lcms.fsf@liujiacai.net>
@ 2021-12-10 0:35 ` Lars Ingebrigtsen
0 siblings, 0 replies; 5+ messages in thread
From: Lars Ingebrigtsen @ 2021-12-10 0:35 UTC (permalink / raw)
To: Jiacai Liu; +Cc: 52292
Jiacai Liu <hello@liujiacai.net> writes:
>> Can you report the problem with `M-x report-emacs-bug'
>
> After some search, I found someone else already did this.
> - https://lists.gnu.org/r/bug-gnu-emacs/2021-12/msg00376.html
>
> If it helps, below is the step I use to reproduce this issue:
>
> 1. mkdir an empty dir, and soft link to emacs config dir
> `mkdir /tmp/emacs-conf && ln -s /tmp/emacs-conf $HOME/.emacs.d`
> 2. (setq find-file-visit-truename t)
> 3. package-install undo-tree
>
> Then open generated autoloads file for undo-tree under
> $HOME/.emacs.d/undo-tree-${version}/undo-tree-autoloads.el,
> the content is something like
>
> (autoload 'undo-tree-mode
> "../../../../../Users/${username}/.emacs.d/elpa/undo-tree-0.7.5/undo-tree"
> "long docsting" t nil)
>
> In Emacs 27, the content is
> (autoload 'undo-tree-mode "undo-tree" "long docsting" t nil)
(Re-sent to land in the bug tracker.)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-12-10 0:35 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <m1zgqhbgnb.fsf@liujiacai.net>
2021-12-08 13:36 ` autoloads load file is wrong in Emacs 28 when using symlink Jiacai Liu
[not found] ` <m1ilvzdxqt.fsf@liujiacai.net>
2021-12-09 1:16 ` Lars Ingebrigtsen
2021-12-09 2:41 ` Jiacai Liu
[not found] ` <m1sfv2lcms.fsf@liujiacai.net>
2021-12-10 0:35 ` bug#52292: " Lars Ingebrigtsen
2021-11-06 13:40 Jiacai Liu
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.