From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id tUgqBYSPjWA/wQAAgWs5BA (envelope-from ) for ; Sat, 01 May 2021 19:27:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id KKhSAISPjWABGwAAB5/wlQ (envelope-from ) for ; Sat, 01 May 2021 17:27:32 +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 aspmx1.migadu.com (Postfix) with ESMTPS id 8B5E71F341 for ; Sat, 1 May 2021 19:27:31 +0200 (CEST) Received: from localhost ([::1]:49624 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lctOs-0005kI-NM for larch@yhetil.org; Sat, 01 May 2021 13:27:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44702) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lctO2-0005jM-L7 for emacs-orgmode@gnu.org; Sat, 01 May 2021 13:26:38 -0400 Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]:41491) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lctO0-00078J-6z; Sat, 01 May 2021 13:26:38 -0400 Received: by mail-pf1-x436.google.com with SMTP id v191so1237254pfc.8; Sat, 01 May 2021 10:26:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:message-id :date:mime-version:content-transfer-encoding; bh=CVNg5dzMDsHwxPzltVMZwId+9o1tktpDgu55r3pj+1g=; b=IwvX139VVOgiQPafdX3h3iYSVYWCvWRpnInpy+R1OHAUlq0RdxajsHQgiO/HErSqom UtZoYjyPDeenpnQ1e3zYoJm4pRwNKjUAjHOx7Bymq8hN5aVqELZrXkhW0Rb0+9U5B5HB jfyX62ySTF43TQqL3OgZi4VNHzwNdiGiQ/+YF2yIvDcXf14WlINQKt4Kt15D54e4xdcU y47EaydkBf/W5Hsy0z6BAjkktiQpDWzpL/A1cMapVMDSzsyppB5XkJjzAv1uKpVqn3Oq RSowNPQSt066oRKCZN13/PKMVk4tad2MzBStx3vWPZl0Zp0s/X8g1WvLdUABy0NLlY6v zI2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:message-id:date:mime-version:content-transfer-encoding; bh=CVNg5dzMDsHwxPzltVMZwId+9o1tktpDgu55r3pj+1g=; b=WMXaxGNlZQ0J602AXjDGg2rYQPFmSCgqdVHHXZHuh3HAOthSocm8qd/sZnEvUuXaAj Lx45VlGJK5mZQsDngVl3MYa6ZyisWhYuJ661GFsnA4CPzf/SE1RAcYkATGnjhwQdJZXi tQJc4tJnBwq8I87baA9qXefpQu5ZernTPPuzd0grFJQbzZRnxc9na+bk0ZqGq3VRACYk uw2vKYLZhZ+1cZOZg/nPfr/c0BVsZ+o0N7C4GHKDR9IB2GboSgd9nMlNj5TypcNqCpp8 jpxAk7KdARMk5+A3CRKLAov5/MpQZ4XZmJtBT4q9wabQvoiW4QQSnxFbIE5OjghIcj23 6H5A== X-Gm-Message-State: AOAM531hcugUKekiX5NdeWA/1c3fZ5Iv0c7XExyQaCdp77dY2DAtPku4 LCuOI2tcLIHbUbPu+mVzGsLdaqRfvbTHZA== X-Google-Smtp-Source: ABdhPJwNMOgDMoo/dr7KHh9Ylc/6Wrg5o0IpDV6shhap2TnxtcgZOvuYFZS/aDtrzB4y1X+0MbPuFg== X-Received: by 2002:a65:5a8f:: with SMTP id c15mr10451588pgt.0.1619889993902; Sat, 01 May 2021 10:26:33 -0700 (PDT) Received: from localhost (180-150-91-8.b4965b.per.nbn.aussiebb.net. [180.150.91.8]) by smtp.gmail.com with ESMTPSA id j12sm5659772pfc.17.2021.05.01.10.26.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 May 2021 10:26:33 -0700 (PDT) References: <87lfa3fips.fsf@gmail.com> <874kfm8kgs.fsf@gnu.org> User-agent: mu4e 1.4.15; emacs 28.0.50 From: Timothy To: Bastien Subject: Re: [PATCH] avoid loading major modes when exporting to file In-reply-to: <874kfm8kgs.fsf@gnu.org> Message-ID: <874kfmbc1l.fsf@gmail.com> Date: Sun, 02 May 2021 01:26:30 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::436; envelope-from=tecosaur@gmail.com; helo=mail-pf1-x436.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Cc: org-mode-email Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619890051; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=CVNg5dzMDsHwxPzltVMZwId+9o1tktpDgu55r3pj+1g=; b=uGWlp9V1aooPwnpA3o5DlFv/Fzu8+A+XrUs/niIPJTtDOrFXhuo62zVWefngkmVbL2LPQd hLL3MkWgP6tcpOGCi3pIyHpmh+HztYSM0G64oXWC9biTSarO8IMhsdy1OPi+GPMbcsko6M cMz0OsVVqklc10bsY5o91biFczdBGxOuEMxKv3wmTvH9U/Y2pJS1A+90yVfU/VbdV5Mjvs uRF5FkQU+ooNEskUFSTbzDJHwiAgCE4qNWop+iYmYU8wEy0XwYI1eD6hdY77eUZ14msEyQ 33ciMVWDCk2VLG/SR71BDMy4KbiOhueoUeO2TVKnGuGZJHfIVtvqQ10/8OZriQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619890051; a=rsa-sha256; cv=none; b=awCXv98VzwaxedwGWLX8QTSHKscVLyGTTJpieejsZESB8O+RAeLDzSIBLaUltlo4LT1jlC a2UVPdz9CrsUSsE789ESxjZ8sS1DpgT3orAJFWjGc5NBRaBXc8s0zlp4Lh4dPLFyi/DyNp 4XbqdDtdgUfv4V92fcRemarqYUhkD8IsA42yqLokeKh2j68yFu3N1kOE1v74dYbfvJyIvd za+d4llpJc3wijPNdF5U8X5Ahk22XAigVFnYXKF1+3H/mI8W68MGQ8F/9WyX/uI67fqtOV 40V+SuqigAumjzJpebXW+IWIpA3UoOtZ6qrO5I3WFxU7u8sIQECMp4Dvhdhopw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=IwvX139V; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.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-Migadu-Spam-Score: -3.16 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=IwvX139V; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.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-Migadu-Queue-Id: 8B5E71F341 X-Spam-Score: -3.16 X-Migadu-Scanner: scn0.migadu.com X-TUID: VTw6sDqLUt/u Bastien writes: > This even be "auto-mode-alist" instead of "(auto-mode-alist nil)". Ah, it can indeed. > I'm still unsure the patch is correct: what if people *need* major > mode initialization before any contents is exported to a file? I haven't responded to this concern, because I haven't been able to conceive of a single situation where loading the normal-mode for the exported file could be desirable. >> I think the commit description is pretty thorough, so give that a look. >> TLDR; it makes `org-export-to-file' behave a bit more nicely. > > I find it useful to have a small description of the change and why it > is needed in the body of the email, when a patch is attached. I think I may have been become overly used to how convenient mu4e is for showing patches inline =F0=9F=98=85. For the sake of anyone just looking at the Email body, here's what I considered to be an informative commit message, subtly reworded: Currently, when `org-export-to-file' is called it activated the major mode for that file type based on `auto-mode-alist'. This can be mildly annoying in various ways as loading the major mode: 1. makes the export take longer 2. can produce unwanted "noise" while initialising, namely warnings and errors related to the mode itself 3. can produce spurious files like an .auctex-auto folder By locally binding `auctex-auto' to nil all of these undesirable behaviours can be avoided. -- Timothy