From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/88816 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.gnus.general Subject: Re: icalendar event without description field fails on export Date: Tue, 15 Oct 2019 11:51:58 +0200 Message-ID: References: <87mue2juo4.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="126038"; mail-complaints-to="usenet@blaine.gmane.org" Cc: ding@gnus.org To: Eric S Fraga Original-X-From: ding-owner+M37020@lists.math.uh.edu Tue Oct 15 11:52:43 2019 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iKJVS-000WbQ-NA for ding-account@gmane.org; Tue, 15 Oct 2019 11:52:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.92.3) (envelope-from ) id 1iKJUx-0007Ui-48; Tue, 15 Oct 2019 04:52:11 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1iKJUs-0007S3-TU for ding@lists.math.uh.edu; Tue, 15 Oct 2019 04:52:06 -0500 Original-Received: from [80.91.231.51] (helo=quimby.gnus.org) by mx1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) (envelope-from ) id 1iKJUr-0004Bf-Eu for ding@lists.math.uh.edu; Tue, 15 Oct 2019 04:52:06 -0500 Original-Received: from mail-wm1-f50.google.com ([209.85.128.50]) by quimby.gnus.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1iKJUn-0002uH-DV for ding@gnus.org; Tue, 15 Oct 2019 11:52:03 +0200 Original-Received: by mail-wm1-f50.google.com with SMTP id i16so20103331wmd.3 for ; Tue, 15 Oct 2019 02:52:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version; bh=O6T4Yz/44y03l0rnSyelth8ni1LH5+qvKuk/3uPB33U=; b=an3hA7mZJ7usuga7lLxJRuiADMg1Y2Fv7woO7MUGQmcSvD2TYsVpQR2VhpANZYpPTX LXvlE3fpbLynL9y0E/TwmzExLVgMUMHn7luAXLX6Dxm5iPCqpGMzuvlsgrzmeARxnHTZ hBGjnyXeb+iuQOqX5aySLimXZsQsJt3+HQ7Tzp/IDSGza16rEuSNVK0QWcq1D4dDKukn cb1lGG2j0WquWGVLJkfAdGmvoTGnDHSG251X6S7Jd+yYuo5JXwqLT9SbCN9M5BwUr3yH h8VqwhSPl6TG6tsnCuWtD8MVGyfkwSuHWccIz+GMvrJ+kSbKGIhJZR4wJ76KGksGd0LX NPUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version; bh=O6T4Yz/44y03l0rnSyelth8ni1LH5+qvKuk/3uPB33U=; b=WoFL5rIP8IMtmZNck+A8Z7o0dtAS5RBlyuyzM7poLCob9K/+ZKndQU64gRTWt5sTTK KWycQHC2GjQCcbjHer7prBECnrG1L43/W4Z4N9IVxBQqPbDJb/a0wOzx/KhvX/yPF658 Y3r63KLfS6b/iL/3d8GtHoOyFKgxOuOy7RWXxu+6HQsuHTI2BKCrWT30QMgptmLlP4NS dg1zEawT7v6TTbHGmgZRXwN/yyZvMT2wRYnVAqxMIe51AdEms5NJvLhaFme26CYAs7P8 VRAyXgra/xoKlu8/5g8sRUipenWH7km4svA0QcFqzrpTDPbiyi+byl+2hPcxVv9rQx24 s/ow== X-Gm-Message-State: APjAAAWb5GNev2nnzhOKWcNAp6SMRi8OT408Kq712/AQEUwjfrkjLMNz wz/AvS7LaQfEdKIeKiFnekFkAihycJo= X-Google-Smtp-Source: APXvYqxU8gN1ByH5TvQW4Z1pCOU0TtHn6xtTuV8LcDF8QCZwvYQJ/VyWnS41ZM6ddUElPsrX2ILFog== X-Received: by 2002:a1c:f60d:: with SMTP id w13mr19834750wmc.150.1571133119839; Tue, 15 Oct 2019 02:51:59 -0700 (PDT) Original-Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id x2sm26243964wrn.81.2019.10.15.02.51.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2019 02:51:59 -0700 (PDT) Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <87mue2juo4.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Tue, 15 Oct 2019 09:10:35 +0100") List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:88816 Archived-At: >>>>> On Tue, 15 Oct 2019 09:10:35 +0100, Eric S Fraga said: Eric> If I receive a calendar invite which has no description field, the Eric> gnus-icalendar-event-export function fails with a nil string. Ah yes, I guess this is my fault. Does the following work for you? diff --git a/lisp/gnus/gnus-icalendar.el b/lisp/gnus/gnus-icalendar.el index e4779f52c0..77e73e6606 100644 --- a/lisp/gnus/gnus-icalendar.el +++ b/lisp/gnus/gnus-icalendar.el @@ -485,7 +485,7 @@ gnus-icalendar-event->org-entry (narrow-to-region (point) (point)) (insert (gnus-icalendar-event:org-timestamp event) "\n\n" - description) + (or description "No description")) (indent-region (point-min) (point-max) 2) (fill-region (point-min) (point-max)))