From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tak Kunihiro Newsgroups: gmane.emacs.help Subject: Re: regular expression Date: Wed, 02 Jul 2014 22:10:10 +0900 (JST) Message-ID: <20140702.221010.137821703.tkk@misasa.okayama-u.ac.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1404306663 25430 80.91.229.3 (2 Jul 2014 13:11:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Jul 2014 13:11:03 +0000 (UTC) Cc: embe8573@student.uu.se To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 02 15:10:58 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 1X2KJM-0008Ut-AW for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Jul 2014 15:10:56 +0200 Original-Received: from localhost ([::1]:53040 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2KJL-0007yv-QL for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Jul 2014 09:10:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46424) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2KIq-0007qm-Jc for help-gnu-emacs@gnu.org; Wed, 02 Jul 2014 09:10:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2KIk-0006B5-3s for help-gnu-emacs@gnu.org; Wed, 02 Jul 2014 09:10:24 -0400 Original-Received: from msmail2.misasa.okayama-u.ac.jp ([150.46.245.7]:36882 helo=msmail.misasa.okayama-u.ac.jp) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2KIj-0006Ap-Kt for help-gnu-emacs@gnu.org; Wed, 02 Jul 2014 09:10:18 -0400 Original-Received: from localhost (p8163-ipbfp402tottori.tottori.ocn.ne.jp [118.13.46.163]) by msmail.misasa.okayama-u.ac.jp (Postfix) with ESMTP id 7A3D2AF8084; Wed, 2 Jul 2014 22:10:13 +0900 (JST) X-Mailer: Mew version 6.5 on Emacs 24.3 / Mule 6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 150.46.245.7 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:98502 Archived-At: I think a work flow from (re-builder) to (query-replace-regexp) should be by default in Emacs. Tweaks are necessary; however, the idea is demonstrated such in https://gist.github.com/mooz/890562 I suggest following key bindings. (global-set-key (kbd "C-M-%") 're-builder) (define-key reb-mode-map (kbd "") 'my-reb-query-replace-regexp)