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 ms0.migadu.com with LMTPS id QPLvN3+6lmDV/QAAgWs5BA (envelope-from ) for ; Sat, 08 May 2021 18:21:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id SMh1M3+6lmAcRgAAbx9fmQ (envelope-from ) for ; Sat, 08 May 2021 16:21:19 +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 6F7161234A for ; Sat, 8 May 2021 18:21:19 +0200 (CEST) Received: from localhost ([::1]:41358 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfPhc-0002kQ-QI for larch@yhetil.org; Sat, 08 May 2021 12:21:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfPIn-00044Q-Pc for emacs-orgmode@gnu.org; Sat, 08 May 2021 11:55:37 -0400 Received: from mail-yb1-xb2e.google.com ([2607:f8b0:4864:20::b2e]:40891) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lfPIk-0001P7-3V for emacs-orgmode@gnu.org; Sat, 08 May 2021 11:55:37 -0400 Received: by mail-yb1-xb2e.google.com with SMTP id 82so15876688yby.7 for ; Sat, 08 May 2021 08:55:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=UTBViT0Q9njEaNK9CuhYjWe+0Wrap+z/VDKAxJ9hItg=; b=UGj+SJ4lIkPl6reKg0fbpkX8PKFsxW/HSSw+gTI4sFeU/tv9SIu18UtJ0IiRxdnhND EU7nbY9AFJ7vi6s6Y+ICCmmr/XyW4Lzy1P09ITKzpJ6FUKZEn8XDmhOeh9Jhv6gs8XQr sM7yJMGSznXxLcd4KRQ3N55fODE1ZMzWi55Aud1pPvmCTU+kH1Anae1ATumSPUlsZrsA HeseuvBJlka8FGlTqGjACLjLsldg9Vzl+PdSWixn3IvkGEA9c17PK2IxTjl1vV/S6mcu tLiCqHyL/xXNXbEiSfoczMPptRvguU3DsibaXFyD3h2TnuSP0oLDyg+FORVKGaUcimAv QCSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=UTBViT0Q9njEaNK9CuhYjWe+0Wrap+z/VDKAxJ9hItg=; b=eLqlIM0vdawuI5q3C3Eapv52XwgdW/2HslVD7Ov/Ao+8zFbAK9zZ3RW2Xlr2bLTSsu iKP4jmMQPeD4d+Ln82AyOQZO+EYKHcpGCJlNvJQUgYCLTJ0+QBnLHma4Qp0YJsR5Q6WF YaVTYCb0JIDxiN7l5muOoyAexzWkwy5I0gO1HX86vi/AOlqsxAZ1RtArV+sK/ZUqX2SZ bcORI6XeMdkQIjm1yo+YxjRA8GaSBhcTuX/SASos+Mnh42APyRQL63vIXwqNL223EsL9 gJKb28tq2FTNPJrqs9oa8NbR6lYck03yM4aJ4QDTwEDSxIsgvAAUrB9uVx6d7M/dOgDQ sp0Q== X-Gm-Message-State: AOAM530Iqu6dJrwhFexcs/ju4LNvA9sm7rNbEnLwOaa0j/RZthIZkt7S r++2LjG8bltlul+6DyjkGLko+ENPlRoBbsLmeOHrLAcChrOElcTpbLs= X-Google-Smtp-Source: ABdhPJxpXnaNNEpiJJegJGfRISnIROmXc9EzGxIXHoA/MDZCVjTuNTt7lScYQ5JrOJCeGHe6lhnXgxo26uVsp/Y7Aho= X-Received: by 2002:a25:d897:: with SMTP id p145mr21068128ybg.107.1620489331139; Sat, 08 May 2021 08:55:31 -0700 (PDT) MIME-Version: 1.0 From: Samim Pezeshki Date: Sat, 8 May 2021 20:25:19 +0430 Message-ID: Subject: [PATCH] org-agenda: Skip formatting if format string is "" To: emacs-orgmode@gnu.org Content-Type: multipart/mixed; boundary="000000000000f264f105c1d392d5" Received-SPF: pass client-ip=2607:f8b0:4864:20::b2e; envelope-from=p.samim@gmail.com; helo=mail-yb1-xb2e.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, HTML_MESSAGE=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-Mailman-Approved-At: Sat, 08 May 2021 12:18:59 -0400 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620490879; 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=BYhO2/fZtV1jbmY80mMK0VmKff+m0OV5FQoWMCZuWZA=; b=ivRpjBpS4V9C5PkkElkR2LLxGxj6iyHW581D1WYVqfmEgw2BhqAoSdwJQ4ByBLhKppZ0YY RxhVcO42+Un9s+ybEJCo1PkgR5K3UUgVLVZBsY+LaBu855iFrvM2v+lWkKZaNo+LOxhpzW J64lhLNU3TCYWIYcYNp0tnvclyS6GGEMo9Yt+8WDbBkvFXZpZGwu914nSYeT/+eVvzpLWp zGXis1dIOhlSOOt7R9Y67weLWncwE/9zYNaBUOIRlri9RZYBV98WXMpHwzP90HBoQI0hnA NyRLuAUYSFukXP8mA6C3y2mwYPPoqyBHnGN9mDooQujbjLW5vqXcpNBCVXp6Aw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620490879; a=rsa-sha256; cv=none; b=eBPXINbseitjEJjovmARZNo3+83aRQx6OpuqybgP3Pow4EUOq6i4j4fljmuQJ+joadoGna IbdW38zJklInakZ5bE7CID8sQnPbUL3BMPI7scSxBN+6itvq18htbZAtzaWEZv/jm1S0Jp 2pHQJALXnlEm558BMhg+RVUUw/uXabseMyX+SOJZZ1I8793ftb00eNABPtvWH227DaM055 +TORx06Bhp8hIq8+jQIn0gm10LXDCA1Qd0Cnf/ubUEMWw09tvwPviC7vtRKbzhIpIufFYb AE4oxBmkMg9QuDOSiik2F0Gywe0my6vNknFvfNRIqs/1HThpOuhNL05iGJk7Zw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=UGj+SJ4l; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: -0.25 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=UGj+SJ4l; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 6F7161234A X-Spam-Score: -0.25 X-Migadu-Scanner: scn0.migadu.com X-TUID: h4urW3Tvwb5Z --000000000000f264f105c1d392d5 Content-Type: multipart/alternative; boundary="000000000000f264ef05c1d392d3" --000000000000f264ef05c1d392d3 Content-Type: text/plain; charset="UTF-8" Hi! This is my first patch. The patch skips formatting TODO item in org-agenda when the format string is "". When the format string was "" the extra space would still be inserted which was not needed when there is no TODO keyword. Thanks, Samim --000000000000f264ef05c1d392d3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi!
<= br>
This is my first patch.

The patch skips formatting TOD= O item in org-agenda when the format string is "".=C2=A0
When the format string was "" the extra= space would still be inserted which was not needed when there is no TODO k= eyword.

Than= ks,
Samim
--000000000000f264ef05c1d392d3-- --000000000000f264f105c1d392d5 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-org-agenda-Skip-formatting-if-format-string-is.patch" Content-Disposition: attachment; filename="0001-org-agenda-Skip-formatting-if-format-string-is.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kofxdord0 RnJvbSBkYzNiYTMwMTIxOTYyMmJjN2QzMjQ5MDFhNWYyNzcwMjRmOGI1NWNjIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBTYW1pbSBQZXplc2hraSA8cHNhbWltQGdtYWlsLmNvbT4KRGF0 ZTogU2F0LCA4IE1heSAyMDIxIDIwOjA5OjE2ICswNDMwClN1YmplY3Q6IFtQQVRDSF0gb3JnLWFn ZW5kYTogU2tpcCBmb3JtYXR0aW5nIGlmIGZvcm1hdCBzdHJpbmcgaXMgIiIKCldoZW4gdGhlIGZv cm1hdCBzdHJpbmcgd2FzICIiIHRoZSBleHRyYSBzcGFjZSB3b3VsZCBzdGlsbCBiZSBpbnNlcnRl ZAp3aGljaCB3YXMgbm90IG5lZWRlZCB3aGVuIHRoZXJlIGlzIG5vIFRPRE8ga2V5d29yZC4KLS0t CiBsaXN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