From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1 with LMTPS id 6qI7B45cjF7DVAAAk0OIDg (envelope-from ) for ; Tue, 07 Apr 2020 10:57:18 +0000 Received: from aspmx2.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 2L0pJ4xcjF5bcgAAbx9fmQ (envelope-from ) for ; Tue, 07 Apr 2020 10:57:16 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx2.migadu.com (Postfix) with ESMTPS id 92F4E684214 for ; Tue, 7 Apr 2020 10:56:52 +0000 (UTC) Received: from localhost ([::1]:45034 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLluV-0006wq-8b for larch@yhetil.org; Tue, 07 Apr 2020 06:56:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47144) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLlu7-0006wX-6w for emacs-orgmode@gnu.org; Tue, 07 Apr 2020 06:56:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jLlu5-0006hy-Ry for emacs-orgmode@gnu.org; Tue, 07 Apr 2020 06:56:27 -0400 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]:36779) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jLlu5-0006hk-MU for emacs-orgmode@gnu.org; Tue, 07 Apr 2020 06:56:25 -0400 Received: by mail-pj1-x1030.google.com with SMTP id nu11so592555pjb.1 for ; Tue, 07 Apr 2020 03:56:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=NTHg5OKbXIIYYWFB7qt0hMMjUF44lgrd9T9eZVRCbOA=; b=c/9HK9eg3n/o4OjQOEqG2/Zy7UkoIGLzG7jbkk7wnQin0Q7kWwfk2oLQMcEDv3Sxpt Jefl8jiJbJzvZ5+a3HDKn/dq1SvMAXzdK8PhZKUmUYD7OoZl6rgnr3ccxrJ2a3S33nCB XT6INeCyIzddFVL60jCfhB4xD/VoLlF9i1DJqM+8k24kx/Xf477UySSpruH8sWIKxz98 FjFxl37hunhZrVm8BBu9e8Bn4UoP5BEvIqM11GLK9Z7SGN5lf8yY98fYq24Vb2S+dMt1 kb+fBh6ZX0OPvviN/yEfZVW1v3IZrXIJSp10CWK/AtE2IKuo9daB2A70KEM1YXkIuJC1 UtXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=NTHg5OKbXIIYYWFB7qt0hMMjUF44lgrd9T9eZVRCbOA=; b=hhrBT7kwkB8Em+qHB7AKEjB3HzNutXOcuMp8B+NXd5mTBjhXbko6HbQfpbxHYldmXz CJwAXLVmpsQOx8stMGKkbVyzHCubYFc2Kx0+AhaPGsGJ2auaiPX9Zfp9rGjRWInWTnOd F5WmcOZKroz9MkComBj2T7czUmKN5uORxNQD5VdbQg6Nhb2/jycaP1TqVaU/EQeyPre5 lyZcTKtafKgWlJHDW7ACdOePsb2/MpoCuv06Z5rKgeqeM3WtYazD6Q8xtG2djB6EWtZD i9U0XkYwnCabXRJlck5F1F3B67Uuh2wFwpDvt4iNTeFXAUtGbW6trp6m5xziffK3U/pi 6i4g== X-Gm-Message-State: AGi0PuZEGEa5oSEr0y9zgizBtn+cOuP+raC0TwhU3pvwTx82F4svSflE 93dKlrStM84jahXY9ORb75Pc4ftV7ROpkQ== X-Google-Smtp-Source: APiQypKdTMA5R4v/Q8sVRbjwN0HFxo21hYQzhpxESV3MNyD2rsR4VxW5DnUZqn025bbN1NHDMB0tsg== X-Received: by 2002:a17:902:59d8:: with SMTP id d24mr1893427plj.118.1586256984131; Tue, 07 Apr 2020 03:56:24 -0700 (PDT) Received: from localhost ([101.99.64.65]) by smtp.gmail.com with ESMTPSA id q12sm12978436pgi.86.2020.04.07.03.56.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Apr 2020 03:56:23 -0700 (PDT) From: Ihor Radchenko To: emacs-orgmode@gnu.org Subject: Bug: org-with-wide-buffer is used in org-refile.el without (require 'org-macs) [9.3.6 (release_9.3.6-441-gba6855 @ /home/yantar92/.emacs.d/straight/build/org/)] Date: Tue, 07 Apr 2020 18:52:42 +0800 Message-ID: <878sj74lfp.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::1030 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=default; t=1586257013; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=NTHg5OKbXIIYYWFB7qt0hMMjUF44lgrd9T9eZVRCbOA=; b=fjTRaLbQKkZ6NrGw3g37mz1qHPlnpsOZAQTj8YquANRs9A5gJg2i94GvFKZVhjavO1QIJz Nqeh6T/MNeuUt9J/gH9km8H2L0OCNVWR5CdhyMalltXiYA6KDxFQLebzB052ZvQVFzRO8F lk2QpqMMxZYAjNJse0xJbd9Cpj6yvrI= ARC-Seal: i=1; s=default; d=yhetil.org; t=1586257013; a=rsa-sha256; cv=none; b=rW6yGyoFYWs+ERpFM1hEBYgLDldNKCO7N+eg/TgMaaI9tE6YdoluAU0D3GXOafVtWfU9v8 VYRsQUh8EchQz0ryOAAiL/g6H9ppyse0DOFFmPTgE9Ck9/zTpDsfY+TkP85nla4/SM6QyE UUwfT470wJIbhmR6pxbaetKaPBHG5jw= ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=c/9HK9eg; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx2.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Scanner: scn0 X-Spam-Score: -1.21 Authentication-Results: aspmx2.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=c/9HK9eg; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx2.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Scan-Result: default: False [-1.21 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.58258792223825]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; ARC_SIGNED(0.00)[i=1]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.32), country: US(-0.01), ip: 209.51.188.17(-0.58)]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:22989, ipnet:209.51.188.0/24, country:US]; TAGGED_FROM(0.00)[larch=yhetil.org]; FROM_NEQ_ENVFROM(0.00)[yantar92@gmail.com,emacs-orgmode-bounces@gnu.org]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[emacs-orgmode@gnu.org]; HAS_LIST_UNSUB(-0.01)[]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_COUNT_SEVEN(0.00)[7]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: xLyXOHALRzVD Recently, I ran into a problem compiling org-mode asynchronously with each .el file being compiled in a separate process (via native-compile-async). When I tried to compile org-refile.el in a separate Emacs process (without compiling all other .el files), there was no way for the byte-compiler to know that org-with-wide-buffer is a macro. As I understand, normally org-mode compiles synchronously with all the .el files being byte-compiled in alphabetic order. Then, (eval-and-compile (require 'org-macs)) from org.el is defined prior compiling all the org-*.el files, which accidentally allow the org-mode to be compiled without any issues. Note that I first reported this to bug-gnu-emacs mail-list [1], but it seems that absence of (require 'org-macs) is wrong on the org-mode side. Let me know what you think. Best, Ihor [1] https://lists.gnu.org/archive/html/bug-gnu-emacs/2020-04/msg00174.html Emacs : GNU Emacs 28.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.13, cairo version 1.16.0) of 2020-04-01 Package: Org mode version 9.3.6 (release_9.3.6-441-gba6855 @ /home/yantar92/.emacs.d/straight/build/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