From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yPdqFrPh42JeeQEAbAwnHQ (envelope-from ) for ; Fri, 29 Jul 2022 15:33:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YCdeFbPh42LS2wAAG6o9tA (envelope-from ) for ; Fri, 29 Jul 2022 15:33:39 +0200 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 0ABAD39678 for ; Fri, 29 Jul 2022 15:33:39 +0200 (CEST) Received: from localhost ([::1]:35746 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oHQ7W-0001nC-3J for larch@yhetil.org; Fri, 29 Jul 2022 09:33:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45608) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHQ4x-0001ju-Ky for emacs-orgmode@gnu.org; Fri, 29 Jul 2022 09:31:00 -0400 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]:34554) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oHQ4w-0007mb-1F for emacs-orgmode@gnu.org; Fri, 29 Jul 2022 09:30:59 -0400 Received: by mail-pf1-x432.google.com with SMTP id 70so4657177pfx.1 for ; Fri, 29 Jul 2022 06:30:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=53kS3JAPr46W18Wb+wCeL4GO0oUtZ0/bszUvV2y02tc=; b=hrsn410dNxmAJmeUJ/LXI8iGP0sfYJNio5Ve0t/EYJ9e5BV//XMhFrcBAyxMw/PluZ JKdso5YL1inku2TIvMnM+oGwPI/DqOLdApvn8FxgqddYe/1P0DjrUsyCA2/kOalbfhmr QfvrLhcMSAyKpVYcJbp+bZrfGPhtM+nMcbbb3O/4mtfwi3H2ttFj4H/Ep86GKCGmfqt3 IVYDYYqXgXlATPDDBb+TyjlOjJcb5A6OTQnaz9JEEobRttLMfk+ecSRnN+gtbkSPTxJM FEerJk27SEdxLQUp4BqjUjW3InWv/MIul+EZm0aB4DYicWoSR9wAtKUVHxgiwwYMv4GT 3ovQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=53kS3JAPr46W18Wb+wCeL4GO0oUtZ0/bszUvV2y02tc=; b=e9NfmRpnrlXb14k+rIu7MhEE2Zuq5K7RwdiJJpM7zvdaMu/lPtO0F0Vu5BdJRqyJ5z /E2Ve0wtWI2yrj/xjOOTN07idZje3BAbu6WrWyLtb1bz+X/A/4J0L9OZ7AAEsK4KwvGf KgwD1uq6p3u3bA+qic9IT3wtYaN2aE5gEm0GB1+PR3mIhruQ8Y5bRUt2N5iCPQAmNAKU HCRc/GqC0YM95RIkWYlKLCO2rlhskSmWk5JbhqeHM9CBylnCMqnJoG1T9DdOw3da0QD0 aqLCnh7voyFHgkN0Hp2C92TyAicJPXdk90ulkQDF8x47jRLcHyC6xEjd7vSKGuGQs3n8 7Evw== X-Gm-Message-State: AJIora/ovEzD0I+cEB4n7I2U3k80ZFN5ebR3tmdHXlR8FOKRYAziXtKJ D2hjZX1y1NN33Vc9a9Ea3tzrJU09dZw= X-Google-Smtp-Source: AGRyM1u7K+3tM5yzV9IaeoAY7flK2/hKxcNLlh8jzsysmenOBJKMWX/3QObHrh0rKPSIW1Og9VXZdw== X-Received: by 2002:a63:8048:0:b0:41b:a2cd:a4e3 with SMTP id j69-20020a638048000000b0041ba2cda4e3mr955359pgd.267.1659101456588; Fri, 29 Jul 2022 06:30:56 -0700 (PDT) Received: from localhost ([2409:8a70:217:4f80:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id jx15-20020a17090b46cf00b001f1dc5aa675sm3045681pjb.16.2022.07.29.06.30.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Jul 2022 06:30:55 -0700 (PDT) From: Ihor Radchenko To: emacs@vergauwen.me Cc: Emacs Orgmode Subject: Re: [PATCH]: ox-latex: omit empty date In-Reply-To: References: Date: Fri, 29 Jul 2022 21:31:59 +0800 Message-ID: <87sfmkkptc.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::432; envelope-from=yantar92@gmail.com; helo=mail-pf1-x432.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659101619; 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:dkim-signature; bh=53kS3JAPr46W18Wb+wCeL4GO0oUtZ0/bszUvV2y02tc=; b=kpQIbJb9ysAx5k59MLCg+hmLs8e+uRigiXugXxRMa1Kyr0X1i3Qo8gcUDcoJpZHVTBubs9 guN2kVImEdKf7i71jbE6u7ms6Y4Z6EV46WJ+7zGwk/0gvdGoypn9puwdlk6vNe4Mul4b0X oU4UCRAqfBseX3GoFP7Xk1kJRvMEpOs4zvvNTy0Eftb0DVvlTZTtig5GfT2Xh5ZIXkeckf UYca/zoVfQYV/KjvgdvTDbGdWnnpmmqCfZsl2Z89fahNctnKsmiyQRQ6RAoLkscNg2o98i 44sxNUDiqC2AojD5Ivd/eNf/d/e/o7mJrBeYFOiBf1QqHTKa8b8Wudo0HihEbg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659101619; a=rsa-sha256; cv=none; b=nPt0HyopukUzTIXndjvYnGHJv6fg+9nMSAjk80lDlysIM25HKVTkej6Qg7vjqMJ4aCn8yQ VLlYH5ISOOg9PGM/sxorC8eJkWt+MGbUXSgpDDLPrd2Q1Ls9UzK332htcdXqxd/ZHotHFL giZxYUevCAoqpK25l9QdwlQe99AEJ4TrG3BZ3DYo97QJlI9hURJqhh6Rolyy2PJ+nQZkxO HRkYOq2qVFTiXQ69rxyYMn7hG9e/uEGacFJv1ncw00nBjPHESA9cuvoHk1b7ulMIq99BWy HytbN8O0IKzszr/EN5xYECmMU4dWl5xb6VnpmaNvid7s+ZxGBdSk2GMqM2htGQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=hrsn410d; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -7.42 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=hrsn410d; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 0ABAD39678 X-Spam-Score: -7.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: wAPph/5W549I emacs--- via "General discussions about Org-mode." writes: > From 120e4ca11f021fa2d7e7abf57187c2db71942302 Mon Sep 17 00:00:00 2001 > From: Bob Vergauwen > Date: Fri, 29 Jul 2022 14:28:21 +0200 > Subject: [PATCH] lisp/ox-latex: Omit empty date > > * lisp/ox-latex.el: (org-latex-template): When no date is provided or > the export option date is nil, the empty '\date{}' string is no > longer included in the exported latex document. > > The default behaviour for ox-latex was to include an empty date line as > '\date{}'. This empty date line can affect more complex latex templates > when the date is for example set by the template on compilation, or when > the date command is overwritten entirely. In this new patch, the date > line is omitted from the exported document. Thanks! This looks reasonable. > (let ((date (and (plist-get info :with-date) (org-export-get-date info)))) > - (format "\\date{%s}\n" (org-export-data date info))) > + (cond date > + (format "\\date{%s}\n" (org-export-data date info)))) This will give compilation error. Did you mean (when date ...)? Best, Ihor