all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jiacai Liu <hello@liujiacai.net>
To: emacs-devel@gnu.org
Cc: larsi@gnus.org
Subject: Re: autoloads load file is wrong in Emacs 28 when using symlink
Date: Wed, 08 Dec 2021 21:36:47 +0800	[thread overview]
Message-ID: <22519.748068747$1638973828@news.gmane.org> (raw)
In-Reply-To: <m1zgqhbgnb.fsf@liujiacai.net>

[-- 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.

       reply	other threads:[~2021-12-08 13:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <m1zgqhbgnb.fsf@liujiacai.net>
2021-12-08 13:36 ` Jiacai Liu [this message]
     [not found] ` <m1ilvzdxqt.fsf@liujiacai.net>
2021-12-09  1:16   ` autoloads load file is wrong in Emacs 28 when using symlink 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='22519.748068747$1638973828@news.gmane.org' \
    --to=hello@liujiacai.net \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.