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: Sat, 02 Nov 2019 20:39:18 +0200 Organization: LINKOV.NET Message-ID: <871ruq88yp.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="95725"; 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: Mattias =?iso-8859-1?Q?Engdeg=E5rd?= , Eli Zaretskii , emacs-devel@gnu.org, rajeev@sivalik.com To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 02 19:51:25 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 1iQyUe-000OY9-K2 for ged-emacs-devel@m.gmane.org; Sat, 02 Nov 2019 19:51:24 +0100 Original-Received: from localhost ([::1]:49956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQyUd-0005l0-7o for ged-emacs-devel@m.gmane.org; Sat, 02 Nov 2019 14:51:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56476) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQyT2-0005ix-Lc for emacs-devel@gnu.org; Sat, 02 Nov 2019 14:49:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQyT0-0008Ll-DJ for emacs-devel@gnu.org; Sat, 02 Nov 2019 14:49:44 -0400 Original-Received: from antelope.elm.relay.mailchannels.net ([23.83.212.4]:4429) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iQySy-0008Ex-7G; Sat, 02 Nov 2019 14:49:40 -0400 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 65E2221297; Sat, 2 Nov 2019 18:49:37 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a64.g.dreamhost.com (100-96-6-183.trex.outbound.svc.cluster.local [100.96.6.183]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id EA75E20D42; Sat, 2 Nov 2019 18:49:36 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a64.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); Sat, 02 Nov 2019 18:49:37 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Celery-Fearful: 6bfbe68a1acd8e69_1572720577215_686951895 X-MC-Loop-Signature: 1572720577215:1508981172 X-MC-Ingress-Time: 1572720577215 Original-Received: from pdx1-sub0-mail-a64.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a64.g.dreamhost.com (Postfix) with ESMTP id 901ED84760; Sat, 2 Nov 2019 11:49:31 -0700 (PDT) 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=3dUIF80tdBWaw7NfSeI5jWKUiuU=; b= F9SWwSaETYzuwsXvYh7aWdKnZs9sKwzDFcCbNYYqwObj3coWYt3zaQLgpbOxbTtj GUksLeEgAlJokpH1UZf5P+0PYEiFCuZwSQSauWdu/GlCuEzjPmQt4N3n4Pn6XylI iGwkPKTyEV0JUtrgxbXTRwRP969Q8n8SISJbMALso1k= 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-a64.g.dreamhost.com (Postfix) with ESMTPSA id 680398474D; Sat, 2 Nov 2019 11:49:27 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a64 In-Reply-To: <34fad408-c220-7980-c7fe-1299093d842f@cs.ucla.edu> (Paul Eggert's message of "Fri, 1 Nov 2019 14:19:30 -0700") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 23.83.212.4 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:241737 Archived-At: >>> you would have to write "\\(?:.\\|\n\\)" which is slower and messier, although perhaps easier to understand. >> Yes, it's easier to understand, so I prefer that we use it. > > I find "[^z-a]" to be signficantly easier to understand than > "\\(?:.\\|\n\\)". > > But since the concept is useful, how about if we create an escape for it? > For example, we could establish \! as a regexp that matches any single > character. This be more readable than either [^z-a] or \(?:.\| > \), and would surely help performance as well as readability. Like using the dotall modifier in other regexp engines to enable single line mode where the dot matches all characters, including newlines, e.g. in PCRE /regexp/s what would be an equivalent for specifying regexp modifiers in Emacs Lisp? Maybe something like (let ((regexp-modifiers "s")) (string-match "." string))