From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: regex edit mode Date: Tue, 30 Sep 2014 21:10:08 +0200 Message-ID: <87ppechqlr.fsf@wmi.amu.edu.pl> References: <00d69071-b746-4544-a4b6-01fc9e29e5a3@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1412104256 953 80.91.229.3 (30 Sep 2014 19:10:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Sep 2014 19:10:56 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 30 21:10:50 2014 Return-path: Envelope-to: geh-help-gnu-emacs@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 1XZ2ow-0003ao-Aj for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Sep 2014 21:10:46 +0200 Original-Received: from localhost ([::1]:45164 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZ2ov-0002NN-Nd for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Sep 2014 15:10:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZ2oU-0002NA-To for help-gnu-emacs@gnu.org; Tue, 30 Sep 2014 15:10:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZ2oP-0002t5-8T for help-gnu-emacs@gnu.org; Tue, 30 Sep 2014 15:10:18 -0400 Original-Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:40740) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZ2oP-0002sd-0d for help-gnu-emacs@gnu.org; Tue, 30 Sep 2014 15:10:13 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id CE61E50749 for ; Tue, 30 Sep 2014 21:10:09 +0200 (CEST) Original-Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3m8jSereX6HO for ; Tue, 30 Sep 2014 21:10:09 +0200 (CEST) Original-Received: from localhost (111-128.echostar.pl [213.156.111.128]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 8F9F2400BC for ; Tue, 30 Sep 2014 21:10:09 +0200 (CEST) In-reply-to: <00d69071-b746-4544-a4b6-01fc9e29e5a3@googlegroups.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:808:114:2::50 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:100189 Archived-At: On 2014-09-30, at 18:55, Sam Halliday wrote: > Hi all, > > It is sometimes confusing, when writing a regex in elisp, to remember all the escaping rules that are in play. > > Does anybody on this list know of a minor mode that would allow the user to edit regexes so that escaping is not necessary, but for the escaping to occur "under the hood". > > Imagine being able to place the point over a string containing a regex (which is using escapes) and then call an interactive function which makes the escape characters go away and if special characters are entered, the escapes are added automagically. When exiting the minor mode, the raw string with escapes would appear again. Not exactly what you have in mind, but do you know M-x re-builder? > Sam Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University