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 yDafFtaHjWCysgAAgWs5BA (envelope-from ) for ; Sat, 01 May 2021 18:54:46 +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 YzhGEtaHjWDcBQAAB5/wlQ (envelope-from ) for ; Sat, 01 May 2021 16:54:46 +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 B2FDD1EB7C for ; Sat, 1 May 2021 18:54:45 +0200 (CEST) Received: from localhost ([::1]:47428 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcst9-00085b-4t for larch@yhetil.org; Sat, 01 May 2021 12:54:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39336) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcsrP-0007Z3-7e for emacs-orgmode@gnu.org; Sat, 01 May 2021 12:53:00 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46213) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcsrO-000601-3e; Sat, 01 May 2021 12:52:55 -0400 Received: from [78.194.183.21] (port=50444 helo=guerry) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1lcsrN-0003tQ-Ln; Sat, 01 May 2021 12:52:53 -0400 Received: by guerry (Postfix, from userid 1000) id 874091A60E24; Sat, 1 May 2021 18:52:51 +0200 (CEST) From: Bastien To: Timothy Subject: Re: [PATCH] avoid loading major modes when exporting to file In-Reply-To: <87lfa3fips.fsf@gmail.com> (Timothy's message of "Wed, 31 Mar 2021 23:25:51 +0800") Organization: GNU References: <87lfa3fips.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Date: Sat, 01 May 2021 18:52:51 +0200 Message-ID: <874kfm8kgs.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain 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=1619888086; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=enFmYezUNeVlKoA+763uA5C1s626chRqseBKcFQtCjk=; b=NEo7T5SGM3OTicGq0EdEDdqo8szSZVRAEAlZNJ/W7wNgGgJ/3TATGMGy29IZjXtlSi08xv DBzRxi1WxyxNWjtQ7vDMamwwxQNEiM2t1MAIb39CJYXCh/yw8Cs/CfsgyPRAWFPW9+upm8 L3t9bK5+2Btxdn/XEqJS6+9EX/8wh+I6RXP/peVPVGeo7xNCCvWJ8stODjsYr3nNHy9fjk zeguGCYNlfk7PIllET3YWUBEy8xwrK6TTlS4PX2Mzi2JzMhXa2SS4Qjuy03434FdeJI7Ix K+VMJIjiKU+92KJFDgbOXWl67Bl31fezoldUdIRVTbgMq0bxEv9h1sDQ8ECLgg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619888086; a=rsa-sha256; cv=none; b=SW8FJbbfY72Bi/5H8uODfeQi/pqioIVU+cmflOI7fQY0MdxmxdF2UZnlp16OUchCFy9V9J B9Z1uo2qg2i4cZbELsgC16bfQ6gHOKkwJjGFE5EwnyfRyCgkMN3tjhvVeMIi/4nR/xTzEE gkNn/qYfF7wpFh3dIMGUNCuVDZyPaFZJ7FIRldalN1qODABhte3eE0sfEnuvd7BAM9LltJ 63UjAkC4nSIEH1fcamTAS+J+Id9uToAPpRXEjFqBWi27yzd0s3Xzwngj+PWL2fO67xRYXc uJ391dWcSxpwB80l+YkegN9oLBIy3hxRJXQkqtMB0+p7e6ZghYl8j1pJSvEcig== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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: -2.96 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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: B2FDD1EB7C X-Spam-Score: -2.96 X-Migadu-Scanner: scn0.migadu.com X-TUID: n+JQy2eylCwH Hi Timothy, Timothy writes: > Another little patch, this time a one-liner. This even be "auto-mode-alist" instead of "(auto-mode-alist nil)". I'm still unsure the patch is correct: what if people *need* major mode initialization before any contents is exported to a file? > 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. Otherwise, you can configure git send-mail to send a patch to the list as an email and then we can discuss the explanation part that you can add after the change log part. Thanks, -- Bastien