From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sam Halliday Newsgroups: gmane.emacs.help Subject: regex edit mode Date: Tue, 30 Sep 2014 09:55:12 -0700 (PDT) Message-ID: <00d69071-b746-4544-a4b6-01fc9e29e5a3@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1412096426 21824 80.91.229.3 (30 Sep 2014 17:00:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Sep 2014 17:00:26 +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 19:00:19 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 1XZ0mg-0006p6-1M for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Sep 2014 19:00:18 +0200 Original-Received: from localhost ([::1]:44432 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZ0mf-0004R9-5g for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Sep 2014 13:00:17 -0400 X-Received: by 10.66.249.231 with SMTP id yx7mr40823588pac.24.1412096113084; Tue, 30 Sep 2014 09:55:13 -0700 (PDT) X-Received: by 10.140.19.173 with SMTP id 42mr10586qgh.32.1412096113026; Tue, 30 Sep 2014 09:55:13 -0700 (PDT) Original-Path: usenet.stanford.edu!a13no6121903igq.0!news-out.google.com!i10ni54qaf.0!nntp.google.com!dc16no197727qab.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=83.244.128.25; posting-account=kRukCAoAAAANs-vsVh9dFwo5kp5pwnPz Original-NNTP-Posting-Host: 83.244.128.25 User-Agent: G2/1.0 Injection-Date: Tue, 30 Sep 2014 16:55:13 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:207908 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:100183 Archived-At: Hi all, It is sometimes confusing, when writing a regex in elisp, to remember all t= he 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 oc= cur "under the hood". Imagine being able to place the point over a string containing a regex (whi= ch is using escapes) and then call an interactive function which makes the = escape characters go away and if special characters are entered, the escape= s are added automagically. When exiting the minor mode, the raw string with= escapes would appear again. It would be equally fantastic to be able to do this for other languages tha= t have their own escaping rules: java/scala come to mind. Just a thought. It would really brighten up my day if it were possible. Sam