[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#45433: 28.0.50; byte/native-compiling ivy and ox-publish possibly mi
From: |
Andrea Corallo |
Subject: |
bug#45433: 28.0.50; byte/native-compiling ivy and ox-publish possibly miscompiled |
Date: |
Mon, 04 Jan 2021 22:12:20 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Mauricio Collares <mauricio@collares.org> writes:
> Andrea Corallo <akrl@sdf.org> writes:
>
>> Hi Mauricio,
>>
>> I had a look, this issue is not native compiler related as I get the
>> same behavior byte compiling.
>>
>> The trouble seems with `ivy-add-face-text-property' being defaliased,
>> ATM I'm not sure what is going on tho.
>>
>> Andrea
>
> Hi Andrea,
>
> Here's an attempt at a minimized testcase:
>
> * Contents of ~/ivy.el:
>
> (defun ivy--call-marked (action)
> (let* ((prefix-len (length ivy-mark-prefix))
> (marked-candidates
> (mapcar
> (lambda (s)
> (let ((cand (substring s prefix-len)))
> (if ivy--directory
> (expand-file-name cand ivy--directory)
> cand)))
> ivy-marked-candidates))
> (multi-action (ivy--get-multi-action ivy-last)))))
>
> (defalias 'ivy--file-local-name
> (if (fboundp 'file-local-name)
> #'file-local-name
> (lambda (file)
> (or (file-remote-p file 'localname) file))))
>
> (provide 'ivy)
>
> * Run the following three commands (note that skipping either command 1
> or command 2 makes the last command pass):
>
> $ emacs -Q --batch --eval "(add-to-list 'load-path \"/home/collares\")"
> -f batch-byte-compile ~/ivy.el
>
> $ emacs -Q --batch --eval "(add-to-list 'load-path \"/home/collares\")"
> --eval "(setq comp-eln-load-path '(\"/home/collares/\"))" -f
> batch-native-compile ~/ivy.el
>
> $ emacs -Q --batch --eval "(add-to-list 'load-path \"/home/collares\")"
> --eval "(setq comp-eln-load-path '(\"/home/collares/\"))" --eval "(require
> 'ivy)"
>
> With this, I still get the same error locally:
Hi Mauricio,
thanks for reducing, I can reproduce this version too.
It looks more like a load issue then a miscompilation. The interesting
part is that a priori I don't see how having the bytecode compiled
should influence loading the eln, very curious...
I'm calling the day but I'll prepare a debug build and look into it
further tomorrow.
Andrea
- bug#45433: 28.0.50; byte/native-compiling ivy and ox-publish possibly miscompiled,
Andrea Corallo <=