From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#40126: Acknowledgement (28.0.50; [feature/native-comp] + Org 9.3.6 org-with-wide-buffer macro is wrongly treated as function) Date: Tue, 07 Apr 2020 18:54:26 +0800 Message-ID: <877dyr4lct.fsf@localhost> References: <87blot2yb4.fsf@localhost> <87zhbrtzzs.fsf@localhost> <87wo6vtu74.fsf@localhost> <87d08j4u4w.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="75767"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 40126@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 07 13:04:51 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 1jLm2F-000JZW-4e for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Apr 2020 13:04:51 +0200 Original-Received: from localhost ([::1]:45238 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLm2D-0003AG-4t for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Apr 2020 07:04:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47617) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLlwc-0002Z7-Ve for bug-gnu-emacs@gnu.org; Tue, 07 Apr 2020 06:59:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jLlwb-00085B-Os for bug-gnu-emacs@gnu.org; Tue, 07 Apr 2020 06:59:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38087) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jLlwb-000851-LV for bug-gnu-emacs@gnu.org; Tue, 07 Apr 2020 06:59:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jLlwb-0007YT-IB for bug-gnu-emacs@gnu.org; Tue, 07 Apr 2020 06:59:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Apr 2020 10:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40126 X-GNU-PR-Package: emacs Original-Received: via spool by 40126-submit@debbugs.gnu.org id=B40126.158625710128982 (code B ref 40126); Tue, 07 Apr 2020 10:59:01 +0000 Original-Received: (at 40126) by debbugs.gnu.org; 7 Apr 2020 10:58:21 +0000 Original-Received: from localhost ([127.0.0.1]:49633 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jLlvu-0007XL-9L for submit@debbugs.gnu.org; Tue, 07 Apr 2020 06:58:21 -0400 Original-Received: from mail-pj1-f41.google.com ([209.85.216.41]:51224) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jLlvp-0007Wy-8c for 40126@debbugs.gnu.org; Tue, 07 Apr 2020 06:58:17 -0400 Original-Received: by mail-pj1-f41.google.com with SMTP id n4so595887pjp.1 for <40126@debbugs.gnu.org>; Tue, 07 Apr 2020 03:58:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=pe/a1nAyyjpEKb9Eho8bWJajaBXdoAnmd/Dz0uMcv64=; b=iUPlMAan1M63g//JYOWiUrIZbdYN/ZHbYAexriRdTAvUNkNpZ8hWtv+1zREE8IqeHF S1NJoI6HAUgil05Rp3ai4kFihl+guqhWXuOW9i9uUNh5Ufisbzs/B6xs/X9PqMV8A29t 8T0eTz2YrvJHu5abRX4xhvtgLQogZgZR0l4CL6v05goeSuItEIelOEys8SSwoHarskHe c9w2jYuJKgAjPNn6m9fF9vodK3oSB+vl200EY945xumEuP8jLnFV2tinK/SsoCfLLazA /qFbzzQYj1rFJQYBu6D+cm9JQYBSLf5ZCb5fAuxTdnZaUVlx9lHyXnfSAX7ckuOxiep/ maDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=pe/a1nAyyjpEKb9Eho8bWJajaBXdoAnmd/Dz0uMcv64=; b=XVGCJlkpqwYC4bL6UTSbgEtxQwgHA3lLyIvANmaydLY+Vm1MtSISlOgJ4nGPfAoE99 upxXJnw65QVThvHjsXwuACY27kSV3otV9butIF+nLDQBLdahV8krKZHh9a2Pi8TJeUs6 0teTQwttuep2+fSfufNs5jK+ruuODgBZEXbHGXD0roB5Y9yYWX3mD6PNfM5jJHRBTHdf uXQvEUTAJAzexFJ5ZDKxwT/9V+9Oe7EL8cwd/4Tf7OfgctG/lqVq39FojW9ZgsFwh4aK /EPUvhph5ydxAdVJfPTle3cKECYIY0ZqhfviogJYwf4g7/33Du6QfPmQ9+o+AqJ4uCWk 6cBQ== X-Gm-Message-State: AGi0PubTVGgAnTmI8fnzIQXqd8Qd4NJac0WrVB4uzrL1SicYYvkm7O27 hJh8Hn2ZN6BRC/STgbfN6pY= X-Google-Smtp-Source: APiQypIeC/LieHZHtlUywOnDrUX39DbSZ1TD6bTdiuQ+R68KjGbS4S/QEUnuIovWXbk52+CR6+YrVA== X-Received: by 2002:a17:90b:284:: with SMTP id az4mr2175952pjb.20.1586257087342; Tue, 07 Apr 2020 03:58:07 -0700 (PDT) Original-Received: from localhost ([101.99.64.65]) by smtp.gmail.com with ESMTPSA id k3sm13687592pfp.142.2020.04.07.03.58.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Apr 2020 03:58:06 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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:178117 Archived-At: Hi Andrea, > yes but in org-refile.el there are no requires at all :O That looks strange for me too. Though org-mode somehow manages to be compiled with normal byte-compilation... I suspect that it relies on compiling org.el first with (eval-and-compile (require 'org-macs)) forcing Emacs to have all the macros defined there to be available (dynamically) during compilation of all other org-mode source files. I have reported this as a bug to org-mode mail-list [1]. Lets see what they say. On the native-compile branch side, it would probably be a good idea to throw an error in similar scenarios instead of generating erroneous .eln file. Best, Ihor [1] https://www.mail-archive.com/emacs-orgmode@gnu.org/msg127457.html Andrea Corallo writes: > Ihor Radchenko writes: > >> Hi Andrea, >> >> I am not really familiar with compilation in Emacs, so correct me if I >> misunderstand something. >> >> I have looked through org package files and fount the following line in >> org.el: >> >> (eval-and-compile (require 'org-macs)) >> >> I suspect that it supposed to be responsible for loading the macro >> definitions (including org-with-wide-buffer) during byte-compilation. > > Hi Ihor, > > yes but in org-refile.el there are no requires at all :O > > org-refile is always required in other files after org but it can't be > compiled alone correctly if it has no appropriate require in its code. > This applies to byte compilation too. > > Andrea > > -- > akrl@sdf.org -- Ihor Radchenko, PhD, Center for Advancing Materials Performance from the Nanoscale (CAMP-nano) State Key Laboratory for Mechanical Behavior of Materials, Xi'an Jiaotong University, Xi'an, China Email: yantar92@gmail.com, ihor_radchenko@alumni.sutd.edu.sg