From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 mC4XOyJOFmOZBQEAbAwnHQ (envelope-from ) for ; Mon, 05 Sep 2022 21:29:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id sDpEOiJOFmPJHwEAG6o9tA (envelope-from ) for ; Mon, 05 Sep 2022 21:29:38 +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 8E782DB73 for ; Mon, 5 Sep 2022 21:29:37 +0200 (CEST) Received: from localhost ([::1]:34748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVHmq-0007hq-JB for larch@yhetil.org; Mon, 05 Sep 2022 15:29:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43744) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVHmG-0007hZ-AP for emacs-orgmode@gnu.org; Mon, 05 Sep 2022 15:29:00 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:52119) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVHmE-0004fa-BV for emacs-orgmode@gnu.org; Mon, 05 Sep 2022 15:29:00 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id D4A3D5C0193; Mon, 5 Sep 2022 15:28:56 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 05 Sep 2022 15:28:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eml.cc; h=cc:cc :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1662406136; x=1662492536; bh=a6BUkwV7DJ 45vL4IwskIEefpyasTtHc+Uub1/XqCEZ4=; b=hJ52D/pJcdnS/7oC/M35QSEj2C 6+rfY9yjrkT+yOLSNyd2+r1ozfxgtE4NJsqmY5fS9nwmijVrx4EXG2FordaLkKaB 2kdG6c1qhGNU9Zjq1Z/xsipp1cSC1pfZ5SnccXWMPH5DbQWnY3BLLVONFlZ8Yk4X e8hlnCmTsKc3nmlYxXJVwhw+X0tfiP/GYqf0Zgg3O2oyTHpu/BPoiOfZXRV6fInK So9PyL/MdqCm/BCVRUnyIZRhwOVxoP+fIMQh6Ox0awVDSyUeqlGIxYRwGY272P8b BqGESPzdtpJpEXSrrmEcKauepYzS+/Wir76tvpLDQ9N4AIYeXrXlI1w9Smiw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1662406136; x=1662492536; bh=a6BUkwV7DJ45vL4IwskIEefpyasT tHc+Uub1/XqCEZ4=; b=lwDdVnsybpdP4fW3Gj0XSn9lS9AU80ZiqWZc0yuV1vug alf+9JRss3JPtTDATm1WUIC8+pg2zAQ10BGZyG0evib4xyGpywylU2VZvIAFtLqI bxzwQEebBGK1YpatdjO2Eg9XfEmUEijD77ZsffGgC77sWrADRu9PiNWaM08sXbs8 7EXYWdtWnRIAhueLsMog7JX9DdP+2tsDkpifgn8bIQGlpi9zy1JQgxCSSffh1KMX a4e1mw8MKfeSSp295/2CG3nT8o/IaUk68+/KyTZiyFvFbkcm7b4BxXj8Z6vSAP6x Wy6VVX+SVhXaxtVX5Dm8aWfxIqmmMxG8Z3Y6hlrs4A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdeliedgudegvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enfghrlhcuvffnffculdduhedmnecujfgurhephffvvefuffhffggjkfggtgesmhdtreer tderjeenucfhrhhomhepofhikhhhrghilhcuufhkohhriihhihhsnhhkihhiuceomhhskh horhiihhhinhhskhhiihesvghmlhdrtggtqeenucggtffrrghtthgvrhhnpedtffeuhfdv heehvddtieehhfeijeegtdeilefhtdefheefleegieevieehgedttdenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmshhkohhriihhihhnshhk ihhisegvmhhlrdgttg X-ME-Proxy: Feedback-ID: i171146f6:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 5 Sep 2022 15:28:56 -0400 (EDT) From: Mikhail Skorzhisnkii To: Ihor Radchenko Cc: Org Mode Subject: Re: [PATCH] ox-icalendar.el: customizable vevent summary prefix Date: Mon, 05 Sep 2022 21:28:22 +0200 References: <0a1b98af1974ec260c4074df056715e237c08fce.camel@eml.cc> <871r1zawhp.fsf@nicolasgoaziou.fr> <8451fcc20c68d9863a4613df5a1cd5dbba0a77cd.camel@eml.cc> <87h72xn44k.fsf@localhost> <25163bf9-2455-4790-b258-84e766813de3@www.fastmail.com> <87ilndl9jx.fsf@localhost> <87o7w1j0su.fsf@eml.cc> User-agent: mu4e 1.8.7; emacs 29.0.50 In-reply-to: <87o7w1j0su.fsf@eml.cc> Message-ID: <8735d5tybx.fsf@eml.cc> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=66.111.4.26; envelope-from=mskorzhinskii@eml.cc; helo=out2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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=1662406178; 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=a6BUkwV7DJ45vL4IwskIEefpyasTtHc+Uub1/XqCEZ4=; b=N5U5zRXxLHDL0chBpszkss4WCHzBpvF9pu/Qxf8D66EmhSSAQ8hRmyfXEYFGzadNyaxnDy IBeZkWkrIlAC14CW6rQY/6luR9r6usimqyTQ8p1wYAN1ayqyFi00steu1P4ZXqG8KoXmIJ wmWFQoZfL/dHg+64RngQHKte8fISb7l75r6v7ckMcv9xcKfIUaL5MNXga6Zn8eUO7gO6vw zLFx6MplXMgy+FvQWMT25czx/ajoHl0yURO5x5eP7NzlFCQxNkcZjVGtG6Hqbsc2c2BWw2 94IIIHdh5vDK3qPvvCVNIOhjATztsEkRf8oFAew8mhdkjBRZ+2erbM5BPcOAPw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662406178; a=rsa-sha256; cv=none; b=KJ2LWUi5goOlr3vk3GbNkqEKGrJynsPqz3SGQt4JjgjEjnMqV3VgsXmW53inzLkwbsmUmo F4lkN26SB6vktvKs3bEeXIeBG3CJm8FelK2/RFRC9BV38ee5YtsBbsl8YeIM6b/9RqHsve bbMg6QcPVIny20TtoP5IjI7usI9yGs83nPqSE48A9gQE8nDUzBVUdFQPY0bITZaVe6SJbd HlEjL3y7R8S2juypgtcwMn501k+5bczYpdSQYNgjZDLdg1XYmv7gxaScjFysdEbD2u435S QlXNGyBN9V52lH+cpKTZnKgn9F3Hq6AGB5F4TPeLUn9ooenUGJPhS4oyP9M0QQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=eml.cc header.s=fm1 header.b="hJ52D/pJ"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=lwDdVnsy; dmarc=fail reason="SPF not aligned (relaxed)" header.from=eml.cc (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: 7.12 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=eml.cc header.s=fm1 header.b="hJ52D/pJ"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=lwDdVnsy; dmarc=fail reason="SPF not aligned (relaxed)" header.from=eml.cc (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: 8E782DB73 X-Spam-Score: 7.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: KrTwXEY7DQil --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Resubmitting this patch with better commit message. Mikhail Skorzhisnkii writes: > I have signed FSF papers. Attaching a rebased patch with additional chang= es to > ORG-NEWS > > Ihor Radchenko writes: > >> =E2=80=9CMikhail Skorzhinskiy=E2=80=9D writes: >> >>> Thanks for review, Ihor. I have sent a copyright assignment request. Wi= ll >>> resubmit the patches as soon as I complete the process. >> >> Thanks! Note that FSF clerk should reply within 5 working days. If not, >> please let us know. >> >> Best, >> Ihor > > [2. text/x-diff; 0001-org-agenda.el-customize-outline-path-in-echo-area.p= atch]=E2=80=A6 --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-ox-icalendar.el-customize-vevent-summary-prefix.patch >From 38c940230e84af34f023a17033fbbe0723e25b0d Mon Sep 17 00:00:00 2001 From: Mikhail Skorzhinskii Date: Sat, 12 Sep 2020 18:27:23 +0200 Subject: [PATCH] ox-icalendar.el: customize vevent summary prefix * lisp/ox-icalendar.el (org-icalendar-scheduled-summary-prepend): A new customization option to control summary prefix in exported scheduled events. * lisp/ox-icalendar.el (org-icalendar-deadline-summary-prepend): A new customization option to control summary prefix in exported deadline events. * lisp/ox-icalendar.el (org-icalendar-entry): Use configurable summary prefixes for scheduled and deadline events, instead of hardcoded ones. --- etc/ORG-NEWS | 7 +++++++ lisp/ox-icalendar.el | 19 +++++++++++++++++-- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index 7dae03dc6..b40820c4a 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -290,6 +290,13 @@ level used for top level headings, much like how headings in HTML export. ** New options +*** A new custom settings =org-icalendar-scheduled-summary-prepend= and =org-icalendar-deadline-summary-prepend= + +These setting allow users to define prefixes for exported summary +lines in ICS exports. Potential use would be to disable prefixes all +together or be a little bit mode verbose (e.g. "Deadline: " instead of +"DL: "). + *** A new custom setting =org-hide-drawer-startup= to control initial folding state of drawers Previously, all the drawers were always folded when opening an Org diff --git a/lisp/ox-icalendar.el b/lisp/ox-icalendar.el index 352d16335..912e19e6c 100644 --- a/lisp/ox-icalendar.el +++ b/lisp/ox-icalendar.el @@ -98,6 +98,21 @@ keyword." :group 'org-export-icalendar :type '(repeat (string :tag "Tag"))) +(defcustom org-icalendar-scheduled-summary-prepend "S: " + "String used for prepending summary in exported scheduled headlines." + :group 'org-export-icalendar + :type 'string + :package-version '(Org . "9.6") + :safe #'stringp) + + +(defcustom org-icalendar-deadline-summary-prepend "DL: " + "String used for prepending summary in exported deadlines." + :group 'org-export-icalendar + :type 'string + :package-version '(Org . "9.6") + :safe #'stringp) + (defcustom org-icalendar-use-deadline '(event-if-not-todo todo-due) "Contexts where iCalendar export should use a deadline time stamp. @@ -621,7 +636,7 @@ inlinetask within the section." (_ (memq 'event-if-not-todo use-deadline))) (org-icalendar--vevent entry deadline (concat "DL-" uid) - (concat "DL: " summary) loc desc cat tz class))) + (concat org-icalendar-deadline-summary-prepend summary) loc desc cat tz class))) (let ((scheduled (org-element-property :scheduled entry)) (use-scheduled (plist-get info :icalendar-use-scheduled))) (and scheduled @@ -632,7 +647,7 @@ inlinetask within the section." (_ (memq 'event-if-not-todo use-scheduled))) (org-icalendar--vevent entry scheduled (concat "SC-" uid) - (concat "S: " summary) loc desc cat tz class))) + (concat org-icalendar-scheduled-summary-prepend summary) loc desc cat tz class))) ;; When collecting plain timestamps from a headline and its ;; title, skip inlinetasks since collection will happen once ;; ENTRY is one of them. -- 2.35.1 --=-=-=--