From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: using non-Emacs regexp syntax Date: Wed, 29 Nov 2006 18:11:05 -0800 Message-ID: References: <200611292113.19747.pogonyshev@gmx.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1164852779 2040 80.91.229.2 (30 Nov 2006 02:12:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 30 Nov 2006 02:12:59 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 30 03:12:55 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GpbPt-00039v-Nj for ged-emacs-devel@m.gmane.org; Thu, 30 Nov 2006 03:12:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GpbPt-0008IJ-6l for ged-emacs-devel@m.gmane.org; Wed, 29 Nov 2006 21:12:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GpbPN-00085x-Fc for emacs-devel@gnu.org; Wed, 29 Nov 2006 21:12:17 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GpbPK-00084g-Gw for emacs-devel@gnu.org; Wed, 29 Nov 2006 21:12:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GpbPK-00084a-Ca for emacs-devel@gnu.org; Wed, 29 Nov 2006 21:12:14 -0500 Original-Received: from [141.146.126.228] (helo=agminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GpbPJ-0007cU-8g; Wed, 29 Nov 2006 21:12:13 -0500 Original-Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.186.111]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id kAU2C7vj020585; Wed, 29 Nov 2006 20:12:08 -0600 Original-Received: from rcsmt251.oracle.com (rcsmt251.oracle.com [148.87.90.196]) by rgmgw2.us.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id kATFTih5028281; Wed, 29 Nov 2006 19:12:07 -0700 Original-Received: from dhcp-amer-whq-csvpn-gw3-141-144-84-11.vpn.oracle.com by rcsmt250.oracle.com with ESMTP id 2241774871164852673; Wed, 29 Nov 2006 19:11:13 -0700 Original-To: "Paul Pogonyshev" , X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal In-Reply-To: <200611292113.19747.pogonyshev@gmx.net> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-Whitelist: TRUE X-Whitelist: TRUE X-Brightmail-Tracker: AAAAAQAAAAI= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:63093 Archived-At: > > I don't know any other matcher where dot matches a newline. Quite > > more relevant would be inverse character ranges like [^A-Z] that do > > _not_ match newline by default. > > As far as I remember, Perl regexp syntax has a flag to > match or not match newline by default. Exactly. This (perl's "single-line" mode) was mentioned in the thread I cited, as well as the reason (use) for such a feature for Emacs. > Emacs could adopt a similar flag facility, > or use native flag variables (like `case-fold-search', > just with a different meaning.) Juri proposed a simple implementation: 'setting a new variable `search-dot-regexp' to "\\(.\\|[\\n]\\)".' Please see the (3-message) thread. This would be very handy for interactive use of regexps, IMO, especially with a toggle command (bound to, say, `C-.').