From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/88502 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-icalendar export to org does not include time stamp if no description Date: Sun, 14 Apr 2019 13:21:31 +0200 Message-ID: References: <87k1fwq2bb.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="31000"; mail-complaints-to="usenet@blaine.gmane.org" Cc: ding@gnus.org To: Eric S Fraga Original-X-From: ding-owner+M36705@lists.math.uh.edu Sun Apr 14 13:21:59 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 1hFdCx-0007v7-4n for ding-account@gmane.org; Sun, 14 Apr 2019 13:21:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.92) (envelope-from ) id 1hFdCi-0005Cf-TM; Sun, 14 Apr 2019 06:21:44 -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) (envelope-from ) id 1hFdCd-00059f-4z for ding@lists.math.uh.edu; Sun, 14 Apr 2019 06:21:39 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1hFdCb-0004Xf-L6 for ding@lists.math.uh.edu; Sun, 14 Apr 2019 06:21:39 -0500 Original-Received: from mail-wr1-f45.google.com ([209.85.221.45]) by quimby.gnus.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hFdCY-0002Ic-2V for ding@gnus.org; Sun, 14 Apr 2019 13:21:36 +0200 Original-Received: by mail-wr1-f45.google.com with SMTP id h4so17941912wre.7 for ; Sun, 14 Apr 2019 04:21:34 -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:content-transfer-encoding; bh=eSYgPsB5YUFkea6YctidtYyBpz55CmkLYmY0O8drQJY=; b=rvej0RtthrydijZQkqpYLMVAVgZx2zojthf/xSt6R9RcQdJp6F0X4KkBaKLMzgkvpr c9JmWScgkygWtgrcseIjuFZ0h4RLuFd6YRQEF/EQYBPXrD8DgNRi/l3majhAJQj7MzWz qQ69uRQXUe2p/iNcRqPp3FDrlBJRO3LpNY5jtEUBGp9mk4kDuS9QdE7QmYGfOobc5uAI 7iTDLrZ/PY4WE5CCYnOJO1gPVO+FIpz8qB3sth4A+pWTAxrZFK4NGnj7BbynctDOCM6A 9RmuxKFiAEKj3NtBjpWTwbU/eP+sEH3XeXaFSTdRTCJEGT2n33KFapuz8sK6G5JscCuP PTqg== 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 :content-transfer-encoding; bh=eSYgPsB5YUFkea6YctidtYyBpz55CmkLYmY0O8drQJY=; b=NG3Fckxny+cIQPYb9ASd0knMlKaKQf+jDG4Ju/0MY8WFFdM8vxTcY+bBM5FeUBghcm +Ll4mK2OCHWY4PGx4oSrJWw+MtAwRlJikHsRYS6w1gtslzt7Yefg0lWOIlVpPVo0Mmv+ jEy3PapRVoruF9bkh1hDwYxEmXqIS1XqP8uHuKPCEXQ4p6+2+t54zOKYa/9PgydT9EB7 Z13OGvv01onfGZZ+NoQbmHsKXM4GRxBisYJyohzC0G05NxKiGEN3x8dtn35FxxYyJ1KS a5ScBCUQk45TW6D+IBTtVjsgQdL1QCrCIyvoXr272yyYiZmZZGJnC5+XGA8kQyIV+ePp VrZA== X-Gm-Message-State: APjAAAXXUKWGlIb62nMfn/Tb5jAGjc6ZJ2QkesHxuLeJH8AnzuJyyD+n EkSOanOK+8TeZdtdkgEf/3+eVn8J X-Google-Smtp-Source: APXvYqxdWqMWGC2LOmgswIu6Ru+f5SmbKd8DUltPKNmW66mU3IPoS+0kjNM02tqCdeqLB5sXE38eDw== X-Received: by 2002:adf:c788:: with SMTP id l8mr42552859wrg.143.1555240893113; Sun, 14 Apr 2019 04:21:33 -0700 (PDT) Original-Received: from rpluim-mac ([2a01:e34:ecfc:a860:8d50:d54a:3ca:4894]) by smtp.gmail.com with ESMTPSA id f11sm61946289wrm.30.2019.04.14.04.21.31 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 14 Apr 2019 04:21:32 -0700 (PDT) Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <87k1fwq2bb.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Sun, 14 Apr 2019 12:00:24 +0100") List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:88502 Archived-At: >>>>> On Sun, 14 Apr 2019 12:00:24 +0100, Eric S Fraga = said: Eric> Hello, I don't know whether to post this here, in the org Eric> mailing list, or an emacs group... Eric> I use gnus-icalendar-event-export to create org entries from Eric> calendar invites. For some reason, the time stamp Eric> associated with the entry is only exported if the invite has Eric> a description field (line 483 of gnus-icalendar.el in git Eric> version of Emacs). As the description field is optional, Eric> some invites do not get exported properly. This seems wrong Eric> to me. Eric> I could try fixing this myself but I'm not proficient with Eric> elisp... Totally untested, as I don=CA=BCt use gnus-icalendar at all. diff --git a/lisp/gnus/gnus-icalendar.el b/lisp/gnus/gnus-icalendar.el index 28020a1fd0..64cc3f92a9 100644 --- a/lisp/gnus/gnus-icalendar.el +++ b/lisp/gnus/gnus-icalendar.el @@ -480,14 +480,14 @@ gnus-icalendar--format-participant-list (org-entry-put (point) (car prop) (cdr prop))) props)) =20 - (when description - (save-restriction - (narrow-to-region (point) (point)) - (insert (gnus-icalendar-event:org-timestamp event) - "\n\n" - description) - (indent-region (point-min) (point-max) 2) - (fill-region (point-min) (point-max)))) + (save-restriction + (narrow-to-region (point) (point)) + (insert (gnus-icalendar-event:org-timestamp event) + "\n\n") + (when description + (insert description)) + (indent-region (point-min) (point-max) 2) + (fill-region (point-min) (point-max))) =20 (buffer-string)))) =20