From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thomas Fitzsimmons Newsgroups: gmane.emacs.bugs Subject: bug#22969: 24.5; excorporate 0.7.0 split-string failure Date: Wed, 09 Mar 2016 18:46:19 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1457567243 30651 80.91.229.3 (9 Mar 2016 23:47:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Mar 2016 23:47:23 +0000 (UTC) Cc: 22969@debbugs.gnu.org To: Devon Gleeson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 10 00:47:10 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1adnor-0006gs-6Q for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Mar 2016 00:47:09 +0100 Original-Received: from localhost ([::1]:45151 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adnoq-0002i7-KW for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Mar 2016 18:47:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adnon-0002hu-5y for bug-gnu-emacs@gnu.org; Wed, 09 Mar 2016 18:47:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adnok-0001H2-02 for bug-gnu-emacs@gnu.org; Wed, 09 Mar 2016 18:47:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44917) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adnoj-0001Gy-Sz for bug-gnu-emacs@gnu.org; Wed, 09 Mar 2016 18:47:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1adnoj-00072h-Oi for bug-gnu-emacs@gnu.org; Wed, 09 Mar 2016 18:47:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Thomas Fitzsimmons Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Mar 2016 23:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22969 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22969-submit@debbugs.gnu.org id=B22969.145756718827030 (code B ref 22969); Wed, 09 Mar 2016 23:47:01 +0000 Original-Received: (at 22969) by debbugs.gnu.org; 9 Mar 2016 23:46:28 +0000 Original-Received: from localhost ([127.0.0.1]:42044 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adnoC-00071u-GO for submit@debbugs.gnu.org; Wed, 09 Mar 2016 18:46:28 -0500 Original-Received: from mail-io0-f172.google.com ([209.85.223.172]:33369) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adnoA-00071e-W2 for 22969@debbugs.gnu.org; Wed, 09 Mar 2016 18:46:27 -0500 Original-Received: by mail-io0-f172.google.com with SMTP id n190so86414347iof.0 for <22969@debbugs.gnu.org>; Wed, 09 Mar 2016 15:46:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fitzsim-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=7w1FvXsZJSWWRASYKJZhDRxV7dBIY/c7YGxkJN4A5Pc=; b=zC7V6khtKWxUwfYUfMqq4qRYo6UkIorCjABeTFJTPI/Q1dR3ar5y+iNkM2Bw21OBKa n93f0o4OYN3DWypcZjFV7NFi283tWAZNOamMlc84Y3fFpf7DwHMSjvpWJImlkZp+No1P Bqc05g5WToaM6F37sRl4iIi4a0elQA3Z+yGyG6XK9GOcJL/bHDc5aZKlY9YfqvOT94r2 KfU8GaFOTJ2FtMXbj71+4U0e4OLXLhTC3usfIM8FPggOpLVoqDPtkjRvDw8dRZ+FQrjO CTqfUqsU6/fypwoJmIe3zyxlaKWNalIXlk5E2v5VhGRmCI4lxBJ/5ERLUW8PITETh9Qk XFvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=7w1FvXsZJSWWRASYKJZhDRxV7dBIY/c7YGxkJN4A5Pc=; b=cOWMJ/fy0l1+5/9GFbkuOy5mge+MTYaahCon9oizBtn+gsbiF9Ewp+ell+1YHEglXD eWdMbkzeLxSFjlLQXYEhGSlXE1vuEdttBMYKEp2yfpchFzMO2Ozx4tbFy54TABHPX/wd wmj3qpLrhd8fl4Be4qf4iPKIFFGu0bMzjQwJ0gW4njpv/SOIm1+iVOKxk+bZ5GWGWIZF rqriq58Aw4PxhOeV7mz2C3T8CmpHs/97xkgQdItnu6raPcP+semklNBvQ9wc3xNwx8ms bOOoh2fNdD/dVw2/3CpmE1Rz6kAZmpudkJCoLhSUGrgZjfqTZdvO09eQwdcFDjJO3EmN p/Pw== X-Gm-Message-State: AD7BkJK6AssXAYnRD3u2SiijhWoY7SvDU0dMU+FcCLLzcyjZecOON2A7Gl0wkfjqKHzMeg== X-Received: by 10.107.168.81 with SMTP id r78mr383056ioe.179.1457567181302; Wed, 09 Mar 2016 15:46:21 -0800 (PST) Original-Received: from hp-dv5t (69-165-165-189.dsl.teksavvy.com. [69.165.165.189]) by smtp.gmail.com with ESMTPSA id h22sm447679iod.25.2016.03.09.15.46.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Mar 2016 15:46:20 -0800 (PST) In-Reply-To: (Devon Gleeson's message of "Wed, 9 Mar 2016 21:28:00 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:114678 Archived-At: Hi Devon, Devon Gleeson writes: > I installed excorporate from elpa. Excorporate connected to my exchange > server and said it was ready. I opened my calendar and hit the 'e' key, > I saw the following error in my mini-buffer and in *Messages* > > Scheduled to <2016-03-09 Wed 18:00> > error in process filter: split-string: Wrong type argument: stringp, nil > error in process filter: Wrong type argument: stringp, nil > > The org-mode document *Excorporate* rendered, but had an incomplete list > of calendar events. Thanks for the bug report. This happens when there are no invitees. This will be fixed in 0.7.3 once I can merge soap-client.el, which diverged on emacs-master. In the meantime, I suspect these patches will fix it for you (apply by hand): --- ./excorporate.el~ +++ ./excorporate.el @@ -649,7 +649,9 @@ (defun exco-calendar-item-iterate (response callback) end 'dateTime))) (location (cdr (assoc 'Location calendar-item))) (to-invitees (cdr (assoc 'DisplayTo calendar-item))) - (main-invitees (mapcar 'org-trim (split-string to-invitees ";"))) + (main-invitees (when to-invitees + (mapcar 'org-trim + (split-string to-invitees ";")))) (cc-invitees (cdr (assoc 'DisplayCc calendar-item))) (optional-invitees (when cc-invitees (mapcar 'org-trim --- ./excorporate-org.el~ +++ ./excorporate-org.el @@ -88,8 +88,9 @@ (defun exco-org-insert-meeting (subject start end location (insert (format "+ Duration: %d minutes\n" (round (/ (float-time (time-subtract end start)) 60.0)))) (insert (format "+ Location: %s\n" location)) - (insert "+ Invitees:\n") - (exco-org-insert-invitees main-invitees) + (when main-invitees + (insert "+ Invitees:\n") + (exco-org-insert-invitees main-invitees)) (when optional-invitees (insert "+ Optional invitees:\n") (exco-org-insert-invitees optional-invitees))) Thomas