From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: icalendar.el bug fix patch Date: Sun, 03 Nov 2019 22:54:13 +0200 Organization: LINKOV.NET Message-ID: <87bltsisui.fsf@mail.linkov.net> References: <875zkfd1rz.fsf@hm.sivalik.com> <83eeyslytn.fsf@gnu.org> <87imo3g8af.fsf@hm.sivalik.com> <831rurn3vs.fsf@gnu.org> <321C5595-5EBF-4231-9179-FE1CA4A412F7@acm.org> <83tv7nlo16.fsf@gnu.org> <34fad408-c220-7980-c7fe-1299093d842f@cs.ucla.edu> <871ruq88yp.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="131572"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: rajeev@sivalik.com, Mattias =?iso-8859-1?Q?Engdeg=E5rd?= , Eli Zaretskii , Paul Eggert , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 03 22:11:32 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 1iRN9n-000Y7G-GO for ged-emacs-devel@m.gmane.org; Sun, 03 Nov 2019 22:11:31 +0100 Original-Received: from localhost ([::1]:56340 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRN9m-0003YO-9T for ged-emacs-devel@m.gmane.org; Sun, 03 Nov 2019 16:11:30 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51583) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRMwC-0000kh-Ru for emacs-devel@gnu.org; Sun, 03 Nov 2019 15:57:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iRMwB-0002iH-Qx for emacs-devel@gnu.org; Sun, 03 Nov 2019 15:57:28 -0500 Original-Received: from azure.elm.relay.mailchannels.net ([23.83.212.7]:31393) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iRMw9-0002hV-Lf; Sun, 03 Nov 2019 15:57:25 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 41D301A0D03; Sun, 3 Nov 2019 20:57:24 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a83.g.dreamhost.com (100-96-14-250.trex.outbound.svc.cluster.local [100.96.14.250]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id E92191A0D31; Sun, 3 Nov 2019 20:57:19 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a83.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Sun, 03 Nov 2019 20:57:24 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Whistle-Soft: 42402c83369e82a6_1572814644053_1460313222 X-MC-Loop-Signature: 1572814644053:142930600 X-MC-Ingress-Time: 1572814644053 Original-Received: from pdx1-sub0-mail-a83.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a83.g.dreamhost.com (Postfix) with ESMTP id 8A58282D97; Sun, 3 Nov 2019 12:57:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=rUiCdOZ6A8FRDwHIiXlNs8vP9rQ=; b= lIGmVDqymYvzF/WQ8GjWgBkZrIzkGnlpQSRtZjJsgeg8aVaH8UUkENq1PWlSolsI Gp6VCpulWZk3WsepWiXDZ1FZLDJFqq+IABMvG1A40Ygod3o9O99rmRqQoRk41WrX oEcXGmW8ivg6J4U7HBXyW4qYWjN2b2FoneR9j2Sas4U= Original-Received: from mail.jurta.org (m91-129-101-77.cust.tele2.ee [91.129.101.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a83.g.dreamhost.com (Postfix) with ESMTPSA id 0546E82D98; Sun, 3 Nov 2019 12:57:10 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a83 In-Reply-To: (Stefan Monnier's message of "Sun, 03 Nov 2019 14:55:05 -0500") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 23.83.212.7 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:241764 Archived-At: >> what would be an equivalent for specifying regexp modifiers in Emacs Lisp? >> Maybe something like >> >> (let ((regexp-modifiers "s")) >> (string-match "." string)) > > That will affect all the regexp matching that will happen during > execution of this code, so it will require changes in debug.el and > edebug.el, and probably in elp.el and trace.el as well to "reset" the > var before running innocent code. > > Also, it can be problematic for cases where we combine/concatenate > several regexp chunks. In /regexp/s syntax the modifiers are inseparable from regexp. What would be an equivalent in Emacs, maybe text properties? (string-match (propertize "." 'regexp-modifiers 'newline) string)