From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: icalendar.el bug fix patch Date: Fri, 01 Nov 2019 11:40:04 +0200 Message-ID: <83eeyslytn.fsf@gnu.org> References: <875zkfd1rz.fsf@hm.sivalik.com> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="110259"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Rajeev Narang Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 01 10:41:34 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iQTQz-000SYT-Oq for ged-emacs-devel@m.gmane.org; Fri, 01 Nov 2019 10:41:33 +0100 Original-Received: from localhost ([::1]:37048 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQTQy-0006MQ-7X for ged-emacs-devel@m.gmane.org; Fri, 01 Nov 2019 05:41:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36945) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQTPb-0006L5-1A for emacs-devel@gnu.org; Fri, 01 Nov 2019 05:40:07 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45024) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iQTPZ-0003V2-O7; Fri, 01 Nov 2019 05:40:05 -0400 Original-Received: from [176.228.60.248] (port=4855 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iQTPX-0003ao-5k; Fri, 01 Nov 2019 05:40:03 -0400 In-reply-to: <875zkfd1rz.fsf@hm.sivalik.com> (emacs-devel@gnu.org) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:241684 Archived-At: > Date: Wed, 23 Oct 2019 09:33:52 -0400 > From: Rajeev Narang via "Emacs development discussions." > > icalendar-export-region does not export multi-line Desc as it is imported by icalendar-import-file. The following patch fixes the issue. If acceptable, please commit. Thanks. > > diff --git a/lisp/calendar/icalendar.el b/lisp/calendar/icalendar.el > index 1186ced3fb..1f4e582aa5 100644 > --- a/lisp/calendar/icalendar.el > +++ b/lisp/calendar/icalendar.el > @@ -1244,7 +1244,7 @@ icalendar--parse-summary-and-rest > (concat "\\(" icalendar-import-format-uid "\\)??")))) > ;; Need the \' regexp in order to detect multi-line items > (setq s (concat "\\`" > - (replace-regexp-in-string "%s" "\\(.*?\\)" s nil t) > + (replace-regexp-in-string "%s" "\\([^z-a]*?\\)" s nil t) > "\\'")) Thanks, but is [^a-z] correct? Do you want to reject only lower-case ASCII characters? What about non-ASCII?