From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#45433: 28.0.50; byte/native-compiling ivy and ox-publish possibly miscompiled Date: Wed, 30 Dec 2020 14:44:12 +0000 Message-ID: References: <877dp59aev.fsf@collares.org> <87pn2xy7ys.fsf@collares.org> <87wnx5woli.fsf@collares.org> <87k0sziell.fsf@collares.org> Reply-To: Andrea Corallo Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4500"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 45433@debbugs.gnu.org To: Mauricio Collares Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 30 15:46:07 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kucjn-00014n-Iy for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Dec 2020 15:46:07 +0100 Original-Received: from localhost ([::1]:51536 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kucjm-0005vI-Iq for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Dec 2020 09:46:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39094) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kucik-0005up-Cv for bug-gnu-emacs@gnu.org; Wed, 30 Dec 2020 09:45:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37352) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kucik-0008S2-4b for bug-gnu-emacs@gnu.org; Wed, 30 Dec 2020 09:45:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kucik-0004ew-1V for bug-gnu-emacs@gnu.org; Wed, 30 Dec 2020 09:45:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Dec 2020 14:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45433 X-GNU-PR-Package: emacs Original-Received: via spool by 45433-submit@debbugs.gnu.org id=B45433.160933945517783 (code B ref 45433); Wed, 30 Dec 2020 14:45:01 +0000 Original-Received: (at 45433) by debbugs.gnu.org; 30 Dec 2020 14:44:15 +0000 Original-Received: from localhost ([127.0.0.1]:48882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kuchz-0004cl-AG for submit@debbugs.gnu.org; Wed, 30 Dec 2020 09:44:15 -0500 Original-Received: from mab.sdf.org ([205.166.94.33]:34146 helo=ma.sdf.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kuchy-0004cc-1h for 45433@debbugs.gnu.org; Wed, 30 Dec 2020 09:44:14 -0500 Original-Received: from akrl by ma.sdf.org with local (Exim 4.92) (envelope-from ) id 1kuchw-0006nG-Up; Wed, 30 Dec 2020 14:44:12 +0000 In-Reply-To: <87k0sziell.fsf@collares.org> (Mauricio Collares's message of "Wed, 30 Dec 2020 10:54:30 -0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:197031 Archived-At: Mauricio Collares writes: > Andrea Corallo 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: > > [... five undefined variable/function warnings, due to the code I > deleted to minimize the testcase ...] > Debugger entered--Lisp error: (void-variable fboundp) > byte-code("\300\301\302\303!\203\f\0\303\202\n\0\304\"\210\305\306!\207" [defalias ivy--file-local-name fboundp file-local-name #f(compiled-function (file) #) provide ivy] 4) > require(ivy) > command-line-1(("--eval" "(add-to-list 'load-path \"/home/collares\")" "--eval" "(setq comp-eln-load-path '(\"/home/collares/\"))" "--eval" "(require 'ivy)")) > command-line() > normal-top-level() > > Best, > Mauricio Hi Mauricio, I had no time to progress with it but I want to look into it in the coming days. Thanks for reducing the test-case, this is greatly appreciated and will certainly save me time. Andrea