From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Chunyang Xu Newsgroups: gmane.emacs.help Subject: Re: What is "splicing mode" in el-search.el? Date: Wed, 7 Sep 2016 01:55:01 +0800 Message-ID: References: <87d1khulwr.fsf@web.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1473184560 26890 195.159.176.226 (6 Sep 2016 17:56:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 6 Sep 2016 17:56:00 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 06 19:55:51 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhKb6-0005jK-FZ for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Sep 2016 19:55:48 +0200 Original-Received: from localhost ([::1]:35306 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhKb6-0003Tu-Ak for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Sep 2016 13:55:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhKaS-0003Pd-4x for help-gnu-emacs@gnu.org; Tue, 06 Sep 2016 13:55:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhKaM-0005vG-VK for help-gnu-emacs@gnu.org; Tue, 06 Sep 2016 13:55:07 -0400 Original-Received: from mail-yb0-x22e.google.com ([2607:f8b0:4002:c09::22e]:33965) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhKaM-0005vC-Qp for help-gnu-emacs@gnu.org; Tue, 06 Sep 2016 13:55:02 -0400 Original-Received: by mail-yb0-x22e.google.com with SMTP id x93so92733162ybh.1 for ; Tue, 06 Sep 2016 10:55:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=CXvUmvEZjjhp3QGVsLYII0BOSonHJjVskrRe3crIlSg=; b=yE0O/Y3KajGlHlcBprpw2nbD48wXFlOoRecfqQlYoS48DfHR4YRy+hS3YaJmGIJ6yB /nd73WTyKBJ7tT+ffdIoVOJqOWvHSWZEtq6JWj2AIeGI8wE3owajhsZuwGHDF4nKTELZ EIDMQoLEo0ngzy6V5fnKUDGD53By0TQwOEHKoQI9twoyDzGQ7QpJQjq0wA88VDna/p5G XvxOVV7C2s0kGuWMtUIcIP59GTtipoOt2+HW7g3Qssb9rE+tk0FSIdc9BAyOveyKeXxH WzOUI6csQBxe5zJNC/D9Quba6viiBBHTdtWis/LxnXmU39VxpJSxYnfDcdlH8nFdqQf9 LMUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=CXvUmvEZjjhp3QGVsLYII0BOSonHJjVskrRe3crIlSg=; b=d5ftQbprwl4XQFPJ7uO3x2sJTnVdOxa70s5kC7spTp7nfLlxTm2DCArJlu/cTcGUWL GF2Jm891i62Tmb9H/RW3NJpl5DGiYTxh4rj4mI9Rzd5c3izYtPBc6BGJD1+1YO8YxFrQ bMv9LcVym1PkXPocDv9RWF8BARljul+Mo8TCbUcDI/XXEGIY2ZilYGEBA2m/x0DmICQP PXEIY1mJk9zVa5bvIeJTXPXRdINpIFQn4WbDdM/8ynxgrh8istBB8aDvWwuO76+MQVdC WgdGibt4fXuykKX6STCCw9yr+bdbcdGMNyfhB4AiSlPMu01ZkShug7Zp+BWAXKAbKQj9 NjSg== X-Gm-Message-State: AE9vXwOulW7GdvWLWFNM/RDN7c/ohBnFRVoS2Y9e12wT6cBMB2OoyHmjzen2/CVVBnkx3l4anljubNZBW7JyJQ== X-Received: by 10.36.92.196 with SMTP id q187mr32202861itb.33.1473184502325; Tue, 06 Sep 2016 10:55:02 -0700 (PDT) Original-Received: by 10.36.117.135 with HTTP; Tue, 6 Sep 2016 10:55:01 -0700 (PDT) In-Reply-To: <87d1khulwr.fsf@web.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4002:c09::22e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:111295 Archived-At: Hi Michael! On Tue, Sep 6, 2016 at 10:45 PM, Michael Heerdegen wrote: > Hello Chunyang! > >> I tried el-search.el from gnu elpa and have one problem with it. > > Great, this is the first remark I got about it :-) Your comments are > much appreciated, please report every discrepancy you find. Multi-file > support will come soon, btw. > > >> The Commentary of el-search.el mentions "splicing mode", but I can't >> figure out what it means, can you give me an example? >> >> ;; It is possible to replace a match with multiple expressions using >> ;; "splicing mode". When it is active, the replacement expression >> ;; must evaluate to a list, and is spliced instead of inserted into >> ;; the buffer for any replaced match. > > It just means that instead of the list, it's elements are inserted into > the buffer, in the same order as in the list. If you replace e.g. this > > `(f . ,args) -> args > > and you have in some buffer > > (f x y) > > then this would normally be replaced with > > (x y) > > but with splicing mode turned on, you would get > > x y > Now I see. After applying your patch, it works like expect. Thank you very much!