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: Re: use Elisp to improve your Elisp - some code issues Date: Sun, 2 Aug 2015 03:42:23 -0700 (PDT) Message-ID: References: <683844af-0117-4f6e-a64e-aeabc12946e7@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 1438512323 13766 80.91.229.3 (2 Aug 2015 10:45:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Aug 2015 10:45:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 02 12:45:22 2015 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 1ZLqld-0003e6-KN for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Aug 2015 12:45:21 +0200 Original-Received: from localhost ([::1]:55651 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLqld-0005VI-0F for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Aug 2015 06:45:21 -0400 X-Received: by 10.182.120.74 with SMTP id la10mr297405obb.6.1438512143911; Sun, 02 Aug 2015 03:42:23 -0700 (PDT) X-Received: by 10.140.96.47 with SMTP id j44mr104165qge.19.1438512143885; Sun, 02 Aug 2015 03:42:23 -0700 (PDT) Original-Path: usenet.stanford.edu!f3no6298543igg.0!news-out.google.com!78ni3155qge.1!nntp.google.com!z61no4761760qge.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=82.13.129.22; posting-account=kRukCAoAAAANs-vsVh9dFwo5kp5pwnPz Original-NNTP-Posting-Host: 82.13.129.22 User-Agent: G2/1.0 Injection-Date: Sun, 02 Aug 2015 10:42:23 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:213921 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:106206 Archived-At: On Saturday, 1 August 2015 05:22:35 UTC+1, Emanuel Berg wrote: > The tool (code) just searches for regexps in the files whose names match = another regexp. OK, I don't think that would extend itself to use elsewhere unfortunately. = I'd imagined that you had a "detector phase" and then a "suggestion phase" = whereas it sounds like it's all in one go with a regex replace. If there was a way to factor out the suggestion phase into a standalone com= ponent (which provided a diff and some metadata) then we could definitely m= ake use of that in ENSIME in many places. e.g. Something non-intrusive like= just add a symbol to the gutter and require some further user action befor= e showing the diff (which might be multi-file) and allowing the user to acc= ept or reject.