From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Max Nikulin Newsgroups: gmane.emacs.bugs Subject: bug#62762: circular dependencies in elisp files and make Date: Mon, 15 May 2023 20:00:25 +0700 Message-ID: <9505b1e9-1aee-ddb6-6dcd-063251c7cdee@gmail.com> References: <17b74a48-94e1-9106-cc79-d31972313910@gutov.dev> <64a61548-e343-992f-d193-d8ff4fe0623b@gmail.com> <831qjvjmw5.fsf@gnu.org> <48f15926-d002-877b-1d01-3a607fe42b76@gmail.com> <83v8h7hxlj.fsf@gnu.org> <38c89611-a929-1869-e70d-983bd7edad14@gmail.com> <83jzxnhv2o.fsf@gnu.org> <59ccf87f-effb-2168-2c17-34d950060b1b@gmail.com> <83354aixqy.fsf@gnu.org> <3ce7d18d-8190-a379-f503-5b0fef1dcb88@gmail.com> <831qjuisa4.fsf@gnu.org> <83y1lu505p.fsf@gnu.org> <9d8db5af-1917-1d0a-0360-ac122e137a53@gmail.com> <83ttwhbn7b.fsf@gnu.org> <9aa7edb6-c6c4-39ad-4302-371e5e58b4f6@gmail.com> <83sfc1bkt3.fsf@gnu.org> <83zg68afn9.fsf@gnu.org> <16f3f59c-ce2c-2b0d-fe56-8a85b79a1b3f@gmail.com> <83mt25264i.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36670"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Cc: yantar92@posteo.net, 62762@debbugs.gnu.org, bzg@gnu.org, dmitry@gutov.dev, monnier@iro.umontreal.ca, acm@muc.de To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 15 15:01:37 2023 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 1pyXpZ-0009Py-Kn for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 May 2023 15:01:37 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pyXpF-0002ci-LR; Mon, 15 May 2023 09:01:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pyXp1-0002D8-DV for bug-gnu-emacs@gnu.org; Mon, 15 May 2023 09:01:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pyXp0-0000eH-P7 for bug-gnu-emacs@gnu.org; Mon, 15 May 2023 09:01:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pyXp0-0006vG-70 for bug-gnu-emacs@gnu.org; Mon, 15 May 2023 09:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Max Nikulin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 May 2023 13:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62762 X-GNU-PR-Package: emacs Original-Received: via spool by 62762-submit@debbugs.gnu.org id=B62762.168415563926571 (code B ref 62762); Mon, 15 May 2023 13:01:02 +0000 Original-Received: (at 62762) by debbugs.gnu.org; 15 May 2023 13:00:39 +0000 Original-Received: from localhost ([127.0.0.1]:42978 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pyXod-0006uU-E1 for submit@debbugs.gnu.org; Mon, 15 May 2023 09:00:39 -0400 Original-Received: from mail-lj1-f181.google.com ([209.85.208.181]:49269) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pyXoY-0006uD-3p for 62762@debbugs.gnu.org; Mon, 15 May 2023 09:00:37 -0400 Original-Received: by mail-lj1-f181.google.com with SMTP id 38308e7fff4ca-2ac8091351eso133642221fa.2 for <62762@debbugs.gnu.org>; Mon, 15 May 2023 06:00:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684155628; x=1686747628; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=A/w8HPap1uNn1vmIDPlmndaq6K+BBE4rqxLj4TZYDVQ=; b=UDRMVsC3op5UDtagej+BL45CKFlPAKcduef9ptTfzQDClNjCBr2srtHilVE8IiLYAf YZOOySgqlEmcbteH3+d7xOn2aYyFIQtdFaSFJ49xOvV8QfEWo3H0JQ6eWICLQxPZdB1I yb27IcOVYeJ4sPbvyNElJklY18SIk0us75FstAS+PQ43Trxhhgm3o6Fb6McAoDkM0w8g HSepR2lxC0ydtIAn0kD0SXfVgCaD0Y0pXz2yoI23w0SlW3f4X2Ctf60bOteYLs2t0fWy ULeBvHsycy0z06tc3k5n0/mg+QGyhk1Pdieo8wGWqd+oElri9AQQTba9olZ13K7cBK/U 2/SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684155628; x=1686747628; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=A/w8HPap1uNn1vmIDPlmndaq6K+BBE4rqxLj4TZYDVQ=; b=dyc8r/JHjGRcS4O9nCX+liwKxpqu8uwhFfXGFy3xOXsVUDqH2OgF/uARueFyZCAJdm oLQr2J75Vb0jFvTPhVcTB2ySHc5izuIfddBQZPwe5jMenp/KbmXwD2nHSuQDZjEfNfZq CsRsNl5ZRQLLW6IOWpbfxwW6I3nTSLa7w4yJ+vj/sWVo7drKQsijO26hQF7dqC88U/5i zHZeKxM9vlFC57f30FCAw/VBjGfZsLeaaWsZES+pWPyMkUQOR5JseXz054/xEllnbCvj ys/XkSKRBS1w7xS16QGxOrCAI1p/H5ydC5jwPZVPTNGhKA+NvlJMMk/QRneT1/w7Mnt/ uejg== X-Gm-Message-State: AC+VfDz1S1fHteJvdM0ZjtMwwScLQ1zbJiL9yNZiBJPHqOKeaeQ4evDx kgNC7+QJwytUPHeJlyAenMU= X-Google-Smtp-Source: ACHHUZ7C/+nOo64o8HfN0AtAqjE2aPKZuUQDddwGZiUnbfFRSAiC/YwkqPSZ1YjupIFrTk1XwS0qlA== X-Received: by 2002:a2e:9050:0:b0:2ad:af50:6ecb with SMTP id n16-20020a2e9050000000b002adaf506ecbmr5879113ljg.14.1684155627788; Mon, 15 May 2023 06:00:27 -0700 (PDT) Original-Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id z13-20020a05651c022d00b002a8b8baf542sm3805166ljn.126.2023.05.15.06.00.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 15 May 2023 06:00:27 -0700 (PDT) Content-Language: en-US In-Reply-To: <83mt25264i.fsf@gnu.org> 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:261740 Archived-At: On 15/05/2023 18:20, Eli Zaretskii wrote: >> Date: Mon, 15 May 2023 17:11:25 +0700 From: Max Nikulin >> >> I see just one case when it may lead to incomplete >> rebuild: a.el uses a function from al.el without (require 'al) and >> autoload cookie is missed in al.el. > > This can happen when we use 'declare-function'. Sorry, my bad. When a.el uses a *macro* from al.el then, instead of macro expansion result, function call appears in a.elc. Anyway by this sentence I was trying to convince that it is enough to have loaddefs as order-only dependency. What would be more interesting is an example when an .elc file *must* be recompiled in response to update of a loaddefs file. I mean a case of hidden dependency on a file that is the source for autoload declaration.