From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GEzUEmwK6GJlzQAAbAwnHQ (envelope-from ) for ; Mon, 01 Aug 2022 19:16:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id QOHBEmwK6GL/5AAA9RJhRA (envelope-from ) for ; Mon, 01 Aug 2022 19:16:28 +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 0D2343C326 for ; Mon, 1 Aug 2022 19:16:28 +0200 (CEST) Received: from localhost ([::1]:50614 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oIYiP-0006vc-0K for larch@yhetil.org; Mon, 01 Aug 2022 12:56:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIYaG-00027D-9s for emacs-orgmode@gnu.org; Mon, 01 Aug 2022 12:48:00 -0400 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]:40664) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oIYaE-00010C-Ng for emacs-orgmode@gnu.org; Mon, 01 Aug 2022 12:48:00 -0400 Received: by mail-lj1-x232.google.com with SMTP id h12so12943334ljg.7 for ; Mon, 01 Aug 2022 09:47:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=QP9aqJh3soSaPgfkfSLxUVDHGL+ffkjDOXvNit2fNC4=; b=mazrf3qxxvJNvz+f4KkmLftslnoE5p1xFghX5fTXKNMp+QQRe3i2vypzkVEajvWawd NNkUqknzBrlv96s20gNjd/t3Eq9mx7PtzgWUT/jmZ08FiMNKVqlVE8JwUs+Ci4V7w2o7 hJCcrq3DuLJyYS6q3piIIp3nAldDa/Zwd4NahbaMd5g34wbGigWMvIj9tSVA42uRYzlV PpfZ0Wwp2+wu2zEJ3JKMSv4M6j0zJwmQ9EYIdWtELRCgXq8zVCdZdMGOjgjpuJ68AaaU qAqVuiU0Eb2N854pc2LS+shNYAjaCBi3JWmJJ9SAK35Tsmf2QmbmhBS8EZSf8YESH4E/ mBbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :subject:content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=QP9aqJh3soSaPgfkfSLxUVDHGL+ffkjDOXvNit2fNC4=; b=bwHP9Vxk6F9vDOXBKjm7j2a5daM0FlSRf0rO76eHx+fVBtfYWfq0lP8ZOW8aroc7cP eboOrxS0M151T2vvpi4zXc1kAVcVL39Mo6c2pB/Vvff72rNlr5PXCOFfeilLbVJ6T9mF d8oo9M9yq97LgFIfn383HPZDZrTkv/9XOm5NvdKEsnyzUVNC8iOZLK5yeibbV3+6UVdh 4/aPejlnECq9SMFQg2JeFw5CdLGoCvMH+Rmw3li/3OTZmf705tmkOTwUcJfpQbU36zji XqBp/KygrBnApL7YBawR3qvC9i1iw5oaeZ1hM9ijR9lyQ7IAN3pc6ZdPGCnm8dIN0dfd h8FA== X-Gm-Message-State: ACgBeo3vWUdxcVXCOVIRXC6zVIjqK+LwhLEdHWAYQLJncLhPv6vu0a3p z7UCoCAUWjs/nWjWRp0fZdwP2EpGR2g= X-Google-Smtp-Source: AA6agR44V9vSr8jEhaOlDycHEvxx2/7pOYVqPCTACYdjJKbpROkE8vSkTXE59V07Wka3CC2iFkJuzQ== X-Received: by 2002:a2e:7d15:0:b0:25e:51f5:9a90 with SMTP id y21-20020a2e7d15000000b0025e51f59a90mr1533518ljc.451.1659372476363; Mon, 01 Aug 2022 09:47:56 -0700 (PDT) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id m17-20020a197111000000b0047fa941067fsm1791455lfc.29.2022.08.01.09.47.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 01 Aug 2022 09:47:55 -0700 (PDT) Message-ID: <80b3058f-7397-6e56-97fa-82b398d11d43@gmail.com> Date: Mon, 1 Aug 2022 23:47:54 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH]: ox-latex: omit empty date Content-Language: en-US To: emacs@vergauwen.me, Org Mode List References: <87wnbuje62.fsf@localhost> <95786e25-53c4-93dd-b77f-0e64fc793b83@gmail.com> <87h72yj9bj.fsf@localhost> From: Max Nikulin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::232; envelope-from=manikulin@gmail.com; helo=mail-lj1-x232.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, NICE_REPLY_A=-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=1659374188; 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: 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=QP9aqJh3soSaPgfkfSLxUVDHGL+ffkjDOXvNit2fNC4=; b=BuM8WJR5zI+Yo3YZJnPiehU1J/Z7f9ThAMXOkXGCPe0+HFWZgTj03aDByGq6metgVsh5/E 9fxEIfuQrXaSM9TnmCKwtbOj1fUtT41shDIv1PrSN1Bkw/19UMI29evQroBlVwanRB4CJp Iut2CZZz1G4dH4QH4+hl1+V5+uMiRcS5gt56CN5ccgiZrxtOx9DbnjhLiViY2BG9gNmEcX shUEKF10NVrx/4/XU3ZySW0KW89RkhU6A9bE7YUO0LoFIF34lZT2wL4Dvj0gQf8dy25+9m rgJBJ8tz5E4ag3P+rDrixac1y2vu6XhsHUseu6OWn6Z1raaG9d1e+0LQ0fP3Hw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659374188; a=rsa-sha256; cv=none; b=pPEc/2XzrAR+H36PY0pCM1gg5sjfvRiDKJTzCW43PPaE24htdaobXKO1NivtFEAoBfXbj9 lnIRxzJqqBMGCc52a8T++ar3kCP6oXVFG1eigaDZuWTrJt1Ve1M3v4V871f5vxAruD0Zzw RuDVbJ68ciDi8OmjG1T+f34QD8xFDNx4I9sqox/oLmz87WyBOVOkf5IxALx75N0f+GdAet dckvmX80dYJlJurkTJTJ4mUS5BdMN+IDxR39gOXsU6zEe+W4vN3EY+Tc5Rmj3N27fCALJb qIcFrezYa6ayv3qjsmk369j6YoBSMlQzzq71MHQ7i972+XO6yRte9lFqhVdiLQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=mazrf3qx; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 4.98 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=mazrf3qx; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 0D2343C326 X-Spam-Score: 4.98 X-Migadu-Scanner: scn0.migadu.com X-TUID: EH7x9qVnoKfB On 01/08/2022 17:55, emacs--- via General discussions about Org-mode. wrote: > *later in this mail)* >      ;; Date. >      (let ((date (and (plist-get info :with-date) (org-export-get-date > info)))) >        (if (string-match-p "^\{.*\}$" (org-export-data date info)) >            (format "\\date%s\n" (org-export-data date info)) >          (format "\\date{%s}\n" (org-export-data date info)))) I am against such code. > _Why mostly:_ > At the moment the code escapes the provided brackets and the current > behaviour is > #+date: {my}{fancy}{date} -> \date\{my\}\{fancy\}\{date\} #+date: @@latex:{my}{fancy}{date}@@ Anyway such date is not suitable for other backends. I think, custom command name and "#+latex_header:" with such command is proper solution. It is possible to choose some combination of existing options like #+options: date:t #+date: as instruction to not add the \date command, but I think it would be confusing for users and anyway a breaking change for some of them. I suppose, reverting the patch was the proper step.