From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UCKIFEI5x2H4JwEAgWs5BA (envelope-from ) for ; Sat, 25 Dec 2021 16:31:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id SMQkEEI5x2GMTgAAbx9fmQ (envelope-from ) for ; Sat, 25 Dec 2021 15:31:14 +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 1333A25CEF for ; Sat, 25 Dec 2021 16:31:14 +0100 (CET) Received: from localhost ([::1]:36610 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n190r-0008B4-85 for larch@yhetil.org; Sat, 25 Dec 2021 10:31:13 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57420) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n18uo-0002SD-7B for emacs-orgmode@gnu.org; Sat, 25 Dec 2021 10:24:59 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:46481) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n18um-00037U-2X for emacs-orgmode@gnu.org; Sat, 25 Dec 2021 10:24:57 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id AB0A45C00FF for ; Sat, 25 Dec 2021 10:24:55 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sat, 25 Dec 2021 10:24:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eml.cc; h= message-id:subject:from:to:content-type:date:mime-version :content-transfer-encoding; s=fm2; bh=fSvTZYb4KgoFMSjS//dNsneIkD mdIKQxB3GEL+kt4/A=; b=f2ZaQ/nJ1Z6oCirmtoulxAGxPX/78d7ftx+8NRwssJ D9A7j86a+5Ira5g/9f3aT7dz747SdTWL5hLhj2MiYCKhbOXAZzEJfQGF9ikkywxV siSAVpCwqz9nhhMN2qqoNWEJ8QduhuDwAH6ovqbfFrWpHUeQfJy0xwTWA5D/cZZf p2Zxwg+wVmZ6UxETh6XGY8sLBIO8Y6FrUFRtabKtThaHkOhHbTaFhkJQesmTVXTV wEUYS5mTxlqCIm1srnJFQaEFD8XwHAgdiEciQoBVqcFQ8AwL70N7OrM+lOIjDbr+ WHfFfYX60yZkvk+2nlYHrv6SoLT0seUuGJB89zrQj7tQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=fSvTZY b4KgoFMSjS//dNsneIkDmdIKQxB3GEL+kt4/A=; b=A2ZwD6ZnPnfTuqZebUmz+C qj53OWUfgbe7lK/AfJruxQsw4CCMNgwrMUEiFY+yWMMUb3Wh34Ej3pgQmSLjjMSv VvNQyewULtI8paC4uuuz+p0uWUxFda9EvhhcZYjnOrQfRAq+6F/UH1SnCzhxDZEP 2e6MTVRPnc0fgcS79acq01F+qndiTztmtTdbJqE+5Xr/Au0mFB/3DS7YZOY683a8 Gb20gtiqHvjiuYtKnbQcjj6lq8sMWBcSP9p58OEUEl+HmLcCBfdx6G8cKCWaGVOl 5/e27bw4Xi7grqT01F7cAn2tVgwFrT88UkMyky+iSBUpez9kMtFaPq0QFrXM+Xng == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrudduvddgieehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfedtmdenucfjughrpefkuffhvfgtffggfgfgsehtkeertddtreej necuhfhrohhmpefoihhkhhgrihhlucfukhhorhiihhhinhhskhhiihcuoehmshhkohhrii hhihhnshhkihihsegvmhhlrdgttgeqnecuggftrfgrthhtvghrnhephefggfehiedtleev ffetgfeiffegjeevuddtkeeiveeufffhffdtleektdettdefnecuvehluhhsthgvrhfuih iivgepudenucfrrghrrghmpehmrghilhhfrhhomhepmhhskhhorhiihhhinhhskhhihies vghmlhdrtggt X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sat, 25 Dec 2021 10:24:54 -0500 (EST) Message-ID: <0a1b98af1974ec260c4074df056715e237c08fce.camel@eml.cc> Subject: [PATCH] ox-icalendar.el: customizable vevent summary prefix From: Mikhail Skorzhinskii To: Org Mode Content-Type: text/plain; charset="UTF-8" Date: Sat, 25 Dec 2021 16:24:21 +0100 MIME-Version: 1.0 User-Agent: Evolution 3.40.0-1 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=66.111.4.26; envelope-from=mskorzhinskiy@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 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-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640446274; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=fSvTZYb4KgoFMSjS//dNsneIkDmdIKQxB3GEL+kt4/A=; b=KTkUs430pjzzC04U629kdmuOhcqWNpvYnFO/IxraXXFv8EFqnY1xjUA2G07MfoR1eB6vov 0to3TwNQd395RXIpLKR0w9bhUUtinsi+qwU6TonmN6qXifPpCF8IuAkhKoKKnBBqKUq/AO bbDHr+DKHXWfHn89EAgTGNgjUbygvofJyc0h4j7wKwn7Y+6qRJkAusa4XmPMpgReL3pAau Er1TH2x5WeWuW9juHxnOJ8zW8NpmCDh/+66bFXstxXbm8/57+6FQ59/86CV3+Bladt8ctM 0ZN3d5wI5Hm2sYPEXOAgCPpsarcUDjef2tFFUiuK4ScCoSfcoO2gC7xKkgQZsQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640446274; a=rsa-sha256; cv=none; b=uqWl7ewwRT9mlbfwu9jFQuF/BCqfLX2THxs6OGx/xBIFPnAW0SYWD4iNSwwxAcVZgXWy78 gBGaL6ZUrvLSlDU7YpcrwuyyxwNm7pLJH/OpvikVM7HTbxC8VyNBGlMhyP9FRQHWPZeQcZ Zr0p5gkiGBaZAyCOkYYp1xN279rFHYZ55i8x2LooPI/KpFL5KYQXtfdBmUnvHbkF6YvgA0 aPaymLoBpi7hvyhLw6c7Yb7WER4bGW1+28A0UhkbEpxDLEb2lGjff8gMhyYjj772UN5jl6 WntAPknMKxH4cDjmf1BUYM2jDcCv8N38f7N+h8x91iqHDB4gFYDrY0iG8AV7NA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=eml.cc header.s=fm2 header.b="f2ZaQ/nJ"; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=A2ZwD6Zn; dmarc=pass (policy=none) header.from=eml.cc; 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.56 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=eml.cc header.s=fm2 header.b="f2ZaQ/nJ"; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=A2ZwD6Zn; dmarc=pass (policy=none) header.from=eml.cc; 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: 1333A25CEF X-Spam-Score: -7.56 X-Migadu-Scanner: scn0.migadu.com X-TUID: i+DQ+HJzHG9e * lisp/ox-icalendar.el (org-icalendar-scheduled-summary-prepend): configurable prefix for the scheduled headlines * lisp/ox-icalendar.el (org-icalendar-deadline-summary-prepend): configurable prefix for the headlines with a deadline * lisp/ox-icalendar.el (org-icalendar-entry): use a configurable headline prefixes (see above) instead of hardcoded ones ---  lisp/ox-icalendar.el | 15 +++++++++++++--  1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/lisp/ox-icalendar.el b/lisp/ox-icalendar.el index 68c5679ea..0a56e08e5 100644 --- a/lisp/ox-icalendar.el +++ b/lisp/ox-icalendar.el @@ -84,6 +84,17 @@ 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) + + +(defcustom org-icalendar-deadline-summary-prepend "DL: " +  "String used for prepending summary in exported deadlines." +  :group 'org-export-icalendar +  :type 'string) +  (defcustom org-icalendar-use-deadline '(event-if-not-todo todo-due)    "Contexts where iCalendar export should use a deadline time stamp.   @@ -607,7 +618,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 @@ -618,7 +629,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.