From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Regexps and strings once again Date: Mon, 15 Sep 2014 08:56:38 -0400 Message-ID: References: <541637C4.8050502@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1410785830 30376 80.91.229.3 (15 Sep 2014 12:57:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Sep 2014 12:57:10 +0000 (UTC) Cc: emacs-devel@gnu.org To: Lars Magne Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 15 14:57:03 2014 Return-path: Envelope-to: ged-emacs-devel@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 1XTVq0-0005So-3O for ged-emacs-devel@m.gmane.org; Mon, 15 Sep 2014 14:57:00 +0200 Original-Received: from localhost ([::1]:59546 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTVpz-0000mJ-CD for ged-emacs-devel@m.gmane.org; Mon, 15 Sep 2014 08:56:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTVpo-0000gi-3r for emacs-devel@gnu.org; Mon, 15 Sep 2014 08:56:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XTVpf-0008KL-QN for emacs-devel@gnu.org; Mon, 15 Sep 2014 08:56:48 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:54582) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTVpf-0008K9-Nu for emacs-devel@gnu.org; Mon, 15 Sep 2014 08:56:39 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUGAIDvNVNFpZEG/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCws0EhQYDSSIBAjSGReOegeEOASpGYFqg0wh X-IPAS-Result: ArUGAIDvNVNFpZEG/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCws0EhQYDSSIBAjSGReOegeEOASpGYFqg0wh X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="89724609" Original-Received: from 69-165-145-6.dsl.teksavvy.com (HELO pastel.home) ([69.165.145.6]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 15 Sep 2014 08:56:39 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id E1F3E616FA; Mon, 15 Sep 2014 08:56:38 -0400 (EDT) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Mon, 15 Sep 2014 12:04:55 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:174321 Archived-At: > If we want to do a more string-ey syntax, but not require wrapping it in > (regexp ...), then we could have something like: > #r"This is (not )?a Perl regexp" The difference between #r"REGEXP" and (SYMBOL REGEXP) is enormous in terms of tool support. So if you don't like (regexp "foo"), I'd recommend you try a shorter symbol first. Stefan